@primer/react 36.14.0 → 36.15.0
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/CHANGELOG.md +16 -0
- package/dist/browser.esm.js +1 -1
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +1 -1
- package/dist/browser.umd.js.map +1 -1
- package/generated/components.json +71 -15
- package/lib/ActionList/Item.d.ts.map +1 -1
- package/lib/ActionList/Item.js +2 -1
- package/lib/FeatureFlags/DefaultFeatureFlags.d.ts +3 -0
- package/lib/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -0
- package/lib/FeatureFlags/DefaultFeatureFlags.js +7 -0
- package/lib/FeatureFlags/FeatureFlagContext.d.ts +4 -0
- package/lib/FeatureFlags/FeatureFlagContext.d.ts.map +1 -0
- package/lib/FeatureFlags/FeatureFlagContext.js +8 -0
- package/lib/FeatureFlags/FeatureFlagScope.d.ts +22 -0
- package/lib/FeatureFlags/FeatureFlagScope.d.ts.map +1 -0
- package/lib/FeatureFlags/FeatureFlagScope.js +44 -0
- package/lib/FeatureFlags/FeatureFlags.d.ts +7 -0
- package/lib/FeatureFlags/FeatureFlags.d.ts.map +1 -0
- package/lib/FeatureFlags/FeatureFlags.js +26 -0
- package/lib/FeatureFlags/index.d.ts +4 -0
- package/lib/FeatureFlags/index.d.ts.map +1 -0
- package/lib/FeatureFlags/useFeatureFlag.d.ts +5 -0
- package/lib/FeatureFlags/useFeatureFlag.d.ts.map +1 -0
- package/lib/Stack/Stack.d.ts +65 -0
- package/lib/Stack/Stack.d.ts.map +1 -0
- package/lib/Stack/Stack.js +52 -0
- package/lib/Stack/index.d.ts +6 -0
- package/lib/Stack/index.d.ts.map +1 -0
- package/lib/Stack/index.js +9 -0
- package/lib/drafts/ActionBar/ActionBar.d.ts +8 -2
- package/lib/drafts/ActionBar/ActionBar.d.ts.map +1 -1
- package/lib/drafts/ActionBar/ActionBar.js +1 -0
- package/lib/drafts/ActionBar/index.js +6 -4
- package/lib/drafts/TabPanels/TabPanels.js +2 -2
- package/lib/drafts/index.d.ts +3 -0
- package/lib/drafts/index.d.ts.map +1 -1
- package/lib/drafts/index.js +4 -1
- package/lib/experimental/index.d.ts +2 -0
- package/lib/experimental/index.d.ts.map +1 -1
- package/lib/experimental/index.js +8 -1
- package/lib/internal/utils/__tests__/getResponsiveAttributes.test.d.ts +2 -0
- package/lib/internal/utils/__tests__/getResponsiveAttributes.test.d.ts.map +1 -0
- package/lib/internal/utils/getResponsiveAttributes.d.ts +19 -0
- package/lib/internal/utils/getResponsiveAttributes.d.ts.map +1 -0
- package/lib/internal/utils/getResponsiveAttributes.js +40 -0
- package/lib/internal/utils/getResponsiveControlValues.d.ts +8 -0
- package/lib/internal/utils/getResponsiveControlValues.d.ts.map +1 -0
- package/lib-esm/ActionList/Item.js +2 -1
- package/lib-esm/FeatureFlags/DefaultFeatureFlags.d.ts +3 -0
- package/lib-esm/FeatureFlags/DefaultFeatureFlags.js +5 -0
- package/lib-esm/FeatureFlags/FeatureFlagContext.d.ts +4 -0
- package/lib-esm/FeatureFlags/FeatureFlagContext.js +6 -0
- package/lib-esm/FeatureFlags/FeatureFlagScope.d.ts +22 -0
- package/lib-esm/FeatureFlags/FeatureFlagScope.js +42 -0
- package/lib-esm/FeatureFlags/FeatureFlags.d.ts +7 -0
- package/lib-esm/FeatureFlags/FeatureFlags.js +20 -0
- package/lib-esm/FeatureFlags/index.d.ts +4 -0
- package/lib-esm/FeatureFlags/useFeatureFlag.d.ts +5 -0
- package/lib-esm/Stack/Stack.d.ts +65 -0
- package/lib-esm/Stack/Stack.js +44 -0
- package/lib-esm/Stack/index.d.ts +6 -0
- package/lib-esm/Stack/index.js +7 -0
- package/lib-esm/drafts/ActionBar/ActionBar.d.ts +8 -2
- package/lib-esm/drafts/ActionBar/ActionBar.js +1 -0
- package/lib-esm/drafts/ActionBar/index.js +4 -2
- package/lib-esm/drafts/index.d.ts +3 -0
- package/lib-esm/drafts/index.js +2 -1
- package/lib-esm/experimental/index.d.ts +2 -0
- package/lib-esm/experimental/index.js +5 -1
- package/lib-esm/internal/utils/__tests__/getResponsiveAttributes.test.d.ts +2 -0
- package/lib-esm/internal/utils/getResponsiveAttributes.d.ts +19 -0
- package/lib-esm/internal/utils/getResponsiveAttributes.js +38 -0
- package/lib-esm/internal/utils/getResponsiveControlValues.d.ts +8 -0
- package/package.json +1 -1
- /package/lib/{packages/react/node_modules → node_modules}/@github/tab-container-element/dist/tab-container-element-define.js +0 -0
- /package/lib/{packages/react/node_modules → node_modules}/@github/tab-container-element/dist/tab-container-element.js +0 -0
package/dist/browser.umd.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var x=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var k=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var t=Object.getOwnPropertyNames(r).map((function(e){return r[e]}));if("0123456789"!==t.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var o,t,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),n=1;n<arguments.length;n++){for(var l in o=Object(arguments[n]))C.call(o,l)&&(a[l]=o[l]);if(x){t=x(o);for(var i=0;i<t.length;i++)w.call(o,t[i])&&(a[t[i]]=o[t[i]])}}return a},B=s(k),E=function(e,r){var o=B({},e,r);for(var t in e){var a;e[t]&&"object"==typeof r[t]&&B(o,((a={})[t]=B(e[t],r[t]),a))}return o},T={breakpoints:[40,52,64].map((function(e){return e+"em"}))},S=function(e){return"@media screen and (min-width: "+e+")"},I=function(e,r){return M(r,e,e)},M=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},N=function e(r){var o={},t=function(e){var t,a,n={},l=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var c in e)if(r[c]){var d=r[c],s=e[c],u=M(e.theme,d.scale,d.defaults);if("object"!=typeof s)B(n,d(s,u,e));else{if(o.breakpoints=!i&&o.breakpoints||M(e.theme,"breakpoints",T.breakpoints),Array.isArray(s)){o.media=!i&&o.media||[null].concat(o.breakpoints.map(S)),n=E(n,O(o.media,d,u,s,e));continue}null!==s&&(n=E(n,A(o.breakpoints,d,u,s,e)),l=!0)}}return l&&(t=n,a={},Object.keys(t).sort((function(e,r){return e.localeCompare(r,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){a[e]=t[e]})),n=a),n};t.config=r,t.propNames=Object.keys(r),t.cache=o;var a=Object.keys(r).filter((function(e){return"config"!==e}));return a.length>1&&a.forEach((function(o){var a;t[o]=e(((a={})[o]=r[o],a))})),t},O=function(e,r,o,t,a){var n={};return t.slice(0,e.length).forEach((function(t,l){var i,c=e[l],d=r(t,o,a);c?B(n,((i={})[c]=B({},n[c],d),i)):B(n,d)})),n},A=function(e,r,o,t,a){var n={};for(var l in t){var i=e[l],c=r(t[l],o,a);if(i){var d,s=S(i);B(n,((d={})[s]=B({},n[s],c),d))}else B(n,c)}return n},L=function(e){var r=e.properties,o=e.property,t=e.scale,a=e.transform,n=void 0===a?I:a,l=e.defaultScale;r=r||[o];var i=function(e,o,t){var a={},l=n(e,o,t);if(null!==l)return r.forEach((function(e){a[e]=l})),a};return i.scale=t,i.defaults=l,i},j=function(e){void 0===e&&(e={});var r={};return Object.keys(e).forEach((function(o){var t=e[o];r[o]=!0!==t?"function"!=typeof t?L(t):t:L({property:o,scale:o})})),N(r)},R=function(){for(var e={},r=arguments.length,o=new Array(r),t=0;t<r;t++)o[t]=arguments[t];return o.forEach((function(r){r&&r.config&&B(e,r.config)})),N(e)},D={width:{property:"width",scale:"sizes",transform:function(e,r){return M(r,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},z=j(D),P={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};P.bg=P.backgroundColor;var _=j(P),H=j({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),F=j({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),V={space:[0,4,8,16,32,64,128,256,512]},W=j({gridGap:{property:"gridGap",scale:"space",defaultScale:V.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:V.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:V.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),Z={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};Z.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},Z.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},Z.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},Z.borderBottomColor={property:"borderBottomColor",scale:"colors"},Z.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},Z.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},Z.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},Z.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},Z.borderLeftColor={property:"borderLeftColor",scale:"colors"},Z.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},Z.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},Z.borderRightColor={property:"borderRightColor",scale:"colors"},Z.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var $=j(Z),K={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};K.bgImage=K.backgroundImage,K.bgSize=K.backgroundSize,K.bgPosition=K.backgroundPosition,K.bgRepeat=K.backgroundRepeat;var G=j(K),U={space:[0,4,8,16,32,64,128,256,512]},q=j({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:U.space},right:{property:"right",scale:"space",defaultScale:U.space},bottom:{property:"bottom",scale:"space",defaultScale:U.space},left:{property:"left",scale:"space",defaultScale:U.space}}),Y={space:[0,4,8,16,32,64,128,256,512]},X=function(e){return"number"==typeof e&&!isNaN(e)},J=function(e,r){if(!X(e))return M(r,e,e);var o=e<0,t=Math.abs(e),a=M(r,t,t);return X(a)?a*(o?-1:1):o?"-"+a:a},Q={};Q.margin={margin:{property:"margin",scale:"space",transform:J,defaultScale:Y.space},marginTop:{property:"marginTop",scale:"space",transform:J,defaultScale:Y.space},marginRight:{property:"marginRight",scale:"space",transform:J,defaultScale:Y.space},marginBottom:{property:"marginBottom",scale:"space",transform:J,defaultScale:Y.space},marginLeft:{property:"marginLeft",scale:"space",transform:J,defaultScale:Y.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:J,defaultScale:Y.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:J,defaultScale:Y.space}},Q.margin.m=Q.margin.margin,Q.margin.mt=Q.margin.marginTop,Q.margin.mr=Q.margin.marginRight,Q.margin.mb=Q.margin.marginBottom,Q.margin.ml=Q.margin.marginLeft,Q.margin.mx=Q.margin.marginX,Q.margin.my=Q.margin.marginY,Q.padding={padding:{property:"padding",scale:"space",defaultScale:Y.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:Y.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:Y.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:Y.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:Y.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:Y.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:Y.space}},Q.padding.p=Q.padding.padding,Q.padding.pt=Q.padding.paddingTop,Q.padding.pr=Q.padding.paddingRight,Q.padding.pb=Q.padding.paddingBottom,Q.padding.pl=Q.padding.paddingLeft,Q.padding.px=Q.padding.paddingX,Q.padding.py=Q.padding.paddingY;var ee=j(Q.margin),re=j(Q.padding),oe=R(ee,re),te=j({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function ae(){return ae=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ae.apply(this,arguments)}var ne=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},le=[40,52,64].map((function(e){return e+"em"})),ie={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},ce={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},de={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},se={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},ue=function(e,r){if("number"!=typeof r||r>=0)return ne(e,r,r);var o=Math.abs(r),t=ne(e,o,o);return"string"==typeof t?"-"+t:-1*t},ge=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,r){var o;return ae({},e,((o={})[r]=ue,o))}),{}),be=function e(r){return function(o){void 0===o&&(o={});var t=ae({},ie,{},o.theme||o),a={},n=function(e){return function(r){var o={},t=ne(r,"breakpoints",le),a=[null].concat(t.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var n in e){var l="function"==typeof e[n]?e[n](r):e[n];if(null!=l)if(Array.isArray(l))for(var i=0;i<l.slice(0,a.length).length;i++){var c=a[i];c?(o[c]=o[c]||{},null!=l[i]&&(o[c][n]=l[i])):o[n]=l[i]}else o[n]=l}return o}}("function"==typeof r?r(t):r)(t);for(var l in n){var i=n[l],c="function"==typeof i?i(t):i;if("variant"!==l)if(c&&"object"==typeof c)a[l]=e(c)(t);else{var d=ne(ce,l,l),s=ne(se,d),u=ne(t,s,ne(t,d,{})),g=ne(ge,d,ne)(u,c,c);if(de[d])for(var b=de[d],v=0;v<b.length;v++)a[b[v]]=g;else a[d]=g}else a=ae({},a,{},e(ne(t,c))(t))}return a}},ve=function(e){var r,o,t=e.scale,a=e.prop,n=void 0===a?"variant":a,l=e.variants,i=void 0===l?{}:l,c=e.key;o=Object.keys(i).length?function(e,r,o){return be(M(r,e,null))(o.theme)}:function(e,r){return M(r,e,null)},o.scale=t||c,o.defaults=i;var d=((r={})[n]=o,r);return N(d)},fe=ve({key:"buttons"}),he=ve({key:"textStyles",prop:"textStyle"}),pe=ve({key:"colorStyles",prop:"colors"}),me=z.width,ye=z.height,xe=z.minWidth,Ce=z.minHeight,we=z.maxWidth,ke=z.maxHeight,Be=z.size,Ee=z.verticalAlign,Te=z.display,Se=z.overflow,Ie=z.overflowX,Me=z.overflowY,Ne=_.opacity,Oe=H.fontSize,Ae=H.fontFamily,Le=H.fontWeight,je=H.lineHeight,Re=H.textAlign,De=H.fontStyle,ze=H.letterSpacing,Pe=F.alignItems,_e=F.alignContent,He=F.justifyItems,Fe=F.justifyContent,Ve=F.flexWrap,We=F.flexDirection,Ze=F.flex,$e=F.flexGrow,Ke=F.flexShrink,Ge=F.flexBasis,Ue=F.justifySelf,qe=F.alignSelf,Ye=F.order,Xe=W.gridGap,Je=W.gridColumnGap,Qe=W.gridRowGap,er=W.gridColumn,rr=W.gridRow,or=W.gridAutoFlow,tr=W.gridAutoColumns,ar=W.gridAutoRows,nr=W.gridTemplateColumns,lr=W.gridTemplateRows,ir=W.gridTemplateAreas,cr=W.gridArea,dr=$.borderWidth,sr=$.borderStyle,ur=$.borderColor,gr=$.borderTop,br=$.borderRight,vr=$.borderBottom,fr=$.borderLeft,hr=$.borderRadius,pr=G.backgroundImage,mr=G.backgroundSize,yr=G.backgroundPosition,xr=G.backgroundRepeat,Cr=q.zIndex,wr=q.top,kr=q.right,Br=q.bottom,Er=q.left,Tr=function(e){var r=e.prop,o=e.cssProperty,t=e.alias,a=e.key,n=e.transformValue,l=e.scale,i=e.properties,c={};return c[r]=L({properties:i,property:o||r,scale:a,defaultScale:l,transform:n}),t&&(c[t]=c[r]),N(c)},Sr=Object.freeze({__proto__:null,alignContent:_e,alignItems:Pe,alignSelf:qe,background:G,backgroundImage:pr,backgroundPosition:yr,backgroundRepeat:xr,backgroundSize:mr,border:$,borderBottom:vr,borderColor:ur,borderLeft:fr,borderRadius:hr,borderRight:br,borderStyle:sr,borderTop:gr,borderWidth:dr,borders:$,bottom:Br,boxShadow:te,buttonStyle:fe,color:_,colorStyle:pe,compose:R,createParser:N,createStyleFunction:L,display:Te,flex:Ze,flexBasis:Ge,flexDirection:We,flexGrow:$e,flexShrink:Ke,flexWrap:Ve,flexbox:F,fontFamily:Ae,fontSize:Oe,fontStyle:De,fontWeight:Le,get:M,grid:W,gridArea:cr,gridAutoColumns:tr,gridAutoFlow:or,gridAutoRows:ar,gridColumn:er,gridColumnGap:Je,gridGap:Xe,gridRow:rr,gridRowGap:Qe,gridTemplateAreas:ir,gridTemplateColumns:nr,gridTemplateRows:lr,height:ye,justifyContent:Fe,justifyItems:He,justifySelf:Ue,layout:z,left:Er,letterSpacing:ze,lineHeight:je,margin:ee,maxHeight:ke,maxWidth:we,minHeight:Ce,minWidth:xe,opacity:Ne,order:Ye,overflow:Se,overflowX:Ie,overflowY:Me,padding:re,position:q,right:kr,shadow:te,size:Be,space:oe,style:Tr,system:j,textAlign:Re,textShadow:te,textStyle:he,top:wr,typography:H,variant:ve,verticalAlign:Ee,width:me,zIndex:Cr});const{get:Ir,compose:Mr,system:Nr}=Sr,Or=e=>{return r=e,void 0===(o=Ir(y,e))&&(o=null),function(e){return M(e.theme,r,o)};var r,o},Ar=Mr(oe,_,Te),Lr=Mr(H,Nr({whiteSpace:{property:"whiteSpace"}}));Mr($,te);var jr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===Rr}(e)}(e)};var Rr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Dr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?Fr((o=e,Array.isArray(o)?[]:{}),e,r):e;var o}function zr(e,r,o){return e.concat(r).map((function(e){return Dr(e,o)}))}function Pr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return e.propertyIsEnumerable(r)})):[]}(e))}function _r(e,r){try{return r in e}catch(e){return!1}}function Hr(e,r,o){var t={};return o.isMergeableObject(e)&&Pr(e).forEach((function(r){t[r]=Dr(e[r],o)})),Pr(r).forEach((function(a){(function(e,r){return _r(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(_r(e,a)&&o.isMergeableObject(r[a])?t[a]=function(e,r){if(!r.customMerge)return Fr;var o=r.customMerge(e);return"function"==typeof o?o:Fr}(a,o)(e[a],r[a],o):t[a]=Dr(r[a],o))})),t}function Fr(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||zr,o.isMergeableObject=o.isMergeableObject||jr,o.cloneUnlessOtherwiseSpecified=Dr;var t=Array.isArray(r);return t===Array.isArray(e)?t?o.arrayMerge(e,r,o):Hr(e,r,o):Dr(r,o)}Fr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return Fr(e,o,r)}),{})};var Vr=s(Fr);const Wr=!0;function Zr(e){if(!e.defaultPrevented)for(const r of Object.values($r).reverse())if(r(e)===Wr||e.defaultPrevented)break}const $r={};let Kr=0;const Gr=({containerRef:e,ignoreClickRefs:o,onClickOutside:t})=>{const a=r.useMemo((()=>Kr++),[]),n=r.useCallback((r=>{var a;return r instanceof MouseEvent&&r.button>0||null!==(a=e.current)&&void 0!==a&&a.contains(r.target)||o&&o.some((({current:e})=>null==e?void 0:e.contains(r.target)))?Wr:void t(r)}),[e,o,t]);r.useEffect((()=>(0===Object.keys($r).length&&document.addEventListener("mousedown",Zr,{capture:!0}),function(e,r){$r[e]=r}(a,n),()=>{!function(e){delete $r[e]}(a),0===Object.keys($r).length&&document.removeEventListener("mousedown",Zr,{capture:!0})})),[a,n])};function Ur(e){const r=l.default.useRef(null);return null!=e?e:r}function qr(e){if(!e.defaultPrevented)for(const r of Object.values(Yr).reverse())if(r(e),e.defaultPrevented)break}const Yr={};let Xr=0;const Jr=(e,o=[e])=>{const t=r.useCallback(e,o),a=r.useCallback((e=>{"Escape"===e.key&&t(e)}),[t]),n=r.useMemo((()=>Xr++),[]);r.useEffect((()=>(0===Object.keys(Yr).length&&document.addEventListener("keydown",qr),function(e,r){Yr[e]=r}(n,a),()=>{!function(e){delete Yr[e]}(n),0===Object.keys(Yr).length&&document.removeEventListener("keydown",qr)})),[n,a])};function*Qr(e,r={}){var o,t;const a=null!==(o=r.strict)&&void 0!==o&&o,n=null!==(t=r.onlyTabbable)&&void 0!==t&&t?oo:ro,l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let i=null;if(!r.reverse&&n(e,a)&&(yield e),r.reverse){let e=l.lastChild();for(;e;)i=e,e=l.lastChild()}else i=l.firstChild();for(;i instanceof HTMLElement;)yield i,i=r.reverse?l.previousNode():l.nextNode();r.reverse&&n(e,a)&&(yield e)}function eo(e,r=!1){return Qr(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function ro(e,r=!1){const o=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,t=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type,n=e.classList.contains("sentinel");if(o||t||a||n)return!1;if(r){const r=getComputedStyle(e),o=0===e.offsetWidth||0===e.offsetHeight,t=["hidden","collapse"].includes(r.visibility),a="none"===r.display||!e.offsetParent,n=0===e.getClientRects().length;if(o||t||n||a)return!1}return null!=e.getAttribute("tabindex")||("true"===e.getAttribute("contenteditable")||"plaintext-only"===e.getAttribute("contenteditable")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex)}function oo(e,r=!1){return ro(e,r)&&"-1"!==e.getAttribute("tabindex")}let to,ao=1e4;function no(){return void 0===to&&(to=/^mac/i.test(window.navigator.platform)),to}function lo({initialFocusRef:e,returnFocusRef:o,containerRef:t,preventFocusOnOpen:a}){r.useEffect((()=>{if(a)return;const r=o.current;if(e&&e.current)e.current.focus();else if(t.current){const e=Qr(t.current).next().value;null==e||e.focus()}return function(){null==r||r.focus()}}),[e,o,t,a])}const io={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},co={start:["end","center"],end:["start","center"],center:["end","start"]};function so(e,r,o={}){const t=function(e){if(function(e){var r;if("DIALOG"===e.tagName)return!0;try{if(e.matches(":popover-open")&&/native code/.test(null===(r=document.body.showPopover)||void 0===r?void 0:r.toString()))return!0}catch(e){return!1}return!1}(e))return document.body;let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),a=function(e){let r=e;for(;null!==r&&r instanceof Element;){if("visible"!==getComputedStyle(r).overflow)break;r=r.parentNode}const o=r!==document.body&&r instanceof HTMLElement?r:document.body,t=o.getBoundingClientRect(),a=getComputedStyle(o),[n,l,i,c]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:t.top+n,left:t.left+l,width:t.width-i-l,height:Math.max(t.height-n-c,o===document.body?window.innerHeight:-1/0)}}(t),n=getComputedStyle(t),l=t.getBoundingClientRect(),[i,c]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,o,t,{side:a,align:n,allowOutOfBounds:l,anchorOffset:i,alignmentOffset:c}){const d={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let s=go(o,t,a,n,i,c),u=a,g=n;if(s.top-=r.top,s.left-=r.left,!l){const l=io[a];let b=0;if(l){let e=a;for(;b<l.length&&bo(e,s,d,o);){const a=l[b++];e=a,s=go(o,t,a,n,i,c),s.top-=r.top,s.left-=r.left,u=a}}const v=co[n];let f=0;if(v){let e=n;for(;f<v.length&&vo(e,s,d,o);){const a=v[f++];e=a,s=go(o,t,u,a,i,c),s.top-=r.top,s.left-=r.left,g=a}}s.top<d.top&&(s.top=d.top),s.left<d.left&&(s.left=d.left),s.left+o.width>e.width+d.left&&(s.left=e.width+d.left-o.width),l&&b<l.length&&s.top+o.height>e.height+d.top&&(s.top=Math.max(e.height+d.top-o.height,0))}return Object.assign(Object.assign({},s),{anchorSide:u,anchorAlign:g})}(a,{top:l.top+i,left:l.left+c},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,o,t,a,n;const l=null!==(r=e.side)&&void 0!==r?r:uo.side,i=null!==(o=e.align)&&void 0!==o?o:uo.align;return{side:l,align:i,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===l?0:uo.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==i&&l.startsWith("inside")?uo.alignmentOffset:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:uo.allowOutOfBounds}}(o))}const uo={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function go(e,r,o,t,a,n){const l=r.left+r.width,i=r.top+r.height;let c=-1,d=-1;return"outside-top"===o?c=r.top-a-e.height:"outside-bottom"===o?c=i+a:"outside-left"===o?d=r.left-a-e.width:"outside-right"===o&&(d=l+a),"outside-top"!==o&&"outside-bottom"!==o||(d="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n),"outside-left"!==o&&"outside-right"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),"inside-top"===o?c=r.top+a:"inside-bottom"===o?c=i-a-e.height:"inside-left"===o?d=r.left+a:"inside-right"===o?d=l-a-e.width:"inside-center"===o&&(d=(l+r.left)/2-e.width/2+a),"inside-top"===o||"inside-bottom"===o?d="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n:"inside-left"!==o&&"inside-right"!==o&&"inside-center"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),{top:c,left:d}}function bo(e,r,o,t){return"outside-top"===e||"outside-bottom"===e?r.top<o.top||r.top+t.height>o.height+o.top:r.left<o.left||r.left+t.width>o.width+o.left}function vo(e,r,o,t){return"end"===e?r.left<o.left:"start"===e||"center"===e?r.left+t.width>o.left+o.width||r.left<o.left:void 0}let fo=!1;function ho(){}try{const e=Object.create({},{signal:{get(){fo=!0}}});window.addEventListener("test",ho,e),window.removeEventListener("test",ho,e)}catch(mg){}function po(){fo||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,o,t){return"object"==typeof t&&"signal"in t&&t.signal instanceof AbortSignal&&e.call(t.signal,"abort",(()=>{this.removeEventListener(r,o,t)})),e.call(this,r,o,t)}}(),fo=!0)}po();const mo=[];let yo;function xo(e,r,o){const t=new AbortController,a=null!=o?o:t.signal;e.setAttribute("data-focus-trap","active");const n=document.createElement("span");n.setAttribute("class","sentinel"),n.setAttribute("tabindex","0"),n.setAttribute("aria-hidden","true"),n.onfocus=()=>{const r=eo(e,!0);null==r||r.focus()};const l=document.createElement("span");let i;function c(o){if(o instanceof HTMLElement&&document.contains(e)){if(e.contains(o))return void(i=o);if(i&&oo(i)&&e.contains(i))return void i.focus();if(r&&e.contains(r))return void r.focus();{const r=eo(e);return void(null==r||r.focus())}}}l.setAttribute("class","sentinel"),l.setAttribute("tabindex","0"),l.setAttribute("aria-hidden","true"),l.onfocus=()=>{const r=eo(e);null==r||r.focus()},e.prepend(n),e.append(l);const d=function(e){const r=new AbortController;return e.addEventListener("abort",(()=>{r.abort()})),r}(a);if(yo){const e=yo;yo.container.setAttribute("data-focus-trap","suspended"),yo.controller.abort(),mo.push(e)}d.signal.addEventListener("abort",(()=>{yo=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=e.getElementsByClassName("sentinel");for(;r.length>0;)r[0].remove();const o=mo.findIndex((r=>r.container===e));o>=0&&mo.splice(o,1),function(){const e=mo.pop();e&&xo(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{c(e.target)}),{signal:d.signal,capture:!0}),c(document.activeElement),yo={container:e,controller:d,initialFocus:r,originalSignal:a};const s=mo.findIndex((r=>r.container===e));if(s>=0&&mo.splice(s,1),!o)return t}var Co;po(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(Co||(Co={}));const wo={ArrowLeft:Co.ArrowHorizontal,ArrowDown:Co.ArrowVertical,ArrowUp:Co.ArrowVertical,ArrowRight:Co.ArrowHorizontal,h:Co.HL,j:Co.JK,k:Co.JK,l:Co.HL,a:Co.AD,s:Co.WS,w:Co.WS,d:Co.AD,Tab:Co.Tab,Home:Co.HomeAndEnd,End:Co.HomeAndEnd,PageUp:Co.PageUpDown,PageDown:Co.PageUpDown,Backspace:Co.Backspace},ko={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function Bo(e){const r=ko[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const o=no();if(o&&e.metaKey||!o&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}const Eo="data-is-active-descendant",To="activated-directly",So="activated-indirectly",Io="data-has-active-descendant";function Mo(e,r){var o,t,a,n,l;const i=[],c=new WeakMap,d=null!==(o=null==r?void 0:r.bindKeys)&&void 0!==o?o:((null==r?void 0:r.getNextFocusable)?Co.ArrowAll:Co.ArrowVertical)|Co.HomeAndEnd,s=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",u=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",g=null==r?void 0:r.activeDescendantControl,b=null==r?void 0:r.onActiveDescendantChanged;let v;const f=null!==(n=null==r?void 0:r.preventScroll)&&void 0!==n&&n;function h(){return i[0]}function p(e,r=!1){const o=v;v=e,g?e&&document.activeElement===g?m(o,e,r):y():(o&&o!==e&&c.has(o)&&o.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(r,o,t=!1){o.id||o.setAttribute("id","__primer_id_"+ao++),r&&r!==o&&r.removeAttribute(Eo),g&&(t||g.getAttribute("aria-activedescendant")!==o.id)&&(g.setAttribute("aria-activedescendant",o.id),e.setAttribute(Io,o.id),o.setAttribute(Eo,t?To:So),null==b||b(o,r,t))}function y(r=v){"first"===u&&(v=void 0),null==g||g.removeAttribute("aria-activedescendant"),e.removeAttribute(Io),null==r||r.removeAttribute(Eo),null==b||b(void 0,r,!1)}function x(...e){const o=e.filter((e=>{var o,t;return null===(t=null===(o=null==r?void 0:r.focusableElementFilter)||void 0===o?void 0:o.call(r,e))||void 0===t||t}));if(0!==o.length){i.splice(function(e){const r=e[0];if(0===i.length)return 0;let o=0,t=i.length-1;for(;o<=t;){const e=Math.floor((o+t)/2);C(r,i[e])?t=e-1:o=e+1}return o}(o),0,...o);for(const e of o)c.has(e)||c.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");v||p(h())}}function C(e,r){return(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)>0}function w(...e){for(const r of e){const e=i.indexOf(r);e>=0&&i.splice(e,1);const o=c.get(r);if(void 0!==o&&(null===o?r.removeAttribute("tabindex"):r.setAttribute("tabindex",o),c.delete(r)),r===v){p(h())}}}const k={reverse:null==r?void 0:r.reverse,strict:null==r?void 0:r.strict,onlyTabbable:null==r?void 0:r.onlyTabbable};x(...Qr(e,k));p("function"==typeof u?u(document.body):h());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...Qr(e,k));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...Qr(e,k))})).observe(e,{subtree:!0,childList:!0});const B=new AbortController,E=null!==(l=null==r?void 0:r.abortSignal)&&void 0!==l?l:B.signal;let T;E.addEventListener("abort",(()=>{w(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(T=i.indexOf(e.target))}),{signal:E}),g?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(g.focus({preventScroll:f}),p(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=i.find((r=>r.contains(e)));r&&p(r)}),{signal:E,capture:!0}),g.addEventListener("focusin",(()=>{v?m(void 0,v):p(h())})),g.addEventListener("focusout",(()=>{y()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==T)T>=0&&i[T]!==v&&p(i[T]),T=void 0;else if("previous"===u)p(r.target);else if("closest"===u||"first"===u){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===I?i.length-1:0,r=i[e];return void(null==r||r.focus({preventScroll:f}))}p(r.target)}else if("function"==typeof u)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=u(r.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:f});console.warn("Element requested is not a known focusable element.")}else p(r.target);I=void 0}),{signal:E});const S=null!=g?g:e;let I;return"closest"===u&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=Bo(e))}),{signal:E,capture:!0}),S.addEventListener("keydown",(o=>{var t;if(o.key in ko){const a=wo[o.key];if(!o.defaultPrevented&&(a&d)>0&&!function(e,r){const o=e.key,t=[...o].length,a=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(a&&(1===t||"Home"===o||"End"===o))return!0;if(r instanceof HTMLSelectElement){if(1===t)return!0;if("ArrowDown"===o&&no()&&!e.metaKey)return!0;if("ArrowDown"===o&&!no()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===o||"PageDown"===o))return!0;if(a){const e=r,t=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===o&&!t)return!0;if("ArrowRight"===o&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===o&&!t)return!0;if("ArrowDown"===o&&!a)return!0}}return!1}(o,document.activeElement)){const a=Bo(o);let n;if((null==r?void 0:r.getNextFocusable)&&(n=r.getNextFocusable(a,null!==(t=document.activeElement)&&void 0!==t?t:void 0,o)),!n){const r=function(){if(!v)return 0;const r=i.indexOf(v);return-1!==r?r:v===e?-1:0}();let t=r;"previous"===a?t-=1:"start"===a?t=0:"next"===a?t+=1:t=i.length-1,t<0&&(t="wrap"===s&&"Tab"!==o.key?i.length-1:0),t>=i.length&&(t="wrap"===s&&"Tab"!==o.key?0:i.length-1),r!==t&&(n=i[t])}g?p(n||v,!0):n&&(I=a,n.focus({preventScroll:f})),("Tab"!==o.key||n)&&o.preventDefault()}}}),{signal:E}),B}function No(e,r,{direction:o="vertical",startMargin:t=0,endMargin:a=0,behavior:n="smooth"}={}){const l="vertical"===o?"top":"left",i="vertical"===o?"bottom":"right",c="vertical"===o?"scrollTop":"scrollLeft",{[l]:d,[i]:s}=e.getBoundingClientRect(),{[l]:u,[i]:g}=r.getBoundingClientRect(),b=s>g-a;if(d<u+t){const e=d-u+r[c];r.scrollTo({behavior:n,[l]:e-t})}else if(b){const e=s-g+r[c];r.scrollTo({behavior:n,[l]:e+a})}}const Oo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function Ao(e,o){const t=r.useRef(e);Oo((()=>{t.current=e})),Oo((()=>{const e=o&&"current"in o?o.current:document.documentElement;if(!e)return;const r=new ResizeObserver((e=>{t.current(e)}));return r.observe(e),()=>{r.disconnect()}}),[o])}function Lo(e,r=[]){const o=Ur(null==e?void 0:e.floatingElementRef),t=Ur(null==e?void 0:e.anchorElementRef),[a,n]=l.default.useState(void 0),i=l.default.useCallback((()=>{o.current instanceof Element&&t.current instanceof Element?n(so(o.current,t.current,e)):n(void 0)}),[o,t,...r]);return Oo(i,[i]),Ao(i),{floatingElementRef:o,anchorElementRef:t,position:a}}const jo=({overlayRef:e,returnFocusRef:r,initialFocusRef:o,onEscape:t,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:l})=>{const i=Ur(e);lo({containerRef:i,returnFocusRef:r,initialFocusRef:o,preventFocusOnOpen:l}),Gr({containerRef:i,ignoreClickRefs:a,onClickOutside:n});return Jr((e=>{t(e),e.preventDefault()})),{ref:i}};function Ro(e){const[o,t]=r.useState(e||null),a=r.useRef(null);a.current=o;const n=r.useCallback((e=>{a.current=e,t(e)}),[a]);return[a,n]}function Do(e,o,t){const[a,n]=r.useState(t),l=null!=e?e:a,i=r.useCallback((e=>{n(e),o&&o(e)}),[o]);return[l,i]}const zo=(e,r,o,t)=>{((e,r,o)=>{const[t,a]=l.default.useState(void 0);l.default.useEffect((function(){const e=o.current,r=e=>{0!==e.detail&&a("mouse-click")},t=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&a(e.code)};return null==e||e.addEventListener("click",r),null==e||e.addEventListener("keydown",t),()=>{null==e||e.removeEventListener("click",r),null==e||e.removeEventListener("keydown",t)}}),[o]),l.default.useEffect((function(){if(!e||!r.current)return;const a=Qr(r.current);if("mouse-click"===t){if(!o.current)throw new Error("For focus management, please attach anchorRef");o.current.focus()}else if(t&&["ArrowDown","Space","Enter"].includes(t)){const e=a.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===t){const e=[...a],r=e[e.length-1];setTimeout((()=>r.focus()))}else{const e=a.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,t,o])})(e,o,t),((e,r)=>{const o=Ur(r);l.default.useEffect((function(){e&&o.current&&[...Qr(o.current)].map((e=>{var r;if(e.getAttribute("aria-keyshortcuts"))return;const o=null===(r=e.textContent)||void 0===r?void 0:r.toLowerCase()[0];o&&e.setAttribute("aria-keyshortcuts",o)}))}),[e,o]),l.default.useEffect((function(){if(!e||!o.current)return;const r=o.current,a=e=>{var o;const a=document.activeElement;if("INPUT"===a.tagName||"TEXTAREA"===a.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!t(e))return;e.stopPropagation();const n=e.key.toLowerCase();let l;const i=[...Qr(r)].filter((e=>{var r;const o=null===(r=e.getAttribute("aria-keyshortcuts"))||void 0===r?void 0:r.split(" ").map((e=>e.toLowerCase()));return o&&o.includes(n)})),c=i.indexOf(a);l=c===i.length-1?i[0]:i.find(((e,r)=>r>c)),null===(o=l)||void 0===o||o.focus()};return r.addEventListener("keydown",a),()=>r.removeEventListener("keydown",a)}),[e,o]);const t=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,o),Po(e,r,o,t),_o(e,o,t)},Po=(e,r,o,t)=>{l.default.useEffect((()=>{const a=o.current,n=t.current,l=o=>{e&&"Tab"===o.key&&(null==r||r("tab"))};return null==a||a.addEventListener("keydown",l),null==n||n.addEventListener("keydown",l),()=>{null==a||a.removeEventListener("keydown",l),null==n||n.removeEventListener("keydown",l)}}),[e,r,o,t])},_o=(e,r,o)=>{l.default.useEffect((()=>{const t=r.current,a=o.current,n=r=>{if(!e||!t)return;const o=Qr(t);if("ArrowDown"===r.key){const e=o.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===r.key){const e=[...o],r=e[e.length-1];setTimeout((()=>r.focus()))}};return null==a||a.addEventListener("keydown",n),()=>null==a?void 0:a.addEventListener("keydown",n)}),[e,r,o])};function Ho(e,o){r.useImperativeHandle(e,(()=>o.current))}function Fo(e){const o=r.useId();return e||o}const Vo="light",Wo="dark",Zo=l.default.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),$o=({children:e,...r})=>{var t,a,n,i,d,s,u,g;const{theme:b,colorMode:v,dayScheme:f,nightScheme:h}=Ko(),p=null!==(t=null!==(a=r.theme)&&void 0!==a?a:b)&&void 0!==t?t:y,m=Fo(),{resolvedServerColorMode:x}=(e=>{try{var r;const o=null===(r=document.getElementById(`__PRIMER_DATA_${e}__`))||void 0===r?void 0:r.textContent;if(o)return JSON.parse(o)}catch(e){}return{}})(m),C=l.default.useRef(x),[w,k]=l.default.useState(null!==(n=null!==(i=r.colorMode)&&void 0!==i?i:v)&&void 0!==n?n:"day"),[B,E]=l.default.useState(null!==(d=null!==(s=r.dayScheme)&&void 0!==s?s:f)&&void 0!==d?d:Vo),[T,S]=l.default.useState(null!==(u=null!==(g=r.nightScheme)&&void 0!==g?g:h)&&void 0!==u?u:Wo),I=function(){const[e,r]=l.default.useState(Go);return l.default.useEffect((()=>{var e,o;const t=null===(e=window)||void 0===e||null===(o=e.matchMedia)||void 0===o?void 0:o.call(e,"(prefers-color-scheme: dark)");function a(e){return e?"night":"day"}function n(e){const o=e.matches;r(a(o))}if(t){const e=t.matches;if(r(a(e)),void 0!==t.addEventListener)return t.addEventListener("change",n),function(){t.removeEventListener("change",n)};if(void 0!==t.addListener)return t.addListener(n),function(){t.removeListener(n)}}}),[]),e}(),M=C.current||Uo(w,I),N=function(e,r,o){switch(e){case"day":case"light":return r;case"dark":case"night":return o}}(M,B,T),{resolvedTheme:O,resolvedColorScheme:A}=l.default.useMemo((()=>function(e,r){if(!e.colorSchemes)return{resolvedTheme:e,resolvedColorScheme:void 0};if(!e.colorSchemes[r]){console.error(`\`${r}\` scheme not defined in \`theme.colorSchemes\``);const o=Object.keys(e.colorSchemes)[0];return{resolvedTheme:Vr(e,e.colorSchemes[o]),resolvedColorScheme:o}}return{resolvedTheme:Vr(e,e.colorSchemes[r]),resolvedColorScheme:r}}(p,N)),[p,N]);return l.default.useEffect((function(){const e=Uo(w,I);C.current&&(C.current!==e&&window.setTimeout((()=>{c.default.flushSync((()=>{k(e)})),k(w)})),C.current=null)}),[w,I]),l.default.useEffect((()=>{var e,o;k(null!==(e=null!==(o=r.colorMode)&&void 0!==o?o:v)&&void 0!==e?e:"day")}),[r.colorMode,v]),l.default.useEffect((()=>{var e,o;E(null!==(e=null!==(o=r.dayScheme)&&void 0!==o?o:f)&&void 0!==e?e:Vo)}),[r.dayScheme,f]),l.default.useEffect((()=>{var e,o;S(null!==(e=null!==(o=r.nightScheme)&&void 0!==o?o:h)&&void 0!==e?e:Wo)}),[r.nightScheme,h]),l.default.createElement(Zo.Provider,{value:{theme:O,colorScheme:N,colorMode:w,resolvedColorMode:M,resolvedColorScheme:A,dayScheme:B,nightScheme:T,setColorMode:k,setDayScheme:E,setNightScheme:S}},l.default.createElement(o.ThemeProvider,{theme:O},e,r.preventSSRMismatch?l.default.createElement("script",{type:"application/json",id:`__PRIMER_DATA_${m}__`,dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:M})}}):null))};function Ko(){return l.default.useContext(Zo)}function Go(){var e,r,o;return"undefined"!=typeof window&&null!==(e=(r=window).matchMedia)&&void 0!==e&&null!==(o=e.call(r,"(prefers-color-scheme: dark)"))&&void 0!==o&&o.matches?"night":"day"}function Uo(e,r){return"auto"===e?r:e}function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qo.apply(this,arguments)}$o.displayName="ThemeProvider",function(){function e(e){var r=!0,o=!1,t=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function n(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function l(e){var r=e.type,o=e.tagName;return!("INPUT"!==o||!a[r]||e.readOnly)||"TEXTAREA"===o&&!e.readOnly||!!e.isContentEditable}function i(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function d(o){o.metaKey||o.altKey||o.ctrlKey||(n(e.activeElement)&&i(e.activeElement),r=!0)}function s(e){r=!1}function u(e){n(e.target)&&(r||l(e.target))&&i(e.target)}function g(e){n(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(t),t=window.setTimeout((function(){o=!1}),100),c(e.target))}function b(e){"hidden"===document.visibilityState&&(o&&(r=!0),v())}function v(){document.addEventListener("mousemove",h),document.addEventListener("mousedown",h),document.addEventListener("mouseup",h),document.addEventListener("pointermove",h),document.addEventListener("pointerdown",h),document.addEventListener("pointerup",h),document.addEventListener("touchmove",h),document.addEventListener("touchstart",h),document.addEventListener("touchend",h)}function f(){document.removeEventListener("mousemove",h),document.removeEventListener("mousedown",h),document.removeEventListener("mouseup",h),document.removeEventListener("pointermove",h),document.removeEventListener("pointerdown",h),document.removeEventListener("pointerup",h),document.removeEventListener("touchmove",h),document.removeEventListener("touchstart",h),document.removeEventListener("touchend",h)}function h(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r=!1,f())}document.addEventListener("keydown",d,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",b,!0),v(),e.addEventListener("focus",u,!0),e.addEventListener("blur",g,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var r;window.applyFocusVisiblePolyfill=e;try{r=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(r)}"undefined"!=typeof document&&e(document)}();const Yo=o.createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}input{color-scheme:",';}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}'],(e=>e.colorScheme)),Xo=i.default.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Lr,Ar);function Jo(e){const{children:r,color:o="fg.default",fontFamily:t="normal",lineHeight:a="default",...n}=e,{colorScheme:i,dayScheme:c,nightScheme:d}=Ko();return l.default.createElement(Xo,qo({},n,{color:o,fontFamily:t,lineHeight:a,"data-portal-root":!0,"data-color-mode":null!=i&&i.includes("dark")?"dark":"light","data-light-theme":c,"data-dark-theme":d}),l.default.createElement(Yo,{colorScheme:null!=i&&i.includes("dark")?"dark":"light"}),r)}Jo.displayName="BaseStyles";const Qo=e=>be(e.sx),et=i.default.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(oe,_,H,z,F,W,G,$,q,te,Qo),rt=o.css(["box-shadow:none;outline:2px solid ",";"],Or("colors.accent.fg")),ot=e=>o.css(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],rt,void 0===e?"2px":e,rt,void 0===e?"2px":e),tt=i.default.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],ot("-2px"),Qo),at=(e="default",r)=>({default:{color:"btn.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}, ${null==r?void 0:r.shadows.btn.insetShadow}`,"&:hover:not([disabled]):not([data-inactive])":{backgroundColor:"btn.hoverBg",borderColor:`var(--button-default-borderColor-hover, ${null==r?void 0:r.colors.btn.hoverBorder})`},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},"&:disabled":{color:"primer.fg.disabled",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:`var(--button-default-bgColor-disabled, ${null==r?void 0:r.colors.input.disabledBg})`,"[data-component=ButtonCounter]":{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},'[data-component="leadingVisual"], [data-component="trailingVisual"], [data-component="trailingAction"]':{color:`var(--button-color, ${null==r?void 0:r.colors.fg.muted})`},"[data-component=ButtonCounter]":{backgroundColor:"btn.counterBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"}},primary:{color:"btn.primary.text",backgroundColor:"btn.primary.bg",borderColor:"btn.primary.border",boxShadow:`${null==r?void 0:r.shadows.btn.primary.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.primary.hoverText",backgroundColor:"btn.primary.hoverBg"},"&:focus:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:focus-visible:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`},"&:disabled":{color:"btn.primary.disabledText",backgroundColor:"btn.primary.disabledBg",borderColor:"btn.primary.disabledBorder","[data-component=ButtonCounter]":{color:"inherit"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.primary.counterBg",color:"btn.primary.text"},"&[aria-expanded=true]":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`}},danger:{color:"btn.danger.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.danger.hoverText",backgroundColor:"btn.danger.hoverBg",borderColor:"btn.danger.hoverBorder",boxShadow:`${null==r?void 0:r.shadows.btn.danger.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.danger.hoverCounterBg",color:"btn.danger.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"},"&:disabled":{color:"btn.danger.disabledText",backgroundColor:"btn.danger.disabledBg",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,"[data-component=ButtonCounter]":{color:"btn.danger.disabledCounterFg",backgroundColor:"btn.danger.disabledCounterBg"}},"[data-component=ButtonCounter]":{color:"btn.danger.counterFg",backgroundColor:"btn.danger.counterBg"},"&[aria-expanded=true]":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"}},invisible:{color:"btn.text",backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none","&:hover:not([disabled])":{backgroundColor:"actionListItem.default.hoverBg"},"&:active:not([disabled])":{backgroundColor:"actionListItem.default.activeBg"},"&:disabled":{color:"primer.fg.disabled",'[data-component=ButtonCounter], [data-component="leadingVisual"], [data-component="trailingAction"]':{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"actionListItem.default.selectedBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"},'[data-component="trailingAction"]':{color:"fg.muted"},'[data-component="leadingVisual"]':{color:"fg.muted"},"&[data-no-visuals]":{color:"accent.fg"},'&:has([data-component="ButtonCounter"])':{color:"btn.text"},"&:disabled[data-no-visuals]":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}}},outline:{color:"btn.outline.text",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,borderColor:`var(--button-default-borderColor-rest, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:"btn.bg","&:hover:not([disabled]):not([data-inactive])":{color:"btn.outline.hoverText",backgroundColor:"btn.outline.hoverBg",borderColor:`${null==r?void 0:r.colors.btn.outline.hoverBorder}`,boxShadow:`${null==r?void 0:r.shadows.btn.outline.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.hoverCounterBg",color:"btn.outline.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`${null==r?void 0:r.colors.btn.outline.selectedBorder}`},"&:disabled":{color:"btn.outline.disabledText",backgroundColor:"btn.outline.disabledBg",borderColor:"btn.border","[data-component=ButtonCounter]":{backgroundColor:"btn.outline.disabledCounterBg",color:"btn.outline.disabledCounterFg"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.counterBg",color:"btn.outline.counterFg"},"&[aria-expanded=true]":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.outline.selectedBorder})`}}}[e]),nt=e=>({borderRadius:"2",border:"1px solid",borderColor:`var(--button-default-borderColor-rest, ${null==e?void 0:e.colors.btn.border})`,fontFamily:"inherit",fontWeight:"semibold",fontSize:"1",cursor:"pointer",appearance:"none",userSelect:"none",textDecoration:"none",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px",padding:"0 12px",gap:"8px",minWidth:"max-content",transition:"80ms cubic-bezier(0.65, 0, 0.35, 1)",transitionProperty:"color, fill, background-color, border-color","&[href]":{display:"inline-flex","&:hover":{textDecoration:"none"}},"&:hover":{transitionDuration:"80ms"},"&:active":{transition:"none"},"&[data-inactive]":{cursor:"auto"},"&:disabled":{cursor:"not-allowed",boxShadow:"none"},"@media (forced-colors: active)":{"&:focus":{outline:"solid 1px transparent"}},"[data-component=ButtonCounter]":{fontSize:"0"},"&[data-component=IconButton]":{display:"inline-grid",padding:"unset",placeContent:"center",width:"32px",minWidth:"unset"},'&[data-size="small"]':{padding:"0 8px",height:"28px",gap:"4px",fontSize:"0",'[data-component="text"]':{lineHeight:"calc(20 / 12)"},"[data-component=ButtonCounter]":{fontSize:"0"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"4px"},"&[data-component=IconButton]":{width:"28px",padding:"unset"}},'&[data-size="large"]':{padding:"0 16px",height:"40px",gap:"8px",'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"},"&[data-component=IconButton]":{width:"40px",padding:"unset"}}}),lt=e=>({...nt(e),'&[data-block="block"]':{width:"100%"},"&[data-inactive]:not([disabled])":{backgroundColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,borderColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,color:`var(--button-inactive-fgColor, ${null==e?void 0:e.colors.btn.inactive.text})`},"&[data-inactive]:not([disabled]):focus-visible":{boxShadow:"none"},'[data-component="leadingVisual"]':{gridArea:"leadingVisual"},'[data-component="text"]':{gridArea:"text",lineHeight:"calc(20/14)",whiteSpace:"nowrap"},'[data-component="trailingVisual"]':{gridArea:"trailingVisual"},'[data-component="trailingAction"]':{marginRight:"-4px"},'[data-component="buttonContent"]':{flex:"1 0 auto",display:"grid",gridTemplateAreas:'"leadingVisual text trailingVisual"',gridTemplateColumns:"min-content minmax(0, auto) min-content",alignItems:"center",alignContent:"center"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"}}),it=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"}),ct={},dt=i.default.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?Qo:"\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n "));function st(){return st=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},st.apply(this,arguments)}const ut=r.forwardRef((({scheme:e="secondary",sx:r=ct,children:o,...t},a)=>l.default.createElement(l.default.Fragment,null,l.default.createElement(et,st({"aria-hidden":"true",sx:Vr({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",border:"var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--counter-borderColor,var(--color-counter-border))",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},r)},t,{as:"span",ref:a}),o),l.default.createElement(dt,null," (",o,")"))));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gt.apply(this,arguments)}ut.displayName="CounterLabel";const bt=r.forwardRef((({children:e,as:o="button",sx:t=ct,...a},n)=>{const{leadingVisual:i,trailingVisual:c,trailingAction:d,count:s,icon:u,variant:g="default",size:b="medium",alignContent:v="center",block:f=!1,inactive:h,...p}=a,m=l.default.useRef(null);Ho(n,m);const{theme:y}=Ko(),x=r.useMemo((()=>Vr.all([lt(y),at(g,y)])),[y,g]),C=r.useMemo((()=>Vr(x,t)),[x,t]),w={display:"flex",pointerEvents:"none"};return l.default.createElement(tt,gt({as:o,sx:C},p,{ref:m,"data-block":f?"block":null,"data-size":"small"===b||"large"===b?b:void 0,"data-no-visuals":!(i||c||d)||void 0,"data-inactive":!!h||void 0}),u?l.default.createElement(u,null):l.default.createElement(l.default.Fragment,null,l.default.createElement(et,{as:"span","data-component":"buttonContent",sx:it(v)},i&&l.default.createElement(et,{as:"span","data-component":"leadingVisual",sx:{...w}},l.default.createElement(i,null)),e&&l.default.createElement("span",{"data-component":"text"},e),void 0===s||c?c?l.default.createElement(et,{as:"span","data-component":"trailingVisual",sx:{...w}},l.default.createElement(c,null)):null:l.default.createElement(et,{as:"span","data-component":"trailingVisual",sx:{...w}},l.default.createElement(ut,{"data-component":"ButtonCounter"},s))),d&&l.default.createElement(et,{as:"span","data-component":"trailingAction",sx:{...w}},l.default.createElement(d,null))))}));function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vt.apply(this,arguments)}const ft=r.forwardRef((({children:e,sx:r=ct,...o},t)=>{const{block:a,size:n,leadingVisual:i,trailingVisual:c,trailingAction:d}=o;let s=r;const u={};if(null!==r&&Object.keys(r).length>0){s=ht({block:a,size:n,leadingVisual:i,trailingVisual:c,trailingAction:d},r);const{color:e}=r;e&&(u["--button-color"]=e)}return l.default.createElement(bt,vt({ref:t,as:"button",sx:s,style:u,type:"button"},o),e)}));function ht(e,r){const o=e.size&&"medium"!==e.size?`[data-size="${e.size}"]`:"",t=e.block?'[data-block="block"]':"",a=e.leadingVisual||e.trailingVisual||e.trailingAction?"":"[data-no-visuals]",n={};return r?(n[`&${o}${t}${a}`]=r,n):n}ft.displayName="Button";const pt=function(){};var mt=class extends Event{oldState;newState;constructor(e,{oldState:r="",newState:o="",...t}={}){super(e,t),this.oldState=String(r||""),this.newState=String(o||"")}},yt=new WeakMap;function xt(e,r,o){yt.set(e,setTimeout((()=>{yt.has(e)&&e.dispatchEvent(new mt("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var Ct=globalThis.ShadowRoot||function(){},wt=globalThis.HTMLDialogElement||function(){},kt=new WeakMap,Bt=new WeakMap,Et=new WeakMap;function Tt(e){return Et.get(e)||"hidden"}var St=new WeakMap;function It(e,r){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!r||"showing"===Tt(e))&&(!(!r&&"hidden"!==Tt(e))&&(!(e instanceof wt&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Mt(e){return e?Array.from(Bt.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Nt(e){const r=Lt(e),o=function(e){for(;e;){const r=e.popoverTargetElement;if(r instanceof HTMLElement)return r;if((e=e.parentElement||At(e))instanceof Ct&&(e=e.host),e instanceof Document)return}}(e);return Mt(r)>Mt(o)?r:o}function Ot(e){const r=Bt.get(e);for(const e of r||[]){if(e.isConnected)return e;r.delete(e)}return null}function At(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?At(e.parentNode):e}function Lt(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===Et.get(e))return e;if((e=e.parentElement||At(e))instanceof Ct&&(e=e.host),e instanceof Document)return}}function jt(e){return!(e.hidden||e instanceof Ct)&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&("number"==typeof e.tabIndex&&-1!==e.tabIndex))))}function Rt(e){(function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let r=e;r.shadowRoot&&(r=r.shadowRoot);let o=r.querySelector("[autofocus]");if(o)return o;{const e=r.querySelectorAll("slot");for(const r of e){const e=r.assignedElements({flatten:!0});for(const r of e){if(r.hasAttribute("autofocus"))return r;if(o=r.querySelector("[autofocus]"),o)return o}}}const t=e.ownerDocument.createTreeWalker(r,NodeFilter.SHOW_ELEMENT);let a=t.currentNode;for(;a;){if(jt(a))return a;a=t.nextNode()}})(e)?.focus()}var Dt=new WeakMap;function zt(e){if(!It(e,!1))return;const r=e.ownerDocument;if(!e.dispatchEvent(new mt("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!It(e,!1))return;let o=!1;if("auto"===e.popover){const o=e.getAttribute("popover"),t=function(e){const r=new Map;let o=0;const t=e.ownerDocument;for(const e of Bt.get(t)||[])r.set(e,o),o+=1;r.set(e,o),o+=1;let a=null;return function(e){const o=Lt(e);if(null===o)return null;const t=r.get(o);(null===a||r.get(a)<t)&&(a=o)}(e?.parentElement),a}(e)||r;if(Ht(t,!1,!0),o!==e.getAttribute("popover")||!It(e,!1))return}Ot(r)||(o=!0),Dt.delete(e);const t=r.activeElement;e.classList.add(":popover-open"),Et.set(e,"showing"),kt.has(r)||kt.set(r,new Set),kt.get(r).add(e),Rt(e),"auto"===e.popover&&(Bt.has(r)||Bt.set(r,new Set),Bt.get(r).add(e),Zt(St.get(e),!0)),o&&t&&"auto"===e.popover&&Dt.set(e,t),xt(e,"closed","open")}function Pt(e,r=!1,o=!1){if(!It(e,!0))return;const t=e.ownerDocument;if("auto"===e.popover&&(Ht(e,r,o),!It(e,!0)))return;if(Zt(St.get(e),!1),St.delete(e),o&&(e.dispatchEvent(new mt("beforetoggle",{oldState:"open",newState:"closed"})),!It(e,!0)))return;kt.get(t)?.delete(e),Bt.get(t)?.delete(e),e.classList.remove(":popover-open"),Et.set(e,"hidden"),o&&xt(e,"open","closed");const a=Dt.get(e);a&&(Dt.delete(e),r&&a.focus())}function _t(e,r=!1,o=!1){let t=Ot(e);for(;t;)Pt(t,r,o),t=Ot(e)}function Ht(e,r,o){const t=e.ownerDocument||e;if(e instanceof Document)return _t(t,r,o);let a=null,n=!1;for(const r of Bt.get(t)||[])if(r===e)n=!0;else if(n){a=r;break}if(!n)return _t(t,r,o);for(;a&&"showing"===Tt(a)&&Bt.get(t)?.size;)Pt(a,r,o)}var Ft=new WeakMap;function Vt(e){if(!e.isTrusted)return;const r=e.composedPath()[0];if(!r)return;const o=r.ownerDocument;if(!Ot(o))return;const t=Nt(r);if(t&&"pointerdown"===e.type)Ft.set(o,t);else if("pointerup"===e.type){const e=Ft.get(o)===t;Ft.delete(o),e&&Ht(t||o,!1,!0)}}var Wt=new WeakMap;function Zt(e,r=!1){if(!e)return;Wt.has(e)||Wt.set(e,e.getAttribute("aria-expanded"));const o=e.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)e.setAttribute("aria-expanded",String(r));else{const r=Wt.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var $t=globalThis.ShadowRoot||function(){};function Kt(e,r,o){const t=e[r];Object.defineProperty(e,r,{value(e){return t.call(this,o(e))}})}var Gt=/(^|[^\\]):popover-open\b/g,Ut="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",qt=null;function Yt(e){if(null===qt)try{(qt=new CSSStyleSheet).replaceSync(Ut)}catch{qt=!1}if(!1===qt){const r=document.createElement("style");r.textContent=Ut,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[qt,...e.adoptedStyleSheets]}function Xt(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(Gt,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||mt,Kt(Document.prototype,"querySelector",e),Kt(Document.prototype,"querySelectorAll",e),Kt(Element.prototype,"querySelector",e),Kt(Element.prototype,"querySelectorAll",e),Kt(Element.prototype,"matches",e),Kt(Element.prototype,"closest",e),Kt(DocumentFragment.prototype,"querySelectorAll",e),Kt(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){zt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Pt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===Et.get(this)&&void 0===e||!1===e?Pt(this,!0,!0):void 0!==e&&!0!==e||zt(this)}}});const r=Element.prototype.attachShadow;r&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const o=r.call(this,e);return Yt(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=o.call(this);return e.shadowRoot&&Yt(e.shadowRoot),e}}});const t=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),t.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),t.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=t.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return t.delete(this),null;const r=At(this),o=this.getAttribute("popovertarget");return(r instanceof Document||r instanceof $t)&&o&&r.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}a(HTMLButtonElement),a(HTMLInputElement);const n=e=>{const r=e.composedPath()[0];if(!(r instanceof Element)||r?.shadowRoot)return;const o=At(r);if(!(o instanceof $t||o instanceof Document))return;const t=r.closest("[popovertargetaction],[popovertarget]");return t?(function(e){const r=e.popoverTargetElement;if(!(r instanceof HTMLElement))return;const o=Tt(r);"show"===e.popoverTargetAction&&"showing"===o||"hide"===e.popoverTargetAction&&"hidden"===o||("showing"===o?Pt(r,!0,!0):It(r,!1)&&(St.set(r,e),zt(r)))}(t),void e.preventDefault()):void 0},l=e=>{const r=e.key,o=e.target;e.defaultPrevented||!o||"Escape"!==r&&"Esc"!==r||Ht(o.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",n),e.addEventListener("keydown",l),e.addEventListener("pointerdown",Vt),e.addEventListener("pointerup",Vt)})(document),Yt(document)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Jt.apply(this,arguments)}const Qt="\n animation-name: tooltip-appear;\n animation-duration: 0.1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n",ea=i.default.span.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-e45c7z-0"})(["display:none;&[popover]{position:absolute;padding:0.5em 0.75em;width:max-content;margin:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;word-wrap:break-word;background:",";border-radius:",";border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}&[popover]:popover-open{display:block;}&[popover].\\:popover-open{display:block;}@media (forced-colors:active){outline:1px solid transparent;}&::after{position:absolute;display:block;right:0;left:0;height:var(--overlay-offset,0.25rem);content:'';}&[data-direction='n']::after,&[data-direction='ne']::after,&[data-direction='nw']::after{top:100%;}&[data-direction='s']::after,&[data-direction='se']::after,&[data-direction='sw']::after{bottom:100%;}&[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}&[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:popover-open,&:popover-open::before{","}&.\\:popover-open,&.\\:popover-open::before{","}",";"],Or("fonts.normal"),Or("colors.fg.onEmphasis"),Or("colors.neutral.emphasisPlus"),Or("radii.2"),Qt,Qt,Qo),ra={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},oa={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},ta=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],aa=e=>ta.some((r=>e.matches(r)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),na=l.default.createContext({}),la=l.default.forwardRef((({direction:e="s",text:o,type:t="description",children:a,id:n,...i},c)=>{const d=Fo(n),s=r.Children.only(a),u=Ur(c),g=r.useRef(null),[b,v]=r.useState(e),[f,h]=r.useState(!1),p=()=>{if(g.current&&u.current&&g.current.hasAttribute("popover")&&!g.current.matches(":popover-open")){const r=g.current,o=u.current;r.showPopover(),h(!0);const t={side:ra[e].side,align:ra[e].align},{top:a,left:n,anchorAlign:l,anchorSide:i}=so(r,o,t);v(oa[`${i}-${l}`]),r.style.top=`${a}px`,r.style.left=`${n}px`}},m=()=>{g.current&&u.current&&g.current.hasAttribute("popover")&&g.current.matches(":popover-open")&&(g.current.hidePopover(),h(!1))},y=r.useMemo((()=>({tooltipId:d})),[d]);return r.useEffect((()=>{if(!g.current||!u.current)return;const e=aa(u.current),r=u.current.childNodes,o=Array.from(r).some((e=>e instanceof HTMLElement&&aa(e)));if(e||o||pt(!1),"label"===t){u.current.hasAttribute("aria-label"),Array.from(u.current.childNodes).some((e=>e instanceof HTMLElement&&e.hasAttribute("aria-label")))}"undefined"!=typeof window&&("undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||Xt());g.current.setAttribute("popover","auto")}),[g,u,e,t]),Jr((e=>{f&&(e.stopImmediatePropagation(),e.preventDefault(),m())}),[f]),l.default.createElement(na.Provider,{value:y},l.default.createElement(l.default.Fragment,null,l.default.isValidElement(s)&&l.default.cloneElement(s,{ref:u,"aria-describedby":"description"===t?d:s.props["aria-describedby"],"aria-labelledby":"label"===t?d:s.props["aria-labelledby"],onBlur:e=>{var r,o;m(),null===(r=(o=s.props).onBlur)||void 0===r||r.call(o,e)},onFocus:e=>{var r,o;try{if(!e.target.matches(":focus-visible"))return}catch(e){}p(),null===(r=(o=s.props).onFocus)||void 0===r||r.call(o,e)},onMouseEnter:e=>{var r,o;p(),null===(r=(o=s.props).onMouseEnter)||void 0===r||r.call(o,e)},onMouseLeave:e=>{var r,o;m(),null===(r=(o=s.props).onMouseLeave)||void 0===r||r.call(o,e)}}),l.default.createElement(ea,Jt({ref:g,"data-direction":b},i,{role:"description"===t?"tooltip":void 0,"aria-hidden":"label"===t||void 0,id:d,onMouseEnter:p,onMouseLeave:m}),o)))}));function ia(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=ia(e[r]))&&(t&&(t+=" "),t+=o);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function ca(){for(var e,r,o=0,t="";o<arguments.length;)(e=arguments[o++])&&(r=ia(e))&&(t&&(t+=" "),t+=r);return t}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},da.apply(this,arguments)}const sa=i.default.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus,&:focus-within{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus,&.tooltipped-multiline:focus-within{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}",";"],Or("fonts.normal"),Or("colors.fg.onEmphasis"),Or("colors.neutral.emphasisPlus"),Or("radii.2"),Or("space.3"),Or("space.3"),Or("space.3"),Or("space.3"),Qo),ua=l.default.createContext({});function ga({direction:e="n",children:o,className:t,text:a,noDelay:n,align:i,wrap:c,id:d,...s}){const u=Fo(d),g=ca(t,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,n&&"tooltipped-no-delay",c&&"tooltipped-multiline"),b=r.useMemo((()=>({tooltipId:u})),[u]);return l.default.createElement(ua.Provider,{value:b},l.default.createElement(sa,da({role:"tooltip","aria-label":a,id:u},s,{className:g}),o))}function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ba.apply(this,arguments)}ga.displayName="Tooltip",ga.alignments=["left","right"],ga.directions=["n","ne","e","se","s","sw","w","nw"];const va=r.forwardRef((({sx:e=ct,icon:r,"aria-label":o,description:t,disabled:a,tooltipDirection:n,unsafeDisableTooltip:i=!0,...c},d)=>{let s=e;const{size:u}=c;null!==e&&Object.keys(e).length>0&&(s=ht({size:u},e));const{tooltipId:g}=l.default.useContext(na),{tooltipId:b}=l.default.useContext(ua);return i||a||void 0===o||""===o||(g||b)?l.default.createElement(bt,ba({icon:r,"data-component":"IconButton",sx:s,type:"button","aria-label":o,disabled:a},c,{ref:d})):l.default.createElement(la,{ref:d,text:null!=t?t:o,type:t?void 0:"label",direction:n},l.default.createElement(bt,ba({icon:r,"data-component":"IconButton",sx:s,type:"button","aria-label":t?o:void 0},c)))}));function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},fa.apply(this,arguments)}const ha=r.forwardRef((({children:e,as:r="a",sx:o=ct,...t},a)=>l.default.createElement(bt,fa({as:r,ref:a,sx:o},t),e))),pa=!("undefined"==typeof window||!window.document||!window.document.createElement);function ma(e,o){const t=r.useContext(ya),[a,n]=l.default.useState((()=>void 0!==t[e]?t[e]:void 0!==o?o:!!pa&&window.matchMedia(e).matches));return r.useEffect((()=>{void 0!==t[e]&&n(t[e])}),[t,e]),r.useEffect((()=>{if(void 0!==t[e])return;function r(e){n(e.matches)}const o=window.matchMedia(e);return o.addEventListener?o.addEventListener("change",r):o.addListener(r),n(o.matches),()=>{o.addEventListener?o.removeEventListener("change",r):o.removeListener(r)}}),[t,e]),a}const ya=r.createContext({}),xa={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function Ca(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function wa(e,r){const o=ma(xa.narrow,!1),t=ma(xa.regular,!1),a=ma(xa.wide,!1);if(Ca(e)){const n=e;return o&&"narrow"in n?n.narrow:a&&"wide"in n?n.wide:t&&"regular"in n?n.regular:r}return e}function ka(e,r){const o=(t=r,a=()=>{},Object.keys(t).reduce(((e,r)=>(e[r]=a(t[r]),e)),{}));var t,a;const n=[],i=Object.keys(r),c=Object.values(r);return l.default.Children.forEach(e,(e=>{if(!l.default.isValidElement(e))return void n.push(e);const r=c.findIndex((r=>{if(Array.isArray(r)){const[o,t]=r;return e.type===o&&t(e.props)}return e.type===r}));if(-1===r)return void n.push(e);const t=i[r];o[t]||(o[t]=e)})),[o,n]}function Ba(e){const[o,t]=r.useState(!1);return r.useEffect((()=>{if(null===e.current)return;const r=new ResizeObserver((e=>{for(const r of e)t(r.target.scrollHeight>r.target.clientHeight||r.target.scrollWidth>r.target.clientWidth)}));return r.observe(e.current),()=>{r.disconnect()}}),[e]),o}var Ea=new Map,Ta=new WeakMap,Sa=0,Ia=void 0;function Ma(e){return Object.keys(e).sort().filter((r=>void 0!==e[r])).map((r=>`${r}_${"root"===r?function(e){return e?(Ta.has(e)||(Sa+=1,Ta.set(e,Sa.toString())),Ta.get(e)):"0"}(e.root):e[r]}`)).toString()}function Na(e,r,o={},t=Ia){if(void 0===window.IntersectionObserver&&void 0!==t){const a=e.getBoundingClientRect();return r(t,{isIntersecting:t,target:e,intersectionRatio:"number"==typeof o.threshold?o.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:n,elements:l}=function(e){const r=Ma(e);let o=Ea.get(r);if(!o){const t=new Map;let a;const n=new IntersectionObserver((r=>{r.forEach((r=>{var o;const n=r.isIntersecting&&a.some((e=>r.intersectionRatio>=e));e.trackVisibility&&void 0===r.isVisible&&(r.isVisible=n),null==(o=t.get(r.target))||o.forEach((e=>{e(n,r)}))}))}),e);a=n.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:r,observer:n,elements:t},Ea.set(r,o)}return o}(o),i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(r),n.observe(e),function(){i.splice(i.indexOf(r),1),0===i.length&&(l.delete(e),n.unobserve(e)),0===l.size&&(n.disconnect(),Ea.delete(a))}}function Oa({threshold:e,delay:r,trackVisibility:o,rootMargin:t,root:a,triggerOnce:n,skip:i,initialInView:c,fallbackInView:d,onChange:s}={}){var u;const[g,b]=l.useState(null),v=l.useRef(),[f,h]=l.useState({inView:!!c,entry:void 0});v.current=s,l.useEffect((()=>{if(i||!g)return;let l;return l=Na(g,((e,r)=>{h({inView:e,entry:r}),v.current&&v.current(e,r),r.isIntersecting&&n&&l&&(l(),l=void 0)}),{root:a,rootMargin:t,threshold:e,trackVisibility:o,delay:r},d),()=>{l&&l()}}),[Array.isArray(e)?e.toString():e,g,a,t,n,i,o,d,r]);const p=null==(u=f.entry)?void 0:u.target,m=l.useRef();g||!p||n||i||m.current===p||(m.current=p,h({inView:!!c,entry:void 0}));const y=[b,f.inView,f.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function Aa(e){return e&&e!==document.body?function(e){const r=e.scrollHeight>e.clientHeight;return r&&!(-1!==window.getComputedStyle(e).overflowY.indexOf("hidden"))}(e)?e:Aa(e.parentElement):null}const La=!!pa&&CSS.supports("-webkit-touch-callout","none"),ja=!!pa&&(CSS.supports("max-height","100dvh")&&La);function Ra(e){return ja?`${e}dvh`:`${e}vh`}function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Da.apply(this,arguments)}const za=1,Pa=2,_a=3,Ha=4,Fa={none:0,condensed:3,normal:[3,null,null,4]},Va=l.default.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),Wa={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},Za=({containerWidth:e="xlarge",padding:o="normal",rowGap:t="normal",columnGap:a="normal",children:n,sx:i={},_slotsConfig:c})=>{const{rootRef:d,enableStickyPane:s,disableStickyPane:u,contentTopRef:g,contentBottomRef:b,stickyPaneHeight:v}=function(){const e=l.default.useRef(null),[r,o]=l.default.useState(Ra(100)),[t,a]=l.default.useState(0),[n,i,c]=Oa(),[d,s]=Oa(),u=l.default.useCallback((()=>{let r="";const a=Aa(e.current),n=null==c?void 0:c.target.getBoundingClientRect(),l="number"==typeof t?`${t}px`:t;if(a){const e=a.getBoundingClientRect(),o=n?Math.max(n.top-e.top,0):0;r=`calc(${e.height}px - (max(${o}px, ${l})))`}else{const e=n?Math.max(n.top,0):0;r=`calc(${Ra(100)} - (max(${e}px, ${l})))`}o(r)}),[c,t]),[g,b]=l.default.useState(!1);return Oo((()=>{const r=Aa(e.current);return g&&(i||s)&&(u(),r?r.addEventListener("scroll",u):window.addEventListener("scroll",u),window.addEventListener("resize",u)),()=>{r?r.removeEventListener("scroll",u):window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}}),[g,i,s,u]),{rootRef:e,enableStickyPane:function(e){b(!0),a(e)},disableStickyPane:function(){b(!1)},contentTopRef:n,contentBottomRef:d,stickyPaneHeight:r}}(),f=r.useRef(null),[h,p]=ka(n,null!=c?c:{header:Ya,footer:nn});return l.default.createElement(Va.Provider,{value:{padding:o,rowGap:t,columnGap:a,enableStickyPane:s,disableStickyPane:u,contentTopRef:g,contentBottomRef:b,paneRef:f}},l.default.createElement(et,{ref:d,style:{"--sticky-pane-height":v},sx:Vr({padding:Fa[o]},i)},l.default.createElement(et,{sx:{maxWidth:Wa[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},h.header,l.default.createElement(et,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},p),h.footer)))};Za.displayName="Root",Za.displayName="PageLayout";const $a={none:{display:"none"},line:{display:"block",height:1,backgroundColor:"border.default"},filled:{display:"block",height:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset 0 -1px 0 0 ${e.colors.border.default}, inset 0 1px 0 0 ${e.colors.border.default}`}};const Ka=({variant:e="none",sx:r={}})=>{const{padding:o}=l.default.useContext(Va),t=wa(e,"none");return l.default.createElement(et,{sx:e=>{return Vr({marginX:(a=Fa[o],Array.isArray(a)?a.map((e=>null===e?null:-e)):null===a?null:-a),...$a[t],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},r);var a}})};Ka.displayName="HorizontalDivider";const Ga={none:{display:"none"},line:{display:"block",width:1,backgroundColor:"border.default"},filled:{display:"block",width:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset -1px 0 0 0 ${e.colors.border.default}, inset 1px 0 0 0 ${e.colors.border.default}`}},Ua=o.createGlobalStyle(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),qa=({variant:e="none",draggable:r=!1,onDragStart:o,onDrag:t,onDragEnd:a,onDoubleClick:n,sx:i={}})=>{const[c,d]=l.default.useState(!1),[s,u]=l.default.useState(!1),g=wa(e,"none"),b=l.default.useRef(t),v=l.default.useRef(a),{paneRef:f}=l.default.useContext(Va),[h,p]=l.default.useState(0),[m,y]=l.default.useState(0),[x,C]=l.default.useState(0);return l.default.useEffect((()=>{if(null!==f.current){const e=getComputedStyle(f.current),r=e.getPropertyValue("--pane-max-width-diff"),o=e.getPropertyValue("--pane-min-width"),t=f.current.getBoundingClientRect().width,a=Number(r.split("px")[0]),n=Number(o.split("px")[0]),l=window.innerWidth,i=l>a?l-a:l;p(n),y(i),C(t||0)}}),[f,s,c]),l.default.useEffect((()=>{b.current=t}),[t]),l.default.useEffect((()=>{v.current=a}),[a]),l.default.useEffect((()=>{function e(e){var r;null===(r=b.current)||void 0===r||r.call(b,e.movementX,!1),e.preventDefault()}function r(e){var r;d(!1),null===(r=v.current)||void 0===r||r.call(v),e.preventDefault()}function o(e){var r;let o=0;if(("ArrowLeft"===e.key||"ArrowDown"===e.key)&&x>h)o=-3;else{if("ArrowRight"!==e.key&&"ArrowUp"!==e.key||!(x<m))return;o=3}C(x+o),null===(r=b.current)||void 0===r||r.call(b,o,!0),e.preventDefault()}function t(e){var r;u(!1),null===(r=v.current)||void 0===r||r.call(v),e.preventDefault()}return c||s?(window.addEventListener("mousemove",e),window.addEventListener("keydown",o),window.addEventListener("mouseup",r),window.addEventListener("keyup",t),document.body.setAttribute("data-page-layout-dragging","true")):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")}}),[c,s,x,h,m]),l.default.createElement(et,{sx:Vr({height:"100%",position:"relative",...Ga[g]},i)},r?l.default.createElement(l.default.Fragment,null,l.default.createElement(et,{sx:{position:"absolute",inset:"0 -2px",cursor:"col-resize",bg:c||s?"accent.fg":"transparent",transitionDelay:"0.1s","&:hover":{bg:c||s?"accent.fg":"neutral.muted"}},role:"slider","aria-label":"Draggable pane splitter","aria-valuemin":h,"aria-valuemax":m,"aria-valuenow":x,"aria-valuetext":`Pane width ${x} pixels`,tabIndex:0,onMouseDown:e=>{0===e.button&&(d(!0),null==o||o())},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(u(!0),null==o||o())},onDoubleClick:n}),l.default.createElement(Ua,null)):null)};qa.displayName="VerticalDivider";const Ya=({"aria-label":e,"aria-labelledby":r,padding:o="none",divider:t="none",dividerWhenNarrow:a="inherit",hidden:n=!1,children:i,sx:c={}})=>{const d=wa(Ca(t)||"inherit"===a?t:{regular:t,narrow:a},"none"),s=wa(n,!1),{rowGap:u}=l.default.useContext(Va);return l.default.createElement(et,{as:"header","aria-label":e,"aria-labelledby":r,hidden:s,sx:Vr({width:"100%",marginBottom:Fa[u]},c)},l.default.createElement(et,{sx:{padding:Fa[o]}},i),l.default.createElement(Ka,{variant:d,sx:{marginTop:Fa[u]}}))};Ya.displayName="Header",Ya.displayName="PageLayout.Header";const Xa={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},Ja=({as:e="main","aria-label":r,"aria-labelledby":o,width:t="full",padding:a="none",hidden:n=!1,children:i,sx:c={}})=>{const d=wa(n,!1),{contentTopRef:s,contentBottomRef:u}=l.default.useContext(Va);return l.default.createElement(et,{as:e,"aria-label":r,"aria-labelledby":o,sx:Vr({display:d?"none":"flex",flexDirection:"column",order:Pa,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},c)},l.default.createElement(et,{ref:s}),l.default.createElement(et,{sx:{width:"100%",maxWidth:Xa[t],marginX:"auto",flexGrow:1,padding:Fa[a]}},i),l.default.createElement(et,{ref:u}))};Ja.displayName="Content",Ja.displayName="PageLayout.Content";const Qa=e=>void 0!==e.default,en=e=>["small","medium","large"].includes(e),rn={start:za,end:_a},on={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},tn={small:256,medium:296,large:320},an=l.default.forwardRef((({"aria-label":e,"aria-labelledby":r,position:o="end",positionWhenNarrow:t="inherit",width:a="medium",minWidth:n=256,padding:i="none",resizable:c=!1,widthStorageKey:d="paneWidth",divider:s="none",dividerWhenNarrow:u="inherit",sticky:g=!1,offsetHeader:b=0,hidden:v=!1,children:f,id:h,sx:p={}},m)=>{const y=wa(Ca(o)||"inherit"===t?o:{regular:o,narrow:t},"end"),x=wa(Ca(s)||"inherit"===u?s:{regular:s,narrow:u},"none"),C=wa(v,!1),{rowGap:w,columnGap:k,enableStickyPane:B,disableStickyPane:E,paneRef:T}=l.default.useContext(Va);l.default.useEffect((()=>{g?null==B||B(b):null==E||E()}),[g,B,E,b]);const S=e=>en(e)?tn[e]:Qa(e)?Number(e.default.split("px")[0]):0,[I,M]=l.default.useState((()=>{if(!pa)return S(a);let e;try{e=localStorage.getItem(d)}catch(r){e=null}return e&&!isNaN(Number(e))?Number(e):S(a)})),N=e=>{M(e);try{localStorage.setItem(d,e.toString())}catch(e){}};Ho(m,T);const O=Ba(T),A=Fo(h),L={};return O&&(r?L["aria-labelledby"]=r:e&&(L["aria-label"]=e)),l.default.createElement(et,{sx:e=>Vr({display:C?"none":"flex",order:rn[y],width:"100%",marginX:0,..."end"===y?{flexDirection:"column",marginTop:Fa[w]}:{flexDirection:"column-reverse",marginBottom:Fa[w]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...g?{position:"sticky",top:"number"==typeof b?`${b}px`:b,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===y?{flexDirection:"row-reverse",marginLeft:Fa[k]}:{flexDirection:"row",marginRight:Fa[k]}}},p)},l.default.createElement(Ka,{variant:{narrow:x,regular:"none"},sx:{["end"===y?"marginBottom":"marginTop"]:Fa[w]}}),l.default.createElement(et,Da({ref:T,style:{"--pane-width":`${I}px`},sx:e=>({"--pane-min-width":Qa(a)?a.min:`${n}px`,"--pane-max-width-diff":"511px","--pane-max-width":Qa(a)?a.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:en(a)?on[a]:a.default,padding:Fa[i],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},O&&{tabIndex:0,role:"region"},L,h&&{id:A}),f),l.default.createElement(qa,{variant:{narrow:"none",regular:c?"line":x},draggable:c,sx:{["end"===y?"marginRight":"marginLeft"]:Fa[k]},onDrag:(e,r=!1)=>{let o;o=r?e:"end"===y?-e:e,N(I+o)},onDragEnd:()=>{var e;const r=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();r&&N(r.width)},onDoubleClick:()=>N(S(a))}))}));an.displayName="PageLayout.Pane";const nn=({"aria-label":e,"aria-labelledby":r,padding:o="none",divider:t="none",dividerWhenNarrow:a="inherit",hidden:n=!1,children:i,sx:c={}})=>{const d=wa(Ca(t)||"inherit"===a?t:{regular:t,narrow:a},"none"),s=wa(n,!1),{rowGap:u}=l.default.useContext(Va);return l.default.createElement(et,{as:"footer","aria-label":e,"aria-labelledby":r,hidden:s,sx:Vr({order:Ha,width:"100%",marginTop:Fa[u]},c)},l.default.createElement(Ka,{variant:d,sx:{marginBottom:Fa[u]}}),l.default.createElement(et,{sx:{padding:Fa[o]}},i))};nn.displayName="Footer",nn.displayName="PageLayout.Footer";const ln=Object.assign(Za,{Header:Ya,Content:Ja,Pane:an,Footer:nn});function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},cn.apply(this,arguments)}const dn=e=>l.default.createElement(ln,cn({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:sn,footer:bn}},e));dn.displayName="Root",dn.displayName="SplitPageLayout";const sn=({padding:e="normal",divider:r="line",...o})=>l.default.createElement(ln.Header,cn({padding:e,divider:r},o));sn.displayName="Header",sn.displayName="SplitPageLayout.Header";const un=({width:e="large",padding:r="normal",...o})=>l.default.createElement(ln.Content,cn({width:e,padding:r},o));un.displayName="Content",un.displayName="SplitPageLayout.Content";const gn=({position:e="start",sticky:r=!0,padding:o="normal",divider:t="line",...a})=>l.default.createElement(ln.Pane,cn({position:e,sticky:r,padding:o,divider:t},a));gn.displayName="Pane",gn.displayName="SplitPageLayout.Pane";const bn=({padding:e="normal",divider:r="line",...o})=>l.default.createElement(ln.Footer,cn({padding:e,divider:r},o));bn.displayName="Footer",bn.displayName="SplitPageLayout.Footer";const vn=Object.assign(dn,{Header:sn,Content:un,Pane:gn,Footer:bn});function fn(){const e=r.useRef(new Set),o=r.useCallback(((r,o,...t)=>{const a=window.setTimeout(r,o,...t);return e.current.add(a),a}),[]),t=r.useCallback((r=>{clearTimeout(r),e.current.delete(r)}),[]);return r.useEffect((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:o,safeClearTimeout:t}}var hn,pn=c.default;function mn(e,r=[]){const o=Ur(null==e?void 0:e.containerRef),t=Ur(null==e?void 0:e.initialFocusRef),a=null==e?void 0:e.disabled,n=l.default.useRef(),i=l.default.useRef(null);function c(){var r;null===(r=n.current)||void 0===r||r.abort(),null!=e&&e.returnFocusRef&&e.returnFocusRef.current instanceof HTMLElement?e.returnFocusRef.current.focus():null!=e&&e.restoreFocusOnCleanUp&&i.current instanceof HTMLElement&&(i.current.focus(),i.current=null)}return i.current||null!=e&&e.disabled||(i.current=document.activeElement),l.default.useEffect((()=>{if(o.current instanceof HTMLElement){var e;if(!a)return n.current=xo(o.current,null!==(e=t.current)&&void 0!==e?e:void 0),()=>{c()};c()}}),[o,t,a,...r]),{containerRef:o,initialFocusRef:t}}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yn.apply(this,arguments)}hn=pn.createRoot,pn.hydrateRoot;const xn=l.default.forwardRef(((e,r)=>{const{icon:o,...t}=e;return l.default.createElement(o,yn({},t,{ref:r}))})),Cn=i.default(xn).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>Qo({sx:{color:e,...r}})));var wn={small:16,medium:32,large:64};function kn(e,r,o){var t=o(),a=Object.keys(t),n=l.default.forwardRef((function(e,o){var n=e["aria-label"],i=e["aria-labelledby"],c=e.tabIndex,d=e.className,s=void 0===d?r:d,u=e.fill,g=void 0===u?"currentColor":u,b=e.size,v=void 0===b?16:b,f=e.verticalAlign,h=void 0===f?"text-bottom":f,p=e.id,m=e.title,y=wn[v]||v,x=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,o){return o<=r?o:e}),e[0])}(a,y),C=t[x].width,w=y*(C/x),k=t[x].path,B=n||i,E=B?"img":void 0;return l.default.createElement("svg",{ref:o,"aria-hidden":B?void 0:"true",tabIndex:c,focusable:c>=0?"true":"false","aria-label":n,"aria-labelledby":i,className:s,role:E,viewBox:"0 0 ".concat(C," ").concat(x),width:w,height:y,fill:g,id:p,style:{display:"inline-block",userSelect:"none",verticalAlign:h,overflow:"visible"}},m?l.default.createElement("title",null,m):null,k)}));return n.displayName=e,n}var Bn=kn("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"}),l.default.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"}))}}})),En=kn("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})},16:{width:16,path:l.default.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})}}})),Tn=kn("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"})}}})),Sn=kn("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"})},16:{width:16,path:l.default.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"})}}})),In=kn("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:l.default.createElement("path",{d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"})}}})),Mn=kn("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:l.default.createElement("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:l.default.createElement("path",{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"})}}})),Nn=kn("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"})},24:{width:24,path:l.default.createElement("path",{d:"M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"})}}})),On=kn("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"})}}})),An=kn("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z"}),l.default.createElement("path",{d:"M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z"}),l.default.createElement("path",{d:"M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"}))}}})),Ln=kn("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"})}}})),jn=kn("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"}),l.default.createElement("path",{d:"M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"}))}}})),Rn=kn("GitPullRequestClosedIcon","octicon octicon-git-pull-request-closed",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"})},24:{width:24,path:l.default.createElement("path",{d:"M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"})}}})),Dn=kn("GitPullRequestDraftIcon","octicon octicon-git-pull-request-draft",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z"})}}})),zn=kn("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),l.default.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"}))},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z"}),l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Pn=kn("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"})},24:{width:24,path:l.default.createElement("path",{d:"M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"})}}})),_n=kn("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),l.default.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"}))},24:{width:24,path:l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"})}}})),Hn=kn("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"})},24:{width:24,path:l.default.createElement("path",{d:"M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"})}}})),Fn=kn("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Vn=kn("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"})},24:{width:24,path:l.default.createElement("path",{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"})}}})),Wn=kn("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z"}),l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Zn=kn("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"})},24:{width:24,path:l.default.createElement("path",{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"})}}})),$n=kn("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"})},16:{width:16,path:l.default.createElement("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:l.default.createElement("path",{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"})}}}));function Kn(e={},o=[]){const t=Ur(e.containerRef),a=!!e.activeDescendantFocus,n=Ur("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),i=e.disabled,c=l.default.useRef();return r.useEffect((()=>{if(t.current instanceof HTMLElement&&(!a||n.current instanceof HTMLElement)){if(!i){var r;const o={...e,activeDescendantControl:null!==(r=n.current)&&void 0!==r?r:void 0};return c.current=Mo(t.current,o),()=>{var e;null===(e=c.current)||void 0===e||e.abort()}}var o;null===(o=c.current)||void 0===o||o.abort()}}),[i,...o]),{containerRef:t,activeDescendantControlRef:n}}const Gn="__primerPortalRoot__",Un="__default__",qn={};function Yn(e,r=Un){qn[r]=e}const Xn=({children:e,onMount:r,containerName:o})=>{const a=l.default.useRef(null);if(!a.current){const e=document.createElement("div");e.style.position="relative",e.style.zIndex="1",a.current=e}const n=a.current;return Oo((()=>{let e=o;void 0===e&&(e=Un,function(){const e=qn[Un];if(!e||!document.body.contains(e)){let e=document.getElementById(Gn);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",Gn),e.style.position="absolute",e.style.top="0",e.style.left="0";const r=document.querySelector("[data-portal-root]");r?r.appendChild(e):document.body.appendChild(e)}Yn(e)}}());const t=qn[e];if(!t)throw new Error(`Portal container '${o}' is not yet registered. Container must be registered with registerPortal before use.`);return t.appendChild(n),null==r||r(),()=>{t.removeChild(n)}}),[n]),t.createPortal(e,n)};function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Jn.apply(this,arguments)}const Qn={position:"relative",overflow:"auto"};function el({"aria-labelledby":e,children:r,...o}){const t=l.default.useRef(null),a=Ba(t)?{"aria-labelledby":e,role:"region",tabIndex:0}:{};return l.default.createElement(et,Jn({},o,a,{ref:t,sx:Qn}),r)}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},rl.apply(this,arguments)}el.displayName="ScrollableRegion";const ol=i.default("div").withConfig({displayName:"Dialog__Backdrop",componentId:"sc-uaxjsn-0"})(["position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:",";animation:dialog-backdrop-appear 200ms ",";&[data-position-regular='center']{align-items:center;justify-content:center;}&[data-position-regular='left']{align-items:center;justify-content:flex-start;}&[data-position-regular='right']{align-items:center;justify-content:flex-end;}.DialogOverflowWrapper{flex-grow:1;}@media (max-width:767px){&[data-position-narrow='center']{align-items:center;justify-content:center;}&[data-position-narrow='bottom']{align-items:end;justify-content:center;}}@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Or("colors.primer.canvas.backdrop"),Or("animation.easeOutCubic")),tl={small:"480px",large:"640px",auto:"auto"},al={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},nl=i.default.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";width:",";height:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);border-radius:12px;opacity:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}&[data-position-regular='center']{border-radius:var(--borderRadius-large,0.75rem);@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='left']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-left-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInRight 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='right']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-right-radius:0;border-bottom-right-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInLeft 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}@media (max-width:767px){&[data-position-narrow='center']{border-radius:var(--borderRadius-large,0.75rem);width:",";height:",";}&[data-position-narrow='bottom']{width:100vw;height:auto;max-width:100vw;max-height:calc(100vh - 64px);border-radius:var(--borderRadius-large,0.75rem);border-bottom-right-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideUp 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-narrow='fullscreen']{width:100%;max-width:100vw;height:100%;max-height:100vh;border-radius:unset !important;flex-grow:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}}@keyframes Overlay--motion-scaleFade{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}@keyframes Overlay--motion-slideUp{from{transform:translateY(100%);}}@keyframes Overlay--motion-slideInRight{from{transform:translateX(-100%);}}@keyframes Overlay--motion-slideInLeft{from{transform:translateX(100%);}}",";"],Or("colors.canvas.overlay"),Or("shadows.overlay.shadow"),(e=>{var r;return al[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return tl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),(e=>{var r;return al[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return tl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),Qo),ll=({dialogLabelId:e,title:o,subtitle:t,dialogDescriptionId:a,onClose:n})=>{const i=r.useCallback((()=>{n("close-button")}),[n]);return l.default.createElement(ml.Header,null,l.default.createElement(et,{display:"flex"},l.default.createElement(et,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},l.default.createElement(ml.Title,{id:e},null!=o?o:"Dialog"),t&&l.default.createElement(ml.Subtitle,{id:a},t)),l.default.createElement(ml.CloseButton,{onClose:i})))};ll.displayName="DefaultHeader";const il=({children:e})=>l.default.createElement(ml.Body,null,e);il.displayName="DefaultBody";const cl=({footerButtons:e})=>{const{containerRef:r}=Kn({bindKeys:Co.ArrowHorizontal|Co.Tab,focusInStrategy:"closest"});return e?l.default.createElement(ml.Footer,{ref:r},l.default.createElement(ml.Buttons,{buttons:e})):null},dl={narrow:"center",regular:"center"},sl=l.default.forwardRef(((e,o)=>{const{title:t="Dialog",subtitle:a="",renderHeader:n,renderBody:i,renderFooter:c,onClose:d,role:s="dialog",width:u="xlarge",height:g="auto",footerButtons:b=[],position:v=dl,returnFocusRef:f,sx:h}=e,p=Fo(),m=Fo(),y=r.useRef(null);for(const e of b)e.autoFocus&&(e.ref=y);const x={...e,title:t,subtitle:a,role:s,dialogLabelId:p,dialogDescriptionId:m},C=r.useRef(null);Ho(o,C);const w=r.useRef(null);mn({containerRef:C,initialFocusRef:y,restoreFocusOnCleanUp:null==f||!f.current,returnFocusRef:f}),Jr((e=>{d("escape"),e.preventDefault()}),[d]),l.default.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const k=(null!=n?n:ll)(x),B=(null!=i?i:il)(x),E=(null!=c?c:cl)(x),T="string"==typeof v?{"data-position-regular":v}:Object.fromEntries(Object.entries(v).map((([e,r])=>[`data-position-${e}`,r])));return l.default.createElement(l.default.Fragment,null,l.default.createElement(Xn,null,l.default.createElement(ol,rl({ref:w},T),l.default.createElement(nl,rl({width:u,height:g,ref:C,role:s,"aria-labelledby":p,"aria-describedby":m,"aria-modal":!0},T,{sx:h}),k,l.default.createElement(el,{"aria-labelledby":p,className:"DialogOverflowWrapper"},B),E))))}));sl.displayName="Dialog";const ul=i.default.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;",";"],Or("colors.border.default"),Or("space.2"),Qo),gl=i.default.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Or("fontSizes.1"),Or("fontWeights.bold"),Qo),bl=i.default.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";font-weight:normal;",";"],Or("fontSizes.0"),Or("colors.fg.muted"),Or("space.1"),Qo),vl=i.default.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Or("space.3"),Qo),fl=i.default.div.withConfig({displayName:"Dialog__Footer",componentId:"sc-uaxjsn-6"})(["box-shadow:0 -1px 0 ",";padding:",";display:flex;flex-flow:wrap;justify-content:flex-end;gap:",";z-index:1;flex-shrink:0;",";"],Or("colors.border.default"),Or("space.3"),Or("space.2"),Qo),hl=i.default(ft).withConfig({displayName:"Dialog__DialogCloseButton",componentId:"sc-uaxjsn-7"})(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:",";padding:",";align-self:flex-start;line-height:normal;box-shadow:none;"],Or("colors.fg.muted"),Or("space.2")),pl=({onClose:e})=>l.default.createElement(hl,{"aria-label":"Close",onClick:e},l.default.createElement(Cn,{icon:$n}));pl.displayName="CloseButton";const ml=Object.assign(sl,{Header:ul,Title:gl,Subtitle:bl,Body:vl,Footer:fl,Buttons:({buttons:e})=>{var o;const t=Ur(null===(o=e.find((e=>e.autoFocus)))||void 0===o?void 0:o.ref);let a=0;const[n,i]=r.useState(0);return r.useEffect((()=>{var e;1===n?null===(e=t.current)||void 0===e||e.focus():i(n+1)}),[t,n]),l.default.createElement(l.default.Fragment,null,e.map(((e,r)=>{const{content:o,buttonType:n="default",autoFocus:i=!1,...c}=e;return l.default.createElement(ft,rl({key:r},c,{variant:"normal"===n?"default":n,ref:i&&0===a?(a++,t):null}),o)})))},CloseButton:pl});function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yl.apply(this,arguments)}const xl=i.default.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Or("space.2")),Cl=i.default(et).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Or("fontSizes.3"),Or("fontWeights.bold"),Or("space.2")),wl=({title:e,onClose:o,dialogLabelId:t})=>{const a=r.useCallback((()=>{o("close-button")}),[o]);return l.default.createElement(xl,null,l.default.createElement(Cl,{id:t},e),l.default.createElement(ml.CloseButton,{onClose:a}))};wl.displayName="ConfirmationHeader";const kl=i.default(et).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Or("fontSizes.1"),Or("space.3"),Or("space.3"),Or("space.3"),Or("colors.fg.muted")),Bl=({children:e})=>l.default.createElement(kl,null,e);Bl.displayName="ConfirmationBody";const El=i.default(et).withConfig({displayName:"ConfirmationDialog__StyledConfirmationFooter",componentId:"sc-11fz0jh-3"})(["display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-gap:",";align-items:end;justify-content:end;padding:"," "," ",";"],Or("space.2"),Or("space.1"),Or("space.3"),Or("space.3")),Tl=({footerButtons:e})=>{const{containerRef:r}=Kn({bindKeys:Co.ArrowHorizontal|Co.Tab,focusInStrategy:"closest"});return l.default.createElement(El,{ref:r},l.default.createElement(ml.Buttons,{buttons:null!=e?e:[]}))};Tl.displayName="ConfirmationFooter";const Sl=e=>{const{onClose:o,title:t,cancelButtonContent:a="Cancel",confirmButtonContent:n="OK",confirmButtonType:i="normal",children:c}=e,d="danger"===i,s=[{content:a,onClick:r.useCallback((()=>{o("cancel")}),[o]),autoFocus:d},{content:n,buttonType:i,onClick:r.useCallback((()=>{o("confirm")}),[o]),autoFocus:!d}];return l.default.createElement(ml,{onClose:o,title:t,footerButtons:s,role:"alertdialog",width:"medium",renderHeader:wl,renderBody:Bl,renderFooter:Tl},c)};Sl.displayName="ConfirmationDialog";let Il=null;const Ml=o.keyframes(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Nl=i.default.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&o.css(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Ml))),Ol=({show:e,children:o})=>{const[t,a]=r.useState(e);r.useEffect((()=>{e&&a(!0)}),[e]);return t?l.default.createElement(et,{height:e?"auto":0,overflow:"hidden"},l.default.createElement(Nl,{show:e,onAnimationEnd:()=>{e||a(!1)}},o)):null},Al=i.default.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Lr,Ar,Qo),Ll=l.default.createContext({}),jl=({children:e,sx:r})=>{const{disabled:o,captionId:t}=l.default.useContext(Ll);return l.default.createElement(Al,{color:o?"fg.muted":"fg.subtle",fontSize:1,id:t,sx:r},e)};jl.displayName="CheckboxOrRadioGroupCaption";const Rl=({children:e,visuallyHidden:r=!1,sx:o})=>{const{required:t,disabled:a}=l.default.useContext(Ll);return l.default.createElement(dt,{isVisible:!r,title:t?"required field":void 0,sx:{display:"block",color:a?"fg.muted":void 0,fontSize:2,...o}},t?l.default.createElement(et,{display:"flex",as:"span"},l.default.createElement(et,{mr:1},e),l.default.createElement("span",null,"*")):e)};Rl.displayName="CheckboxOrRadioGroupLabel";const Dl={success:Sn,error:En},zl={success:"success.fg",error:"danger.fg"},Pl=({children:e,id:r,validationStatus:o,sx:t})=>{const a=o?Dl[o]:void 0,n=o?zl[o]:void 0,i=16/12;return l.default.createElement(Al,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:n,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...t},"aria-live":"polite"},a&&l.default.createElement(et,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},l.default.createElement(a,{size:12,fill:"currentColor"})),l.default.createElement(et,{as:"span",id:r,sx:{lineHeight:i}},e))};Pl.displayName="InputValidation";const _l=({children:e,variant:r,sx:o})=>{const{validationMessageId:t=""}=l.default.useContext(Ll);return l.default.createElement(Pl,{validationStatus:r,id:t,sx:o},e)};function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Hl.apply(this,arguments)}_l.displayName="CheckboxOrRadioGroupValidation";const Fl=i.default.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Or("space.2")),Vl=({"aria-labelledby":e,children:r,disabled:o=!1,id:t,required:a=!1,sx:n})=>{const[i,c]=ka(r,{caption:jl,label:Rl,validation:_l}),d=l.default.Children.toArray(r).find((e=>l.default.isValidElement(e)&&e.type===Rl)),s=l.default.Children.toArray(r).find((e=>l.default.isValidElement(e)&&e.type===_l?e:null)),u=l.default.Children.toArray(r).find((e=>l.default.isValidElement(e)&&e.type===jl?e:null)),g=Fo(t),b=s?`${g}-validationMessage`:void 0,v=u?`${g}-caption`:void 0;d||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const f=l.default.isValidElement(d)&&!d.props.visuallyHidden;return l.default.createElement(Ll.Provider,{value:{disabled:o,required:a,captionId:v,validationMessageId:b}},l.default.createElement("div",null,l.default.createElement(et,Hl({border:"none",margin:0,mb:s?2:void 0,padding:0},d&&{as:"fieldset",disabled:o},{sx:n}),d?l.default.createElement(et,{as:"legend",mb:f?2:void 0,padding:0},i.label,i.caption,l.default.isValidElement(i.validation)&&i.validation.props.children&&l.default.createElement(dt,null,i.validation.props.children)):i.caption,l.default.createElement(Fl,!d&&{"aria-labelledby":e,"aria-describedby":[b,v].filter(Boolean).join(" "),as:"div",role:"group"},l.default.Children.toArray(c).filter((e=>l.default.isValidElement(e))))),s&&l.default.createElement(Ol,{"aria-hidden":Boolean(d),show:!0},i.validation)))};Vl.displayName="CheckboxOrRadioGroup";var Wl=Object.assign(Vl,{Caption:jl,Label:Rl,Validation:_l});function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Zl.apply(this,arguments)}const $l=r.createContext(null),Kl=({children:e,disabled:r,onChange:o,name:t,...a})=>{const[n,i]=Ro(null);return l.default.createElement($l.Provider,{value:{disabled:r,name:t,onChange:e=>{o&&((e=>{const{value:r,checked:o}=e.currentTarget;o&&i(r)})(e),o(n.current,e))}}},l.default.createElement(Wl,Zl({disabled:r},a),e))};Kl.displayName="RadioGroup";var Gl=Object.assign(Kl,{Caption:jl,Label:Rl,Validation:_l});const Ul=o.css(["appearance:none;border-color:",";border-style:solid;border-width:",";cursor:pointer;display:grid;height:var(--base-size-16,16px);margin:0;margin-top:0.125rem;place-content:center;position:relative;width:var(--base-size-16,16px);&:disabled{background-color:",";border-color:var(--control-borderColor-disabled,",");}"],Or("colors.neutral.emphasis"),Or("borderWidths.1"),Or("colors.input.disabledBg"),Or("colors.border.default"));function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ql.apply(this,arguments)}const Yl=i.default.input.withConfig({displayName:"Radio__StyledRadio",componentId:"sc-1tx0ht9-0"})(["",";border-radius:var(--borderRadius-full,100vh);transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&:checked{border-color:",";border-width:var(--base-size-4,4px);&:disabled{cursor:not-allowed;border-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],Ul,Or("colors.accent.fg"),Or("colors.fg.muted"),ot(),Qo),Xl=l.default.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:i,validationStatus:c,value:d,...s},u)=>{const g=r.useContext($l),b=t||(null==g?void 0:g.name);return b||console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop"),l.default.createElement(Yl,ql({type:"radio",value:d,name:b,ref:u,disabled:o,checked:e,"aria-checked":e?"true":"false",required:i,"aria-required":i?"true":"false","aria-invalid":"error"===c?"true":"false",sx:n,onChange:e=>{(null==g?void 0:g.onChange)&&g.onChange(e),a&&a(e)}},s))}));Xl.displayName="Radio";const Jl=l.default.createContext({});function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ql.apply(this,arguments)}const ei=i.default.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Or("fontWeights.bold"),Or("fontSizes.5"),Qo),ri=r.forwardRef((({as:e="h2",...r},o)=>{const t=l.default.useRef(null);return Ho(o,t),l.default.createElement(ei,Ql({as:e},r,{ref:t}))}));ri.displayName="Heading";const oi=l.default.createContext({}),ti=(e,r,o)=>r?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:o?{color:"fg.muted",iconColor:"fg.muted",annotationColor:"fg.muted"}:"danger"===e?{color:"danger.fg",iconColor:"danger.fg",annotationColor:"fg.muted",hoverColor:"actionListItem.danger.hoverText"}:{color:"fg.default",iconColor:"fg.muted",annotationColor:"fg.muted",hoverColor:"fg.default"},ai="20px",ni=l.default.createContext({});function li(){return li=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},li.apply(this,arguments)}const ii=r.forwardRef((({as:e,children:r,sx:o=ct,visuallyHidden:t=!1,...a},n)=>{var i;const c=l.default.useRef(null);Ho(n,c);const{headingId:d,variant:s}=l.default.useContext(ni),{container:u}=l.default.useContext(Jl);"ActionMenu"===u&&pt(!1);const g={marginBottom:2,marginX:"full"===s?2:3};return l.default.createElement(dt,{isVisible:!t},l.default.createElement(ri,li({as:e,ref:c,id:null!==(i=a.id)&&void 0!==i?i:d,sx:Vr(g,o)},a),r))}));function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ci.apply(this,arguments)}ii.displayName="ActionList.Heading";const di=i.default.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(Qo),si=l.default.forwardRef((({variant:e="inset",selectionVariant:r,showDividers:o=!1,role:t,sx:a=ct,...n},i)=>{var c;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[s,u]=ka(n.children,{heading:ii}),g=Fo(),{listRole:b,listLabelledBy:v,selectionVariant:f,enableFocusZone:h}=l.default.useContext(Jl),p=s.heading?null!==(c=s.heading.props.id)&&void 0!==c?c:g:v,m=Ur(i);return Kn({disabled:!h,containerRef:m,bindKeys:Co.ArrowVertical|Co.HomeAndEnd|Co.PageUpDown}),l.default.createElement(ni.Provider,{value:{variant:e,selectionVariant:r||f,showDividers:o,role:t||b,headingId:g}},s.heading,l.default.createElement(di,ci({sx:Vr(d,a),role:t||b,"aria-labelledby":p},n,{ref:m}),u))}));function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ui.apply(this,arguments)}si.displayName="ActionList";const gi=l.default.createContext({groupHeadingId:void 0,selectionVariant:void 0}),bi=({title:e,variant:r="subtle",auxiliaryText:o,selectionVariant:t,role:a,sx:n={},...i})=>{var c;const d=Fo(),{role:s}=l.default.useContext(ni),[u,g]=ka(i.children,{groupHeading:vi});let b;var v;u.groupHeading&&(b=null!==(v=u.groupHeading.props.id)&&void 0!==v?v:d);return e&&(b=d),l.default.createElement(et,ui({as:"li",role:s?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...n}},i),l.default.createElement(gi.Provider,{value:{selectionVariant:t,groupHeadingId:b}},e&&!u.groupHeading?l.default.createElement(vi,{variant:r,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?l.default.cloneElement(u.groupHeading):null,l.default.createElement(et,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":s?void 0:b,"aria-label":s?null!=e?e:null===(c=u.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:a||s&&"group"},u.groupHeading?g:i.children)))};bi.displayName="Group";const vi=({as:e,variant:r,_internalBackwardCompatibleTitle:o,auxiliaryText:t,children:a,sx:n=ct,...i})=>{const{variant:c,role:d}=l.default.useContext(ni),{groupHeadingId:s}=l.default.useContext(gi),u=void 0!==d&&"list"!==d&&void 0!==a&&void 0!==e;(void 0===d||"list"===d)&&void 0!==a&&void 0===e&&pt(!1),u&&pt(!1);const g={paddingY:"6px",paddingX:"full"===c?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===r&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return l.default.createElement(l.default.Fragment,null,d&&"list"!==d?l.default.createElement(et,ui({sx:g,role:"presentation","aria-hidden":"true"},i),l.default.createElement("span",{id:s},null!=o?o:a),t&&l.default.createElement("span",null,t)):l.default.createElement(l.default.Fragment,null,l.default.createElement(ri,ui({as:e||"h3",id:s,sx:Vr(g,n)},i),null!=o?o:a),t&&l.default.createElement("span",null,t)))};function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},fi.apply(this,arguments)}const hi=i.default.div.withConfig({displayName:"Truncate__StyledTruncate",componentId:"sc-23o1d2-0"})(["display:",";overflow:hidden;text-overflow:ellipsis;vertical-align:",";white-space:nowrap;"," "," ",";"],(e=>e.inline?"inline-block":"inherit"),(e=>e.inline?"top":"initial"),we,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),Qo),pi=l.default.forwardRef((function({as:e,expandable:r=!1,inline:o=!1,maxWidth:t=125,...a},n){return l.default.createElement(hi,fi({ref:n,as:e,expandable:r,inline:o,maxWidth:t},a))}));const mi=({variant:e="inline",sx:r={},...o})=>{const t={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:0,minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &':{color:"inherit"},'li[data-variant="danger"]:hover &, li[data-variant="danger"]:active &':{color:"inherit"}},{blockDescriptionId:a,inlineDescriptionId:n}=l.default.useContext(oi);return"block"===e?l.default.createElement(et,{as:"span",sx:Vr(t,r),id:a},o.children):l.default.createElement(pi,{id:n,sx:Vr(t,r),title:o.children,inline:!0,maxWidth:"100%"},o.children)};function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yi.apply(this,arguments)}const xi=({sx:e={},...r})=>l.default.createElement(et,yi({as:"span",sx:Vr({height:ai,minWidth:Or("space.3"),maxWidth:ai,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},r));xi.displayName="LeadingVisualContainer";const Ci=({sx:e={},...r})=>{const{variant:o,disabled:t,inactive:a}=l.default.useContext(oi);return l.default.createElement(xi,yi({sx:Vr({color:ti(o,t,a).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:ti(o,t,a).hoverColor}},e)},r),r.children)};Ci.displayName="LeadingVisual";const wi=({sx:e={},...r})=>{const{variant:o,disabled:t,inactive:a}=l.default.useContext(oi);return l.default.createElement(et,yi({as:"span",sx:Vr({height:"20px",flexShrink:0,color:ti(o,t,a).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:ti(o,t,a).hoverColor}},e)},r),r.children)};wi.displayName="TrailingVisual";const ki=({selected:e})=>{const{selectionVariant:r,role:o}=l.default.useContext(ni),{selectionVariant:t}=l.default.useContext(gi);let a;if(a=void 0!==t?t:r,!a){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===a||"menu"===o)return l.default.createElement(xi,{"data-component":"ActionList.Selection"},e&&l.default.createElement(Tn,null));return l.default.createElement(xi,{"data-component":"ActionList.Selection"},l.default.createElement(et,{sx:{borderColor:e?"accent.fg":"neutral.emphasis",borderStyle:"solid",borderWidth:"1",borderRadius:"1",cursor:"pointer",display:"grid",height:"var(--base-size-16, 16px)",margin:"0",placeContent:"center",width:"var(--base-size-16, 16px)",backgroundColor:e?"accent.fg":"canvas.default",transition:e?"background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1)":"background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms","::before":{width:"var(--base-size-16, 16px)",height:"var(--base-size-16, 16px)",visibility:e?"visible":"hidden",content:'""',backgroundColor:"fg.onEmphasis",transition:e?"visibility 0s linear 0s":"visibility 0s linear 230ms",clipPath:"inset(var(--base-size-16, 16px) 0 0 0)",maskImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')",maskSize:"75%",maskRepeat:"no-repeat",maskPosition:"center",animation:e?"checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms":"checkmarkOut 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards","@keyframes checkmarkIn":{from:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},"@keyframes checkmarkOut":{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"}}}},"data-component":"ActionList.Checkbox"}))};ki.displayName="Selection";const Bi=e=>{const{if:r,...o}=e;return r?l.default.createElement(et,o,e.children):l.default.createElement(l.default.Fragment,null,e.children)};function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ei.apply(this,arguments)}const Ti=i.default.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(Qo),Si=({labelId:e,text:r,visualComponent:o})=>l.default.createElement(la,{text:r},l.default.createElement(et,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer",display:"flex"},"aria-labelledby":e},l.default.createElement(o,null,l.default.createElement(Bn,null))));Si.displayName="InactiveIndicator";const Ii=l.default.forwardRef((({variant:e="default",disabled:r=!1,inactiveText:o,selected:t,active:a=!1,onSelect:n,sx:i=ct,id:c,role:d,_PrivateItemWrapper:s,...u},g)=>{const[b,v]=ka(u.children,{leadingVisual:Ci,trailingVisual:wi,blockDescription:[mi,e=>"block"===e.variant],inlineDescription:[mi,e=>"block"!==e.variant]}),{variant:f,role:h,showDividers:p,selectionVariant:m}=l.default.useContext(ni),{selectionVariant:y}=l.default.useContext(gi),{container:x,afterSelect:C,selectionAttribute:w}=l.default.useContext(Jl),k=Boolean(o),B=k&&void 0===x,E=l.default.useCallback(((e,r)=>{"function"==typeof n&&n(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[n]),T=y||m;let S;"ActionMenu"===x?S="single"===T?"menuitemradio":"multiple"===T?"menuitemcheckbox":"menuitem":"SelectPanel"===x&&"listbox"===h&&void 0!==T&&(S="option");const I=d||S;let M;"menuitemradio"===I||"menuitemcheckbox"===I?M="aria-checked":"option"===I&&(M="aria-selected");const N=w||M,{theme:O}=Ko(),A={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:ai,minHeight:5,marginX:"inset"===f?2:0,borderRadius:2,transition:"background 33.333ms linear",color:ti(e,r,k).color,cursor:"pointer","&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:t?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:t?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"}},appearance:"none",background:"unset",border:"unset",width:"inset"===f?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (hover: hover) and (pointer: fine)":{":hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:ti(e,r,k).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==O?void 0:O.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==O?void 0:O.colors.accent.emphasis}`},":active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:ti(e,r,k).hoverColor}},"@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible":{outline:"solid 1px transparent !important"}},'[data-component="ActionList.Item--DividerContainer"]':{position:"relative"},'[data-component="ActionList.Item--DividerContainer"]::before':{content:'" "',display:"block",position:"absolute",width:"100%",top:"-7px",border:"0 solid",borderTopWidth:p?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==O?void 0:O.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]), &:focus:not([aria-disabled]):not([data-inactive]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...a?{fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"accent.fg",borderRadius:2}}:{}},L=l.default.useCallback((e=>{r||k||E(e,C)}),[E,r,k,C]),j=l.default.useCallback((e=>{r||k||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),E(e,C))}),[E,r,k,C]),R=Fo(c),D=`${R}--label`,z=`${R}--inline-description`,P=`${R}--block-description`,_=k&&!B?`${R}--warning-message`:void 0,H=s||l.default.Fragment,F=N&&I&&["menuitemradio","menuitemcheckbox","option"].includes(I),V={onClick:L,onKeyPress:j,"aria-disabled":!!r||void 0,"data-inactive":!!k||void 0,tabIndex:r||B?void 0:0,"aria-labelledby":`${D} ${b.inlineDescription?z:""}`,"aria-describedby":b.blockDescription?[P,_].join(" "):_,...F&&{[N]:t},role:I,id:R},W=s?{role:I?"none":void 0}:V,Z=s?V:{};return l.default.createElement(oi.Provider,{value:{variant:e,disabled:r,inactive:Boolean(o),inlineDescriptionId:z,blockDescriptionId:P}},l.default.createElement(Ti,Ei({ref:g,sx:Vr(A,i),"data-variant":"danger"===e?e:void 0},W,u),l.default.createElement(H,Z,l.default.createElement(ki,{selected:t}),B&&b.leadingVisual?l.default.createElement(Si,{labelId:D,text:o,visualComponent:Ci}):b.leadingVisual,l.default.createElement(et,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},l.default.createElement(Bi,{if:Boolean(b.trailingVisual)||B&&!b.leadingVisual,sx:{display:"flex",flexGrow:1}},l.default.createElement(Bi,{if:!!b.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},l.default.createElement(et,{as:"span",id:D,sx:{flexGrow:b.inlineDescription?0:1,fontWeight:b.inlineDescription||b.blockDescription||a?"bold":"normal",marginBlockEnd:b.blockDescription?"4px":void 0}},v),b.inlineDescription),B&&!b.leadingVisual?l.default.createElement(Si,{labelId:D,text:o,visualComponent:wi}):b.trailingVisual),k&&x?l.default.createElement(et,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:_},o):null,b.blockDescription))))}));function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Mi.apply(this,arguments)}Ii.displayName="ActionList.Item";const Ni=j({hoverColor:{property:"color",scale:"colors"}}),Oi=i.default.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-14289xe-0"})(["color:",";text-decoration:none;text-decoration:",";[data-a11y-link-underlines='true'] &[data-inline='true']{text-decoration:underline;}&:hover{text-decoration:",";",";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}",";"],(e=>e.muted?Or("colors.fg.muted")(e):Or("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Ni:e.muted?`color: ${Or("colors.accent.fg")(e)}`:""),Qo),Ai=r.forwardRef((({as:e="a",...r},o)=>{const t=l.default.useRef(null);return Ho(o,t),l.default.createElement(Oi,Mi({as:e,"data-inline":r.inline},r,{ref:t}))}));function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Li.apply(this,arguments)}Ai.displayName="Link";const ji=l.default.forwardRef((({sx:e={},active:r,inactiveText:o,as:t,...a},n)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return l.default.createElement(Ii,{active:r,sx:{paddingY:0,paddingX:0},inactiveText:o,"data-inactive":!!o||void 0,_PrivateItemWrapper:({children:r,onClick:c,...d})=>o?l.default.createElement(et,Li({sx:Vr(i,e)},d),r):l.default.createElement(Ai,Li({as:t,sx:Vr(i,e)},d,a,{onClick:e=>{c&&c(e),a.onClick&&a.onClick(e)},ref:n}),r)},a.children)})),Ri=({sx:e={}})=>l.default.createElement(et,{as:"li","aria-hidden":"true",sx:Vr({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Or("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});Ri.displayName="Divider";const Di=Object.assign(si,{Group:bi,Item:Ii,LinkItem:ji,Divider:Ri,Description:mi,LeadingVisual:Ci,TrailingVisual:wi,Heading:ii,GroupHeading:vi});function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zi.apply(this,arguments)}const Pi={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},_i={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Hi=i.default.div.withConfig({displayName:"Overlay__StyledOverlay",componentId:"sc-51280t-0"})(["background-color:",";box-shadow:",";position:absolute;min-width:192px;max-width:",";height:",";max-height:",";width:",";border-radius:12px;overflow:",";animation:overlay-appear ","ms ",";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}@media (forced-colors:active){outline:solid 1px transparent;}",";"],Or("colors.canvas.overlay"),Or("shadows.overlay.shadow"),(e=>e.maxWidth&&_i[e.maxWidth]),(e=>Pi[e.height||"auto"]),(e=>e.maxHeight&&Pi[e.maxHeight]),(e=>_i[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Or("animation.easeOutCubic"),Qo),Fi=l.default.forwardRef((({onClickOutside:e,role:o="none",initialFocusRef:t,returnFocusRef:a,ignoreClickRefs:n,onEscape:i,visibility:c="visible",height:d="auto",width:s="auto",top:u,left:g,right:b,bottom:v,anchorSide:f,portalContainerName:h,preventFocusOnOpen:p,position:m,...y},x)=>{const C=r.useRef(null);Ho(x,C);const{theme:w}=Ko(),k=parseInt(Or("space.2")(w).replace("px","")),B=Or("animation.easeOutCubic")(w);jo({overlayRef:C,returnFocusRef:a,onEscape:i,ignoreClickRefs:n,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:p}),r.useEffect((()=>{var e;"initial"===d&&null!==(e=C.current)&&void 0!==e&&e.clientHeight&&(C.current.style.height=`${C.current.clientHeight}px`)}),[d]),Oo((()=>{var e;const{x:r,y:o}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(f);(r||o)&&null!==(e=C.current)&&void 0!==e&&e.animate&&"hidden"!==c&&C.current.animate({transform:[`translate(${k*r}px, ${k*o}px)`,"translate(0, 0)"]},{duration:200,easing:B})}),[f,k,B,c]);const E=void 0===g&&void 0===b?{left:0}:{left:g};return l.default.createElement(Xn,{containerName:h},l.default.createElement(Hi,zi({height:d,width:s,role:o},y,{ref:C,style:{...E,right:b,top:u,bottom:v,position:m,"--styled-overlay-visibility":c}})))}));function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vi.apply(this,arguments)}const Wi=({renderAnchor:e,anchorRef:o,anchorId:t,children:a,open:n,onOpen:i,onClose:c,height:d,width:s,overlayProps:u,focusTrapSettings:g,focusZoneSettings:b,side:v="outside-bottom",align:f="start",alignmentOffset:h,anchorOffset:p})=>{const m=Ur(o),[y,x]=Ro(),C=Fo(t),w=r.useCallback((()=>null==c?void 0:c("click-outside")),[c]),k=r.useCallback((()=>null==c?void 0:c("escape")),[c]),B=r.useCallback((e=>{e.defaultPrevented||!n&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==i||i("anchor-key-press",e),e.preventDefault())}),[n,i]),E=r.useCallback((e=>{e.defaultPrevented||0!==e.button||(n?null==c||c("anchor-click"):null==i||i("anchor-click"))}),[n,i,c]),{position:T}=Lo({anchorElementRef:m,floatingElementRef:y,side:v,align:f,alignmentOffset:h,anchorOffset:p},[y.current]);return r.useEffect((()=>{!n&&y.current&&x(null)}),[n,y,x]),Kn({containerRef:y,disabled:!n||!T,...b}),mn({containerRef:y,disabled:!n||!T,...g}),l.default.createElement(l.default.Fragment,null,e&&e({ref:m,id:C,"aria-haspopup":"true","aria-expanded":n?"true":void 0,tabIndex:0,onClick:E,onKeyDown:B}),n?l.default.createElement(Fi,Vi({returnFocusRef:m,onClickOutside:w,ignoreClickRefs:[m],onEscape:k,ref:x,role:"none",visibility:T?"visible":"hidden",height:d,width:s,top:(null==T?void 0:T.top)||0,left:(null==T?void 0:T.left)||0,anchorSide:null==T?void 0:T.anchorSide},u),a):null)};function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Zi.apply(this,arguments)}Wi.displayName="AnchoredOverlay";const $i=l.default.createContext({renderAnchor:null,open:!1}),Ki=({anchorRef:e,open:r,onOpenChange:o,children:t})=>{const[a,n]=Do(r,o,!1),i=l.default.useCallback((()=>n(!0)),[n]),c=l.default.useCallback((()=>n(!1)),[n]),d=l.default.Children.toArray(t).find((e=>l.default.isValidElement(e)&&(e.type===Ui||e.type===Gi))),s=l.default.isValidElement(d)?d.props.id:void 0,u=Ur(e),g=Fo(s);let b=null;const v=l.default.Children.map(t,(e=>{if(e.type===la){const r=e.props.children;return r.type===Ui&&(b=o=>{const t=l.default.cloneElement(r,{...o});return l.default.cloneElement(e,{children:t,ref:u})}),null}if(e.type===Gi){const r=e.props.children;return void 0!==r&&r.type===la?null!==r.props.children&&(b=o=>{const t=r.props.children,a=l.default.cloneElement(t,{...o}),n=l.default.cloneElement(r,{children:a});return l.default.cloneElement(e,{children:n,ref:u})}):b=r=>l.default.cloneElement(e,r),null}return e.type===Ui?(b=r=>l.default.cloneElement(e,r),null):e}));return l.default.createElement($i.Provider,{value:{anchorRef:u,renderAnchor:b,anchorId:g,open:a,onOpen:i,onClose:c}},v)};Ki.displayName="Menu";const Gi=l.default.forwardRef((({children:e,...r},o)=>l.default.cloneElement(e,{...r,ref:o}))),Ui=l.default.forwardRef((({...e},r)=>l.default.createElement(Gi,{ref:r},l.default.createElement(ft,Zi({type:"button",trailingAction:Zn},e))))),qi=({children:e,align:o="start",side:t="outside-bottom","aria-labelledby":a,...n})=>{const{anchorRef:i,renderAnchor:c,anchorId:d,open:s,onOpen:u,onClose:g}=l.default.useContext($i),b=l.default.useRef(null);zo(s,g,b,i);const[v,f]=r.useState(null);return r.useEffect((()=>{if(i.current){const e=i.current.getAttribute("aria-labelledby");e&&f(e)}}),[i]),l.default.createElement(Wi,{anchorRef:i,renderAnchor:c,anchorId:d,open:s,onOpen:u,onClose:g,align:o,side:t,overlayProps:n,focusZoneSettings:{focusOutBehavior:"wrap"}},l.default.createElement("div",{ref:b},l.default.createElement(Jl.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:a||v||d,selectionAttribute:"aria-checked",afterSelect:g}},e)))};qi.displayName="Overlay",Ki.displayName="ActionMenu";const Yi=Object.assign(Ki,{Button:Ui,Anchor:Gi,Overlay:qi,Divider:Ri}),Xi=r.createContext(null);var Ji,Qi={exports:{}},ec={},rc=Symbol.for("react.element"),oc=Symbol.for("react.portal"),tc=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),nc=Symbol.for("react.profiler"),lc=Symbol.for("react.provider"),ic=Symbol.for("react.context"),cc=Symbol.for("react.server_context"),dc=Symbol.for("react.forward_ref"),sc=Symbol.for("react.suspense"),uc=Symbol.for("react.suspense_list"),gc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),vc=Symbol.for("react.offscreen");function fc(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case rc:switch(e=e.type){case tc:case nc:case ac:case sc:case uc:return e;default:switch(e=e&&e.$$typeof){case cc:case ic:case dc:case bc:case gc:case lc:return e;default:return r}}case oc:return r}}}Ji=Symbol.for("react.module.reference"),ec.ContextConsumer=ic,ec.ContextProvider=lc,ec.Element=rc,ec.ForwardRef=dc,ec.Fragment=tc,ec.Lazy=bc,ec.Memo=gc,ec.Portal=oc,ec.Profiler=nc,ec.StrictMode=ac,ec.Suspense=sc,ec.SuspenseList=uc,ec.isAsyncMode=function(){return!1},ec.isConcurrentMode=function(){return!1},ec.isContextConsumer=function(e){return fc(e)===ic},ec.isContextProvider=function(e){return fc(e)===lc},ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===rc},ec.isForwardRef=function(e){return fc(e)===dc},ec.isFragment=function(e){return fc(e)===tc},ec.isLazy=function(e){return fc(e)===bc},ec.isMemo=function(e){return fc(e)===gc},ec.isPortal=function(e){return fc(e)===oc},ec.isProfiler=function(e){return fc(e)===nc},ec.isStrictMode=function(e){return fc(e)===ac},ec.isSuspense=function(e){return fc(e)===sc},ec.isSuspenseList=function(e){return fc(e)===uc},ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tc||e===nc||e===ac||e===sc||e===uc||e===vc||"object"==typeof e&&null!==e&&(e.$$typeof===bc||e.$$typeof===gc||e.$$typeof===lc||e.$$typeof===ic||e.$$typeof===dc||e.$$typeof===Ji||void 0!==e.getModuleId)},ec.typeOf=fc,Qi.exports=ec;var hc=Qi.exports;function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pc.apply(this,arguments)}const mc={small:"16px",medium:"32px",large:"64px"};function yc({size:e="medium",...r}){const o=mc[e];return l.default.createElement("svg",pc({height:o,width:o,viewBox:"0 0 16 16",fill:"none"},r),l.default.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),l.default.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}yc.displayName="Spinner";const xc=i.default(yc).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],Qo);xc.displayName="Spinner";const Cc=({children:e,hasLoadingIndicator:r,showLoadingIndicator:o,visualPosition:t})=>!e&&!r||"leading"===t&&!e&&!o?null:r?l.default.createElement("span",{className:"TextInput-icon"},l.default.createElement(et,{display:"flex",position:"relative"},e&&l.default.createElement(et,{sx:{visibility:o?"hidden":"visible"}},e),l.default.createElement(xc,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:o?"visible":"hidden",..."leading"===t?{left:0}:{right:0}}:{visibility:o?"visible":"hidden"},size:e?void 0:"small"}))):l.default.createElement("span",{className:"TextInput-icon"},e);Cc.displayName="TextInputInnerVisualSlot";const wc=ve({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),kc=ve({prop:"size",variants:{small:{"--inner-action-size":"20px",minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},medium:{"--inner-action-size":"24px"},large:{"--inner-action-size":"28px",px:2,py:"10px",height:"40px"}}}),Bc="12px",Ec=Bc,Tc=(e,r)=>e?r&&o.css(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Or("colors.accent.fg"),Or("colors.accent.fg")):o.css(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Or("colors.accent.fg"),Or("colors.accent.fg")),Sc=i.default.span.withConfig({displayName:"TextInputWrapper__TextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:20px;color:",";vertical-align:middle;background-color:",";border:1px solid var(--control-borderColor-rest,",");border-radius:",";outline:none;box-shadow:",";display:inline-flex;align-items:stretch;min-height:32px;overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Or("fontSizes.1"),Or("colors.fg.default"),Or("colors.canvas.default"),Or("colors.border.default"),Or("radii.2"),Or("shadows.primer.shadow.inset"),Or("colors.fg.muted"),(e=>Tc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Bc,(e=>e.contrast&&o.css(["background-color:",";"],Or("colors.canvas.inset"))),(e=>e.disabled&&o.css(["color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}"],Or("colors.primer.fg.disabled"),Or("colors.input.disabledBg"),Or("colors.border.default"))),(e=>e.monospace&&o.css(["font-family:",";"],Or("fonts.mono"))),(e=>"error"===e.validationStatus&&o.css(["border-color:",";",""],Or("colors.danger.emphasis"),Tc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&o.css(["border-color:",";"],Or("colors.success.emphasis"))),(e=>e.block&&o.css(["width:100%;display:flex;align-self:stretch;"])),Or("breakpoints.1"),Or("fontSizes.1"),me,xe,we,wc,kc,Qo),Ic=i.default(Sc).withConfig({displayName:"TextInputWrapper",componentId:"sc-1mqhpbi-1"})(["background-repeat:no-repeat;background-position:right 8px center;& > :not(:last-child){margin-right:",";}.TextInput-icon,.TextInput-action{align-self:center;color:",";flex-shrink:0;}"," ",";"],Or("space.2"),Or("colors.fg.muted"),(e=>o.css(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?Ec:0,e.hasTrailingVisual&&!e.hasTrailingAction?Ec:0,e.hasLeadingVisual?0:Ec,e.hasTrailingVisual||e.hasTrailingAction?0:Ec)),Qo);function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Mc.apply(this,arguments)}const Nc={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",'&[data-component="IconButton"]':{width:"var(--inner-action-size)",height:"var(--inner-action-size)"},"@media (pointer: coarse)":{":after":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}},Oc=({"aria-label":e,children:r,tooltipDirection:o})=>l.default.createElement(l.default.Fragment,null,e?l.default.createElement(la,{text:e,direction:o,sx:{display:"inline-block"}},r):r),Ac=r.forwardRef((({"aria-label":e,tooltipDirection:r,children:o,icon:t,sx:a,variant:n="invisible",...i},c)=>{const d="invisible"===n?Vr(Nc,a||{}):a||{};return(t&&!e||!o&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),l.default.createElement(et,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},t&&!o?l.default.createElement(la,{direction:null!=r?r:"s",text:null!=e?e:"",type:"label"},l.default.createElement(va,Mc({variant:n,type:"button",icon:t,size:"small",sx:d},i,{ref:c}))):l.default.createElement(Oc,{"aria-label":e},l.default.createElement(ft,Mc({variant:n,type:"button",sx:d},i,{ref:c}),o)))})),Lc=i.default.input.withConfig({displayName:"UnstyledTextInput",componentId:"sc-14ypya-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}",";"],Qo);function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jc.apply(this,arguments)}const Rc=l.default.forwardRef((({icon:e,leadingVisual:o,trailingVisual:t,trailingAction:a,block:n,className:i,contrast:c,disabled:d,loading:s,loaderPosition:u="auto",monospace:g,validationStatus:b,sx:v,size:f,onFocus:h,onBlur:p,width:m,minWidth:y,maxWidth:x,variant:C,type:w="text",required:k,...B},E)=>{const[T,S]=r.useState(!1),I=Ur(E),M=ca(i,"TextInput-wrapper"),N=s&&("leading"===u||Boolean(o&&"trailing"!==u)),O=s&&("trailing"===u||Boolean("auto"===u&&!o)),A=r.useCallback((e=>{S(!0),h&&h(e)}),[h]),L=r.useCallback((e=>{S(!1),p&&p(e)}),[p]);return l.default.createElement(Ic,{block:n,className:M,validationStatus:b,contrast:c,disabled:d,monospace:g,sx:v,size:f,width:m,minWidth:y,maxWidth:x,variant:C,hasLeadingVisual:Boolean(o||N),hasTrailingVisual:Boolean(t||O),hasTrailingAction:Boolean(a),isInputFocused:T,onClick:()=>{var e;null===(e=I.current)||void 0===e||e.focus()},"aria-busy":Boolean(s)},e&&l.default.createElement(e,{className:"TextInput-icon"}),l.default.createElement(Cc,{visualPosition:"leading",showLoadingIndicator:N,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof o&&hc.isValidElementType(o)?l.default.createElement(o,null):o),l.default.createElement(Lc,jc({ref:I,disabled:d,onFocus:A,onBlur:L,type:w,"aria-required":k,"aria-invalid":"error"===b?"true":void 0},B,{"data-component":"input"})),l.default.createElement(Cc,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof t&&hc.isValidElementType(t)?l.default.createElement(t,null):t),a)}));Rc.displayName="TextInput";var Dc=Object.assign(Rc,{Action:Ac});function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zc.apply(this,arguments)}const Pc=l.default.forwardRef((({as:e=Dc,onFocus:o,onBlur:t,onChange:a,onKeyDown:n,onKeyUp:i,onKeyPress:c,value:d,...s},u)=>{const g=r.useContext(Xi);if(null===g)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:b,autocompleteSuggestion:v="",id:f,inputRef:h,inputValue:p="",isMenuDirectlyActivated:m,setInputValue:y,setShowMenu:x,showMenu:C}=g;Ho(u,h);const[w,k]=r.useState(!0),{safeSetTimeout:B}=fn(),E=r.useCallback((e=>{o&&o(e),x(!0)}),[o,x]),T=r.useCallback((e=>{t&&t(e),B((()=>{document.activeElement!==h.current&&x(!1)}),0)}),[t,x,h,B]),S=r.useCallback((e=>{a&&a(e),y(e.currentTarget.value),C||x(!0)}),[a,y,x,C]),I=r.useCallback((e=>{var r;n&&n(e),"Backspace"===e.key&&k(!1),"Escape"===e.key&&null!==(r=h.current)&&void 0!==r&&r.value&&(y(""),h.current.value="")}),[h,y,k,n]),M=r.useCallback((e=>{i&&i(e),"Backspace"===e.key&&k(!0)}),[k,i]),N=r.useCallback((e=>{if(c&&c(e),C&&"Enter"===e.key&&b.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);b.current.dispatchEvent(r)}}),[b,C,c]);return r.useEffect((()=>{h.current&&(v||(h.current.value=p),w&&v&&(p||m)&&(h.current.value=v,0===v.toLowerCase().indexOf(p.toLowerCase())&&h.current.setSelectionRange(p.length,v.length)))}),[v,p,h,m]),r.useEffect((()=>{y(void 0!==d?d.toString():"")}),[d,y]),l.default.createElement(e,zc({onFocus:E,onBlur:T,onChange:S,onKeyDown:I,onKeyPress:N,onKeyUp:M,ref:h,"aria-controls":`${f}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":`${f}-listbox`,autoComplete:"off",id:f},s))}));function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_c.apply(this,arguments)}Pc.displayName="AutocompleteInput";const Hc={startMargin:0,endMargin:8};function Fc(e){const o=r.useContext(Xi);if(null===o)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:t,id:a,inputRef:n,inputValue:i="",scrollContainerRef:c,setAutocompleteSuggestion:d,setShowMenu:s,setInputValue:u,setIsMenuDirectlyActivated:g,setSelectedItemLength:b,showMenu:v}=o,{items:f,selectedItemIds:h,sortOnCloseFn:p,emptyStateText:m="No selectable options",addNewItem:y,loading:x,selectionVariant:C="single",filterFn:w,"aria-labelledby":k,onOpenChange:B,onSelectedChange:E,customScrollContainerRef:T}=e,S=r.useRef(null),I=r.useRef([]),[M,N]=r.useState(),[O,A]=r.useState(f.map((({id:e})=>e))),L=Fo(a),j=r.useMemo((()=>f.map((e=>({...e,role:"option",id:e.id,active:(null==M?void 0:M.id)===e.id,selected:"multiple"===C?h.includes(e.id):void 0,onAction:e=>{const r=h.filter((r=>r!==e.id)),o=h.includes(e.id)?r:[...r,e.id];var t,a;((E||(t=u,function(e){const{text:r=""}=Array.isArray(e)?e.slice(-1)[0]:e;t(r)}))(o.map((e=>function(e,r){return r.find((r=>r.id===e))}(e,f)))),"multiple"===C)?(u(""),d("")):(s(!1),null===(a=n.current)||void 0===a||a.setSelectionRange(n.current.value.length,n.current.value.length))}})))),[M,f,h,n,E,C,d,u,s]),R=r.useMemo((()=>O.reduce(((e,r,o)=>(e[r]=o,e)),{})),[O]),D=r.useMemo((()=>{return j.filter(w||(e=i,function(r,o){var t;return Boolean(null===(t=r.text)||void 0===t?void 0:t.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>R[e.id]-R[r.id]));var e}),[j,R,w,i]),z=r.useMemo((()=>[...D,...y?[{...y,role:"option",key:y.id,active:(null==M?void 0:M.id)===y.id,selected:"multiple"===C?h.includes(y.id):void 0,leadingVisual:()=>l.default.createElement(Hn,null),onAction:e=>{y.handleAddItem({...e,id:e.id||L,leadingVisual:void 0}),"multiple"===C&&(u(""),d(""))}}]:[]]),[D,y,d,C,u,L,M,h]);if(l.default.useEffect((()=>{I.current=z})),Kn({containerRef:S,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:n,onActiveDescendantChanged:(e,r,o)=>{if(t.current=e||null,e){const r=I.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));N(r),g(o)}e&&T&&T.current&&o?No(e,T.current,Hc):e&&c.current&&o&&No(e,c.current,Hc)}},[x]),r.useEffect((()=>{var e;null!=M&&null!==(e=M.text)&&void 0!==e&&e.startsWith(i)&&!h.includes(M.id)?d(M.text):d("")}),[M,i,h,d]),r.useEffect((()=>{const e=[...O].sort(p||(r=e=>((e,r)=>r.includes(e))(e,h),(e,o)=>r(e)===r(o)?0:r(e)?-1:1));var r;const o=e.length===O.length&&e.every(((e,r)=>e===O[r]));!1!==v||o||A(e),B&&B(Boolean(v))}),[v,B,h,p,O]),r.useEffect((()=>{h.length&&b(h.length)}),[h,b]),"single"===C&&h.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return l.default.createElement(dt,{isVisible:v},x?l.default.createElement(et,{p:3,display:"flex",justifyContent:"center"},l.default.createElement(xc,null)):l.default.createElement("div",{ref:S},z.length?l.default.createElement(Di,{selectionVariant:C,role:"listbox",id:`${a}-listbox`,"aria-labelledby":k},z.map((e=>{const{id:r,onAction:o,children:t,text:a,leadingVisual:n,trailingVisual:i,...c}=e;return l.default.createElement(Di.Item,_c({key:r,onSelect:()=>o(e)},c,{id:r,"data-id":r}),n&&l.default.createElement(Di.LeadingVisual,null,l.default.createElement(n,null)),null!=t?t:a,i&&l.default.createElement(Di.TrailingVisual,null,l.default.createElement(i,null)))}))):!1!==m&&null!==m?l.default.createElement(et,{p:3},m):null))}function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vc.apply(this,arguments)}function Wc({menuAnchorRef:e,overlayProps:o,children:t,...a}){const n=r.useContext(Xi);if(null===n)throw new Error("AutocompleteContext returned null values");const i={...o,...a},{inputRef:c,scrollContainerRef:d,selectedItemLength:s,setShowMenu:u,showMenu:g=!1}=n,{floatingElementRef:b,position:v}=Lo({side:"outside-bottom",align:"start",anchorElementRef:e||c},[g,s]);Ho(d,b);const f=r.useCallback((()=>{u(!1)}),[u]);return"undefined"==typeof window?null:g?l.default.createElement(Fi,Vc({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:f,onEscape:f,ref:b,top:null==v?void 0:v.top,left:null==v?void 0:v.left,sx:{overflow:"auto"}},i),t):l.default.createElement(dt,{"aria-hidden":"true"},t)}Fc.displayName="AutocompleteMenu",Fc.displayName="AutocompleteMenu",Wc.displayName="AutocompleteOverlay";const Zc={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},$c=(e,r)=>{const{type:o,payload:t}=r;switch(o){case"inputValue":return{...e,inputValue:t};case"showMenu":return{...e,showMenu:t};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:t};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:t};case"selectedItemLength":return{...e,selectedItemLength:t};default:return e}},Kc=({children:e,id:o})=>{const t=r.useRef(null),a=r.useRef(null),n=r.useRef(null),[i,c]=r.useReducer($c,Zc),{inputValue:d,showMenu:s,autocompleteSuggestion:u,isMenuDirectlyActivated:g,selectedItemLength:b}=i,v=r.useCallback((e=>{c({type:"inputValue",payload:e})}),[]),f=r.useCallback((e=>{c({type:"showMenu",payload:e})}),[]),h=r.useCallback((e=>{c({type:"autocompleteSuggestion",payload:e})}),[]),p=r.useCallback((e=>{c({type:"isMenuDirectlyActivated",payload:e})}),[]),m=r.useCallback((e=>{c({type:"selectedItemLength",payload:e})}),[]),y=Fo(o);return l.default.createElement(Xi.Provider,{value:{activeDescendantRef:t,autocompleteSuggestion:u,id:y,inputRef:n,inputValue:d,isMenuDirectlyActivated:g,scrollContainerRef:a,selectedItemLength:b,setAutocompleteSuggestion:h,setInputValue:v,setIsMenuDirectlyActivated:p,setShowMenu:f,setSelectedItemLength:m,showMenu:s}},e)};Kc.displayName="Autocomplete";var Gc=Object.assign(Kc,{Context:Xi,Input:Pc,Menu:Fc,Overlay:Wc});const Uc={xsmall:{width:"320px"},small:{width:y.breakpoints[0]},medium:{width:y.breakpoints[1]},large:{width:y.breakpoints[2]},xlarge:{width:y.breakpoints[3]},xxlarge:{width:"1400px"}};function qc(e){return`@media screen and (min-width: ${e})`}const Yc=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(Uc.medium.width),Xc=qc(Uc.medium.width),Jc=qc(Uc.xxlarge.width);function Qc(e,r,o){if(Ca(e)){const t=e,a="narrow"in t?{[Yc]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[Xc]:{[r]:o(t.regular)}}:{},l="wide"in t?{[Jc]:{[r]:o(t.wide)}}:{};return function(e){if("narrow"in e&&"regular"in e&&"wide"in e){const r=Object.values(e);return r.every((e=>e===r[0]))}return!1}(t)?{[r]:o(t.narrow)}:function(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}(t)?{...a,...n}:{...a,...n,...l}}return{[r]:o(e)}}function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ed.apply(this,arguments)}const rd=20,od=i.default.img.attrs((e=>({height:e.size,width:e.size}))).withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-2lv0r8-0"})(["display:inline-block;overflow:hidden;line-height:",";vertical-align:middle;border-radius:",";box-shadow:0 0 0 1px ",";height:var(--avatar-size);width:var(--avatar-size);",""],Or("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Or("colors.avatar.border"),Qo),td=l.default.forwardRef((function({alt:e="",size:r=20,square:o=!1,sx:t=ct,...a},n){const i=Ca(r)?Vr(Qc(r,"--avatar-size",(e=>`${e||rd}px`)),t):Vr({"--avatar-size":`${r}px`},t);return l.default.createElement(od,ed({ref:n,alt:e,size:r,square:o,sx:i},a))}));function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ad.apply(this,arguments)}const nd=i.default(td).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Or("shadows.avatar.childShadow")),ld=({children:e,...r})=>{const o=l.default.Children.map(e,((e,r)=>l.default.isValidElement(e)?0===r?l.default.cloneElement(e,{size:40}):l.default.createElement(nd,ad({bg:"canvas.default"},e.props,{size:20})):e));return l.default.createElement(et,ad({position:"relative",display:"inline-flex"},r),o)};ld.displayName="AvatarPair",ld.displayName="AvatarPair";const id=i.default.span.withConfig({displayName:"AvatarStack__AvatarStackWrapper",componentId:"sc-4pdg6v-0"})(["--avatar-border-width:1px;--avatar-two-margin:calc(var(--avatar-stack-size) * -0.55);--avatar-three-margin:calc(var(--avatar-stack-size) * -0.85);display:flex;position:relative;height:var(--avatar-stack-size);min-width:var(--avatar-stack-size);.pc-AvatarStackBody{display:flex;position:absolute;}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);box-shadow:0 0 0 var(--avatar-border-width) ",";position:relative;overflow:hidden;&:first-child{margin-left:0;z-index:10;}&:nth-child(n + 2){margin-left:var(--avatar-two-margin);z-index:9;}&:nth-child(n + 3){margin-left:var(--avatar-three-margin);opacity:","%;z-index:8;}&:nth-child(n + 4){opacity:","%;z-index:7;}&:nth-child(n + 5){opacity:","%;z-index:6;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}&.pc-AvatarStack--two{min-width:calc( var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width) );}&.pc-AvatarStack--three{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) ) );}&.pc-AvatarStack--three-plus{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) * 2 ) );}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;&:first-child{margin-right:0;}&:nth-child(n + 2){margin-right:var(--avatar-two-margin);}&:nth-child(n + 3){margin-right:var(--avatar-three-margin);}}.pc-AvatarStackBody{flex-direction:row-reverse;&:not(.pc-AvatarStack--disableExpand):hover{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover{width:auto;.pc-AvatarItem{margin-left:",";opacity:100%;visibility:visible;"," transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;&:first-child{margin-left:0;}}}.pc-AvatarStack--disableExpand{position:relative;}",";"],(e=>1===e.count?Or("colors.avatar.border"):Or("colors.canvas.default")),55,40,25,Or("space.1"),Or("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Or("colors.canvas.default")};`),Qo),cd=({children:e,alignRight:r,disableExpand:o,size:t,sx:a=ct})=>{const n=l.default.Children.count(e),i=ca({"pc-AvatarStack--two":2===n,"pc-AvatarStack--three":3===n,"pc-AvatarStack--three-plus":n>3,"pc-AvatarStack--right":r}),c=ca("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":o}),d=Vr(t?Ca(t)?Qc(t,"--avatar-stack-size",(e=>`${e||rd}px`)):{"--avatar-stack-size":`${t}px`}:Qc((()=>{const r={narrow:[],regular:[],wide:[]};return l.default.Children.toArray(e).reduce(((e,o)=>{if(!l.default.isValidElement(o))return e;for(const t of Object.keys(r))Ca(o.props.size)?r[t].push(o.props.size[t]||rd):r[t].push(o.props.size||rd),e[t]=Math.min(...r[t]);return e}),{narrow:rd,regular:rd,wide:rd})})(),"--avatar-stack-size",(e=>`${e}px`)),a);return l.default.createElement(id,{count:n,className:i,sx:d},l.default.createElement(et,{className:c}," ",(e=>l.default.Children.map(e,(e=>l.default.isValidElement(e)?l.default.cloneElement(e,{...e.props,className:ca(e.props.className,"pc-AvatarItem")}):e)))(e)))};cd.displayName="AvatarStack";const dd=i.default.a.withConfig({displayName:"BranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:",";font-family:",";color:",";background-color:",";border-radius:",";text-decoration:none;",";"],Or("fontSizes.0"),Or("fonts.mono"),Or("colors.accent.fg"),Or("colors.accent.subtle"),Or("radii.2"),Qo),sd=i.default.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{font-size:",";content:'';display:inline-block;height:0.8em;margin:0 0.5em;border-right:0.1em solid;border-color:",";transform:rotate(15deg) translateY(0.0625em);}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Or("fontSizes.1"),Or("colors.fg.muted")),ud=i.default.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],Qo);function gd({className:e,children:r,sx:o}){const t=l.default.Children.map(r,(e=>l.default.createElement(sd,null,e)));return l.default.createElement(ud,{className:e,"aria-label":"Breadcrumbs",sx:o},l.default.createElement(et,{as:"ol",my:0,pl:0},t))}gd.displayName="Breadcrumbs";const bd=i.default.a.attrs((e=>({className:ca(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null}))).withConfig({displayName:"Breadcrumbs__BreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover,&:focus{text-decoration:underline;}&.selected{color:",";pointer-events:none;}&.selected:focus{text-decoration:none;}",";"],Or("colors.accent.fg"),Or("fontSizes.1"),Or("colors.fg.default"),Qo);gd.displayName="Breadcrumbs",bd.displayName="Breadcrumbs.Item";var vd=Object.assign(gd,{Item:bd});const fd=Object.assign(gd,{Item:bd}),hd=i.default.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *{margin-inline-end:-1px;position:relative;border-radius:0;:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}:focus,:active,:hover{z-index:1;}}",";"],Or("radii.2"),Or("radii.2"),Or("radii.2"),Or("radii.2"),Qo),pd={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},md={top:"Left",right:"Top",bottom:"Left",left:"Top"};function yd(e,r,o){const t=pd[e].toLowerCase(),a=md[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const xd=Tr({prop:"bg",key:"colors"}),Cd=Tr({prop:"borderColor",key:"colors"}),wd=Tr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function kd(e){var r;const t=l.default.useContext(o.ThemeContext),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(r=e.theme)&&void 0!==r?r:t},{bg:n}=xd(a),{borderColor:i}=Cd(a),{borderWidth:c}=wd(a),{size:d=8,location:s="bottom"}=e,[u,g]=function(e){const[r,o]=e.split("-");return[r,o]}(s),b=md[u],v=[-d,0],f=[0,d],h=[d,0],p=`M${v}L${f}L${h}L${v}Z`,m=`M${v}L${f}L${h}`,y={top:`translate(${[d,2*d]}) rotate(180)`,right:`translate(${[0,d]}) rotate(-90)`,bottom:`translate(${[d,0]})`,left:`translate(${[2*d,d]}) rotate(90)`}[u];return l.default.createElement("svg",{width:2*d,height:2*d,style:{pointerEvents:"none",position:"absolute",...yd(u,g,d),[`margin${b}`]:g?null:-d},role:"presentation"},l.default.createElement("g",{transform:y},l.default.createElement("path",{d:p,fill:null==t?void 0:t.colors.canvas.default}),l.default.createElement("path",{d:p,fill:n}),l.default.createElement("path",{d:m,fill:"none",stroke:i,strokeWidth:c})))}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bd.apply(this,arguments)}function Ed(e){const{size:r=32,as:o,icon:t,bg:a,...n}=e;return l.default.createElement(et,{as:o,bg:a,overflow:"hidden",borderWidth:0,size:r,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},l.default.createElement(et,Bd({display:"flex",as:o,size:r},n,{alignItems:"center",justifyContent:"center"}),l.default.createElement(t,{size:r})))}kd.displayName="Caret",kd.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Ed.displayName="CircleOcticon";const Td=r.createContext(null),Sd=Td.Provider;function Id(){var e;return null!==(e=r.useContext(Td))&&void 0!==e?e:{}}const Md=r.createContext({});function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Nd.apply(this,arguments)}const Od=i.default.input.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1ga3qj3-0"})(["",";border-radius:",";transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&::before{width:var(--base-size-16,16px);height:var(--base-size-16,16px);visibility:hidden;content:'';background-color:",";transition:visibility 0s linear 230ms;clip-path:inset(var(--base-size-16,16px) 0 0 0);mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');mask-size:75%;mask-repeat:no-repeat;mask-position:center;animation:checkmarkOut 80ms cubic-bezier(0.65,0,0.35,1) forwards;}&:checked,&:indeterminate{background:",";border-color:",";&::before{animation:checkmarkIn 80ms cubic-bezier(0.65,0,0.35,1) forwards 80ms;}}&:disabled{cursor:not-allowed;}&:checked{transition:background-color,border-color 80ms cubic-bezier(0.32,0,0.67,0) 0ms;&::before{visibility:visible;transition:visibility 0s linear 0s;}&:disabled{background-color:",";border-color:",";opacity:1;&::before{background-color:",";}}@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}}&:indeterminate{background:",";&::before{mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');visibility:visible;}}",";",";@keyframes checkmarkIn{from{clip-path:inset(var(--base-size-16,16px) 0 0 0);}to{clip-path:inset(0 0 0 0);}}@keyframes checkmarkOut{from{clip-path:inset(0 0 0 0);}to{clip-path:inset(var(--base-size-16,16px) 0 0 0);}}"],Ul,Or("radii.1"),Or("colors.fg.onEmphasis"),Or("colors.accent.fg"),Or("colors.accent.fg"),Or("colors.fg.muted"),Or("colors.fg.muted"),Or("colors.fg.onEmphasis"),Or("colors.accent.fg"),ot(),Qo),Ad=l.default.forwardRef((({checked:e,defaultChecked:o,indeterminate:t,disabled:a,onChange:n,sx:i,required:c,validationStatus:d,value:s,...u},g)=>{const b=Ur(g),v=r.useContext(Md);return Oo((()=>{b.current&&(b.current.indeterminate=t||!1)}),[t,e,b]),r.useEffect((()=>{const{current:e}=b;e&&(t?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),l.default.createElement(Od,Nd({type:"checkbox",disabled:a,ref:b,checked:!t&&e,defaultChecked:o,sx:i,required:c,"aria-required":c?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{v.onChange&&v.onChange(e),n&&n(e)},value:s,name:s},u))}));function Ld(){return Ld=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ld.apply(this,arguments)}Ad.displayName="Checkbox";const jd=i.default.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-li6bhs-0"})(["appearance:none;border-radius:inherit;border:0;color:currentColor;font-size:inherit;outline:none;width:100%;background-color:inherit;margin-top:1px;margin-left:1px;margin-bottom:1px;&:disabled{background-color:transparent;}@media screen and (forced-colors:active){&:disabled{background-color:-moz-combobox;}}"]),Rd=({className:e})=>l.default.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},l.default.createElement("path",{d:"m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z"}));Rd.displayName="ArrowIndicatorSVG";const Dd=i.default(Rd).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),zd=l.default.forwardRef((({block:e,children:r,contrast:o,disabled:t,placeholder:a,size:n,required:i,validationStatus:c,sx:d={},...s},u)=>l.default.createElement(Ic,{block:e,contrast:o,disabled:t,size:n,validationStatus:c,sx:Vr({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:t?"GrayText":"FieldText"}}},d)},l.default.createElement(jd,Ld({ref:u,required:i,disabled:t,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(a),defaultValue:null!=a?a:void 0},s),a&&l.default.createElement("option",{value:"",disabled:i,hidden:i},a),r),l.default.createElement(Dd,null)))),Pd=e=>l.default.createElement("option",e);Pd.displayName="Option";const _d=e=>l.default.createElement("optgroup",e);_d.displayName="OptGroup";var Hd=Object.assign(zd,{Option:Pd,OptGroup:_d}),Fd=R(oe,H,_,z,F,$,G,q,W,te,fe,he,pe),Vd=new RegExp("^("+Fd.propNames.join("|")+")$");function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Wd.apply(this,arguments)}const Zd={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},$d="medium",Kd=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),Gd=ve({prop:"size",variants:{small:{fontSize:0,height:Zd.small,lineHeight:Zd.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:Zd.medium,lineHeight:Zd.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:Zd.large,lineHeight:Zd.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:Zd.xlarge,lineHeight:Zd.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),Ud=i.default.span.withConfig({displayName:"TokenBase__StyledTokenBase",componentId:"sc-1ju9l7y-0"})(["align-items:center;border-radius:999px;cursor:",";display:inline-flex;font-weight:",";font-family:inherit;text-decoration:none;position:relative;white-space:nowrap;"," ",""],(e=>Kd(e)?"pointer":"auto"),Or("fontWeights.bold"),Gd,Qo),qd=l.default.forwardRef((({onRemove:e,onKeyDown:r,id:o,size:t=$d,...a},n)=>l.default.createElement(Ud,Wd({onKeyDown:o=>{r&&r(o),"Backspace"!==o.key&&"Delete"!==o.key||!e||e()},id:null==o?void 0:o.toString(),size:t},a,{ref:n}))));function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yd.apply(this,arguments)}const Xd=ve({prop:"size",variants:{small:{height:Zd.small,width:Zd.small},medium:{height:Zd.medium,width:Zd.medium},large:{height:Zd.large,width:Zd.large},xlarge:{height:Zd.xlarge,width:Zd.xlarge}}}),Jd=e=>.75*parseInt(Zd[e||$d],10),Qd=i.default.span.withConfig({displayName:"_RemoveTokenButton__StyledTokenButton",componentId:"sc-urhpr1-0"})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:",";align-self:baseline;border:0;border-radius:999px;"," &:hover,&:focus{background-color:",";}&:active{background-color:",";}"," ",""],(e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`),(e=>{switch(e.size){case"large":case"xlarge":return o.css(["margin-left:",";"],Or("space.2"));default:return o.css(["margin-left:",";"],Or("space.1"))}}),Or("colors.neutral.muted"),Or("colors.neutral.subtle"),Xd,Qo),es=({"aria-label":e,isParentInteractive:r,size:o=$d,...t})=>(delete t.children,l.default.createElement(Qd,Yd({as:r?"span":"button",tabIndex:r?-1:void 0,"aria-label":r?e:"Remove token",size:o},t),l.default.createElement($n,{size:Jd(o)})));es.displayName="RemoveTokenButton";const rs=i.default("span").withConfig({displayName:"_TokenTextContainer__TokenTextContainer",componentId:"sc-6l9eri-0"})(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;line-height:normal;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex='0']){cursor:pointer;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}}"]);function os(){return os=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},os.apply(this,arguments)}const ts=({children:e,size:r})=>l.default.createElement(et,{sx:{flexShrink:0,lineHeight:0,marginRight:r&&["large","xlarge"].includes(r)?2:1}},e);ts.displayName="LeadingVisualContainer";const as=r.forwardRef(((e,r)=>{const{as:o,onRemove:t,id:a,leadingVisual:n,text:i,size:c=$d,hideRemoveButton:d,href:s,onClick:u,sx:g=ct,...b}=e,v=Kd(e)&&Boolean(t)&&!d,f={as:o,href:s,onClick:u},h=Vr({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!d&&t?0:void 0,...Kd(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},g);return l.default.createElement(qd,os({onRemove:t,id:null==a?void 0:a.toString(),text:i,size:c,sx:h},v?{}:f,b,{ref:r}),n?l.default.createElement(ts,{size:c},l.default.createElement(n,null)):null,l.default.createElement(rs,v?f:{},i),t&&l.default.createElement(dt,null," (press backspace or delete to remove)"),!d&&t?l.default.createElement(es,{borderOffset:1,onClick:e=>{e.stopPropagation(),t&&t()},size:c,isParentInteractive:Kd(e),"aria-hidden":v?"true":"false"}):null)}));function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ns.apply(this,arguments)}as.displayName="Token";const ls={small:0,medium:1,large:1,xlarge:2};function is({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:i,className:c,block:d,disabled:s,sx:u,tokens:g,onTokenRemove:b,tokenComponent:v=as,preventTokenWrapping:f=!1,size:h="xlarge",hideTokenRemoveButtons:p=!1,maxHeight:m,width:y,minWidth:x,maxWidth:C,validationStatus:w,variant:k,visibleTokenCount:B,...E},T){const{onBlur:S,onFocus:I,onKeyDown:M,...N}=function(e){var r={};for(var o in e)Vd.test(o)||(r[o]=e[o]);return r}(E),O=r.useRef(null);Ho(T,O);const[A,L]=r.useState(),[j,R]=r.useState(Boolean(B)),{containerRef:D}=Kn({focusOutBehavior:"wrap",bindKeys:Co.ArrowHorizontal|Co.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!A&&0!==A)return;let o=A+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>g.length||o<1?O.current||void 0:null===(r=D.current)||void 0===r?void 0:r.children[o]}},[A]),z=e=>{b(e),setTimeout((()=>{var e,r;const o=null===(e=D.current)||void 0===e?void 0:e.children[A||0],t=o&&ro(o)?o:Array.from((null===(r=D.current)||void 0===r?void 0:r.children)||[]).find((e=>ro(e)));var a;t?t.focus():null===(a=O.current)||void 0===a||a.focus()}),0)},P=()=>{L(void 0),setTimeout((()=>{var e;null!==(e=D.current)&&void 0!==e&&e.contains(document.activeElement)||!B||R(!0)}),0)},_=e=>{var r;"Escape"===e.key&&(null===(r=O.current)||void 0===r||r.focus())},H=e=>{e.stopPropagation()},F=j?g.slice(0,B):g,V=a&&("leading"===n||Boolean(o&&"trailing"!==n)),W=a&&("trailing"===n||"auto"===n&&!o);return l.default.createElement(Ic,{block:d,className:c,contrast:i,disabled:s,hasLeadingVisual:Boolean(o||V),hasTrailingVisual:Boolean(t||W),width:y,minWidth:x,maxWidth:C,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[h],validationStatus:w,variant:k,onClick:()=>{var e;null===(e=O.current)||void 0===e||e.focus()},sx:{paddingLeft:Ec,py:`calc(${Ec} / 2)`,...d?{display:"flex",width:"100%"}:{},...m?{maxHeight:m,overflow:"auto"}:{},...f?{overflow:"auto"}:{},...u}},e&&!o&&l.default.createElement(e,{className:"TextInput-icon"}),l.default.createElement(Cc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:V},"string"!=typeof o&&hc.isValidElementType(o)?l.default.createElement(o,null):o),l.default.createElement(et,{ref:D,display:"flex",sx:{alignItems:"center",flexWrap:f?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},l.default.createElement(et,{sx:{order:1,flexGrow:1}},l.default.createElement(Lc,ns({ref:O,disabled:s,onFocus:e=>{I&&I(e),L(void 0),B&&R(!1)},onBlur:e=>{S&&S(e),setTimeout((()=>{var e;null!==(e=D.current)&&void 0!==e&&e.contains(document.activeElement)||!B||R(!0)}),0)},onKeyDown:e=>{var r;if(M&&M(e),null!==(r=O.current)&&void 0!==r&&r.value)return;const o=g[g.length-1];"Backspace"===e.key&&o&&(z(o.id),O.current&&(O.current.value=`${o.text} `),setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"},"aria-invalid":"error"===w?"true":"false"},N))),F.map((({id:e,...r},o)=>{return l.default.createElement(v,ns({disabled:s,key:e,onFocus:(t=o,()=>{s||L(t)}),onBlur:P,onKeyUp:_,onClick:H,isSelected:A===o,onRemove:()=>{z(e)},hideRemoveButton:s||p,size:h,tabIndex:0},r));var t})),j&&g.length-F.length?l.default.createElement(Al,{color:"fg.muted",fontSize:ls[h]},"+",g.length-F.length):null),l.default.createElement(Cc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:W},"string"!=typeof t&&hc.isValidElementType(t)?l.default.createElement(t,null):t))}is.displayName="TextInputWithTokensInnerComponent";const cs=l.default.forwardRef(is);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ds.apply(this,arguments)}cs.displayName="TextInputWithTokens";const ss=i.default.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-1lf8it-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;resize:both;&:focus{outline:0;}"," "," ",";"],(e=>e.resize&&o.css(["resize:",";"],e.resize)),(e=>e.disabled&&o.css(["resize:none;"])),Qo),us=l.default.forwardRef((({value:e,disabled:r,sx:o,required:t,validationStatus:a,rows:n=7,cols:i=30,resize:c="both",block:d,contrast:s,...u},g)=>l.default.createElement(Sc,{sx:o,validationStatus:a,disabled:r,block:d,contrast:s},l.default.createElement(ss,ds({value:e,resize:c,"aria-required":t,"aria-invalid":"error"===a?"true":"false",ref:g,disabled:r,rows:n,cols:i},u)))));us.displayName="Textarea";const gs=({children:e,disabled:r,id:o,sx:t})=>l.default.createElement(Al,{color:r?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:o,sx:t},e);gs.displayName="InputCaption";const bs=({children:e,sx:r,id:o})=>{const{captionId:t,disabled:a}=Id();return l.default.createElement(gs,{id:o||t||"",disabled:a,sx:r},e)};function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vs.apply(this,arguments)}bs.displayName="FormControlCaption";const fs=({children:e,disabled:r,htmlFor:o,id:t,required:a,visuallyHidden:n,sx:i,as:c="label",...d})=>l.default.createElement(dt,vs({isVisible:!n,as:c,htmlFor:o,id:t,sx:{fontWeight:"bold",fontSize:1,display:"block",color:r?"fg.muted":"fg.default",cursor:r?"not-allowed":"pointer",alignSelf:"flex-start",...i}},d),a?l.default.createElement(et,{display:"flex",as:"span"},l.default.createElement(et,{mr:1},e),l.default.createElement("span",null,"*")):e);fs.displayName="InputLabel";const hs=({as:e,children:r,htmlFor:o,id:t,visuallyHidden:a,sx:n,...i})=>{const{disabled:c,id:d,required:s}=Id(),u="legend"===e||"span"===e?{as:e,id:t,visuallyHidden:a,required:s,disabled:c,sx:n,...i}:{as:e,id:t,visuallyHidden:a,htmlFor:o||d,required:s,disabled:c,sx:n,...i};return l.default.createElement(fs,u,r)};hs.displayName="FormControlLabel";const ps=({children:e,sx:r})=>{const{disabled:o,captionId:t}=Id();return l.default.createElement(et,{color:o?"fg.muted":"fg.default",sx:{"> *":{minWidth:Or(t?"fontSizes.4":"fontSizes.2"),minHeight:Or(t?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...r},ml:2},e)};ps.displayName="FormControlLeadingVisual";const ms=({children:e,variant:r,sx:o,id:t})=>{const{validationMessageId:a}=Id();return l.default.createElement(Pl,{validationStatus:r,id:t||a||"",sx:o},e)};ms.displayName="FormControlValidation";const ys=l.default.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:i},c)=>{var d,s,u;const[g,b]=ka(e,{caption:bs,label:hs,leadingVisual:ps,validation:ms}),v=[Gc,Ad,Xl,Hd,Dc,cs,us],f=r.useContext(Ll).disabled||o,h=Fo(a),p=g.validation?`${h}-validationMessage`:void 0,m=g.caption?`${h}-caption`:void 0,y=null===(d=g.validation)||void 0===d?void 0:d.props.variant,x=b.find((e=>v.some((r=>l.default.isValidElement(e)&&e.type===r)))),C=l.default.isValidElement(x)&&x.props,w=l.default.isValidElement(x)&&(x.type===Ad||x.type===Xl);x&&(null!=C&&C.id&&console.warn("instead of passing the 'id' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.disabled&&console.warn("instead of passing the 'disabled' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.required&&console.warn("instead of passing the 'required' prop directly to the input component, it should be passed to the parent component, <FormControl>")),g.label||console.error(`The input field with the id ${h} MUST have a FormControl.Label child.\n\nIf you want to hide the label, pass the 'visuallyHidden' prop to the FormControl.Label component.`),w?(g.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),b.find((e=>{var r;return l.default.isValidElement(e)&&(null===(r=e.props)||void 0===r?void 0:r.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):g.leadingVisual&&console.warn("A leading visual is only rendered for a checkbox or radio form control. If you want to render a leading visual inside of your input, check if your input supports a leading visual.");const k=null===(s=g.label)||void 0===s?void 0:s.props.visuallyHidden;return l.default.createElement(Sd,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?l.default.createElement(et,{ref:c,display:"flex",alignItems:g.leadingVisual?"center":void 0,sx:i},l.default.createElement(et,{sx:{"> input":{marginLeft:0,marginRight:0}}},l.default.isValidElement(x)&&l.default.cloneElement(x,{id:h,disabled:f,"aria-describedby":m}),b.filter((e=>l.default.isValidElement(e)&&![Ad,Xl].some((r=>e.type===r))))),g.leadingVisual&&l.default.createElement(et,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:g.caption?Or("fontSizes.4"):Or("fontSizes.2"),minHeight:g.caption?Or("fontSizes.4"):Or("fontSizes.2"),fill:"currentColor"}},ml:2},g.leadingVisual),null===(u=g.label)||void 0===u||!u.props.visuallyHidden||g.caption?l.default.createElement(et,{display:"flex",flexDirection:"column",ml:2},g.label,g.caption):l.default.createElement(l.default.Fragment,null,g.label,g.caption)):l.default.createElement(et,{ref:c,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...i}},g.label,l.default.isValidElement(x)&&l.default.cloneElement(x,Object.assign({id:h,required:n,disabled:f,validationStatus:y,"aria-describedby":[p,m].filter(Boolean).join(" ")},x.props)),b.filter((e=>l.default.isValidElement(e)&&!v.some((r=>e.type===r)))),g.validation?l.default.createElement(Ol,{show:!0},g.validation):null,g.caption))}));var xs=Object.assign(ys,{Caption:bs,Label:hs,LeadingVisual:ps,Validation:ms});function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cs.apply(this,arguments)}const ws=({children:e,disabled:r,onChange:o,...t})=>{const a=l.default.Children.toArray(e).filter((e=>l.default.isValidElement(e)&&e.type===xs)).map((e=>l.default.isValidElement(e)?e.props.children:[])).flat(),n=l.default.Children.toArray(a).filter((e=>l.default.isValidElement(e)&&e.type===Ad)).map((e=>l.default.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=Ro(n);return l.default.createElement(Md.Provider,{value:{disabled:r,onChange:e=>{o&&((e=>{const{value:r,checked:o}=e.currentTarget;c(o?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),o(i.current||[],e))}}},l.default.createElement(Wl,Cs({disabled:r},t),e))};ws.displayName="CheckboxGroup";var ks=Object.assign(ws,{Caption:jl,Label:Rl,Validation:_l});const Bs={small:56,medium:96,large:128},Es=i.default.div.withConfig({displayName:"CircleBadge",componentId:"sc-nywehb-0"})(["display:",";align-items:center;justify-content:center;background-color:",";border-radius:50%;box-shadow:",";",";",";"],(({inline:e=!1})=>e?"inline-flex":"flex"),Or("colors.canvas.default"),Or("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Bs[r];return{width:o,height:o}}),Qo),Ts=i.default(Cn).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);Ts.displayName="CircleBadge.Icon";var Ss=Object.assign(Es,{Icon:Ts});const Is=i.default.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],Qo);Is.displayName="Details";const Ms=()=>null;function Ns(e){const r=e;return r.tabIndex>=0&&!r.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(r)}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Os.apply(this,arguments)}const As=()=>null,Ls=i.default.div.withConfig({displayName:"Dialog__DialogBase",componentId:"sc-13rdxb7-0"})(["box-shadow:",";border-radius:",";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:",";width:",";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}",";"],Or("shadows.shadow.large"),Or("radii.2"),Or("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),Qo),js=i.default(et).withConfig({displayName:"Dialog__DialogHeaderBase",componentId:"sc-13rdxb7-1"})(["border-radius:"," "," 0px 0px;border-bottom:1px solid ",";display:flex;@media screen and (max-width:750px){border-radius:0px;}",";"],Or("radii.2"),Or("radii.2"),Or("colors.border.default"),Qo);function Rs({theme:e,children:r,backgroundColor:o="canvas.subtle",...t}){return l.default.Children.toArray(r).every((e=>"string"==typeof e))&&(r=l.default.createElement(Al,{fontSize:1,fontWeight:"bold"},r)),l.default.createElement(js,Os({theme:e,p:3,backgroundColor:o},t),r)}Rs.displayName="DialogHeader";const Ds=i.default.span.withConfig({displayName:"Dialog__Overlay",componentId:"sc-13rdxb7-2"})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:",";}"],Or("colors.primer.canvas.backdrop")),zs=r.forwardRef((({children:e,onDismiss:o=As,isOpen:t,initialFocusRef:a,returnFocusRef:n,...i},c)=>{const d=r.useRef(null),s=r.useRef(null);Ho(c,s);const u=r.useRef(null),g=()=>{o(),n&&n.current&&n.current.focus()},{getDialogProps:b}=function({modalRef:e,overlayRef:o,isOpen:t,onDismiss:a=Ms,initialFocusRef:n,closeButtonRef:l}){const i=r.useCallback((r=>{e.current&&o.current&&r.target instanceof Node&&!e.current.contains(r.target)&&o.current.contains(r.target)&&a()}),[a,e,o]);r.useEffect((()=>{if(t)return document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}}),[t,i]),r.useEffect((()=>{t&&(n&&n.current?n.current.focus():l&&l.current&&l.current.focus())}),[t,n,l]);const c=r.useCallback(((r,o)=>{if(e.current){const t=Array.from(e.current.querySelectorAll("*")).filter(Ns);if(0===t.length)return;r.preventDefault();const a=document.activeElement;if(!a)return;const n=t.indexOf(a)+o,l=1===o?0:t.length-1;return t[n]||t[l]}}),[e]),d=r.useCallback((e=>{const r=e.shiftKey?-1:1,o=c(e,r);o&&o.focus()}),[c]),s=r.useCallback((e=>{"Tab"===e.key&&d(e)}),[d]);return Jr((e=>{t&&(a(),e.preventDefault())}),[t,a]),{getDialogProps:()=>({onKeyDown:s})}}({modalRef:s,onDismiss:g,isOpen:t,initialFocusRef:a,closeButtonRef:u,returnFocusRef:n,overlayRef:d});return t?l.default.createElement(l.default.Fragment,null,l.default.createElement(Ds,{ref:d}),l.default.createElement(Ls,Os({tabIndex:-1,ref:s,role:"dialog","aria-modal":"true"},i,b()),l.default.createElement(va,{icon:$n,ref:u,onClick:g,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));Rs.propTypes={...et.propTypes},Rs.displayName="Dialog.Header",zs.displayName="Dialog";var Ps=Object.assign(zs,{Header:Rs});function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_s.apply(this,arguments)}const Hs=ve({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),Fs=i.default.div.withConfig({displayName:"Flash__StyledFlash",componentId:"sc-hzrzfc-0"})(["position:relative;color:",";padding:",";border-style:solid;border-width:",";border-radius:",";margin-top:",";p:last-child{margin-bottom:0;}svg{margin-right:",";}",";",";"],Or("colors.fg.default"),Or("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Or("radii.2")),(e=>e.full?"-1px":"0"),Or("space.2"),Hs,Qo),Vs=l.default.forwardRef((function({as:e,variant:r="default",...o},t){return l.default.createElement(Fs,_s({ref:t,as:e,variant:r},o))}));const Ws=i.default.header.withConfig({displayName:"Header",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;",";"],Or("space.3"),Or("fontSizes.1"),Or("lineHeights.default"),Or("colors.header.text"),Or("colors.header.bg"),Qo),Zs=i.default.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Or("space.3"),(({full:e})=>e&&o.css(["flex:auto;"])),Qo);Zs.displayName="Header.Item";const $s=i.default.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__HeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Or("fontWeights.bold"),Or("colors.header.logo"),Or("colors.header.text"),Qo);$s.displayName="Header.Link";var Ks=Object.assign(Ws,{Link:$s,Item:Zs});function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gs.apply(this,arguments)}const Us=i.default.span.withConfig({displayName:"Label__StyledLabel",componentId:"sc-1dgcne-0"})(["align-items:center;background-color:transparent;border-width:1px;border-radius:999px;border-style:solid;display:inline-flex;font-weight:",";font-size:",";line-height:1;white-space:nowrap;",";",";",";"],Or("fontWeights.bold"),Or("fontSizes.0"),ve({variants:{default:{borderColor:"border.default"},primary:{borderColor:"fg.default"},secondary:{borderColor:"border.muted",color:"fg.muted"},accent:{borderColor:"accent.emphasis",color:"accent.fg"},success:{borderColor:"success.emphasis",color:"success.fg"},attention:{borderColor:"attention.emphasis",color:"attention.fg"},severe:{borderColor:"severe.emphasis",color:"severe.fg"},danger:{borderColor:"danger.emphasis",color:"danger.fg"},done:{borderColor:"done.emphasis",color:"done.fg"},sponsors:{borderColor:"sponsors.emphasis",color:"sponsors.fg"}}}),ve({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),Qo),qs=l.default.forwardRef((function({as:e,size:r="small",variant:o="default",...t},a){return l.default.createElement(Us,Gs({as:e,size:r,variant:o,ref:a},t))}));function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ys.apply(this,arguments)}const Xs=i.default.div.withConfig({displayName:"LabelGroup__StyledLabelGroupContainer",componentId:"sc-6tqg8q-0"})(["display:flex;flex-wrap:nowrap;gap:",";line-height:1;max-width:100%;overflow:hidden;&[data-overflow='inline']{flex-wrap:wrap;}",";"],Or("space.1"),Qo),Js=i.default.div.withConfig({displayName:"LabelGroup__ItemWrapper",componentId:"sc-6tqg8q-1"})(["display:flex;align-items:center;min-height:28px;&.ItemWrapper--hidden{order:9999;pointer-events:none;visibility:hidden;}"]),Qs=({collapseButtonRef:e,collapseInlineExpandedChildren:r,expandButtonRef:o,hiddenItemIds:t,isOverflowShown:a,showAllTokensInline:n,totalLength:i})=>a?l.default.createElement(ft,{ref:e,onClick:r,size:"small",variant:"invisible"},"Show less"):t.length?l.default.createElement(ft,{ref:o,variant:"invisible",size:"small",onClick:n},l.default.createElement(dt,null,"Show all ",i),l.default.createElement("span",{"aria-hidden":"true"},"+",t.length)):null,eu=({children:e,closeOverflowOverlay:r,expandButtonRef:o,hiddenItemIds:t,isOverflowShown:a,openOverflowOverlay:n,overlayPaddingPx:i,overlayWidth:c,totalLength:d})=>t.length?l.default.createElement(Wi,{open:a,onOpen:n,onClose:r,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:o,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>l.default.createElement(ft,Ys({variant:"invisible",size:"small"},e,{ref:o}),l.default.createElement(dt,null,"Show all ",d),l.default.createElement("span",{"aria-hidden":"true"},"+",t.length)),focusZoneSettings:{disabled:!0}},l.default.createElement(et,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},l.default.createElement(et,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),l.default.createElement(va,{onClick:r,icon:$n,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,ru=({children:e,visibleChildCount:r,overflowStyle:o="overlay",sx:t})=>{const a=l.default.useRef(null),n=l.default.useRef(null),i=l.default.useRef(void 0),[c,d]=l.default.useState({}),[s,u]=l.default.useState(!1),[g,b]=l.default.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:v}=Ko(),f=parseInt(Or("space.2")(v),10),h=Object.keys(c).filter((e=>!c[e])),p=h.length&&"overlay"===o?((e,r,o)=>{var t;return o+e.right-((null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect().left)||0)})(g,a,f):void 0,m=l.default.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===g.width&&r.right===g.right||b(r),m.current=e}}),[g]),y=l.default.useCallback((e=>{var r;const o=(null===(r=a.current)||void 0===r?void 0:r.children)||[],t={};for(const r of o){const o=r.getAttribute("data-index");o&&(t[o]=parseInt(o,10)<e)}d(t)}),[]),x=l.default.useCallback((()=>u(!0)),[u]),C=l.default.useCallback((()=>{u(!1)}),[u]),w=l.default.useCallback((()=>{u(!1),r&&"number"==typeof r&&y(r),setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),10)}),[m,y,r]),k=l.default.useCallback((()=>{d({}),u(!0)}),[d,u]);return l.default.useEffect((()=>{if(r&&!s){if("auto"===r){const r=new IntersectionObserver((e=>{const r={};for(const o of e){const e=o.target.getAttribute("data-index");e&&(r[e]=o.isIntersecting)}d((e=>({...e,...r})))}),{root:a.current,rootMargin:`0px -${g.width}px 0px 0px`,threshold:1});for(const o of(null===(e=a.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}y(r)}}),[g,r,y,s]),l.default.useEffect((()=>{"overlay"!==o&&h.length&&(i.current=parseInt(h[0],10))}),[h,o,s]),l.default.useEffect((()=>{if("overlay"===o)return;const e=document.querySelector(`[data-index="${i.current}"]`),r=e?eo(e):null;var t;s&&(r?r.focus():null===(t=n.current)||void 0===t||t.focus())}),[o,s]),r?l.default.createElement(Xs,{ref:a,"data-overflow":"inline"===o&&s?"inline":void 0,sx:t},l.default.Children.map(e,((e,r)=>l.default.createElement(Js,{"data-index":r,className:h.includes(r.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===o?l.default.createElement(Qs,{collapseButtonRef:n,collapseInlineExpandedChildren:w,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,showAllTokensInline:k,totalLength:l.default.Children.toArray(e).length}):l.default.createElement(eu,{closeOverflowOverlay:C,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,openOverflowOverlay:x,overlayPaddingPx:f,overlayWidth:p,totalLength:l.default.Children.toArray(e).length},e)):l.default.createElement(Xs,{"data-overflow":"inline",sx:t},e)};function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ou.apply(this,arguments)}ru.displayName="LabelGroup";const tu=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),au=i.default.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(Qo),nu=l.default.forwardRef((({children:e,...r},o)=>l.default.createElement(au,ou({},r,{ref:o}),l.default.createElement(Di,null,e))));nu.displayName="NavList";const lu=l.default.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=ct,...n},i)=>{const{depth:c}=l.default.useContext(du),d=l.default.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===su)),s=l.default.Children.toArray(o).filter((e=>!r.isValidElement(e)||e.type!==su));return!r.isValidElement(d)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),d&&r.isValidElement(d)?l.default.createElement(cu,{subNav:d,depth:c,defaultOpen:t,sx:a},s):l.default.createElement(Di.LinkItem,ou({ref:i,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:Vr(tu(c),a)},n),o)}));lu.displayName="NavList.Item";const iu=l.default.createContext({buttonId:"",subNavId:"",isOpen:!1});function cu({children:e,subNav:r,depth:o,defaultOpen:t,sx:a=ct}){var n;const i=Fo(),c=Fo(),[d,s]=l.default.useState(null!==(n=t||null)&&void 0!==n&&n),u=l.default.useRef(null),[g,b]=l.default.useState(!1);return Oo((()=>{if(u.current){u.current.querySelector("[aria-current]:not([aria-current=false])")&&(b(!0),s(!0))}}),[r,i]),l.default.createElement(iu.Provider,{value:{buttonId:i,subNavId:c,isOpen:d}},l.default.createElement(et,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},l.default.createElement(Di.Item,{as:"button",id:i,"aria-expanded":d,"aria-controls":c,active:!d&&g,onClick:()=>s((e=>!e)),sx:Vr({...tu(o),fontWeight:g?"bold":null},a)},e,l.default.createElement(Di.TrailingVisual,null,l.default.createElement(Cn,{icon:In,sx:{transform:d?"rotate(180deg)":"rotate(0deg)"}}))),l.default.createElement("div",{ref:u},r)))}cu.displayName="ItemWithSubNav";const du=l.default.createContext({depth:0}),su=({children:e,sx:r=ct})=>{const{buttonId:o,subNavId:t,isOpen:a}=l.default.useContext(iu),{depth:n}=l.default.useContext(du);return o&&t||console.error("NavList.SubNav must be a child of a NavList.Item"),n>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):l.default.createElement(du.Provider,{value:{depth:n+1}},l.default.createElement(et,{as:"ul",id:t,"aria-labelledby":o,sx:Vr({padding:0,margin:0,display:a?"block":"none"},r)},e))};su.displayName="SubNav",su.displayName="NavList.SubNav";const uu=Di.LeadingVisual;uu.displayName="NavList.LeadingVisual";const gu=Di.TrailingVisual;gu.displayName="NavList.TrailingVisual";const bu=Di.Divider;bu.displayName="NavList.Divider";const vu={},fu=({title:e,children:r,sx:o=vu,...t})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(Di.Divider,{sx:{"&:first-child":{display:"none"}}}),l.default.createElement(Di.Group,ou({},t,{title:e,sx:o}),r));fu.displayName="NavList.Group";const hu=Object.assign(nu,{Item:lu,SubNav:su,LeadingVisual:uu,TrailingVisual:gu,Divider:bu,Group:fu}),pu=i.default.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Or("space.4"),Or("space.4"),Or("space.4"),Or("colors.border.default"),Qo);function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},mu.apply(this,arguments)}const yu=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(xa),xu=i.default.a.withConfig({displayName:"Pagination__Page",componentId:"sc-cp45c9-0"})(["display:inline-block;min-width:32px;height:32px;padding:0.5rem calc((2rem - 1.25rem) / 2);font-style:normal;line-height:1;color:",";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:",";&:last-child{margin-right:0;}background-color:transparent;border-radius:",";transition:background-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;background-color:",";outline:0;transition-duration:0.1s;}",";&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:",";cursor:default;background-color:transparent;border-color:transparent;font-size:inherit;font-family:inherit;padding-top:inherit;padding-bottom:inherit;}&[aria-disabled],&[aria-disabled]:hover,&[role='presentation'],&[role='presentation']:hover{color:",";cursor:default;background-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:",";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:",";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"],Or("colors.fg.default"),Or("space.1"),Or("radii.2"),Or("colors.actionListItem.default.hoverBg"),ot(0),Or("colors.border.muted"),Or("colors.accent.fg"),Or("colors.fg.onEmphasis"),Or("colors.accent.emphasis"),Or("colors.primer.fg.disabled"),Or("colors.primer.fg.disabled"),Or("space.1"),Or("space.1"));function Cu({theme:e,pageCount:r,currentPage:o,onPageChange:t,hrefBuilder:a,marginPageCount:n,showPages:i,surroundingPageCount:c}){const d=l.default.useCallback((e=>r=>t(r,e)),[t]),s=l.default.useMemo((()=>function(e,r,o,t,a){const n=[];if(o){const o=[],l=r=>{r>=1&&r<=e&&o.push(r)};let i=r-a,c=r+a;if(i<1&&c>e)i=1,c=e;else if(i<1)for(;i<1;)i++,c++;else if(c>e)for(;c>e;)i--,c--;for(let r=1;r<=t;r++){const o=e-(r-1);r>=i?c++:l(r),o<=c?i--:l(o)}for(let e=i;e<=c;e++)l(e);const d=o.slice().sort(((e,r)=>e-r)).filter(((e,r,o)=>!r||e!==o[r-1]));for(let e=0;e<d.length;e++){const o=d[e],t=o===r,a=o-d[e-1],l=-1!=o-d[e+1];0===e?(1!==o&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:l})):1===a?n.push({type:"NUM",num:o,selected:t,precedesBreak:l}):(n.push({type:"BREAK",num:o-1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:!1}))}const s=n[n.length-1];"NUM"===s.type&&s.num!==e&&n.push({type:"BREAK",num:e})}const l={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,l]}(r,o,!!i,n,c)),[r,o,i,n,c]),u=l.default.useMemo((()=>s.map((r=>{const{props:o,key:t,content:n}=function(e,r,o){const t={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:o});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:o});break;case"NUM":n=`page-${e.num}`,a=String(e.num),Object.assign(t,{href:r(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:o,"aria-current":e.selected?"page":void 0});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(t,{as:"span",role:"presentation"})}return{props:t,key:n,content:a}}(r,a,d(r.num));return l.default.createElement(xu,mu({},o,{key:t,theme:e}),n)}))),[s,a,d,e]);return u}const wu=i.default.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(xa).map((e=>`\n @media (${xa[e]}) {\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:not(:first-child):not(:last-child) {\n display: none;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:first-child {\n margin-inline-end: 0;\n }\n \n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:last-child {\n margin-inline-start: 0;\n }\n }\n `)).join(""),Qo);function ku({theme:e,pageCount:r,currentPage:o,onPageChange:t=Eu,hrefBuilder:a=Bu,marginPageCount:n=1,showPages:i=!0,surroundingPageCount:c=2,...d}){const s=Cu({theme:e,pageCount:r,currentPage:o,onPageChange:t,hrefBuilder:a,marginPageCount:n,showPages:i,surroundingPageCount:c});return l.default.createElement(wu,mu({"aria-label":"Pagination"},d,{theme:e}),l.default.createElement(et,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":yu(i).join(" ")},s))}function Bu(e){return`#${e}`}function Eu(){}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tu.apply(this,arguments)}function Su(e){const r=l.default.useContext(o.ThemeContext),{bg:t,border:a,borderColor:n,theme:i,sx:c}=e,{caret:d,children:s,...u}=e,{bg:g,backgroundColor:b,...v}=c||{},f=i||r,h=t||g||b,p={bg:t||(null==c?void 0:c.bg)||(null==c?void 0:c.backgroundColor),borderColor:n||(null==c?void 0:c.borderColor),borderWidth:a,location:d,theme:f};return l.default.createElement(et,Tu({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},u,{sx:{...v,"--custom-bg":Or(`colors.${h}`)({theme:f}),backgroundImage:h?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${f.colors.canvas.default}, ${f.colors.canvas.default})`:void 0,position:"relative"}}),s,l.default.createElement(kd,p))}ku.displayName="Pagination",Su.displayName="PointerBox";const Iu=i.default.div.attrs((({className:e,caret:r="top"})=>({className:ca(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),Qo),Mu=i.default.div.withConfig({displayName:"Popover__PopoverContent",componentId:"sc-q9r75g-1"})(["border:1px solid ",";border-radius:",";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:",";background-color:",";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-",";margin-left:-9px;border:"," solid transparent;border-bottom-color:",";}&::after{top:-14px;margin-left:-",";border:7px solid transparent;border-bottom-color:",";}",".caret-pos--bottom &,",".caret-pos--bottom-right &,",".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-",";border-top-color:",";}&::after{bottom:-14px;border-top-color:",";}}",".caret-pos--top-right &,",".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}",".caret-pos--top-left &,",".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:",";margin-left:0;}&::after{left:calc("," + 1px);}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &,",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc(("," + 1px) * -1);}&::after{margin-top:-",";}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &{&::before{right:-",";border-left-color:",";}&::after{right:-14px;border-left-color:",";}}",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before{left:-",";border-right-color:",";}&::after{left:-14px;border-right-color:",";}}",".caret-pos--right-top &,",".caret-pos--left-top &{&::before,&::after{top:",";}}",".caret-pos--right-bottom &,",".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:",";}&::after{bottom:calc("," + 1px);}}",";"],Or("colors.border.default"),Or("radii.2"),Or("space.4"),Or("colors.canvas.overlay"),Or("space.3"),Or("space.2"),Or("colors.border.default"),Or("space.2"),Or("colors.canvas.overlay"),Iu,Iu,Iu,Or("space.3"),Or("colors.border.default"),Or("colors.canvas.overlay"),Iu,Iu,Iu,Iu,Or("space.4"),Or("space.4"),Iu,Iu,Iu,Iu,Iu,Iu,Or("space.2"),Or("space.2"),Iu,Iu,Iu,Or("space.3"),Or("colors.border.default"),Or("colors.canvas.overlay"),Iu,Iu,Iu,Or("space.3"),Or("colors.border.default"),Or("colors.canvas.overlay"),Iu,Iu,Or("space.4"),Iu,Iu,Or("space.3"),Or("space.3"),Qo);Mu.displayName="Popover.Content";var Nu=Object.assign(Iu,{Content:Mu});function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ou.apply(this,arguments)}const Au=o.keyframes(["from{mask-position:200%;}to{mask-position:0%;}"]),Lu=i.default.span.withConfig({displayName:"ProgressBar__Item",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";@media (prefers-reduced-motion:no-preference){&[data-animated='true']{mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}}",";"],(e=>e.progress?`${e.progress}%`:0),Or("colors.success.emphasis"),Au,Qo);Lu.displayName="ProgressBar.Item";const ju={small:"5px",large:"10px",default:"8px"},Ru=i.default.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Or("colors.border.default"),Or("radii.1"),(e=>ju[e.barSize||"default"]),me,Qo),Du=r.forwardRef((({animated:e,progress:r,bg:o="success.emphasis",barSize:t="default",children:a,...n},i)=>{if(a&&r)throw new Error("You should pass `progress` or children, not both.");const c="string"==typeof r?parseInt(r,10):r,d={"aria-valuenow":c?Math.round(c):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!c&&100!==c};return l.default.createElement(Ru,Ou({ref:i,role:"progressbar",barSize:t},d,n),null!=a?a:l.default.createElement(Lu,{"data-animated":e,progress:r,sx:{backgroundColor:o}}))}));Du.displayName="ProgressBar";const zu=Object.assign(Du,{Item:Lu});var Pu,_u=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},Hu=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};const Fu="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const r=[];for(const o of e)r.push({type:"element",value:o}),r.push({type:"literal",value:", "});return r.slice(0,-1)}},Vu=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Wu={minimumIntegerDigits:2};class Zu{constructor(e,r={}){Pu.set(this,void 0);let o=String(r.style||"short");"long"!==o&&"short"!==o&&"narrow"!==o&&"digital"!==o&&(o="short");let t="digital"===o?"numeric":o;const a=r.hours||t;t="2-digit"===a?"numeric":a;const n=r.minutes||t;t="2-digit"===n?"numeric":n;const l=r.seconds||t;t="2-digit"===l?"numeric":l;const i=r.milliseconds||t;_u(this,Pu,{locale:e,style:o,years:r.years||"digital"===o?"short":o,yearsDisplay:"always"===r.yearsDisplay?"always":"auto",months:r.months||"digital"===o?"short":o,monthsDisplay:"always"===r.monthsDisplay?"always":"auto",weeks:r.weeks||"digital"===o?"short":o,weeksDisplay:"always"===r.weeksDisplay?"always":"auto",days:r.days||"digital"===o?"short":o,daysDisplay:"always"===r.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===r.hoursDisplay||"digital"===o?"always":"auto",minutes:n,minutesDisplay:"always"===r.minutesDisplay||"digital"===o?"always":"auto",seconds:l,secondsDisplay:"always"===r.secondsDisplay||"digital"===o?"always":"auto",milliseconds:i,millisecondsDisplay:"always"===r.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return Hu(this,Pu,"f")}formatToParts(e){const r=[],o=Hu(this,Pu,"f"),t=o.style,a=o.locale;for(const[t,n]of Vu){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?Wu:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new Fu(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Pu=new WeakMap;const $u=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Ku=["year","month","week","day","hour","minute","second","millisecond"];class Gu{constructor(e=0,r=0,o=0,t=0,a=0,n=0,l=0,i=0){this.years=e,this.months=r,this.weeks=o,this.days=t,this.hours=a,this.minutes=n,this.seconds=l,this.milliseconds=i,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new Gu(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(e){var r;if("string"==typeof e){const o=String(e).trim(),t=o.startsWith("-")?-1:1,a=null===(r=o.match($u))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new Gu(...a):new Gu}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new Gu(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(Uu(o,Gu.from(e)).getTime()-o),a=Math.abs(Uu(o,Gu.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new Zu(e,r).format(this)}}function Uu(e,r){const o=new Date(e);return o.setFullYear(o.getFullYear()+r.years),o.setMonth(o.getMonth()+r.months),o.setDate(o.getDate()+7*r.weeks+r.days),o.setHours(o.getHours()+r.hours),o.setMinutes(o.getMinutes()+r.minutes),o.setSeconds(o.getSeconds()+r.seconds),o}function qu(e,{relativeTo:r=Date.now()}={}){if(r=new Date(r),e.blank)return e;const o=e.sign;let t=Math.abs(e.years),a=Math.abs(e.months),n=Math.abs(e.weeks),l=Math.abs(e.days),i=Math.abs(e.hours),c=Math.abs(e.minutes),d=Math.abs(e.seconds),s=Math.abs(e.milliseconds);s>=900&&(d+=Math.round(s/1e3)),(d||c||i||l||n||a||t)&&(s=0),d>=55&&(c+=Math.round(d/60)),(c||i||l||n||a||t)&&(d=0),c>=55&&(i+=Math.round(c/60)),(i||l||n||a||t)&&(c=0),l&&i>=12&&(l+=Math.round(i/24)),!l&&i>=21&&(l+=Math.round(i/24)),(l||n||a||t)&&(i=0);const u=r.getFullYear();let g=r.getMonth();const b=r.getDate();if(l>=27||t+a+l){const e=new Date(r);e.setFullYear(u+t*o),e.setMonth(g+a*o),e.setDate(b+l*o);const i=e.getFullYear()-r.getFullYear(),c=e.getMonth()-r.getMonth(),d=Math.abs(Math.round((Number(e)-Number(r))/864e5)),s=Math.abs(12*i+c);d<27?(l>=6?(n+=Math.round(l/7),l=0):l=d,a=t=0):s<11?(a=s,t=0):(a=0,t=i*o),(a||t)&&(l=0),g=r.getMonth()}return t&&(a=0),n>=4&&(a+=Math.round(n/4)),(a||t)&&(n=0),l&&n&&!a&&!t&&(n+=Math.round(l/7),l=0),new Gu(t*o,a*o,n*o,l*o,i*o,c*o,d*o,s*o)}var Yu,Xu,Ju,Qu,eg,rg,og,tg,ag,ng,lg,ig=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)},cg=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o};const dg=globalThis.HTMLElement||null,sg=new Gu,ug=new Gu(0,0,0,0,0,1);class gg extends Event{constructor(e,r,o,t){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=r,this.oldTitle=o,this.newTitle=t}}function bg(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const r=e.precision;if("second"===r)return 1e3;if("minute"===r)return 6e4}const r=Math.abs(Date.now()-e.date.getTime());return r<6e4?1e3:r<36e5?6e4:36e5}const vg=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);const r=e.date;if(r&&r.getTime()){const r=bg(e),o=Date.now()+r;o<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),r),this.time=o)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(const r of this.elements)e=Math.min(e,bg(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class fg extends dg{constructor(){super(...arguments),Yu.add(this),Xu.set(this,!1),Ju.set(this,!1),eg.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),lg.set(this,null)}static define(e="relative-time",r=customElements){return r.define(e,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","datetime","lang","title"]}get onRelativeTimeUpdated(){return ig(this,lg,"f")}set onRelativeTimeUpdated(e){ig(this,lg,"f")&&this.removeEventListener("relative-time-updated",ig(this,lg,"f")),cg(this,lg,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("relative-time-updated",e)}get second(){const e=this.getAttribute("second");if("numeric"===e||"2-digit"===e)return e}set second(e){this.setAttribute("second",e||"")}get minute(){const e=this.getAttribute("minute");if("numeric"===e||"2-digit"===e)return e}set minute(e){this.setAttribute("minute",e||"")}get hour(){const e=this.getAttribute("hour");if("numeric"===e||"2-digit"===e)return e}set hour(e){this.setAttribute("hour",e||"")}get weekday(){const e=this.getAttribute("weekday");return"long"===e||"short"===e||"narrow"===e?e:"datetime"===this.format&&""!==e?this.formatStyle:void 0}set weekday(e){this.setAttribute("weekday",e||"")}get day(){var e;const r=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===r||"2-digit"===r)return r}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let r=this.getAttribute("month");if(""!==r)return null!=r||(r="datetime"===e?this.formatStyle:"short"),"numeric"===r||"2-digit"===r||"short"===r||"long"===r||"narrow"===r?r:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const r=this.getAttribute("year");return"numeric"===r||"2-digit"===r?r:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(e=this.date)||void 0===e?void 0:e.getUTCFullYear())?void 0:"numeric"}set year(e){this.setAttribute("year",e||"")}get timeZoneName(){const e=this.getAttribute("time-zone-name");if("long"===e||"short"===e||"shortOffset"===e||"longOffset"===e||"shortGeneric"===e||"longGeneric"===e)return e}set timeZoneName(e){this.setAttribute("time-zone-name",e||"")}get prefix(){var e;return null!==(e=this.getAttribute("prefix"))&&void 0!==e?e:"datetime"===this.format?"":"on"}set prefix(e){this.setAttribute("prefix",e)}get threshold(){const e=this.getAttribute("threshold");return e&&(r=e,$u.test(r))?e:"P30D";var r}set threshold(e){this.setAttribute("threshold",e)}get tense(){const e=this.getAttribute("tense");return"past"===e?"past":"future"===e?"future":"auto"}set tense(e){this.setAttribute("tense",e)}get precision(){const e=this.getAttribute("precision");return Ku.includes(e)?e:"micro"===this.format?"minute":"second"}set precision(e){this.setAttribute("precision",e)}get format(){const e=this.getAttribute("format");return"datetime"===e?"datetime":"relative"===e?"relative":"duration"===e?"duration":"micro"===e?"micro":"elapsed"===e?"elapsed":"auto"}set format(e){this.setAttribute("format",e)}get formatStyle(){const e=this.getAttribute("format-style");if("long"===e)return"long";if("short"===e)return"short";if("narrow"===e)return"narrow";const r=this.format;return"elapsed"===r||"micro"===r?"narrow":"datetime"===r?"short":"long"}set formatStyle(e){this.setAttribute("format-style",e)}get datetime(){return this.getAttribute("datetime")||""}set datetime(e){this.setAttribute("datetime",e)}get date(){const e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=(null==e?void 0:e.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){vg.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&cg(this,Xu,null!==o&&(this.date&&ig(this,Yu,"m",rg).call(this,this.date))!==o,"f"),ig(this,Ju,"f")||"title"===e&&ig(this,Xu,"f")||cg(this,Ju,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=ig(this,eg,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(ig(this,eg,"f").textContent=e);const a=Date.now();ig(this,Xu,"f")||(o=ig(this,Yu,"m",rg).call(this,t)||"",o&&this.setAttribute("title",o));const n=function(e,r="second",o=Date.now()){const t=e.getTime()-o;if(0===t)return new Gu;const a=Math.sign(t),n=Math.abs(t),l=Math.floor(n/1e3),i=Math.floor(l/60),c=Math.floor(i/60),d=Math.floor(c/24),s=Math.floor(d/30),u=Math.floor(s/12),g=Ku.indexOf(r)||Ku.length;return new Gu(g>=0?u*a:0,g>=1?(s-12*u)*a:0,0,g>=3?(d-30*s)*a:0,g>=4?(c-24*d)*a:0,g>=5?(i-60*c)*a:0,g>=6?(l-60*i)*a:0,g>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=ig(this,Yu,"m",og).call(this,n);let i=e;i="duration"===l?ig(this,Yu,"m",tg).call(this,n):"relative"===l?ig(this,Yu,"m",ag).call(this,n):ig(this,Yu,"m",ng).call(this,t),i?ig(this,eg,"f").textContent=i:this.shadowRoot===ig(this,eg,"f")&&this.textContent&&(ig(this,eg,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new gg(e,i,r,o)),"relative"===l||"duration"===l?vg.observe(this):vg.unobserve(this),cg(this,Ju,!1,"f")}}Xu=new WeakMap,Ju=new WeakMap,eg=new WeakMap,lg=new WeakMap,Yu=new WeakSet,Qu=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},rg=function(e){return new Intl.DateTimeFormat(ig(this,Yu,"a",Qu),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},og=function(e){const r=this.format;if("datetime"===r)return"datetime";if("duration"===r)return"duration";if("elapsed"===r)return"duration";if("micro"===r)return"duration";if(("auto"===r||"relative"===r)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const r=this.tense;if("past"===r||"future"===r)return"relative";if(1===Gu.compare(e,this.threshold))return"relative"}return"datetime"},tg=function(e){const r=ig(this,Yu,"a",Qu),o=this.format,t=this.formatStyle,a=this.tense;let n=sg;"micro"===o?(e=qu(e),n=ug,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=ug)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=n);const l=`${this.precision}sDisplay`;return e.blank?n.toLocaleString(r,{style:t,[l]:"always"}):e.abs().toLocaleString(r,{style:t})},ag=function(e){const r=new Intl.RelativeTimeFormat(ig(this,Yu,"a",Qu),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=sg),"past"===o&&-1!==e.sign&&(e=sg);const[t,a]=function(e,r){const o=qu(e,r);if(o.blank)return[0,"second"];for(const e of Ku){if("millisecond"===e)continue;const r=o[`${e}s`];if(r)return[r,e]}return[0,"second"]}(e);return"second"===a&&t<10?r.format(0,"second"):r.format(t,a)},ng=function(e){const r=new Intl.DateTimeFormat(ig(this,Yu,"a",Qu),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${r.format(e)}`.trim()};const hg="undefined"!=typeof globalThis?globalThis:window;try{hg.RelativeTimeElement=fg.define()}catch(mg){if(!(hg.DOMException&&mg instanceof DOMException&&"NotSupportedError"===mg.name||mg instanceof ReferenceError))throw mg}
|
|
7
|
+
var x=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var k=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;var t=Object.getOwnPropertyNames(r).map((function(e){return r[e]}));if("0123456789"!==t.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var o,t,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),n=1;n<arguments.length;n++){for(var l in o=Object(arguments[n]))C.call(o,l)&&(a[l]=o[l]);if(x){t=x(o);for(var i=0;i<t.length;i++)w.call(o,t[i])&&(a[t[i]]=o[t[i]])}}return a},B=s(k),E=function(e,r){var o=B({},e,r);for(var t in e){var a;e[t]&&"object"==typeof r[t]&&B(o,((a={})[t]=B(e[t],r[t]),a))}return o},T={breakpoints:[40,52,64].map((function(e){return e+"em"}))},S=function(e){return"@media screen and (min-width: "+e+")"},I=function(e,r){return M(r,e,e)},M=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},N=function e(r){var o={},t=function(e){var t,a,n={},l=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var c in e)if(r[c]){var d=r[c],s=e[c],u=M(e.theme,d.scale,d.defaults);if("object"!=typeof s)B(n,d(s,u,e));else{if(o.breakpoints=!i&&o.breakpoints||M(e.theme,"breakpoints",T.breakpoints),Array.isArray(s)){o.media=!i&&o.media||[null].concat(o.breakpoints.map(S)),n=E(n,O(o.media,d,u,s,e));continue}null!==s&&(n=E(n,A(o.breakpoints,d,u,s,e)),l=!0)}}return l&&(t=n,a={},Object.keys(t).sort((function(e,r){return e.localeCompare(r,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(e){a[e]=t[e]})),n=a),n};t.config=r,t.propNames=Object.keys(r),t.cache=o;var a=Object.keys(r).filter((function(e){return"config"!==e}));return a.length>1&&a.forEach((function(o){var a;t[o]=e(((a={})[o]=r[o],a))})),t},O=function(e,r,o,t,a){var n={};return t.slice(0,e.length).forEach((function(t,l){var i,c=e[l],d=r(t,o,a);c?B(n,((i={})[c]=B({},n[c],d),i)):B(n,d)})),n},A=function(e,r,o,t,a){var n={};for(var l in t){var i=e[l],c=r(t[l],o,a);if(i){var d,s=S(i);B(n,((d={})[s]=B({},n[s],c),d))}else B(n,c)}return n},L=function(e){var r=e.properties,o=e.property,t=e.scale,a=e.transform,n=void 0===a?I:a,l=e.defaultScale;r=r||[o];var i=function(e,o,t){var a={},l=n(e,o,t);if(null!==l)return r.forEach((function(e){a[e]=l})),a};return i.scale=t,i.defaults=l,i},j=function(e){void 0===e&&(e={});var r={};return Object.keys(e).forEach((function(o){var t=e[o];r[o]=!0!==t?"function"!=typeof t?L(t):t:L({property:o,scale:o})})),N(r)},R=function(){for(var e={},r=arguments.length,o=new Array(r),t=0;t<r;t++)o[t]=arguments[t];return o.forEach((function(r){r&&r.config&&B(e,r.config)})),N(e)},D={width:{property:"width",scale:"sizes",transform:function(e,r){return M(r,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0},z=j(D),P={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};P.bg=P.backgroundColor;var _=j(P),H=j({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),F=j({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),V={space:[0,4,8,16,32,64,128,256,512]},W=j({gridGap:{property:"gridGap",scale:"space",defaultScale:V.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:V.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:V.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),Z={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};Z.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},Z.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},Z.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},Z.borderBottomColor={property:"borderBottomColor",scale:"colors"},Z.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},Z.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},Z.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},Z.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},Z.borderLeftColor={property:"borderLeftColor",scale:"colors"},Z.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},Z.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},Z.borderRightColor={property:"borderRightColor",scale:"colors"},Z.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var $=j(Z),K={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};K.bgImage=K.backgroundImage,K.bgSize=K.backgroundSize,K.bgPosition=K.backgroundPosition,K.bgRepeat=K.backgroundRepeat;var G=j(K),U={space:[0,4,8,16,32,64,128,256,512]},q=j({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:U.space},right:{property:"right",scale:"space",defaultScale:U.space},bottom:{property:"bottom",scale:"space",defaultScale:U.space},left:{property:"left",scale:"space",defaultScale:U.space}}),Y={space:[0,4,8,16,32,64,128,256,512]},X=function(e){return"number"==typeof e&&!isNaN(e)},J=function(e,r){if(!X(e))return M(r,e,e);var o=e<0,t=Math.abs(e),a=M(r,t,t);return X(a)?a*(o?-1:1):o?"-"+a:a},Q={};Q.margin={margin:{property:"margin",scale:"space",transform:J,defaultScale:Y.space},marginTop:{property:"marginTop",scale:"space",transform:J,defaultScale:Y.space},marginRight:{property:"marginRight",scale:"space",transform:J,defaultScale:Y.space},marginBottom:{property:"marginBottom",scale:"space",transform:J,defaultScale:Y.space},marginLeft:{property:"marginLeft",scale:"space",transform:J,defaultScale:Y.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:J,defaultScale:Y.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:J,defaultScale:Y.space}},Q.margin.m=Q.margin.margin,Q.margin.mt=Q.margin.marginTop,Q.margin.mr=Q.margin.marginRight,Q.margin.mb=Q.margin.marginBottom,Q.margin.ml=Q.margin.marginLeft,Q.margin.mx=Q.margin.marginX,Q.margin.my=Q.margin.marginY,Q.padding={padding:{property:"padding",scale:"space",defaultScale:Y.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:Y.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:Y.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:Y.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:Y.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:Y.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:Y.space}},Q.padding.p=Q.padding.padding,Q.padding.pt=Q.padding.paddingTop,Q.padding.pr=Q.padding.paddingRight,Q.padding.pb=Q.padding.paddingBottom,Q.padding.pl=Q.padding.paddingLeft,Q.padding.px=Q.padding.paddingX,Q.padding.py=Q.padding.paddingY;var ee=j(Q.margin),re=j(Q.padding),oe=R(ee,re),te=j({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function ae(){return ae=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ae.apply(this,arguments)}var ne=function(e,r,o,t,a){for(r=r&&r.split?r.split("."):[r],t=0;t<r.length;t++)e=e?e[r[t]]:a;return e===a?o:e},le=[40,52,64].map((function(e){return e+"em"})),ie={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},ce={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},de={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},se={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},ue=function(e,r){if("number"!=typeof r||r>=0)return ne(e,r,r);var o=Math.abs(r),t=ne(e,o,o);return"string"==typeof t?"-"+t:-1*t},ge=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,r){var o;return ae({},e,((o={})[r]=ue,o))}),{}),be=function e(r){return function(o){void 0===o&&(o={});var t=ae({},ie,{},o.theme||o),a={},n=function(e){return function(r){var o={},t=ne(r,"breakpoints",le),a=[null].concat(t.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var n in e){var l="function"==typeof e[n]?e[n](r):e[n];if(null!=l)if(Array.isArray(l))for(var i=0;i<l.slice(0,a.length).length;i++){var c=a[i];c?(o[c]=o[c]||{},null!=l[i]&&(o[c][n]=l[i])):o[n]=l[i]}else o[n]=l}return o}}("function"==typeof r?r(t):r)(t);for(var l in n){var i=n[l],c="function"==typeof i?i(t):i;if("variant"!==l)if(c&&"object"==typeof c)a[l]=e(c)(t);else{var d=ne(ce,l,l),s=ne(se,d),u=ne(t,s,ne(t,d,{})),g=ne(ge,d,ne)(u,c,c);if(de[d])for(var b=de[d],v=0;v<b.length;v++)a[b[v]]=g;else a[d]=g}else a=ae({},a,{},e(ne(t,c))(t))}return a}},ve=function(e){var r,o,t=e.scale,a=e.prop,n=void 0===a?"variant":a,l=e.variants,i=void 0===l?{}:l,c=e.key;o=Object.keys(i).length?function(e,r,o){return be(M(r,e,null))(o.theme)}:function(e,r){return M(r,e,null)},o.scale=t||c,o.defaults=i;var d=((r={})[n]=o,r);return N(d)},fe=ve({key:"buttons"}),he=ve({key:"textStyles",prop:"textStyle"}),pe=ve({key:"colorStyles",prop:"colors"}),me=z.width,ye=z.height,xe=z.minWidth,Ce=z.minHeight,we=z.maxWidth,ke=z.maxHeight,Be=z.size,Ee=z.verticalAlign,Te=z.display,Se=z.overflow,Ie=z.overflowX,Me=z.overflowY,Ne=_.opacity,Oe=H.fontSize,Ae=H.fontFamily,Le=H.fontWeight,je=H.lineHeight,Re=H.textAlign,De=H.fontStyle,ze=H.letterSpacing,Pe=F.alignItems,_e=F.alignContent,He=F.justifyItems,Fe=F.justifyContent,Ve=F.flexWrap,We=F.flexDirection,Ze=F.flex,$e=F.flexGrow,Ke=F.flexShrink,Ge=F.flexBasis,Ue=F.justifySelf,qe=F.alignSelf,Ye=F.order,Xe=W.gridGap,Je=W.gridColumnGap,Qe=W.gridRowGap,er=W.gridColumn,rr=W.gridRow,or=W.gridAutoFlow,tr=W.gridAutoColumns,ar=W.gridAutoRows,nr=W.gridTemplateColumns,lr=W.gridTemplateRows,ir=W.gridTemplateAreas,cr=W.gridArea,dr=$.borderWidth,sr=$.borderStyle,ur=$.borderColor,gr=$.borderTop,br=$.borderRight,vr=$.borderBottom,fr=$.borderLeft,hr=$.borderRadius,pr=G.backgroundImage,mr=G.backgroundSize,yr=G.backgroundPosition,xr=G.backgroundRepeat,Cr=q.zIndex,wr=q.top,kr=q.right,Br=q.bottom,Er=q.left,Tr=function(e){var r=e.prop,o=e.cssProperty,t=e.alias,a=e.key,n=e.transformValue,l=e.scale,i=e.properties,c={};return c[r]=L({properties:i,property:o||r,scale:a,defaultScale:l,transform:n}),t&&(c[t]=c[r]),N(c)},Sr=Object.freeze({__proto__:null,alignContent:_e,alignItems:Pe,alignSelf:qe,background:G,backgroundImage:pr,backgroundPosition:yr,backgroundRepeat:xr,backgroundSize:mr,border:$,borderBottom:vr,borderColor:ur,borderLeft:fr,borderRadius:hr,borderRight:br,borderStyle:sr,borderTop:gr,borderWidth:dr,borders:$,bottom:Br,boxShadow:te,buttonStyle:fe,color:_,colorStyle:pe,compose:R,createParser:N,createStyleFunction:L,display:Te,flex:Ze,flexBasis:Ge,flexDirection:We,flexGrow:$e,flexShrink:Ke,flexWrap:Ve,flexbox:F,fontFamily:Ae,fontSize:Oe,fontStyle:De,fontWeight:Le,get:M,grid:W,gridArea:cr,gridAutoColumns:tr,gridAutoFlow:or,gridAutoRows:ar,gridColumn:er,gridColumnGap:Je,gridGap:Xe,gridRow:rr,gridRowGap:Qe,gridTemplateAreas:ir,gridTemplateColumns:nr,gridTemplateRows:lr,height:ye,justifyContent:Fe,justifyItems:He,justifySelf:Ue,layout:z,left:Er,letterSpacing:ze,lineHeight:je,margin:ee,maxHeight:ke,maxWidth:we,minHeight:Ce,minWidth:xe,opacity:Ne,order:Ye,overflow:Se,overflowX:Ie,overflowY:Me,padding:re,position:q,right:kr,shadow:te,size:Be,space:oe,style:Tr,system:j,textAlign:Re,textShadow:te,textStyle:he,top:wr,typography:H,variant:ve,verticalAlign:Ee,width:me,zIndex:Cr});const{get:Ir,compose:Mr,system:Nr}=Sr,Or=e=>{return r=e,void 0===(o=Ir(y,e))&&(o=null),function(e){return M(e.theme,r,o)};var r,o},Ar=Mr(oe,_,Te),Lr=Mr(H,Nr({whiteSpace:{property:"whiteSpace"}}));Mr($,te);var jr=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||function(e){return e.$$typeof===Rr}(e)}(e)};var Rr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Dr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?Fr((o=e,Array.isArray(o)?[]:{}),e,r):e;var o}function zr(e,r,o){return e.concat(r).map((function(e){return Dr(e,o)}))}function Pr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return e.propertyIsEnumerable(r)})):[]}(e))}function _r(e,r){try{return r in e}catch(e){return!1}}function Hr(e,r,o){var t={};return o.isMergeableObject(e)&&Pr(e).forEach((function(r){t[r]=Dr(e[r],o)})),Pr(r).forEach((function(a){(function(e,r){return _r(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(_r(e,a)&&o.isMergeableObject(r[a])?t[a]=function(e,r){if(!r.customMerge)return Fr;var o=r.customMerge(e);return"function"==typeof o?o:Fr}(a,o)(e[a],r[a],o):t[a]=Dr(r[a],o))})),t}function Fr(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||zr,o.isMergeableObject=o.isMergeableObject||jr,o.cloneUnlessOtherwiseSpecified=Dr;var t=Array.isArray(r);return t===Array.isArray(e)?t?o.arrayMerge(e,r,o):Hr(e,r,o):Dr(r,o)}Fr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return Fr(e,o,r)}),{})};var Vr=s(Fr);const Wr=!0;function Zr(e){if(!e.defaultPrevented)for(const r of Object.values($r).reverse())if(r(e)===Wr||e.defaultPrevented)break}const $r={};let Kr=0;const Gr=({containerRef:e,ignoreClickRefs:o,onClickOutside:t})=>{const a=r.useMemo((()=>Kr++),[]),n=r.useCallback((r=>{var a;return r instanceof MouseEvent&&r.button>0||null!==(a=e.current)&&void 0!==a&&a.contains(r.target)||o&&o.some((({current:e})=>null==e?void 0:e.contains(r.target)))?Wr:void t(r)}),[e,o,t]);r.useEffect((()=>(0===Object.keys($r).length&&document.addEventListener("mousedown",Zr,{capture:!0}),function(e,r){$r[e]=r}(a,n),()=>{!function(e){delete $r[e]}(a),0===Object.keys($r).length&&document.removeEventListener("mousedown",Zr,{capture:!0})})),[a,n])};function Ur(e){const r=l.default.useRef(null);return null!=e?e:r}function qr(e){if(!e.defaultPrevented)for(const r of Object.values(Yr).reverse())if(r(e),e.defaultPrevented)break}const Yr={};let Xr=0;const Jr=(e,o=[e])=>{const t=r.useCallback(e,o),a=r.useCallback((e=>{"Escape"===e.key&&t(e)}),[t]),n=r.useMemo((()=>Xr++),[]);r.useEffect((()=>(0===Object.keys(Yr).length&&document.addEventListener("keydown",qr),function(e,r){Yr[e]=r}(n,a),()=>{!function(e){delete Yr[e]}(n),0===Object.keys(Yr).length&&document.removeEventListener("keydown",qr)})),[n,a])};function*Qr(e,r={}){var o,t;const a=null!==(o=r.strict)&&void 0!==o&&o,n=null!==(t=r.onlyTabbable)&&void 0!==t&&t?oo:ro,l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e instanceof HTMLElement&&n(e,a)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let i=null;if(!r.reverse&&n(e,a)&&(yield e),r.reverse){let e=l.lastChild();for(;e;)i=e,e=l.lastChild()}else i=l.firstChild();for(;i instanceof HTMLElement;)yield i,i=r.reverse?l.previousNode():l.nextNode();r.reverse&&n(e,a)&&(yield e)}function eo(e,r=!1){return Qr(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function ro(e,r=!1){const o=["BUTTON","INPUT","SELECT","TEXTAREA","OPTGROUP","OPTION","FIELDSET"].includes(e.tagName)&&e.disabled,t=e.hidden,a=e instanceof HTMLInputElement&&"hidden"===e.type,n=e.classList.contains("sentinel");if(o||t||a||n)return!1;if(r){const r=getComputedStyle(e),o=0===e.offsetWidth||0===e.offsetHeight,t=["hidden","collapse"].includes(r.visibility),a="none"===r.display||!e.offsetParent,n=0===e.getClientRects().length;if(o||t||n||a)return!1}return null!=e.getAttribute("tabindex")||("true"===e.getAttribute("contenteditable")||"plaintext-only"===e.getAttribute("contenteditable")||!(e instanceof HTMLAnchorElement&&null==e.getAttribute("href"))&&-1!==e.tabIndex)}function oo(e,r=!1){return ro(e,r)&&"-1"!==e.getAttribute("tabindex")}let to,ao=1e4;function no(){return void 0===to&&(to=/^mac/i.test(window.navigator.platform)),to}function lo({initialFocusRef:e,returnFocusRef:o,containerRef:t,preventFocusOnOpen:a}){r.useEffect((()=>{if(a)return;const r=o.current;if(e&&e.current)e.current.focus();else if(t.current){const e=Qr(t.current).next().value;null==e||e.focus()}return function(){null==r||r.focus()}}),[e,o,t,a])}const io={"outside-top":["outside-bottom","outside-right","outside-left","outside-bottom"],"outside-bottom":["outside-top","outside-right","outside-left","outside-bottom"],"outside-left":["outside-right","outside-bottom","outside-top","outside-bottom"],"outside-right":["outside-left","outside-bottom","outside-top","outside-bottom"]},co={start:["end","center"],end:["start","center"],center:["end","start"]};function so(e,r,o={}){const t=function(e){if(function(e){var r;if("DIALOG"===e.tagName)return!0;try{if(e.matches(":popover-open")&&/native code/.test(null===(r=document.body.showPopover)||void 0===r?void 0:r.toString()))return!0}catch(e){return!1}return!1}(e))return document.body;let r=e.parentNode;for(;null!==r;){if(r instanceof HTMLElement&&"static"!==getComputedStyle(r).position)return r;r=r.parentNode}return document.body}(e),a=function(e){let r=e;for(;null!==r&&r instanceof Element;){if("visible"!==getComputedStyle(r).overflow)break;r=r.parentNode}const o=r!==document.body&&r instanceof HTMLElement?r:document.body,t=o.getBoundingClientRect(),a=getComputedStyle(o),[n,l,i,c]=[a.borderTopWidth,a.borderLeftWidth,a.borderRightWidth,a.borderBottomWidth].map((e=>parseInt(e,10)||0));return{top:t.top+n,left:t.left+l,width:t.width-i-l,height:Math.max(t.height-n-c,o===document.body?window.innerHeight:-1/0)}}(t),n=getComputedStyle(t),l=t.getBoundingClientRect(),[i,c]=[n.borderTopWidth,n.borderLeftWidth].map((e=>parseInt(e,10)||0));return function(e,r,o,t,{side:a,align:n,allowOutOfBounds:l,anchorOffset:i,alignmentOffset:c}){const d={top:e.top-r.top,left:e.left-r.left,width:e.width,height:e.height};let s=go(o,t,a,n,i,c),u=a,g=n;if(s.top-=r.top,s.left-=r.left,!l){const l=io[a];let b=0;if(l){let e=a;for(;b<l.length&&bo(e,s,d,o);){const a=l[b++];e=a,s=go(o,t,a,n,i,c),s.top-=r.top,s.left-=r.left,u=a}}const v=co[n];let f=0;if(v){let e=n;for(;f<v.length&&vo(e,s,d,o);){const a=v[f++];e=a,s=go(o,t,u,a,i,c),s.top-=r.top,s.left-=r.left,g=a}}s.top<d.top&&(s.top=d.top),s.left<d.left&&(s.left=d.left),s.left+o.width>e.width+d.left&&(s.left=e.width+d.left-o.width),l&&b<l.length&&s.top+o.height>e.height+d.top&&(s.top=Math.max(e.height+d.top-o.height,0))}return Object.assign(Object.assign({},s),{anchorSide:u,anchorAlign:g})}(a,{top:l.top+i,left:l.left+c},e.getBoundingClientRect(),r instanceof Element?r.getBoundingClientRect():r,function(e={}){var r,o,t,a,n;const l=null!==(r=e.side)&&void 0!==r?r:uo.side,i=null!==(o=e.align)&&void 0!==o?o:uo.align;return{side:l,align:i,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===l?0:uo.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==i&&l.startsWith("inside")?uo.alignmentOffset:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:uo.allowOutOfBounds}}(o))}const uo={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function go(e,r,o,t,a,n){const l=r.left+r.width,i=r.top+r.height;let c=-1,d=-1;return"outside-top"===o?c=r.top-a-e.height:"outside-bottom"===o?c=i+a:"outside-left"===o?d=r.left-a-e.width:"outside-right"===o&&(d=l+a),"outside-top"!==o&&"outside-bottom"!==o||(d="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n),"outside-left"!==o&&"outside-right"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),"inside-top"===o?c=r.top+a:"inside-bottom"===o?c=i-a-e.height:"inside-left"===o?d=r.left+a:"inside-right"===o?d=l-a-e.width:"inside-center"===o&&(d=(l+r.left)/2-e.width/2+a),"inside-top"===o||"inside-bottom"===o?d="start"===t?r.left+n:"center"===t?r.left-(e.width-r.width)/2+n:l-e.width-n:"inside-left"!==o&&"inside-right"!==o&&"inside-center"!==o||(c="start"===t?r.top+n:"center"===t?r.top-(e.height-r.height)/2+n:i-e.height-n),{top:c,left:d}}function bo(e,r,o,t){return"outside-top"===e||"outside-bottom"===e?r.top<o.top||r.top+t.height>o.height+o.top:r.left<o.left||r.left+t.width>o.width+o.left}function vo(e,r,o,t){return"end"===e?r.left<o.left:"start"===e||"center"===e?r.left+t.width>o.left+o.width||r.left<o.left:void 0}let fo=!1;function ho(){}try{const e=Object.create({},{signal:{get(){fo=!0}}});window.addEventListener("test",ho,e),window.removeEventListener("test",ho,e)}catch(mg){}function po(){fo||(!function(){if("undefined"==typeof window)return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(r,o,t){return"object"==typeof t&&"signal"in t&&t.signal instanceof AbortSignal&&e.call(t.signal,"abort",(()=>{this.removeEventListener(r,o,t)})),e.call(this,r,o,t)}}(),fo=!0)}po();const mo=[];let yo;function xo(e,r,o){const t=new AbortController,a=null!=o?o:t.signal;e.setAttribute("data-focus-trap","active");const n=document.createElement("span");n.setAttribute("class","sentinel"),n.setAttribute("tabindex","0"),n.setAttribute("aria-hidden","true"),n.onfocus=()=>{const r=eo(e,!0);null==r||r.focus()};const l=document.createElement("span");let i;function c(o){if(o instanceof HTMLElement&&document.contains(e)){if(e.contains(o))return void(i=o);if(i&&oo(i)&&e.contains(i))return void i.focus();if(r&&e.contains(r))return void r.focus();{const r=eo(e);return void(null==r||r.focus())}}}l.setAttribute("class","sentinel"),l.setAttribute("tabindex","0"),l.setAttribute("aria-hidden","true"),l.onfocus=()=>{const r=eo(e);null==r||r.focus()},e.prepend(n),e.append(l);const d=function(e){const r=new AbortController;return e.addEventListener("abort",(()=>{r.abort()})),r}(a);if(yo){const e=yo;yo.container.setAttribute("data-focus-trap","suspended"),yo.controller.abort(),mo.push(e)}d.signal.addEventListener("abort",(()=>{yo=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=e.getElementsByClassName("sentinel");for(;r.length>0;)r[0].remove();const o=mo.findIndex((r=>r.container===e));o>=0&&mo.splice(o,1),function(){const e=mo.pop();e&&xo(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{c(e.target)}),{signal:d.signal,capture:!0}),c(document.activeElement),yo={container:e,controller:d,initialFocus:r,originalSignal:a};const s=mo.findIndex((r=>r.container===e));if(s>=0&&mo.splice(s,1),!o)return t}var Co;po(),function(e){e[e.ArrowHorizontal=1]="ArrowHorizontal",e[e.ArrowVertical=2]="ArrowVertical",e[e.JK=4]="JK",e[e.HL=8]="HL",e[e.HomeAndEnd=16]="HomeAndEnd",e[e.PageUpDown=256]="PageUpDown",e[e.WS=32]="WS",e[e.AD=64]="AD",e[e.Tab=128]="Tab",e[e.Backspace=512]="Backspace",e[e.ArrowAll=3]="ArrowAll",e[e.HJKL=12]="HJKL",e[e.WASD=96]="WASD",e[e.All=511]="All"}(Co||(Co={}));const wo={ArrowLeft:Co.ArrowHorizontal,ArrowDown:Co.ArrowVertical,ArrowUp:Co.ArrowVertical,ArrowRight:Co.ArrowHorizontal,h:Co.HL,j:Co.JK,k:Co.JK,l:Co.HL,a:Co.AD,s:Co.WS,w:Co.WS,d:Co.AD,Tab:Co.Tab,Home:Co.HomeAndEnd,End:Co.HomeAndEnd,PageUp:Co.PageUpDown,PageDown:Co.PageUpDown,Backspace:Co.Backspace},ko={ArrowLeft:"previous",ArrowDown:"next",ArrowUp:"previous",ArrowRight:"next",h:"previous",j:"next",k:"previous",l:"next",a:"previous",s:"next",w:"previous",d:"next",Tab:"next",Home:"start",End:"end",PageUp:"start",PageDown:"end",Backspace:"previous"};function Bo(e){const r=ko[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const o=no();if(o&&e.metaKey||!o&&e.ctrlKey){if("ArrowLeft"===e.key||"ArrowUp"===e.key)return"start";if("ArrowRight"===e.key||"ArrowDown"===e.key)return"end"}return r}const Eo="data-is-active-descendant",To="activated-directly",So="activated-indirectly",Io="data-has-active-descendant";function Mo(e,r){var o,t,a,n,l;const i=[],c=new WeakMap,d=null!==(o=null==r?void 0:r.bindKeys)&&void 0!==o?o:((null==r?void 0:r.getNextFocusable)?Co.ArrowAll:Co.ArrowVertical)|Co.HomeAndEnd,s=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",u=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",g=null==r?void 0:r.activeDescendantControl,b=null==r?void 0:r.onActiveDescendantChanged;let v;const f=null!==(n=null==r?void 0:r.preventScroll)&&void 0!==n&&n;function h(){return i[0]}function p(e,r=!1){const o=v;v=e,g?e&&document.activeElement===g?m(o,e,r):y():(o&&o!==e&&c.has(o)&&o.setAttribute("tabindex","-1"),null==e||e.setAttribute("tabindex","0"))}function m(r,o,t=!1){o.id||o.setAttribute("id","__primer_id_"+ao++),r&&r!==o&&r.removeAttribute(Eo),g&&(t||g.getAttribute("aria-activedescendant")!==o.id)&&(g.setAttribute("aria-activedescendant",o.id),e.setAttribute(Io,o.id),o.setAttribute(Eo,t?To:So),null==b||b(o,r,t))}function y(r=v){"first"===u&&(v=void 0),null==g||g.removeAttribute("aria-activedescendant"),e.removeAttribute(Io),null==r||r.removeAttribute(Eo),null==b||b(void 0,r,!1)}function x(...e){const o=e.filter((e=>{var o,t;return null===(t=null===(o=null==r?void 0:r.focusableElementFilter)||void 0===o?void 0:o.call(r,e))||void 0===t||t}));if(0!==o.length){i.splice(function(e){const r=e[0];if(0===i.length)return 0;let o=0,t=i.length-1;for(;o<=t;){const e=Math.floor((o+t)/2);C(r,i[e])?t=e-1:o=e+1}return o}(o),0,...o);for(const e of o)c.has(e)||c.set(e,e.getAttribute("tabindex")),e.setAttribute("tabindex","-1");v||p(h())}}function C(e,r){return(r.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)>0}function w(...e){for(const r of e){const e=i.indexOf(r);e>=0&&i.splice(e,1);const o=c.get(r);if(void 0!==o&&(null===o?r.removeAttribute("tabindex"):r.setAttribute("tabindex",o),c.delete(r)),r===v){p(h())}}}const k={reverse:null==r?void 0:r.reverse,strict:null==r?void 0:r.strict,onlyTabbable:null==r?void 0:r.onlyTabbable};x(...Qr(e,k));p("function"==typeof u?u(document.body):h());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...Qr(e,k));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...Qr(e,k))})).observe(e,{subtree:!0,childList:!0});const B=new AbortController,E=null!==(l=null==r?void 0:r.abortSignal)&&void 0!==l?l:B.signal;let T;E.addEventListener("abort",(()=>{w(...i)})),e.addEventListener("mousedown",(e=>{e.target instanceof HTMLElement&&e.target!==document.activeElement&&(T=i.indexOf(e.target))}),{signal:E}),g?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(g.focus({preventScroll:f}),p(e.target))})),e.addEventListener("mousemove",(({target:e})=>{if(!(e instanceof Node))return;const r=i.find((r=>r.contains(e)));r&&p(r)}),{signal:E,capture:!0}),g.addEventListener("focusin",(()=>{v?m(void 0,v):p(h())})),g.addEventListener("focusout",(()=>{y()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==T)T>=0&&i[T]!==v&&p(i[T]),T=void 0;else if("previous"===u)p(r.target);else if("closest"===u||"first"===u){if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e="previous"===I?i.length-1:0,r=i[e];return void(null==r||r.focus({preventScroll:f}))}p(r.target)}else if("function"==typeof u)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=u(r.relatedTarget);if((e?i.indexOf(e):-1)>=0&&e instanceof HTMLElement)return void e.focus({preventScroll:f});console.warn("Element requested is not a known focusable element.")}else p(r.target);I=void 0}),{signal:E});const S=null!=g?g:e;let I;return"closest"===u&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=Bo(e))}),{signal:E,capture:!0}),S.addEventListener("keydown",(o=>{var t;if(o.key in ko){const a=wo[o.key];if(!o.defaultPrevented&&(a&d)>0&&!function(e,r){const o=e.key,t=[...o].length,a=r instanceof HTMLInputElement&&"text"===r.type||r instanceof HTMLTextAreaElement;if(a&&(1===t||"Home"===o||"End"===o))return!0;if(r instanceof HTMLSelectElement){if(1===t)return!0;if("ArrowDown"===o&&no()&&!e.metaKey)return!0;if("ArrowDown"===o&&!no()&&e.altKey)return!0}if(r instanceof HTMLTextAreaElement&&("PageUp"===o||"PageDown"===o))return!0;if(a){const e=r,t=0===e.selectionStart&&0===e.selectionEnd,a=e.selectionStart===e.value.length&&e.selectionEnd===e.value.length;if("ArrowLeft"===o&&!t)return!0;if("ArrowRight"===o&&!a)return!0;if(e instanceof HTMLTextAreaElement){if("ArrowUp"===o&&!t)return!0;if("ArrowDown"===o&&!a)return!0}}return!1}(o,document.activeElement)){const a=Bo(o);let n;if((null==r?void 0:r.getNextFocusable)&&(n=r.getNextFocusable(a,null!==(t=document.activeElement)&&void 0!==t?t:void 0,o)),!n){const r=function(){if(!v)return 0;const r=i.indexOf(v);return-1!==r?r:v===e?-1:0}();let t=r;"previous"===a?t-=1:"start"===a?t=0:"next"===a?t+=1:t=i.length-1,t<0&&(t="wrap"===s&&"Tab"!==o.key?i.length-1:0),t>=i.length&&(t="wrap"===s&&"Tab"!==o.key?0:i.length-1),r!==t&&(n=i[t])}g?p(n||v,!0):n&&(I=a,n.focus({preventScroll:f})),("Tab"!==o.key||n)&&o.preventDefault()}}}),{signal:E}),B}function No(e,r,{direction:o="vertical",startMargin:t=0,endMargin:a=0,behavior:n="smooth"}={}){const l="vertical"===o?"top":"left",i="vertical"===o?"bottom":"right",c="vertical"===o?"scrollTop":"scrollLeft",{[l]:d,[i]:s}=e.getBoundingClientRect(),{[l]:u,[i]:g}=r.getBoundingClientRect(),b=s>g-a;if(d<u+t){const e=d-u+r[c];r.scrollTo({behavior:n,[l]:e-t})}else if(b){const e=s-g+r[c];r.scrollTo({behavior:n,[l]:e+a})}}const Oo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function Ao(e,o){const t=r.useRef(e);Oo((()=>{t.current=e})),Oo((()=>{const e=o&&"current"in o?o.current:document.documentElement;if(!e)return;const r=new ResizeObserver((e=>{t.current(e)}));return r.observe(e),()=>{r.disconnect()}}),[o])}function Lo(e,r=[]){const o=Ur(null==e?void 0:e.floatingElementRef),t=Ur(null==e?void 0:e.anchorElementRef),[a,n]=l.default.useState(void 0),i=l.default.useCallback((()=>{o.current instanceof Element&&t.current instanceof Element?n(so(o.current,t.current,e)):n(void 0)}),[o,t,...r]);return Oo(i,[i]),Ao(i),{floatingElementRef:o,anchorElementRef:t,position:a}}const jo=({overlayRef:e,returnFocusRef:r,initialFocusRef:o,onEscape:t,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:l})=>{const i=Ur(e);lo({containerRef:i,returnFocusRef:r,initialFocusRef:o,preventFocusOnOpen:l}),Gr({containerRef:i,ignoreClickRefs:a,onClickOutside:n});return Jr((e=>{t(e),e.preventDefault()})),{ref:i}};function Ro(e){const[o,t]=r.useState(e||null),a=r.useRef(null);a.current=o;const n=r.useCallback((e=>{a.current=e,t(e)}),[a]);return[a,n]}function Do(e,o,t){const[a,n]=r.useState(t),l=null!=e?e:a,i=r.useCallback((e=>{n(e),o&&o(e)}),[o]);return[l,i]}const zo=(e,r,o,t)=>{((e,r,o)=>{const[t,a]=l.default.useState(void 0);l.default.useEffect((function(){const e=o.current,r=e=>{0!==e.detail&&a("mouse-click")},t=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&a(e.code)};return null==e||e.addEventListener("click",r),null==e||e.addEventListener("keydown",t),()=>{null==e||e.removeEventListener("click",r),null==e||e.removeEventListener("keydown",t)}}),[o]),l.default.useEffect((function(){if(!e||!r.current)return;const a=Qr(r.current);if("mouse-click"===t){if(!o.current)throw new Error("For focus management, please attach anchorRef");o.current.focus()}else if(t&&["ArrowDown","Space","Enter"].includes(t)){const e=a.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===t){const e=[...a],r=e[e.length-1];setTimeout((()=>r.focus()))}else{const e=a.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,t,o])})(e,o,t),((e,r)=>{const o=Ur(r);l.default.useEffect((function(){e&&o.current&&[...Qr(o.current)].map((e=>{var r;if(e.getAttribute("aria-keyshortcuts"))return;const o=null===(r=e.textContent)||void 0===r?void 0:r.toLowerCase()[0];o&&e.setAttribute("aria-keyshortcuts",o)}))}),[e,o]),l.default.useEffect((function(){if(!e||!o.current)return;const r=o.current,a=e=>{var o;const a=document.activeElement;if("INPUT"===a.tagName||"TEXTAREA"===a.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!t(e))return;e.stopPropagation();const n=e.key.toLowerCase();let l;const i=[...Qr(r)].filter((e=>{var r;const o=null===(r=e.getAttribute("aria-keyshortcuts"))||void 0===r?void 0:r.split(" ").map((e=>e.toLowerCase()));return o&&o.includes(n)})),c=i.indexOf(a);l=c===i.length-1?i[0]:i.find(((e,r)=>r>c)),null===(o=l)||void 0===o||o.focus()};return r.addEventListener("keydown",a),()=>r.removeEventListener("keydown",a)}),[e,o]);const t=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,o),Po(e,r,o,t),_o(e,o,t)},Po=(e,r,o,t)=>{l.default.useEffect((()=>{const a=o.current,n=t.current,l=o=>{e&&"Tab"===o.key&&(null==r||r("tab"))};return null==a||a.addEventListener("keydown",l),null==n||n.addEventListener("keydown",l),()=>{null==a||a.removeEventListener("keydown",l),null==n||n.removeEventListener("keydown",l)}}),[e,r,o,t])},_o=(e,r,o)=>{l.default.useEffect((()=>{const t=r.current,a=o.current,n=r=>{if(!e||!t)return;const o=Qr(t);if("ArrowDown"===r.key){const e=o.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===r.key){const e=[...o],r=e[e.length-1];setTimeout((()=>r.focus()))}};return null==a||a.addEventListener("keydown",n),()=>null==a?void 0:a.addEventListener("keydown",n)}),[e,r,o])};function Ho(e,o){r.useImperativeHandle(e,(()=>o.current))}function Fo(e){const o=r.useId();return e||o}const Vo="light",Wo="dark",Zo=l.default.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),$o=({children:e,...r})=>{var t,a,n,i,d,s,u,g;const{theme:b,colorMode:v,dayScheme:f,nightScheme:h}=Ko(),p=null!==(t=null!==(a=r.theme)&&void 0!==a?a:b)&&void 0!==t?t:y,m=Fo(),{resolvedServerColorMode:x}=(e=>{try{var r;const o=null===(r=document.getElementById(`__PRIMER_DATA_${e}__`))||void 0===r?void 0:r.textContent;if(o)return JSON.parse(o)}catch(e){}return{}})(m),C=l.default.useRef(x),[w,k]=l.default.useState(null!==(n=null!==(i=r.colorMode)&&void 0!==i?i:v)&&void 0!==n?n:"day"),[B,E]=l.default.useState(null!==(d=null!==(s=r.dayScheme)&&void 0!==s?s:f)&&void 0!==d?d:Vo),[T,S]=l.default.useState(null!==(u=null!==(g=r.nightScheme)&&void 0!==g?g:h)&&void 0!==u?u:Wo),I=function(){const[e,r]=l.default.useState(Go);return l.default.useEffect((()=>{var e,o;const t=null===(e=window)||void 0===e||null===(o=e.matchMedia)||void 0===o?void 0:o.call(e,"(prefers-color-scheme: dark)");function a(e){return e?"night":"day"}function n(e){const o=e.matches;r(a(o))}if(t){const e=t.matches;if(r(a(e)),void 0!==t.addEventListener)return t.addEventListener("change",n),function(){t.removeEventListener("change",n)};if(void 0!==t.addListener)return t.addListener(n),function(){t.removeListener(n)}}}),[]),e}(),M=C.current||Uo(w,I),N=function(e,r,o){switch(e){case"day":case"light":return r;case"dark":case"night":return o}}(M,B,T),{resolvedTheme:O,resolvedColorScheme:A}=l.default.useMemo((()=>function(e,r){if(!e.colorSchemes)return{resolvedTheme:e,resolvedColorScheme:void 0};if(!e.colorSchemes[r]){console.error(`\`${r}\` scheme not defined in \`theme.colorSchemes\``);const o=Object.keys(e.colorSchemes)[0];return{resolvedTheme:Vr(e,e.colorSchemes[o]),resolvedColorScheme:o}}return{resolvedTheme:Vr(e,e.colorSchemes[r]),resolvedColorScheme:r}}(p,N)),[p,N]);return l.default.useEffect((function(){const e=Uo(w,I);C.current&&(C.current!==e&&window.setTimeout((()=>{c.default.flushSync((()=>{k(e)})),k(w)})),C.current=null)}),[w,I]),l.default.useEffect((()=>{var e,o;k(null!==(e=null!==(o=r.colorMode)&&void 0!==o?o:v)&&void 0!==e?e:"day")}),[r.colorMode,v]),l.default.useEffect((()=>{var e,o;E(null!==(e=null!==(o=r.dayScheme)&&void 0!==o?o:f)&&void 0!==e?e:Vo)}),[r.dayScheme,f]),l.default.useEffect((()=>{var e,o;S(null!==(e=null!==(o=r.nightScheme)&&void 0!==o?o:h)&&void 0!==e?e:Wo)}),[r.nightScheme,h]),l.default.createElement(Zo.Provider,{value:{theme:O,colorScheme:N,colorMode:w,resolvedColorMode:M,resolvedColorScheme:A,dayScheme:B,nightScheme:T,setColorMode:k,setDayScheme:E,setNightScheme:S}},l.default.createElement(o.ThemeProvider,{theme:O},e,r.preventSSRMismatch?l.default.createElement("script",{type:"application/json",id:`__PRIMER_DATA_${m}__`,dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:M})}}):null))};function Ko(){return l.default.useContext(Zo)}function Go(){var e,r,o;return"undefined"!=typeof window&&null!==(e=(r=window).matchMedia)&&void 0!==e&&null!==(o=e.call(r,"(prefers-color-scheme: dark)"))&&void 0!==o&&o.matches?"night":"day"}function Uo(e,r){return"auto"===e?r:e}function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},qo.apply(this,arguments)}$o.displayName="ThemeProvider",function(){function e(e){var r=!0,o=!1,t=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function n(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function l(e){var r=e.type,o=e.tagName;return!("INPUT"!==o||!a[r]||e.readOnly)||"TEXTAREA"===o&&!e.readOnly||!!e.isContentEditable}function i(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function c(e){e.hasAttribute("data-focus-visible-added")&&(e.classList.remove("focus-visible"),e.removeAttribute("data-focus-visible-added"))}function d(o){o.metaKey||o.altKey||o.ctrlKey||(n(e.activeElement)&&i(e.activeElement),r=!0)}function s(e){r=!1}function u(e){n(e.target)&&(r||l(e.target))&&i(e.target)}function g(e){n(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(t),t=window.setTimeout((function(){o=!1}),100),c(e.target))}function b(e){"hidden"===document.visibilityState&&(o&&(r=!0),v())}function v(){document.addEventListener("mousemove",h),document.addEventListener("mousedown",h),document.addEventListener("mouseup",h),document.addEventListener("pointermove",h),document.addEventListener("pointerdown",h),document.addEventListener("pointerup",h),document.addEventListener("touchmove",h),document.addEventListener("touchstart",h),document.addEventListener("touchend",h)}function f(){document.removeEventListener("mousemove",h),document.removeEventListener("mousedown",h),document.removeEventListener("mouseup",h),document.removeEventListener("pointermove",h),document.removeEventListener("pointerdown",h),document.removeEventListener("pointerup",h),document.removeEventListener("touchmove",h),document.removeEventListener("touchstart",h),document.removeEventListener("touchend",h)}function h(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(r=!1,f())}document.addEventListener("keydown",d,!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",b,!0),v(),e.addEventListener("focus",u,!0),e.addEventListener("blur",g,!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var r;window.applyFocusVisiblePolyfill=e;try{r=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(r)}"undefined"!=typeof document&&e(document)}();const Yo=o.createGlobalStyle(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}input{color-scheme:",';}[role="button"]:focus:not(:focus-visible):not(.focus-visible),[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}'],(e=>e.colorScheme)),Xo=i.default.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Lr,Ar);function Jo(e){const{children:r,color:o="fg.default",fontFamily:t="normal",lineHeight:a="default",...n}=e,{colorScheme:i,dayScheme:c,nightScheme:d}=Ko();return l.default.createElement(Xo,qo({},n,{color:o,fontFamily:t,lineHeight:a,"data-portal-root":!0,"data-color-mode":null!=i&&i.includes("dark")?"dark":"light","data-light-theme":c,"data-dark-theme":d}),l.default.createElement(Yo,{colorScheme:null!=i&&i.includes("dark")?"dark":"light"}),r)}Jo.displayName="BaseStyles";const Qo=e=>be(e.sx),et=i.default.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(oe,_,H,z,F,W,G,$,q,te,Qo),rt=o.css(["box-shadow:none;outline:2px solid ",";"],Or("colors.accent.fg")),ot=e=>o.css(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],rt,void 0===e?"2px":e,rt,void 0===e?"2px":e),tt=i.default.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],ot("-2px"),Qo),at=(e="default",r)=>({default:{color:"btn.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}, ${null==r?void 0:r.shadows.btn.insetShadow}`,"&:hover:not([disabled]):not([data-inactive])":{backgroundColor:"btn.hoverBg",borderColor:`var(--button-default-borderColor-hover, ${null==r?void 0:r.colors.btn.hoverBorder})`},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},"&:disabled":{color:"primer.fg.disabled",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:`var(--button-default-bgColor-disabled, ${null==r?void 0:r.colors.input.disabledBg})`,"[data-component=ButtonCounter]":{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"btn.activeBg",borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.activeBorder})`},'[data-component="leadingVisual"], [data-component="trailingVisual"], [data-component="trailingAction"]':{color:`var(--button-color, ${null==r?void 0:r.colors.fg.muted})`},"[data-component=ButtonCounter]":{backgroundColor:"btn.counterBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"}},primary:{color:"btn.primary.text",backgroundColor:"btn.primary.bg",borderColor:"btn.primary.border",boxShadow:`${null==r?void 0:r.shadows.btn.primary.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.primary.hoverText",backgroundColor:"btn.primary.hoverBg"},"&:focus:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:focus-visible:not([disabled])":{boxShadow:"inset 0 0 0 3px"},"&:active:not([disabled]):not([data-inactive])":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`},"&:disabled":{color:"btn.primary.disabledText",backgroundColor:"btn.primary.disabledBg",borderColor:"btn.primary.disabledBorder","[data-component=ButtonCounter]":{color:"inherit"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.primary.counterBg",color:"btn.primary.text"},"&[aria-expanded=true]":{backgroundColor:"btn.primary.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.primary.selectedShadow}`}},danger:{color:"btn.danger.text",backgroundColor:"btn.bg",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,"&:hover:not([disabled]):not([data-inactive])":{color:"btn.danger.hoverText",backgroundColor:"btn.danger.hoverBg",borderColor:"btn.danger.hoverBorder",boxShadow:`${null==r?void 0:r.shadows.btn.danger.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.danger.hoverCounterBg",color:"btn.danger.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"},"&:disabled":{color:"btn.danger.disabledText",backgroundColor:"btn.danger.disabledBg",borderColor:`var(--button-default-borderColor-disabled, ${null==r?void 0:r.colors.btn.border})`,"[data-component=ButtonCounter]":{color:"btn.danger.disabledCounterFg",backgroundColor:"btn.danger.disabledCounterBg"}},"[data-component=ButtonCounter]":{color:"btn.danger.counterFg",backgroundColor:"btn.danger.counterBg"},"&[aria-expanded=true]":{color:"btn.danger.selectedText",backgroundColor:"btn.danger.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.danger.selectedShadow}`,borderColor:"btn.danger.selectedBorder"}},invisible:{color:"btn.text",backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none","&:hover:not([disabled])":{backgroundColor:"actionListItem.default.hoverBg"},"&:active:not([disabled])":{backgroundColor:"actionListItem.default.activeBg"},"&:disabled":{color:"primer.fg.disabled",'[data-component=ButtonCounter], [data-component="leadingVisual"], [data-component="trailingAction"]':{color:"inherit"}},"&[aria-expanded=true]":{backgroundColor:"actionListItem.default.selectedBg"},'&[data-component="IconButton"][data-no-visuals]':{color:"fg.muted"},'[data-component="trailingAction"]':{color:"fg.muted"},'[data-component="leadingVisual"]':{color:"fg.muted"},"&[data-no-visuals]":{color:"accent.fg"},'&:has([data-component="ButtonCounter"])':{color:"btn.text"},"&:disabled[data-no-visuals]":{color:"primer.fg.disabled","[data-component=ButtonCounter]":{color:"inherit"}}},outline:{color:"btn.outline.text",boxShadow:`${null==r?void 0:r.shadows.btn.shadow}`,borderColor:`var(--button-default-borderColor-rest, ${null==r?void 0:r.colors.btn.border})`,backgroundColor:"btn.bg","&:hover:not([disabled]):not([data-inactive])":{color:"btn.outline.hoverText",backgroundColor:"btn.outline.hoverBg",borderColor:`${null==r?void 0:r.colors.btn.outline.hoverBorder}`,boxShadow:`${null==r?void 0:r.shadows.btn.outline.hoverShadow}`,"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.hoverCounterBg",color:"btn.outline.hoverCounterFg"}},"&:active:not([disabled]):not([data-inactive])":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`${null==r?void 0:r.colors.btn.outline.selectedBorder}`},"&:disabled":{color:"btn.outline.disabledText",backgroundColor:"btn.outline.disabledBg",borderColor:"btn.border","[data-component=ButtonCounter]":{backgroundColor:"btn.outline.disabledCounterBg",color:"btn.outline.disabledCounterFg"}},"[data-component=ButtonCounter]":{backgroundColor:"btn.outline.counterBg",color:"btn.outline.counterFg"},"&[aria-expanded=true]":{color:"btn.outline.selectedText",backgroundColor:"btn.outline.selectedBg",boxShadow:`${null==r?void 0:r.shadows.btn.outline.selectedShadow}`,borderColor:`var(--button-default-borderColor-active, ${null==r?void 0:r.colors.btn.outline.selectedBorder})`}}}[e]),nt=e=>({borderRadius:"2",border:"1px solid",borderColor:`var(--button-default-borderColor-rest, ${null==e?void 0:e.colors.btn.border})`,fontFamily:"inherit",fontWeight:"semibold",fontSize:"1",cursor:"pointer",appearance:"none",userSelect:"none",textDecoration:"none",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"space-between",height:"32px",padding:"0 12px",gap:"8px",minWidth:"max-content",transition:"80ms cubic-bezier(0.65, 0, 0.35, 1)",transitionProperty:"color, fill, background-color, border-color","&[href]":{display:"inline-flex","&:hover":{textDecoration:"none"}},"&:hover":{transitionDuration:"80ms"},"&:active":{transition:"none"},"&[data-inactive]":{cursor:"auto"},"&:disabled":{cursor:"not-allowed",boxShadow:"none"},"@media (forced-colors: active)":{"&:focus":{outline:"solid 1px transparent"}},"[data-component=ButtonCounter]":{fontSize:"0"},"&[data-component=IconButton]":{display:"inline-grid",padding:"unset",placeContent:"center",width:"32px",minWidth:"unset"},'&[data-size="small"]':{padding:"0 8px",height:"28px",gap:"4px",fontSize:"0",'[data-component="text"]':{lineHeight:"calc(20 / 12)"},"[data-component=ButtonCounter]":{fontSize:"0"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"4px"},"&[data-component=IconButton]":{width:"28px",padding:"unset"}},'&[data-size="large"]':{padding:"0 16px",height:"40px",gap:"8px",'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"},"&[data-component=IconButton]":{width:"40px",padding:"unset"}}}),lt=e=>({...nt(e),'&[data-block="block"]':{width:"100%"},"&[data-inactive]:not([disabled])":{backgroundColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,borderColor:`var(--button-inactive-bgColor, ${null==e?void 0:e.colors.btn.inactive.bg})`,color:`var(--button-inactive-fgColor, ${null==e?void 0:e.colors.btn.inactive.text})`},"&[data-inactive]:not([disabled]):focus-visible":{boxShadow:"none"},'[data-component="leadingVisual"]':{gridArea:"leadingVisual"},'[data-component="text"]':{gridArea:"text",lineHeight:"calc(20/14)",whiteSpace:"nowrap"},'[data-component="trailingVisual"]':{gridArea:"trailingVisual"},'[data-component="trailingAction"]':{marginRight:"-4px"},'[data-component="buttonContent"]':{flex:"1 0 auto",display:"grid",gridTemplateAreas:'"leadingVisual text trailingVisual"',gridTemplateColumns:"min-content minmax(0, auto) min-content",alignItems:"center",alignContent:"center"},'[data-component="buttonContent"] > :not(:last-child)':{mr:"8px"}}),it=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"}),ct={},dt=i.default.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?Qo:"\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n "));function st(){return st=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},st.apply(this,arguments)}const ut=r.forwardRef((({scheme:e="secondary",sx:r=ct,children:o,...t},a)=>l.default.createElement(l.default.Fragment,null,l.default.createElement(et,st({"aria-hidden":"true",sx:Vr({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",border:"var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--counter-borderColor,var(--color-counter-border))",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},r)},t,{as:"span",ref:a}),o),l.default.createElement(dt,null," (",o,")"))));function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},gt.apply(this,arguments)}ut.displayName="CounterLabel";const bt=r.forwardRef((({children:e,as:o="button",sx:t=ct,...a},n)=>{const{leadingVisual:i,trailingVisual:c,trailingAction:d,count:s,icon:u,variant:g="default",size:b="medium",alignContent:v="center",block:f=!1,inactive:h,...p}=a,m=l.default.useRef(null);Ho(n,m);const{theme:y}=Ko(),x=r.useMemo((()=>Vr.all([lt(y),at(g,y)])),[y,g]),C=r.useMemo((()=>Vr(x,t)),[x,t]),w={display:"flex",pointerEvents:"none"};return l.default.createElement(tt,gt({as:o,sx:C},p,{ref:m,"data-block":f?"block":null,"data-size":"small"===b||"large"===b?b:void 0,"data-no-visuals":!(i||c||d)||void 0,"data-inactive":!!h||void 0}),u?l.default.createElement(u,null):l.default.createElement(l.default.Fragment,null,l.default.createElement(et,{as:"span","data-component":"buttonContent",sx:it(v)},i&&l.default.createElement(et,{as:"span","data-component":"leadingVisual",sx:{...w}},l.default.createElement(i,null)),e&&l.default.createElement("span",{"data-component":"text"},e),void 0===s||c?c?l.default.createElement(et,{as:"span","data-component":"trailingVisual",sx:{...w}},l.default.createElement(c,null)):null:l.default.createElement(et,{as:"span","data-component":"trailingVisual",sx:{...w}},l.default.createElement(ut,{"data-component":"ButtonCounter"},s))),d&&l.default.createElement(et,{as:"span","data-component":"trailingAction",sx:{...w}},l.default.createElement(d,null))))}));function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vt.apply(this,arguments)}const ft=r.forwardRef((({children:e,sx:r=ct,...o},t)=>{const{block:a,size:n,leadingVisual:i,trailingVisual:c,trailingAction:d}=o;let s=r;const u={};if(null!==r&&Object.keys(r).length>0){s=ht({block:a,size:n,leadingVisual:i,trailingVisual:c,trailingAction:d},r);const{color:e}=r;e&&(u["--button-color"]=e)}return l.default.createElement(bt,vt({ref:t,as:"button",sx:s,style:u,type:"button"},o),e)}));function ht(e,r){const o=e.size&&"medium"!==e.size?`[data-size="${e.size}"]`:"",t=e.block?'[data-block="block"]':"",a=e.leadingVisual||e.trailingVisual||e.trailingAction?"":"[data-no-visuals]",n={};return r?(n[`&${o}${t}${a}`]=r,n):n}ft.displayName="Button";const pt=function(){};var mt=class extends Event{oldState;newState;constructor(e,{oldState:r="",newState:o="",...t}={}){super(e,t),this.oldState=String(r||""),this.newState=String(o||"")}},yt=new WeakMap;function xt(e,r,o){yt.set(e,setTimeout((()=>{yt.has(e)&&e.dispatchEvent(new mt("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var Ct=globalThis.ShadowRoot||function(){},wt=globalThis.HTMLDialogElement||function(){},kt=new WeakMap,Bt=new WeakMap,Et=new WeakMap;function Tt(e){return Et.get(e)||"hidden"}var St=new WeakMap;function It(e,r){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!r||"showing"===Tt(e))&&(!(!r&&"hidden"!==Tt(e))&&(!(e instanceof wt&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Mt(e){return e?Array.from(Bt.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Nt(e){const r=Lt(e),o=function(e){for(;e;){const r=e.popoverTargetElement;if(r instanceof HTMLElement)return r;if((e=e.parentElement||At(e))instanceof Ct&&(e=e.host),e instanceof Document)return}}(e);return Mt(r)>Mt(o)?r:o}function Ot(e){const r=Bt.get(e);for(const e of r||[]){if(e.isConnected)return e;r.delete(e)}return null}function At(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?At(e.parentNode):e}function Lt(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===Et.get(e))return e;if((e=e.parentElement||At(e))instanceof Ct&&(e=e.host),e instanceof Document)return}}function jt(e){return!(e.hidden||e instanceof Ct)&&((!(e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement||e instanceof HTMLFieldSetElement)||!e.disabled)&&(!(e instanceof HTMLInputElement&&"hidden"===e.type)&&(!(e instanceof HTMLAnchorElement&&""===e.href)&&("number"==typeof e.tabIndex&&-1!==e.tabIndex))))}function Rt(e){(function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let r=e;r.shadowRoot&&(r=r.shadowRoot);let o=r.querySelector("[autofocus]");if(o)return o;{const e=r.querySelectorAll("slot");for(const r of e){const e=r.assignedElements({flatten:!0});for(const r of e){if(r.hasAttribute("autofocus"))return r;if(o=r.querySelector("[autofocus]"),o)return o}}}const t=e.ownerDocument.createTreeWalker(r,NodeFilter.SHOW_ELEMENT);let a=t.currentNode;for(;a;){if(jt(a))return a;a=t.nextNode()}})(e)?.focus()}var Dt=new WeakMap;function zt(e){if(!It(e,!1))return;const r=e.ownerDocument;if(!e.dispatchEvent(new mt("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!It(e,!1))return;let o=!1;if("auto"===e.popover){const o=e.getAttribute("popover"),t=function(e){const r=new Map;let o=0;const t=e.ownerDocument;for(const e of Bt.get(t)||[])r.set(e,o),o+=1;r.set(e,o),o+=1;let a=null;return function(e){const o=Lt(e);if(null===o)return null;const t=r.get(o);(null===a||r.get(a)<t)&&(a=o)}(e?.parentElement),a}(e)||r;if(Ht(t,!1,!0),o!==e.getAttribute("popover")||!It(e,!1))return}Ot(r)||(o=!0),Dt.delete(e);const t=r.activeElement;e.classList.add(":popover-open"),Et.set(e,"showing"),kt.has(r)||kt.set(r,new Set),kt.get(r).add(e),Rt(e),"auto"===e.popover&&(Bt.has(r)||Bt.set(r,new Set),Bt.get(r).add(e),Zt(St.get(e),!0)),o&&t&&"auto"===e.popover&&Dt.set(e,t),xt(e,"closed","open")}function Pt(e,r=!1,o=!1){if(!It(e,!0))return;const t=e.ownerDocument;if("auto"===e.popover&&(Ht(e,r,o),!It(e,!0)))return;if(Zt(St.get(e),!1),St.delete(e),o&&(e.dispatchEvent(new mt("beforetoggle",{oldState:"open",newState:"closed"})),!It(e,!0)))return;kt.get(t)?.delete(e),Bt.get(t)?.delete(e),e.classList.remove(":popover-open"),Et.set(e,"hidden"),o&&xt(e,"open","closed");const a=Dt.get(e);a&&(Dt.delete(e),r&&a.focus())}function _t(e,r=!1,o=!1){let t=Ot(e);for(;t;)Pt(t,r,o),t=Ot(e)}function Ht(e,r,o){const t=e.ownerDocument||e;if(e instanceof Document)return _t(t,r,o);let a=null,n=!1;for(const r of Bt.get(t)||[])if(r===e)n=!0;else if(n){a=r;break}if(!n)return _t(t,r,o);for(;a&&"showing"===Tt(a)&&Bt.get(t)?.size;)Pt(a,r,o)}var Ft=new WeakMap;function Vt(e){if(!e.isTrusted)return;const r=e.composedPath()[0];if(!r)return;const o=r.ownerDocument;if(!Ot(o))return;const t=Nt(r);if(t&&"pointerdown"===e.type)Ft.set(o,t);else if("pointerup"===e.type){const e=Ft.get(o)===t;Ft.delete(o),e&&Ht(t||o,!1,!0)}}var Wt=new WeakMap;function Zt(e,r=!1){if(!e)return;Wt.has(e)||Wt.set(e,e.getAttribute("aria-expanded"));const o=e.popoverTargetElement;if(o instanceof HTMLElement&&"auto"===o.popover)e.setAttribute("aria-expanded",String(r));else{const r=Wt.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var $t=globalThis.ShadowRoot||function(){};function Kt(e,r,o){const t=e[r];Object.defineProperty(e,r,{value(e){return t.call(this,o(e))}})}var Gt=/(^|[^\\]):popover-open\b/g,Ut="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",qt=null;function Yt(e){if(null===qt)try{(qt=new CSSStyleSheet).replaceSync(Ut)}catch{qt=!1}if(!1===qt){const r=document.createElement("style");r.textContent=Ut,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[qt,...e.adoptedStyleSheets]}function Xt(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(Gt,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||mt,Kt(Document.prototype,"querySelector",e),Kt(Document.prototype,"querySelectorAll",e),Kt(Element.prototype,"querySelector",e),Kt(Element.prototype,"querySelectorAll",e),Kt(Element.prototype,"matches",e),Kt(Element.prototype,"closest",e),Kt(DocumentFragment.prototype,"querySelectorAll",e),Kt(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;const e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"manual"},set(e){this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(){zt(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Pt(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===Et.get(this)&&void 0===e||!1===e?Pt(this,!0,!0):void 0!==e&&!0!==e||zt(this)}}});const r=Element.prototype.attachShadow;r&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){const o=r.call(this,e);return Yt(o),o}}});const o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){const e=o.call(this);return e.shadowRoot&&Yt(e.shadowRoot),e}}});const t=new WeakMap;function a(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),t.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),t.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName)return null;if("input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type)return null;if(this.disabled)return null;if(this.form&&"submit"===this.type)return null;const e=t.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return t.delete(this),null;const r=At(this),o=this.getAttribute("popovertarget");return(r instanceof Document||r instanceof $t)&&o&&r.getElementById(o)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){const e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}a(HTMLButtonElement),a(HTMLInputElement);const n=e=>{const r=e.composedPath()[0];if(!(r instanceof Element)||r?.shadowRoot)return;const o=At(r);if(!(o instanceof $t||o instanceof Document))return;const t=r.closest("[popovertargetaction],[popovertarget]");return t?(function(e){const r=e.popoverTargetElement;if(!(r instanceof HTMLElement))return;const o=Tt(r);"show"===e.popoverTargetAction&&"showing"===o||"hide"===e.popoverTargetAction&&"hidden"===o||("showing"===o?Pt(r,!0,!0):It(r,!1)&&(St.set(r,e),zt(r)))}(t),void e.preventDefault()):void 0},l=e=>{const r=e.key,o=e.target;e.defaultPrevented||!o||"Escape"!==r&&"Esc"!==r||Ht(o.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",n),e.addEventListener("keydown",l),e.addEventListener("pointerdown",Vt),e.addEventListener("pointerup",Vt)})(document),Yt(document)}function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Jt.apply(this,arguments)}const Qt="\n animation-name: tooltip-appear;\n animation-duration: 0.1s;\n animation-fill-mode: forwards;\n animation-timing-function: ease-in;\n animation-delay: 0s;\n",ea=i.default.span.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-e45c7z-0"})(["display:none;&[popover]{position:absolute;padding:0.5em 0.75em;width:max-content;margin:auto;clip:auto;white-space:normal;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;word-wrap:break-word;background:",";border-radius:",";border:0;opacity:0;max-width:250px;inset:auto;overflow:visible;}&[popover]:popover-open{display:block;}&[popover].\\:popover-open{display:block;}@media (forced-colors:active){outline:1px solid transparent;}&::after{position:absolute;display:block;right:0;left:0;height:var(--overlay-offset,0.25rem);content:'';}&[data-direction='n']::after,&[data-direction='ne']::after,&[data-direction='nw']::after{top:100%;}&[data-direction='s']::after,&[data-direction='se']::after,&[data-direction='sw']::after{bottom:100%;}&[data-direction='w']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;left:100%;}&[data-direction='e']::after{position:absolute;display:block;height:100%;width:8px;content:'';bottom:0;right:100%;margin-left:-8px;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:popover-open,&:popover-open::before{","}&.\\:popover-open,&.\\:popover-open::before{","}",";"],Or("fonts.normal"),Or("colors.fg.onEmphasis"),Or("colors.neutral.emphasisPlus"),Or("radii.2"),Qt,Qt,Qo),ra={nw:{side:"outside-top",align:"end"},n:{side:"outside-top",align:"center"},ne:{side:"outside-top",align:"start"},e:{side:"outside-right",align:"center"},se:{side:"outside-bottom",align:"start"},s:{side:"outside-bottom",align:"center"},sw:{side:"outside-bottom",align:"end"},w:{side:"outside-left",align:"center"}},oa={"outside-top-end":"nw","outside-top-center":"n","outside-top-start":"ne","outside-right-center":"e","outside-bottom-start":"se","outside-bottom-center":"s","outside-bottom-end":"sw","outside-left-center":"w"},ta=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],aa=e=>ta.some((r=>e.matches(r)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),na=l.default.createContext({}),la=l.default.forwardRef((({direction:e="s",text:o,type:t="description",children:a,id:n,...i},c)=>{const d=Fo(n),s=r.Children.only(a),u=Ur(c),g=r.useRef(null),[b,v]=r.useState(e),[f,h]=r.useState(!1),p=()=>{if(g.current&&u.current&&g.current.hasAttribute("popover")&&!g.current.matches(":popover-open")){const r=g.current,o=u.current;r.showPopover(),h(!0);const t={side:ra[e].side,align:ra[e].align},{top:a,left:n,anchorAlign:l,anchorSide:i}=so(r,o,t);v(oa[`${i}-${l}`]),r.style.top=`${a}px`,r.style.left=`${n}px`}},m=()=>{g.current&&u.current&&g.current.hasAttribute("popover")&&g.current.matches(":popover-open")&&(g.current.hidePopover(),h(!1))},y=r.useMemo((()=>({tooltipId:d})),[d]);return r.useEffect((()=>{if(!g.current||!u.current)return;const e=aa(u.current),r=u.current.childNodes,o=Array.from(r).some((e=>e instanceof HTMLElement&&aa(e)));if(e||o||pt(!1),"label"===t){u.current.hasAttribute("aria-label"),Array.from(u.current.childNodes).some((e=>e instanceof HTMLElement&&e.hasAttribute("aria-label")))}"undefined"!=typeof window&&("undefined"!=typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||Xt());g.current.setAttribute("popover","auto")}),[g,u,e,t]),Jr((e=>{f&&(e.stopImmediatePropagation(),e.preventDefault(),m())}),[f]),l.default.createElement(na.Provider,{value:y},l.default.createElement(l.default.Fragment,null,l.default.isValidElement(s)&&l.default.cloneElement(s,{ref:u,"aria-describedby":"description"===t?d:s.props["aria-describedby"],"aria-labelledby":"label"===t?d:s.props["aria-labelledby"],onBlur:e=>{var r,o;m(),null===(r=(o=s.props).onBlur)||void 0===r||r.call(o,e)},onFocus:e=>{var r,o;try{if(!e.target.matches(":focus-visible"))return}catch(e){}p(),null===(r=(o=s.props).onFocus)||void 0===r||r.call(o,e)},onMouseEnter:e=>{var r,o;p(),null===(r=(o=s.props).onMouseEnter)||void 0===r||r.call(o,e)},onMouseLeave:e=>{var r,o;m(),null===(r=(o=s.props).onMouseLeave)||void 0===r||r.call(o,e)}}),l.default.createElement(ea,Jt({ref:g,"data-direction":b},i,{role:"description"===t?"tooltip":void 0,"aria-hidden":"label"===t||void 0,id:d,onMouseEnter:p,onMouseLeave:m}),o)))}));function ia(e){var r,o,t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(o=ia(e[r]))&&(t&&(t+=" "),t+=o);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function ca(){for(var e,r,o=0,t="";o<arguments.length;)(e=arguments[o++])&&(r=ia(e))&&(t&&(t+=" "),t+=r);return t}function da(){return da=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},da.apply(this,arguments)}const sa=i.default.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus,&:focus-within{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus,&.tooltipped-multiline:focus-within{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}",";"],Or("fonts.normal"),Or("colors.fg.onEmphasis"),Or("colors.neutral.emphasisPlus"),Or("radii.2"),Or("space.3"),Or("space.3"),Or("space.3"),Or("space.3"),Qo),ua=l.default.createContext({});function ga({direction:e="n",children:o,className:t,text:a,noDelay:n,align:i,wrap:c,id:d,...s}){const u=Fo(d),g=ca(t,`tooltipped-${e}`,i&&`tooltipped-align-${i}-2`,n&&"tooltipped-no-delay",c&&"tooltipped-multiline"),b=r.useMemo((()=>({tooltipId:u})),[u]);return l.default.createElement(ua.Provider,{value:b},l.default.createElement(sa,da({role:"tooltip","aria-label":a,id:u},s,{className:g}),o))}function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ba.apply(this,arguments)}ga.displayName="Tooltip",ga.alignments=["left","right"],ga.directions=["n","ne","e","se","s","sw","w","nw"];const va=r.forwardRef((({sx:e=ct,icon:r,"aria-label":o,description:t,disabled:a,tooltipDirection:n,unsafeDisableTooltip:i=!0,...c},d)=>{let s=e;const{size:u}=c;null!==e&&Object.keys(e).length>0&&(s=ht({size:u},e));const{tooltipId:g}=l.default.useContext(na),{tooltipId:b}=l.default.useContext(ua);return i||a||void 0===o||""===o||(g||b)?l.default.createElement(bt,ba({icon:r,"data-component":"IconButton",sx:s,type:"button","aria-label":o,disabled:a},c,{ref:d})):l.default.createElement(la,{ref:d,text:null!=t?t:o,type:t?void 0:"label",direction:n},l.default.createElement(bt,ba({icon:r,"data-component":"IconButton",sx:s,type:"button","aria-label":t?o:void 0},c)))}));function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},fa.apply(this,arguments)}const ha=r.forwardRef((({children:e,as:r="a",sx:o=ct,...t},a)=>l.default.createElement(bt,fa({as:r,ref:a,sx:o},t),e))),pa=!("undefined"==typeof window||!window.document||!window.document.createElement);function ma(e,o){const t=r.useContext(ya),[a,n]=l.default.useState((()=>void 0!==t[e]?t[e]:void 0!==o?o:!!pa&&window.matchMedia(e).matches));return r.useEffect((()=>{void 0!==t[e]&&n(t[e])}),[t,e]),r.useEffect((()=>{if(void 0!==t[e])return;function r(e){n(e.matches)}const o=window.matchMedia(e);return o.addEventListener?o.addEventListener("change",r):o.addListener(r),n(o.matches),()=>{o.addEventListener?o.removeEventListener("change",r):o.removeListener(r)}}),[t,e]),a}const ya=r.createContext({}),xa={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function Ca(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function wa(e,r){const o=ma(xa.narrow,!1),t=ma(xa.regular,!1),a=ma(xa.wide,!1);if(Ca(e)){const n=e;return o&&"narrow"in n?n.narrow:a&&"wide"in n?n.wide:t&&"regular"in n?n.regular:r}return e}function ka(e,r){const o=(t=r,a=()=>{},Object.keys(t).reduce(((e,r)=>(e[r]=a(t[r]),e)),{}));var t,a;const n=[],i=Object.keys(r),c=Object.values(r);return l.default.Children.forEach(e,(e=>{if(!l.default.isValidElement(e))return void n.push(e);const r=c.findIndex((r=>{if(Array.isArray(r)){const[o,t]=r;return e.type===o&&t(e.props)}return e.type===r}));if(-1===r)return void n.push(e);const t=i[r];o[t]||(o[t]=e)})),[o,n]}function Ba(e){const[o,t]=r.useState(!1);return r.useEffect((()=>{if(null===e.current)return;const r=new ResizeObserver((e=>{for(const r of e)t(r.target.scrollHeight>r.target.clientHeight||r.target.scrollWidth>r.target.clientWidth)}));return r.observe(e.current),()=>{r.disconnect()}}),[e]),o}var Ea=new Map,Ta=new WeakMap,Sa=0,Ia=void 0;function Ma(e){return Object.keys(e).sort().filter((r=>void 0!==e[r])).map((r=>`${r}_${"root"===r?function(e){return e?(Ta.has(e)||(Sa+=1,Ta.set(e,Sa.toString())),Ta.get(e)):"0"}(e.root):e[r]}`)).toString()}function Na(e,r,o={},t=Ia){if(void 0===window.IntersectionObserver&&void 0!==t){const a=e.getBoundingClientRect();return r(t,{isIntersecting:t,target:e,intersectionRatio:"number"==typeof o.threshold?o.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:n,elements:l}=function(e){const r=Ma(e);let o=Ea.get(r);if(!o){const t=new Map;let a;const n=new IntersectionObserver((r=>{r.forEach((r=>{var o;const n=r.isIntersecting&&a.some((e=>r.intersectionRatio>=e));e.trackVisibility&&void 0===r.isVisible&&(r.isVisible=n),null==(o=t.get(r.target))||o.forEach((e=>{e(n,r)}))}))}),e);a=n.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),o={id:r,observer:n,elements:t},Ea.set(r,o)}return o}(o),i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(r),n.observe(e),function(){i.splice(i.indexOf(r),1),0===i.length&&(l.delete(e),n.unobserve(e)),0===l.size&&(n.disconnect(),Ea.delete(a))}}function Oa({threshold:e,delay:r,trackVisibility:o,rootMargin:t,root:a,triggerOnce:n,skip:i,initialInView:c,fallbackInView:d,onChange:s}={}){var u;const[g,b]=l.useState(null),v=l.useRef(),[f,h]=l.useState({inView:!!c,entry:void 0});v.current=s,l.useEffect((()=>{if(i||!g)return;let l;return l=Na(g,((e,r)=>{h({inView:e,entry:r}),v.current&&v.current(e,r),r.isIntersecting&&n&&l&&(l(),l=void 0)}),{root:a,rootMargin:t,threshold:e,trackVisibility:o,delay:r},d),()=>{l&&l()}}),[Array.isArray(e)?e.toString():e,g,a,t,n,i,o,d,r]);const p=null==(u=f.entry)?void 0:u.target,m=l.useRef();g||!p||n||i||m.current===p||(m.current=p,h({inView:!!c,entry:void 0}));const y=[b,f.inView,f.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}function Aa(e){return e&&e!==document.body?function(e){const r=e.scrollHeight>e.clientHeight;return r&&!(-1!==window.getComputedStyle(e).overflowY.indexOf("hidden"))}(e)?e:Aa(e.parentElement):null}const La=!!pa&&CSS.supports("-webkit-touch-callout","none"),ja=!!pa&&(CSS.supports("max-height","100dvh")&&La);function Ra(e){return ja?`${e}dvh`:`${e}vh`}function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Da.apply(this,arguments)}const za=1,Pa=2,_a=3,Ha=4,Fa={none:0,condensed:3,normal:[3,null,null,4]},Va=l.default.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),Wa={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},Za=({containerWidth:e="xlarge",padding:o="normal",rowGap:t="normal",columnGap:a="normal",children:n,sx:i={},_slotsConfig:c})=>{const{rootRef:d,enableStickyPane:s,disableStickyPane:u,contentTopRef:g,contentBottomRef:b,stickyPaneHeight:v}=function(){const e=l.default.useRef(null),[r,o]=l.default.useState(Ra(100)),[t,a]=l.default.useState(0),[n,i,c]=Oa(),[d,s]=Oa(),u=l.default.useCallback((()=>{let r="";const a=Aa(e.current),n=null==c?void 0:c.target.getBoundingClientRect(),l="number"==typeof t?`${t}px`:t;if(a){const e=a.getBoundingClientRect(),o=n?Math.max(n.top-e.top,0):0;r=`calc(${e.height}px - (max(${o}px, ${l})))`}else{const e=n?Math.max(n.top,0):0;r=`calc(${Ra(100)} - (max(${e}px, ${l})))`}o(r)}),[c,t]),[g,b]=l.default.useState(!1);return Oo((()=>{const r=Aa(e.current);return g&&(i||s)&&(u(),r?r.addEventListener("scroll",u):window.addEventListener("scroll",u),window.addEventListener("resize",u)),()=>{r?r.removeEventListener("scroll",u):window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}}),[g,i,s,u]),{rootRef:e,enableStickyPane:function(e){b(!0),a(e)},disableStickyPane:function(){b(!1)},contentTopRef:n,contentBottomRef:d,stickyPaneHeight:r}}(),f=r.useRef(null),[h,p]=ka(n,null!=c?c:{header:Ya,footer:nn});return l.default.createElement(Va.Provider,{value:{padding:o,rowGap:t,columnGap:a,enableStickyPane:s,disableStickyPane:u,contentTopRef:g,contentBottomRef:b,paneRef:f}},l.default.createElement(et,{ref:d,style:{"--sticky-pane-height":v},sx:Vr({padding:Fa[o]},i)},l.default.createElement(et,{sx:{maxWidth:Wa[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},h.header,l.default.createElement(et,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},p),h.footer)))};Za.displayName="Root",Za.displayName="PageLayout";const $a={none:{display:"none"},line:{display:"block",height:1,backgroundColor:"border.default"},filled:{display:"block",height:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset 0 -1px 0 0 ${e.colors.border.default}, inset 0 1px 0 0 ${e.colors.border.default}`}};const Ka=({variant:e="none",sx:r={}})=>{const{padding:o}=l.default.useContext(Va),t=wa(e,"none");return l.default.createElement(et,{sx:e=>{return Vr({marginX:(a=Fa[o],Array.isArray(a)?a.map((e=>null===e?null:-e)):null===a?null:-a),...$a[t],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},r);var a}})};Ka.displayName="HorizontalDivider";const Ga={none:{display:"none"},line:{display:"block",width:1,backgroundColor:"border.default"},filled:{display:"block",width:8,backgroundColor:"canvas.inset",boxShadow:e=>`inset -1px 0 0 0 ${e.colors.border.default}, inset 1px 0 0 0 ${e.colors.border.default}`}},Ua=o.createGlobalStyle(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),qa=({variant:e="none",draggable:r=!1,onDragStart:o,onDrag:t,onDragEnd:a,onDoubleClick:n,sx:i={}})=>{const[c,d]=l.default.useState(!1),[s,u]=l.default.useState(!1),g=wa(e,"none"),b=l.default.useRef(t),v=l.default.useRef(a),{paneRef:f}=l.default.useContext(Va),[h,p]=l.default.useState(0),[m,y]=l.default.useState(0),[x,C]=l.default.useState(0);return l.default.useEffect((()=>{if(null!==f.current){const e=getComputedStyle(f.current),r=e.getPropertyValue("--pane-max-width-diff"),o=e.getPropertyValue("--pane-min-width"),t=f.current.getBoundingClientRect().width,a=Number(r.split("px")[0]),n=Number(o.split("px")[0]),l=window.innerWidth,i=l>a?l-a:l;p(n),y(i),C(t||0)}}),[f,s,c]),l.default.useEffect((()=>{b.current=t}),[t]),l.default.useEffect((()=>{v.current=a}),[a]),l.default.useEffect((()=>{function e(e){var r;null===(r=b.current)||void 0===r||r.call(b,e.movementX,!1),e.preventDefault()}function r(e){var r;d(!1),null===(r=v.current)||void 0===r||r.call(v),e.preventDefault()}function o(e){var r;let o=0;if(("ArrowLeft"===e.key||"ArrowDown"===e.key)&&x>h)o=-3;else{if("ArrowRight"!==e.key&&"ArrowUp"!==e.key||!(x<m))return;o=3}C(x+o),null===(r=b.current)||void 0===r||r.call(b,o,!0),e.preventDefault()}function t(e){var r;u(!1),null===(r=v.current)||void 0===r||r.call(v),e.preventDefault()}return c||s?(window.addEventListener("mousemove",e),window.addEventListener("keydown",o),window.addEventListener("mouseup",r),window.addEventListener("keyup",t),document.body.setAttribute("data-page-layout-dragging","true")):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",r),window.removeEventListener("keydown",o),window.removeEventListener("keyup",t),document.body.removeAttribute("data-page-layout-dragging")}}),[c,s,x,h,m]),l.default.createElement(et,{sx:Vr({height:"100%",position:"relative",...Ga[g]},i)},r?l.default.createElement(l.default.Fragment,null,l.default.createElement(et,{sx:{position:"absolute",inset:"0 -2px",cursor:"col-resize",bg:c||s?"accent.fg":"transparent",transitionDelay:"0.1s","&:hover":{bg:c||s?"accent.fg":"neutral.muted"}},role:"slider","aria-label":"Draggable pane splitter","aria-valuemin":h,"aria-valuemax":m,"aria-valuenow":x,"aria-valuetext":`Pane width ${x} pixels`,tabIndex:0,onMouseDown:e=>{0===e.button&&(d(!0),null==o||o())},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(u(!0),null==o||o())},onDoubleClick:n}),l.default.createElement(Ua,null)):null)};qa.displayName="VerticalDivider";const Ya=({"aria-label":e,"aria-labelledby":r,padding:o="none",divider:t="none",dividerWhenNarrow:a="inherit",hidden:n=!1,children:i,sx:c={}})=>{const d=wa(Ca(t)||"inherit"===a?t:{regular:t,narrow:a},"none"),s=wa(n,!1),{rowGap:u}=l.default.useContext(Va);return l.default.createElement(et,{as:"header","aria-label":e,"aria-labelledby":r,hidden:s,sx:Vr({width:"100%",marginBottom:Fa[u]},c)},l.default.createElement(et,{sx:{padding:Fa[o]}},i),l.default.createElement(Ka,{variant:d,sx:{marginTop:Fa[u]}}))};Ya.displayName="Header",Ya.displayName="PageLayout.Header";const Xa={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},Ja=({as:e="main","aria-label":r,"aria-labelledby":o,width:t="full",padding:a="none",hidden:n=!1,children:i,sx:c={}})=>{const d=wa(n,!1),{contentTopRef:s,contentBottomRef:u}=l.default.useContext(Va);return l.default.createElement(et,{as:e,"aria-label":r,"aria-labelledby":o,sx:Vr({display:d?"none":"flex",flexDirection:"column",order:Pa,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},c)},l.default.createElement(et,{ref:s}),l.default.createElement(et,{sx:{width:"100%",maxWidth:Xa[t],marginX:"auto",flexGrow:1,padding:Fa[a]}},i),l.default.createElement(et,{ref:u}))};Ja.displayName="Content",Ja.displayName="PageLayout.Content";const Qa=e=>void 0!==e.default,en=e=>["small","medium","large"].includes(e),rn={start:za,end:_a},on={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},tn={small:256,medium:296,large:320},an=l.default.forwardRef((({"aria-label":e,"aria-labelledby":r,position:o="end",positionWhenNarrow:t="inherit",width:a="medium",minWidth:n=256,padding:i="none",resizable:c=!1,widthStorageKey:d="paneWidth",divider:s="none",dividerWhenNarrow:u="inherit",sticky:g=!1,offsetHeader:b=0,hidden:v=!1,children:f,id:h,sx:p={}},m)=>{const y=wa(Ca(o)||"inherit"===t?o:{regular:o,narrow:t},"end"),x=wa(Ca(s)||"inherit"===u?s:{regular:s,narrow:u},"none"),C=wa(v,!1),{rowGap:w,columnGap:k,enableStickyPane:B,disableStickyPane:E,paneRef:T}=l.default.useContext(Va);l.default.useEffect((()=>{g?null==B||B(b):null==E||E()}),[g,B,E,b]);const S=e=>en(e)?tn[e]:Qa(e)?Number(e.default.split("px")[0]):0,[I,M]=l.default.useState((()=>{if(!pa)return S(a);let e;try{e=localStorage.getItem(d)}catch(r){e=null}return e&&!isNaN(Number(e))?Number(e):S(a)})),N=e=>{M(e);try{localStorage.setItem(d,e.toString())}catch(e){}};Ho(m,T);const O=Ba(T),A=Fo(h),L={};return O&&(r?L["aria-labelledby"]=r:e&&(L["aria-label"]=e)),l.default.createElement(et,{sx:e=>Vr({display:C?"none":"flex",order:rn[y],width:"100%",marginX:0,..."end"===y?{flexDirection:"column",marginTop:Fa[w]}:{flexDirection:"column-reverse",marginBottom:Fa[w]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...g?{position:"sticky",top:"number"==typeof b?`${b}px`:b,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===y?{flexDirection:"row-reverse",marginLeft:Fa[k]}:{flexDirection:"row",marginRight:Fa[k]}}},p)},l.default.createElement(Ka,{variant:{narrow:x,regular:"none"},sx:{["end"===y?"marginBottom":"marginTop"]:Fa[w]}}),l.default.createElement(et,Da({ref:T,style:{"--pane-width":`${I}px`},sx:e=>({"--pane-min-width":Qa(a)?a.min:`${n}px`,"--pane-max-width-diff":"511px","--pane-max-width":Qa(a)?a.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:en(a)?on[a]:a.default,padding:Fa[i],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},O&&{tabIndex:0,role:"region"},L,h&&{id:A}),f),l.default.createElement(qa,{variant:{narrow:"none",regular:c?"line":x},draggable:c,sx:{["end"===y?"marginRight":"marginLeft"]:Fa[k]},onDrag:(e,r=!1)=>{let o;o=r?e:"end"===y?-e:e,N(I+o)},onDragEnd:()=>{var e;const r=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();r&&N(r.width)},onDoubleClick:()=>N(S(a))}))}));an.displayName="PageLayout.Pane";const nn=({"aria-label":e,"aria-labelledby":r,padding:o="none",divider:t="none",dividerWhenNarrow:a="inherit",hidden:n=!1,children:i,sx:c={}})=>{const d=wa(Ca(t)||"inherit"===a?t:{regular:t,narrow:a},"none"),s=wa(n,!1),{rowGap:u}=l.default.useContext(Va);return l.default.createElement(et,{as:"footer","aria-label":e,"aria-labelledby":r,hidden:s,sx:Vr({order:Ha,width:"100%",marginTop:Fa[u]},c)},l.default.createElement(Ka,{variant:d,sx:{marginBottom:Fa[u]}}),l.default.createElement(et,{sx:{padding:Fa[o]}},i))};nn.displayName="Footer",nn.displayName="PageLayout.Footer";const ln=Object.assign(Za,{Header:Ya,Content:Ja,Pane:an,Footer:nn});function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},cn.apply(this,arguments)}const dn=e=>l.default.createElement(ln,cn({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:sn,footer:bn}},e));dn.displayName="Root",dn.displayName="SplitPageLayout";const sn=({padding:e="normal",divider:r="line",...o})=>l.default.createElement(ln.Header,cn({padding:e,divider:r},o));sn.displayName="Header",sn.displayName="SplitPageLayout.Header";const un=({width:e="large",padding:r="normal",...o})=>l.default.createElement(ln.Content,cn({width:e,padding:r},o));un.displayName="Content",un.displayName="SplitPageLayout.Content";const gn=({position:e="start",sticky:r=!0,padding:o="normal",divider:t="line",...a})=>l.default.createElement(ln.Pane,cn({position:e,sticky:r,padding:o,divider:t},a));gn.displayName="Pane",gn.displayName="SplitPageLayout.Pane";const bn=({padding:e="normal",divider:r="line",...o})=>l.default.createElement(ln.Footer,cn({padding:e,divider:r},o));bn.displayName="Footer",bn.displayName="SplitPageLayout.Footer";const vn=Object.assign(dn,{Header:sn,Content:un,Pane:gn,Footer:bn});function fn(){const e=r.useRef(new Set),o=r.useCallback(((r,o,...t)=>{const a=window.setTimeout(r,o,...t);return e.current.add(a),a}),[]),t=r.useCallback((r=>{clearTimeout(r),e.current.delete(r)}),[]);return r.useEffect((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:o,safeClearTimeout:t}}var hn,pn=c.default;function mn(e,r=[]){const o=Ur(null==e?void 0:e.containerRef),t=Ur(null==e?void 0:e.initialFocusRef),a=null==e?void 0:e.disabled,n=l.default.useRef(),i=l.default.useRef(null);function c(){var r;null===(r=n.current)||void 0===r||r.abort(),null!=e&&e.returnFocusRef&&e.returnFocusRef.current instanceof HTMLElement?e.returnFocusRef.current.focus():null!=e&&e.restoreFocusOnCleanUp&&i.current instanceof HTMLElement&&(i.current.focus(),i.current=null)}return i.current||null!=e&&e.disabled||(i.current=document.activeElement),l.default.useEffect((()=>{if(o.current instanceof HTMLElement){var e;if(!a)return n.current=xo(o.current,null!==(e=t.current)&&void 0!==e?e:void 0),()=>{c()};c()}}),[o,t,a,...r]),{containerRef:o,initialFocusRef:t}}function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yn.apply(this,arguments)}hn=pn.createRoot,pn.hydrateRoot;const xn=l.default.forwardRef(((e,r)=>{const{icon:o,...t}=e;return l.default.createElement(o,yn({},t,{ref:r}))})),Cn=i.default(xn).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>Qo({sx:{color:e,...r}})));var wn={small:16,medium:32,large:64};function kn(e,r,o){var t=o(),a=Object.keys(t),n=l.default.forwardRef((function(e,o){var n=e["aria-label"],i=e["aria-labelledby"],c=e.tabIndex,d=e.className,s=void 0===d?r:d,u=e.fill,g=void 0===u?"currentColor":u,b=e.size,v=void 0===b?16:b,f=e.verticalAlign,h=void 0===f?"text-bottom":f,p=e.id,m=e.title,y=wn[v]||v,x=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,o){return o<=r?o:e}),e[0])}(a,y),C=t[x].width,w=y*(C/x),k=t[x].path,B=n||i,E=B?"img":void 0;return l.default.createElement("svg",{ref:o,"aria-hidden":B?void 0:"true",tabIndex:c,focusable:c>=0?"true":"false","aria-label":n,"aria-labelledby":i,className:s,role:E,viewBox:"0 0 ".concat(C," ").concat(x),width:w,height:y,fill:g,id:p,style:{display:"inline-block",userSelect:"none",verticalAlign:h,overflow:"visible"}},m?l.default.createElement("title",null,m):null,k)}));return n.displayName=e,n}var Bn=kn("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"}),l.default.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z"}))}}})),En=kn("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})},16:{width:16,path:l.default.createElement("path",{d:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575ZM8 5a.75.75 0 0 0-.75.75v2.5a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8 5Zm1 6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752ZM12 8.5a.75.75 0 0 0-.75.75v4.5a.75.75 0 0 0 1.5 0v-4.5A.75.75 0 0 0 12 8.5Zm1 9a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})}}})),Tn=kn("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"})}}})),Sn=kn("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M6 0a6 6 0 1 1 0 12A6 6 0 0 1 6 0Zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938Z"})},16:{width:16,path:l.default.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm16.28-2.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018l-5.97 5.97-2.47-2.47a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l3 3a.75.75 0 0 0 1.06 0Z"})}}})),In=kn("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:l.default.createElement("path",{d:"M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z"})}}})),Mn=kn("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z"})},16:{width:16,path:l.default.createElement("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:l.default.createElement("path",{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"})}}})),Nn=kn("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"})},24:{width:24,path:l.default.createElement("path",{d:"M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z"})}}})),On=kn("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"})}}})),An=kn("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z"}),l.default.createElement("path",{d:"M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z"}),l.default.createElement("path",{d:"M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z"}))}}})),Ln=kn("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M3.75 4.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5ZM3 7.75a.75.75 0 0 1 1.5 0v2.878a2.251 2.251 0 1 1-1.5 0Zm.75 5.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm5-7.75a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm5.75 2.5a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-1.5 0a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M5.75 6.5a1.75 1.75 0 1 1 .001-3.501A1.75 1.75 0 0 1 5.75 6.5ZM9.5 8.75a1.75 1.75 0 1 1 3.501.001A1.75 1.75 0 0 1 9.5 8.75ZM5.75 22.5a3.25 3.25 0 0 1-.745-6.414A.81.81 0 0 1 5 16v-5a.75.75 0 0 1 1.5 0v5a.81.81 0 0 1-.005.086A3.252 3.252 0 0 1 5.75 22.5ZM4 19.25a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 4 19.25Zm11-6.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25 1.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"})}}})),jn=kn("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"}),l.default.createElement("path",{d:"M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z"}))}}})),Rn=kn("GitPullRequestClosedIcon","octicon octicon-git-pull-request-closed",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"})},24:{width:24,path:l.default.createElement("path",{d:"M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z"})}}})),Dn=kn("GitPullRequestDraftIcon","octicon octicon-git-pull-request-draft",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"})},24:{width:24,path:l.default.createElement("path",{d:"M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z"})}}})),zn=kn("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),l.default.createElement("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"}))},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z"}),l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Pn=kn("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M14.307 11.655a.75.75 0 0 1 .165 1.048 8.05 8.05 0 0 1-1.769 1.77.75.75 0 0 1-.883-1.214 6.552 6.552 0 0 0 1.44-1.439.75.75 0 0 1 1.047-.165Zm-2.652-9.962a.75.75 0 0 1 1.048-.165 8.05 8.05 0 0 1 1.77 1.769.75.75 0 0 1-1.214.883 6.552 6.552 0 0 0-1.439-1.44.75.75 0 0 1-.165-1.047ZM6.749.097a8.074 8.074 0 0 1 2.502 0 .75.75 0 1 1-.233 1.482 6.558 6.558 0 0 0-2.036 0A.751.751 0 0 1 6.749.097ZM.955 6.125a.75.75 0 0 1 .624.857 6.558 6.558 0 0 0 0 2.036.75.75 0 1 1-1.482.233 8.074 8.074 0 0 1 0-2.502.75.75 0 0 1 .858-.624Zm14.09 0a.75.75 0 0 1 .858.624c.13.829.13 1.673 0 2.502a.75.75 0 1 1-1.482-.233 6.558 6.558 0 0 0 0-2.036.75.75 0 0 1 .624-.857Zm-8.92 8.92a.75.75 0 0 1 .857-.624 6.558 6.558 0 0 0 2.036 0 .75.75 0 1 1 .233 1.482c-.829.13-1.673.13-2.502 0a.75.75 0 0 1-.624-.858Zm-4.432-3.39a.75.75 0 0 1 1.048.165 6.552 6.552 0 0 0 1.439 1.44.751.751 0 0 1-.883 1.212 8.05 8.05 0 0 1-1.77-1.769.75.75 0 0 1 .166-1.048Zm2.652-9.962A.75.75 0 0 1 4.18 2.74a6.556 6.556 0 0 0-1.44 1.44.751.751 0 0 1-1.212-.883 8.05 8.05 0 0 1 1.769-1.77.75.75 0 0 1 1.048.166Z"})},24:{width:24,path:l.default.createElement("path",{d:"M17.32 3.205a.75.75 0 0 1 1.046-.177 11.056 11.056 0 0 1 2.605 2.606.75.75 0 1 1-1.222.869 9.554 9.554 0 0 0-2.252-2.252.75.75 0 0 1-.177-1.046Zm3.475 14.115a.75.75 0 0 1 .176 1.046 11.07 11.07 0 0 1-2.605 2.605.75.75 0 1 1-.869-1.222 9.554 9.554 0 0 0 2.252-2.252.75.75 0 0 1 1.046-.177ZM2.018 9.543a.75.75 0 0 1 .615.864 9.571 9.571 0 0 0 0 3.186.75.75 0 1 1-1.48.25 11.07 11.07 0 0 1 0-3.686.75.75 0 0 1 .865-.614Zm7.525 12.439a.75.75 0 0 1 .864-.615 9.571 9.571 0 0 0 3.186 0 .75.75 0 1 1 .25 1.48 11.07 11.07 0 0 1-3.686 0 .75.75 0 0 1-.614-.865ZM6.68 3.205a.75.75 0 0 1-.177 1.046A9.558 9.558 0 0 0 4.25 6.503a.75.75 0 1 1-1.223-.87 11.056 11.056 0 0 1 2.606-2.605.75.75 0 0 1 1.046.177ZM3.205 17.32a.75.75 0 0 1 1.046.177 9.554 9.554 0 0 0 2.252 2.252.75.75 0 1 1-.87 1.223 11.056 11.056 0 0 1-2.605-2.606.75.75 0 0 1 .177-1.046Zm6.952-16.166a11.07 11.07 0 0 1 3.686 0 .75.75 0 0 1-.25 1.479 9.571 9.571 0 0 0-3.186 0 .75.75 0 1 1-.25-1.48Zm11.825 8.389a.75.75 0 0 1 .864.614 11.07 11.07 0 0 1 0 3.686.75.75 0 0 1-1.479-.25 9.571 9.571 0 0 0 0-3.186.75.75 0 0 1 .615-.864Z"})}}})),_n=kn("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),l.default.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"}))},24:{width:24,path:l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm9.5 2a2 2 0 1 1-.001-3.999A2 2 0 0 1 12 14Z"})}}})),Hn=kn("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"})},24:{width:24,path:l.default.createElement("path",{d:"M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z"})}}})),Fn=kn("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Vn=kn("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"})},24:{width:24,path:l.default.createElement("path",{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"})}}})),Wn=kn("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"})},24:{width:24,path:l.default.createElement(l.default.Fragment,null,l.default.createElement("path",{d:"M17.28 7.78a.75.75 0 0 0-1.06-1.06l-9.5 9.5a.75.75 0 1 0 1.06 1.06l9.5-9.5Z"}),l.default.createElement("path",{d:"M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z"}))}}})),Zn=kn("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:l.default.createElement("path",{d:"m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"})},24:{width:24,path:l.default.createElement("path",{d:"M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z"})}}})),$n=kn("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:l.default.createElement("path",{d:"M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z"})},16:{width:16,path:l.default.createElement("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})},24:{width:24,path:l.default.createElement("path",{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"})}}}));function Kn(e={},o=[]){const t=Ur(e.containerRef),a=!!e.activeDescendantFocus,n=Ur("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),i=e.disabled,c=l.default.useRef();return r.useEffect((()=>{if(t.current instanceof HTMLElement&&(!a||n.current instanceof HTMLElement)){if(!i){var r;const o={...e,activeDescendantControl:null!==(r=n.current)&&void 0!==r?r:void 0};return c.current=Mo(t.current,o),()=>{var e;null===(e=c.current)||void 0===e||e.abort()}}var o;null===(o=c.current)||void 0===o||o.abort()}}),[i,...o]),{containerRef:t,activeDescendantControlRef:n}}const Gn="__primerPortalRoot__",Un="__default__",qn={};function Yn(e,r=Un){qn[r]=e}const Xn=({children:e,onMount:r,containerName:o})=>{const a=l.default.useRef(null);if(!a.current){const e=document.createElement("div");e.style.position="relative",e.style.zIndex="1",a.current=e}const n=a.current;return Oo((()=>{let e=o;void 0===e&&(e=Un,function(){const e=qn[Un];if(!e||!document.body.contains(e)){let e=document.getElementById(Gn);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",Gn),e.style.position="absolute",e.style.top="0",e.style.left="0";const r=document.querySelector("[data-portal-root]");r?r.appendChild(e):document.body.appendChild(e)}Yn(e)}}());const t=qn[e];if(!t)throw new Error(`Portal container '${o}' is not yet registered. Container must be registered with registerPortal before use.`);return t.appendChild(n),null==r||r(),()=>{t.removeChild(n)}}),[n]),t.createPortal(e,n)};function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Jn.apply(this,arguments)}const Qn={position:"relative",overflow:"auto"};function el({"aria-labelledby":e,children:r,...o}){const t=l.default.useRef(null),a=Ba(t)?{"aria-labelledby":e,role:"region",tabIndex:0}:{};return l.default.createElement(et,Jn({},o,a,{ref:t,sx:Qn}),r)}function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},rl.apply(this,arguments)}el.displayName="ScrollableRegion";const ol=i.default("div").withConfig({displayName:"Dialog__Backdrop",componentId:"sc-uaxjsn-0"})(["position:fixed;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center;background-color:",";animation:dialog-backdrop-appear 200ms ",";&[data-position-regular='center']{align-items:center;justify-content:center;}&[data-position-regular='left']{align-items:center;justify-content:flex-start;}&[data-position-regular='right']{align-items:center;justify-content:flex-end;}.DialogOverflowWrapper{flex-grow:1;}@media (max-width:767px){&[data-position-narrow='center']{align-items:center;justify-content:center;}&[data-position-narrow='bottom']{align-items:end;justify-content:center;}}@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Or("colors.primer.canvas.backdrop"),Or("animation.easeOutCubic")),tl={small:"480px",large:"640px",auto:"auto"},al={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},nl=i.default.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";width:",";height:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);border-radius:12px;opacity:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}&[data-position-regular='center']{border-radius:var(--borderRadius-large,0.75rem);@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='left']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-left-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInRight 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-regular='right']{height:100vh;max-height:unset;border-radius:var(--borderRadius-large,0.75rem);border-top-right-radius:0;border-bottom-right-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideInLeft 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}@media (max-width:767px){&[data-position-narrow='center']{border-radius:var(--borderRadius-large,0.75rem);width:",";height:",";}&[data-position-narrow='bottom']{width:100vw;height:auto;max-width:100vw;max-height:calc(100vh - 64px);border-radius:var(--borderRadius-large,0.75rem);border-bottom-right-radius:0;border-bottom-left-radius:0;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-slideUp 0.25s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}&[data-position-narrow='fullscreen']{width:100%;max-width:100vw;height:100%;max-height:100vh;border-radius:unset !important;flex-grow:1;@media screen and (prefers-reduced-motion:no-preference){animation:Overlay--motion-scaleFade 0.2s cubic-bezier(0.33,1,0.68,1) 0s 1 normal none running;}}}@keyframes Overlay--motion-scaleFade{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}@keyframes Overlay--motion-slideUp{from{transform:translateY(100%);}}@keyframes Overlay--motion-slideInRight{from{transform:translateX(-100%);}}@keyframes Overlay--motion-slideInLeft{from{transform:translateX(100%);}}",";"],Or("colors.canvas.overlay"),Or("shadows.overlay.shadow"),(e=>{var r;return al[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return tl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),(e=>{var r;return al[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return tl[null!==(r=e.height)&&void 0!==r?r:"auto"]}),Qo),ll=({dialogLabelId:e,title:o,subtitle:t,dialogDescriptionId:a,onClose:n})=>{const i=r.useCallback((()=>{n("close-button")}),[n]);return l.default.createElement(ml.Header,null,l.default.createElement(et,{display:"flex"},l.default.createElement(et,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},l.default.createElement(ml.Title,{id:e},null!=o?o:"Dialog"),t&&l.default.createElement(ml.Subtitle,{id:a},t)),l.default.createElement(ml.CloseButton,{onClose:i})))};ll.displayName="DefaultHeader";const il=({children:e})=>l.default.createElement(ml.Body,null,e);il.displayName="DefaultBody";const cl=({footerButtons:e})=>{const{containerRef:r}=Kn({bindKeys:Co.ArrowHorizontal|Co.Tab,focusInStrategy:"closest"});return e?l.default.createElement(ml.Footer,{ref:r},l.default.createElement(ml.Buttons,{buttons:e})):null},dl={narrow:"center",regular:"center"},sl=l.default.forwardRef(((e,o)=>{const{title:t="Dialog",subtitle:a="",renderHeader:n,renderBody:i,renderFooter:c,onClose:d,role:s="dialog",width:u="xlarge",height:g="auto",footerButtons:b=[],position:v=dl,returnFocusRef:f,sx:h}=e,p=Fo(),m=Fo(),y=r.useRef(null);for(const e of b)e.autoFocus&&(e.ref=y);const x={...e,title:t,subtitle:a,role:s,dialogLabelId:p,dialogDescriptionId:m},C=r.useRef(null);Ho(o,C);const w=r.useRef(null);mn({containerRef:C,initialFocusRef:y,restoreFocusOnCleanUp:null==f||!f.current,returnFocusRef:f}),Jr((e=>{d("escape"),e.preventDefault()}),[d]),l.default.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const k=(null!=n?n:ll)(x),B=(null!=i?i:il)(x),E=(null!=c?c:cl)(x),T="string"==typeof v?{"data-position-regular":v}:Object.fromEntries(Object.entries(v).map((([e,r])=>[`data-position-${e}`,r])));return l.default.createElement(l.default.Fragment,null,l.default.createElement(Xn,null,l.default.createElement(ol,rl({ref:w},T),l.default.createElement(nl,rl({width:u,height:g,ref:C,role:s,"aria-labelledby":p,"aria-describedby":m,"aria-modal":!0},T,{sx:h}),k,l.default.createElement(el,{"aria-labelledby":p,className:"DialogOverflowWrapper"},B),E))))}));sl.displayName="Dialog";const ul=i.default.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;",";"],Or("colors.border.default"),Or("space.2"),Qo),gl=i.default.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Or("fontSizes.1"),Or("fontWeights.bold"),Qo),bl=i.default.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";font-weight:normal;",";"],Or("fontSizes.0"),Or("colors.fg.muted"),Or("space.1"),Qo),vl=i.default.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Or("space.3"),Qo),fl=i.default.div.withConfig({displayName:"Dialog__Footer",componentId:"sc-uaxjsn-6"})(["box-shadow:0 -1px 0 ",";padding:",";display:flex;flex-flow:wrap;justify-content:flex-end;gap:",";z-index:1;flex-shrink:0;",";"],Or("colors.border.default"),Or("space.3"),Or("space.2"),Qo),hl=i.default(ft).withConfig({displayName:"Dialog__DialogCloseButton",componentId:"sc-uaxjsn-7"})(["border-radius:4px;background:transparent;border:0;vertical-align:middle;color:",";padding:",";align-self:flex-start;line-height:normal;box-shadow:none;"],Or("colors.fg.muted"),Or("space.2")),pl=({onClose:e})=>l.default.createElement(hl,{"aria-label":"Close",onClick:e},l.default.createElement(Cn,{icon:$n}));pl.displayName="CloseButton";const ml=Object.assign(sl,{Header:ul,Title:gl,Subtitle:bl,Body:vl,Footer:fl,Buttons:({buttons:e})=>{var o;const t=Ur(null===(o=e.find((e=>e.autoFocus)))||void 0===o?void 0:o.ref);let a=0;const[n,i]=r.useState(0);return r.useEffect((()=>{var e;1===n?null===(e=t.current)||void 0===e||e.focus():i(n+1)}),[t,n]),l.default.createElement(l.default.Fragment,null,e.map(((e,r)=>{const{content:o,buttonType:n="default",autoFocus:i=!1,...c}=e;return l.default.createElement(ft,rl({key:r},c,{variant:"normal"===n?"default":n,ref:i&&0===a?(a++,t):null}),o)})))},CloseButton:pl});function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yl.apply(this,arguments)}const xl=i.default.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Or("space.2")),Cl=i.default(et).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Or("fontSizes.3"),Or("fontWeights.bold"),Or("space.2")),wl=({title:e,onClose:o,dialogLabelId:t})=>{const a=r.useCallback((()=>{o("close-button")}),[o]);return l.default.createElement(xl,null,l.default.createElement(Cl,{id:t},e),l.default.createElement(ml.CloseButton,{onClose:a}))};wl.displayName="ConfirmationHeader";const kl=i.default(et).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Or("fontSizes.1"),Or("space.3"),Or("space.3"),Or("space.3"),Or("colors.fg.muted")),Bl=({children:e})=>l.default.createElement(kl,null,e);Bl.displayName="ConfirmationBody";const El=i.default(et).withConfig({displayName:"ConfirmationDialog__StyledConfirmationFooter",componentId:"sc-11fz0jh-3"})(["display:grid;grid-auto-flow:column;grid-auto-columns:max-content;grid-gap:",";align-items:end;justify-content:end;padding:"," "," ",";"],Or("space.2"),Or("space.1"),Or("space.3"),Or("space.3")),Tl=({footerButtons:e})=>{const{containerRef:r}=Kn({bindKeys:Co.ArrowHorizontal|Co.Tab,focusInStrategy:"closest"});return l.default.createElement(El,{ref:r},l.default.createElement(ml.Buttons,{buttons:null!=e?e:[]}))};Tl.displayName="ConfirmationFooter";const Sl=e=>{const{onClose:o,title:t,cancelButtonContent:a="Cancel",confirmButtonContent:n="OK",confirmButtonType:i="normal",children:c}=e,d="danger"===i,s=[{content:a,onClick:r.useCallback((()=>{o("cancel")}),[o]),autoFocus:d},{content:n,buttonType:i,onClick:r.useCallback((()=>{o("confirm")}),[o]),autoFocus:!d}];return l.default.createElement(ml,{onClose:o,title:t,footerButtons:s,role:"alertdialog",width:"medium",renderHeader:wl,renderBody:Bl,renderFooter:Tl},c)};Sl.displayName="ConfirmationDialog";let Il=null;const Ml=o.keyframes(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Nl=i.default.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&o.css(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],Ml))),Ol=({show:e,children:o})=>{const[t,a]=r.useState(e);r.useEffect((()=>{e&&a(!0)}),[e]);return t?l.default.createElement(et,{height:e?"auto":0,overflow:"hidden"},l.default.createElement(Nl,{show:e,onAnimationEnd:()=>{e||a(!1)}},o)):null},Al=i.default.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Lr,Ar,Qo),Ll=l.default.createContext({}),jl=({children:e,sx:r})=>{const{disabled:o,captionId:t}=l.default.useContext(Ll);return l.default.createElement(Al,{color:o?"fg.muted":"fg.subtle",fontSize:1,id:t,sx:r},e)};jl.displayName="CheckboxOrRadioGroupCaption";const Rl=({children:e,visuallyHidden:r=!1,sx:o})=>{const{required:t,disabled:a}=l.default.useContext(Ll);return l.default.createElement(dt,{isVisible:!r,title:t?"required field":void 0,sx:{display:"block",color:a?"fg.muted":void 0,fontSize:2,...o}},t?l.default.createElement(et,{display:"flex",as:"span"},l.default.createElement(et,{mr:1},e),l.default.createElement("span",null,"*")):e)};Rl.displayName="CheckboxOrRadioGroupLabel";const Dl={success:Sn,error:En},zl={success:"success.fg",error:"danger.fg"},Pl=({children:e,id:r,validationStatus:o,sx:t})=>{const a=o?Dl[o]:void 0,n=o?zl[o]:void 0,i=16/12;return l.default.createElement(Al,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:n,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...t},"aria-live":"polite"},a&&l.default.createElement(et,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},l.default.createElement(a,{size:12,fill:"currentColor"})),l.default.createElement(et,{as:"span",id:r,sx:{lineHeight:i}},e))};Pl.displayName="InputValidation";const _l=({children:e,variant:r,sx:o})=>{const{validationMessageId:t=""}=l.default.useContext(Ll);return l.default.createElement(Pl,{validationStatus:r,id:t,sx:o},e)};function Hl(){return Hl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Hl.apply(this,arguments)}_l.displayName="CheckboxOrRadioGroupValidation";const Fl=i.default.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Or("space.2")),Vl=({"aria-labelledby":e,children:r,disabled:o=!1,id:t,required:a=!1,sx:n})=>{const[i,c]=ka(r,{caption:jl,label:Rl,validation:_l}),d=l.default.Children.toArray(r).find((e=>l.default.isValidElement(e)&&e.type===Rl)),s=l.default.Children.toArray(r).find((e=>l.default.isValidElement(e)&&e.type===_l?e:null)),u=l.default.Children.toArray(r).find((e=>l.default.isValidElement(e)&&e.type===jl?e:null)),g=Fo(t),b=s?`${g}-validationMessage`:void 0,v=u?`${g}-caption`:void 0;d||e||console.warn("A choice group must be labelled using a `CheckboxOrRadioGroup.Label` child, or by passing `aria-labelledby` to the CheckboxOrRadioGroup component.");const f=l.default.isValidElement(d)&&!d.props.visuallyHidden;return l.default.createElement(Ll.Provider,{value:{disabled:o,required:a,captionId:v,validationMessageId:b}},l.default.createElement("div",null,l.default.createElement(et,Hl({border:"none",margin:0,mb:s?2:void 0,padding:0},d&&{as:"fieldset",disabled:o},{sx:n}),d?l.default.createElement(et,{as:"legend",mb:f?2:void 0,padding:0},i.label,i.caption,l.default.isValidElement(i.validation)&&i.validation.props.children&&l.default.createElement(dt,null,i.validation.props.children)):i.caption,l.default.createElement(Fl,!d&&{"aria-labelledby":e,"aria-describedby":[b,v].filter(Boolean).join(" "),as:"div",role:"group"},l.default.Children.toArray(c).filter((e=>l.default.isValidElement(e))))),s&&l.default.createElement(Ol,{"aria-hidden":Boolean(d),show:!0},i.validation)))};Vl.displayName="CheckboxOrRadioGroup";var Wl=Object.assign(Vl,{Caption:jl,Label:Rl,Validation:_l});function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Zl.apply(this,arguments)}const $l=r.createContext(null),Kl=({children:e,disabled:r,onChange:o,name:t,...a})=>{const[n,i]=Ro(null);return l.default.createElement($l.Provider,{value:{disabled:r,name:t,onChange:e=>{o&&((e=>{const{value:r,checked:o}=e.currentTarget;o&&i(r)})(e),o(n.current,e))}}},l.default.createElement(Wl,Zl({disabled:r},a),e))};Kl.displayName="RadioGroup";var Gl=Object.assign(Kl,{Caption:jl,Label:Rl,Validation:_l});const Ul=o.css(["appearance:none;border-color:",";border-style:solid;border-width:",";cursor:pointer;display:grid;height:var(--base-size-16,16px);margin:0;margin-top:0.125rem;place-content:center;position:relative;width:var(--base-size-16,16px);&:disabled{background-color:",";border-color:var(--control-borderColor-disabled,",");}"],Or("colors.neutral.emphasis"),Or("borderWidths.1"),Or("colors.input.disabledBg"),Or("colors.border.default"));function ql(){return ql=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ql.apply(this,arguments)}const Yl=i.default.input.withConfig({displayName:"Radio__StyledRadio",componentId:"sc-1tx0ht9-0"})(["",";border-radius:var(--borderRadius-full,100vh);transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&:checked{border-color:",";border-width:var(--base-size-4,4px);&:disabled{cursor:not-allowed;border-color:",";}}",";@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}",""],Ul,Or("colors.accent.fg"),Or("colors.fg.muted"),ot(),Qo),Xl=l.default.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:i,validationStatus:c,value:d,...s},u)=>{const g=r.useContext($l),b=t||(null==g?void 0:g.name);return b||console.warn("A radio input must have a `name` attribute. Pass `name` as a prop directly to each Radio, or nest them in a `RadioGroup` component with a `name` prop"),l.default.createElement(Yl,ql({type:"radio",value:d,name:b,ref:u,disabled:o,checked:e,"aria-checked":e?"true":"false",required:i,"aria-required":i?"true":"false","aria-invalid":"error"===c?"true":"false",sx:n,onChange:e=>{(null==g?void 0:g.onChange)&&g.onChange(e),a&&a(e)}},s))}));Xl.displayName="Radio";const Jl=l.default.createContext({});function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ql.apply(this,arguments)}const ei=i.default.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Or("fontWeights.bold"),Or("fontSizes.5"),Qo),ri=r.forwardRef((({as:e="h2",...r},o)=>{const t=l.default.useRef(null);return Ho(o,t),l.default.createElement(ei,Ql({as:e},r,{ref:t}))}));ri.displayName="Heading";const oi=l.default.createContext({}),ti=(e,r,o)=>r?{color:"primer.fg.disabled",iconColor:"primer.fg.disabled",annotationColor:"primer.fg.disabled"}:o?{color:"fg.muted",iconColor:"fg.muted",annotationColor:"fg.muted"}:"danger"===e?{color:"danger.fg",iconColor:"danger.fg",annotationColor:"fg.muted",hoverColor:"actionListItem.danger.hoverText"}:{color:"fg.default",iconColor:"fg.muted",annotationColor:"fg.muted",hoverColor:"fg.default"},ai="20px",ni=l.default.createContext({});function li(){return li=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},li.apply(this,arguments)}const ii=r.forwardRef((({as:e,children:r,sx:o=ct,visuallyHidden:t=!1,...a},n)=>{var i;const c=l.default.useRef(null);Ho(n,c);const{headingId:d,variant:s}=l.default.useContext(ni),{container:u}=l.default.useContext(Jl);"ActionMenu"===u&&pt(!1);const g={marginBottom:2,marginX:"full"===s?2:3};return l.default.createElement(dt,{isVisible:!t},l.default.createElement(ri,li({as:e,ref:c,id:null!==(i=a.id)&&void 0!==i?i:d,sx:Vr(g,o)},a),r))}));function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ci.apply(this,arguments)}ii.displayName="ActionList.Heading";const di=i.default.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(Qo),si=l.default.forwardRef((({variant:e="inset",selectionVariant:r,showDividers:o=!1,role:t,sx:a=ct,...n},i)=>{var c;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[s,u]=ka(n.children,{heading:ii}),g=Fo(),{listRole:b,listLabelledBy:v,selectionVariant:f,enableFocusZone:h}=l.default.useContext(Jl),p=s.heading?null!==(c=s.heading.props.id)&&void 0!==c?c:g:v,m=Ur(i);return Kn({disabled:!h,containerRef:m,bindKeys:Co.ArrowVertical|Co.HomeAndEnd|Co.PageUpDown}),l.default.createElement(ni.Provider,{value:{variant:e,selectionVariant:r||f,showDividers:o,role:t||b,headingId:g}},s.heading,l.default.createElement(di,ci({sx:Vr(d,a),role:t||b,"aria-labelledby":p},n,{ref:m}),u))}));function ui(){return ui=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ui.apply(this,arguments)}si.displayName="ActionList";const gi=l.default.createContext({groupHeadingId:void 0,selectionVariant:void 0}),bi=({title:e,variant:r="subtle",auxiliaryText:o,selectionVariant:t,role:a,sx:n={},...i})=>{var c;const d=Fo(),{role:s}=l.default.useContext(ni),[u,g]=ka(i.children,{groupHeading:vi});let b;var v;u.groupHeading&&(b=null!==(v=u.groupHeading.props.id)&&void 0!==v?v:d);return e&&(b=d),l.default.createElement(et,ui({as:"li",role:s?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...n}},i),l.default.createElement(gi.Provider,{value:{selectionVariant:t,groupHeadingId:b}},e&&!u.groupHeading?l.default.createElement(vi,{variant:r,auxiliaryText:o,_internalBackwardCompatibleTitle:e}):null,!e&&u.groupHeading?l.default.cloneElement(u.groupHeading):null,l.default.createElement(et,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":s?void 0:b,"aria-label":s?null!=e?e:null===(c=u.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:a||s&&"group"},u.groupHeading?g:i.children)))};bi.displayName="Group";const vi=({as:e,variant:r,_internalBackwardCompatibleTitle:o,auxiliaryText:t,children:a,sx:n=ct,...i})=>{const{variant:c,role:d}=l.default.useContext(ni),{groupHeadingId:s}=l.default.useContext(gi),u=void 0!==d&&"list"!==d&&void 0!==a&&void 0!==e;(void 0===d||"list"===d)&&void 0!==a&&void 0===e&&pt(!1),u&&pt(!1);const g={paddingY:"6px",paddingX:"full"===c?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===r&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return l.default.createElement(l.default.Fragment,null,d&&"list"!==d?l.default.createElement(et,ui({sx:g,role:"presentation","aria-hidden":"true"},i),l.default.createElement("span",{id:s},null!=o?o:a),t&&l.default.createElement("span",null,t)):l.default.createElement(l.default.Fragment,null,l.default.createElement(ri,ui({as:e||"h3",id:s,sx:Vr(g,n)},i),null!=o?o:a),t&&l.default.createElement("span",null,t)))};function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},fi.apply(this,arguments)}const hi=i.default.div.withConfig({displayName:"Truncate__StyledTruncate",componentId:"sc-23o1d2-0"})(["display:",";overflow:hidden;text-overflow:ellipsis;vertical-align:",";white-space:nowrap;"," "," ",";"],(e=>e.inline?"inline-block":"inherit"),(e=>e.inline?"top":"initial"),we,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),Qo),pi=l.default.forwardRef((function({as:e,expandable:r=!1,inline:o=!1,maxWidth:t=125,...a},n){return l.default.createElement(hi,fi({ref:n,as:e,expandable:r,inline:o,maxWidth:t},a))}));const mi=({variant:e="inline",sx:r={},...o})=>{const t={fontSize:0,lineHeight:"16px",flexGrow:1,flexBasis:0,minWidth:0,marginLeft:"block"===e?0:2,color:"fg.muted",'li[aria-disabled="true"] &':{color:"inherit"},'li[data-variant="danger"]:hover &, li[data-variant="danger"]:active &':{color:"inherit"}},{blockDescriptionId:a,inlineDescriptionId:n}=l.default.useContext(oi);return"block"===e?l.default.createElement(et,{as:"span",sx:Vr(t,r),id:a},o.children):l.default.createElement(pi,{id:n,sx:Vr(t,r),title:o.children,inline:!0,maxWidth:"100%"},o.children)};function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},yi.apply(this,arguments)}const xi=({sx:e={},...r})=>l.default.createElement(et,yi({as:"span",sx:Vr({height:ai,minWidth:Or("space.3"),maxWidth:ai,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},r));xi.displayName="LeadingVisualContainer";const Ci=({sx:e={},...r})=>{const{variant:o,disabled:t,inactive:a}=l.default.useContext(oi);return l.default.createElement(xi,yi({sx:Vr({color:ti(o,t,a).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:ti(o,t,a).hoverColor}},e)},r),r.children)};Ci.displayName="LeadingVisual";const wi=({sx:e={},...r})=>{const{variant:o,disabled:t,inactive:a}=l.default.useContext(oi);return l.default.createElement(et,yi({as:"span",sx:Vr({height:"20px",flexShrink:0,color:ti(o,t,a).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:ti(o,t,a).hoverColor}},e)},r),r.children)};wi.displayName="TrailingVisual";const ki=({selected:e})=>{const{selectionVariant:r,role:o}=l.default.useContext(ni),{selectionVariant:t}=l.default.useContext(gi);let a;if(a=void 0!==t?t:r,!a){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===a||"menu"===o)return l.default.createElement(xi,{"data-component":"ActionList.Selection"},e&&l.default.createElement(Tn,null));return l.default.createElement(xi,{"data-component":"ActionList.Selection"},l.default.createElement(et,{sx:{borderColor:e?"accent.fg":"neutral.emphasis",borderStyle:"solid",borderWidth:"1",borderRadius:"1",cursor:"pointer",display:"grid",height:"var(--base-size-16, 16px)",margin:"0",placeContent:"center",width:"var(--base-size-16, 16px)",backgroundColor:e?"accent.fg":"canvas.default",transition:e?"background-color, border-color 80ms cubic-bezier(0.33, 1, 0.68, 1)":"background-color, border-color 80ms cubic-bezier(0.32, 0, 0.67, 0) 0ms","::before":{width:"var(--base-size-16, 16px)",height:"var(--base-size-16, 16px)",visibility:e?"visible":"hidden",content:'""',backgroundColor:"fg.onEmphasis",transition:e?"visibility 0s linear 0s":"visibility 0s linear 230ms",clipPath:"inset(var(--base-size-16, 16px) 0 0 0)",maskImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=')",maskSize:"75%",maskRepeat:"no-repeat",maskPosition:"center",animation:e?"checkmarkIn 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards 80ms":"checkmarkOut 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards","@keyframes checkmarkIn":{from:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"},to:{clipPath:"inset(0 0 0 0)"}},"@keyframes checkmarkOut":{from:{clipPath:"inset(0 0 0 0)"},to:{clipPath:"inset(var(--base-size-16, 16px) 0 0 0)"}}}},"data-component":"ActionList.Checkbox"}))};ki.displayName="Selection";const Bi=e=>{const{if:r,...o}=e;return r?l.default.createElement(et,o,e.children):l.default.createElement(l.default.Fragment,null,e.children)};function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ei.apply(this,arguments)}const Ti=i.default.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(Qo),Si=({labelId:e,text:r,visualComponent:o})=>l.default.createElement(la,{text:r},l.default.createElement(et,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer",display:"flex"},"aria-labelledby":e},l.default.createElement(o,null,l.default.createElement(Bn,null))));Si.displayName="InactiveIndicator";const Ii=l.default.forwardRef((({variant:e="default",disabled:r=!1,inactiveText:o,selected:t,active:a=!1,onSelect:n,sx:i=ct,id:c,role:d,_PrivateItemWrapper:s,...u},g)=>{const[b,v]=ka(u.children,{leadingVisual:Ci,trailingVisual:wi,blockDescription:[mi,e=>"block"===e.variant],inlineDescription:[mi,e=>"block"!==e.variant]}),{variant:f,role:h,showDividers:p,selectionVariant:m}=l.default.useContext(ni),{selectionVariant:y}=l.default.useContext(gi),{container:x,afterSelect:C,selectionAttribute:w}=l.default.useContext(Jl),k=Boolean(o),B=k&&void 0===x,E=l.default.useCallback(((e,r)=>{"function"==typeof n&&n(e),e.defaultPrevented||"function"==typeof r&&r(e)}),[n]),T=y||m;let S;"ActionMenu"===x?S="single"===T?"menuitemradio":"multiple"===T?"menuitemcheckbox":"menuitem":"SelectPanel"===x&&"listbox"===h&&void 0!==T&&(S="option");const I=d||S;let M;"menuitemradio"===I||"menuitemcheckbox"===I?M="aria-checked":"option"===I&&(M="aria-selected");const N=w||M,{theme:O}=Ko(),A={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:ai,minHeight:5,marginX:"inset"===f?2:0,borderRadius:2,transition:"background 33.333ms linear",color:ti(e,r,k).color,cursor:"pointer","&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:t?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:t?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))"}},appearance:"none",background:"unset",border:"unset",width:"inset"===f?"calc(100% - 16px)":"100%",fontFamily:"unset",textAlign:"unset",marginY:"unset","@media (hover: hover) and (pointer: fine)":{":hover:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.hoverBg`,color:ti(e,r,k).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==O?void 0:O.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a.focus-visible, &:focus.focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==O?void 0:O.colors.accent.emphasis}`},":active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:ti(e,r,k).hoverColor}},"@media (forced-colors: active)":{":focus, &:focus-visible, > a.focus-visible":{outline:"solid 1px transparent !important"}},'[data-component="ActionList.Item--DividerContainer"]':{position:"relative"},'[data-component="ActionList.Item--DividerContainer"]::before':{content:'" "',display:"block",position:"absolute",width:"100%",top:"-7px",border:"0 solid",borderTopWidth:p?"1px":"0",borderColor:"var(--divider-color, transparent)"},":not(:first-of-type)":{"--divider-color":null==O?void 0:O.colors.actionListItem.inlineDivider},'[data-component="ActionList.Divider"] + &':{"--divider-color":"transparent !important"},"&:hover:not([aria-disabled]):not([data-inactive]), &:focus:not([aria-disabled]):not([data-inactive]), &[data-focus-visible-added]:not([aria-disabled]):not([data-inactive])":{"--divider-color":"transparent"},"&:hover:not([aria-disabled]):not([data-inactive]) + &, &[data-focus-visible-added] + li":{"--divider-color":"transparent"},...a?{fontWeight:"bold",bg:"actionListItem.default.selectedBg","&::after":{position:"absolute",top:"calc(50% - 12px)",left:-2,width:"4px",height:"24px",content:'""',bg:"accent.fg",borderRadius:2}}:{}},L=l.default.useCallback((e=>{r||k||E(e,C)}),[E,r,k,C]),j=l.default.useCallback((e=>{r||k||[" ","Enter"].includes(e.key)&&(" "===e.key&&(e.preventDefault(),e.defaultPrevented=!1),E(e,C))}),[E,r,k,C]),R=Fo(c),D=`${R}--label`,z=`${R}--inline-description`,P=`${R}--block-description`,_=k&&!B?`${R}--warning-message`:void 0,H=s||l.default.Fragment,F=N&&I&&["menuitemradio","menuitemcheckbox","option"].includes(I),V={onClick:L,onKeyPress:j,"aria-disabled":!!r||void 0,"data-inactive":!!k||void 0,tabIndex:r||B?void 0:0,"aria-labelledby":`${D} ${b.inlineDescription?z:""}`,"aria-describedby":b.blockDescription?[P,_].join(" "):_,...F&&{[N]:t},role:I,id:R},W=s?{role:I?"none":void 0}:V,Z=s?V:{};return l.default.createElement(oi.Provider,{value:{variant:e,disabled:r,inactive:Boolean(o),inlineDescriptionId:z,blockDescriptionId:P}},l.default.createElement(Ti,Ei({ref:g,sx:Vr(A,i),"data-variant":"danger"===e?e:void 0},W,u),l.default.createElement(H,Z,l.default.createElement(ki,{selected:t}),B&&b.leadingVisual?l.default.createElement(Si,{labelId:D,text:o,visualComponent:Ci}):b.leadingVisual,l.default.createElement(et,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},l.default.createElement(Bi,{if:Boolean(b.trailingVisual)||B&&!b.leadingVisual,sx:{display:"flex",flexGrow:1}},l.default.createElement(Bi,{if:!!b.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},l.default.createElement(et,{as:"span",id:D,sx:{flexGrow:b.inlineDescription?0:1,fontWeight:b.inlineDescription||b.blockDescription||a?"bold":"normal",marginBlockEnd:b.blockDescription?"4px":void 0,wordBreak:"break-word"}},v),b.inlineDescription),B&&!b.leadingVisual?l.default.createElement(Si,{labelId:D,text:o,visualComponent:wi}):b.trailingVisual),k&&x?l.default.createElement(et,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:_},o):null,b.blockDescription))))}));function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Mi.apply(this,arguments)}Ii.displayName="ActionList.Item";const Ni=j({hoverColor:{property:"color",scale:"colors"}}),Oi=i.default.a.withConfig({displayName:"Link__StyledLink",componentId:"sc-14289xe-0"})(["color:",";text-decoration:none;text-decoration:",";[data-a11y-link-underlines='true'] &[data-inline='true']{text-decoration:underline;}&:hover{text-decoration:",";",";}&:is(button){display:inline-block;padding:0;font-size:inherit;white-space:nowrap;cursor:pointer;user-select:none;background-color:transparent;border:0;appearance:none;}",";"],(e=>e.muted?Or("colors.fg.muted")(e):Or("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Ni:e.muted?`color: ${Or("colors.accent.fg")(e)}`:""),Qo),Ai=r.forwardRef((({as:e="a",...r},o)=>{const t=l.default.useRef(null);return Ho(o,t),l.default.createElement(Oi,Mi({as:e,"data-inline":r.inline},r,{ref:t}))}));function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Li.apply(this,arguments)}Ai.displayName="Link";const ji=l.default.forwardRef((({sx:e={},active:r,inactiveText:o,as:t,...a},n)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return l.default.createElement(Ii,{active:r,sx:{paddingY:0,paddingX:0},inactiveText:o,"data-inactive":!!o||void 0,_PrivateItemWrapper:({children:r,onClick:c,...d})=>o?l.default.createElement(et,Li({sx:Vr(i,e)},d),r):l.default.createElement(Ai,Li({as:t,sx:Vr(i,e)},d,a,{onClick:e=>{c&&c(e),a.onClick&&a.onClick(e)},ref:n}),r)},a.children)})),Ri=({sx:e={}})=>l.default.createElement(et,{as:"li","aria-hidden":"true",sx:Vr({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Or("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});Ri.displayName="Divider";const Di=Object.assign(si,{Group:bi,Item:Ii,LinkItem:ji,Divider:Ri,Description:mi,LeadingVisual:Ci,TrailingVisual:wi,Heading:ii,GroupHeading:vi});function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zi.apply(this,arguments)}const Pi={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},_i={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Hi=i.default.div.withConfig({displayName:"Overlay__StyledOverlay",componentId:"sc-51280t-0"})(["background-color:",";box-shadow:",";position:absolute;min-width:192px;max-width:",";height:",";max-height:",";width:",";border-radius:12px;overflow:",";animation:overlay-appear ","ms ",";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}@media (forced-colors:active){outline:solid 1px transparent;}",";"],Or("colors.canvas.overlay"),Or("shadows.overlay.shadow"),(e=>e.maxWidth&&_i[e.maxWidth]),(e=>Pi[e.height||"auto"]),(e=>e.maxHeight&&Pi[e.maxHeight]),(e=>_i[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Or("animation.easeOutCubic"),Qo),Fi=l.default.forwardRef((({onClickOutside:e,role:o="none",initialFocusRef:t,returnFocusRef:a,ignoreClickRefs:n,onEscape:i,visibility:c="visible",height:d="auto",width:s="auto",top:u,left:g,right:b,bottom:v,anchorSide:f,portalContainerName:h,preventFocusOnOpen:p,position:m,...y},x)=>{const C=r.useRef(null);Ho(x,C);const{theme:w}=Ko(),k=parseInt(Or("space.2")(w).replace("px","")),B=Or("animation.easeOutCubic")(w);jo({overlayRef:C,returnFocusRef:a,onEscape:i,ignoreClickRefs:n,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:p}),r.useEffect((()=>{var e;"initial"===d&&null!==(e=C.current)&&void 0!==e&&e.clientHeight&&(C.current.style.height=`${C.current.clientHeight}px`)}),[d]),Oo((()=>{var e;const{x:r,y:o}=function(e){return null!=e&&e.endsWith("bottom")?{x:0,y:-1}:null!=e&&e.endsWith("top")?{x:0,y:1}:null!=e&&e.endsWith("right")?{x:-1,y:0}:null!=e&&e.endsWith("left")?{x:1,y:0}:{x:0,y:0}}(f);(r||o)&&null!==(e=C.current)&&void 0!==e&&e.animate&&"hidden"!==c&&C.current.animate({transform:[`translate(${k*r}px, ${k*o}px)`,"translate(0, 0)"]},{duration:200,easing:B})}),[f,k,B,c]);const E=void 0===g&&void 0===b?{left:0}:{left:g};return l.default.createElement(Xn,{containerName:h},l.default.createElement(Hi,zi({height:d,width:s,role:o},y,{ref:C,style:{...E,right:b,top:u,bottom:v,position:m,"--styled-overlay-visibility":c}})))}));function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vi.apply(this,arguments)}const Wi=({renderAnchor:e,anchorRef:o,anchorId:t,children:a,open:n,onOpen:i,onClose:c,height:d,width:s,overlayProps:u,focusTrapSettings:g,focusZoneSettings:b,side:v="outside-bottom",align:f="start",alignmentOffset:h,anchorOffset:p})=>{const m=Ur(o),[y,x]=Ro(),C=Fo(t),w=r.useCallback((()=>null==c?void 0:c("click-outside")),[c]),k=r.useCallback((()=>null==c?void 0:c("escape")),[c]),B=r.useCallback((e=>{e.defaultPrevented||!n&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==i||i("anchor-key-press",e),e.preventDefault())}),[n,i]),E=r.useCallback((e=>{e.defaultPrevented||0!==e.button||(n?null==c||c("anchor-click"):null==i||i("anchor-click"))}),[n,i,c]),{position:T}=Lo({anchorElementRef:m,floatingElementRef:y,side:v,align:f,alignmentOffset:h,anchorOffset:p},[y.current]);return r.useEffect((()=>{!n&&y.current&&x(null)}),[n,y,x]),Kn({containerRef:y,disabled:!n||!T,...b}),mn({containerRef:y,disabled:!n||!T,...g}),l.default.createElement(l.default.Fragment,null,e&&e({ref:m,id:C,"aria-haspopup":"true","aria-expanded":n?"true":void 0,tabIndex:0,onClick:E,onKeyDown:B}),n?l.default.createElement(Fi,Vi({returnFocusRef:m,onClickOutside:w,ignoreClickRefs:[m],onEscape:k,ref:x,role:"none",visibility:T?"visible":"hidden",height:d,width:s,top:(null==T?void 0:T.top)||0,left:(null==T?void 0:T.left)||0,anchorSide:null==T?void 0:T.anchorSide},u),a):null)};function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Zi.apply(this,arguments)}Wi.displayName="AnchoredOverlay";const $i=l.default.createContext({renderAnchor:null,open:!1}),Ki=({anchorRef:e,open:r,onOpenChange:o,children:t})=>{const[a,n]=Do(r,o,!1),i=l.default.useCallback((()=>n(!0)),[n]),c=l.default.useCallback((()=>n(!1)),[n]),d=l.default.Children.toArray(t).find((e=>l.default.isValidElement(e)&&(e.type===Ui||e.type===Gi))),s=l.default.isValidElement(d)?d.props.id:void 0,u=Ur(e),g=Fo(s);let b=null;const v=l.default.Children.map(t,(e=>{if(e.type===la){const r=e.props.children;return r.type===Ui&&(b=o=>{const t=l.default.cloneElement(r,{...o});return l.default.cloneElement(e,{children:t,ref:u})}),null}if(e.type===Gi){const r=e.props.children;return void 0!==r&&r.type===la?null!==r.props.children&&(b=o=>{const t=r.props.children,a=l.default.cloneElement(t,{...o}),n=l.default.cloneElement(r,{children:a});return l.default.cloneElement(e,{children:n,ref:u})}):b=r=>l.default.cloneElement(e,r),null}return e.type===Ui?(b=r=>l.default.cloneElement(e,r),null):e}));return l.default.createElement($i.Provider,{value:{anchorRef:u,renderAnchor:b,anchorId:g,open:a,onOpen:i,onClose:c}},v)};Ki.displayName="Menu";const Gi=l.default.forwardRef((({children:e,...r},o)=>l.default.cloneElement(e,{...r,ref:o}))),Ui=l.default.forwardRef((({...e},r)=>l.default.createElement(Gi,{ref:r},l.default.createElement(ft,Zi({type:"button",trailingAction:Zn},e))))),qi=({children:e,align:o="start",side:t="outside-bottom","aria-labelledby":a,...n})=>{const{anchorRef:i,renderAnchor:c,anchorId:d,open:s,onOpen:u,onClose:g}=l.default.useContext($i),b=l.default.useRef(null);zo(s,g,b,i);const[v,f]=r.useState(null);return r.useEffect((()=>{if(i.current){const e=i.current.getAttribute("aria-labelledby");e&&f(e)}}),[i]),l.default.createElement(Wi,{anchorRef:i,renderAnchor:c,anchorId:d,open:s,onOpen:u,onClose:g,align:o,side:t,overlayProps:n,focusZoneSettings:{focusOutBehavior:"wrap"}},l.default.createElement("div",{ref:b},l.default.createElement(Jl.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:a||v||d,selectionAttribute:"aria-checked",afterSelect:g}},e)))};qi.displayName="Overlay",Ki.displayName="ActionMenu";const Yi=Object.assign(Ki,{Button:Ui,Anchor:Gi,Overlay:qi,Divider:Ri}),Xi=r.createContext(null);var Ji,Qi={exports:{}},ec={},rc=Symbol.for("react.element"),oc=Symbol.for("react.portal"),tc=Symbol.for("react.fragment"),ac=Symbol.for("react.strict_mode"),nc=Symbol.for("react.profiler"),lc=Symbol.for("react.provider"),ic=Symbol.for("react.context"),cc=Symbol.for("react.server_context"),dc=Symbol.for("react.forward_ref"),sc=Symbol.for("react.suspense"),uc=Symbol.for("react.suspense_list"),gc=Symbol.for("react.memo"),bc=Symbol.for("react.lazy"),vc=Symbol.for("react.offscreen");function fc(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case rc:switch(e=e.type){case tc:case nc:case ac:case sc:case uc:return e;default:switch(e=e&&e.$$typeof){case cc:case ic:case dc:case bc:case gc:case lc:return e;default:return r}}case oc:return r}}}Ji=Symbol.for("react.module.reference"),ec.ContextConsumer=ic,ec.ContextProvider=lc,ec.Element=rc,ec.ForwardRef=dc,ec.Fragment=tc,ec.Lazy=bc,ec.Memo=gc,ec.Portal=oc,ec.Profiler=nc,ec.StrictMode=ac,ec.Suspense=sc,ec.SuspenseList=uc,ec.isAsyncMode=function(){return!1},ec.isConcurrentMode=function(){return!1},ec.isContextConsumer=function(e){return fc(e)===ic},ec.isContextProvider=function(e){return fc(e)===lc},ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===rc},ec.isForwardRef=function(e){return fc(e)===dc},ec.isFragment=function(e){return fc(e)===tc},ec.isLazy=function(e){return fc(e)===bc},ec.isMemo=function(e){return fc(e)===gc},ec.isPortal=function(e){return fc(e)===oc},ec.isProfiler=function(e){return fc(e)===nc},ec.isStrictMode=function(e){return fc(e)===ac},ec.isSuspense=function(e){return fc(e)===sc},ec.isSuspenseList=function(e){return fc(e)===uc},ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tc||e===nc||e===ac||e===sc||e===uc||e===vc||"object"==typeof e&&null!==e&&(e.$$typeof===bc||e.$$typeof===gc||e.$$typeof===lc||e.$$typeof===ic||e.$$typeof===dc||e.$$typeof===Ji||void 0!==e.getModuleId)},ec.typeOf=fc,Qi.exports=ec;var hc=Qi.exports;function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},pc.apply(this,arguments)}const mc={small:"16px",medium:"32px",large:"64px"};function yc({size:e="medium",...r}){const o=mc[e];return l.default.createElement("svg",pc({height:o,width:o,viewBox:"0 0 16 16",fill:"none"},r),l.default.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),l.default.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}yc.displayName="Spinner";const xc=i.default(yc).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],Qo);xc.displayName="Spinner";const Cc=({children:e,hasLoadingIndicator:r,showLoadingIndicator:o,visualPosition:t})=>!e&&!r||"leading"===t&&!e&&!o?null:r?l.default.createElement("span",{className:"TextInput-icon"},l.default.createElement(et,{display:"flex",position:"relative"},e&&l.default.createElement(et,{sx:{visibility:o?"hidden":"visible"}},e),l.default.createElement(xc,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:o?"visible":"hidden",..."leading"===t?{left:0}:{right:0}}:{visibility:o?"visible":"hidden"},size:e?void 0:"small"}))):l.default.createElement("span",{className:"TextInput-icon"},e);Cc.displayName="TextInputInnerVisualSlot";const wc=ve({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),kc=ve({prop:"size",variants:{small:{"--inner-action-size":"20px",minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},medium:{"--inner-action-size":"24px"},large:{"--inner-action-size":"28px",px:2,py:"10px",height:"40px"}}}),Bc="12px",Ec=Bc,Tc=(e,r)=>e?r&&o.css(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Or("colors.accent.fg"),Or("colors.accent.fg")):o.css(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Or("colors.accent.fg"),Or("colors.accent.fg")),Sc=i.default.span.withConfig({displayName:"TextInputWrapper__TextInputBaseWrapper",componentId:"sc-1mqhpbi-0"})(["font-size:",";line-height:20px;color:",";vertical-align:middle;background-color:",";border:1px solid var(--control-borderColor-rest,",");border-radius:",";outline:none;box-shadow:",";display:inline-flex;align-items:stretch;min-height:32px;overflow:hidden;input,textarea{cursor:text;}select{cursor:pointer;}input,textarea,select{&::placeholder{color:var(---control-fgColor-placeholder,",");}}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Or("fontSizes.1"),Or("colors.fg.default"),Or("colors.canvas.default"),Or("colors.border.default"),Or("radii.2"),Or("shadows.primer.shadow.inset"),Or("colors.fg.muted"),(e=>Tc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Bc,(e=>e.contrast&&o.css(["background-color:",";"],Or("colors.canvas.inset"))),(e=>e.disabled&&o.css(["color:",";background-color:",";box-shadow:none;border-color:var(--control-borderColor-disabled,",");input,textarea,select{cursor:not-allowed;}"],Or("colors.primer.fg.disabled"),Or("colors.input.disabledBg"),Or("colors.border.default"))),(e=>e.monospace&&o.css(["font-family:",";"],Or("fonts.mono"))),(e=>"error"===e.validationStatus&&o.css(["border-color:",";",""],Or("colors.danger.emphasis"),Tc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&o.css(["border-color:",";"],Or("colors.success.emphasis"))),(e=>e.block&&o.css(["width:100%;display:flex;align-self:stretch;"])),Or("breakpoints.1"),Or("fontSizes.1"),me,xe,we,wc,kc,Qo),Ic=i.default(Sc).withConfig({displayName:"TextInputWrapper",componentId:"sc-1mqhpbi-1"})(["background-repeat:no-repeat;background-position:right 8px center;& > :not(:last-child){margin-right:",";}.TextInput-icon,.TextInput-action{align-self:center;color:",";flex-shrink:0;}"," ",";"],Or("space.2"),Or("colors.fg.muted"),(e=>o.css(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?Ec:0,e.hasTrailingVisual&&!e.hasTrailingAction?Ec:0,e.hasLeadingVisual?0:Ec,e.hasTrailingVisual||e.hasTrailingAction?0:Ec)),Qo);function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Mc.apply(this,arguments)}const Nc={paddingTop:"2px",paddingRight:"4px",paddingBottom:"2px",paddingLeft:"4px",position:"relative",'&[data-component="IconButton"]':{width:"var(--inner-action-size)",height:"var(--inner-action-size)"},"@media (pointer: coarse)":{":after":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}},Oc=({"aria-label":e,children:r,tooltipDirection:o})=>l.default.createElement(l.default.Fragment,null,e?l.default.createElement(la,{text:e,direction:o,sx:{display:"inline-block"}},r):r),Ac=r.forwardRef((({"aria-label":e,tooltipDirection:r,children:o,icon:t,sx:a,variant:n="invisible",...i},c)=>{const d="invisible"===n?Vr(Nc,a||{}):a||{};return(t&&!e||!o&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),l.default.createElement(et,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},t&&!o?l.default.createElement(la,{direction:null!=r?r:"s",text:null!=e?e:"",type:"label"},l.default.createElement(va,Mc({variant:n,type:"button",icon:t,size:"small",sx:d},i,{ref:c}))):l.default.createElement(Oc,{"aria-label":e},l.default.createElement(ft,Mc({variant:n,type:"button",sx:d},i,{ref:c}),o)))})),Lc=i.default.input.withConfig({displayName:"UnstyledTextInput",componentId:"sc-14ypya-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}",";"],Qo);function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},jc.apply(this,arguments)}const Rc=l.default.forwardRef((({icon:e,leadingVisual:o,trailingVisual:t,trailingAction:a,block:n,className:i,contrast:c,disabled:d,loading:s,loaderPosition:u="auto",monospace:g,validationStatus:b,sx:v,size:f,onFocus:h,onBlur:p,width:m,minWidth:y,maxWidth:x,variant:C,type:w="text",required:k,...B},E)=>{const[T,S]=r.useState(!1),I=Ur(E),M=ca(i,"TextInput-wrapper"),N=s&&("leading"===u||Boolean(o&&"trailing"!==u)),O=s&&("trailing"===u||Boolean("auto"===u&&!o)),A=r.useCallback((e=>{S(!0),h&&h(e)}),[h]),L=r.useCallback((e=>{S(!1),p&&p(e)}),[p]);return l.default.createElement(Ic,{block:n,className:M,validationStatus:b,contrast:c,disabled:d,monospace:g,sx:v,size:f,width:m,minWidth:y,maxWidth:x,variant:C,hasLeadingVisual:Boolean(o||N),hasTrailingVisual:Boolean(t||O),hasTrailingAction:Boolean(a),isInputFocused:T,onClick:()=>{var e;null===(e=I.current)||void 0===e||e.focus()},"aria-busy":Boolean(s)},e&&l.default.createElement(e,{className:"TextInput-icon"}),l.default.createElement(Cc,{visualPosition:"leading",showLoadingIndicator:N,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof o&&hc.isValidElementType(o)?l.default.createElement(o,null):o),l.default.createElement(Lc,jc({ref:I,disabled:d,onFocus:A,onBlur:L,type:w,"aria-required":k,"aria-invalid":"error"===b?"true":void 0},B,{"data-component":"input"})),l.default.createElement(Cc,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof t&&hc.isValidElementType(t)?l.default.createElement(t,null):t),a)}));Rc.displayName="TextInput";var Dc=Object.assign(Rc,{Action:Ac});function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},zc.apply(this,arguments)}const Pc=l.default.forwardRef((({as:e=Dc,onFocus:o,onBlur:t,onChange:a,onKeyDown:n,onKeyUp:i,onKeyPress:c,value:d,...s},u)=>{const g=r.useContext(Xi);if(null===g)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:b,autocompleteSuggestion:v="",id:f,inputRef:h,inputValue:p="",isMenuDirectlyActivated:m,setInputValue:y,setShowMenu:x,showMenu:C}=g;Ho(u,h);const[w,k]=r.useState(!0),{safeSetTimeout:B}=fn(),E=r.useCallback((e=>{o&&o(e),x(!0)}),[o,x]),T=r.useCallback((e=>{t&&t(e),B((()=>{document.activeElement!==h.current&&x(!1)}),0)}),[t,x,h,B]),S=r.useCallback((e=>{a&&a(e),y(e.currentTarget.value),C||x(!0)}),[a,y,x,C]),I=r.useCallback((e=>{var r;n&&n(e),"Backspace"===e.key&&k(!1),"Escape"===e.key&&null!==(r=h.current)&&void 0!==r&&r.value&&(y(""),h.current.value="")}),[h,y,k,n]),M=r.useCallback((e=>{i&&i(e),"Backspace"===e.key&&k(!0)}),[k,i]),N=r.useCallback((e=>{if(c&&c(e),C&&"Enter"===e.key&&b.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);b.current.dispatchEvent(r)}}),[b,C,c]);return r.useEffect((()=>{h.current&&(v||(h.current.value=p),w&&v&&(p||m)&&(h.current.value=v,0===v.toLowerCase().indexOf(p.toLowerCase())&&h.current.setSelectionRange(p.length,v.length)))}),[v,p,h,m]),r.useEffect((()=>{y(void 0!==d?d.toString():"")}),[d,y]),l.default.createElement(e,zc({onFocus:E,onBlur:T,onChange:S,onKeyDown:I,onKeyPress:N,onKeyUp:M,ref:h,"aria-controls":`${f}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":C,"aria-haspopup":"listbox","aria-owns":`${f}-listbox`,autoComplete:"off",id:f},s))}));function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_c.apply(this,arguments)}Pc.displayName="AutocompleteInput";const Hc={startMargin:0,endMargin:8};function Fc(e){const o=r.useContext(Xi);if(null===o)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:t,id:a,inputRef:n,inputValue:i="",scrollContainerRef:c,setAutocompleteSuggestion:d,setShowMenu:s,setInputValue:u,setIsMenuDirectlyActivated:g,setSelectedItemLength:b,showMenu:v}=o,{items:f,selectedItemIds:h,sortOnCloseFn:p,emptyStateText:m="No selectable options",addNewItem:y,loading:x,selectionVariant:C="single",filterFn:w,"aria-labelledby":k,onOpenChange:B,onSelectedChange:E,customScrollContainerRef:T}=e,S=r.useRef(null),I=r.useRef([]),[M,N]=r.useState(),[O,A]=r.useState(f.map((({id:e})=>e))),L=Fo(a),j=r.useMemo((()=>f.map((e=>({...e,role:"option",id:e.id,active:(null==M?void 0:M.id)===e.id,selected:"multiple"===C?h.includes(e.id):void 0,onAction:e=>{const r=h.filter((r=>r!==e.id)),o=h.includes(e.id)?r:[...r,e.id];var t,a;((E||(t=u,function(e){const{text:r=""}=Array.isArray(e)?e.slice(-1)[0]:e;t(r)}))(o.map((e=>function(e,r){return r.find((r=>r.id===e))}(e,f)))),"multiple"===C)?(u(""),d("")):(s(!1),null===(a=n.current)||void 0===a||a.setSelectionRange(n.current.value.length,n.current.value.length))}})))),[M,f,h,n,E,C,d,u,s]),R=r.useMemo((()=>O.reduce(((e,r,o)=>(e[r]=o,e)),{})),[O]),D=r.useMemo((()=>{return j.filter(w||(e=i,function(r,o){var t;return Boolean(null===(t=r.text)||void 0===t?void 0:t.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>R[e.id]-R[r.id]));var e}),[j,R,w,i]),z=r.useMemo((()=>[...D,...y?[{...y,role:"option",key:y.id,active:(null==M?void 0:M.id)===y.id,selected:"multiple"===C?h.includes(y.id):void 0,leadingVisual:()=>l.default.createElement(Hn,null),onAction:e=>{y.handleAddItem({...e,id:e.id||L,leadingVisual:void 0}),"multiple"===C&&(u(""),d(""))}}]:[]]),[D,y,d,C,u,L,M,h]);if(l.default.useEffect((()=>{I.current=z})),Kn({containerRef:S,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:n,onActiveDescendantChanged:(e,r,o)=>{if(t.current=e||null,e){const r=I.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));N(r),g(o)}e&&T&&T.current&&o?No(e,T.current,Hc):e&&c.current&&o&&No(e,c.current,Hc)}},[x]),r.useEffect((()=>{var e;null!=M&&null!==(e=M.text)&&void 0!==e&&e.startsWith(i)&&!h.includes(M.id)?d(M.text):d("")}),[M,i,h,d]),r.useEffect((()=>{const e=[...O].sort(p||(r=e=>((e,r)=>r.includes(e))(e,h),(e,o)=>r(e)===r(o)?0:r(e)?-1:1));var r;const o=e.length===O.length&&e.every(((e,r)=>e===O[r]));!1!==v||o||A(e),B&&B(Boolean(v))}),[v,B,h,p,O]),r.useEffect((()=>{h.length&&b(h.length)}),[h,b]),"single"===C&&h.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return l.default.createElement(dt,{isVisible:v},x?l.default.createElement(et,{p:3,display:"flex",justifyContent:"center"},l.default.createElement(xc,null)):l.default.createElement("div",{ref:S},z.length?l.default.createElement(Di,{selectionVariant:C,role:"listbox",id:`${a}-listbox`,"aria-labelledby":k},z.map((e=>{const{id:r,onAction:o,children:t,text:a,leadingVisual:n,trailingVisual:i,...c}=e;return l.default.createElement(Di.Item,_c({key:r,onSelect:()=>o(e)},c,{id:r,"data-id":r}),n&&l.default.createElement(Di.LeadingVisual,null,l.default.createElement(n,null)),null!=t?t:a,i&&l.default.createElement(Di.TrailingVisual,null,l.default.createElement(i,null)))}))):!1!==m&&null!==m?l.default.createElement(et,{p:3},m):null))}function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Vc.apply(this,arguments)}function Wc({menuAnchorRef:e,overlayProps:o,children:t,...a}){const n=r.useContext(Xi);if(null===n)throw new Error("AutocompleteContext returned null values");const i={...o,...a},{inputRef:c,scrollContainerRef:d,selectedItemLength:s,setShowMenu:u,showMenu:g=!1}=n,{floatingElementRef:b,position:v}=Lo({side:"outside-bottom",align:"start",anchorElementRef:e||c},[g,s]);Ho(d,b);const f=r.useCallback((()=>{u(!1)}),[u]);return"undefined"==typeof window?null:g?l.default.createElement(Fi,Vc({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:f,onEscape:f,ref:b,top:null==v?void 0:v.top,left:null==v?void 0:v.left,sx:{overflow:"auto"}},i),t):l.default.createElement(dt,{"aria-hidden":"true"},t)}Fc.displayName="AutocompleteMenu",Fc.displayName="AutocompleteMenu",Wc.displayName="AutocompleteOverlay";const Zc={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},$c=(e,r)=>{const{type:o,payload:t}=r;switch(o){case"inputValue":return{...e,inputValue:t};case"showMenu":return{...e,showMenu:t};case"isMenuDirectlyActivated":return{...e,isMenuDirectlyActivated:t};case"autocompleteSuggestion":return{...e,autocompleteSuggestion:t};case"selectedItemLength":return{...e,selectedItemLength:t};default:return e}},Kc=({children:e,id:o})=>{const t=r.useRef(null),a=r.useRef(null),n=r.useRef(null),[i,c]=r.useReducer($c,Zc),{inputValue:d,showMenu:s,autocompleteSuggestion:u,isMenuDirectlyActivated:g,selectedItemLength:b}=i,v=r.useCallback((e=>{c({type:"inputValue",payload:e})}),[]),f=r.useCallback((e=>{c({type:"showMenu",payload:e})}),[]),h=r.useCallback((e=>{c({type:"autocompleteSuggestion",payload:e})}),[]),p=r.useCallback((e=>{c({type:"isMenuDirectlyActivated",payload:e})}),[]),m=r.useCallback((e=>{c({type:"selectedItemLength",payload:e})}),[]),y=Fo(o);return l.default.createElement(Xi.Provider,{value:{activeDescendantRef:t,autocompleteSuggestion:u,id:y,inputRef:n,inputValue:d,isMenuDirectlyActivated:g,scrollContainerRef:a,selectedItemLength:b,setAutocompleteSuggestion:h,setInputValue:v,setIsMenuDirectlyActivated:p,setShowMenu:f,setSelectedItemLength:m,showMenu:s}},e)};Kc.displayName="Autocomplete";var Gc=Object.assign(Kc,{Context:Xi,Input:Pc,Menu:Fc,Overlay:Wc});const Uc={xsmall:{width:"320px"},small:{width:y.breakpoints[0]},medium:{width:y.breakpoints[1]},large:{width:y.breakpoints[2]},xlarge:{width:y.breakpoints[3]},xxlarge:{width:"1400px"}};function qc(e){return`@media screen and (min-width: ${e})`}const Yc=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(Uc.medium.width),Xc=qc(Uc.medium.width),Jc=qc(Uc.xxlarge.width);function Qc(e,r,o){if(Ca(e)){const t=e,a="narrow"in t?{[Yc]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[Xc]:{[r]:o(t.regular)}}:{},l="wide"in t?{[Jc]:{[r]:o(t.wide)}}:{};return function(e){if("narrow"in e&&"regular"in e&&"wide"in e){const r=Object.values(e);return r.every((e=>e===r[0]))}return!1}(t)?{[r]:o(t.narrow)}:function(e){return"regular"in e&&"wide"in e&&e.regular===e.wide}(t)?{...a,...n}:{...a,...n,...l}}return{[r]:o(e)}}function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ed.apply(this,arguments)}const rd=20,od=i.default.img.attrs((e=>({height:e.size,width:e.size}))).withConfig({displayName:"Avatar__StyledAvatar",componentId:"sc-2lv0r8-0"})(["display:inline-block;overflow:hidden;line-height:",";vertical-align:middle;border-radius:",";box-shadow:0 0 0 1px ",";height:var(--avatar-size);width:var(--avatar-size);",""],Or("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Or("colors.avatar.border"),Qo),td=l.default.forwardRef((function({alt:e="",size:r=20,square:o=!1,sx:t=ct,...a},n){const i=Ca(r)?Vr(Qc(r,"--avatar-size",(e=>`${e||rd}px`)),t):Vr({"--avatar-size":`${r}px`},t);return l.default.createElement(od,ed({ref:n,alt:e,size:r,square:o,sx:i},a))}));function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ad.apply(this,arguments)}const nd=i.default(td).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Or("shadows.avatar.childShadow")),ld=({children:e,...r})=>{const o=l.default.Children.map(e,((e,r)=>l.default.isValidElement(e)?0===r?l.default.cloneElement(e,{size:40}):l.default.createElement(nd,ad({bg:"canvas.default"},e.props,{size:20})):e));return l.default.createElement(et,ad({position:"relative",display:"inline-flex"},r),o)};ld.displayName="AvatarPair",ld.displayName="AvatarPair";const id=i.default.span.withConfig({displayName:"AvatarStack__AvatarStackWrapper",componentId:"sc-4pdg6v-0"})(["--avatar-border-width:1px;--avatar-two-margin:calc(var(--avatar-stack-size) * -0.55);--avatar-three-margin:calc(var(--avatar-stack-size) * -0.85);display:flex;position:relative;height:var(--avatar-stack-size);min-width:var(--avatar-stack-size);.pc-AvatarStackBody{display:flex;position:absolute;}.pc-AvatarItem{--avatar-size:var(--avatar-stack-size);flex-shrink:0;height:var(--avatar-stack-size);width:var(--avatar-stack-size);box-shadow:0 0 0 var(--avatar-border-width) ",";position:relative;overflow:hidden;&:first-child{margin-left:0;z-index:10;}&:nth-child(n + 2){margin-left:var(--avatar-two-margin);z-index:9;}&:nth-child(n + 3){margin-left:var(--avatar-three-margin);opacity:","%;z-index:8;}&:nth-child(n + 4){opacity:","%;z-index:7;}&:nth-child(n + 5){opacity:","%;z-index:6;}&:nth-child(n + 6){opacity:0;visibility:hidden;}}&.pc-AvatarStack--two{min-width:calc( var(--avatar-stack-size) + calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + var(--avatar-border-width) );}&.pc-AvatarStack--three{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) ) );}&.pc-AvatarStack--three-plus{min-width:calc( var(--avatar-stack-size) + calc( calc(var(--avatar-stack-size) + var(--avatar-two-margin)) + calc(var(--avatar-stack-size) + var(--avatar-three-margin)) * 2 ) );}&.pc-AvatarStack--right{justify-content:flex-end;.pc-AvatarItem{margin-left:0 !important;&:first-child{margin-right:0;}&:nth-child(n + 2){margin-right:var(--avatar-two-margin);}&:nth-child(n + 3){margin-right:var(--avatar-three-margin);}}.pc-AvatarStackBody{flex-direction:row-reverse;&:not(.pc-AvatarStack--disableExpand):hover{.pc-AvatarItem{margin-right:","!important;margin-left:0 !important;&:first-child{margin-right:0 !important;}}}}}.pc-AvatarStackBody:not(.pc-AvatarStack--disableExpand):hover{width:auto;.pc-AvatarItem{margin-left:",";opacity:100%;visibility:visible;"," transition:margin 0.2s ease-in-out,opacity 0.2s ease-in-out,visibility 0.2s ease-in-out,box-shadow 0.1s ease-in-out;&:first-child{margin-left:0;}}}.pc-AvatarStack--disableExpand{position:relative;}",";"],(e=>1===e.count?Or("colors.avatar.border"):Or("colors.canvas.default")),55,40,25,Or("space.1"),Or("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Or("colors.canvas.default")};`),Qo),cd=({children:e,alignRight:r,disableExpand:o,size:t,sx:a=ct})=>{const n=l.default.Children.count(e),i=ca({"pc-AvatarStack--two":2===n,"pc-AvatarStack--three":3===n,"pc-AvatarStack--three-plus":n>3,"pc-AvatarStack--right":r}),c=ca("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":o}),d=Vr(t?Ca(t)?Qc(t,"--avatar-stack-size",(e=>`${e||rd}px`)):{"--avatar-stack-size":`${t}px`}:Qc((()=>{const r={narrow:[],regular:[],wide:[]};return l.default.Children.toArray(e).reduce(((e,o)=>{if(!l.default.isValidElement(o))return e;for(const t of Object.keys(r))Ca(o.props.size)?r[t].push(o.props.size[t]||rd):r[t].push(o.props.size||rd),e[t]=Math.min(...r[t]);return e}),{narrow:rd,regular:rd,wide:rd})})(),"--avatar-stack-size",(e=>`${e}px`)),a);return l.default.createElement(id,{count:n,className:i,sx:d},l.default.createElement(et,{className:c}," ",(e=>l.default.Children.map(e,(e=>l.default.isValidElement(e)?l.default.cloneElement(e,{...e.props,className:ca(e.props.className,"pc-AvatarItem")}):e)))(e)))};cd.displayName="AvatarStack";const dd=i.default.a.withConfig({displayName:"BranchName",componentId:"sc-sg8jsy-0"})(["display:inline-block;padding:2px 6px;font-size:",";font-family:",";color:",";background-color:",";border-radius:",";text-decoration:none;",";"],Or("fontSizes.0"),Or("fonts.mono"),Or("colors.accent.fg"),Or("colors.accent.subtle"),Or("radii.2"),Qo),sd=i.default.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{font-size:",";content:'';display:inline-block;height:0.8em;margin:0 0.5em;border-right:0.1em solid;border-color:",";transform:rotate(15deg) translateY(0.0625em);}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Or("fontSizes.1"),Or("colors.fg.muted")),ud=i.default.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],Qo);function gd({className:e,children:r,sx:o}){const t=l.default.Children.map(r,(e=>l.default.createElement(sd,null,e)));return l.default.createElement(ud,{className:e,"aria-label":"Breadcrumbs",sx:o},l.default.createElement(et,{as:"ol",my:0,pl:0},t))}gd.displayName="Breadcrumbs";const bd=i.default.a.attrs((e=>({className:ca(e.selected&&"selected",e.className),"aria-current":e.selected?"page":null}))).withConfig({displayName:"Breadcrumbs__BreadcrumbsItem",componentId:"sc-9m4wsf-2"})(["color:",";display:inline-block;font-size:",";text-decoration:none;&:hover,&:focus{text-decoration:underline;}&.selected{color:",";pointer-events:none;}&.selected:focus{text-decoration:none;}",";"],Or("colors.accent.fg"),Or("fontSizes.1"),Or("colors.fg.default"),Qo);gd.displayName="Breadcrumbs",bd.displayName="Breadcrumbs.Item";var vd=Object.assign(gd,{Item:bd});const fd=Object.assign(gd,{Item:bd}),hd=i.default.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > *{margin-inline-end:-1px;position:relative;border-radius:0;:first-child{border-top-left-radius:",";border-bottom-left-radius:",";}:last-child{border-top-right-radius:",";border-bottom-right-radius:",";}:focus,:active,:hover{z-index:1;}}",";"],Or("radii.2"),Or("radii.2"),Or("radii.2"),Or("radii.2"),Qo),pd={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},md={top:"Left",right:"Top",bottom:"Left",left:"Top"};function yd(e,r,o){const t=pd[e].toLowerCase(),a=md[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const xd=Tr({prop:"bg",key:"colors"}),Cd=Tr({prop:"borderColor",key:"colors"}),wd=Tr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function kd(e){var r;const t=l.default.useContext(o.ThemeContext),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(r=e.theme)&&void 0!==r?r:t},{bg:n}=xd(a),{borderColor:i}=Cd(a),{borderWidth:c}=wd(a),{size:d=8,location:s="bottom"}=e,[u,g]=function(e){const[r,o]=e.split("-");return[r,o]}(s),b=md[u],v=[-d,0],f=[0,d],h=[d,0],p=`M${v}L${f}L${h}L${v}Z`,m=`M${v}L${f}L${h}`,y={top:`translate(${[d,2*d]}) rotate(180)`,right:`translate(${[0,d]}) rotate(-90)`,bottom:`translate(${[d,0]})`,left:`translate(${[2*d,d]}) rotate(90)`}[u];return l.default.createElement("svg",{width:2*d,height:2*d,style:{pointerEvents:"none",position:"absolute",...yd(u,g,d),[`margin${b}`]:g?null:-d},role:"presentation"},l.default.createElement("g",{transform:y},l.default.createElement("path",{d:p,fill:null==t?void 0:t.colors.canvas.default}),l.default.createElement("path",{d:p,fill:n}),l.default.createElement("path",{d:m,fill:"none",stroke:i,strokeWidth:c})))}function Bd(){return Bd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Bd.apply(this,arguments)}function Ed(e){const{size:r=32,as:o,icon:t,bg:a,...n}=e;return l.default.createElement(et,{as:o,bg:a,overflow:"hidden",borderWidth:0,size:r,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},l.default.createElement(et,Bd({display:"flex",as:o,size:r},n,{alignItems:"center",justifyContent:"center"}),l.default.createElement(t,{size:r})))}kd.displayName="Caret",kd.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Ed.displayName="CircleOcticon";const Td=r.createContext(null),Sd=Td.Provider;function Id(){var e;return null!==(e=r.useContext(Td))&&void 0!==e?e:{}}const Md=r.createContext({});function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Nd.apply(this,arguments)}const Od=i.default.input.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-1ga3qj3-0"})(["",";border-radius:",";transition:background-color,border-color 80ms cubic-bezier(0.33,1,0.68,1);&::before{width:var(--base-size-16,16px);height:var(--base-size-16,16px);visibility:hidden;content:'';background-color:",";transition:visibility 0s linear 230ms;clip-path:inset(var(--base-size-16,16px) 0 0 0);mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNzgwMyAwLjIxOTYyNUMxMS45MjEgMC4zNjA0MjcgMTIgMC41NTEzMDUgMTIgMC43NTAzMTNDMTIgMC45NDkzMjEgMTEuOTIxIDEuMTQwMTkgMTEuNzgwMyAxLjI4MUw0LjUxODYgOC41NDA0MkM0LjM3Nzc1IDguNjgxIDQuMTg2ODIgOC43NiAzLjk4Nzc0IDguNzZDMy43ODg2NyA4Ljc2IDMuNTk3NzMgOC42ODEgMy40NTY4OSA4LjU0MDQyTDAuMjAxNjIyIDUuMjg2MkMwLjA2ODkyNzcgNS4xNDM4MyAtMC4wMDMzMDkwNSA0Ljk1NTU1IDAuMDAwMTE2NDkzIDQuNzYwOThDMC4wMDM1NTIwNSA0LjU2NjQzIDAuMDgyMzg5NCA0LjM4MDgxIDAuMjIwMDMyIDQuMjQzMjFDMC4zNTc2NjUgNC4xMDU2MiAwLjU0MzM1NSA0LjAyNjgxIDAuNzM3OTcgNC4wMjMzOEMwLjkzMjU4NCA0LjAxOTk0IDEuMTIwOTMgNC4wOTIxNyAxLjI2MzM0IDQuMjI0ODJMMy45ODc3NCA2Ljk0ODM1TDEwLjcxODYgMC4yMTk2MjVDMTAuODU5NSAwLjA3ODk5MjMgMTEuMDUwNCAwIDExLjI0OTUgMEMxMS40NDg1IDAgMTEuNjM5NSAwLjA3ODk5MjMgMTEuNzgwMyAwLjIxOTYyNVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=');mask-size:75%;mask-repeat:no-repeat;mask-position:center;animation:checkmarkOut 80ms cubic-bezier(0.65,0,0.35,1) forwards;}&:checked,&:indeterminate{background:",";border-color:",";&::before{animation:checkmarkIn 80ms cubic-bezier(0.65,0,0.35,1) forwards 80ms;}}&:disabled{cursor:not-allowed;}&:checked{transition:background-color,border-color 80ms cubic-bezier(0.32,0,0.67,0) 0ms;&::before{visibility:visible;transition:visibility 0s linear 0s;}&:disabled{background-color:",";border-color:",";opacity:1;&::before{background-color:",";}}@media (forced-colors:active){background-color:canvastext;border-color:canvastext;}}&:indeterminate{background:",";&::before{mask-image:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMiIgdmlld0JveD0iMCAwIDEwIDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCAxQzAgMC40NDc3MTUgMC40NDc3MTUgMCAxIDBIOUM5LjU1MjI5IDAgMTAgMC40NDc3MTUgMTAgMUMxMCAxLjU1MjI4IDkuNTUyMjkgMiA5IDJIMUMwLjQ0NzcxNSAyIDAgMS41NTIyOCAwIDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K');visibility:visible;}}",";",";@keyframes checkmarkIn{from{clip-path:inset(var(--base-size-16,16px) 0 0 0);}to{clip-path:inset(0 0 0 0);}}@keyframes checkmarkOut{from{clip-path:inset(0 0 0 0);}to{clip-path:inset(var(--base-size-16,16px) 0 0 0);}}"],Ul,Or("radii.1"),Or("colors.fg.onEmphasis"),Or("colors.accent.fg"),Or("colors.accent.fg"),Or("colors.fg.muted"),Or("colors.fg.muted"),Or("colors.fg.onEmphasis"),Or("colors.accent.fg"),ot(),Qo),Ad=l.default.forwardRef((({checked:e,defaultChecked:o,indeterminate:t,disabled:a,onChange:n,sx:i,required:c,validationStatus:d,value:s,...u},g)=>{const b=Ur(g),v=r.useContext(Md);return Oo((()=>{b.current&&(b.current.indeterminate=t||!1)}),[t,e,b]),r.useEffect((()=>{const{current:e}=b;e&&(t?e.setAttribute("aria-checked","mixed"):e.setAttribute("aria-checked",e.checked?"true":"false"))})),l.default.createElement(Od,Nd({type:"checkbox",disabled:a,ref:b,checked:!t&&e,defaultChecked:o,sx:i,required:c,"aria-required":c?"true":"false","aria-invalid":"error"===d?"true":"false",onChange:e=>{v.onChange&&v.onChange(e),n&&n(e)},value:s,name:s},u))}));function Ld(){return Ld=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ld.apply(this,arguments)}Ad.displayName="Checkbox";const jd=i.default.select.withConfig({displayName:"Select__StyledSelect",componentId:"sc-li6bhs-0"})(["appearance:none;border-radius:inherit;border:0;color:currentColor;font-size:inherit;outline:none;width:100%;background-color:inherit;margin-top:1px;margin-left:1px;margin-bottom:1px;&:disabled{background-color:transparent;}@media screen and (forced-colors:active){&:disabled{background-color:-moz-combobox;}}"]),Rd=({className:e})=>l.default.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},l.default.createElement("path",{d:"m4.074 9.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.043 9H4.251a.25.25 0 0 0-.177.427ZM4.074 7.47 7.47 4.073a.25.25 0 0 1 .354 0L11.22 7.47a.25.25 0 0 1-.177.426H4.251a.25.25 0 0 1-.177-.426Z"}));Rd.displayName="ArrowIndicatorSVG";const Dd=i.default(Rd).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),zd=l.default.forwardRef((({block:e,children:r,contrast:o,disabled:t,placeholder:a,size:n,required:i,validationStatus:c,sx:d={},...s},u)=>l.default.createElement(Ic,{block:e,contrast:o,disabled:t,size:n,validationStatus:c,sx:Vr({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:t?"GrayText":"FieldText"}}},d)},l.default.createElement(jd,Ld({ref:u,required:i,disabled:t,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(a),defaultValue:null!=a?a:void 0},s),a&&l.default.createElement("option",{value:"",disabled:i,hidden:i},a),r),l.default.createElement(Dd,null)))),Pd=e=>l.default.createElement("option",e);Pd.displayName="Option";const _d=e=>l.default.createElement("optgroup",e);_d.displayName="OptGroup";var Hd=Object.assign(zd,{Option:Pd,OptGroup:_d}),Fd=R(oe,H,_,z,F,$,G,q,W,te,fe,he,pe),Vd=new RegExp("^("+Fd.propNames.join("|")+")$");function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Wd.apply(this,arguments)}const Zd={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},$d="medium",Kd=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),Gd=ve({prop:"size",variants:{small:{fontSize:0,height:Zd.small,lineHeight:Zd.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:Zd.medium,lineHeight:Zd.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:Zd.large,lineHeight:Zd.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:Zd.xlarge,lineHeight:Zd.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),Ud=i.default.span.withConfig({displayName:"TokenBase__StyledTokenBase",componentId:"sc-1ju9l7y-0"})(["align-items:center;border-radius:999px;cursor:",";display:inline-flex;font-weight:",";font-family:inherit;text-decoration:none;position:relative;white-space:nowrap;"," ",""],(e=>Kd(e)?"pointer":"auto"),Or("fontWeights.bold"),Gd,Qo),qd=l.default.forwardRef((({onRemove:e,onKeyDown:r,id:o,size:t=$d,...a},n)=>l.default.createElement(Ud,Wd({onKeyDown:o=>{r&&r(o),"Backspace"!==o.key&&"Delete"!==o.key||!e||e()},id:null==o?void 0:o.toString(),size:t},a,{ref:n}))));function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Yd.apply(this,arguments)}const Xd=ve({prop:"size",variants:{small:{height:Zd.small,width:Zd.small},medium:{height:Zd.medium,width:Zd.medium},large:{height:Zd.large,width:Zd.large},xlarge:{height:Zd.xlarge,width:Zd.xlarge}}}),Jd=e=>.75*parseInt(Zd[e||$d],10),Qd=i.default.span.withConfig({displayName:"_RemoveTokenButton__StyledTokenButton",componentId:"sc-urhpr1-0"})(["background-color:transparent;font-family:inherit;color:currentColor;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;user-select:none;appearance:none;text-decoration:none;padding:0;transform:",";align-self:baseline;border:0;border-radius:999px;"," &:hover,&:focus{background-color:",";}&:active{background-color:",";}"," ",""],(e=>`translate(${e.borderOffset}px, -${e.borderOffset}px)`),(e=>{switch(e.size){case"large":case"xlarge":return o.css(["margin-left:",";"],Or("space.2"));default:return o.css(["margin-left:",";"],Or("space.1"))}}),Or("colors.neutral.muted"),Or("colors.neutral.subtle"),Xd,Qo),es=({"aria-label":e,isParentInteractive:r,size:o=$d,...t})=>(delete t.children,l.default.createElement(Qd,Yd({as:r?"span":"button",tabIndex:r?-1:void 0,"aria-label":r?e:"Remove token",size:o},t),l.default.createElement($n,{size:Jd(o)})));es.displayName="RemoveTokenButton";const rs=i.default("span").withConfig({displayName:"_TokenTextContainer__TokenTextContainer",componentId:"sc-6l9eri-0"})(["flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:none;color:inherit;font:inherit;margin:0;padding:0;width:auto;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;line-height:normal;color:currentColor;text-decoration:none;&:is(a,button,[tabIndex='0']){cursor:pointer;&:after{content:'';position:absolute;left:0;top:0;right:0;bottom:0;}}"]);function os(){return os=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},os.apply(this,arguments)}const ts=({children:e,size:r})=>l.default.createElement(et,{sx:{flexShrink:0,lineHeight:0,marginRight:r&&["large","xlarge"].includes(r)?2:1}},e);ts.displayName="LeadingVisualContainer";const as=r.forwardRef(((e,r)=>{const{as:o,onRemove:t,id:a,leadingVisual:n,text:i,size:c=$d,hideRemoveButton:d,href:s,onClick:u,sx:g=ct,...b}=e,v=Kd(e)&&Boolean(t)&&!d,f={as:o,href:s,onClick:u},h=Vr({backgroundColor:"neutral.subtle",borderColor:e.isSelected?"fg.default":"border.subtle",borderStyle:"solid",borderWidth:"1px",color:e.isSelected?"fg.default":"fg.muted",maxWidth:"100%",paddingRight:!d&&t?0:void 0,...Kd(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},g);return l.default.createElement(qd,os({onRemove:t,id:null==a?void 0:a.toString(),text:i,size:c,sx:h},v?{}:f,b,{ref:r}),n?l.default.createElement(ts,{size:c},l.default.createElement(n,null)):null,l.default.createElement(rs,v?f:{},i),t&&l.default.createElement(dt,null," (press backspace or delete to remove)"),!d&&t?l.default.createElement(es,{borderOffset:1,onClick:e=>{e.stopPropagation(),t&&t()},size:c,isParentInteractive:Kd(e),"aria-hidden":v?"true":"false"}):null)}));function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ns.apply(this,arguments)}as.displayName="Token";const ls={small:0,medium:1,large:1,xlarge:2};function is({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:i,className:c,block:d,disabled:s,sx:u,tokens:g,onTokenRemove:b,tokenComponent:v=as,preventTokenWrapping:f=!1,size:h="xlarge",hideTokenRemoveButtons:p=!1,maxHeight:m,width:y,minWidth:x,maxWidth:C,validationStatus:w,variant:k,visibleTokenCount:B,...E},T){const{onBlur:S,onFocus:I,onKeyDown:M,...N}=function(e){var r={};for(var o in e)Vd.test(o)||(r[o]=e[o]);return r}(E),O=r.useRef(null);Ho(T,O);const[A,L]=r.useState(),[j,R]=r.useState(Boolean(B)),{containerRef:D}=Kn({focusOutBehavior:"wrap",bindKeys:Co.ArrowHorizontal|Co.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!A&&0!==A)return;let o=A+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>g.length||o<1?O.current||void 0:null===(r=D.current)||void 0===r?void 0:r.children[o]}},[A]),z=e=>{b(e),setTimeout((()=>{var e,r;const o=null===(e=D.current)||void 0===e?void 0:e.children[A||0],t=o&&ro(o)?o:Array.from((null===(r=D.current)||void 0===r?void 0:r.children)||[]).find((e=>ro(e)));var a;t?t.focus():null===(a=O.current)||void 0===a||a.focus()}),0)},P=()=>{L(void 0),setTimeout((()=>{var e;null!==(e=D.current)&&void 0!==e&&e.contains(document.activeElement)||!B||R(!0)}),0)},_=e=>{var r;"Escape"===e.key&&(null===(r=O.current)||void 0===r||r.focus())},H=e=>{e.stopPropagation()},F=j?g.slice(0,B):g,V=a&&("leading"===n||Boolean(o&&"trailing"!==n)),W=a&&("trailing"===n||"auto"===n&&!o);return l.default.createElement(Ic,{block:d,className:c,contrast:i,disabled:s,hasLeadingVisual:Boolean(o||V),hasTrailingVisual:Boolean(t||W),width:y,minWidth:x,maxWidth:C,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[h],validationStatus:w,variant:k,onClick:()=>{var e;null===(e=O.current)||void 0===e||e.focus()},sx:{paddingLeft:Ec,py:`calc(${Ec} / 2)`,...d?{display:"flex",width:"100%"}:{},...m?{maxHeight:m,overflow:"auto"}:{},...f?{overflow:"auto"}:{},...u}},e&&!o&&l.default.createElement(e,{className:"TextInput-icon"}),l.default.createElement(Cc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:V},"string"!=typeof o&&hc.isValidElementType(o)?l.default.createElement(o,null):o),l.default.createElement(et,{ref:D,display:"flex",sx:{alignItems:"center",flexWrap:f?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},l.default.createElement(et,{sx:{order:1,flexGrow:1}},l.default.createElement(Lc,ns({ref:O,disabled:s,onFocus:e=>{I&&I(e),L(void 0),B&&R(!1)},onBlur:e=>{S&&S(e),setTimeout((()=>{var e;null!==(e=D.current)&&void 0!==e&&e.contains(document.activeElement)||!B||R(!0)}),0)},onKeyDown:e=>{var r;if(M&&M(e),null!==(r=O.current)&&void 0!==r&&r.value)return;const o=g[g.length-1];"Backspace"===e.key&&o&&(z(o.id),O.current&&(O.current.value=`${o.text} `),setTimeout((()=>{var e;null===(e=O.current)||void 0===e||e.select()}),0))},type:"text",sx:{height:"100%"},"aria-invalid":"error"===w?"true":"false"},N))),F.map((({id:e,...r},o)=>{return l.default.createElement(v,ns({disabled:s,key:e,onFocus:(t=o,()=>{s||L(t)}),onBlur:P,onKeyUp:_,onClick:H,isSelected:A===o,onRemove:()=>{z(e)},hideRemoveButton:s||p,size:h,tabIndex:0},r));var t})),j&&g.length-F.length?l.default.createElement(Al,{color:"fg.muted",fontSize:ls[h]},"+",g.length-F.length):null),l.default.createElement(Cc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:W},"string"!=typeof t&&hc.isValidElementType(t)?l.default.createElement(t,null):t))}is.displayName="TextInputWithTokensInnerComponent";const cs=l.default.forwardRef(is);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ds.apply(this,arguments)}cs.displayName="TextInputWithTokens";const ss=i.default.textarea.withConfig({displayName:"Textarea__StyledTextarea",componentId:"sc-1lf8it-0"})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;resize:both;&:focus{outline:0;}"," "," ",";"],(e=>e.resize&&o.css(["resize:",";"],e.resize)),(e=>e.disabled&&o.css(["resize:none;"])),Qo),us=l.default.forwardRef((({value:e,disabled:r,sx:o,required:t,validationStatus:a,rows:n=7,cols:i=30,resize:c="both",block:d,contrast:s,...u},g)=>l.default.createElement(Sc,{sx:o,validationStatus:a,disabled:r,block:d,contrast:s},l.default.createElement(ss,ds({value:e,resize:c,"aria-required":t,"aria-invalid":"error"===a?"true":"false",ref:g,disabled:r,rows:n,cols:i},u)))));us.displayName="Textarea";const gs=({children:e,disabled:r,id:o,sx:t})=>l.default.createElement(Al,{color:r?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:o,sx:t},e);gs.displayName="InputCaption";const bs=({children:e,sx:r,id:o})=>{const{captionId:t,disabled:a}=Id();return l.default.createElement(gs,{id:o||t||"",disabled:a,sx:r},e)};function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},vs.apply(this,arguments)}bs.displayName="FormControlCaption";const fs=({children:e,disabled:r,htmlFor:o,id:t,required:a,visuallyHidden:n,sx:i,as:c="label",...d})=>l.default.createElement(dt,vs({isVisible:!n,as:c,htmlFor:o,id:t,sx:{fontWeight:"bold",fontSize:1,display:"block",color:r?"fg.muted":"fg.default",cursor:r?"not-allowed":"pointer",alignSelf:"flex-start",...i}},d),a?l.default.createElement(et,{display:"flex",as:"span"},l.default.createElement(et,{mr:1},e),l.default.createElement("span",null,"*")):e);fs.displayName="InputLabel";const hs=({as:e,children:r,htmlFor:o,id:t,visuallyHidden:a,sx:n,...i})=>{const{disabled:c,id:d,required:s}=Id(),u="legend"===e||"span"===e?{as:e,id:t,visuallyHidden:a,required:s,disabled:c,sx:n,...i}:{as:e,id:t,visuallyHidden:a,htmlFor:o||d,required:s,disabled:c,sx:n,...i};return l.default.createElement(fs,u,r)};hs.displayName="FormControlLabel";const ps=({children:e,sx:r})=>{const{disabled:o,captionId:t}=Id();return l.default.createElement(et,{color:o?"fg.muted":"fg.default",sx:{"> *":{minWidth:Or(t?"fontSizes.4":"fontSizes.2"),minHeight:Or(t?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...r},ml:2},e)};ps.displayName="FormControlLeadingVisual";const ms=({children:e,variant:r,sx:o,id:t})=>{const{validationMessageId:a}=Id();return l.default.createElement(Pl,{validationStatus:r,id:t||a||"",sx:o},e)};ms.displayName="FormControlValidation";const ys=l.default.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:i},c)=>{var d,s,u;const[g,b]=ka(e,{caption:bs,label:hs,leadingVisual:ps,validation:ms}),v=[Gc,Ad,Xl,Hd,Dc,cs,us],f=r.useContext(Ll).disabled||o,h=Fo(a),p=g.validation?`${h}-validationMessage`:void 0,m=g.caption?`${h}-caption`:void 0,y=null===(d=g.validation)||void 0===d?void 0:d.props.variant,x=b.find((e=>v.some((r=>l.default.isValidElement(e)&&e.type===r)))),C=l.default.isValidElement(x)&&x.props,w=l.default.isValidElement(x)&&(x.type===Ad||x.type===Xl);x&&(null!=C&&C.id&&console.warn("instead of passing the 'id' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.disabled&&console.warn("instead of passing the 'disabled' prop directly to the input component, it should be passed to the parent component, <FormControl>"),null!=C&&C.required&&console.warn("instead of passing the 'required' prop directly to the input component, it should be passed to the parent component, <FormControl>")),g.label||console.error(`The input field with the id ${h} MUST have a FormControl.Label child.\n\nIf you want to hide the label, pass the 'visuallyHidden' prop to the FormControl.Label component.`),w?(g.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),b.find((e=>{var r;return l.default.isValidElement(e)&&(null===(r=e.props)||void 0===r?void 0:r.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):g.leadingVisual&&console.warn("A leading visual is only rendered for a checkbox or radio form control. If you want to render a leading visual inside of your input, check if your input supports a leading visual.");const k=null===(s=g.label)||void 0===s?void 0:s.props.visuallyHidden;return l.default.createElement(Sd,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?l.default.createElement(et,{ref:c,display:"flex",alignItems:g.leadingVisual?"center":void 0,sx:i},l.default.createElement(et,{sx:{"> input":{marginLeft:0,marginRight:0}}},l.default.isValidElement(x)&&l.default.cloneElement(x,{id:h,disabled:f,"aria-describedby":m}),b.filter((e=>l.default.isValidElement(e)&&![Ad,Xl].some((r=>e.type===r))))),g.leadingVisual&&l.default.createElement(et,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:g.caption?Or("fontSizes.4"):Or("fontSizes.2"),minHeight:g.caption?Or("fontSizes.4"):Or("fontSizes.2"),fill:"currentColor"}},ml:2},g.leadingVisual),null===(u=g.label)||void 0===u||!u.props.visuallyHidden||g.caption?l.default.createElement(et,{display:"flex",flexDirection:"column",ml:2},g.label,g.caption):l.default.createElement(l.default.Fragment,null,g.label,g.caption)):l.default.createElement(et,{ref:c,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...i}},g.label,l.default.isValidElement(x)&&l.default.cloneElement(x,Object.assign({id:h,required:n,disabled:f,validationStatus:y,"aria-describedby":[p,m].filter(Boolean).join(" ")},x.props)),b.filter((e=>l.default.isValidElement(e)&&!v.some((r=>e.type===r)))),g.validation?l.default.createElement(Ol,{show:!0},g.validation):null,g.caption))}));var xs=Object.assign(ys,{Caption:bs,Label:hs,LeadingVisual:ps,Validation:ms});function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Cs.apply(this,arguments)}const ws=({children:e,disabled:r,onChange:o,...t})=>{const a=l.default.Children.toArray(e).filter((e=>l.default.isValidElement(e)&&e.type===xs)).map((e=>l.default.isValidElement(e)?e.props.children:[])).flat(),n=l.default.Children.toArray(a).filter((e=>l.default.isValidElement(e)&&e.type===Ad)).map((e=>l.default.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=Ro(n);return l.default.createElement(Md.Provider,{value:{disabled:r,onChange:e=>{o&&((e=>{const{value:r,checked:o}=e.currentTarget;c(o?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),o(i.current||[],e))}}},l.default.createElement(Wl,Cs({disabled:r},t),e))};ws.displayName="CheckboxGroup";var ks=Object.assign(ws,{Caption:jl,Label:Rl,Validation:_l});const Bs={small:56,medium:96,large:128},Es=i.default.div.withConfig({displayName:"CircleBadge",componentId:"sc-nywehb-0"})(["display:",";align-items:center;justify-content:center;background-color:",";border-radius:50%;box-shadow:",";",";",";"],(({inline:e=!1})=>e?"inline-flex":"flex"),Or("colors.canvas.default"),Or("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Bs[r];return{width:o,height:o}}),Qo),Ts=i.default(Cn).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);Ts.displayName="CircleBadge.Icon";var Ss=Object.assign(Es,{Icon:Ts});const Is=i.default.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],Qo);Is.displayName="Details";const Ms=()=>null;function Ns(e){const r=e;return r.tabIndex>=0&&!r.disabled&&function(e){return!e.hidden&&(!e.type||"hidden"!==e.type)&&(e.offsetWidth>0||e.offsetHeight>0)}(r)}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Os.apply(this,arguments)}const As=()=>null,Ls=i.default.div.withConfig({displayName:"Dialog__DialogBase",componentId:"sc-13rdxb7-0"})(["box-shadow:",";border-radius:",";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:",";width:",";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}",";"],Or("shadows.shadow.large"),Or("radii.2"),Or("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),Qo),js=i.default(et).withConfig({displayName:"Dialog__DialogHeaderBase",componentId:"sc-13rdxb7-1"})(["border-radius:"," "," 0px 0px;border-bottom:1px solid ",";display:flex;@media screen and (max-width:750px){border-radius:0px;}",";"],Or("radii.2"),Or("radii.2"),Or("colors.border.default"),Qo);function Rs({theme:e,children:r,backgroundColor:o="canvas.subtle",...t}){return l.default.Children.toArray(r).every((e=>"string"==typeof e))&&(r=l.default.createElement(Al,{fontSize:1,fontWeight:"bold"},r)),l.default.createElement(js,Os({theme:e,p:3,backgroundColor:o},t),r)}Rs.displayName="DialogHeader";const Ds=i.default.span.withConfig({displayName:"Dialog__Overlay",componentId:"sc-13rdxb7-2"})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:",";}"],Or("colors.primer.canvas.backdrop")),zs=r.forwardRef((({children:e,onDismiss:o=As,isOpen:t,initialFocusRef:a,returnFocusRef:n,...i},c)=>{const d=r.useRef(null),s=r.useRef(null);Ho(c,s);const u=r.useRef(null),g=()=>{o(),n&&n.current&&n.current.focus()},{getDialogProps:b}=function({modalRef:e,overlayRef:o,isOpen:t,onDismiss:a=Ms,initialFocusRef:n,closeButtonRef:l}){const i=r.useCallback((r=>{e.current&&o.current&&r.target instanceof Node&&!e.current.contains(r.target)&&o.current.contains(r.target)&&a()}),[a,e,o]);r.useEffect((()=>{if(t)return document.addEventListener("click",i),()=>{document.removeEventListener("click",i)}}),[t,i]),r.useEffect((()=>{t&&(n&&n.current?n.current.focus():l&&l.current&&l.current.focus())}),[t,n,l]);const c=r.useCallback(((r,o)=>{if(e.current){const t=Array.from(e.current.querySelectorAll("*")).filter(Ns);if(0===t.length)return;r.preventDefault();const a=document.activeElement;if(!a)return;const n=t.indexOf(a)+o,l=1===o?0:t.length-1;return t[n]||t[l]}}),[e]),d=r.useCallback((e=>{const r=e.shiftKey?-1:1,o=c(e,r);o&&o.focus()}),[c]),s=r.useCallback((e=>{"Tab"===e.key&&d(e)}),[d]);return Jr((e=>{t&&(a(),e.preventDefault())}),[t,a]),{getDialogProps:()=>({onKeyDown:s})}}({modalRef:s,onDismiss:g,isOpen:t,initialFocusRef:a,closeButtonRef:u,returnFocusRef:n,overlayRef:d});return t?l.default.createElement(l.default.Fragment,null,l.default.createElement(Ds,{ref:d}),l.default.createElement(Ls,Os({tabIndex:-1,ref:s,role:"dialog","aria-modal":"true"},i,b()),l.default.createElement(va,{icon:$n,ref:u,onClick:g,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));Rs.propTypes={...et.propTypes},Rs.displayName="Dialog.Header",zs.displayName="Dialog";var Ps=Object.assign(zs,{Header:Rs});function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},_s.apply(this,arguments)}const Hs=ve({variants:{default:{color:"fg.default",backgroundColor:"accent.subtle",borderColor:"accent.muted",svg:{color:"accent.fg"}},success:{color:"fg.default",backgroundColor:"success.subtle",borderColor:"success.muted",svg:{color:"success.fg"}},danger:{color:"fg.default",backgroundColor:"danger.subtle",borderColor:"danger.muted",svg:{color:"danger.fg"}},warning:{color:"fg.default",backgroundColor:"attention.subtle",borderColor:"attention.muted",svg:{color:"attention.fg"}}}}),Fs=i.default.div.withConfig({displayName:"Flash__StyledFlash",componentId:"sc-hzrzfc-0"})(["position:relative;color:",";padding:",";border-style:solid;border-width:",";border-radius:",";margin-top:",";p:last-child{margin-bottom:0;}svg{margin-right:",";}",";",";"],Or("colors.fg.default"),Or("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Or("radii.2")),(e=>e.full?"-1px":"0"),Or("space.2"),Hs,Qo),Vs=l.default.forwardRef((function({as:e,variant:r="default",...o},t){return l.default.createElement(Fs,_s({ref:t,as:e,variant:r},o))}));const Ws=i.default.header.withConfig({displayName:"Header",componentId:"sc-1wu4agm-0"})(["z-index:32;display:flex;padding:",";font-size:",";line-height:",";color:",";background-color:",";align-items:center;flex-wrap:nowrap;",";"],Or("space.3"),Or("fontSizes.1"),Or("lineHeights.default"),Or("colors.header.text"),Or("colors.header.bg"),Qo),Zs=i.default.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Or("space.3"),(({full:e})=>e&&o.css(["flex:auto;"])),Qo);Zs.displayName="Header.Item";const $s=i.default.a.attrs((({to:e})=>"string"==typeof e?{"aria-current":"page"}:{})).withConfig({displayName:"Header__HeaderLink",componentId:"sc-1wu4agm-2"})(["font-weight:",";color:",";white-space:nowrap;cursor:pointer;text-decoration:none;display:flex;align-items:center;&:hover,&:focus{color:",";}",";"],Or("fontWeights.bold"),Or("colors.header.logo"),Or("colors.header.text"),Qo);$s.displayName="Header.Link";var Ks=Object.assign(Ws,{Link:$s,Item:Zs});function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Gs.apply(this,arguments)}const Us=i.default.span.withConfig({displayName:"Label__StyledLabel",componentId:"sc-1dgcne-0"})(["align-items:center;background-color:transparent;border-width:1px;border-radius:999px;border-style:solid;display:inline-flex;font-weight:",";font-size:",";line-height:1;white-space:nowrap;",";",";",";"],Or("fontWeights.bold"),Or("fontSizes.0"),ve({variants:{default:{borderColor:"border.default"},primary:{borderColor:"fg.default"},secondary:{borderColor:"border.muted",color:"fg.muted"},accent:{borderColor:"accent.emphasis",color:"accent.fg"},success:{borderColor:"success.emphasis",color:"success.fg"},attention:{borderColor:"attention.emphasis",color:"attention.fg"},severe:{borderColor:"severe.emphasis",color:"severe.fg"},danger:{borderColor:"danger.emphasis",color:"danger.fg"},done:{borderColor:"done.emphasis",color:"done.fg"},sponsors:{borderColor:"sponsors.emphasis",color:"sponsors.fg"}}}),ve({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),Qo),qs=l.default.forwardRef((function({as:e,size:r="small",variant:o="default",...t},a){return l.default.createElement(Us,Gs({as:e,size:r,variant:o,ref:a},t))}));function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ys.apply(this,arguments)}const Xs=i.default.div.withConfig({displayName:"LabelGroup__StyledLabelGroupContainer",componentId:"sc-6tqg8q-0"})(["display:flex;flex-wrap:nowrap;gap:",";line-height:1;max-width:100%;overflow:hidden;&[data-overflow='inline']{flex-wrap:wrap;}",";"],Or("space.1"),Qo),Js=i.default.div.withConfig({displayName:"LabelGroup__ItemWrapper",componentId:"sc-6tqg8q-1"})(["display:flex;align-items:center;min-height:28px;&.ItemWrapper--hidden{order:9999;pointer-events:none;visibility:hidden;}"]),Qs=({collapseButtonRef:e,collapseInlineExpandedChildren:r,expandButtonRef:o,hiddenItemIds:t,isOverflowShown:a,showAllTokensInline:n,totalLength:i})=>a?l.default.createElement(ft,{ref:e,onClick:r,size:"small",variant:"invisible"},"Show less"):t.length?l.default.createElement(ft,{ref:o,variant:"invisible",size:"small",onClick:n},l.default.createElement(dt,null,"Show all ",i),l.default.createElement("span",{"aria-hidden":"true"},"+",t.length)):null,eu=({children:e,closeOverflowOverlay:r,expandButtonRef:o,hiddenItemIds:t,isOverflowShown:a,openOverflowOverlay:n,overlayPaddingPx:i,overlayWidth:c,totalLength:d})=>t.length?l.default.createElement(Wi,{open:a,onOpen:n,onClose:r,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:o,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>l.default.createElement(ft,Ys({variant:"invisible",size:"small"},e,{ref:o}),l.default.createElement(dt,null,"Show all ",d),l.default.createElement("span",{"aria-hidden":"true"},"+",t.length)),focusZoneSettings:{disabled:!0}},l.default.createElement(et,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},l.default.createElement(et,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),l.default.createElement(va,{onClick:r,icon:$n,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,ru=({children:e,visibleChildCount:r,overflowStyle:o="overlay",sx:t})=>{const a=l.default.useRef(null),n=l.default.useRef(null),i=l.default.useRef(void 0),[c,d]=l.default.useState({}),[s,u]=l.default.useState(!1),[g,b]=l.default.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:v}=Ko(),f=parseInt(Or("space.2")(v),10),h=Object.keys(c).filter((e=>!c[e])),p=h.length&&"overlay"===o?((e,r,o)=>{var t;return o+e.right-((null===(t=r.current)||void 0===t?void 0:t.getBoundingClientRect().left)||0)})(g,a,f):void 0,m=l.default.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===g.width&&r.right===g.right||b(r),m.current=e}}),[g]),y=l.default.useCallback((e=>{var r;const o=(null===(r=a.current)||void 0===r?void 0:r.children)||[],t={};for(const r of o){const o=r.getAttribute("data-index");o&&(t[o]=parseInt(o,10)<e)}d(t)}),[]),x=l.default.useCallback((()=>u(!0)),[u]),C=l.default.useCallback((()=>{u(!1)}),[u]),w=l.default.useCallback((()=>{u(!1),r&&"number"==typeof r&&y(r),setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),10)}),[m,y,r]),k=l.default.useCallback((()=>{d({}),u(!0)}),[d,u]);return l.default.useEffect((()=>{if(r&&!s){if("auto"===r){const r=new IntersectionObserver((e=>{const r={};for(const o of e){const e=o.target.getAttribute("data-index");e&&(r[e]=o.isIntersecting)}d((e=>({...e,...r})))}),{root:a.current,rootMargin:`0px -${g.width}px 0px 0px`,threshold:1});for(const o of(null===(e=a.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}y(r)}}),[g,r,y,s]),l.default.useEffect((()=>{"overlay"!==o&&h.length&&(i.current=parseInt(h[0],10))}),[h,o,s]),l.default.useEffect((()=>{if("overlay"===o)return;const e=document.querySelector(`[data-index="${i.current}"]`),r=e?eo(e):null;var t;s&&(r?r.focus():null===(t=n.current)||void 0===t||t.focus())}),[o,s]),r?l.default.createElement(Xs,{ref:a,"data-overflow":"inline"===o&&s?"inline":void 0,sx:t},l.default.Children.map(e,((e,r)=>l.default.createElement(Js,{"data-index":r,className:h.includes(r.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===o?l.default.createElement(Qs,{collapseButtonRef:n,collapseInlineExpandedChildren:w,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,showAllTokensInline:k,totalLength:l.default.Children.toArray(e).length}):l.default.createElement(eu,{closeOverflowOverlay:C,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,openOverflowOverlay:x,overlayPaddingPx:f,overlayWidth:p,totalLength:l.default.Children.toArray(e).length},e)):l.default.createElement(Xs,{"data-overflow":"inline",sx:t},e)};function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},ou.apply(this,arguments)}ru.displayName="LabelGroup";const tu=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),au=i.default.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(Qo),nu=l.default.forwardRef((({children:e,...r},o)=>l.default.createElement(au,ou({},r,{ref:o}),l.default.createElement(Di,null,e))));nu.displayName="NavList";const lu=l.default.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=ct,...n},i)=>{const{depth:c}=l.default.useContext(du),d=l.default.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===su)),s=l.default.Children.toArray(o).filter((e=>!r.isValidElement(e)||e.type!==su));return!r.isValidElement(d)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),d&&r.isValidElement(d)?l.default.createElement(cu,{subNav:d,depth:c,defaultOpen:t,sx:a},s):l.default.createElement(Di.LinkItem,ou({ref:i,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:Vr(tu(c),a)},n),o)}));lu.displayName="NavList.Item";const iu=l.default.createContext({buttonId:"",subNavId:"",isOpen:!1});function cu({children:e,subNav:r,depth:o,defaultOpen:t,sx:a=ct}){var n;const i=Fo(),c=Fo(),[d,s]=l.default.useState(null!==(n=t||null)&&void 0!==n&&n),u=l.default.useRef(null),[g,b]=l.default.useState(!1);return Oo((()=>{if(u.current){u.current.querySelector("[aria-current]:not([aria-current=false])")&&(b(!0),s(!0))}}),[r,i]),l.default.createElement(iu.Provider,{value:{buttonId:i,subNavId:c,isOpen:d}},l.default.createElement(et,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},l.default.createElement(Di.Item,{as:"button",id:i,"aria-expanded":d,"aria-controls":c,active:!d&&g,onClick:()=>s((e=>!e)),sx:Vr({...tu(o),fontWeight:g?"bold":null},a)},e,l.default.createElement(Di.TrailingVisual,null,l.default.createElement(Cn,{icon:In,sx:{transform:d?"rotate(180deg)":"rotate(0deg)"}}))),l.default.createElement("div",{ref:u},r)))}cu.displayName="ItemWithSubNav";const du=l.default.createContext({depth:0}),su=({children:e,sx:r=ct})=>{const{buttonId:o,subNavId:t,isOpen:a}=l.default.useContext(iu),{depth:n}=l.default.useContext(du);return o&&t||console.error("NavList.SubNav must be a child of a NavList.Item"),n>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):l.default.createElement(du.Provider,{value:{depth:n+1}},l.default.createElement(et,{as:"ul",id:t,"aria-labelledby":o,sx:Vr({padding:0,margin:0,display:a?"block":"none"},r)},e))};su.displayName="SubNav",su.displayName="NavList.SubNav";const uu=Di.LeadingVisual;uu.displayName="NavList.LeadingVisual";const gu=Di.TrailingVisual;gu.displayName="NavList.TrailingVisual";const bu=Di.Divider;bu.displayName="NavList.Divider";const vu={},fu=({title:e,children:r,sx:o=vu,...t})=>l.default.createElement(l.default.Fragment,null,l.default.createElement(Di.Divider,{sx:{"&:first-child":{display:"none"}}}),l.default.createElement(Di.Group,ou({},t,{title:e,sx:o}),r));fu.displayName="NavList.Group";const hu=Object.assign(nu,{Item:lu,SubNav:su,LeadingVisual:uu,TrailingVisual:gu,Divider:bu,Group:fu}),pu=i.default.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Or("space.4"),Or("space.4"),Or("space.4"),Or("colors.border.default"),Qo);function mu(){return mu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},mu.apply(this,arguments)}const yu=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(xa),xu=i.default.a.withConfig({displayName:"Pagination__Page",componentId:"sc-cp45c9-0"})(["display:inline-block;min-width:32px;height:32px;padding:0.5rem calc((2rem - 1.25rem) / 2);font-style:normal;line-height:1;color:",";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:",";&:last-child{margin-right:0;}background-color:transparent;border-radius:",";transition:background-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;background-color:",";outline:0;transition-duration:0.1s;}",";&:active{border-color:",";}&[rel='prev'],&[rel='next']{color:",";}&[aria-current],&[aria-current]:hover{color:",";background-color:",";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:",";cursor:default;background-color:transparent;border-color:transparent;font-size:inherit;font-family:inherit;padding-top:inherit;padding-bottom:inherit;}&[aria-disabled],&[aria-disabled]:hover,&[role='presentation'],&[role='presentation']:hover{color:",";cursor:default;background-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:",";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:",";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"],Or("colors.fg.default"),Or("space.1"),Or("radii.2"),Or("colors.actionListItem.default.hoverBg"),ot(0),Or("colors.border.muted"),Or("colors.accent.fg"),Or("colors.fg.onEmphasis"),Or("colors.accent.emphasis"),Or("colors.primer.fg.disabled"),Or("colors.primer.fg.disabled"),Or("space.1"),Or("space.1"));function Cu({theme:e,pageCount:r,currentPage:o,onPageChange:t,hrefBuilder:a,marginPageCount:n,showPages:i,surroundingPageCount:c}){const d=l.default.useCallback((e=>r=>t(r,e)),[t]),s=l.default.useMemo((()=>function(e,r,o,t,a){const n=[];if(o){const o=[],l=r=>{r>=1&&r<=e&&o.push(r)};let i=r-a,c=r+a;if(i<1&&c>e)i=1,c=e;else if(i<1)for(;i<1;)i++,c++;else if(c>e)for(;c>e;)i--,c--;for(let r=1;r<=t;r++){const o=e-(r-1);r>=i?c++:l(r),o<=c?i--:l(o)}for(let e=i;e<=c;e++)l(e);const d=o.slice().sort(((e,r)=>e-r)).filter(((e,r,o)=>!r||e!==o[r-1]));for(let e=0;e<d.length;e++){const o=d[e],t=o===r,a=o-d[e-1],l=-1!=o-d[e+1];0===e?(1!==o&&n.push({type:"BREAK",num:1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:l})):1===a?n.push({type:"NUM",num:o,selected:t,precedesBreak:l}):(n.push({type:"BREAK",num:o-1}),n.push({type:"NUM",num:o,selected:t,precedesBreak:!1}))}const s=n[n.length-1];"NUM"===s.type&&s.num!==e&&n.push({type:"BREAK",num:e})}const l={type:"NEXT",num:r+1,disabled:r===e};return[{type:"PREV",num:r-1,disabled:1===r},...n,l]}(r,o,!!i,n,c)),[r,o,i,n,c]),u=l.default.useMemo((()=>s.map((r=>{const{props:o,key:t,content:n}=function(e,r,o){const t={};let a="",n="";switch(e.type){case"PREV":n="page-prev",a="Previous",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"prev",href:r(e.num),"aria-label":"Previous Page",onClick:o});break;case"NEXT":n="page-next",a="Next",e.disabled?Object.assign(t,{as:"button","aria-disabled":"true"}):Object.assign(t,{rel:"next",href:r(e.num),"aria-label":"Next Page",onClick:o});break;case"NUM":n=`page-${e.num}`,a=String(e.num),Object.assign(t,{href:r(e.num),"aria-label":`Page ${e.num}${e.precedesBreak?"...":""}`,onClick:o,"aria-current":e.selected?"page":void 0});break;case"BREAK":n=`page-${e.num}-break`,a="…",Object.assign(t,{as:"span",role:"presentation"})}return{props:t,key:n,content:a}}(r,a,d(r.num));return l.default.createElement(xu,mu({},o,{key:t,theme:e}),n)}))),[s,a,d,e]);return u}const wu=i.default.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(xa).map((e=>`\n @media (${xa[e]}) {\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:not(:first-child):not(:last-child) {\n display: none;\n }\n\n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:first-child {\n margin-inline-end: 0;\n }\n \n .TablePaginationSteps[data-hidden-viewport-ranges*='${e}'] > *:last-child {\n margin-inline-start: 0;\n }\n }\n `)).join(""),Qo);function ku({theme:e,pageCount:r,currentPage:o,onPageChange:t=Eu,hrefBuilder:a=Bu,marginPageCount:n=1,showPages:i=!0,surroundingPageCount:c=2,...d}){const s=Cu({theme:e,pageCount:r,currentPage:o,onPageChange:t,hrefBuilder:a,marginPageCount:n,showPages:i,surroundingPageCount:c});return l.default.createElement(wu,mu({"aria-label":"Pagination"},d,{theme:e}),l.default.createElement(et,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":yu(i).join(" ")},s))}function Bu(e){return`#${e}`}function Eu(){}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Tu.apply(this,arguments)}function Su(e){const r=l.default.useContext(o.ThemeContext),{bg:t,border:a,borderColor:n,theme:i,sx:c}=e,{caret:d,children:s,...u}=e,{bg:g,backgroundColor:b,...v}=c||{},f=i||r,h=t||g||b,p={bg:t||(null==c?void 0:c.bg)||(null==c?void 0:c.backgroundColor),borderColor:n||(null==c?void 0:c.borderColor),borderWidth:a,location:d,theme:f};return l.default.createElement(et,Tu({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},u,{sx:{...v,"--custom-bg":Or(`colors.${h}`)({theme:f}),backgroundImage:h?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${f.colors.canvas.default}, ${f.colors.canvas.default})`:void 0,position:"relative"}}),s,l.default.createElement(kd,p))}ku.displayName="Pagination",Su.displayName="PointerBox";const Iu=i.default.div.attrs((({className:e,caret:r="top"})=>({className:ca(e,`caret-pos--${r}`)}))).withConfig({displayName:"Popover",componentId:"sc-q9r75g-0"})(["position:",";z-index:100;display:",";",";"],(e=>e.relative?"relative":"absolute"),(e=>e.open?"block":"none"),Qo),Mu=i.default.div.withConfig({displayName:"Popover__PopoverContent",componentId:"sc-q9r75g-1"})(["border:1px solid ",";border-radius:",";position:relative;width:232px;margin-right:auto;margin-left:auto;padding:",";background-color:",";&::before,&::after{position:absolute;left:50%;display:inline-block;content:'';}&::before{top:-",";margin-left:-9px;border:"," solid transparent;border-bottom-color:",";}&::after{top:-14px;margin-left:-",";border:7px solid transparent;border-bottom-color:",";}",".caret-pos--bottom &,",".caret-pos--bottom-right &,",".caret-pos--bottom-left &{&::before,&::after{top:auto;border-bottom-color:transparent;}&::before{bottom:-",";border-top-color:",";}&::after{bottom:-14px;border-top-color:",";}}",".caret-pos--top-right &,",".caret-pos--bottom-right &{right:-9px;margin-right:0;&::before,&::after{left:auto;margin-left:0;}&::before{right:20px;}&::after{right:21px;}}",".caret-pos--top-left &,",".caret-pos--bottom-left &{left:-9px;margin-left:0;&::before,&::after{left:",";margin-left:0;}&::after{left:calc("," + 1px);}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &,",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before,&::after{top:50%;left:auto;margin-left:0;border-bottom-color:transparent;}&::before{margin-top:calc(("," + 1px) * -1);}&::after{margin-top:-",";}}",".caret-pos--right &,",".caret-pos--right-top &,",".caret-pos--right-bottom &{&::before{right:-",";border-left-color:",";}&::after{right:-14px;border-left-color:",";}}",".caret-pos--left &,",".caret-pos--left-top &,",".caret-pos--left-bottom &{&::before{left:-",";border-right-color:",";}&::after{left:-14px;border-right-color:",";}}",".caret-pos--right-top &,",".caret-pos--left-top &{&::before,&::after{top:",";}}",".caret-pos--right-bottom &,",".caret-pos--left-bottom &{&::before,&::after{top:auto;}&::before{bottom:",";}&::after{bottom:calc("," + 1px);}}",";"],Or("colors.border.default"),Or("radii.2"),Or("space.4"),Or("colors.canvas.overlay"),Or("space.3"),Or("space.2"),Or("colors.border.default"),Or("space.2"),Or("colors.canvas.overlay"),Iu,Iu,Iu,Or("space.3"),Or("colors.border.default"),Or("colors.canvas.overlay"),Iu,Iu,Iu,Iu,Or("space.4"),Or("space.4"),Iu,Iu,Iu,Iu,Iu,Iu,Or("space.2"),Or("space.2"),Iu,Iu,Iu,Or("space.3"),Or("colors.border.default"),Or("colors.canvas.overlay"),Iu,Iu,Iu,Or("space.3"),Or("colors.border.default"),Or("colors.canvas.overlay"),Iu,Iu,Or("space.4"),Iu,Iu,Or("space.3"),Or("space.3"),Qo);Mu.displayName="Popover.Content";var Nu=Object.assign(Iu,{Content:Mu});function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},Ou.apply(this,arguments)}const Au=o.keyframes(["from{mask-position:200%;}to{mask-position:0%;}"]),Lu=i.default.span.withConfig({displayName:"ProgressBar__Item",componentId:"sc-1jz8j7n-0"})(["width:",";background-color:",";@media (prefers-reduced-motion:no-preference){&[data-animated='true']{mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,0.65) 80%);mask-size:200%;animation:",";animation-duration:1s;animation-iteration-count:infinite;}}",";"],(e=>e.progress?`${e.progress}%`:0),Or("colors.success.emphasis"),Au,Qo);Lu.displayName="ProgressBar.Item";const ju={small:"5px",large:"10px",default:"8px"},Ru=i.default.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Or("colors.border.default"),Or("radii.1"),(e=>ju[e.barSize||"default"]),me,Qo),Du=r.forwardRef((({animated:e,progress:r,bg:o="success.emphasis",barSize:t="default",children:a,...n},i)=>{if(a&&r)throw new Error("You should pass `progress` or children, not both.");const c="string"==typeof r?parseInt(r,10):r,d={"aria-valuenow":c?Math.round(c):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!c&&100!==c};return l.default.createElement(Ru,Ou({ref:i,role:"progressbar",barSize:t},d,n),null!=a?a:l.default.createElement(Lu,{"data-animated":e,progress:r,sx:{backgroundColor:o}}))}));Du.displayName="ProgressBar";const zu=Object.assign(Du,{Item:Lu});var Pu,_u=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o},Hu=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)};const Fu="undefined"!=typeof Intl&&Intl.ListFormat||class{formatToParts(e){const r=[];for(const o of e)r.push({type:"element",value:o}),r.push({type:"literal",value:", "});return r.slice(0,-1)}},Vu=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],Wu={minimumIntegerDigits:2};class Zu{constructor(e,r={}){Pu.set(this,void 0);let o=String(r.style||"short");"long"!==o&&"short"!==o&&"narrow"!==o&&"digital"!==o&&(o="short");let t="digital"===o?"numeric":o;const a=r.hours||t;t="2-digit"===a?"numeric":a;const n=r.minutes||t;t="2-digit"===n?"numeric":n;const l=r.seconds||t;t="2-digit"===l?"numeric":l;const i=r.milliseconds||t;_u(this,Pu,{locale:e,style:o,years:r.years||"digital"===o?"short":o,yearsDisplay:"always"===r.yearsDisplay?"always":"auto",months:r.months||"digital"===o?"short":o,monthsDisplay:"always"===r.monthsDisplay?"always":"auto",weeks:r.weeks||"digital"===o?"short":o,weeksDisplay:"always"===r.weeksDisplay?"always":"auto",days:r.days||"digital"===o?"short":o,daysDisplay:"always"===r.daysDisplay?"always":"auto",hours:a,hoursDisplay:"always"===r.hoursDisplay||"digital"===o?"always":"auto",minutes:n,minutesDisplay:"always"===r.minutesDisplay||"digital"===o?"always":"auto",seconds:l,secondsDisplay:"always"===r.secondsDisplay||"digital"===o?"always":"auto",milliseconds:i,millisecondsDisplay:"always"===r.millisecondsDisplay?"always":"auto"},"f")}resolvedOptions(){return Hu(this,Pu,"f")}formatToParts(e){const r=[],o=Hu(this,Pu,"f"),t=o.style,a=o.locale;for(const[t,n]of Vu){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?Wu:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new Fu(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}Pu=new WeakMap;const $u=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Ku=["year","month","week","day","hour","minute","second","millisecond"];class Gu{constructor(e=0,r=0,o=0,t=0,a=0,n=0,l=0,i=0){this.years=e,this.months=r,this.weeks=o,this.days=t,this.hours=a,this.minutes=n,this.seconds=l,this.milliseconds=i,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new Gu(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(e){var r;if("string"==typeof e){const o=String(e).trim(),t=o.startsWith("-")?-1:1,a=null===(r=o.match($u))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new Gu(...a):new Gu}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new Gu(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(Uu(o,Gu.from(e)).getTime()-o),a=Math.abs(Uu(o,Gu.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new Zu(e,r).format(this)}}function Uu(e,r){const o=new Date(e);return o.setFullYear(o.getFullYear()+r.years),o.setMonth(o.getMonth()+r.months),o.setDate(o.getDate()+7*r.weeks+r.days),o.setHours(o.getHours()+r.hours),o.setMinutes(o.getMinutes()+r.minutes),o.setSeconds(o.getSeconds()+r.seconds),o}function qu(e,{relativeTo:r=Date.now()}={}){if(r=new Date(r),e.blank)return e;const o=e.sign;let t=Math.abs(e.years),a=Math.abs(e.months),n=Math.abs(e.weeks),l=Math.abs(e.days),i=Math.abs(e.hours),c=Math.abs(e.minutes),d=Math.abs(e.seconds),s=Math.abs(e.milliseconds);s>=900&&(d+=Math.round(s/1e3)),(d||c||i||l||n||a||t)&&(s=0),d>=55&&(c+=Math.round(d/60)),(c||i||l||n||a||t)&&(d=0),c>=55&&(i+=Math.round(c/60)),(i||l||n||a||t)&&(c=0),l&&i>=12&&(l+=Math.round(i/24)),!l&&i>=21&&(l+=Math.round(i/24)),(l||n||a||t)&&(i=0);const u=r.getFullYear();let g=r.getMonth();const b=r.getDate();if(l>=27||t+a+l){const e=new Date(r);e.setFullYear(u+t*o),e.setMonth(g+a*o),e.setDate(b+l*o);const i=e.getFullYear()-r.getFullYear(),c=e.getMonth()-r.getMonth(),d=Math.abs(Math.round((Number(e)-Number(r))/864e5)),s=Math.abs(12*i+c);d<27?(l>=6?(n+=Math.round(l/7),l=0):l=d,a=t=0):s<11?(a=s,t=0):(a=0,t=i*o),(a||t)&&(l=0),g=r.getMonth()}return t&&(a=0),n>=4&&(a+=Math.round(n/4)),(a||t)&&(n=0),l&&n&&!a&&!t&&(n+=Math.round(l/7),l=0),new Gu(t*o,a*o,n*o,l*o,i*o,c*o,d*o,s*o)}var Yu,Xu,Ju,Qu,eg,rg,og,tg,ag,ng,lg,ig=function(e,r,o,t){if("a"===o&&!t)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!t:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?t:"a"===o?t.call(e):t?t.value:r.get(e)},cg=function(e,r,o,t,a){if("m"===t)throw new TypeError("Private method is not writable");if("a"===t&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof r?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===t?a.call(e,o):a?a.value=o:r.set(e,o),o};const dg=globalThis.HTMLElement||null,sg=new Gu,ug=new Gu(0,0,0,0,0,1);class gg extends Event{constructor(e,r,o,t){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=e,this.newText=r,this.oldTitle=o,this.newTitle=t}}function bg(e){if(!e.date)return 1/0;if("duration"===e.format||"elapsed"===e.format){const r=e.precision;if("second"===r)return 1e3;if("minute"===r)return 6e4}const r=Math.abs(Date.now()-e.date.getTime());return r<6e4?1e3:r<36e5?6e4:36e5}const vg=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);const r=e.date;if(r&&r.getTime()){const r=bg(e),o=Date.now()+r;o<this.time&&(clearTimeout(this.timer),this.timer=setTimeout((()=>this.update()),r),this.time=o)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(const r of this.elements)e=Math.min(e,bg(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class fg extends dg{constructor(){super(...arguments),Yu.add(this),Xu.set(this,!1),Ju.set(this,!1),eg.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),lg.set(this,null)}static define(e="relative-time",r=customElements){return r.define(e,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","datetime","lang","title"]}get onRelativeTimeUpdated(){return ig(this,lg,"f")}set onRelativeTimeUpdated(e){ig(this,lg,"f")&&this.removeEventListener("relative-time-updated",ig(this,lg,"f")),cg(this,lg,"object"==typeof e||"function"==typeof e?e:null,"f"),"function"==typeof e&&this.addEventListener("relative-time-updated",e)}get second(){const e=this.getAttribute("second");if("numeric"===e||"2-digit"===e)return e}set second(e){this.setAttribute("second",e||"")}get minute(){const e=this.getAttribute("minute");if("numeric"===e||"2-digit"===e)return e}set minute(e){this.setAttribute("minute",e||"")}get hour(){const e=this.getAttribute("hour");if("numeric"===e||"2-digit"===e)return e}set hour(e){this.setAttribute("hour",e||"")}get weekday(){const e=this.getAttribute("weekday");return"long"===e||"short"===e||"narrow"===e?e:"datetime"===this.format&&""!==e?this.formatStyle:void 0}set weekday(e){this.setAttribute("weekday",e||"")}get day(){var e;const r=null!==(e=this.getAttribute("day"))&&void 0!==e?e:"numeric";if("numeric"===r||"2-digit"===r)return r}set day(e){this.setAttribute("day",e||"")}get month(){const e=this.format;let r=this.getAttribute("month");if(""!==r)return null!=r||(r="datetime"===e?this.formatStyle:"short"),"numeric"===r||"2-digit"===r||"short"===r||"long"===r||"narrow"===r?r:void 0}set month(e){this.setAttribute("month",e||"")}get year(){var e;const r=this.getAttribute("year");return"numeric"===r||"2-digit"===r?r:this.hasAttribute("year")||(new Date).getUTCFullYear()===(null===(e=this.date)||void 0===e?void 0:e.getUTCFullYear())?void 0:"numeric"}set year(e){this.setAttribute("year",e||"")}get timeZoneName(){const e=this.getAttribute("time-zone-name");if("long"===e||"short"===e||"shortOffset"===e||"longOffset"===e||"shortGeneric"===e||"longGeneric"===e)return e}set timeZoneName(e){this.setAttribute("time-zone-name",e||"")}get prefix(){var e;return null!==(e=this.getAttribute("prefix"))&&void 0!==e?e:"datetime"===this.format?"":"on"}set prefix(e){this.setAttribute("prefix",e)}get threshold(){const e=this.getAttribute("threshold");return e&&(r=e,$u.test(r))?e:"P30D";var r}set threshold(e){this.setAttribute("threshold",e)}get tense(){const e=this.getAttribute("tense");return"past"===e?"past":"future"===e?"future":"auto"}set tense(e){this.setAttribute("tense",e)}get precision(){const e=this.getAttribute("precision");return Ku.includes(e)?e:"micro"===this.format?"minute":"second"}set precision(e){this.setAttribute("precision",e)}get format(){const e=this.getAttribute("format");return"datetime"===e?"datetime":"relative"===e?"relative":"duration"===e?"duration":"micro"===e?"micro":"elapsed"===e?"elapsed":"auto"}set format(e){this.setAttribute("format",e)}get formatStyle(){const e=this.getAttribute("format-style");if("long"===e)return"long";if("short"===e)return"short";if("narrow"===e)return"narrow";const r=this.format;return"elapsed"===r||"micro"===r?"narrow":"datetime"===r?"short":"long"}set formatStyle(e){this.setAttribute("format-style",e)}get datetime(){return this.getAttribute("datetime")||""}set datetime(e){this.setAttribute("datetime",e)}get date(){const e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=(null==e?void 0:e.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){vg.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&cg(this,Xu,null!==o&&(this.date&&ig(this,Yu,"m",rg).call(this,this.date))!==o,"f"),ig(this,Ju,"f")||"title"===e&&ig(this,Xu,"f")||cg(this,Ju,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=ig(this,eg,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(ig(this,eg,"f").textContent=e);const a=Date.now();ig(this,Xu,"f")||(o=ig(this,Yu,"m",rg).call(this,t)||"",o&&this.setAttribute("title",o));const n=function(e,r="second",o=Date.now()){const t=e.getTime()-o;if(0===t)return new Gu;const a=Math.sign(t),n=Math.abs(t),l=Math.floor(n/1e3),i=Math.floor(l/60),c=Math.floor(i/60),d=Math.floor(c/24),s=Math.floor(d/30),u=Math.floor(s/12),g=Ku.indexOf(r)||Ku.length;return new Gu(g>=0?u*a:0,g>=1?(s-12*u)*a:0,0,g>=3?(d-30*s)*a:0,g>=4?(c-24*d)*a:0,g>=5?(i-60*c)*a:0,g>=6?(l-60*i)*a:0,g>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=ig(this,Yu,"m",og).call(this,n);let i=e;i="duration"===l?ig(this,Yu,"m",tg).call(this,n):"relative"===l?ig(this,Yu,"m",ag).call(this,n):ig(this,Yu,"m",ng).call(this,t),i?ig(this,eg,"f").textContent=i:this.shadowRoot===ig(this,eg,"f")&&this.textContent&&(ig(this,eg,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new gg(e,i,r,o)),"relative"===l||"duration"===l?vg.observe(this):vg.unobserve(this),cg(this,Ju,!1,"f")}}Xu=new WeakMap,Ju=new WeakMap,eg=new WeakMap,lg=new WeakMap,Yu=new WeakSet,Qu=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},rg=function(e){return new Intl.DateTimeFormat(ig(this,Yu,"a",Qu),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},og=function(e){const r=this.format;if("datetime"===r)return"datetime";if("duration"===r)return"duration";if("elapsed"===r)return"duration";if("micro"===r)return"duration";if(("auto"===r||"relative"===r)&&"undefined"!=typeof Intl&&Intl.RelativeTimeFormat){const r=this.tense;if("past"===r||"future"===r)return"relative";if(1===Gu.compare(e,this.threshold))return"relative"}return"datetime"},tg=function(e){const r=ig(this,Yu,"a",Qu),o=this.format,t=this.formatStyle,a=this.tense;let n=sg;"micro"===o?(e=qu(e),n=ug,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=ug)):("past"===a&&-1!==e.sign||"future"===a&&1!==e.sign)&&(e=n);const l=`${this.precision}sDisplay`;return e.blank?n.toLocaleString(r,{style:t,[l]:"always"}):e.abs().toLocaleString(r,{style:t})},ag=function(e){const r=new Intl.RelativeTimeFormat(ig(this,Yu,"a",Qu),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=sg),"past"===o&&-1!==e.sign&&(e=sg);const[t,a]=function(e,r){const o=qu(e,r);if(o.blank)return[0,"second"];for(const e of Ku){if("millisecond"===e)continue;const r=o[`${e}s`];if(r)return[r,e]}return[0,"second"]}(e);return"second"===a&&t<10?r.format(0,"second"):r.format(t,a)},ng=function(e){const r=new Intl.DateTimeFormat(ig(this,Yu,"a",Qu),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${r.format(e)}`.trim()};const hg="undefined"!=typeof globalThis?globalThis:window;try{hg.RelativeTimeElement=fg.define()}catch(mg){if(!(hg.DOMException&&mg instanceof DOMException&&"NotSupportedError"===mg.name||mg instanceof ReferenceError))throw mg}
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2018 Google LLC
|