@primer/react 36.7.2 → 36.8.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/dist/browser.esm.js +2 -2
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +3 -3
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Group.d.ts +1 -1
- package/lib/ActionList/Group.d.ts.map +1 -1
- package/lib/ActionList/Group.js +3 -3
- package/lib/ActionList/Heading.js +2 -2
- package/lib/ActionList/Item.js +2 -3
- package/lib/ActionList/LinkItem.js +0 -71
- package/lib/ActionList/List.d.ts +1 -26
- package/lib/ActionList/List.d.ts.map +1 -1
- package/lib/ActionList/List.js +2 -3
- package/lib/ActionList/Selection.d.ts +1 -1
- package/lib/ActionList/Selection.d.ts.map +1 -1
- package/lib/ActionList/Selection.js +2 -2
- package/lib/ActionList/index.d.ts +2 -2
- package/lib/ActionList/index.d.ts.map +1 -1
- package/lib/ActionList/shared.d.ts +22 -0
- package/lib/ActionList/shared.d.ts.map +1 -1
- package/lib/ActionList/shared.js +3 -0
- package/lib/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/lib/ButtonGroup/ButtonGroup.js +1 -1
- package/lib/Dialog/Dialog.d.ts +5 -0
- package/lib/Dialog/Dialog.d.ts.map +1 -1
- package/lib/Dialog/Dialog.js +24 -9
- package/lib/LabelGroup/LabelGroup.d.ts.map +1 -1
- package/lib/LabelGroup/LabelGroup.js +2 -65
- package/lib/drafts/MarkdownEditor/Toolbar.d.ts +2 -2
- package/lib/drafts/MarkdownEditor/Toolbar.d.ts.map +1 -1
- package/lib/drafts/MarkdownEditor/Toolbar.js +13 -42
- package/lib/drafts/MarkdownEditor/_SavedReplies.js +2 -2
- package/lib/drafts/MarkdownEditor/_ToolbarButton.d.ts +4 -0
- package/lib/drafts/MarkdownEditor/_ToolbarButton.d.ts.map +1 -0
- package/lib/drafts/MarkdownEditor/_ToolbarButton.js +42 -0
- package/lib/drafts/MarkdownEditor/index.js +2 -1
- package/lib-esm/ActionList/Group.d.ts +1 -1
- package/lib-esm/ActionList/Group.js +1 -1
- package/lib-esm/ActionList/Heading.js +1 -1
- package/lib-esm/ActionList/Item.js +1 -2
- package/lib-esm/ActionList/LinkItem.js +0 -71
- package/lib-esm/ActionList/List.d.ts +1 -26
- package/lib-esm/ActionList/List.js +2 -2
- package/lib-esm/ActionList/Selection.d.ts +1 -1
- package/lib-esm/ActionList/Selection.js +1 -1
- package/lib-esm/ActionList/index.d.ts +2 -2
- package/lib-esm/ActionList/shared.d.ts +22 -0
- package/lib-esm/ActionList/shared.js +3 -1
- package/lib-esm/ButtonGroup/ButtonGroup.js +1 -1
- package/lib-esm/Dialog/Dialog.d.ts +5 -0
- package/lib-esm/Dialog/Dialog.js +24 -9
- package/lib-esm/LabelGroup/LabelGroup.js +2 -65
- package/lib-esm/drafts/MarkdownEditor/Toolbar.d.ts +2 -2
- package/lib-esm/drafts/MarkdownEditor/Toolbar.js +2 -31
- package/lib-esm/drafts/MarkdownEditor/_SavedReplies.js +1 -1
- package/lib-esm/drafts/MarkdownEditor/_ToolbarButton.d.ts +4 -0
- package/lib-esm/drafts/MarkdownEditor/_ToolbarButton.js +36 -0
- package/lib-esm/drafts/MarkdownEditor/index.js +2 -1
- package/package.json +1 -1
package/dist/browser.esm.js
CHANGED
|
@@ -4,10 +4,10 @@ object-assign
|
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
6
|
*/
|
|
7
|
-
var R=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var P=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]))D.call(o,l)&&(a[l]=o[l]);if(R){t=R(o);for(var i=0;i<t.length;i++)z.call(o,t[i])&&(a[t[i]]=o[t[i]])}}return a},_=T(P),H=function(e,r){var o=_({},e,r);for(var t in e){var a;e[t]&&"object"==typeof r[t]&&_(o,((a={})[t]=_(e[t],r[t]),a))}return o},F={breakpoints:[40,52,64].map((function(e){return e+"em"}))},V=function(e){return"@media screen and (min-width: "+e+")"},W=function(e,r){return Z(r,e,e)},Z=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},$=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],g=Z(e.theme,d.scale,d.defaults);if("object"!=typeof s)_(n,d(s,g,e));else{if(o.breakpoints=!i&&o.breakpoints||Z(e.theme,"breakpoints",F.breakpoints),Array.isArray(s)){o.media=!i&&o.media||[null].concat(o.breakpoints.map(V)),n=H(n,K(o.media,d,g,s,e));continue}null!==s&&(n=H(n,G(o.breakpoints,d,g,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},K=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?_(n,((i={})[c]=_({},n[c],d),i)):_(n,d)})),n},G=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=V(i);_(n,((d={})[s]=_({},n[s],c),d))}else _(n,c)}return n},U=function(e){var r=e.properties,o=e.property,t=e.scale,a=e.transform,n=void 0===a?W: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},q=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?U(t):t:U({property:o,scale:o})})),$(r)},Y=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&&_(e,r.config)})),$(e)},X={width:{property:"width",scale:"sizes",transform:function(e,r){return Z(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},J=q(X),Q={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Q.bg=Q.backgroundColor;var ee=q(Q),re=q({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}),oe=q({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}),te={space:[0,4,8,16,32,64,128,256,512]},ae=q({gridGap:{property:"gridGap",scale:"space",defaultScale:te.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:te.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:te.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),ne={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"}};ne.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},ne.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},ne.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},ne.borderBottomColor={property:"borderBottomColor",scale:"colors"},ne.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},ne.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},ne.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},ne.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},ne.borderLeftColor={property:"borderLeftColor",scale:"colors"},ne.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},ne.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},ne.borderRightColor={property:"borderRightColor",scale:"colors"},ne.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var le=q(ne),ie={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};ie.bgImage=ie.backgroundImage,ie.bgSize=ie.backgroundSize,ie.bgPosition=ie.backgroundPosition,ie.bgRepeat=ie.backgroundRepeat;var ce=q(ie),de={space:[0,4,8,16,32,64,128,256,512]},se=q({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:de.space},right:{property:"right",scale:"space",defaultScale:de.space},bottom:{property:"bottom",scale:"space",defaultScale:de.space},left:{property:"left",scale:"space",defaultScale:de.space}}),ge={space:[0,4,8,16,32,64,128,256,512]},be=function(e){return"number"==typeof e&&!isNaN(e)},ve=function(e,r){if(!be(e))return Z(r,e,e);var o=e<0,t=Math.abs(e),a=Z(r,t,t);return be(a)?a*(o?-1:1):o?"-"+a:a},ue={};ue.margin={margin:{property:"margin",scale:"space",transform:ve,defaultScale:ge.space},marginTop:{property:"marginTop",scale:"space",transform:ve,defaultScale:ge.space},marginRight:{property:"marginRight",scale:"space",transform:ve,defaultScale:ge.space},marginBottom:{property:"marginBottom",scale:"space",transform:ve,defaultScale:ge.space},marginLeft:{property:"marginLeft",scale:"space",transform:ve,defaultScale:ge.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:ve,defaultScale:ge.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:ve,defaultScale:ge.space}},ue.margin.m=ue.margin.margin,ue.margin.mt=ue.margin.marginTop,ue.margin.mr=ue.margin.marginRight,ue.margin.mb=ue.margin.marginBottom,ue.margin.ml=ue.margin.marginLeft,ue.margin.mx=ue.margin.marginX,ue.margin.my=ue.margin.marginY,ue.padding={padding:{property:"padding",scale:"space",defaultScale:ge.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:ge.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:ge.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:ge.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:ge.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:ge.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:ge.space}},ue.padding.p=ue.padding.padding,ue.padding.pt=ue.padding.paddingTop,ue.padding.pr=ue.padding.paddingRight,ue.padding.pb=ue.padding.paddingBottom,ue.padding.pl=ue.padding.paddingLeft,ue.padding.px=ue.padding.paddingX,ue.padding.py=ue.padding.paddingY;var fe=q(ue.margin),he=q(ue.padding),pe=Y(fe,he),me=q({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function ye(){return ye=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},ye.apply(this,arguments)}var xe=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},Ce=[40,52,64].map((function(e){return e+"em"})),we={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},ke={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"},Be={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},Ee={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"},Te=function(e,r){if("number"!=typeof r||r>=0)return xe(e,r,r);var o=Math.abs(r),t=xe(e,o,o);return"string"==typeof t?"-"+t:-1*t},Se=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,r){var o;return ye({},e,((o={})[r]=Te,o))}),{}),Ie=function e(r){return function(o){void 0===o&&(o={});var t=ye({},we,{},o.theme||o),a={},n=function(e){return function(r){var o={},t=xe(r,"breakpoints",Ce),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=xe(ke,l,l),s=xe(Ee,d),g=xe(t,s,xe(t,d,{})),b=xe(Se,d,xe)(g,c,c);if(Be[d])for(var v=Be[d],u=0;u<v.length;u++)a[v[u]]=b;else a[d]=b}else a=ye({},a,{},e(xe(t,c))(t))}return a}},Me=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 Ie(Z(r,e,null))(o.theme)}:function(e,r){return Z(r,e,null)},o.scale=t||c,o.defaults=i;var d=((r={})[n]=o,r);return $(d)},Ne=Me({key:"buttons"}),Ae=Me({key:"textStyles",prop:"textStyle"}),Oe=Me({key:"colorStyles",prop:"colors"}),Le=J.width,je=J.height,Re=J.minWidth,De=J.minHeight,ze=J.maxWidth,Pe=J.maxHeight,_e=J.size,He=J.verticalAlign,Fe=J.display,Ve=J.overflow,We=J.overflowX,Ze=J.overflowY,$e=ee.opacity,Ke=re.fontSize,Ge=re.fontFamily,Ue=re.fontWeight,qe=re.lineHeight,Ye=re.textAlign,Xe=re.fontStyle,Je=re.letterSpacing,Qe=oe.alignItems,er=oe.alignContent,rr=oe.justifyItems,or=oe.justifyContent,tr=oe.flexWrap,ar=oe.flexDirection,nr=oe.flex,lr=oe.flexGrow,ir=oe.flexShrink,cr=oe.flexBasis,dr=oe.justifySelf,sr=oe.alignSelf,gr=oe.order,br=ae.gridGap,vr=ae.gridColumnGap,ur=ae.gridRowGap,fr=ae.gridColumn,hr=ae.gridRow,pr=ae.gridAutoFlow,mr=ae.gridAutoColumns,yr=ae.gridAutoRows,xr=ae.gridTemplateColumns,Cr=ae.gridTemplateRows,wr=ae.gridTemplateAreas,kr=ae.gridArea,Br=le.borderWidth,Er=le.borderStyle,Tr=le.borderColor,Sr=le.borderTop,Ir=le.borderRight,Mr=le.borderBottom,Nr=le.borderLeft,Ar=le.borderRadius,Or=ce.backgroundImage,Lr=ce.backgroundSize,jr=ce.backgroundPosition,Rr=ce.backgroundRepeat,Dr=se.zIndex,zr=se.top,Pr=se.right,_r=se.bottom,Hr=se.left,Fr=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]=U({properties:i,property:o||r,scale:a,defaultScale:l,transform:n}),t&&(c[t]=c[r]),$(c)},Vr=Object.freeze({__proto__:null,alignContent:er,alignItems:Qe,alignSelf:sr,background:ce,backgroundImage:Or,backgroundPosition:jr,backgroundRepeat:Rr,backgroundSize:Lr,border:le,borderBottom:Mr,borderColor:Tr,borderLeft:Nr,borderRadius:Ar,borderRight:Ir,borderStyle:Er,borderTop:Sr,borderWidth:Br,borders:le,bottom:_r,boxShadow:me,buttonStyle:Ne,color:ee,colorStyle:Oe,compose:Y,createParser:$,createStyleFunction:U,display:Fe,flex:nr,flexBasis:cr,flexDirection:ar,flexGrow:lr,flexShrink:ir,flexWrap:tr,flexbox:oe,fontFamily:Ge,fontSize:Ke,fontStyle:Xe,fontWeight:Ue,get:Z,grid:ae,gridArea:kr,gridAutoColumns:mr,gridAutoFlow:pr,gridAutoRows:yr,gridColumn:fr,gridColumnGap:vr,gridGap:br,gridRow:hr,gridRowGap:ur,gridTemplateAreas:wr,gridTemplateColumns:xr,gridTemplateRows:Cr,height:je,justifyContent:or,justifyItems:rr,justifySelf:dr,layout:J,left:Hr,letterSpacing:Je,lineHeight:qe,margin:fe,maxHeight:Pe,maxWidth:ze,minHeight:De,minWidth:Re,opacity:$e,order:gr,overflow:Ve,overflowX:We,overflowY:Ze,padding:he,position:se,right:Pr,shadow:me,size:_e,space:pe,style:Fr,system:q,textAlign:Ye,textShadow:me,textStyle:Ae,top:zr,typography:re,variant:Me,verticalAlign:He,width:Le,zIndex:Dr});const{get:Wr,compose:Zr,system:$r}=Vr,Kr=e=>{return r=e,void 0===(o=Wr(j,e))&&(o=null),function(e){return Z(e.theme,r,o)};var r,o},Gr=Zr(pe,ee,Fe),Ur=Zr(re,$r({whiteSpace:{property:"whiteSpace"}}));Zr(le,me);var qr=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===Yr}(e)}(e)};var Yr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?oo((o=e,Array.isArray(o)?[]:{}),e,r):e;var o}function Jr(e,r,o){return e.concat(r).map((function(e){return Xr(e,o)}))}function Qr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return Object.propertyIsEnumerable.call(e,r)})):[]}(e))}function eo(e,r){try{return r in e}catch(e){return!1}}function ro(e,r,o){var t={};return o.isMergeableObject(e)&&Qr(e).forEach((function(r){t[r]=Xr(e[r],o)})),Qr(r).forEach((function(a){(function(e,r){return eo(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(eo(e,a)&&o.isMergeableObject(r[a])?t[a]=function(e,r){if(!r.customMerge)return oo;var o=r.customMerge(e);return"function"==typeof o?o:oo}(a,o)(e[a],r[a],o):t[a]=Xr(r[a],o))})),t}function oo(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||Jr,o.isMergeableObject=o.isMergeableObject||qr,o.cloneUnlessOtherwiseSpecified=Xr;var t=Array.isArray(r);return t===Array.isArray(e)?t?o.arrayMerge(e,r,o):ro(e,r,o):Xr(r,o)}oo.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return oo(e,o,r)}),{})};var to=T(oo);const ao="light",no="dark",lo=r.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),io=({children:e,...o})=>{var t,a,n,l,i,c,d,s;const{theme:g,colorMode:b,dayScheme:v,nightScheme:u}=co(),f=null!==(t=null!==(a=o.theme)&&void 0!==a?a:g)&&void 0!==t?t:j,{resolvedServerColorMode:h}=(()=>{try{var e;const r=null===(e=document.getElementById("__PRIMER_DATA__"))||void 0===e?void 0:e.textContent;if(r)return JSON.parse(r)}catch(e){}return{}})(),m=r.useRef(h),[y,x]=r.useState(null!==(n=null!==(l=o.colorMode)&&void 0!==l?l:b)&&void 0!==n?n:"day"),[C,k]=r.useState(null!==(i=null!==(c=o.dayScheme)&&void 0!==c?c:v)&&void 0!==i?i:ao),[B,E]=r.useState(null!==(d=null!==(s=o.nightScheme)&&void 0!==s?s:u)&&void 0!==d?d:no),T=function(){const[e,o]=r.useState(go);return r.useEffect((()=>{var e,r;const t=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function a(e){return e?"night":"day"}function n(e){const r=e.matches;o(a(r))}if(t){const e=t.matches;if(o(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}(),S=m.current||bo(y,T),I=function(e,r,o){switch(e){case"day":case"light":return r;case"dark":case"night":return o}}(S,C,B),{resolvedTheme:M,resolvedColorScheme:N}=r.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:to(e,e.colorSchemes[o]),resolvedColorScheme:o}}return{resolvedTheme:to(e,e.colorSchemes[r]),resolvedColorScheme:r}}(f,I)),[f,I]);return r.useEffect((function(){const e=bo(y,T);m.current&&(m.current!==e&&window.setTimeout((()=>{w.flushSync((()=>{x(e)})),x(y)})),m.current=null)}),[y,T]),r.useEffect((()=>{var e,r;x(null!==(e=null!==(r=o.colorMode)&&void 0!==r?r:b)&&void 0!==e?e:"day")}),[o.colorMode,b]),r.useEffect((()=>{var e,r;k(null!==(e=null!==(r=o.dayScheme)&&void 0!==r?r:v)&&void 0!==e?e:ao)}),[o.dayScheme,v]),r.useEffect((()=>{var e,r;E(null!==(e=null!==(r=o.nightScheme)&&void 0!==r?r:u)&&void 0!==e?e:no)}),[o.nightScheme,u]),r.createElement(lo.Provider,{value:{theme:M,colorScheme:I,colorMode:y,resolvedColorMode:S,resolvedColorScheme:N,dayScheme:C,nightScheme:B,setColorMode:x,setDayScheme:k,setNightScheme:E}},r.createElement(p,{theme:M},e,o.preventSSRMismatch?r.createElement("script",{type:"application/json",id:"__PRIMER_DATA__",dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:S})}}):null))};function co(){return r.useContext(lo)}function so(e,r){var o;const{colorScheme:t=""}=co();return null!==(o=e[t])&&void 0!==o?o:r}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 bo(e,r){return"auto"===e?r:e}function vo(){return vo=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},vo.apply(this,arguments)}io.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 g(e){n(e.target)&&(r||l(e.target))&&i(e.target)}function b(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 v(e){"hidden"===document.visibilityState&&(o&&(r=!0),u())}function u(){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",v,!0),u(),e.addEventListener("focus",g,!0),e.addEventListener("blur",b,!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 uo=m(["*{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)),fo=h.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Ur,Gr);function ho(e){const{children:o,color:t="fg.default",fontFamily:a="normal",lineHeight:n="default",...l}=e,{colorScheme:i,dayScheme:c,nightScheme:d}=co();return r.createElement(fo,vo({},l,{color:t,fontFamily:a,lineHeight:n,"data-portal-root":!0,"data-color-mode":null!=i&&i.includes("dark")?"dark":"light","data-light-theme":c,"data-dark-theme":d}),r.createElement(uo,{colorScheme:null!=i&&i.includes("dark")?"dark":"light"}),o)}ho.displayName="BaseStyles";const po=e=>Ie(e.sx),mo=h.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(pe,ee,re,J,oe,ae,ce,le,se,me,po),yo=y(["box-shadow:none;outline:2px solid ",";"],Kr("colors.accent.fg")),xo=e=>y(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],yo,void 0===e?"2px":e,yo,void 0===e?"2px":e),Co=h.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],xo("-2px"),po),wo=(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","[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})`}},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","[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:"btn.danger.disabledBorder","[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]),ko=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"}}}),Bo=e=>({...ko(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"}}),Eo=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"});function To(e,r){o(e,(()=>r.current))}const So={},Io=h.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?po:"\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 Mo(){return Mo=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},Mo.apply(this,arguments)}const No=t((({scheme:e="secondary",sx:o=So,children:t,...a},n)=>r.createElement(r.Fragment,null,r.createElement(mo,Mo({"aria-hidden":"true",sx:to({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},o)},a,{as:"span",ref:n}),t),r.createElement(Io,null," (",t,")"))));function Ao(){return Ao=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},Ao.apply(this,arguments)}No.displayName="CounterLabel";const Oo=t((({children:e,as:o="button",sx:t=So,...n},l)=>{const{leadingVisual:i,trailingVisual:c,trailingAction:d,count:s,icon:g,variant:b="default",size:v="medium",alignContent:u="center",block:f=!1,inactive:h,...p}=n,m=r.useRef(null);To(l,m);const{theme:y}=co(),x=a((()=>to.all([Bo(y),wo(b,y)])),[y,b]),C=a((()=>to(x,t)),[x,t]),w={display:"flex",pointerEvents:"none"};return r.createElement(Co,Ao({as:o,sx:C},p,{ref:m,"data-block":f?"block":null,"data-size":"small"===v||"large"===v?v:void 0,"data-no-visuals":!(i||c||d)||void 0,"data-inactive":!!h||void 0}),g?r.createElement(g,null):r.createElement(r.Fragment,null,r.createElement(mo,{as:"span","data-component":"buttonContent",sx:Eo(u)},i&&r.createElement(mo,{as:"span","data-component":"leadingVisual",sx:{...w}},r.createElement(i,null)),e&&r.createElement("span",{"data-component":"text"},e),void 0===s||c?c?r.createElement(mo,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(c,null)):null:r.createElement(mo,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(No,{"data-component":"ButtonCounter"},s))),d&&r.createElement(mo,{as:"span","data-component":"trailingAction",sx:{...w}},r.createElement(d,null))))}));function Lo(){return Lo=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},Lo.apply(this,arguments)}const jo=t((({children:e,sx:o=So,...t},a)=>{const{block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:d}=t;let s=o;const g={};if(null!==o&&Object.keys(o).length>0){s=Ro({block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:d},o);const{color:e}=o;e&&(g["--button-color"]=e)}return r.createElement(Oo,Lo({ref:a,as:"button",sx:s,style:g,type:"button"},t),e)}));function Ro(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}function Do(){return Do=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},Do.apply(this,arguments)}jo.displayName="Button";const zo=t((({sx:e=So,icon:o,...t},a)=>{let n=e;const{size:l}=t;return null!==e&&Object.keys(e).length>0&&(n=Ro({size:l},e)),r.createElement(Oo,Do({icon:o,"data-component":"IconButton",sx:n,type:"button"},t,{ref:a}))}));function Po(){return Po=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},Po.apply(this,arguments)}const _o=t((({children:e,as:o="a",sx:t=So,...a},n)=>r.createElement(Oo,Po({as:o,ref:n,sx:t},a),e)));function Ho(e){const r=n();return e||r}const Fo=!("undefined"==typeof window||!window.document||!window.document.createElement);function Vo(e,o){const t=l(Wo),[a,n]=r.useState((()=>void 0!==t[e]?t[e]:void 0!==o?o:!!Fo&&window.matchMedia(e).matches));return i((()=>{void 0!==t[e]&&n(t[e])}),[t,e]),i((()=>{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 Wo=c({}),Zo={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function $o(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function Ko(e,r){const o=Vo(Zo.narrow,!1),t=Vo(Zo.regular,!1),a=Vo(Zo.wide,!1);if($o(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 Go(e,o){const t=(a=o,n=()=>{},Object.keys(a).reduce(((e,r)=>(e[r]=n(a[r]),e)),{}));var a,n;const l=[],i=Object.keys(o),c=Object.values(o);return r.Children.forEach(e,(e=>{if(!r.isValidElement(e))return void l.push(e);const o=c.findIndex((r=>{if(Array.isArray(r)){const[o,t]=r;return e.type===o&&t(e.props)}return e.type===r}));if(-1===o)return void l.push(e);const a=i[o];t[a]||(t[a]=e)})),[t,l]}function Uo(e){const[r,o]=d(!1);return i((()=>{if(null===e.current)return;const r=new ResizeObserver((e=>{for(const r of e)o(r.target.scrollHeight>r.target.clientHeight||r.target.scrollWidth>r.target.clientWidth)}));return r.observe(e.current),()=>{r.disconnect()}}),[e]),r}var qo=new Map,Yo=new WeakMap,Xo=0,Jo=void 0;function Qo(e){return Object.keys(e).sort().filter((r=>void 0!==e[r])).map((r=>`${r}_${"root"===r?function(e){return e?(Yo.has(e)||(Xo+=1,Yo.set(e,Xo.toString())),Yo.get(e)):"0"}(e.root):e[r]}`)).toString()}function et(e,r,o={},t=Jo){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){let r=Qo(e),o=qo.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},qo.set(r,o)}return o}(o);let 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(),qo.delete(a))}}function rt({threshold:r,delay:o,trackVisibility:t,rootMargin:a,root:n,triggerOnce:l,skip:i,initialInView:c,fallbackInView:d,onChange:s}={}){var g;const[b,v]=e.useState(null),u=e.useRef(),[f,h]=e.useState({inView:!!c,entry:void 0});u.current=s,e.useEffect((()=>{if(i||!b)return;let e;return e=et(b,((r,o)=>{h({inView:r,entry:o}),u.current&&u.current(r,o),o.isIntersecting&&l&&e&&(e(),e=void 0)}),{root:n,rootMargin:a,threshold:r,trackVisibility:t,delay:o},d),()=>{e&&e()}}),[Array.isArray(r)?r.toString():r,b,n,a,l,i,t,d,o]);const p=null==(g=f.entry)?void 0:g.target,m=e.useRef();b||!p||l||i||m.current===p||(m.current=p,h({inView:!!c,entry:void 0}));const y=[v,f.inView,f.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const ot="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s:i;function tt(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:tt(e.parentElement):null}const at=!!Fo&&CSS.supports("-webkit-touch-callout","none"),nt=!!Fo&&(CSS.supports("max-height","100dvh")&&at);function lt(e){return nt?`${e}dvh`:`${e}vh`}function it(){return it=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},it.apply(this,arguments)}const ct=1,dt=2,st=3,gt=4,bt={none:0,condensed:3,normal:[3,null,null,4]},vt=r.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),ut={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},ft=({containerWidth:e="xlarge",padding:o="normal",rowGap:t="normal",columnGap:a="normal",children:n,sx:l={},_slotsConfig:i})=>{const{rootRef:c,enableStickyPane:d,disableStickyPane:s,contentTopRef:b,contentBottomRef:v,stickyPaneHeight:u}=function(){const e=r.useRef(null),[o,t]=r.useState(lt(100)),[a,n]=r.useState(0),[l,i,c]=rt(),[d,s]=rt(),g=r.useCallback((()=>{let r="";const o=tt(e.current),n=null==c?void 0:c.target.getBoundingClientRect(),l="number"==typeof a?`${a}px`:a;if(o){const e=o.getBoundingClientRect(),t=n?Math.max(n.top-e.top,0):0;r=`calc(${e.height}px - (max(${t}px, ${l})))`}else{const e=n?Math.max(n.top,0):0;r=`calc(${lt(100)} - (max(${e}px, ${l})))`}t(r)}),[c,a]),[b,v]=r.useState(!1);return ot((()=>{const r=tt(e.current);return b&&(i||s)&&(g(),r?r.addEventListener("scroll",g):window.addEventListener("scroll",g),window.addEventListener("resize",g)),()=>{r?r.removeEventListener("scroll",g):window.removeEventListener("scroll",g),window.removeEventListener("resize",g)}}),[b,i,s,g]),{rootRef:e,enableStickyPane:function(e){v(!0),n(e)},disableStickyPane:function(){v(!1)},contentTopRef:l,contentBottomRef:d,stickyPaneHeight:o}}(),f=g(null),[h,p]=Go(n,null!=i?i:{header:Ct,footer:Nt});return r.createElement(vt.Provider,{value:{padding:o,rowGap:t,columnGap:a,enableStickyPane:d,disableStickyPane:s,contentTopRef:b,contentBottomRef:v,paneRef:f}},r.createElement(mo,{ref:c,style:{"--sticky-pane-height":u},sx:to({padding:bt[o]},l)},r.createElement(mo,{sx:{maxWidth:ut[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},h.header,r.createElement(mo,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},p),h.footer)))};ft.displayName="Root",ft.displayName="PageLayout";const ht={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 pt=({variant:e="none",sx:o={}})=>{const{padding:t}=r.useContext(vt),a=Ko(e,"none");return r.createElement(mo,{sx:e=>{return to({marginX:(r=bt[t],Array.isArray(r)?r.map((e=>null===e?null:-e)):null===r?null:-r),...ht[a],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},o);var r}})};pt.displayName="HorizontalDivider";const mt={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}`}},yt=m(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),xt=({variant:e="none",draggable:o=!1,onDragStart:t,onDrag:a,onDragEnd:n,onDoubleClick:l,sx:i={}})=>{const[c,d]=r.useState(!1),[s,g]=r.useState(!1),b=Ko(e,"none"),v=r.useRef(a),u=r.useRef(n),{paneRef:f}=r.useContext(vt),[h,p]=r.useState(0),[m,y]=r.useState(0),[x,C]=r.useState(0);return r.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]),r.useEffect((()=>{v.current=a}),[a]),r.useEffect((()=>{u.current=n}),[n]),r.useEffect((()=>{function e(e){var r;null===(r=v.current)||void 0===r||r.call(v,e.movementX,!1),e.preventDefault()}function r(e){var r;d(!1),null===(r=u.current)||void 0===r||r.call(u),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=v.current)||void 0===r||r.call(v,o,!0),e.preventDefault()}function t(e){var r;g(!1),null===(r=u.current)||void 0===r||r.call(u),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]),r.createElement(mo,{sx:to({height:"100%",position:"relative",...mt[b]},i)},o?r.createElement(r.Fragment,null,r.createElement(mo,{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==t||t())},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(g(!0),null==t||t())},onDoubleClick:l}),r.createElement(yt,null)):null)};xt.displayName="VerticalDivider";const Ct=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const d=Ko($o(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),s=Ko(l,!1),{rowGap:g}=r.useContext(vt);return r.createElement(mo,{as:"header","aria-label":e,"aria-labelledby":o,hidden:s,sx:to({width:"100%",marginBottom:bt[g]},c)},r.createElement(mo,{sx:{padding:bt[t]}},i),r.createElement(pt,{variant:d,sx:{marginTop:bt[g]}}))};Ct.displayName="Header",Ct.displayName="PageLayout.Header";const wt={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},kt=({as:e="main","aria-label":o,"aria-labelledby":t,width:a="full",padding:n="none",hidden:l=!1,children:i,sx:c={}})=>{const d=Ko(l,!1),{contentTopRef:s,contentBottomRef:g}=r.useContext(vt);return r.createElement(mo,{as:e,"aria-label":o,"aria-labelledby":t,sx:to({display:d?"none":"flex",flexDirection:"column",order:dt,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},c)},r.createElement(mo,{ref:s}),r.createElement(mo,{sx:{width:"100%",maxWidth:wt[a],marginX:"auto",flexGrow:1,padding:bt[n]}},i),r.createElement(mo,{ref:g}))};kt.displayName="Content",kt.displayName="PageLayout.Content";const Bt=e=>void 0!==e.default,Et=e=>["small","medium","large"].includes(e),Tt={start:ct,end:st},St={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},It={small:256,medium:296,large:320},Mt=r.forwardRef((({"aria-label":e,"aria-labelledby":o,position:t="end",positionWhenNarrow:a="inherit",width:n="medium",minWidth:l=256,padding:i="none",resizable:c=!1,widthStorageKey:d="paneWidth",divider:s="none",dividerWhenNarrow:g="inherit",sticky:b=!1,offsetHeader:v=0,hidden:u=!1,children:f,id:h,sx:p={}},m)=>{const y=Ko($o(t)||"inherit"===a?t:{regular:t,narrow:a},"end"),x=Ko($o(s)||"inherit"===g?s:{regular:s,narrow:g},"none"),C=Ko(u,!1),{rowGap:w,columnGap:k,enableStickyPane:B,disableStickyPane:E,paneRef:T}=r.useContext(vt);r.useEffect((()=>{b?null==B||B(v):null==E||E()}),[b,B,E,v]);const S=e=>Et(e)?It[e]:Bt(e)?Number(e.default.split("px")[0]):0,[I,M]=r.useState((()=>{if(!Fo)return S(n);let e;try{e=localStorage.getItem(d)}catch(r){e=null}return e&&!isNaN(Number(e))?Number(e):S(n)})),N=e=>{M(e);try{localStorage.setItem(d,e.toString())}catch(e){}};To(m,T);const A=Uo(T),O=Ho(h),L={};return A&&(o?L["aria-labelledby"]=o:e&&(L["aria-label"]=e)),r.createElement(mo,{sx:e=>to({display:C?"none":"flex",order:Tt[y],width:"100%",marginX:0,..."end"===y?{flexDirection:"column",marginTop:bt[w]}:{flexDirection:"column-reverse",marginBottom:bt[w]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...b?{position:"sticky",top:"number"==typeof v?`${v}px`:v,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===y?{flexDirection:"row-reverse",marginLeft:bt[k]}:{flexDirection:"row",marginRight:bt[k]}}},p)},r.createElement(pt,{variant:{narrow:x,regular:"none"},sx:{["end"===y?"marginBottom":"marginTop"]:bt[w]}}),r.createElement(mo,it({ref:T,style:{"--pane-width":`${I}px`},sx:e=>({"--pane-min-width":Bt(n)?n.min:`${l}px`,"--pane-max-width-diff":"511px","--pane-max-width":Bt(n)?n.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:Et(n)?St[n]:n.default,padding:bt[i],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},A&&{tabIndex:0,role:"region"},L,h&&{id:O}),f),r.createElement(xt,{variant:{narrow:"none",regular:c?"line":x},draggable:c,sx:{["end"===y?"marginRight":"marginLeft"]:bt[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(n))}))}));Mt.displayName="PageLayout.Pane";const Nt=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const d=Ko($o(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),s=Ko(l,!1),{rowGap:g}=r.useContext(vt);return r.createElement(mo,{as:"footer","aria-label":e,"aria-labelledby":o,hidden:s,sx:to({order:gt,width:"100%",marginTop:bt[g]},c)},r.createElement(pt,{variant:d,sx:{marginBottom:bt[g]}}),r.createElement(mo,{sx:{padding:bt[t]}},i))};Nt.displayName="Footer",Nt.displayName="PageLayout.Footer";const At=Object.assign(ft,{Header:Ct,Content:kt,Pane:Mt,Footer:Nt});function Ot(){return Ot=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},Ot.apply(this,arguments)}const Lt=e=>r.createElement(At,Ot({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:jt,footer:zt}},e));Lt.displayName="Root",Lt.displayName="SplitPageLayout";const jt=({padding:e="normal",divider:o="line",...t})=>r.createElement(At.Header,Ot({padding:e,divider:o},t));jt.displayName="Header",jt.displayName="SplitPageLayout.Header";const Rt=({width:e="large",padding:o="normal",...t})=>r.createElement(At.Content,Ot({width:e,padding:o},t));Rt.displayName="Content",Rt.displayName="SplitPageLayout.Content";const Dt=({position:e="start",sticky:o=!0,padding:t="normal",divider:a="line",...n})=>r.createElement(At.Pane,Ot({position:e,sticky:o,padding:t,divider:a},n));Dt.displayName="Pane",Dt.displayName="SplitPageLayout.Pane";const zt=({padding:e="normal",divider:o="line",...t})=>r.createElement(At.Footer,Ot({padding:e,divider:o},t));zt.displayName="Footer",zt.displayName="SplitPageLayout.Footer";const Pt=Object.assign(Lt,{Header:jt,Content:Rt,Pane:Dt,Footer:zt});function _t({ref:e,closeOnOutsideClick:r,defaultOpen:o,onClickOutside:t}){const[a,n]=d(o),l=g(null),c=null!=e?e:l,s=b((e=>{const{current:r}=c;e.target.closest("details")!==r&&(t&&t(e),e.defaultPrevented||n(!1))}),[c,n,t]);i((()=>{if(a&&r)return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}}),[a,r,s]);const v=e=>{if(!e.defaultPrevented){const r=e.target;n(r.open)}};return{open:a,setOpen:n,getDetailsProps:()=>({onToggle:v,open:a,ref:c})}}function Ht(){const e=g(new Set),r=b(((r,o,...t)=>{const a=window.setTimeout(r,o,...t);return e.current.add(a),a}),[]),o=b((r=>{clearTimeout(r),e.current.delete(r)}),[]);return i((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:r,safeClearTimeout:o}}const Ft=!0;function Vt(e){if(!e.defaultPrevented)for(const r of Object.values(Wt).reverse())if(r(e)===Ft||e.defaultPrevented)break}const Wt={};let Zt=0;const $t=({containerRef:e,ignoreClickRefs:r,onClickOutside:o})=>{const t=a((()=>Zt++),[]),n=b((t=>{var a;return t instanceof MouseEvent&&t.button>0||null!==(a=e.current)&&void 0!==a&&a.contains(t.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(t.target)))?Ft:void o(t)}),[e,r,o]);i((()=>(0===Object.keys(Wt).length&&document.addEventListener("mousedown",Vt,{capture:!0}),function(e,r){Wt[e]=r}(t,n),()=>{!function(e){delete Wt[e]}(t),0===Object.keys(Wt).length&&document.removeEventListener("mousedown",Vt,{capture:!0})})),[t,n])};function*Kt(e,r={}){var o,t;const a=null!==(o=r.strict)&&void 0!==o&&o,n=null!==(t=r.onlyTabbable)&&void 0!==t&&t?qt:Ut,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 Gt(e,r=!1){return Kt(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function Ut(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 qt(e,r=!1){return Ut(e,r)&&"-1"!==e.getAttribute("tabindex")}let Yt,Xt=1e4;function Jt(){return void 0===Yt&&(Yt=/^mac/i.test(window.navigator.platform)),Yt}function Qt({initialFocusRef:e,returnFocusRef:r,containerRef:o,preventFocusOnOpen:t}){i((()=>{if(t)return;const a=r.current;if(e&&e.current)e.current.focus();else if(o.current){const e=Kt(o.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,r,o,t])}function ea(e){if(!e.defaultPrevented)for(const r of Object.values(ra).reverse())if(r(e),e.defaultPrevented)break}const ra={};let oa=0;const ta=(e,r=[e])=>{const o=b(e,r),t=b((e=>{"Escape"===e.key&&o(e)}),[o]),n=a((()=>oa++),[]);i((()=>(0===Object.keys(ra).length&&document.addEventListener("keydown",ea),function(e,r){ra[e]=r}(n,t),()=>{!function(e){delete ra[e]}(n),0===Object.keys(ra).length&&document.removeEventListener("keydown",ea)})),[n,t])};function aa(e){const o=r.useRef(null);return null!=e?e:o}const na=({overlayRef:e,returnFocusRef:r,initialFocusRef:o,onEscape:t,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:l})=>{const i=aa(e);Qt({containerRef:i,returnFocusRef:r,initialFocusRef:o,preventFocusOnOpen:l}),$t({containerRef:i,ignoreClickRefs:a,onClickOutside:n});return ta((e=>{t(e),e.preventDefault()})),{ref:i}};var la,ia=w;la=ia.createRoot,ia.hydrateRoot;const ca={"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"]},da={start:["end","center"],end:["start","center"],center:["end","start"]};function sa(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=ba(o,t,a,n,i,c),g=a,b=n;if(s.top-=r.top,s.left-=r.left,!l){const l=ca[a];let v=0;if(l){let e=a;for(;v<l.length&&va(e,s,d,o);){const a=l[v++];e=a,s=ba(o,t,a,n,i,c),s.top-=r.top,s.left-=r.left,g=a}}const u=da[n];let f=0;if(u){let e=n;for(;f<u.length&&ua(e,s,d,o);){const a=u[f++];e=a,s=ba(o,t,g,a,i,c),s.top-=r.top,s.left-=r.left,b=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&&v<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:g,anchorAlign:b})}(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:ga.side,i=null!==(o=e.align)&&void 0!==o?o:ga.align;return{side:l,align:i,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===l?0:ga.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==i&&l.startsWith("inside")?ga.alignmentOffset:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:ga.allowOutOfBounds}}(o))}const ga={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function ba(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 va(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 ua(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 fa=!1;function ha(){}try{const e=Object.create({},{signal:{get(){fa=!0}}});window.addEventListener("test",ha,e),window.removeEventListener("test",ha,e)}catch(jb){}function pa(){fa||(!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)}}(),fa=!0)}pa();const ma=[];let ya;function xa(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=Gt(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&&qt(i)&&e.contains(i))return void i.focus();if(r&&e.contains(r))return void r.focus();{const r=Gt(e);return void(null==r||r.focus())}}}l.setAttribute("class","sentinel"),l.setAttribute("tabindex","0"),l.setAttribute("aria-hidden","true"),l.onfocus=()=>{const r=Gt(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(ya){const e=ya;ya.container.setAttribute("data-focus-trap","suspended"),ya.controller.abort(),ma.push(e)}d.signal.addEventListener("abort",(()=>{ya=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=e.getElementsByClassName("sentinel");for(;r.length>0;)r[0].remove();const o=ma.findIndex((r=>r.container===e));o>=0&&ma.splice(o,1),function(){const e=ma.pop();e&&xa(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{c(e.target)}),{signal:d.signal,capture:!0}),c(document.activeElement),ya={container:e,controller:d,initialFocus:r,originalSignal:a};const s=ma.findIndex((r=>r.container===e));if(s>=0&&ma.splice(s,1),!o)return t}var Ca;pa(),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"}(Ca||(Ca={}));const wa={ArrowLeft:Ca.ArrowHorizontal,ArrowDown:Ca.ArrowVertical,ArrowUp:Ca.ArrowVertical,ArrowRight:Ca.ArrowHorizontal,h:Ca.HL,j:Ca.JK,k:Ca.JK,l:Ca.HL,a:Ca.AD,s:Ca.WS,w:Ca.WS,d:Ca.AD,Tab:Ca.Tab,Home:Ca.HomeAndEnd,End:Ca.HomeAndEnd,PageUp:Ca.PageUpDown,PageDown:Ca.PageUpDown,Backspace:Ca.Backspace},ka={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 Ba(e){const r=ka[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const o=Jt();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 Ea="data-is-active-descendant",Ta="activated-directly",Sa="activated-indirectly",Ia="data-has-active-descendant";function Ma(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)?Ca.ArrowAll:Ca.ArrowVertical)|Ca.HomeAndEnd,s=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",g=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",b=null==r?void 0:r.activeDescendantControl,v=null==r?void 0:r.onActiveDescendantChanged;let u;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=u;u=e,b?e&&document.activeElement===b?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_"+Xt++),r&&r!==o&&r.removeAttribute(Ea),b&&(t||b.getAttribute("aria-activedescendant")!==o.id)&&(b.setAttribute("aria-activedescendant",o.id),e.setAttribute(Ia,o.id),o.setAttribute(Ea,t?Ta:Sa),null==v||v(o,r,t))}function y(r=u){"first"===g&&(u=void 0),null==b||b.removeAttribute("aria-activedescendant"),e.removeAttribute(Ia),null==r||r.removeAttribute(Ea),null==v||v(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");u||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===u){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(...Kt(e,k));p("function"==typeof g?g(document.body):h());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...Kt(e,k));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...Kt(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}),b?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(b.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}),b.addEventListener("focusin",(()=>{u?m(void 0,u):p(h())})),b.addEventListener("focusout",(()=>{y()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==T)T>=0&&i[T]!==u&&p(i[T]),T=void 0;else if("previous"===g)p(r.target);else if("closest"===g||"first"===g){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 g)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=g(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!=b?b:e;let I;return"closest"===g&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=Ba(e))}),{signal:E,capture:!0}),S.addEventListener("keydown",(o=>{var t;if(o.key in ka){const a=wa[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&&Jt()&&!e.metaKey)return!0;if("ArrowDown"===o&&!Jt()&&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=Ba(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(!u)return 0;const r=i.indexOf(u);return-1!==r?r:u===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])}b?p(n||u,!0):n&&(I=a,n.focus({preventScroll:f})),("Tab"!==o.key||n)&&o.preventDefault()}}}),{signal:E}),B}function Na(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]:g,[i]:b}=r.getBoundingClientRect(),v=s>b-a;if(d<g+t){const e=d-g+r[c];r.scrollTo({behavior:n,[l]:e-t})}else if(v){const e=s-b+r[c];r.scrollTo({behavior:n,[l]:e+a})}}function Aa(e,r){const o=g(e);ot((()=>{o.current=e})),ot((()=>{const e=r&&"current"in r?r.current:document.documentElement;if(!e)return;const t=new ResizeObserver((e=>{o.current(e)}));return t.observe(e),()=>{t.disconnect()}}),[r])}function Oa(e,o=[]){const t=aa(null==e?void 0:e.floatingElementRef),a=aa(null==e?void 0:e.anchorElementRef),[n,l]=r.useState(void 0),i=r.useCallback((()=>{t.current instanceof Element&&a.current instanceof Element?l(sa(t.current,a.current,e)):l(void 0)}),[t,a,...o]);return ot(i,[i]),Aa(i),{floatingElementRef:t,anchorElementRef:a,position:n}}function La(e){const[r,o]=d(e||null),t=g(null);t.current=r;const a=b((e=>{t.current=e,o(e)}),[t]);return[t,a]}function ja(e,r,o){const[t,a]=d(o),n=null!=e?e:t,l=b((e=>{a(e),r&&r(e)}),[r]);return[n,l]}const Ra=(e,o,t,a)=>{((e,o,t)=>{const[a,n]=r.useState(void 0);r.useEffect((function(){const e=t.current,r=e=>{0!==e.detail&&n("mouse-click")},o=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&n(e.code)};return null==e||e.addEventListener("click",r),null==e||e.addEventListener("keydown",o),()=>{null==e||e.removeEventListener("click",r),null==e||e.removeEventListener("keydown",o)}}),[t]),r.useEffect((function(){if(!e||!o.current)return;const r=Kt(o.current);if("mouse-click"===a){if(!t.current)throw new Error("For focus management, please attach anchorRef");t.current.focus()}else if(a&&["ArrowDown","Space","Enter"].includes(a)){const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===a){const e=[...r],o=e[e.length-1];setTimeout((()=>o.focus()))}else{const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,a,t])})(e,t,a),((e,o)=>{const t=aa(o);r.useEffect((function(){e&&t.current&&[...Kt(t.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,t]),r.useEffect((function(){if(!e||!t.current)return;const r=t.current,o=e=>{var o;const t=document.activeElement;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!a(e))return;e.stopPropagation();const n=e.key.toLowerCase();let l;const i=[...Kt(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(t);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",o),()=>r.removeEventListener("keydown",o)}),[e,t]);const a=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,t),Da(e,o,t,a),za(e,t,a)},Da=(e,o,t,a)=>{r.useEffect((()=>{const r=t.current,n=a.current,l=r=>{e&&"Tab"===r.key&&(null==o||o("tab"))};return null==r||r.addEventListener("keydown",l),null==n||n.addEventListener("keydown",l),()=>{null==r||r.removeEventListener("keydown",l),null==n||n.removeEventListener("keydown",l)}}),[e,o,t,a])},za=(e,o,t)=>{r.useEffect((()=>{const r=o.current,a=t.current,n=o=>{if(!e||!r)return;const t=Kt(r);if("ArrowDown"===o.key){const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===o.key){const e=[...t],r=e[e.length-1];setTimeout((()=>r.focus()))}};return null==a||a.addEventListener("keydown",n),()=>null==a?void 0:a.addEventListener("keydown",n)}),[e,o,t])};function Pa(e,o=[]){const t=aa(null==e?void 0:e.containerRef),a=aa(null==e?void 0:e.initialFocusRef),n=null==e?void 0:e.disabled,l=r.useRef(),i=r.useRef(null);function c(){var r;null===(r=l.current)||void 0===r||r.abort(),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),r.useEffect((()=>{if(t.current instanceof HTMLElement){var e;if(!n)return l.current=xa(t.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{c()};c()}}),[t,a,n,...o]),{containerRef:t,initialFocusRef:a}}function _a(){return _a=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},_a.apply(this,arguments)}const Ha=h(r.forwardRef(((e,o)=>{const{icon:t,...a}=e;return r.createElement(t,_a({},a,{ref:o}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>po({sx:{color:e,...r}})));var Fa={small:16,medium:32,large:64};function Va(e,o,t){var a=t(),n=Object.keys(a),l=r.forwardRef((function(e,t){var l=e["aria-label"],i=e["aria-labelledby"],c=e.tabIndex,d=e.className,s=void 0===d?o:d,g=e.fill,b=void 0===g?"currentColor":g,v=e.size,u=void 0===v?16:v,f=e.verticalAlign,h=void 0===f?"text-bottom":f,p=e.id,m=e.title,y=Fa[u]||u,x=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,o){return o<=r?o:e}),e[0])}(n,y),C=a[x].width,w=y*(C/x),k=a[x].path;return r.createElement("svg",{ref:t,"aria-hidden":l?"false":"true",tabIndex:c,focusable:c>=0?"true":"false","aria-label":l,"aria-labelledby":i,role:"img",className:s,viewBox:"0 0 ".concat(C," ").concat(x),width:w,height:y,fill:b,id:p,style:{display:"inline-block",userSelect:"none",verticalAlign:h,overflow:"visible"}},m?r.createElement("title",null,m):null,k)}));return l.displayName=e,l}var Wa=Va("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),Za=Va("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),$a=Va("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:r.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:r.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"})}}})),Ka=Va("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),Ga=Va("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),Ua=Va("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),qa=Va("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:r.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:r.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"})}}})),Ya=Va("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:r.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"})}}})),Xa=Va("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}),r.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"}))}}})),Ja=Va("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:r.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:r.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"})}}})),Qa=Va("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),en=Va("GitPullRequestClosedIcon","octicon octicon-git-pull-request-closed",(function(){return{16:{width:16,path:r.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:r.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"})}}})),rn=Va("GitPullRequestDraftIcon","octicon octicon-git-pull-request-draft",(function(){return{16:{width:16,path:r.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:r.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"})}}})),on=Va("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.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"}),r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),tn=Va("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:r.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:r.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"})}}})),an=Va("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),r.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:r.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"})}}})),nn=Va("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:r.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:r.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"})}}})),ln=Va("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),cn=Va("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:r.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:r.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"})}}})),dn=Va("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),sn=Va("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:r.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:r.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"})}}})),gn=Va("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:r.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:r.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:r.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 bn(e={},o=[]){const t=aa(e.containerRef),a=!!e.activeDescendantFocus,n=aa("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),l=e.disabled,c=r.useRef();return i((()=>{if(t.current instanceof HTMLElement&&(!a||n.current instanceof HTMLElement)){if(!l){var r;const o={...e,activeDescendantControl:null!==(r=n.current)&&void 0!==r?r:void 0};return c.current=Ma(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()}}),[l,...o]),{containerRef:t,activeDescendantControlRef:n}}const vn="__primerPortalRoot__",un="__default__",fn={};function hn(e,r=un){fn[r]=e}const pn=({children:e,onMount:o,containerName:t})=>{const a=r.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 ot((()=>{let e=t;void 0===e&&(e=un,function(){const e=fn[un];if(!e||!document.body.contains(e)){let e=document.getElementById(vn);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",vn),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)}hn(e)}}());const r=fn[e];if(!r)throw new Error(`Portal container '${t}' is not yet registered. Container must be registered with registerPortal before use.`);return r.appendChild(n),null==o||o(),()=>{r.removeChild(n)}}),[n]),k(e,n)};function mn(){return mn=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},mn.apply(this,arguments)}function yn({"aria-labelledby":e,children:o,...t}){const a=r.useRef(null),n=Uo(a)?{"aria-labelledby":e,role:"region",tabIndex:0}:{};return r.createElement(mo,mn({},t,n,{ref:a,sx:{overflow:"auto"}}),o)}function xn(){return xn=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},xn.apply(this,arguments)}yn.displayName="ScrollableRegion";const Cn="200ms",wn=h("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 "," ",";@keyframes dialog-backdrop-appear{0%{opacity:0;}100%{opacity:1;}}"],Kr("colors.primer.canvas.backdrop"),Cn,Kr("animation.easeOutCubic")),kn={small:"480px",large:"640px",auto:"auto"},Bn={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},En=h.div.withConfig({displayName:"Dialog__StyledDialog",componentId:"sc-uaxjsn-1"})(["display:flex;flex-direction:column;background-color:",";box-shadow:",";min-width:296px;max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);width:",";height:",";border-radius:12px;opacity:1;animation:overlay--dialog-appear "," ",";@keyframes overlay--dialog-appear{0%{opacity:0;transform:scale(0.5);}100%{opacity:1;transform:scale(1);}}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>{var r;return Bn[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return kn[null!==(r=e.height)&&void 0!==r?r:"auto"]}),Cn,Kr("animation.easeOutCubic"),po),Tn=({dialogLabelId:e,title:o,subtitle:t,dialogDescriptionId:a,onClose:n})=>{const l=b((()=>{n("close-button")}),[n]);return r.createElement(zn.Header,null,r.createElement(mo,{display:"flex"},r.createElement(mo,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},r.createElement(zn.Title,{id:e},null!=o?o:"Dialog"),t&&r.createElement(zn.Subtitle,{id:a},t)),r.createElement(zn.CloseButton,{onClose:l})))};Tn.displayName="DefaultHeader";const Sn=({children:e})=>r.createElement(zn.Body,null,e);Sn.displayName="DefaultBody";const In=({footerButtons:e})=>{const{containerRef:o}=bn({bindKeys:Ca.ArrowHorizontal|Ca.Tab,focusInStrategy:"closest"});return e?r.createElement(zn.Footer,{ref:o},r.createElement(zn.Buttons,{buttons:e})):null},Mn=r.forwardRef(((e,o)=>{const{title:t="Dialog",subtitle:a="",renderHeader:n,renderBody:l,renderFooter:i,onClose:c,role:d="dialog",width:s="xlarge",height:b="auto",footerButtons:v=[],sx:u}=e,f=Ho(),h=Ho(),p=g(null);for(const e of v)e.autoFocus&&(e.ref=p);const m={...e,title:t,subtitle:a,role:d,dialogLabelId:f,dialogDescriptionId:h},y=g(null);To(o,y);const x=g(null);Pa({containerRef:y,restoreFocusOnCleanUp:!0,initialFocusRef:p}),ta((e=>{c("escape"),e.preventDefault()}),[c]),r.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const C=(null!=n?n:Tn)(m),w=(null!=l?l:Sn)(m),k=(null!=i?i:In)(m);return r.createElement(r.Fragment,null,r.createElement(pn,null,r.createElement(wn,{ref:x},r.createElement(En,{width:s,height:b,ref:y,role:d,"aria-labelledby":f,"aria-describedby":h,"aria-modal":!0,sx:u},C,r.createElement(yn,{"aria-labelledby":f,className:"DialogOverflowWrapper"},w),k))))}));Mn.displayName="Dialog";const Nn=h.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;",";"],Kr("colors.border.default"),Kr("space.2"),po),An=h.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Kr("fontSizes.1"),Kr("fontWeights.bold"),po),On=h.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";",";"],Kr("fontSizes.0"),Kr("colors.fg.muted"),Kr("space.1"),po),Ln=h.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Kr("space.3"),po),jn=h.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;",";"],Kr("colors.border.default"),Kr("space.3"),Kr("space.2"),po),Rn=h(jo).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;"],Kr("colors.fg.muted"),Kr("space.2")),Dn=({onClose:e})=>r.createElement(Rn,{"aria-label":"Close",onClick:e},r.createElement(Ha,{icon:gn}));Dn.displayName="CloseButton";const zn=Object.assign(Mn,{Header:Nn,Title:An,Subtitle:On,Body:Ln,Footer:jn,Buttons:({buttons:e})=>{var o;const t=aa(null===(o=e.find((e=>e.autoFocus)))||void 0===o?void 0:o.ref);let a=0;const[n,l]=d(0);return i((()=>{var e;1===n?null===(e=t.current)||void 0===e||e.focus():l(n+1)}),[t,n]),r.createElement(r.Fragment,null,e.map(((e,o)=>{const{content:n,buttonType:l="default",autoFocus:i=!1,...c}=e;return r.createElement(jo,xn({key:o},c,{variant:"normal"===l?"default":l,ref:i&&0===a?(a++,t):null}),n)})))},CloseButton:Dn});function Pn(){return Pn=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},Pn.apply(this,arguments)}const _n=h.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Kr("space.2")),Hn=h(mo).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Kr("fontSizes.3"),Kr("fontWeights.bold"),Kr("space.2")),Fn=({title:e,onClose:o,dialogLabelId:t})=>{const a=b((()=>{o("close-button")}),[o]);return r.createElement(_n,null,r.createElement(Hn,{id:t},e),r.createElement(zn.CloseButton,{onClose:a}))};Fn.displayName="ConfirmationHeader";const Vn=h(mo).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Kr("fontSizes.1"),Kr("space.3"),Kr("space.3"),Kr("space.3"),Kr("colors.fg.muted")),Wn=({children:e})=>r.createElement(Vn,null,e);Wn.displayName="ConfirmationBody";const Zn=h(mo).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:"," "," ",";"],Kr("space.2"),Kr("space.1"),Kr("space.3"),Kr("space.3")),$n=({footerButtons:e})=>{const{containerRef:o}=bn({bindKeys:Ca.ArrowHorizontal|Ca.Tab,focusInStrategy:"closest"});return r.createElement(Zn,{ref:o},r.createElement(zn.Buttons,{buttons:null!=e?e:[]}))};$n.displayName="ConfirmationFooter";const Kn=e=>{const{onClose:o,title:t,cancelButtonContent:a="Cancel",confirmButtonContent:n="OK",confirmButtonType:l="normal",children:i}=e,c="danger"===l,d=[{content:a,onClick:b((()=>{o("cancel")}),[o]),autoFocus:c},{content:n,buttonType:l,onClick:b((()=>{o("confirm")}),[o]),autoFocus:!c}];return r.createElement(zn,{onClose:o,title:t,footerButtons:d,role:"alertdialog",width:"medium",renderHeader:Fn,renderBody:Wn,renderFooter:$n},i)};Kn.displayName="ConfirmationDialog";let Gn=null;function Un(){const{theme:e,colorMode:o,dayScheme:t,nightScheme:a}=co(),n=b((n=>async function(e,o){const{content:t,...a}=o;return new Promise((o=>{Gn||=document.createElement("div"),Gn.isConnected||document.body.append(Gn);const n=la(Gn);n.render(r.createElement(io,e,r.createElement(ho,null,r.createElement(Kn,Pn({},a,{onClose:e=>{n.unmount(),o("confirm"===e)}}),t))))}))}({theme:e,colorMode:o,dayScheme:t,nightScheme:a},n)),[e,o,t,a]);return n}const qn=x(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Yn=h.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&y(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],qn))),Xn=({show:e,children:o})=>{const[t,a]=d(e);i((()=>{e&&a(!0)}),[e]);return t?r.createElement(mo,{height:e?"auto":0,overflow:"hidden"},r.createElement(Yn,{show:e,onAnimationEnd:()=>{e||a(!1)}},o)):null},Jn=h.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Ur,Gr,po),Qn=r.createContext({}),el=({children:e,sx:o})=>{const{disabled:t,captionId:a}=r.useContext(Qn);return r.createElement(Jn,{color:t?"fg.muted":"fg.subtle",fontSize:1,id:a,sx:o},e)};el.displayName="CheckboxOrRadioGroupCaption";const rl=({children:e,visuallyHidden:o=!1,sx:t})=>{const{required:a,disabled:n}=r.useContext(Qn);return r.createElement(Io,{isVisible:!o,title:a?"required field":void 0,sx:{display:"block",color:n?"fg.muted":void 0,fontSize:2,...t}},a?r.createElement(mo,{display:"flex",as:"span"},r.createElement(mo,{mr:1},e),r.createElement("span",null,"*")):e)};rl.displayName="CheckboxOrRadioGroupLabel";const ol={success:Ka,error:Za},tl={success:"success.fg",error:"danger.fg"},al=({children:e,id:o,validationStatus:t,sx:a})=>{const n=t?ol[t]:void 0,l=t?tl[t]:void 0,i=16/12;return r.createElement(Jn,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:l,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...a},"aria-live":"polite"},n&&r.createElement(mo,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},r.createElement(n,{size:12,fill:"currentColor"})),r.createElement(mo,{as:"span",id:o,sx:{lineHeight:i}},e))};al.displayName="InputValidation";const nl=({children:e,variant:o,sx:t})=>{const{validationMessageId:a=""}=r.useContext(Qn);return r.createElement(al,{validationStatus:o,id:a,sx:t},e)};function ll(){return ll=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},ll.apply(this,arguments)}nl.displayName="CheckboxOrRadioGroupValidation";const il=h.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Kr("space.2")),cl=({"aria-labelledby":e,children:o,disabled:t=!1,id:a,required:n=!1,sx:l})=>{const[i,c]=Go(o,{caption:el,label:rl,validation:nl}),d=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===rl)),s=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===nl?e:null)),g=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===el?e:null)),b=Ho(a),v=s?`${b}-validationMessage`:void 0,u=g?`${b}-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=r.isValidElement(d)&&!d.props.visuallyHidden;return r.createElement(Qn.Provider,{value:{disabled:t,required:n,captionId:u,validationMessageId:v}},r.createElement("div",null,r.createElement(mo,ll({border:"none",margin:0,mb:s?2:void 0,padding:0},d&&{as:"fieldset",disabled:t},{sx:l}),d?r.createElement(mo,{as:"legend",mb:f?2:void 0,padding:0},i.label,i.caption,r.isValidElement(i.validation)&&i.validation.props.children&&r.createElement(Io,null,i.validation.props.children)):i.caption,r.createElement(il,!d&&{"aria-labelledby":e,"aria-describedby":[v,u].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(c).filter((e=>r.isValidElement(e))))),s&&r.createElement(Xn,{"aria-hidden":Boolean(d),show:!0},i.validation)))};cl.displayName="CheckboxOrRadioGroup";var dl=Object.assign(cl,{Caption:el,Label:rl,Validation:nl});function sl(){return sl=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},sl.apply(this,arguments)}const gl=c(null),bl=({children:e,disabled:o,onChange:t,name:a,...n})=>{const[l,i]=La(null);return r.createElement(gl.Provider,{value:{disabled:o,name:a,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;o&&i(r)})(e),t(l.current,e))}}},r.createElement(dl,sl({disabled:o},n),e))};bl.displayName="RadioGroup";var vl=Object.assign(bl,{Caption:el,Label:rl,Validation:nl});const ul=y(["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:var(--color-input-disabled-bg,rgba(175,184,193,0.2));border-color:",";}"],Kr("colors.neutral.emphasis"),Kr("borderWidths.1"),Kr("colors.border.default"));function fl(){return fl=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},fl.apply(this,arguments)}const hl=h.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,Kr("colors.accent.fg"),Kr("colors.fg.muted"),xo(),po),pl=r.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:i,validationStatus:c,value:d,...s},g)=>{const b=l(gl),v=t||(null==b?void 0:b.name);return v||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"),r.createElement(hl,fl({type:"radio",value:d,name:v,ref:g,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==b?void 0:b.onChange)&&b.onChange(e),a&&a(e)}},s))}));pl.displayName="Radio";const ml=r.createContext({});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=h.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Kr("fontWeights.bold"),Kr("fontSizes.5"),po),Cl=t((({as:e="h2",...o},t)=>{const a=r.useRef(null);return To(t,a),r.createElement(xl,yl({as:e},o,{ref:a}))}));Cl.displayName="Heading";const wl=function(){};function kl(){return kl=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},kl.apply(this,arguments)}const Bl=t((({as:e,children:o,sx:t=So,visuallyHidden:a=!1,...n},l)=>{var i;const c=r.useRef(null);To(l,c);const{headingId:d,variant:s}=r.useContext(Tl),{container:g}=r.useContext(ml);"ActionMenu"===g&&wl(!1);const b={marginBottom:2,marginX:"full"===s?2:3};return r.createElement(Io,{isVisible:!a},r.createElement(Cl,kl({as:e,ref:c,id:null!==(i=n.id)&&void 0!==i?i:d,sx:to(b,t)},n),o))}));function El(){return El=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},El.apply(this,arguments)}Bl.displayName="ActionList.Heading";const Tl=r.createContext({}),Sl=h.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(po),Il=r.forwardRef((({variant:e="inset",selectionVariant:o,showDividers:t=!1,role:a,sx:n=So,...l},i)=>{var c;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[s,g]=Go(l.children,{heading:Bl}),b=Ho(),{listRole:v,listLabelledBy:u,selectionVariant:f}=r.useContext(ml),h=s.heading?null!==(c=s.heading.props.id)&&void 0!==c?c:b:u;return r.createElement(Tl.Provider,{value:{variant:e,selectionVariant:o||f,showDividers:t,role:a||v,headingId:b}},s.heading,r.createElement(Sl,El({sx:to(d,n),role:a||v,"aria-labelledby":h},l,{ref:i}),g))}));function Ml(){return Ml=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},Ml.apply(this,arguments)}Il.displayName="ActionList";const Nl=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),Al=({title:e,variant:o="subtle",auxiliaryText:t,selectionVariant:a,role:n,sx:l={},...i})=>{var c;const d=Ho(),{role:s}=r.useContext(Tl),[g,b]=Go(i.children,{groupHeading:Ol});let v;var u;g.groupHeading&&(v=null!==(u=g.groupHeading.props.id)&&void 0!==u?u:d);return e&&(v=d),r.createElement(mo,Ml({as:"li",role:s?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Nl.Provider,{value:{selectionVariant:a,groupHeadingId:v}},e&&!g.groupHeading?r.createElement(Ol,{title:e,variant:o,auxiliaryText:t}):null,!e&&g.groupHeading?r.cloneElement(g.groupHeading):null,r.createElement(mo,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":s?void 0:v,"aria-label":s?null!=e?e:null===(c=g.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:n||s&&"group"},g.groupHeading?b:i.children)))};Al.displayName="Group";const Ol=({as:e,variant:o,title:t,auxiliaryText:a,children:n,sx:l=So,...i})=>{const{variant:c,role:d}=r.useContext(Tl),{groupHeadingId:s}=r.useContext(Nl),g={paddingY:"6px",paddingX:"full"===c?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===o&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return r.createElement(r.Fragment,null,d?r.createElement(mo,Ml({sx:g,role:"presentation","aria-hidden":"true"},i),r.createElement("span",{id:s},null!=t?t:n),a&&r.createElement("span",null,a)):r.createElement(r.Fragment,null,r.createElement(Cl,Ml({as:e||"h3",id:s,sx:to(g,l)},i),null!=t?t:n),a&&r.createElement("span",null,a)))};var Ll=class extends Event{oldState;newState;constructor(e,{oldState:r="",newState:o="",...t}={}){super(e,t),this.oldState=String(r||""),this.newState=String(o||"")}},jl=new WeakMap;function Rl(e,r,o){jl.set(e,setTimeout((()=>{jl.has(e)&&e.dispatchEvent(new Ll("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var Dl=globalThis.ShadowRoot||function(){},zl=globalThis.HTMLDialogElement||function(){},Pl=new WeakMap,_l=new WeakMap,Hl=new WeakMap;function Fl(e){return Hl.get(e)||"hidden"}var Vl=new WeakMap;function Wl(e,r){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!r||"showing"===Fl(e))&&(!(!r&&"hidden"!==Fl(e))&&(!(e instanceof zl&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Zl(e){return e?Array.from(_l.get(e.ownerDocument)||[]).indexOf(e)+1:0}function $l(e){const r=Ul(e),o=function(e){for(;e;){const r=e.popoverTargetElement;if(r instanceof HTMLElement)return r;if((e=e.parentElement||Gl(e))instanceof Dl&&(e=e.host),e instanceof Document)return}}(e);return Zl(r)>Zl(o)?r:o}function Kl(e){const r=_l.get(e);for(const e of r||[]){if(e.isConnected)return e;r.delete(e)}return null}function Gl(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?Gl(e.parentNode):e}function Ul(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===Hl.get(e))return e;if((e=e.parentElement||Gl(e))instanceof Dl&&(e=e.host),e instanceof Document)return}}function ql(e){return!(e.hidden||e instanceof Dl)&&((!(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 Yl(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(ql(a))return a;a=t.nextNode()}})(e)?.focus()}var Xl=new WeakMap;function Jl(e){if(!Wl(e,!1))return;const r=e.ownerDocument;if(!e.dispatchEvent(new Ll("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Wl(e,!1))return;let o=!1;if("auto"===e.popover){const o=e.getAttribute("popover");if(ri(function(e){const r=new Map;let o=0;const t=e.ownerDocument;for(const e of _l.get(t)||[])r.set(e,o),o+=1;r.set(e,o),o+=1;let a=null;return function(e){const o=Ul(e);if(null===o)return null;const t=r.get(o);(null===a||r.get(a)<t)&&(a=o)}(e?.parentElement),a}(e)||r,!1,!0),o!==e.getAttribute("popover")||!Wl(e,!1))return}Kl(r)||(o=!0),Xl.delete(e);const t=r.activeElement;e.classList.add(":popover-open"),Hl.set(e,"showing"),Pl.has(r)||Pl.set(r,new Set),Pl.get(r).add(e),Yl(e),"auto"===e.popover&&(_l.has(r)||_l.set(r,new Set),_l.get(r).add(e),ni(Vl.get(e),!0)),o&&t&&"auto"===e.popover&&Xl.set(e,t),Rl(e,"closed","open")}function Ql(e,r=!1,o=!1){if(!Wl(e,!0))return;const t=e.ownerDocument;if("auto"===e.popover&&(ri(e,r,o),!Wl(e,!0)))return;if(ni(Vl.get(e),!1),Vl.delete(e),o&&(e.dispatchEvent(new Ll("beforetoggle",{oldState:"open",newState:"closed"})),!Wl(e,!0)))return;Pl.get(t)?.delete(e),_l.get(t)?.delete(e),e.classList.remove(":popover-open"),Hl.set(e,"hidden"),o&&Rl(e,"open","closed");const a=Xl.get(e);a&&(Xl.delete(e),r&&a.focus())}function ei(e,r=!1,o=!1){let t=Kl(e);for(;t;)Ql(t,r,o),t=Kl(e)}function ri(e,r,o){const t=e.ownerDocument||e;if(e instanceof Document)return ei(t,r,o);let a=null,n=!1;for(const r of _l.get(t)||[])if(r===e)n=!0;else if(n){a=r;break}if(!n)return ei(t,r,o);for(;a&&"showing"===Fl(a)&&_l.get(t)?.size;)Ql(a,r,o)}var oi=new WeakMap;function ti(e){if(!e.isTrusted)return;const r=e.composedPath()[0];if(!r)return;const o=r.ownerDocument;if(!Kl(o))return;const t=$l(r);if(t&&"pointerdown"===e.type)oi.set(o,t);else if("pointerup"===e.type){const e=oi.get(o)===t;oi.delete(o),e&&ri(t||o,!1,!0)}}var ai=new WeakMap;function ni(e,r=!1){if(!e)return;ai.has(e)||ai.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=ai.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var li=globalThis.ShadowRoot||function(){};function ii(e,r,o){const t=e[r];Object.defineProperty(e,r,{value(e){return t.call(this,o(e))}})}var ci=/(^|[^\\]):popover-open\b/g,di="\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",si=null;function gi(e){if(null===si)try{(si=new CSSStyleSheet).replaceSync(di)}catch{si=!1}if(!1===si){const r=document.createElement("style");r.textContent=di,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[si,...e.adoptedStyleSheets]}function bi(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(ci,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||Ll,ii(Document.prototype,"querySelector",e),ii(Document.prototype,"querySelectorAll",e),ii(Element.prototype,"querySelector",e),ii(Element.prototype,"querySelectorAll",e),ii(Element.prototype,"matches",e),ii(Element.prototype,"closest",e),ii(DocumentFragment.prototype,"querySelectorAll",e),ii(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(){Jl(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Ql(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===Hl.get(this)&&void 0===e||!1===e?Ql(this,!0,!0):void 0!==e&&!0!==e||Jl(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 gi(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&&gi(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=Gl(this),o=this.getAttribute("popovertarget");return(r instanceof Document||r instanceof li)&&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=>{if(!e.isTrusted)return;const r=e.composedPath()[0];if(!(r instanceof Element)||r?.shadowRoot)return;const o=Gl(r);if(!(o instanceof li||o instanceof Document))return;const t=r.closest("[popovertargetaction],[popovertarget]");t&&function(e){const r=e.popoverTargetElement;if(!(r instanceof HTMLElement))return;const o=Fl(r);"show"===e.popoverTargetAction&&"showing"===o||"hide"===e.popoverTargetAction&&"hidden"===o||("showing"===o?Ql(r,!0,!0):Wl(r,!1)&&(Vl.set(r,e),Jl(r)))}(t)},l=e=>{const r=e.key,o=e.target;e.defaultPrevented||!o||"Escape"!==r&&"Esc"!==r||ri(o.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",n),e.addEventListener("keydown",l),e.addEventListener("pointerdown",ti),e.addEventListener("pointerup",ti)})(document),gi(document)}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 ui="\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",fi=h.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-5xkifj-0"})(["display:none;&[popover]{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:8px;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{","}",";"],Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),ui,ui,po),hi={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"}},pi={"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"},mi=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],yi=e=>mi.some((r=>e.matches(r)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),xi=r.createContext({}),Ci=r.forwardRef((({direction:e="s",text:o,type:t="description",children:a,id:n,...l},c)=>{const s=Ho(n),b=v.only(a),u=aa(c),f=g(null),[h,p]=d(e),m=()=>{f.current&&u.current&&!f.current.matches(":popover-open")&&f.current.showPopover()},y=()=>{f.current&&u.current&&f.current.matches(":popover-open")&&f.current.hidePopover()};return i((()=>{if(!f.current||!u.current)return;const r=yi(u.current),o=u.current.childNodes,a=Array.from(o).some((e=>e instanceof HTMLElement&&yi(e)));if(r||a||wl(!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||bi());const n=f.current,l=u.current;n.setAttribute("popover","auto");const i={side:hi[e].side,align:hi[e].align},c=()=>{const{top:e,left:r,anchorAlign:o,anchorSide:t}=sa(n,l,i);n.style.top=`${e}px`,n.style.left=`${r}px`;p(pi[`${t}-${o}`])};return n.addEventListener("toggle",c),()=>{n.removeEventListener("toggle",c)}}),[f,u,e,t]),r.createElement(xi.Provider,{value:{tooltipId:s}},r.createElement(r.Fragment,null,r.isValidElement(b)&&r.cloneElement(b,{ref:u,"aria-describedby":"description"===t?s:b.props["aria-describedby"],"aria-labelledby":"label"===t?s:b.props["aria-labelledby"],onBlur:e=>{var r,o;y(),null===(r=(o=b.props).onBlur)||void 0===r||r.call(o,e)},onFocus:e=>{var r,o;m(),null===(r=(o=b.props).onFocus)||void 0===r||r.call(o,e)},onMouseEnter:e=>{var r,o;m(),null===(r=(o=b.props).onMouseEnter)||void 0===r||r.call(o,e)},onMouseLeave:e=>{var r,o;y(),null===(r=(o=b.props).onMouseLeave)||void 0===r||r.call(o,e)}}),r.createElement(fi,vi({ref:f,"data-direction":h},l,{role:"description"===t?"tooltip":void 0,"aria-hidden":"label"===t||void 0,id:s,onMouseEnter:m,onMouseLeave:y}),o)))}));function wi(){return wi=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},wi.apply(this,arguments)}const ki=h.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"),ze,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),po),Bi=r.forwardRef((function({as:e,expandable:o=!1,inline:t=!1,maxWidth:a=125,...n},l){return r.createElement(ki,wi({ref:l,as:e,expandable:o,inline:t,maxWidth:a},n))}));const Ei=r.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"},Si="20px",Ii=({variant:e="inline",sx:o={},...t})=>{const a={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:n,inlineDescriptionId:l}=r.useContext(Ei);return"block"===e?r.createElement(mo,{as:"span",sx:to(a,o),id:n},t.children):r.createElement(Bi,{id:l,sx:to(a,o),title:t.children,inline:!0,maxWidth:"100%"},t.children)};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)}const Ni=({sx:e={},...o})=>r.createElement(mo,Mi({as:"span",sx:to({height:Si,minWidth:Kr("space.3"),maxWidth:Si,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},o));Ni.displayName="LeadingVisualContainer";const Ai=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(Ei);return r.createElement(Ni,Mi({sx:to({color:Ti(t,a,n).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:Ti(t,a,n).hoverColor}},e)},o),o.children)};Ai.displayName="LeadingVisual";const Oi=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(Ei);return r.createElement(mo,Mi({as:"span",sx:to({height:"20px",flexShrink:0,color:Ti(t,a,n).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:Ti(t,a,n).hoverColor}},e)},o),o.children)};Oi.displayName="TrailingVisual";const Li=({selected:e})=>{const{selectionVariant:o,role:t}=r.useContext(Tl),{selectionVariant:a}=r.useContext(Nl);let n;if(n=void 0!==a?a:o,!n){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===n||"menu"===t)return r.createElement(Ni,null,e&&r.createElement($a,null));return r.createElement(Ni,null,r.createElement(mo,{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"}))};function ji(){return ji=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},ji.apply(this,arguments)}Li.displayName="Selection";const Ri=h.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(po),Di=({labelId:e,text:o,visualComponent:t})=>r.createElement(Ci,{text:o},r.createElement(mo,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer",display:"flex"},"aria-labelledby":e},r.createElement(t,null,r.createElement(Wa,null))));Di.displayName="InactiveIndicator";const zi=r.forwardRef((({variant:e="default",disabled:o=!1,inactiveText:t,selected:a,active:n=!1,onSelect:l,sx:i=So,id:c,role:d,_PrivateItemWrapper:s,...g},b)=>{const[v,u]=Go(g.children,{leadingVisual:Ai,trailingVisual:Oi,blockDescription:[Ii,e=>"block"===e.variant],inlineDescription:[Ii,e=>"block"!==e.variant]}),{variant:f,role:h,showDividers:p,selectionVariant:m}=r.useContext(Tl),{selectionVariant:y}=r.useContext(Nl),{container:x,afterSelect:C,selectionAttribute:w}=r.useContext(ml),k=Boolean(t),B=k&&void 0===x,E=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r()}),[l]),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:A}=co(),O={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Si,minHeight:5,marginX:"inset"===f?2:0,borderRadius:2,transition:"background 33.333ms linear",color:Ti(e,o,k).color,cursor:"pointer","&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:a?"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,o,k).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==A?void 0:A.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a:focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==A?void 0:A.colors.accent.emphasis}`},":active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:Ti(e,o,k).hoverColor}},"@media (forced-colors: active)":{":focus":{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==A?void 0:A.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"},...n?{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=r.useCallback((e=>{o||k||E(e,C)}),[E,o,k,C]),j=r.useCallback((e=>{o||k||[" ","Enter"].includes(e.key)&&E(e,C)}),[E,o,k,C]),R=Ho(c),D=`${R}--label`,z=`${R}--inline-description`,P=`${R}--block-description`,_=k&&!B?`${R}--warning-message`:void 0,H=s||r.Fragment,F=N&&I&&["menuitemradio","menuitemcheckbox","option"].includes(I),V={onClick:L,onKeyPress:j,"aria-disabled":!!o||void 0,"data-inactive":!!k||void 0,tabIndex:o||B?void 0:0,"aria-labelledby":`${D} ${v.inlineDescription?z:""}`,"aria-describedby":v.blockDescription?[P,_].join(" "):_,...F&&{[N]:a},role:I,id:R},W=s?{role:I?"none":void 0}:V,Z=s?V:{};return r.createElement(Ei.Provider,{value:{variant:e,disabled:o,inactive:Boolean(t),inlineDescriptionId:z,blockDescriptionId:P}},r.createElement(Ri,ji({ref:b,sx:to(O,i),"data-variant":"danger"===e?e:void 0},W,g),r.createElement(H,Z,r.createElement(Li,{selected:a}),B&&v.leadingVisual?r.createElement(Di,{labelId:D,text:t,visualComponent:Ai}):v.leadingVisual,r.createElement(mo,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Pi,{if:Boolean(v.trailingVisual)||B&&!v.leadingVisual,sx:{display:"flex",flexGrow:1}},r.createElement(Pi,{if:!!v.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(mo,{as:"span",id:D,sx:{flexGrow:v.inlineDescription?0:1,fontWeight:v.inlineDescription||v.blockDescription?"bold":"normal",marginBlockEnd:v.blockDescription?"4px":void 0}},u),v.inlineDescription),B&&!v.leadingVisual?r.createElement(Di,{labelId:D,text:t,visualComponent:Oi}):v.trailingVisual),k&&x?r.createElement(mo,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:_},t):null,v.blockDescription))))}));zi.displayName="ActionList.Item";const Pi=e=>{const{if:o,...t}=e;return o?r.createElement(mo,t,e.children):r.createElement(r.Fragment,null,e.children)};function _i(){return _i=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},_i.apply(this,arguments)}const Hi=q({hoverColor:{property:"color",scale:"colors"}}),Fi=h.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?Kr("colors.fg.muted")(e):Kr("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Hi:e.muted?`color: ${Kr("colors.accent.fg")(e)}`:""),po),Vi=t((({as:e="a",...o},t)=>{const a=r.useRef(null);return To(t,a),r.createElement(Fi,_i({as:e,"data-inline":o.inline},o,{ref:a}))}));function Wi(){return Wi=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},Wi.apply(this,arguments)}Vi.displayName="Link";const Zi=r.forwardRef((({sx:e={},active:o,inactiveText:t,as:a,...n},l)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return r.createElement(zi,{active:o,sx:{paddingY:0,paddingX:0},inactiveText:t,"data-inactive":!!t||void 0,_PrivateItemWrapper:({children:o,onClick:c,...d})=>t?r.createElement(mo,Wi({sx:to(i,e)},d),o):r.createElement(Vi,Wi({as:a,sx:to(i,e)},d,n,{onClick:e=>{c&&c(e),n.onClick&&n.onClick(e)},ref:l}),o)},n.children)})),$i=({sx:e={}})=>r.createElement(mo,{as:"li","aria-hidden":"true",sx:to({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Kr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});$i.displayName="Divider";const Ki=Object.assign(Il,{Group:Al,Item:zi,LinkItem:Zi,Divider:$i,Description:Ii,LeadingVisual:Ai,TrailingVisual:Oi,Heading:Bl,GroupHeading:Ol});function Gi(){return Gi=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},Gi.apply(this,arguments)}const Ui={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},qi={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Yi=h.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;}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>e.maxWidth&&qi[e.maxWidth]),(e=>Ui[e.height||"auto"]),(e=>e.maxHeight&&Ui[e.maxHeight]),(e=>qi[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Kr("animation.easeOutCubic"),po),Xi=r.forwardRef((({onClickOutside:e,role:o="none",initialFocusRef:t,returnFocusRef:a,ignoreClickRefs:n,onEscape:l,visibility:c="visible",height:d="auto",width:s="auto",top:b,left:v,right:u,bottom:f,anchorSide:h,portalContainerName:p,preventFocusOnOpen:m,position:y,...x},C)=>{const w=g(null);To(C,w);const{theme:k}=co(),B=parseInt(Kr("space.2")(k).replace("px","")),E=Kr("animation.easeOutCubic")(k);na({overlayRef:w,returnFocusRef:a,onEscape:l,ignoreClickRefs:n,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:m}),i((()=>{var e;"initial"===d&&null!==(e=w.current)&&void 0!==e&&e.clientHeight&&(w.current.style.height=`${w.current.clientHeight}px`)}),[d]),ot((()=>{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}}(h);(r||o)&&null!==(e=w.current)&&void 0!==e&&e.animate&&"hidden"!==c&&w.current.animate({transform:[`translate(${B*r}px, ${B*o}px)`,"translate(0, 0)"]},{duration:200,easing:E})}),[h,B,E,c]);const T=void 0===v&&void 0===u?{left:0}:{left:v};return r.createElement(pn,{containerName:p},r.createElement(Yi,Gi({height:d,width:s,role:o},x,{ref:w,style:{...T,right:u,top:b,bottom:f,position:y,"--styled-overlay-visibility":c}})))}));function Ji(){return Ji=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},Ji.apply(this,arguments)}const Qi=({renderAnchor:e,anchorRef:o,anchorId:t,children:a,open:n,onOpen:l,onClose:c,height:d,width:s,overlayProps:g,focusTrapSettings:v,focusZoneSettings:u,side:f="outside-bottom",align:h="start",alignmentOffset:p,anchorOffset:m})=>{const y=aa(o),[x,C]=La(),w=Ho(t),k=b((()=>null==c?void 0:c("click-outside")),[c]),B=b((()=>null==c?void 0:c("escape")),[c]),E=b((e=>{e.defaultPrevented||!n&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==l||l("anchor-key-press",e),e.preventDefault())}),[n,l]),T=b((e=>{e.defaultPrevented||0!==e.button||(n?null==c||c("anchor-click"):null==l||l("anchor-click"))}),[n,l,c]),{position:S}=Oa({anchorElementRef:y,floatingElementRef:x,side:f,align:h,alignmentOffset:p,anchorOffset:m},[x.current]);return i((()=>{!n&&x.current&&C(null)}),[n,x,C]),bn({containerRef:x,disabled:!n||!S,...u}),Pa({containerRef:x,disabled:!n||!S,...v}),r.createElement(r.Fragment,null,e&&e({ref:y,id:w,"aria-haspopup":"true","aria-expanded":n?"true":void 0,tabIndex:0,onClick:T,onKeyDown:E}),n?r.createElement(Xi,Ji({returnFocusRef:y,onClickOutside:k,ignoreClickRefs:[y],onEscape:B,ref:C,role:"none",visibility:S?"visible":"hidden",height:d,width:s,top:(null==S?void 0:S.top)||0,left:(null==S?void 0:S.left)||0,anchorSide:null==S?void 0:S.anchorSide},g),a):null)};function ec(){return ec=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},ec.apply(this,arguments)}Qi.displayName="AnchoredOverlay";const rc=r.createContext({renderAnchor:null,open:!1}),oc=({anchorRef:e,open:o,onOpenChange:t,children:a})=>{const[n,l]=ja(o,t,!1),i=r.useCallback((()=>l(!0)),[l]),c=r.useCallback((()=>l(!1)),[l]),d=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===ac||e.type===tc))),s=r.isValidElement(d)?d.props.id:void 0,g=aa(e),b=Ho(s);let v=null;const u=r.Children.map(a,(e=>{if(e.type===Ci){const o=e.props.children;return o.type===ac&&(v=t=>{const a=r.cloneElement(o,{...t});return r.cloneElement(e,{children:a,ref:g})}),null}if(e.type===tc){const o=e.props.children;return void 0!==o&&o.type===Ci?null!==o.props.children&&(v=t=>{const a=o.props.children,n=r.cloneElement(a,{...t}),l=r.cloneElement(o,{children:n});return r.cloneElement(e,{children:l,ref:g})}):v=o=>r.cloneElement(e,o),null}return e.type===ac?(v=o=>r.cloneElement(e,o),null):e}));return r.createElement(rc.Provider,{value:{anchorRef:g,renderAnchor:v,anchorId:b,open:n,onOpen:i,onClose:c}},u)};oc.displayName="Menu";const tc=r.forwardRef((({children:e,...o},t)=>r.cloneElement(e,{...o,ref:t}))),ac=r.forwardRef((({...e},o)=>r.createElement(tc,{ref:o},r.createElement(jo,ec({type:"button",trailingAction:sn},e))))),nc=({children:e,align:o="start",side:t="outside-bottom","aria-labelledby":a,...n})=>{const{anchorRef:l,renderAnchor:i,anchorId:c,open:d,onOpen:s,onClose:g}=r.useContext(rc),b=r.useRef(null);return Ra(d,g,b,l),r.createElement(Qi,{anchorRef:l,renderAnchor:i,anchorId:c,open:d,onOpen:s,onClose:g,align:o,side:t,overlayProps:n,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:b},r.createElement(ml.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:a||c,selectionAttribute:"aria-checked",afterSelect:g}},e)))};nc.displayName="Overlay",oc.displayName="ActionMenu";const lc=Object.assign(oc,{Button:ac,Anchor:tc,Overlay:nc,Divider:$i}),ic=c(null);var cc,dc={exports:{}},sc={},gc=Symbol.for("react.element"),bc=Symbol.for("react.portal"),vc=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),hc=Symbol.for("react.provider"),pc=Symbol.for("react.context"),mc=Symbol.for("react.server_context"),yc=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),Cc=Symbol.for("react.suspense_list"),wc=Symbol.for("react.memo"),kc=Symbol.for("react.lazy"),Bc=Symbol.for("react.offscreen");function Ec(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case gc:switch(e=e.type){case vc:case fc:case uc:case xc:case Cc:return e;default:switch(e=e&&e.$$typeof){case mc:case pc:case yc:case kc:case wc:case hc:return e;default:return r}}case bc:return r}}}cc=Symbol.for("react.module.reference"),sc.ContextConsumer=pc,sc.ContextProvider=hc,sc.Element=gc,sc.ForwardRef=yc,sc.Fragment=vc,sc.Lazy=kc,sc.Memo=wc,sc.Portal=bc,sc.Profiler=fc,sc.StrictMode=uc,sc.Suspense=xc,sc.SuspenseList=Cc,sc.isAsyncMode=function(){return!1},sc.isConcurrentMode=function(){return!1},sc.isContextConsumer=function(e){return Ec(e)===pc},sc.isContextProvider=function(e){return Ec(e)===hc},sc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gc},sc.isForwardRef=function(e){return Ec(e)===yc},sc.isFragment=function(e){return Ec(e)===vc},sc.isLazy=function(e){return Ec(e)===kc},sc.isMemo=function(e){return Ec(e)===wc},sc.isPortal=function(e){return Ec(e)===bc},sc.isProfiler=function(e){return Ec(e)===fc},sc.isStrictMode=function(e){return Ec(e)===uc},sc.isSuspense=function(e){return Ec(e)===xc},sc.isSuspenseList=function(e){return Ec(e)===Cc},sc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===vc||e===fc||e===uc||e===xc||e===Cc||e===Bc||"object"==typeof e&&null!==e&&(e.$$typeof===kc||e.$$typeof===wc||e.$$typeof===hc||e.$$typeof===pc||e.$$typeof===yc||e.$$typeof===cc||void 0!==e.getModuleId)},sc.typeOf=Ec,dc.exports=sc;var Tc=dc.exports;function Sc(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=Sc(e[r]))&&(t&&(t+=" "),t+=o);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Ic(){for(var e,r,o=0,t="";o<arguments.length;)(e=arguments[o++])&&(r=Sc(e))&&(t&&(t+=" "),t+=r);return t}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={small:"16px",medium:"32px",large:"64px"};function Ac({size:e="medium",...o}){const t=Nc[e];return r.createElement("svg",Mc({height:t,width:t,viewBox:"0 0 16 16",fill:"none"},o),r.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),r.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}Ac.displayName="Spinner";const Oc=h(Ac).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],po);Oc.displayName="Spinner";const Lc=({children:e,hasLoadingIndicator:o,showLoadingIndicator:t,visualPosition:a})=>!e&&!o||"leading"===a&&!e&&!t?null:o?r.createElement("span",{className:"TextInput-icon"},r.createElement(mo,{display:"flex",position:"relative"},e&&r.createElement(mo,{sx:{visibility:t?"hidden":"visible"}},e),r.createElement(Oc,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:t?"visible":"hidden",..."leading"===a?{left:0}:{right:0}}:{visibility:t?"visible":"hidden"},size:e?void 0:"small"}))):r.createElement("span",{className:"TextInput-icon"},e);Lc.displayName="TextInputInnerVisualSlot";const jc=Me({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Rc=Me({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"}}}),Dc="12px",zc=Dc,Pc=(e,r)=>e?r&&y(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Kr("colors.accent.fg"),Kr("colors.accent.fg")):y(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Kr("colors.accent.fg"),Kr("colors.accent.fg")),_c=h.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;}&::placeholder{color:",";}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("colors.canvas.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("shadows.primer.shadow.inset"),Kr("colors.fg.subtle"),(e=>Pc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Dc,(e=>e.contrast&&y(["background-color:",";"],Kr("colors.canvas.inset"))),(e=>e.disabled&&y(["color:",";background-color:",";border-color:",";input,textarea,select{cursor:not-allowed;}"],Kr("colors.primer.fg.disabled"),Kr("colors.input.disabledBg"),Kr("colors.border.default"))),(e=>e.monospace&&y(["font-family:",";"],Kr("fonts.mono"))),(e=>"error"===e.validationStatus&&y(["border-color:",";",""],Kr("colors.danger.emphasis"),Pc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&y(["border-color:",";"],Kr("colors.success.emphasis"))),(e=>e.block&&y(["width:100%;display:flex;align-self:stretch;"])),Kr("breakpoints.1"),Kr("fontSizes.1"),Le,Re,ze,jc,Rc,po),Hc=h(_c).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;}"," ",";"],Kr("space.2"),Kr("colors.fg.muted"),(e=>y(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?zc:0,e.hasTrailingVisual&&!e.hasTrailingAction?zc:0,e.hasLeadingVisual?0:zc,e.hasTrailingVisual||e.hasTrailingAction?0:zc)),po);function Fc(){return Fc=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},Fc.apply(this,arguments)}const Vc=h.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::before{position:absolute;z-index:1000001;display:none;width:0px;height:0px;color:",";pointer-events:none;content:'';border:6px solid transparent;opacity:0;}&::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{&::before,&::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:0.4s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::before,&::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;}&::before{top:auto;right:50%;bottom:-7px;margin-right:-6px;border-bottom-color:",";}}&.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;}&::before{top:-7px;right:50%;bottom:auto;margin-right:-6px;border-top-color:",";}}&.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%);}&::before{top:50%;bottom:50%;left:-7px;margin-top:-6px;border-left-color:",";}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}&::before{top:50%;right:-7px;bottom:50%;margin-top:-6px;border-right-color:",";}}&.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-right-2::before{right:15px;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}&.tooltipped-align-left-2::before{left:10px;}",";"],Kr("colors.neutral.emphasisPlus"),Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),Kr("colors.neutral.emphasisPlus"),Kr("space.3"),Kr("space.3"),Kr("colors.neutral.emphasisPlus"),Kr("space.3"),Kr("space.3"),Kr("colors.neutral.emphasisPlus"),Kr("colors.neutral.emphasisPlus"),po);function Wc({direction:e="n",children:o,className:t,text:a,noDelay:n,align:l,wrap:i,...c}){const d=Ic(t,`tooltipped-${e}`,l&&`tooltipped-align-${l}-2`,n&&"tooltipped-no-delay",i&&"tooltipped-multiline");return r.createElement(Vc,Fc({role:"tooltip","aria-label":a},c,{className:d}),o)}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)}Wc.displayName="Tooltip",Wc.alignments=["left","right"],Wc.directions=["n","ne","e","se","s","sw","w","nw"];const $c={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"}}},Kc=({"aria-label":e,children:o,tooltipDirection:t})=>r.createElement(r.Fragment,null,e?r.createElement(Wc,{"aria-label":e,direction:t,sx:{display:"inline-block"}},o):o),Gc=t((({"aria-label":e,tooltipDirection:o,children:t,icon:a,sx:n,variant:l="invisible",...i},c)=>{const d="invisible"===l?to($c,n||{}):n||{};return(a&&!e||!t&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),r.createElement(mo,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},a&&!t?r.createElement(Wc,{direction:o,"aria-label":e},r.createElement(zo,Zc({variant:l,type:"button",icon:a,size:"small",sx:d},i,{"aria-label":e,"aria-labelledby":void 0,ref:c}))):r.createElement(Kc,{"aria-label":e},r.createElement(jo,Zc({variant:l,type:"button",sx:d},i,{ref:c}),t)))})),Uc=h.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;}",";"],po);function qc(){return qc=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},qc.apply(this,arguments)}const Yc=r.forwardRef((({icon:e,leadingVisual:o,trailingVisual:t,trailingAction:a,block:n,className:l,contrast:i,disabled:c,loading:s,loaderPosition:g="auto",monospace:v,validationStatus:u,sx:f,size:h,onFocus:p,onBlur:m,width:y,minWidth:x,maxWidth:C,variant:w,type:k="text",required:B,...E},T)=>{const[S,I]=d(!1),M=aa(T),N=Ic(l,"TextInput-wrapper"),A=s&&("leading"===g||Boolean(o&&"trailing"!==g)),O=s&&("trailing"===g||Boolean("auto"===g&&!o)),L=b((e=>{I(!0),p&&p(e)}),[p]),j=b((e=>{I(!1),m&&m(e)}),[m]);return r.createElement(Hc,{block:n,className:N,validationStatus:u,contrast:i,disabled:c,monospace:v,sx:f,size:h,width:y,minWidth:x,maxWidth:C,variant:w,hasLeadingVisual:Boolean(o||A),hasTrailingVisual:Boolean(t||O),hasTrailingAction:Boolean(a),isInputFocused:S,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},"aria-busy":Boolean(s)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Lc,{visualPosition:"leading",showLoadingIndicator:A,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof o&&Tc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(Uc,qc({ref:M,disabled:c,onFocus:L,onBlur:j,type:k,"aria-required":B},E,{"data-component":"input"})),r.createElement(Lc,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof t&&Tc.isValidElementType(t)?r.createElement(t,null):t),a)}));Yc.displayName="TextInput";var Xc=Object.assign(Yc,{Action:Gc});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 Qc=r.forwardRef((({as:e=Xc,onFocus:o,onBlur:t,onChange:a,onKeyDown:n,onKeyUp:c,onKeyPress:s,value:g,...v},u)=>{const f=l(ic);if(null===f)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:h,autocompleteSuggestion:p="",id:m,inputRef:y,inputValue:x="",isMenuDirectlyActivated:C,setInputValue:w,setShowMenu:k,showMenu:B}=f;To(u,y);const[E,T]=d(!0),{safeSetTimeout:S}=Ht(),I=b((e=>{o&&o(e),k(!0)}),[o,k]),M=b((e=>{t&&t(e),S((()=>{document.activeElement!==y.current&&k(!1)}),0)}),[t,k,y,S]),N=b((e=>{a&&a(e),w(e.currentTarget.value),B||k(!0)}),[a,w,k,B]),A=b((e=>{var r;n&&n(e),"Backspace"===e.key&&T(!1),"Escape"===e.key&&null!==(r=y.current)&&void 0!==r&&r.value&&(w(""),y.current.value="")}),[y,w,T,n]),O=b((e=>{c&&c(e),"Backspace"===e.key&&T(!0)}),[T,c]),L=b((e=>{if(s&&s(e),B&&"Enter"===e.key&&h.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);h.current.dispatchEvent(r)}}),[h,B,s]);return i((()=>{y.current&&(p||(y.current.value=x),E&&p&&(x||C)&&(y.current.value=p,0===p.toLowerCase().indexOf(x.toLowerCase())&&y.current.setSelectionRange(x.length,p.length)))}),[p,x,y,C]),i((()=>{w(void 0!==g?g.toString():"")}),[g,w]),r.createElement(e,Jc({onFocus:I,onBlur:M,onChange:N,onKeyDown:A,onKeyPress:L,onKeyUp:O,ref:y,"aria-controls":`${m}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-owns":`${m}-listbox`,autoComplete:"off",id:m},v))}));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)}Qc.displayName="AutocompleteInput";const rd={startMargin:0,endMargin:8};function od(e){const o=l(ic);if(null===o)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:t,id:n,inputRef:c,inputValue:s="",scrollContainerRef:b,setAutocompleteSuggestion:v,setShowMenu:u,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:p,showMenu:m}=o,{items:y,selectedItemIds:x,sortOnCloseFn:C,emptyStateText:w="No selectable options",addNewItem:k,loading:B,selectionVariant:E="single",filterFn:T,"aria-labelledby":S,onOpenChange:I,onSelectedChange:M,customScrollContainerRef:N}=e,A=g(null),O=g([]),[L,j]=d(),[R,D]=d(y.map((({id:e})=>e))),z=Ho(n),P=a((()=>y.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===E?x.includes(e.id):void 0,onAction:e=>{const r=x.filter((r=>r!==e.id)),o=x.includes(e.id)?r:[...r,e.id];var t,a;((M||(t=f,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,y)))),"multiple"===E)?(f(""),v("")):(u(!1),null===(a=c.current)||void 0===a||a.setSelectionRange(c.current.value.length,c.current.value.length))}})))),[L,y,x,c,M,E,v,f,u]),_=a((()=>R.reduce(((e,r,o)=>(e[r]=o,e)),{})),[R]),H=a((()=>{return P.filter(T||(e=s,function(r,o){var t;return Boolean(null===(t=r.text)||void 0===t?void 0:t.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>_[e.id]-_[r.id]));var e}),[P,_,T,s]),F=a((()=>[...H,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===E?x.includes(k.id):void 0,leadingVisual:()=>r.createElement(nn,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===E&&(f(""),v(""))}}]:[]]),[H,k,v,E,f,z,L,x]);if(r.useEffect((()=>{O.current=F})),bn({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:c,onActiveDescendantChanged:(e,r,o)=>{if(t.current=e||null,e){const r=O.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));j(r),h(o)}e&&N&&N.current&&o?Na(e,N.current,rd):e&&b.current&&o&&Na(e,b.current,rd)}},[B]),i((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(s)&&!x.includes(L.id)?v(L.text):v("")}),[L,s,x,v]),i((()=>{const e=[...R].sort(C||(r=e=>((e,r)=>r.includes(e))(e,x),(e,o)=>r(e)===r(o)?0:r(e)?-1:1));var r;const o=e.length===R.length&&e.every(((e,r)=>e===R[r]));!1!==m||o||D(e),I&&I(Boolean(m))}),[m,I,x,C,R]),i((()=>{x.length&&p(x.length)}),[x,p]),"single"===E&&x.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return r.createElement(Io,{isVisible:m},B?r.createElement(mo,{p:3,display:"flex",justifyContent:"center"},r.createElement(Oc,null)):r.createElement("div",{ref:A},F.length?r.createElement(Ki,{selectionVariant:E,role:"listbox",id:`${n}-listbox`,"aria-labelledby":S},F.map((e=>{const{id:o,onAction:t,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(Ki.Item,ed({key:o,onSelect:()=>t(e)},c,{id:o,"data-id":o}),l&&r.createElement(Ki.LeadingVisual,null,r.createElement(l,null)),null!=a?a:n,i&&r.createElement(Ki.TrailingVisual,null,r.createElement(i,null)))}))):!1!==w&&null!==w?r.createElement(mo,{p:3},w):null))}function td(){return td=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},td.apply(this,arguments)}function ad({menuAnchorRef:e,overlayProps:o,children:t,...a}){const n=l(ic);if(null===n)throw new Error("AutocompleteContext returned null values");const i={...o,...a},{inputRef:c,scrollContainerRef:d,selectedItemLength:s,setShowMenu:g,showMenu:v=!1}=n,{floatingElementRef:u,position:f}=Oa({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,s]);To(d,u);const h=b((()=>{g(!1)}),[g]);return"undefined"==typeof window?null:v?r.createElement(Xi,td({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:u,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:{overflow:"auto"}},i),t):r.createElement(Io,{"aria-hidden":"true"},t)}od.displayName="AutocompleteMenu",od.displayName="AutocompleteMenu",ad.displayName="AutocompleteOverlay";const nd={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},ld=(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}},id=({children:e,id:o})=>{const t=g(null),a=g(null),n=g(null),[l,i]=u(ld,nd),{inputValue:c,showMenu:d,autocompleteSuggestion:s,isMenuDirectlyActivated:v,selectedItemLength:f}=l,h=b((e=>{i({type:"inputValue",payload:e})}),[]),p=b((e=>{i({type:"showMenu",payload:e})}),[]),m=b((e=>{i({type:"autocompleteSuggestion",payload:e})}),[]),y=b((e=>{i({type:"isMenuDirectlyActivated",payload:e})}),[]),x=b((e=>{i({type:"selectedItemLength",payload:e})}),[]),C=Ho(o);return r.createElement(ic.Provider,{value:{activeDescendantRef:t,autocompleteSuggestion:s,id:C,inputRef:n,inputValue:c,isMenuDirectlyActivated:v,scrollContainerRef:a,selectedItemLength:f,setAutocompleteSuggestion:m,setInputValue:h,setIsMenuDirectlyActivated:y,setShowMenu:p,setSelectedItemLength:x,showMenu:d}},e)};id.displayName="Autocomplete";var cd=Object.assign(id,{Context:ic,Input:Qc,Menu:od,Overlay:ad});const dd={xsmall:{width:"320px"},small:{width:j.breakpoints[0]},medium:{width:j.breakpoints[1]},large:{width:j.breakpoints[2]},xlarge:{width:j.breakpoints[3]},xxlarge:{width:"1400px"}};function sd(e){return`@media screen and (min-width: ${e})`}const gd=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(dd.medium.width),bd=sd(dd.medium.width),vd=sd(dd.xxlarge.width);function ud(e,r,o){if($o(e)){const t=e,a="narrow"in t?{[gd]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[bd]:{[r]:o(t.regular)}}:{},l="wide"in t?{[vd]:{[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 fd(){return fd=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},fd.apply(this,arguments)}const hd=20,pd=h.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);",""],Kr("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Kr("colors.avatar.border"),po),md=r.forwardRef((function({alt:e="",size:o=20,square:t=!1,sx:a=So,...n},l){const i=$o(o)?to(ud(o,"--avatar-size",(e=>`${e||hd}px`)),a):to({"--avatar-size":`${o}px`},a);return r.createElement(pd,fd({ref:l,alt:e,size:o,square:t,sx:i},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=h(md).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Kr("shadows.avatar.childShadow")),Cd=({children:e,...o})=>{const t=r.Children.map(e,((e,o)=>r.isValidElement(e)?0===o?r.cloneElement(e,{size:40}):r.createElement(xd,yd({bg:"canvas.default"},e.props,{size:20})):e));return r.createElement(mo,yd({position:"relative",display:"inline-flex"},o),t)};Cd.displayName="AvatarPair",Cd.displayName="AvatarPair";const wd=h.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?Kr("colors.avatar.border"):Kr("colors.canvas.default")),55,40,25,Kr("space.1"),Kr("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Kr("colors.canvas.default")};`),po),kd=({children:e,alignRight:o,disableExpand:t,size:a,sx:n=So})=>{const l=r.Children.count(e),i=Ic({"pc-AvatarStack--two":2===l,"pc-AvatarStack--three":3===l,"pc-AvatarStack--three-plus":l>3,"pc-AvatarStack--right":o}),c=Ic("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":t}),d=to(a?$o(a)?ud(a,"--avatar-stack-size",(e=>`${e||hd}px`)):{"--avatar-stack-size":`${a}px`}:ud((()=>{const o={narrow:[],regular:[],wide:[]};return r.Children.toArray(e).reduce(((e,t)=>{if(!r.isValidElement(t))return e;for(const r of Object.keys(o))$o(t.props.size)?o[r].push(t.props.size[r]||hd):o[r].push(t.props.size||hd),e[r]=Math.min(...o[r]);return e}),{narrow:hd,regular:hd,wide:hd})})(),"--avatar-stack-size",(e=>`${e}px`)),n);return r.createElement(wd,{count:l,className:i,sx:d},r.createElement(mo,{className:c}," ",(e=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Ic(e.props.className,"pc-AvatarItem")}):e)))(e)))};kd.displayName="AvatarStack";const Bd=h.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;",";"],Kr("fontSizes.0"),Kr("fonts.mono"),Kr("colors.accent.fg"),Kr("colors.accent.subtle"),Kr("radii.2"),po),Ed=h.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:",";font-size:",";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Kr("colors.fg.muted"),Kr("fontSizes.1")),Td=h.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],po);function Sd({className:e,children:o,sx:t}){const a=r.Children.map(o,(e=>r.createElement(Ed,null,e)));return r.createElement(Td,{className:e,"aria-label":"Breadcrumbs",sx:t},r.createElement(mo,{as:"ol",my:0,pl:0},a))}Sd.displayName="Breadcrumbs";const Id=h.a.attrs((e=>({className:Ic(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{text-decoration:underline;}&.selected{color:",";pointer-events:none;}",";"],Kr("colors.accent.fg"),Kr("fontSizes.1"),Kr("colors.fg.default"),po);Sd.displayName="Breadcrumbs",Id.displayName="Breadcrumbs.Item";var Md=Object.assign(Sd,{Item:Id});const Nd=Object.assign(Sd,{Item:Id}),Ad=h.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;}}",";"],Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),po),Od={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Ld={top:"Left",right:"Top",bottom:"Left",left:"Top"};function jd(e,r,o){const t=Od[e].toLowerCase(),a=Ld[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const Rd=Fr({prop:"bg",key:"colors"}),Dd=Fr({prop:"borderColor",key:"colors"}),zd=Fr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Pd(e){var o;const t=r.useContext(C),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(o=e.theme)&&void 0!==o?o:t},{bg:n}=Rd(a),{borderColor:l}=Dd(a),{borderWidth:i}=zd(a),{size:c=8,location:d="bottom"}=e,[s,g]=function(e){const[r,o]=e.split("-");return[r,o]}(d),b=Ld[s],v=[-c,0],u=[0,c],f=[c,0],h=`M${v}L${u}L${f}L${v}Z`,p=`M${v}L${u}L${f}`,m={top:`translate(${[c,2*c]}) rotate(180)`,right:`translate(${[0,c]}) rotate(-90)`,bottom:`translate(${[c,0]})`,left:`translate(${[2*c,c]}) rotate(90)`}[s];return r.createElement("svg",{width:2*c,height:2*c,style:{pointerEvents:"none",position:"absolute",...jd(s,g,c),[`margin${b}`]:g?null:-c},role:"presentation"},r.createElement("g",{transform:m},r.createElement("path",{d:h,fill:null==t?void 0:t.colors.canvas.default}),r.createElement("path",{d:h,fill:n}),r.createElement("path",{d:p,fill:"none",stroke:l,strokeWidth:i})))}function _d(){return _d=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},_d.apply(this,arguments)}function Hd(e){const{size:o=32,as:t,icon:a,bg:n,...l}=e;return r.createElement(mo,{as:t,bg:n,overflow:"hidden",borderWidth:0,size:o,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},r.createElement(mo,_d({display:"flex",as:t,size:o},l,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:o})))}Pd.displayName="Caret",Pd.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Hd.displayName="CircleOcticon";const Fd=c(null),Vd=Fd.Provider;function Wd(){var e;return null!==(e=l(Fd))&&void 0!==e?e:{}}function Zd(e={}){const r=l(Fd);return r?{disabled:r.disabled,id:r.id,required:r.required,validationStatus:r.validationStatus,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const $d=c({});function Kd(){return Kd=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},Kd.apply(this,arguments)}const Gd=h.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,Kr("radii.1"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),Kr("colors.accent.fg"),Kr("colors.fg.muted"),Kr("colors.fg.muted"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),xo(),po),Ud=r.forwardRef((({checked:e,indeterminate:o,disabled:t,onChange:a,sx:n,required:i,validationStatus:c,value:d,...s},g)=>{const b=aa(g),v=l($d);return ot((()=>{b.current&&(b.current.indeterminate=o||!1)}),[o,e,b]),r.createElement(Gd,Kd({type:"checkbox",disabled:t,ref:g||b,checked:!o&&e,"aria-checked":o?"mixed":e?"true":"false",sx:n,required:i,"aria-required":i?"true":"false","aria-invalid":"error"===c?"true":"false",onChange:e=>{v.onChange&&v.onChange(e),a&&a(e)},value:d,name:d},s))}));function qd(){return qd=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},qd.apply(this,arguments)}Ud.displayName="Checkbox";const Yd=h.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;}}"]),Xd=({className:e})=>r.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},r.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"}));Xd.displayName="ArrowIndicatorSVG";const Jd=h(Xd).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),Qd=r.forwardRef((({block:e,children:o,contrast:t,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,sx:d={},...s},g)=>r.createElement(Hc,{block:e,contrast:t,disabled:a,size:l,validationStatus:c,sx:to({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},d)},r.createElement(Yd,qd({ref:g,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(Jd,null)))),es=e=>r.createElement("option",e);es.displayName="Option";const rs=e=>r.createElement("optgroup",e);rs.displayName="OptGroup";var os=Object.assign(Qd,{Option:es,OptGroup:rs}),ts=Y(pe,re,ee,J,oe,le,ce,se,ae,me,Ne,Ae,Oe),as=new RegExp("^("+ts.propNames.join("|")+")$");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)}const ls={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},is="medium",cs=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),ds=Me({prop:"size",variants:{small:{fontSize:0,height:ls.small,lineHeight:ls.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:ls.medium,lineHeight:ls.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:ls.large,lineHeight:ls.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:ls.xlarge,lineHeight:ls.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),ss=h.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=>cs(e)?"pointer":"auto"),Kr("fontWeights.bold"),ds,po),gs=r.forwardRef((({onRemove:e,onKeyDown:o,id:t,size:a=is,...n},l)=>r.createElement(ss,ns({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},id:null==t?void 0:t.toString(),size:a},n,{ref:l}))));function bs(){return bs=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},bs.apply(this,arguments)}const vs=Me({prop:"size",variants:{small:{height:ls.small,width:ls.small},medium:{height:ls.medium,width:ls.medium},large:{height:ls.large,width:ls.large},xlarge:{height:ls.xlarge,width:ls.xlarge}}}),us=e=>.75*parseInt(ls[e||is],10),fs=h.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 y(["margin-left:",";"],Kr("space.2"));default:return y(["margin-left:",";"],Kr("space.1"))}}),Kr("colors.neutral.muted"),Kr("colors.neutral.subtle"),vs,po),hs=({"aria-label":e,isParentInteractive:o,size:t=is,...a})=>(delete a.children,r.createElement(fs,bs({as:o?"span":"button",tabIndex:o?-1:void 0,"aria-label":o?e:"Remove token",size:t},a),r.createElement(gn,{size:us(t)})));hs.displayName="RemoveTokenButton";const ps=h("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 ms(){return ms=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},ms.apply(this,arguments)}const ys=({children:e,size:o})=>r.createElement(mo,{sx:{flexShrink:0,lineHeight:0,marginRight:o&&["large","xlarge"].includes(o)?2:1}},e);ys.displayName="LeadingVisualContainer";const xs=t(((e,o)=>{const{as:t,onRemove:a,id:n,leadingVisual:l,text:i,size:c=is,hideRemoveButton:d,href:s,onClick:g,sx:b=So,...v}=e,u=cs(e)&&Boolean(a)&&!d,f={as:t,href:s,onClick:g},h=to({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&&a?0:void 0,...cs(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},b);return r.createElement(gs,ms({onRemove:a,id:null==n?void 0:n.toString(),text:i,size:c,sx:h},u?{}:f,v,{ref:o}),l?r.createElement(ys,{size:c},r.createElement(l,null)):null,r.createElement(ps,u?f:{},i),a&&r.createElement(Io,null," (press backspace or delete to remove)"),!d&&a?r.createElement(hs,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:c,isParentInteractive:cs(e),"aria-hidden":u?"true":"false"}):null)}));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)}xs.displayName="Token";const ws={small:0,medium:1,large:1,xlarge:2};function ks({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:l,className:i,block:c,disabled:s,sx:b,tokens:v,onTokenRemove:u,tokenComponent:f=xs,preventTokenWrapping:h=!1,size:p="xlarge",hideTokenRemoveButtons:m=!1,maxHeight:y,width:x,minWidth:C,maxWidth:w,validationStatus:k,variant:B,visibleTokenCount:E,...T},S){const{onBlur:I,onFocus:M,onKeyDown:N,...A}=function(e){var r={};for(var o in e)as.test(o)||(r[o]=e[o]);return r}(T),O=g(null);To(S,O);const[L,j]=d(),[R,D]=d(Boolean(E)),{containerRef:z}=bn({focusOutBehavior:"wrap",bindKeys:Ca.ArrowHorizontal|Ca.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!L&&0!==L)return;let o=L+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>v.length||o<1?O.current||void 0:null===(r=z.current)||void 0===r?void 0:r.children[o]}},[L]),P=e=>{u(e),setTimeout((()=>{var e,r;const o=null===(e=z.current)||void 0===e?void 0:e.children[L||0],t=o&&Ut(o)?o:Array.from((null===(r=z.current)||void 0===r?void 0:r.children)||[]).find((e=>Ut(e)));var a;t?t.focus():null===(a=O.current)||void 0===a||a.focus()}),0)},_=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},H=e=>{var r;"Escape"===e.key&&(null===(r=O.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},V=R?v.slice(0,E):v,W=a&&("leading"===n||Boolean(o&&"trailing"!==n)),Z=a&&("trailing"===n||"auto"===n&&!o);return r.createElement(Hc,{block:c,className:i,contrast:l,disabled:s,hasLeadingVisual:Boolean(o||W),hasTrailingVisual:Boolean(t||Z),width:x,minWidth:C,maxWidth:w,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[p],validationStatus:k,variant:B,onClick:()=>{var e;null===(e=O.current)||void 0===e||e.focus()},sx:{paddingLeft:zc,py:`calc(${zc} / 2)`,...c?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...b}},e&&!o&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Lc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:W},"string"!=typeof o&&Tc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(mo,{ref:z,display:"flex",sx:{alignItems:"center",flexWrap:h?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},r.createElement(mo,{sx:{order:1,flexGrow:1}},r.createElement(Uc,Cs({ref:O,disabled:s,onFocus:e=>{M&&M(e),j(void 0),E&&D(!1)},onBlur:e=>{I&&I(e),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},onKeyDown:e=>{var r;if(N&&N(e),null!==(r=O.current)&&void 0!==r&&r.value)return;const o=v[v.length-1];"Backspace"===e.key&&o&&(P(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"===k?"true":"false"},A))),V.map((({id:e,...o},t)=>{return r.createElement(f,Cs({disabled:s,key:e,onFocus:(a=t,()=>{s||j(a)}),onBlur:_,onKeyUp:H,onClick:F,isSelected:L===t,onRemove:()=>{P(e)},hideRemoveButton:s||m,size:p,tabIndex:0},o));var a})),R&&v.length-V.length?r.createElement(Jn,{color:"fg.muted",fontSize:ws[p]},"+",v.length-V.length):null),r.createElement(Lc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:Z},"string"!=typeof t&&Tc.isValidElementType(t)?r.createElement(t,null):t))}ks.displayName="TextInputWithTokensInnerComponent";const Bs=r.forwardRef(ks);function Es(){return Es=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},Es.apply(this,arguments)}Bs.displayName="TextInputWithTokens";const Ts=h.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&&y(["resize:",";"],e.resize)),(e=>e.disabled&&y(["resize:none;"])),po),Ss=r.forwardRef((({value:e,disabled:o,sx:t,required:a,validationStatus:n,rows:l=7,cols:i=30,resize:c="both",block:d,contrast:s,...g},b)=>r.createElement(_c,{sx:t,validationStatus:n,disabled:o,block:d,contrast:s},r.createElement(Ts,Es({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:b,disabled:o,rows:l,cols:i},g)))));Ss.displayName="Textarea";const Is=({children:e,disabled:o,id:t,sx:a})=>r.createElement(Jn,{color:o?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:t,sx:a},e);Is.displayName="InputCaption";const Ms=({children:e,sx:o,id:t})=>{const{captionId:a,disabled:n}=Wd();return r.createElement(Is,{id:t||a||"",disabled:n,sx:o},e)};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)}Ms.displayName="FormControlCaption";const As=({children:e,disabled:o,htmlFor:t,id:a,required:n,visuallyHidden:l,sx:i,as:c="label",...d})=>r.createElement(Io,Ns({isVisible:!l,as:c,htmlFor:t,id:a,sx:{fontWeight:"bold",fontSize:1,display:"block",color:o?"fg.muted":"fg.default",cursor:o?"not-allowed":"pointer",alignSelf:"flex-start",...i}},d),n?r.createElement(mo,{display:"flex",as:"span"},r.createElement(mo,{mr:1},e),r.createElement("span",null,"*")):e);As.displayName="InputLabel";const Os=({as:e,children:o,htmlFor:t,id:a,visuallyHidden:n,sx:l,...i})=>{const{disabled:c,id:d,required:s}=Wd(),g="legend"===e||"span"===e?{as:e,id:a,visuallyHidden:n,required:s,disabled:c,sx:l,...i}:{as:e,id:a,visuallyHidden:n,htmlFor:t||d,required:s,disabled:c,sx:l,...i};return r.createElement(As,g,o)};Os.displayName="FormControlLabel";const Ls=({children:e,sx:o})=>{const{disabled:t,captionId:a}=Wd();return r.createElement(mo,{color:t?"fg.muted":"fg.default",sx:{"> *":{minWidth:Kr(a?"fontSizes.4":"fontSizes.2"),minHeight:Kr(a?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...o},ml:2},e)};Ls.displayName="FormControlLeadingVisual";const js=({children:e,variant:o,sx:t,id:a})=>{const{validationMessageId:n}=Wd();return r.createElement(al,{validationStatus:o,id:a||n||"",sx:t},e)};js.displayName="FormControlValidation";const Rs=r.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:i},c)=>{var d,s,g;const[b,v]=Go(e,{caption:Ms,label:Os,leadingVisual:Ls,validation:js}),u=[cd,Ud,pl,os,Xc,Bs,Ss],f=l(Qn).disabled||o,h=Ho(a),p=b.validation?`${h}-validationMessage`:void 0,m=b.caption?`${h}-caption`:void 0,y=null===(d=b.validation)||void 0===d?void 0:d.props.variant,x=v.find((e=>u.some((o=>r.isValidElement(e)&&e.type===o)))),C=r.isValidElement(x)&&x.props,w=r.isValidElement(x)&&(x.type===Ud||x.type===pl);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>")),b.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?(b.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),v.find((e=>{var o;return r.isValidElement(e)&&(null===(o=e.props)||void 0===o?void 0:o.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):b.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=b.label)||void 0===s?void 0:s.props.visuallyHidden;return r.createElement(Vd,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?r.createElement(mo,{ref:c,display:"flex",alignItems:b.leadingVisual?"center":void 0,sx:i},r.createElement(mo,{sx:{"> input":{marginLeft:0,marginRight:0}}},r.isValidElement(x)&&r.cloneElement(x,{id:h,disabled:f,"aria-describedby":m}),v.filter((e=>r.isValidElement(e)&&![Ud,pl].some((r=>e.type===r))))),b.leadingVisual&&r.createElement(mo,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:b.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),minHeight:b.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),fill:"currentColor"}},ml:2},b.leadingVisual),null===(g=b.label)||void 0===g||!g.props.visuallyHidden||b.caption?r.createElement(mo,{display:"flex",flexDirection:"column",ml:2},b.label,b.caption):r.createElement(r.Fragment,null,b.label,b.caption)):r.createElement(mo,{ref:c,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...i}},b.label,r.isValidElement(x)&&r.cloneElement(x,Object.assign({id:h,required:n,disabled:f,validationStatus:y,"aria-describedby":[p,m].filter(Boolean).join(" ")},x.props)),v.filter((e=>r.isValidElement(e)&&!u.some((r=>e.type===r)))),b.validation?r.createElement(Xn,{show:!0},b.validation):null,b.caption))}));var Ds=Object.assign(Rs,{Caption:Ms,Label:Os,LeadingVisual:Ls,Validation:js});function zs(){return zs=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},zs.apply(this,arguments)}const Ps=({children:e,disabled:o,onChange:t,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===Ds)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Ud)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=La(l);return r.createElement($d.Provider,{value:{disabled:o,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;c(o?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),t(i.current||[],e))}}},r.createElement(dl,zs({disabled:o},a),e))};Ps.displayName="CheckboxGroup";var _s=Object.assign(Ps,{Caption:el,Label:rl,Validation:nl});const Hs={small:56,medium:96,large:128},Fs=h.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"),Kr("colors.canvas.default"),Kr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Hs[r];return{width:o,height:o}}),po),Vs=h(Ha).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);Vs.displayName="CircleBadge.Icon";var Ws=Object.assign(Fs,{Icon:Vs});const Zs=h.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],po);Zs.displayName="Details";const $s=()=>null;function Ks(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 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=()=>null,qs=h.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;}",";"],Kr("shadows.shadow.large"),Kr("radii.2"),Kr("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),po),Ys=h(mo).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;}",";"],Kr("radii.2"),Kr("radii.2"),Kr("colors.border.default"),po);function Xs({theme:e,children:o,backgroundColor:t="canvas.subtle",...a}){return r.Children.toArray(o).every((e=>"string"==typeof e))&&(o=r.createElement(Jn,{theme:e,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},o)),r.createElement(Ys,Gs({theme:e,p:3,backgroundColor:t},a),o)}Xs.displayName="DialogHeader";const Js=h.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:",";}"],Kr("colors.primer.canvas.backdrop")),Qs=t((({children:e,onDismiss:o=Us,isOpen:t,initialFocusRef:a,returnFocusRef:n,...l},c)=>{const d=g(null),s=g(null);To(c,s);const v=g(null),u=()=>{o(),n&&n.current&&n.current.focus()},{getDialogProps:f}=function({modalRef:e,overlayRef:r,isOpen:o,onDismiss:t=$s,initialFocusRef:a,closeButtonRef:n}){const l=b((o=>{e.current&&r.current&&o.target instanceof Node&&!e.current.contains(o.target)&&r.current.contains(o.target)&&t()}),[t,e,r]);i((()=>{if(o)return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[o,l]),i((()=>{o&&(a&&a.current?a.current.focus():n&&n.current&&n.current.focus())}),[o,a,n]);const c=b(((r,o)=>{if(e.current){const t=Array.from(e.current.querySelectorAll("*")).filter(Ks);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=b((e=>{const r=e.shiftKey?-1:1,o=c(e,r);o&&o.focus()}),[c]),s=b((e=>{"Tab"===e.key&&d(e)}),[d]);return ta((e=>{o&&(t(),e.preventDefault())}),[o,t]),{getDialogProps:()=>({onKeyDown:s})}}({modalRef:s,onDismiss:u,isOpen:t,initialFocusRef:a,closeButtonRef:v,returnFocusRef:n,overlayRef:d});return t?r.createElement(r.Fragment,null,r.createElement(Js,{ref:d}),r.createElement(qs,Gs({tabIndex:-1,ref:s,role:"dialog","aria-modal":"true"},l,f()),r.createElement(zo,{icon:gn,ref:v,onClick:u,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));Xs.propTypes={...mo.propTypes},Xs.displayName="Dialog.Header",Qs.displayName="Dialog";var eg=Object.assign(Qs,{Header:Xs});function rg(){return rg=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},rg.apply(this,arguments)}const og=Me({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"}}}}),tg=h.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:",";}",";",";"],Kr("colors.fg.default"),Kr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Kr("radii.2")),(e=>e.full?"-1px":"0"),Kr("space.2"),og,po),ag=r.forwardRef((function({as:e,variant:o="default",...t},a){return r.createElement(tg,rg({ref:a,as:e,variant:o},t))}));const ng=h.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;",";"],Kr("space.3"),Kr("fontSizes.1"),Kr("lineHeights.default"),Kr("colors.header.text"),Kr("colors.header.bg"),po),lg=h.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Kr("space.3"),(({full:e})=>e&&y(["flex:auto;"])),po);lg.displayName="Header.Item";const ig=h.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:",";}",";"],Kr("fontWeights.bold"),Kr("colors.header.logo"),Kr("colors.header.text"),po);ig.displayName="Header.Link";var cg=Object.assign(ng,{Link:ig,Item:lg});function dg(){return dg=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},dg.apply(this,arguments)}const sg=h.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;",";",";",";"],Kr("fontWeights.bold"),Kr("fontSizes.0"),Me({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"}}}),Me({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),po),gg=r.forwardRef((function({as:e,size:o="small",variant:t="default",...a},n){return r.createElement(sg,dg({as:e,size:o,variant:t,ref:n},a))}));function bg(){return bg=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},bg.apply(this,arguments)}const vg=h.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;}",";"],Kr("space.1"),po),ug=h.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;}"]),fg=({collapseButtonRef:e,collapseInlineExpandedChildren:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l,totalLength:i})=>n?r.createElement(jo,{ref:e,onClick:o,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(jo,{ref:t,variant:"invisible",size:"small",onClick:l},r.createElement(Io,null,"Show all ",i),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,hg=({children:e,closeOverflowOverlay:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c,totalLength:d})=>a.length?r.createElement(Qi,{open:n,onOpen:l,onClose:o,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:t,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>r.createElement(jo,bg({variant:"invisible",size:"small"},e,{ref:t}),r.createElement(Io,null,"Show all ",d),r.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},r.createElement(mo,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},r.createElement(mo,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),r.createElement(zo,{onClick:o,icon:gn,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,pg=({children:e,visibleChildCount:o,overflowStyle:t="overlay",sx:a})=>{const n=r.useRef(null),l=r.useRef(null),i=r.useRef(void 0),[c,d]=r.useState({}),[s,g]=r.useState(!1),[b,v]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:u}=co(),f=parseInt(Kr("space.2")(u),10),h=Object.keys(c).filter((e=>!c[e])),p=h.length&&"overlay"===t?((e,r,o)=>{var t,a;return o+e.right-((null===(t=r.current)||void 0===t||null===(a=t.getBoundingClientRect())||void 0===a?void 0:a.left)||0)})(b,n,f):void 0,m=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===b.width&&r.right===b.right||v(r),m.current=e}}),[b]),y=r.useCallback((e=>{var r;const o=(null===(r=n.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=r.useCallback((()=>g(!0)),[g]),C=r.useCallback((()=>{g(!1)}),[g]),w=r.useCallback((()=>{g(!1),o&&"number"==typeof o&&y(o),setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),10)}),[m,y,o]),k=r.useCallback((()=>{d({}),g(!0)}),[d,g]);return r.useEffect((()=>{if(o&&!s){if("auto"===o){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:n.current,rootMargin:`0px -${b.width}px 0px 0px`,threshold:1});for(const o of(null===(e=n.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}y(o)}}),[b,o,y,s]),r.useEffect((()=>{"overlay"!==t&&h.length&&(i.current=parseInt(h[0],10))}),[h,t,s]),r.useEffect((()=>{if("overlay"===t)return;const e=document.querySelector(`[data-index="${i.current}"]`),r=e?Gt(e):null;var o;s&&(r?r.focus():null===(o=l.current)||void 0===o||o.focus())}),[t,s]),o?r.createElement(vg,{ref:n,"data-overflow":"inline"===t&&s?"inline":void 0,sx:a},r.Children.map(e,((e,o)=>r.createElement(ug,{"data-index":o,className:h.includes(o.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===t?r.createElement(fg,{collapseButtonRef:l,collapseInlineExpandedChildren:w,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,showAllTokensInline:k,totalLength:r.Children.toArray(e).length}):r.createElement(hg,{closeOverflowOverlay:C,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,openOverflowOverlay:x,overlayPaddingPx:f,overlayWidth:p,totalLength:r.Children.toArray(e).length},e)):r.createElement(vg,{"data-overflow":"inline",sx:a},e)};function mg(){return mg=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},mg.apply(this,arguments)}pg.displayName="LabelGroup";const yg=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),xg=h.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(po),Cg=r.forwardRef((({children:e,...o},t)=>r.createElement(xg,mg({},o,{ref:t}),r.createElement(Ki,null,e))));Cg.displayName="NavList";const wg=r.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=So,...n},l)=>{const{depth:i}=r.useContext(Eg),c=r.Children.toArray(o).find((e=>f(e)&&e.type===Tg)),d=r.Children.toArray(o).filter((e=>!f(e)||e.type!==Tg));return!f(c)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),c&&f(c)?r.createElement(Bg,{subNav:c,depth:i,defaultOpen:t,sx:a},d):r.createElement(Ki.LinkItem,mg({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:to(yg(i),a)},n),o)}));wg.displayName="NavList.Item";const kg=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function Bg({children:e,subNav:o,depth:t,defaultOpen:a,sx:n=So}){var l;const i=Ho(),c=Ho(),[d,s]=r.useState(null!==(l=a||null)&&void 0!==l&&l),g=r.useRef(null),[b,v]=r.useState(!1);return ot((()=>{if(g.current){g.current.querySelector("[aria-current]:not([aria-current=false])")&&(v(!0),s(!0))}}),[o,i]),r.createElement(kg.Provider,{value:{buttonId:i,subNavId:c,isOpen:d}},r.createElement(mo,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},r.createElement(Ki.Item,{as:"button",id:i,"aria-expanded":d,"aria-controls":c,active:!d&&b,onClick:()=>s((e=>!e)),sx:to({...yg(t),fontWeight:b?"bold":null},n)},e,r.createElement(Ki.TrailingVisual,null,r.createElement(Ha,{icon:Ga,sx:{transform:d?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:g},o)))}Bg.displayName="ItemWithSubNav";const Eg=r.createContext({depth:0}),Tg=({children:e,sx:o=So})=>{const{buttonId:t,subNavId:a,isOpen:n}=r.useContext(kg),{depth:l}=r.useContext(Eg);return t&&a||console.error("NavList.SubNav must be a child of a NavList.Item"),l>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):r.createElement(Eg.Provider,{value:{depth:l+1}},r.createElement(mo,{as:"ul",id:a,"aria-labelledby":t,sx:to({padding:0,margin:0,display:n?"block":"none"},o)},e))};Tg.displayName="SubNav",Tg.displayName="NavList.SubNav";const Sg=Ki.LeadingVisual;Sg.displayName="NavList.LeadingVisual";const Ig=Ki.TrailingVisual;Ig.displayName="NavList.TrailingVisual";const Mg=Ki.Divider;Mg.displayName="NavList.Divider";const Ng={},Ag=({title:e,children:o,sx:t=Ng,...a})=>r.createElement(r.Fragment,null,r.createElement(Ki.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(Ki.Group,mg({},a,{title:e,sx:t}),o));Ag.displayName="NavList.Group";const Og=Object.assign(Cg,{Item:wg,SubNav:Tg,LeadingVisual:Sg,TrailingVisual:Ig,Divider:Mg,Group:Ag}),Lg=h.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Kr("space.4"),Kr("space.4"),Kr("space.4"),Kr("colors.border.default"),po);function jg(){return jg=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},jg.apply(this,arguments)}const Rg=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(Zo),Dg=h.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 );}}"],Kr("colors.fg.default"),Kr("space.1"),Kr("radii.2"),Kr("colors.actionListItem.default.hoverBg"),xo(0),Kr("colors.border.muted"),Kr("colors.accent.fg"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.emphasis"),Kr("colors.primer.fg.disabled"),Kr("colors.primer.fg.disabled"),Kr("space.1"),Kr("space.1"));function zg({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}){const d=r.useCallback((e=>r=>a(r,e)),[a]),s=r.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]}(o,t,!!i,l,c)),[o,t,i,l,c]),g=r.useMemo((()=>s.map((o=>{const{props:t,key:a,content:l}=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}}(o,n,d(o.num));return r.createElement(Dg,jg({},t,{key:a,theme:e}),l)}))),[s,n,d,e]);return g}const Pg=h.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Zo).map((e=>`\n @media (${Zo[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(""),po);function _g({theme:e,pageCount:o,currentPage:t,onPageChange:a=Fg,hrefBuilder:n=Hg,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...d}){const s=zg({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c});return r.createElement(Pg,jg({"aria-label":"Pagination"},d,{theme:e}),r.createElement(mo,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":Rg(i).join(" ")},s))}function Hg(e){return`#${e}`}function Fg(){}function Vg(){return Vg=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},Vg.apply(this,arguments)}function Wg(e){const o=r.useContext(C),{bg:t,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:d,...s}=e,{bg:g,backgroundColor:b,...v}=i||{},u=l||o,f=t||g||b,h={bg:t||(null==i?void 0:i.bg)||(null==i?void 0:i.backgroundColor),borderColor:n||(null==i?void 0:i.borderColor),borderWidth:a,location:c,theme:u};return r.createElement(mo,Vg({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},s,{sx:{...v,"--custom-bg":Kr(`colors.${f}`)({theme:u}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${u.colors.canvas.default}, ${u.colors.canvas.default})`:void 0,position:"relative"}}),d,r.createElement(Pd,h))}_g.displayName="Pagination",Wg.displayName="PointerBox";const Zg=h.div.attrs((({className:e,caret:r="top"})=>({className:Ic(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"),po),$g=h.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);}}",";"],Kr("colors.border.default"),Kr("radii.2"),Kr("space.4"),Kr("colors.canvas.overlay"),Kr("space.3"),Kr("space.2"),Kr("colors.border.default"),Kr("space.2"),Kr("colors.canvas.overlay"),Zg,Zg,Zg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Zg,Zg,Zg,Zg,Kr("space.4"),Kr("space.4"),Zg,Zg,Zg,Zg,Zg,Zg,Kr("space.2"),Kr("space.2"),Zg,Zg,Zg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Zg,Zg,Zg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Zg,Zg,Kr("space.4"),Zg,Zg,Kr("space.3"),Kr("space.3"),po);$g.displayName="Popover.Content";var Kg=Object.assign(Zg,{Content:$g});function Gg(){return Gg=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},Gg.apply(this,arguments)}const Ug=x(["from{mask-position:200%;}to{mask-position:0%;}"]),qg=h.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),Kr("colors.success.emphasis"),Ug,po);qg.displayName="ProgressBar.Item";const Yg={small:"5px",large:"10px",default:"8px"},Xg=h.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Kr("colors.border.default"),Kr("radii.1"),(e=>Yg[e.barSize||"default"]),Le,po),Jg=t((({animated:e,progress:o,bg:t="success.emphasis",barSize:a="default",children:n,...l},i)=>{if(n&&o)throw new Error("You should pass `progress` or children, not both.");const c="string"==typeof o?parseInt(o,10):o,d={"aria-valuenow":c?Math.round(c):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!c&&100!==c};return r.createElement(Xg,Gg({ref:i,role:"progressbar",barSize:a},d,l),null!=n?n:r.createElement(qg,{"data-animated":e,progress:o,sx:{backgroundColor:t}}))}));Jg.displayName="ProgressBar";const Qg=Object.assign(Jg,{Item:qg});var eb,rb=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},ob=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 tb="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)}},ab=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],nb={minimumIntegerDigits:2};class lb{constructor(e,r={}){eb.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;rb(this,eb,{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 ob(this,eb,"f")}formatToParts(e){const r=[],o=ob(this,eb,"f"),t=o.style,a=o.locale;for(const[t,n]of ab){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?nb:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new tb(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}eb=new WeakMap;const ib=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,cb=["year","month","week","day","hour","minute","second","millisecond"];class db{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 db(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(ib))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new db(...a):new db}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new db(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(sb(o,db.from(e)).getTime()-o),a=Math.abs(sb(o,db.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new lb(e,r).format(this)}}function sb(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 gb(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 g=r.getFullYear();let b=r.getMonth();const v=r.getDate();return(l>=27||t+a&&l)&&(r.setDate(v+l*o),a+=Math.abs(r.getFullYear()>=g?r.getMonth()-b:r.getMonth()-b-12),a&&(l=0),b=r.getMonth()),l>=6&&(n+=Math.round(l/7)),(n||a||t)&&(l=0),n>=4&&(a+=Math.round(n/4)),(a||t)&&(n=0),(a>=11||t&&a)&&(r.setMonth(r.getMonth()+a*o),t+=Math.abs(g-r.getFullYear())),t&&(a=0),new db(t*o,a*o,n*o,l*o,i*o,c*o,d*o,s*o)}var bb,vb,ub,fb,hb,pb,mb,yb,xb,Cb,wb,kb=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)},Bb=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 Eb=globalThis.HTMLElement||null,Tb=new db,Sb=new db(0,0,0,0,0,1);class Ib 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 Mb(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 Nb=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=Mb(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,Mb(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class Ab extends Eb{constructor(){super(...arguments),bb.add(this),vb.set(this,!1),ub.set(this,!1),hb.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),wb.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 kb(this,wb,"f")}set onRelativeTimeUpdated(e){kb(this,wb,"f")&&this.removeEventListener("relative-time-updated",kb(this,wb,"f")),Bb(this,wb,"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,ib.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 cb.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(){Nb.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&Bb(this,vb,null!==o&&(this.date&&kb(this,bb,"m",pb).call(this,this.date))!==o,"f"),kb(this,ub,"f")||"title"===e&&kb(this,vb,"f")||Bb(this,ub,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=kb(this,hb,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(kb(this,hb,"f").textContent=e);const a=Date.now();kb(this,vb,"f")||(o=kb(this,bb,"m",pb).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 db;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),g=Math.floor(s/12),b=cb.indexOf(r)||cb.length;return new db(b>=0?g*a:0,b>=1?(s-12*g)*a:0,0,b>=3?(d-30*s)*a:0,b>=4?(c-24*d)*a:0,b>=5?(i-60*c)*a:0,b>=6?(l-60*i)*a:0,b>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=kb(this,bb,"m",mb).call(this,n);let i=e;i="duration"===l?kb(this,bb,"m",yb).call(this,n):"relative"===l?kb(this,bb,"m",xb).call(this,n):kb(this,bb,"m",Cb).call(this,t),i?kb(this,hb,"f").textContent=i:this.shadowRoot===kb(this,hb,"f")&&this.textContent&&(kb(this,hb,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new Ib(e,i,r,o)),"relative"===l||"duration"===l?Nb.observe(this):Nb.unobserve(this),Bb(this,ub,!1,"f")}}vb=new WeakMap,ub=new WeakMap,hb=new WeakMap,wb=new WeakMap,bb=new WeakSet,fb=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},pb=function(e){return new Intl.DateTimeFormat(kb(this,bb,"a",fb),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},mb=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===db.compare(e,this.threshold))return"relative"}return"datetime"},yb=function(e){const r=kb(this,bb,"a",fb),o=this.format,t=this.formatStyle,a=this.tense;let n=Tb;"micro"===o?(e=gb(e),n=Sb,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=Sb)):("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})},xb=function(e){const r=new Intl.RelativeTimeFormat(kb(this,bb,"a",fb),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=Tb),"past"===o&&-1!==e.sign&&(e=Tb);const[t,a]=function(e,r){const o=gb(e,r);if(o.blank)return[0,"second"];for(const e of cb){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)},Cb=function(e){const r=new Intl.DateTimeFormat(kb(this,bb,"a",fb),{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 Ob="undefined"!=typeof globalThis?globalThis:window;try{Ob.RelativeTimeElement=Ab.define()}catch(jb){if(!(Ob.DOMException&&jb instanceof DOMException&&"NotSupportedError"===jb.name||jb instanceof ReferenceError))throw jb}
|
|
7
|
+
var R=Object.getOwnPropertySymbols,D=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var P=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]))D.call(o,l)&&(a[l]=o[l]);if(R){t=R(o);for(var i=0;i<t.length;i++)z.call(o,t[i])&&(a[t[i]]=o[t[i]])}}return a},_=T(P),H=function(e,r){var o=_({},e,r);for(var t in e){var a;e[t]&&"object"==typeof r[t]&&_(o,((a={})[t]=_(e[t],r[t]),a))}return o},F={breakpoints:[40,52,64].map((function(e){return e+"em"}))},V=function(e){return"@media screen and (min-width: "+e+")"},W=function(e,r){return Z(r,e,e)},Z=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},$=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],g=Z(e.theme,d.scale,d.defaults);if("object"!=typeof s)_(n,d(s,g,e));else{if(o.breakpoints=!i&&o.breakpoints||Z(e.theme,"breakpoints",F.breakpoints),Array.isArray(s)){o.media=!i&&o.media||[null].concat(o.breakpoints.map(V)),n=H(n,K(o.media,d,g,s,e));continue}null!==s&&(n=H(n,G(o.breakpoints,d,g,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},K=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?_(n,((i={})[c]=_({},n[c],d),i)):_(n,d)})),n},G=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=V(i);_(n,((d={})[s]=_({},n[s],c),d))}else _(n,c)}return n},U=function(e){var r=e.properties,o=e.property,t=e.scale,a=e.transform,n=void 0===a?W: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},q=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?U(t):t:U({property:o,scale:o})})),$(r)},Y=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&&_(e,r.config)})),$(e)},X={width:{property:"width",scale:"sizes",transform:function(e,r){return Z(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},J=q(X),Q={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Q.bg=Q.backgroundColor;var ee=q(Q),re=q({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}),oe=q({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}),te={space:[0,4,8,16,32,64,128,256,512]},ae=q({gridGap:{property:"gridGap",scale:"space",defaultScale:te.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:te.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:te.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),ne={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"}};ne.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},ne.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},ne.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},ne.borderBottomColor={property:"borderBottomColor",scale:"colors"},ne.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},ne.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},ne.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},ne.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},ne.borderLeftColor={property:"borderLeftColor",scale:"colors"},ne.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},ne.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},ne.borderRightColor={property:"borderRightColor",scale:"colors"},ne.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var le=q(ne),ie={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};ie.bgImage=ie.backgroundImage,ie.bgSize=ie.backgroundSize,ie.bgPosition=ie.backgroundPosition,ie.bgRepeat=ie.backgroundRepeat;var ce=q(ie),de={space:[0,4,8,16,32,64,128,256,512]},se=q({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:de.space},right:{property:"right",scale:"space",defaultScale:de.space},bottom:{property:"bottom",scale:"space",defaultScale:de.space},left:{property:"left",scale:"space",defaultScale:de.space}}),ge={space:[0,4,8,16,32,64,128,256,512]},be=function(e){return"number"==typeof e&&!isNaN(e)},ve=function(e,r){if(!be(e))return Z(r,e,e);var o=e<0,t=Math.abs(e),a=Z(r,t,t);return be(a)?a*(o?-1:1):o?"-"+a:a},ue={};ue.margin={margin:{property:"margin",scale:"space",transform:ve,defaultScale:ge.space},marginTop:{property:"marginTop",scale:"space",transform:ve,defaultScale:ge.space},marginRight:{property:"marginRight",scale:"space",transform:ve,defaultScale:ge.space},marginBottom:{property:"marginBottom",scale:"space",transform:ve,defaultScale:ge.space},marginLeft:{property:"marginLeft",scale:"space",transform:ve,defaultScale:ge.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:ve,defaultScale:ge.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:ve,defaultScale:ge.space}},ue.margin.m=ue.margin.margin,ue.margin.mt=ue.margin.marginTop,ue.margin.mr=ue.margin.marginRight,ue.margin.mb=ue.margin.marginBottom,ue.margin.ml=ue.margin.marginLeft,ue.margin.mx=ue.margin.marginX,ue.margin.my=ue.margin.marginY,ue.padding={padding:{property:"padding",scale:"space",defaultScale:ge.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:ge.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:ge.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:ge.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:ge.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:ge.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:ge.space}},ue.padding.p=ue.padding.padding,ue.padding.pt=ue.padding.paddingTop,ue.padding.pr=ue.padding.paddingRight,ue.padding.pb=ue.padding.paddingBottom,ue.padding.pl=ue.padding.paddingLeft,ue.padding.px=ue.padding.paddingX,ue.padding.py=ue.padding.paddingY;var fe=q(ue.margin),he=q(ue.padding),pe=Y(fe,he),me=q({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}});function ye(){return ye=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},ye.apply(this,arguments)}var xe=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},Ce=[40,52,64].map((function(e){return e+"em"})),we={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},ke={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"},Be={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},Ee={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"},Te=function(e,r){if("number"!=typeof r||r>=0)return xe(e,r,r);var o=Math.abs(r),t=xe(e,o,o);return"string"==typeof t?"-"+t:-1*t},Se=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,r){var o;return ye({},e,((o={})[r]=Te,o))}),{}),Ie=function e(r){return function(o){void 0===o&&(o={});var t=ye({},we,{},o.theme||o),a={},n=function(e){return function(r){var o={},t=xe(r,"breakpoints",Ce),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=xe(ke,l,l),s=xe(Ee,d),g=xe(t,s,xe(t,d,{})),b=xe(Se,d,xe)(g,c,c);if(Be[d])for(var v=Be[d],u=0;u<v.length;u++)a[v[u]]=b;else a[d]=b}else a=ye({},a,{},e(xe(t,c))(t))}return a}},Me=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 Ie(Z(r,e,null))(o.theme)}:function(e,r){return Z(r,e,null)},o.scale=t||c,o.defaults=i;var d=((r={})[n]=o,r);return $(d)},Ne=Me({key:"buttons"}),Ae=Me({key:"textStyles",prop:"textStyle"}),Oe=Me({key:"colorStyles",prop:"colors"}),Le=J.width,je=J.height,Re=J.minWidth,De=J.minHeight,ze=J.maxWidth,Pe=J.maxHeight,_e=J.size,He=J.verticalAlign,Fe=J.display,Ve=J.overflow,We=J.overflowX,Ze=J.overflowY,$e=ee.opacity,Ke=re.fontSize,Ge=re.fontFamily,Ue=re.fontWeight,qe=re.lineHeight,Ye=re.textAlign,Xe=re.fontStyle,Je=re.letterSpacing,Qe=oe.alignItems,er=oe.alignContent,rr=oe.justifyItems,or=oe.justifyContent,tr=oe.flexWrap,ar=oe.flexDirection,nr=oe.flex,lr=oe.flexGrow,ir=oe.flexShrink,cr=oe.flexBasis,dr=oe.justifySelf,sr=oe.alignSelf,gr=oe.order,br=ae.gridGap,vr=ae.gridColumnGap,ur=ae.gridRowGap,fr=ae.gridColumn,hr=ae.gridRow,pr=ae.gridAutoFlow,mr=ae.gridAutoColumns,yr=ae.gridAutoRows,xr=ae.gridTemplateColumns,Cr=ae.gridTemplateRows,wr=ae.gridTemplateAreas,kr=ae.gridArea,Br=le.borderWidth,Er=le.borderStyle,Tr=le.borderColor,Sr=le.borderTop,Ir=le.borderRight,Mr=le.borderBottom,Nr=le.borderLeft,Ar=le.borderRadius,Or=ce.backgroundImage,Lr=ce.backgroundSize,jr=ce.backgroundPosition,Rr=ce.backgroundRepeat,Dr=se.zIndex,zr=se.top,Pr=se.right,_r=se.bottom,Hr=se.left,Fr=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]=U({properties:i,property:o||r,scale:a,defaultScale:l,transform:n}),t&&(c[t]=c[r]),$(c)},Vr=Object.freeze({__proto__:null,alignContent:er,alignItems:Qe,alignSelf:sr,background:ce,backgroundImage:Or,backgroundPosition:jr,backgroundRepeat:Rr,backgroundSize:Lr,border:le,borderBottom:Mr,borderColor:Tr,borderLeft:Nr,borderRadius:Ar,borderRight:Ir,borderStyle:Er,borderTop:Sr,borderWidth:Br,borders:le,bottom:_r,boxShadow:me,buttonStyle:Ne,color:ee,colorStyle:Oe,compose:Y,createParser:$,createStyleFunction:U,display:Fe,flex:nr,flexBasis:cr,flexDirection:ar,flexGrow:lr,flexShrink:ir,flexWrap:tr,flexbox:oe,fontFamily:Ge,fontSize:Ke,fontStyle:Xe,fontWeight:Ue,get:Z,grid:ae,gridArea:kr,gridAutoColumns:mr,gridAutoFlow:pr,gridAutoRows:yr,gridColumn:fr,gridColumnGap:vr,gridGap:br,gridRow:hr,gridRowGap:ur,gridTemplateAreas:wr,gridTemplateColumns:xr,gridTemplateRows:Cr,height:je,justifyContent:or,justifyItems:rr,justifySelf:dr,layout:J,left:Hr,letterSpacing:Je,lineHeight:qe,margin:fe,maxHeight:Pe,maxWidth:ze,minHeight:De,minWidth:Re,opacity:$e,order:gr,overflow:Ve,overflowX:We,overflowY:Ze,padding:he,position:se,right:Pr,shadow:me,size:_e,space:pe,style:Fr,system:q,textAlign:Ye,textShadow:me,textStyle:Ae,top:zr,typography:re,variant:Me,verticalAlign:He,width:Le,zIndex:Dr});const{get:Wr,compose:Zr,system:$r}=Vr,Kr=e=>{return r=e,void 0===(o=Wr(j,e))&&(o=null),function(e){return Z(e.theme,r,o)};var r,o},Gr=Zr(pe,ee,Fe),Ur=Zr(re,$r({whiteSpace:{property:"whiteSpace"}}));Zr(le,me);var qr=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===Yr}(e)}(e)};var Yr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Xr(e,r){return!1!==r.clone&&r.isMergeableObject(e)?oo((o=e,Array.isArray(o)?[]:{}),e,r):e;var o}function Jr(e,r,o){return e.concat(r).map((function(e){return Xr(e,o)}))}function Qr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(r){return Object.propertyIsEnumerable.call(e,r)})):[]}(e))}function eo(e,r){try{return r in e}catch(e){return!1}}function ro(e,r,o){var t={};return o.isMergeableObject(e)&&Qr(e).forEach((function(r){t[r]=Xr(e[r],o)})),Qr(r).forEach((function(a){(function(e,r){return eo(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))})(e,a)||(eo(e,a)&&o.isMergeableObject(r[a])?t[a]=function(e,r){if(!r.customMerge)return oo;var o=r.customMerge(e);return"function"==typeof o?o:oo}(a,o)(e[a],r[a],o):t[a]=Xr(r[a],o))})),t}function oo(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||Jr,o.isMergeableObject=o.isMergeableObject||qr,o.cloneUnlessOtherwiseSpecified=Xr;var t=Array.isArray(r);return t===Array.isArray(e)?t?o.arrayMerge(e,r,o):ro(e,r,o):Xr(r,o)}oo.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,o){return oo(e,o,r)}),{})};var to=T(oo);const ao="light",no="dark",lo=r.createContext({setColorMode:()=>null,setDayScheme:()=>null,setNightScheme:()=>null}),io=({children:e,...o})=>{var t,a,n,l,i,c,d,s;const{theme:g,colorMode:b,dayScheme:v,nightScheme:u}=co(),f=null!==(t=null!==(a=o.theme)&&void 0!==a?a:g)&&void 0!==t?t:j,{resolvedServerColorMode:h}=(()=>{try{var e;const r=null===(e=document.getElementById("__PRIMER_DATA__"))||void 0===e?void 0:e.textContent;if(r)return JSON.parse(r)}catch(e){}return{}})(),m=r.useRef(h),[y,x]=r.useState(null!==(n=null!==(l=o.colorMode)&&void 0!==l?l:b)&&void 0!==n?n:"day"),[C,k]=r.useState(null!==(i=null!==(c=o.dayScheme)&&void 0!==c?c:v)&&void 0!==i?i:ao),[B,E]=r.useState(null!==(d=null!==(s=o.nightScheme)&&void 0!==s?s:u)&&void 0!==d?d:no),T=function(){const[e,o]=r.useState(go);return r.useEffect((()=>{var e,r;const t=null===(e=window)||void 0===e||null===(r=e.matchMedia)||void 0===r?void 0:r.call(e,"(prefers-color-scheme: dark)");function a(e){return e?"night":"day"}function n(e){const r=e.matches;o(a(r))}if(t){const e=t.matches;if(o(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}(),S=m.current||bo(y,T),I=function(e,r,o){switch(e){case"day":case"light":return r;case"dark":case"night":return o}}(S,C,B),{resolvedTheme:M,resolvedColorScheme:N}=r.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:to(e,e.colorSchemes[o]),resolvedColorScheme:o}}return{resolvedTheme:to(e,e.colorSchemes[r]),resolvedColorScheme:r}}(f,I)),[f,I]);return r.useEffect((function(){const e=bo(y,T);m.current&&(m.current!==e&&window.setTimeout((()=>{w.flushSync((()=>{x(e)})),x(y)})),m.current=null)}),[y,T]),r.useEffect((()=>{var e,r;x(null!==(e=null!==(r=o.colorMode)&&void 0!==r?r:b)&&void 0!==e?e:"day")}),[o.colorMode,b]),r.useEffect((()=>{var e,r;k(null!==(e=null!==(r=o.dayScheme)&&void 0!==r?r:v)&&void 0!==e?e:ao)}),[o.dayScheme,v]),r.useEffect((()=>{var e,r;E(null!==(e=null!==(r=o.nightScheme)&&void 0!==r?r:u)&&void 0!==e?e:no)}),[o.nightScheme,u]),r.createElement(lo.Provider,{value:{theme:M,colorScheme:I,colorMode:y,resolvedColorMode:S,resolvedColorScheme:N,dayScheme:C,nightScheme:B,setColorMode:x,setDayScheme:k,setNightScheme:E}},r.createElement(p,{theme:M},e,o.preventSSRMismatch?r.createElement("script",{type:"application/json",id:"__PRIMER_DATA__",dangerouslySetInnerHTML:{__html:JSON.stringify({resolvedServerColorMode:S})}}):null))};function co(){return r.useContext(lo)}function so(e,r){var o;const{colorScheme:t=""}=co();return null!==(o=e[t])&&void 0!==o?o:r}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 bo(e,r){return"auto"===e?r:e}function vo(){return vo=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},vo.apply(this,arguments)}io.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 g(e){n(e.target)&&(r||l(e.target))&&i(e.target)}function b(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 v(e){"hidden"===document.visibilityState&&(o&&(r=!0),u())}function u(){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",v,!0),u(),e.addEventListener("focus",g,!0),e.addEventListener("blur",b,!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 uo=m(["*{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)),fo=h.div.withConfig({displayName:"BaseStyles__Base",componentId:"sc-nfjs56-0"})(["",";",";"],Ur,Gr);function ho(e){const{children:o,color:t="fg.default",fontFamily:a="normal",lineHeight:n="default",...l}=e,{colorScheme:i,dayScheme:c,nightScheme:d}=co();return r.createElement(fo,vo({},l,{color:t,fontFamily:a,lineHeight:n,"data-portal-root":!0,"data-color-mode":null!=i&&i.includes("dark")?"dark":"light","data-light-theme":c,"data-dark-theme":d}),r.createElement(uo,{colorScheme:null!=i&&i.includes("dark")?"dark":"light"}),o)}ho.displayName="BaseStyles";const po=e=>Ie(e.sx),mo=h.div.withConfig({displayName:"Box",componentId:"sc-g0xbh4-0"})(pe,ee,re,J,oe,ae,ce,le,se,me,po),yo=y(["box-shadow:none;outline:2px solid ",";"],Kr("colors.accent.fg")),xo=e=>y(["&:focus:not(:disabled){",";outline-offset:",";&:not(:focus-visible){outline:solid 1px transparent;}}&:focus-visible:not(:disabled){",";outline-offset:",";}"],yo,void 0===e?"2px":e,yo,void 0===e?"2px":e),Co=h.button.withConfig({displayName:"types__StyledButton",componentId:"sc-ws60qy-0"})(["",";",";"],xo("-2px"),po),wo=(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","[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})`}},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","[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:"btn.danger.disabledBorder","[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]),ko=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"}}}),Bo=e=>({...ko(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"}}),Eo=(e="center")=>({justifyContent:"center"===e?"center":"flex-start"});function To(e,r){o(e,(()=>r.current))}const So={},Io=h.span.withConfig({displayName:"_VisuallyHidden__VisuallyHidden",componentId:"sc-11jhm7a-0"})(["",""],(({isVisible:e=!1})=>e?po:"\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 Mo(){return Mo=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},Mo.apply(this,arguments)}const No=t((({scheme:e="secondary",sx:o=So,children:t,...a},n)=>r.createElement(r.Fragment,null,r.createElement(mo,Mo({"aria-hidden":"true",sx:to({display:"inline-block",padding:"2px 5px",fontSize:0,fontWeight:"bold",lineHeight:"condensedUltra",borderRadius:"20px",backgroundColor:"primary"===e?"neutral.emphasis":"neutral.muted",color:"primary"===e?"fg.onEmphasis":"fg.default","&:empty":{display:"none"}},o)},a,{as:"span",ref:n}),t),r.createElement(Io,null," (",t,")"))));function Ao(){return Ao=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},Ao.apply(this,arguments)}No.displayName="CounterLabel";const Oo=t((({children:e,as:o="button",sx:t=So,...n},l)=>{const{leadingVisual:i,trailingVisual:c,trailingAction:d,count:s,icon:g,variant:b="default",size:v="medium",alignContent:u="center",block:f=!1,inactive:h,...p}=n,m=r.useRef(null);To(l,m);const{theme:y}=co(),x=a((()=>to.all([Bo(y),wo(b,y)])),[y,b]),C=a((()=>to(x,t)),[x,t]),w={display:"flex",pointerEvents:"none"};return r.createElement(Co,Ao({as:o,sx:C},p,{ref:m,"data-block":f?"block":null,"data-size":"small"===v||"large"===v?v:void 0,"data-no-visuals":!(i||c||d)||void 0,"data-inactive":!!h||void 0}),g?r.createElement(g,null):r.createElement(r.Fragment,null,r.createElement(mo,{as:"span","data-component":"buttonContent",sx:Eo(u)},i&&r.createElement(mo,{as:"span","data-component":"leadingVisual",sx:{...w}},r.createElement(i,null)),e&&r.createElement("span",{"data-component":"text"},e),void 0===s||c?c?r.createElement(mo,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(c,null)):null:r.createElement(mo,{as:"span","data-component":"trailingVisual",sx:{...w}},r.createElement(No,{"data-component":"ButtonCounter"},s))),d&&r.createElement(mo,{as:"span","data-component":"trailingAction",sx:{...w}},r.createElement(d,null))))}));function Lo(){return Lo=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},Lo.apply(this,arguments)}const jo=t((({children:e,sx:o=So,...t},a)=>{const{block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:d}=t;let s=o;const g={};if(null!==o&&Object.keys(o).length>0){s=Ro({block:n,size:l,leadingVisual:i,trailingVisual:c,trailingAction:d},o);const{color:e}=o;e&&(g["--button-color"]=e)}return r.createElement(Oo,Lo({ref:a,as:"button",sx:s,style:g,type:"button"},t),e)}));function Ro(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}function Do(){return Do=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},Do.apply(this,arguments)}jo.displayName="Button";const zo=t((({sx:e=So,icon:o,...t},a)=>{let n=e;const{size:l}=t;return null!==e&&Object.keys(e).length>0&&(n=Ro({size:l},e)),r.createElement(Oo,Do({icon:o,"data-component":"IconButton",sx:n,type:"button"},t,{ref:a}))}));function Po(){return Po=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},Po.apply(this,arguments)}const _o=t((({children:e,as:o="a",sx:t=So,...a},n)=>r.createElement(Oo,Po({as:o,ref:n,sx:t},a),e)));function Ho(e){const r=n();return e||r}const Fo=!("undefined"==typeof window||!window.document||!window.document.createElement);function Vo(e,o){const t=l(Wo),[a,n]=r.useState((()=>void 0!==t[e]?t[e]:void 0!==o?o:!!Fo&&window.matchMedia(e).matches));return i((()=>{void 0!==t[e]&&n(t[e])}),[t,e]),i((()=>{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 Wo=c({}),Zo={narrow:"(max-width: calc(768px - 0.02px))",regular:"(min-width: 768px)",wide:"(min-width: 1400px)"};function $o(e){return"object"==typeof e&&Object.keys(e).some((e=>["narrow","regular","wide"].includes(e)))}function Ko(e,r){const o=Vo(Zo.narrow,!1),t=Vo(Zo.regular,!1),a=Vo(Zo.wide,!1);if($o(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 Go(e,o){const t=(a=o,n=()=>{},Object.keys(a).reduce(((e,r)=>(e[r]=n(a[r]),e)),{}));var a,n;const l=[],i=Object.keys(o),c=Object.values(o);return r.Children.forEach(e,(e=>{if(!r.isValidElement(e))return void l.push(e);const o=c.findIndex((r=>{if(Array.isArray(r)){const[o,t]=r;return e.type===o&&t(e.props)}return e.type===r}));if(-1===o)return void l.push(e);const a=i[o];t[a]||(t[a]=e)})),[t,l]}function Uo(e){const[r,o]=d(!1);return i((()=>{if(null===e.current)return;const r=new ResizeObserver((e=>{for(const r of e)o(r.target.scrollHeight>r.target.clientHeight||r.target.scrollWidth>r.target.clientWidth)}));return r.observe(e.current),()=>{r.disconnect()}}),[e]),r}var qo=new Map,Yo=new WeakMap,Xo=0,Jo=void 0;function Qo(e){return Object.keys(e).sort().filter((r=>void 0!==e[r])).map((r=>`${r}_${"root"===r?function(e){return e?(Yo.has(e)||(Xo+=1,Yo.set(e,Xo.toString())),Yo.get(e)):"0"}(e.root):e[r]}`)).toString()}function et(e,r,o={},t=Jo){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){let r=Qo(e),o=qo.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},qo.set(r,o)}return o}(o);let 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(),qo.delete(a))}}function rt({threshold:r,delay:o,trackVisibility:t,rootMargin:a,root:n,triggerOnce:l,skip:i,initialInView:c,fallbackInView:d,onChange:s}={}){var g;const[b,v]=e.useState(null),u=e.useRef(),[f,h]=e.useState({inView:!!c,entry:void 0});u.current=s,e.useEffect((()=>{if(i||!b)return;let e;return e=et(b,((r,o)=>{h({inView:r,entry:o}),u.current&&u.current(r,o),o.isIntersecting&&l&&e&&(e(),e=void 0)}),{root:n,rootMargin:a,threshold:r,trackVisibility:t,delay:o},d),()=>{e&&e()}}),[Array.isArray(r)?r.toString():r,b,n,a,l,i,t,d,o]);const p=null==(g=f.entry)?void 0:g.target,m=e.useRef();b||!p||l||i||m.current===p||(m.current=p,h({inView:!!c,entry:void 0}));const y=[v,f.inView,f.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}const ot="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?s:i;function tt(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:tt(e.parentElement):null}const at=!!Fo&&CSS.supports("-webkit-touch-callout","none"),nt=!!Fo&&(CSS.supports("max-height","100dvh")&&at);function lt(e){return nt?`${e}dvh`:`${e}vh`}function it(){return it=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},it.apply(this,arguments)}const ct=1,dt=2,st=3,gt=4,bt={none:0,condensed:3,normal:[3,null,null,4]},vt=r.createContext({padding:"normal",rowGap:"normal",columnGap:"normal",paneRef:{current:null}}),ut={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},ft=({containerWidth:e="xlarge",padding:o="normal",rowGap:t="normal",columnGap:a="normal",children:n,sx:l={},_slotsConfig:i})=>{const{rootRef:c,enableStickyPane:d,disableStickyPane:s,contentTopRef:b,contentBottomRef:v,stickyPaneHeight:u}=function(){const e=r.useRef(null),[o,t]=r.useState(lt(100)),[a,n]=r.useState(0),[l,i,c]=rt(),[d,s]=rt(),g=r.useCallback((()=>{let r="";const o=tt(e.current),n=null==c?void 0:c.target.getBoundingClientRect(),l="number"==typeof a?`${a}px`:a;if(o){const e=o.getBoundingClientRect(),t=n?Math.max(n.top-e.top,0):0;r=`calc(${e.height}px - (max(${t}px, ${l})))`}else{const e=n?Math.max(n.top,0):0;r=`calc(${lt(100)} - (max(${e}px, ${l})))`}t(r)}),[c,a]),[b,v]=r.useState(!1);return ot((()=>{const r=tt(e.current);return b&&(i||s)&&(g(),r?r.addEventListener("scroll",g):window.addEventListener("scroll",g),window.addEventListener("resize",g)),()=>{r?r.removeEventListener("scroll",g):window.removeEventListener("scroll",g),window.removeEventListener("resize",g)}}),[b,i,s,g]),{rootRef:e,enableStickyPane:function(e){v(!0),n(e)},disableStickyPane:function(){v(!1)},contentTopRef:l,contentBottomRef:d,stickyPaneHeight:o}}(),f=g(null),[h,p]=Go(n,null!=i?i:{header:Ct,footer:Nt});return r.createElement(vt.Provider,{value:{padding:o,rowGap:t,columnGap:a,enableStickyPane:d,disableStickyPane:s,contentTopRef:b,contentBottomRef:v,paneRef:f}},r.createElement(mo,{ref:c,style:{"--sticky-pane-height":u},sx:to({padding:bt[o]},l)},r.createElement(mo,{sx:{maxWidth:ut[e],marginX:"auto",display:"flex",flexWrap:"wrap"}},h.header,r.createElement(mo,{sx:{display:"flex",flex:"1 1 100%",flexWrap:"wrap",maxWidth:"100%"}},p),h.footer)))};ft.displayName="Root",ft.displayName="PageLayout";const ht={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 pt=({variant:e="none",sx:o={}})=>{const{padding:t}=r.useContext(vt),a=Ko(e,"none");return r.createElement(mo,{sx:e=>{return to({marginX:(r=bt[t],Array.isArray(r)?r.map((e=>null===e?null:-e)):null===r?null:-r),...ht[a],[`@media screen and (min-width: ${e.breakpoints[1]})`]:{marginX:"0 !important"}},o);var r}})};pt.displayName="HorizontalDivider";const mt={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}`}},yt=m(['body[data-page-layout-dragging="true"]{cursor:col-resize;}body[data-page-layout-dragging="true"] *{user-select:none;}']),xt=({variant:e="none",draggable:o=!1,onDragStart:t,onDrag:a,onDragEnd:n,onDoubleClick:l,sx:i={}})=>{const[c,d]=r.useState(!1),[s,g]=r.useState(!1),b=Ko(e,"none"),v=r.useRef(a),u=r.useRef(n),{paneRef:f}=r.useContext(vt),[h,p]=r.useState(0),[m,y]=r.useState(0),[x,C]=r.useState(0);return r.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]),r.useEffect((()=>{v.current=a}),[a]),r.useEffect((()=>{u.current=n}),[n]),r.useEffect((()=>{function e(e){var r;null===(r=v.current)||void 0===r||r.call(v,e.movementX,!1),e.preventDefault()}function r(e){var r;d(!1),null===(r=u.current)||void 0===r||r.call(u),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=v.current)||void 0===r||r.call(v,o,!0),e.preventDefault()}function t(e){var r;g(!1),null===(r=u.current)||void 0===r||r.call(u),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]),r.createElement(mo,{sx:to({height:"100%",position:"relative",...mt[b]},i)},o?r.createElement(r.Fragment,null,r.createElement(mo,{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==t||t())},onKeyDown:e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(g(!0),null==t||t())},onDoubleClick:l}),r.createElement(yt,null)):null)};xt.displayName="VerticalDivider";const Ct=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const d=Ko($o(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),s=Ko(l,!1),{rowGap:g}=r.useContext(vt);return r.createElement(mo,{as:"header","aria-label":e,"aria-labelledby":o,hidden:s,sx:to({width:"100%",marginBottom:bt[g]},c)},r.createElement(mo,{sx:{padding:bt[t]}},i),r.createElement(pt,{variant:d,sx:{marginTop:bt[g]}}))};Ct.displayName="Header",Ct.displayName="PageLayout.Header";const wt={full:"100%",medium:"768px",large:"1012px",xlarge:"1280px"},kt=({as:e="main","aria-label":o,"aria-labelledby":t,width:a="full",padding:n="none",hidden:l=!1,children:i,sx:c={}})=>{const d=Ko(l,!1),{contentTopRef:s,contentBottomRef:g}=r.useContext(vt);return r.createElement(mo,{as:e,"aria-label":o,"aria-labelledby":t,sx:to({display:d?"none":"flex",flexDirection:"column",order:dt,flexBasis:0,flexGrow:1,flexShrink:1,minWidth:1},c)},r.createElement(mo,{ref:s}),r.createElement(mo,{sx:{width:"100%",maxWidth:wt[a],marginX:"auto",flexGrow:1,padding:bt[n]}},i),r.createElement(mo,{ref:g}))};kt.displayName="Content",kt.displayName="PageLayout.Content";const Bt=e=>void 0!==e.default,Et=e=>["small","medium","large"].includes(e),Tt={start:ct,end:st},St={small:["100%",null,"240px","256px"],medium:["100%",null,"256px","296px"],large:["100%",null,"256px","320px","336px"]},It={small:256,medium:296,large:320},Mt=r.forwardRef((({"aria-label":e,"aria-labelledby":o,position:t="end",positionWhenNarrow:a="inherit",width:n="medium",minWidth:l=256,padding:i="none",resizable:c=!1,widthStorageKey:d="paneWidth",divider:s="none",dividerWhenNarrow:g="inherit",sticky:b=!1,offsetHeader:v=0,hidden:u=!1,children:f,id:h,sx:p={}},m)=>{const y=Ko($o(t)||"inherit"===a?t:{regular:t,narrow:a},"end"),x=Ko($o(s)||"inherit"===g?s:{regular:s,narrow:g},"none"),C=Ko(u,!1),{rowGap:w,columnGap:k,enableStickyPane:B,disableStickyPane:E,paneRef:T}=r.useContext(vt);r.useEffect((()=>{b?null==B||B(v):null==E||E()}),[b,B,E,v]);const S=e=>Et(e)?It[e]:Bt(e)?Number(e.default.split("px")[0]):0,[I,M]=r.useState((()=>{if(!Fo)return S(n);let e;try{e=localStorage.getItem(d)}catch(r){e=null}return e&&!isNaN(Number(e))?Number(e):S(n)})),N=e=>{M(e);try{localStorage.setItem(d,e.toString())}catch(e){}};To(m,T);const A=Uo(T),O=Ho(h),L={};return A&&(o?L["aria-labelledby"]=o:e&&(L["aria-label"]=e)),r.createElement(mo,{sx:e=>to({display:C?"none":"flex",order:Tt[y],width:"100%",marginX:0,..."end"===y?{flexDirection:"column",marginTop:bt[w]}:{flexDirection:"column-reverse",marginBottom:bt[w]},[`@media screen and (min-width: ${e.breakpoints[1]})`]:{width:"auto",marginY:"0 !important",...b?{position:"sticky",top:"number"==typeof v?`${v}px`:v,maxHeight:"var(--sticky-pane-height)"}:{},..."end"===y?{flexDirection:"row-reverse",marginLeft:bt[k]}:{flexDirection:"row",marginRight:bt[k]}}},p)},r.createElement(pt,{variant:{narrow:x,regular:"none"},sx:{["end"===y?"marginBottom":"marginTop"]:bt[w]}}),r.createElement(mo,it({ref:T,style:{"--pane-width":`${I}px`},sx:e=>({"--pane-min-width":Bt(n)?n.min:`${l}px`,"--pane-max-width-diff":"511px","--pane-max-width":Bt(n)?n.max:"calc(100vw - var(--pane-max-width-diff))",width:c?["100%",null,"clamp(var(--pane-min-width), var(--pane-width), var(--pane-max-width))"]:Et(n)?St[n]:n.default,padding:bt[i],overflow:[null,null,"auto"],[`@media screen and (min-width: ${e.breakpoints[3]})`]:{"--pane-max-width-diff":"959px"}})},A&&{tabIndex:0,role:"region"},L,h&&{id:O}),f),r.createElement(xt,{variant:{narrow:"none",regular:c?"line":x},draggable:c,sx:{["end"===y?"marginRight":"marginLeft"]:bt[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(n))}))}));Mt.displayName="PageLayout.Pane";const Nt=({"aria-label":e,"aria-labelledby":o,padding:t="none",divider:a="none",dividerWhenNarrow:n="inherit",hidden:l=!1,children:i,sx:c={}})=>{const d=Ko($o(a)||"inherit"===n?a:{regular:a,narrow:n},"none"),s=Ko(l,!1),{rowGap:g}=r.useContext(vt);return r.createElement(mo,{as:"footer","aria-label":e,"aria-labelledby":o,hidden:s,sx:to({order:gt,width:"100%",marginTop:bt[g]},c)},r.createElement(pt,{variant:d,sx:{marginBottom:bt[g]}}),r.createElement(mo,{sx:{padding:bt[t]}},i))};Nt.displayName="Footer",Nt.displayName="PageLayout.Footer";const At=Object.assign(ft,{Header:Ct,Content:kt,Pane:Mt,Footer:Nt});function Ot(){return Ot=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},Ot.apply(this,arguments)}const Lt=e=>r.createElement(At,Ot({containerWidth:"full",padding:"none",columnGap:"none",rowGap:"none",_slotsConfig:{header:jt,footer:zt}},e));Lt.displayName="Root",Lt.displayName="SplitPageLayout";const jt=({padding:e="normal",divider:o="line",...t})=>r.createElement(At.Header,Ot({padding:e,divider:o},t));jt.displayName="Header",jt.displayName="SplitPageLayout.Header";const Rt=({width:e="large",padding:o="normal",...t})=>r.createElement(At.Content,Ot({width:e,padding:o},t));Rt.displayName="Content",Rt.displayName="SplitPageLayout.Content";const Dt=({position:e="start",sticky:o=!0,padding:t="normal",divider:a="line",...n})=>r.createElement(At.Pane,Ot({position:e,sticky:o,padding:t,divider:a},n));Dt.displayName="Pane",Dt.displayName="SplitPageLayout.Pane";const zt=({padding:e="normal",divider:o="line",...t})=>r.createElement(At.Footer,Ot({padding:e,divider:o},t));zt.displayName="Footer",zt.displayName="SplitPageLayout.Footer";const Pt=Object.assign(Lt,{Header:jt,Content:Rt,Pane:Dt,Footer:zt});function _t({ref:e,closeOnOutsideClick:r,defaultOpen:o,onClickOutside:t}){const[a,n]=d(o),l=g(null),c=null!=e?e:l,s=b((e=>{const{current:r}=c;e.target.closest("details")!==r&&(t&&t(e),e.defaultPrevented||n(!1))}),[c,n,t]);i((()=>{if(a&&r)return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}}),[a,r,s]);const v=e=>{if(!e.defaultPrevented){const r=e.target;n(r.open)}};return{open:a,setOpen:n,getDetailsProps:()=>({onToggle:v,open:a,ref:c})}}function Ht(){const e=g(new Set),r=b(((r,o,...t)=>{const a=window.setTimeout(r,o,...t);return e.current.add(a),a}),[]),o=b((r=>{clearTimeout(r),e.current.delete(r)}),[]);return i((()=>()=>{for(const r of e.current)clearTimeout(r)}),[]),{safeSetTimeout:r,safeClearTimeout:o}}const Ft=!0;function Vt(e){if(!e.defaultPrevented)for(const r of Object.values(Wt).reverse())if(r(e)===Ft||e.defaultPrevented)break}const Wt={};let Zt=0;const $t=({containerRef:e,ignoreClickRefs:r,onClickOutside:o})=>{const t=a((()=>Zt++),[]),n=b((t=>{var a;return t instanceof MouseEvent&&t.button>0||null!==(a=e.current)&&void 0!==a&&a.contains(t.target)||r&&r.some((({current:e})=>null==e?void 0:e.contains(t.target)))?Ft:void o(t)}),[e,r,o]);i((()=>(0===Object.keys(Wt).length&&document.addEventListener("mousedown",Vt,{capture:!0}),function(e,r){Wt[e]=r}(t,n),()=>{!function(e){delete Wt[e]}(t),0===Object.keys(Wt).length&&document.removeEventListener("mousedown",Vt,{capture:!0})})),[t,n])};function*Kt(e,r={}){var o,t;const a=null!==(o=r.strict)&&void 0!==o&&o,n=null!==(t=r.onlyTabbable)&&void 0!==t&&t?qt:Ut,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 Gt(e,r=!1){return Kt(e,{reverse:r,strict:!0,onlyTabbable:!0}).next().value}function Ut(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 qt(e,r=!1){return Ut(e,r)&&"-1"!==e.getAttribute("tabindex")}let Yt,Xt=1e4;function Jt(){return void 0===Yt&&(Yt=/^mac/i.test(window.navigator.platform)),Yt}function Qt({initialFocusRef:e,returnFocusRef:r,containerRef:o,preventFocusOnOpen:t}){i((()=>{if(t)return;const a=r.current;if(e&&e.current)e.current.focus();else if(o.current){const e=Kt(o.current).next().value;null==e||e.focus()}return function(){null==a||a.focus()}}),[e,r,o,t])}function ea(e){if(!e.defaultPrevented)for(const r of Object.values(ra).reverse())if(r(e),e.defaultPrevented)break}const ra={};let oa=0;const ta=(e,r=[e])=>{const o=b(e,r),t=b((e=>{"Escape"===e.key&&o(e)}),[o]),n=a((()=>oa++),[]);i((()=>(0===Object.keys(ra).length&&document.addEventListener("keydown",ea),function(e,r){ra[e]=r}(n,t),()=>{!function(e){delete ra[e]}(n),0===Object.keys(ra).length&&document.removeEventListener("keydown",ea)})),[n,t])};function aa(e){const o=r.useRef(null);return null!=e?e:o}const na=({overlayRef:e,returnFocusRef:r,initialFocusRef:o,onEscape:t,ignoreClickRefs:a,onClickOutside:n,preventFocusOnOpen:l})=>{const i=aa(e);Qt({containerRef:i,returnFocusRef:r,initialFocusRef:o,preventFocusOnOpen:l}),$t({containerRef:i,ignoreClickRefs:a,onClickOutside:n});return ta((e=>{t(e),e.preventDefault()})),{ref:i}};var la,ia=w;la=ia.createRoot,ia.hydrateRoot;const ca={"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"]},da={start:["end","center"],end:["start","center"],center:["end","start"]};function sa(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=ba(o,t,a,n,i,c),g=a,b=n;if(s.top-=r.top,s.left-=r.left,!l){const l=ca[a];let v=0;if(l){let e=a;for(;v<l.length&&va(e,s,d,o);){const a=l[v++];e=a,s=ba(o,t,a,n,i,c),s.top-=r.top,s.left-=r.left,g=a}}const u=da[n];let f=0;if(u){let e=n;for(;f<u.length&&ua(e,s,d,o);){const a=u[f++];e=a,s=ba(o,t,g,a,i,c),s.top-=r.top,s.left-=r.left,b=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&&v<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:g,anchorAlign:b})}(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:ga.side,i=null!==(o=e.align)&&void 0!==o?o:ga.align;return{side:l,align:i,anchorOffset:null!==(t=e.anchorOffset)&&void 0!==t?t:"inside-center"===l?0:ga.anchorOffset,alignmentOffset:null!==(a=e.alignmentOffset)&&void 0!==a?a:"center"!==i&&l.startsWith("inside")?ga.alignmentOffset:0,allowOutOfBounds:null!==(n=e.allowOutOfBounds)&&void 0!==n?n:ga.allowOutOfBounds}}(o))}const ga={side:"outside-bottom",align:"start",anchorOffset:4,alignmentOffset:4,allowOutOfBounds:!1};function ba(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 va(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 ua(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 fa=!1;function ha(){}try{const e=Object.create({},{signal:{get(){fa=!0}}});window.addEventListener("test",ha,e),window.removeEventListener("test",ha,e)}catch(jb){}function pa(){fa||(!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)}}(),fa=!0)}pa();const ma=[];let ya;function xa(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=Gt(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&&qt(i)&&e.contains(i))return void i.focus();if(r&&e.contains(r))return void r.focus();{const r=Gt(e);return void(null==r||r.focus())}}}l.setAttribute("class","sentinel"),l.setAttribute("tabindex","0"),l.setAttribute("aria-hidden","true"),l.onfocus=()=>{const r=Gt(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(ya){const e=ya;ya.container.setAttribute("data-focus-trap","suspended"),ya.controller.abort(),ma.push(e)}d.signal.addEventListener("abort",(()=>{ya=void 0})),a.addEventListener("abort",(()=>{e.removeAttribute("data-focus-trap");const r=e.getElementsByClassName("sentinel");for(;r.length>0;)r[0].remove();const o=ma.findIndex((r=>r.container===e));o>=0&&ma.splice(o,1),function(){const e=ma.pop();e&&xa(e.container,e.initialFocus,e.originalSignal)}()})),document.addEventListener("focus",(e=>{c(e.target)}),{signal:d.signal,capture:!0}),c(document.activeElement),ya={container:e,controller:d,initialFocus:r,originalSignal:a};const s=ma.findIndex((r=>r.container===e));if(s>=0&&ma.splice(s,1),!o)return t}var Ca;pa(),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"}(Ca||(Ca={}));const wa={ArrowLeft:Ca.ArrowHorizontal,ArrowDown:Ca.ArrowVertical,ArrowUp:Ca.ArrowVertical,ArrowRight:Ca.ArrowHorizontal,h:Ca.HL,j:Ca.JK,k:Ca.JK,l:Ca.HL,a:Ca.AD,s:Ca.WS,w:Ca.WS,d:Ca.AD,Tab:Ca.Tab,Home:Ca.HomeAndEnd,End:Ca.HomeAndEnd,PageUp:Ca.PageUpDown,PageDown:Ca.PageUpDown,Backspace:Ca.Backspace},ka={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 Ba(e){const r=ka[e.key];if("Tab"===e.key&&e.shiftKey)return"previous";const o=Jt();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 Ea="data-is-active-descendant",Ta="activated-directly",Sa="activated-indirectly",Ia="data-has-active-descendant";function Ma(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)?Ca.ArrowAll:Ca.ArrowVertical)|Ca.HomeAndEnd,s=null!==(t=null==r?void 0:r.focusOutBehavior)&&void 0!==t?t:"stop",g=null!==(a=null==r?void 0:r.focusInStrategy)&&void 0!==a?a:"previous",b=null==r?void 0:r.activeDescendantControl,v=null==r?void 0:r.onActiveDescendantChanged;let u;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=u;u=e,b?e&&document.activeElement===b?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_"+Xt++),r&&r!==o&&r.removeAttribute(Ea),b&&(t||b.getAttribute("aria-activedescendant")!==o.id)&&(b.setAttribute("aria-activedescendant",o.id),e.setAttribute(Ia,o.id),o.setAttribute(Ea,t?Ta:Sa),null==v||v(o,r,t))}function y(r=u){"first"===g&&(u=void 0),null==b||b.removeAttribute("aria-activedescendant"),e.removeAttribute(Ia),null==r||r.removeAttribute(Ea),null==v||v(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");u||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===u){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(...Kt(e,k));p("function"==typeof g?g(document.body):h());new MutationObserver((e=>{for(const r of e)for(const e of r.removedNodes)e instanceof HTMLElement&&w(...Kt(e,k));for(const r of e)for(const e of r.addedNodes)e instanceof HTMLElement&&x(...Kt(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}),b?(e.addEventListener("focusin",(e=>{e.target instanceof HTMLElement&&i.includes(e.target)&&(b.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}),b.addEventListener("focusin",(()=>{u?m(void 0,u):p(h())})),b.addEventListener("focusout",(()=>{y()}))):e.addEventListener("focusin",(r=>{if(r.target instanceof HTMLElement)if(void 0!==T)T>=0&&i[T]!==u&&p(i[T]),T=void 0;else if("previous"===g)p(r.target);else if("closest"===g||"first"===g){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 g)if(r.relatedTarget instanceof Element&&!e.contains(r.relatedTarget)){const e=g(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!=b?b:e;let I;return"closest"===g&&document.addEventListener("keydown",(e=>{"Tab"===e.key&&(I=Ba(e))}),{signal:E,capture:!0}),S.addEventListener("keydown",(o=>{var t;if(o.key in ka){const a=wa[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&&Jt()&&!e.metaKey)return!0;if("ArrowDown"===o&&!Jt()&&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=Ba(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(!u)return 0;const r=i.indexOf(u);return-1!==r?r:u===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])}b?p(n||u,!0):n&&(I=a,n.focus({preventScroll:f})),("Tab"!==o.key||n)&&o.preventDefault()}}}),{signal:E}),B}function Na(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]:g,[i]:b}=r.getBoundingClientRect(),v=s>b-a;if(d<g+t){const e=d-g+r[c];r.scrollTo({behavior:n,[l]:e-t})}else if(v){const e=s-b+r[c];r.scrollTo({behavior:n,[l]:e+a})}}function Aa(e,r){const o=g(e);ot((()=>{o.current=e})),ot((()=>{const e=r&&"current"in r?r.current:document.documentElement;if(!e)return;const t=new ResizeObserver((e=>{o.current(e)}));return t.observe(e),()=>{t.disconnect()}}),[r])}function Oa(e,o=[]){const t=aa(null==e?void 0:e.floatingElementRef),a=aa(null==e?void 0:e.anchorElementRef),[n,l]=r.useState(void 0),i=r.useCallback((()=>{t.current instanceof Element&&a.current instanceof Element?l(sa(t.current,a.current,e)):l(void 0)}),[t,a,...o]);return ot(i,[i]),Aa(i),{floatingElementRef:t,anchorElementRef:a,position:n}}function La(e){const[r,o]=d(e||null),t=g(null);t.current=r;const a=b((e=>{t.current=e,o(e)}),[t]);return[t,a]}function ja(e,r,o){const[t,a]=d(o),n=null!=e?e:t,l=b((e=>{a(e),r&&r(e)}),[r]);return[n,l]}const Ra=(e,o,t,a)=>{((e,o,t)=>{const[a,n]=r.useState(void 0);r.useEffect((function(){const e=t.current,r=e=>{0!==e.detail&&n("mouse-click")},o=e=>{["Space","Enter","ArrowDown","ArrowUp"].includes(e.code)&&n(e.code)};return null==e||e.addEventListener("click",r),null==e||e.addEventListener("keydown",o),()=>{null==e||e.removeEventListener("click",r),null==e||e.removeEventListener("keydown",o)}}),[t]),r.useEffect((function(){if(!e||!o.current)return;const r=Kt(o.current);if("mouse-click"===a){if(!t.current)throw new Error("For focus management, please attach anchorRef");t.current.focus()}else if(a&&["ArrowDown","Space","Enter"].includes(a)){const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===a){const e=[...r],o=e[e.length-1];setTimeout((()=>o.focus()))}else{const e=r.next().value;setTimeout((()=>null==e?void 0:e.focus()))}}),[e,a,t])})(e,t,a),((e,o)=>{const t=aa(o);r.useEffect((function(){e&&t.current&&[...Kt(t.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,t]),r.useEffect((function(){if(!e||!t.current)return;const r=t.current,o=e=>{var o;const t=document.activeElement;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName)return;if(e.ctrlKey||e.altKey||e.metaKey)return;if(!a(e))return;e.stopPropagation();const n=e.key.toLowerCase();let l;const i=[...Kt(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(t);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",o),()=>r.removeEventListener("keydown",o)}),[e,t]);const a=e=>1===e.key.length&&/[a-z\d]/i.test(e.key)})(e,t),Da(e,o,t,a),za(e,t,a)},Da=(e,o,t,a)=>{r.useEffect((()=>{const r=t.current,n=a.current,l=r=>{e&&"Tab"===r.key&&(null==o||o("tab"))};return null==r||r.addEventListener("keydown",l),null==n||n.addEventListener("keydown",l),()=>{null==r||r.removeEventListener("keydown",l),null==n||n.removeEventListener("keydown",l)}}),[e,o,t,a])},za=(e,o,t)=>{r.useEffect((()=>{const r=o.current,a=t.current,n=o=>{if(!e||!r)return;const t=Kt(r);if("ArrowDown"===o.key){const e=t.next().value;setTimeout((()=>null==e?void 0:e.focus()))}else if("ArrowUp"===o.key){const e=[...t],r=e[e.length-1];setTimeout((()=>r.focus()))}};return null==a||a.addEventListener("keydown",n),()=>null==a?void 0:a.addEventListener("keydown",n)}),[e,o,t])};function Pa(e,o=[]){const t=aa(null==e?void 0:e.containerRef),a=aa(null==e?void 0:e.initialFocusRef),n=null==e?void 0:e.disabled,l=r.useRef(),i=r.useRef(null);function c(){var r;null===(r=l.current)||void 0===r||r.abort(),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),r.useEffect((()=>{if(t.current instanceof HTMLElement){var e;if(!n)return l.current=xa(t.current,null!==(e=a.current)&&void 0!==e?e:void 0),()=>{c()};c()}}),[t,a,n,...o]),{containerRef:t,initialFocusRef:a}}function _a(){return _a=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},_a.apply(this,arguments)}const Ha=h(r.forwardRef(((e,o)=>{const{icon:t,...a}=e;return r.createElement(t,_a({},a,{ref:o}))}))).withConfig({displayName:"Octicon",componentId:"sc-9kayk9-0"})(["",""],(({color:e,sx:r})=>po({sx:{color:e,...r}})));var Fa={small:16,medium:32,large:64};function Va(e,o,t){var a=t(),n=Object.keys(a),l=r.forwardRef((function(e,t){var l=e["aria-label"],i=e["aria-labelledby"],c=e.tabIndex,d=e.className,s=void 0===d?o:d,g=e.fill,b=void 0===g?"currentColor":g,v=e.size,u=void 0===v?16:v,f=e.verticalAlign,h=void 0===f?"text-bottom":f,p=e.id,m=e.title,y=Fa[u]||u,x=function(e,r){return e.map((function(e){return parseInt(e,10)})).reduce((function(e,o){return o<=r?o:e}),e[0])}(n,y),C=a[x].width,w=y*(C/x),k=a[x].path;return r.createElement("svg",{ref:t,"aria-hidden":l?"false":"true",tabIndex:c,focusable:c>=0?"true":"false","aria-label":l,"aria-labelledby":i,role:"img",className:s,viewBox:"0 0 ".concat(C," ").concat(x),width:w,height:y,fill:b,id:p,style:{display:"inline-block",userSelect:"none",verticalAlign:h,overflow:"visible"}},m?r.createElement("title",null,m):null,k)}));return l.displayName=e,l}var Wa=Va("AlertIcon","octicon octicon-alert",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),Za=Va("AlertFillIcon","octicon octicon-alert-fill",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),$a=Va("CheckIcon","octicon octicon-check",(function(){return{16:{width:16,path:r.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:r.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"})}}})),Ka=Va("CheckCircleFillIcon","octicon octicon-check-circle-fill",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),Ga=Va("ChevronDownIcon","octicon octicon-chevron-down",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),Ua=Va("ChevronRightIcon","octicon octicon-chevron-right",(function(){return{12:{width:12,path:r.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:r.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:r.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"})}}})),qa=Va("FileDirectoryFillIcon","octicon octicon-file-directory-fill",(function(){return{16:{width:16,path:r.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:r.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"})}}})),Ya=Va("FileDirectoryOpenFillIcon","octicon octicon-file-directory-open-fill",(function(){return{16:{width:16,path:r.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"})}}})),Xa=Va("GitMergeIcon","octicon octicon-git-merge",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}),r.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"}))}}})),Ja=Va("GitMergeQueueIcon","octicon octicon-git-merge-queue",(function(){return{16:{width:16,path:r.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:r.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"})}}})),Qa=Va("GitPullRequestIcon","octicon octicon-git-pull-request",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),en=Va("GitPullRequestClosedIcon","octicon octicon-git-pull-request-closed",(function(){return{16:{width:16,path:r.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:r.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"})}}})),rn=Va("GitPullRequestDraftIcon","octicon octicon-git-pull-request-draft",(function(){return{16:{width:16,path:r.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:r.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"})}}})),on=Va("IssueClosedIcon","octicon octicon-issue-closed",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.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"}),r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),tn=Va("IssueDraftIcon","octicon octicon-issue-draft",(function(){return{16:{width:16,path:r.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:r.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"})}}})),an=Va("IssueOpenedIcon","octicon octicon-issue-opened",(function(){return{16:{width:16,path:r.createElement(r.Fragment,null,r.createElement("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),r.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:r.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"})}}})),nn=Va("PlusIcon","octicon octicon-plus",(function(){return{16:{width:16,path:r.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:r.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"})}}})),ln=Va("QuestionIcon","octicon octicon-question",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),cn=Va("SearchIcon","octicon octicon-search",(function(){return{16:{width:16,path:r.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:r.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"})}}})),dn=Va("SkipIcon","octicon octicon-skip",(function(){return{16:{width:16,path:r.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:r.createElement(r.Fragment,null,r.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"}),r.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"}))}}})),sn=Va("TriangleDownIcon","octicon octicon-triangle-down",(function(){return{16:{width:16,path:r.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:r.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"})}}})),gn=Va("XIcon","octicon octicon-x",(function(){return{12:{width:12,path:r.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:r.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:r.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 bn(e={},o=[]){const t=aa(e.containerRef),a=!!e.activeDescendantFocus,n=aa("boolean"!=typeof e.activeDescendantFocus&&e.activeDescendantFocus?e.activeDescendantFocus:void 0),l=e.disabled,c=r.useRef();return i((()=>{if(t.current instanceof HTMLElement&&(!a||n.current instanceof HTMLElement)){if(!l){var r;const o={...e,activeDescendantControl:null!==(r=n.current)&&void 0!==r?r:void 0};return c.current=Ma(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()}}),[l,...o]),{containerRef:t,activeDescendantControlRef:n}}const vn="__primerPortalRoot__",un="__default__",fn={};function hn(e,r=un){fn[r]=e}const pn=({children:e,onMount:o,containerName:t})=>{const a=r.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 ot((()=>{let e=t;void 0===e&&(e=un,function(){const e=fn[un];if(!e||!document.body.contains(e)){let e=document.getElementById(vn);if(!(e instanceof Element)){e=document.createElement("div"),e.setAttribute("id",vn),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)}hn(e)}}());const r=fn[e];if(!r)throw new Error(`Portal container '${t}' is not yet registered. Container must be registered with registerPortal before use.`);return r.appendChild(n),null==o||o(),()=>{r.removeChild(n)}}),[n]),k(e,n)};function mn(){return mn=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},mn.apply(this,arguments)}function yn({"aria-labelledby":e,children:o,...t}){const a=r.useRef(null),n=Uo(a)?{"aria-labelledby":e,role:"region",tabIndex:0}:{};return r.createElement(mo,mn({},t,n,{ref:a,sx:{overflow:"auto"}}),o)}function xn(){return xn=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},xn.apply(this,arguments)}yn.displayName="ScrollableRegion";const Cn=h("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;}}"],Kr("colors.primer.canvas.backdrop"),Kr("animation.easeOutCubic")),wn={small:"480px",large:"640px",auto:"auto"},kn={small:"296px",medium:"320px",large:"480px",xlarge:"640px"},Bn=h.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%);}}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>{var r;return kn[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return wn[null!==(r=e.height)&&void 0!==r?r:"auto"]}),(e=>{var r;return kn[null!==(r=e.width)&&void 0!==r?r:"xlarge"]}),(e=>{var r;return wn[null!==(r=e.height)&&void 0!==r?r:"auto"]}),po),En=({dialogLabelId:e,title:o,subtitle:t,dialogDescriptionId:a,onClose:n})=>{const l=b((()=>{n("close-button")}),[n]);return r.createElement(zn.Header,null,r.createElement(mo,{display:"flex"},r.createElement(mo,{display:"flex",px:2,py:"6px",flexDirection:"column",flexGrow:1},r.createElement(zn.Title,{id:e},null!=o?o:"Dialog"),t&&r.createElement(zn.Subtitle,{id:a},t)),r.createElement(zn.CloseButton,{onClose:l})))};En.displayName="DefaultHeader";const Tn=({children:e})=>r.createElement(zn.Body,null,e);Tn.displayName="DefaultBody";const Sn=({footerButtons:e})=>{const{containerRef:o}=bn({bindKeys:Ca.ArrowHorizontal|Ca.Tab,focusInStrategy:"closest"});return e?r.createElement(zn.Footer,{ref:o},r.createElement(zn.Buttons,{buttons:e})):null},In={narrow:"center",regular:"center"},Mn=r.forwardRef(((e,o)=>{const{title:t="Dialog",subtitle:a="",renderHeader:n,renderBody:l,renderFooter:i,onClose:c,role:d="dialog",width:s="xlarge",height:b="auto",footerButtons:v=[],position:u=In,sx:f}=e,h=Ho(),p=Ho(),m=g(null);for(const e of v)e.autoFocus&&(e.ref=m);const y={...e,title:t,subtitle:a,role:d,dialogLabelId:h,dialogDescriptionId:p},x=g(null);To(o,x);const C=g(null);Pa({containerRef:x,restoreFocusOnCleanUp:!0,initialFocusRef:m}),ta((e=>{c("escape"),e.preventDefault()}),[c]),r.useEffect((()=>{const e=document.body.style.overflow||"";if("hidden"!==e)return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}),[]);const w=(null!=n?n:En)(y),k=(null!=l?l:Tn)(y),B=(null!=i?i:Sn)(y),E="string"==typeof u?{"data-position-regular":u}:Object.fromEntries(Object.entries(u).map((([e,r])=>[`data-position-${e}`,r])));return r.createElement(r.Fragment,null,r.createElement(pn,null,r.createElement(Cn,xn({ref:C},E),r.createElement(Bn,xn({width:s,height:b,ref:x,role:d,"aria-labelledby":h,"aria-describedby":p,"aria-modal":!0},E,{sx:f}),w,r.createElement(yn,{"aria-labelledby":h,className:"DialogOverflowWrapper"},k),B))))}));Mn.displayName="Dialog";const Nn=h.div.withConfig({displayName:"Dialog__Header",componentId:"sc-uaxjsn-2"})(["box-shadow:0 1px 0 ",";padding:",";z-index:1;flex-shrink:0;",";"],Kr("colors.border.default"),Kr("space.2"),po),An=h.h1.withConfig({displayName:"Dialog__Title",componentId:"sc-uaxjsn-3"})(["font-size:",";font-weight:",";margin:0;",";"],Kr("fontSizes.1"),Kr("fontWeights.bold"),po),On=h.h2.withConfig({displayName:"Dialog__Subtitle",componentId:"sc-uaxjsn-4"})(["font-size:",";color:",";margin:0;margin-top:",";",";"],Kr("fontSizes.0"),Kr("colors.fg.muted"),Kr("space.1"),po),Ln=h.div.withConfig({displayName:"Dialog__Body",componentId:"sc-uaxjsn-5"})(["flex-grow:1;overflow:auto;padding:",";",";"],Kr("space.3"),po),jn=h.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;",";"],Kr("colors.border.default"),Kr("space.3"),Kr("space.2"),po),Rn=h(jo).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;"],Kr("colors.fg.muted"),Kr("space.2")),Dn=({onClose:e})=>r.createElement(Rn,{"aria-label":"Close",onClick:e},r.createElement(Ha,{icon:gn}));Dn.displayName="CloseButton";const zn=Object.assign(Mn,{Header:Nn,Title:An,Subtitle:On,Body:Ln,Footer:jn,Buttons:({buttons:e})=>{var o;const t=aa(null===(o=e.find((e=>e.autoFocus)))||void 0===o?void 0:o.ref);let a=0;const[n,l]=d(0);return i((()=>{var e;1===n?null===(e=t.current)||void 0===e||e.focus():l(n+1)}),[t,n]),r.createElement(r.Fragment,null,e.map(((e,o)=>{const{content:n,buttonType:l="default",autoFocus:i=!1,...c}=e;return r.createElement(jo,xn({key:o},c,{variant:"normal"===l?"default":l,ref:i&&0===a?(a++,t):null}),n)})))},CloseButton:Dn});function Pn(){return Pn=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},Pn.apply(this,arguments)}const _n=h.div.withConfig({displayName:"ConfirmationDialog__StyledConfirmationHeader",componentId:"sc-11fz0jh-0"})(["padding:",";display:flex;flex-direction:row;"],Kr("space.2")),Hn=h(mo).attrs({as:"h1"}).withConfig({displayName:"ConfirmationDialog__StyledTitle",componentId:"sc-11fz0jh-1"})(["font-size:",";font-weight:",";padding:6px ",";flex-grow:1;margin:0;"],Kr("fontSizes.3"),Kr("fontWeights.bold"),Kr("space.2")),Fn=({title:e,onClose:o,dialogLabelId:t})=>{const a=b((()=>{o("close-button")}),[o]);return r.createElement(_n,null,r.createElement(Hn,{id:t},e),r.createElement(zn.CloseButton,{onClose:a}))};Fn.displayName="ConfirmationHeader";const Vn=h(mo).withConfig({displayName:"ConfirmationDialog__StyledConfirmationBody",componentId:"sc-11fz0jh-2"})(["font-size:",";padding:0 "," "," ",";color:",";flex-grow:1;"],Kr("fontSizes.1"),Kr("space.3"),Kr("space.3"),Kr("space.3"),Kr("colors.fg.muted")),Wn=({children:e})=>r.createElement(Vn,null,e);Wn.displayName="ConfirmationBody";const Zn=h(mo).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:"," "," ",";"],Kr("space.2"),Kr("space.1"),Kr("space.3"),Kr("space.3")),$n=({footerButtons:e})=>{const{containerRef:o}=bn({bindKeys:Ca.ArrowHorizontal|Ca.Tab,focusInStrategy:"closest"});return r.createElement(Zn,{ref:o},r.createElement(zn.Buttons,{buttons:null!=e?e:[]}))};$n.displayName="ConfirmationFooter";const Kn=e=>{const{onClose:o,title:t,cancelButtonContent:a="Cancel",confirmButtonContent:n="OK",confirmButtonType:l="normal",children:i}=e,c="danger"===l,d=[{content:a,onClick:b((()=>{o("cancel")}),[o]),autoFocus:c},{content:n,buttonType:l,onClick:b((()=>{o("confirm")}),[o]),autoFocus:!c}];return r.createElement(zn,{onClose:o,title:t,footerButtons:d,role:"alertdialog",width:"medium",renderHeader:Fn,renderBody:Wn,renderFooter:$n},i)};Kn.displayName="ConfirmationDialog";let Gn=null;function Un(){const{theme:e,colorMode:o,dayScheme:t,nightScheme:a}=co(),n=b((n=>async function(e,o){const{content:t,...a}=o;return new Promise((o=>{Gn||=document.createElement("div"),Gn.isConnected||document.body.append(Gn);const n=la(Gn);n.render(r.createElement(io,e,r.createElement(ho,null,r.createElement(Kn,Pn({},a,{onClose:e=>{n.unmount(),o("confirm"===e)}}),t))))}))}({theme:e,colorMode:o,dayScheme:t,nightScheme:a},n)),[e,o,t,a]);return n}const qn=x(["0%{opacity:0;transform:translateY(-100%);}100%{opacity:1;transform:translateY(0);}"]),Yn=h.div.withConfig({displayName:"ValidationAnimationContainer__AnimatedElement",componentId:"sc-8z5a3g-0"})(["animation:",";@media (prefers-reduced-motion){animation:none;}"],(e=>e.show&&y(["170ms "," cubic-bezier(0.44,0.74,0.36,1);"],qn))),Xn=({show:e,children:o})=>{const[t,a]=d(e);i((()=>{e&&a(!0)}),[e]);return t?r.createElement(mo,{height:e?"auto":0,overflow:"hidden"},r.createElement(Yn,{show:e,onAnimationEnd:()=>{e||a(!1)}},o)):null},Jn=h.span.withConfig({displayName:"Text",componentId:"sc-17v1xeu-0"})(["",";",";",";"],Ur,Gr,po),Qn=r.createContext({}),el=({children:e,sx:o})=>{const{disabled:t,captionId:a}=r.useContext(Qn);return r.createElement(Jn,{color:t?"fg.muted":"fg.subtle",fontSize:1,id:a,sx:o},e)};el.displayName="CheckboxOrRadioGroupCaption";const rl=({children:e,visuallyHidden:o=!1,sx:t})=>{const{required:a,disabled:n}=r.useContext(Qn);return r.createElement(Io,{isVisible:!o,title:a?"required field":void 0,sx:{display:"block",color:n?"fg.muted":void 0,fontSize:2,...t}},a?r.createElement(mo,{display:"flex",as:"span"},r.createElement(mo,{mr:1},e),r.createElement("span",null,"*")):e)};rl.displayName="CheckboxOrRadioGroupLabel";const ol={success:Ka,error:Za},tl={success:"success.fg",error:"danger.fg"},al=({children:e,id:o,validationStatus:t,sx:a})=>{const n=t?ol[t]:void 0,l=t?tl[t]:void 0,i=16/12;return r.createElement(Jn,{sx:{fontSize:0,fontWeight:"bold",alignItems:"start",color:l,display:"flex",a:{color:"currentColor",textDecoration:"underline"},...a},"aria-live":"polite"},n&&r.createElement(mo,{as:"span",alignItems:"center",display:"flex",minHeight:16,mr:1,"aria-hidden":"true"},r.createElement(n,{size:12,fill:"currentColor"})),r.createElement(mo,{as:"span",id:o,sx:{lineHeight:i}},e))};al.displayName="InputValidation";const nl=({children:e,variant:o,sx:t})=>{const{validationMessageId:a=""}=r.useContext(Qn);return r.createElement(al,{validationStatus:o,id:a,sx:t},e)};function ll(){return ll=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},ll.apply(this,arguments)}nl.displayName="CheckboxOrRadioGroupValidation";const il=h.div.withConfig({displayName:"CheckboxOrRadioGroup__Body",componentId:"sc-1t4rdk-0"})(["display:flex;flex-direction:column;list-style:none;margin:0;padding:0;> * + *{margin-top:",";}"],Kr("space.2")),cl=({"aria-labelledby":e,children:o,disabled:t=!1,id:a,required:n=!1,sx:l})=>{const[i,c]=Go(o,{caption:el,label:rl,validation:nl}),d=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===rl)),s=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===nl?e:null)),g=r.Children.toArray(o).find((e=>r.isValidElement(e)&&e.type===el?e:null)),b=Ho(a),v=s?`${b}-validationMessage`:void 0,u=g?`${b}-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=r.isValidElement(d)&&!d.props.visuallyHidden;return r.createElement(Qn.Provider,{value:{disabled:t,required:n,captionId:u,validationMessageId:v}},r.createElement("div",null,r.createElement(mo,ll({border:"none",margin:0,mb:s?2:void 0,padding:0},d&&{as:"fieldset",disabled:t},{sx:l}),d?r.createElement(mo,{as:"legend",mb:f?2:void 0,padding:0},i.label,i.caption,r.isValidElement(i.validation)&&i.validation.props.children&&r.createElement(Io,null,i.validation.props.children)):i.caption,r.createElement(il,!d&&{"aria-labelledby":e,"aria-describedby":[v,u].filter(Boolean).join(" "),as:"div",role:"group"},r.Children.toArray(c).filter((e=>r.isValidElement(e))))),s&&r.createElement(Xn,{"aria-hidden":Boolean(d),show:!0},i.validation)))};cl.displayName="CheckboxOrRadioGroup";var dl=Object.assign(cl,{Caption:el,Label:rl,Validation:nl});function sl(){return sl=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},sl.apply(this,arguments)}const gl=c(null),bl=({children:e,disabled:o,onChange:t,name:a,...n})=>{const[l,i]=La(null);return r.createElement(gl.Provider,{value:{disabled:o,name:a,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;o&&i(r)})(e),t(l.current,e))}}},r.createElement(dl,sl({disabled:o},n),e))};bl.displayName="RadioGroup";var vl=Object.assign(bl,{Caption:el,Label:rl,Validation:nl});const ul=y(["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:var(--color-input-disabled-bg,rgba(175,184,193,0.2));border-color:",";}"],Kr("colors.neutral.emphasis"),Kr("borderWidths.1"),Kr("colors.border.default"));function fl(){return fl=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},fl.apply(this,arguments)}const hl=h.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,Kr("colors.accent.fg"),Kr("colors.fg.muted"),xo(),po),pl=r.forwardRef((({checked:e,disabled:o,name:t,onChange:a,sx:n,required:i,validationStatus:c,value:d,...s},g)=>{const b=l(gl),v=t||(null==b?void 0:b.name);return v||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"),r.createElement(hl,fl({type:"radio",value:d,name:v,ref:g,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==b?void 0:b.onChange)&&b.onChange(e),a&&a(e)}},s))}));pl.displayName="Radio";const ml=r.createContext({});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=h.h2.withConfig({displayName:"Heading__StyledHeading",componentId:"sc-1c1dgg0-0"})(["font-weight:",";font-size:",";margin:0;",";"],Kr("fontWeights.bold"),Kr("fontSizes.5"),po),Cl=t((({as:e="h2",...o},t)=>{const a=r.useRef(null);return To(t,a),r.createElement(xl,yl({as:e},o,{ref:a}))}));Cl.displayName="Heading";const wl=r.createContext({}),kl=(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"},Bl="20px",El=r.createContext({});const Tl=function(){};function Sl(){return Sl=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},Sl.apply(this,arguments)}const Il=t((({as:e,children:o,sx:t=So,visuallyHidden:a=!1,...n},l)=>{var i;const c=r.useRef(null);To(l,c);const{headingId:d,variant:s}=r.useContext(El),{container:g}=r.useContext(ml);"ActionMenu"===g&&Tl(!1);const b={marginBottom:2,marginX:"full"===s?2:3};return r.createElement(Io,{isVisible:!a},r.createElement(Cl,Sl({as:e,ref:c,id:null!==(i=n.id)&&void 0!==i?i:d,sx:to(b,t)},n),o))}));function Ml(){return Ml=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},Ml.apply(this,arguments)}Il.displayName="ActionList.Heading";const Nl=h.ul.withConfig({displayName:"List__ListBox",componentId:"sc-1x7olzq-0"})(po),Al=r.forwardRef((({variant:e="inset",selectionVariant:o,showDividers:t=!1,role:a,sx:n=So,...l},i)=>{var c;const d={margin:0,paddingInlineStart:0,paddingY:"inset"===e?2:0},[s,g]=Go(l.children,{heading:Il}),b=Ho(),{listRole:v,listLabelledBy:u,selectionVariant:f}=r.useContext(ml),h=s.heading?null!==(c=s.heading.props.id)&&void 0!==c?c:b:u;return r.createElement(El.Provider,{value:{variant:e,selectionVariant:o||f,showDividers:t,role:a||v,headingId:b}},s.heading,r.createElement(Nl,Ml({sx:to(d,n),role:a||v,"aria-labelledby":h},l,{ref:i}),g))}));function Ol(){return Ol=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},Ol.apply(this,arguments)}Al.displayName="ActionList";const Ll=r.createContext({groupHeadingId:void 0,selectionVariant:void 0}),jl=({title:e,variant:o="subtle",auxiliaryText:t,selectionVariant:a,role:n,sx:l={},...i})=>{var c;const d=Ho(),{role:s}=r.useContext(El),[g,b]=Go(i.children,{groupHeading:Rl});let v;var u;g.groupHeading&&(v=null!==(u=g.groupHeading.props.id)&&void 0!==u?u:d);return e&&(v=d),r.createElement(mo,Ol({as:"li",role:s?"none":void 0,sx:{"&:not(:first-child)":{marginTop:2},listStyle:"none",...l}},i),r.createElement(Ll.Provider,{value:{selectionVariant:a,groupHeadingId:v}},e&&!g.groupHeading?r.createElement(Rl,{title:e,variant:o,auxiliaryText:t}):null,!e&&g.groupHeading?r.cloneElement(g.groupHeading):null,r.createElement(mo,{as:"ul",sx:{paddingInlineStart:0},"aria-labelledby":s?void 0:v,"aria-label":s?null!=e?e:null===(c=g.groupHeading)||void 0===c?void 0:c.props.children:void 0,role:n||s&&"group"},g.groupHeading?b:i.children)))};jl.displayName="Group";const Rl=({as:e,variant:o,title:t,auxiliaryText:a,children:n,sx:l=So,...i})=>{const{variant:c,role:d}=r.useContext(El),{groupHeadingId:s}=r.useContext(Ll),g={paddingY:"6px",paddingX:"full"===c?2:3,fontSize:0,fontWeight:"bold",color:"fg.muted",..."filled"===o&&{backgroundColor:"canvas.subtle",marginX:0,marginBottom:2,borderTop:"1px solid",borderBottom:"1px solid",borderColor:"neutral.muted"}};return r.createElement(r.Fragment,null,d?r.createElement(mo,Ol({sx:g,role:"presentation","aria-hidden":"true"},i),r.createElement("span",{id:s},null!=t?t:n),a&&r.createElement("span",null,a)):r.createElement(r.Fragment,null,r.createElement(Cl,Ol({as:e||"h3",id:s,sx:to(g,l)},i),null!=t?t:n),a&&r.createElement("span",null,a)))};var Dl=class extends Event{oldState;newState;constructor(e,{oldState:r="",newState:o="",...t}={}){super(e,t),this.oldState=String(r||""),this.newState=String(o||"")}},zl=new WeakMap;function Pl(e,r,o){zl.set(e,setTimeout((()=>{zl.has(e)&&e.dispatchEvent(new Dl("toggle",{cancelable:!1,oldState:r,newState:o}))}),0))}var _l=globalThis.ShadowRoot||function(){},Hl=globalThis.HTMLDialogElement||function(){},Fl=new WeakMap,Vl=new WeakMap,Wl=new WeakMap;function Zl(e){return Wl.get(e)||"hidden"}var $l=new WeakMap;function Kl(e,r){return("auto"===e.popover||"manual"===e.popover)&&(!!e.isConnected&&((!r||"showing"===Zl(e))&&(!(!r&&"hidden"!==Zl(e))&&(!(e instanceof Hl&&e.hasAttribute("open"))&&document.fullscreenElement!==e))))}function Gl(e){return e?Array.from(Vl.get(e.ownerDocument)||[]).indexOf(e)+1:0}function Ul(e){const r=Xl(e),o=function(e){for(;e;){const r=e.popoverTargetElement;if(r instanceof HTMLElement)return r;if((e=e.parentElement||Yl(e))instanceof _l&&(e=e.host),e instanceof Document)return}}(e);return Gl(r)>Gl(o)?r:o}function ql(e){const r=Vl.get(e);for(const e of r||[]){if(e.isConnected)return e;r.delete(e)}return null}function Yl(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?Yl(e.parentNode):e}function Xl(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===Wl.get(e))return e;if((e=e.parentElement||Yl(e))instanceof _l&&(e=e.host),e instanceof Document)return}}function Jl(e){return!(e.hidden||e instanceof _l)&&((!(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 Ql(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(Jl(a))return a;a=t.nextNode()}})(e)?.focus()}var ei=new WeakMap;function ri(e){if(!Kl(e,!1))return;const r=e.ownerDocument;if(!e.dispatchEvent(new Dl("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"})))return;if(!Kl(e,!1))return;let o=!1;if("auto"===e.popover){const o=e.getAttribute("popover");if(ai(function(e){const r=new Map;let o=0;const t=e.ownerDocument;for(const e of Vl.get(t)||[])r.set(e,o),o+=1;r.set(e,o),o+=1;let a=null;return function(e){const o=Xl(e);if(null===o)return null;const t=r.get(o);(null===a||r.get(a)<t)&&(a=o)}(e?.parentElement),a}(e)||r,!1,!0),o!==e.getAttribute("popover")||!Kl(e,!1))return}ql(r)||(o=!0),ei.delete(e);const t=r.activeElement;e.classList.add(":popover-open"),Wl.set(e,"showing"),Fl.has(r)||Fl.set(r,new Set),Fl.get(r).add(e),Ql(e),"auto"===e.popover&&(Vl.has(r)||Vl.set(r,new Set),Vl.get(r).add(e),ci($l.get(e),!0)),o&&t&&"auto"===e.popover&&ei.set(e,t),Pl(e,"closed","open")}function oi(e,r=!1,o=!1){if(!Kl(e,!0))return;const t=e.ownerDocument;if("auto"===e.popover&&(ai(e,r,o),!Kl(e,!0)))return;if(ci($l.get(e),!1),$l.delete(e),o&&(e.dispatchEvent(new Dl("beforetoggle",{oldState:"open",newState:"closed"})),!Kl(e,!0)))return;Fl.get(t)?.delete(e),Vl.get(t)?.delete(e),e.classList.remove(":popover-open"),Wl.set(e,"hidden"),o&&Pl(e,"open","closed");const a=ei.get(e);a&&(ei.delete(e),r&&a.focus())}function ti(e,r=!1,o=!1){let t=ql(e);for(;t;)oi(t,r,o),t=ql(e)}function ai(e,r,o){const t=e.ownerDocument||e;if(e instanceof Document)return ti(t,r,o);let a=null,n=!1;for(const r of Vl.get(t)||[])if(r===e)n=!0;else if(n){a=r;break}if(!n)return ti(t,r,o);for(;a&&"showing"===Zl(a)&&Vl.get(t)?.size;)oi(a,r,o)}var ni=new WeakMap;function li(e){if(!e.isTrusted)return;const r=e.composedPath()[0];if(!r)return;const o=r.ownerDocument;if(!ql(o))return;const t=Ul(r);if(t&&"pointerdown"===e.type)ni.set(o,t);else if("pointerup"===e.type){const e=ni.get(o)===t;ni.delete(o),e&&ai(t||o,!1,!0)}}var ii=new WeakMap;function ci(e,r=!1){if(!e)return;ii.has(e)||ii.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=ii.get(e);r?e.setAttribute("aria-expanded",r):e.removeAttribute("aria-expanded")}}var di=globalThis.ShadowRoot||function(){};function si(e,r,o){const t=e[r];Object.defineProperty(e,r,{value(e){return t.call(this,o(e))}})}var gi=/(^|[^\\]):popover-open\b/g,bi="\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",vi=null;function ui(e){if(null===vi)try{(vi=new CSSStyleSheet).replaceSync(bi)}catch{vi=!1}if(!1===vi){const r=document.createElement("style");r.textContent=bi,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[vi,...e.adoptedStyleSheets]}function fi(){function e(e){return e?.includes(":popover-open")&&(e=e.replace(gi,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||Dl,si(Document.prototype,"querySelector",e),si(Document.prototype,"querySelectorAll",e),si(Element.prototype,"querySelector",e),si(Element.prototype,"querySelectorAll",e),si(Element.prototype,"matches",e),si(Element.prototype,"closest",e),si(DocumentFragment.prototype,"querySelectorAll",e),si(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(){ri(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){oi(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e){"showing"===Wl.get(this)&&void 0===e||!1===e?oi(this,!0,!0):void 0!==e&&!0!==e||ri(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 ui(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&&ui(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=Yl(this),o=this.getAttribute("popovertarget");return(r instanceof Document||r instanceof di)&&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=>{if(!e.isTrusted)return;const r=e.composedPath()[0];if(!(r instanceof Element)||r?.shadowRoot)return;const o=Yl(r);if(!(o instanceof di||o instanceof Document))return;const t=r.closest("[popovertargetaction],[popovertarget]");t&&function(e){const r=e.popoverTargetElement;if(!(r instanceof HTMLElement))return;const o=Zl(r);"show"===e.popoverTargetAction&&"showing"===o||"hide"===e.popoverTargetAction&&"hidden"===o||("showing"===o?oi(r,!0,!0):Kl(r,!1)&&($l.set(r,e),ri(r)))}(t)},l=e=>{const r=e.key,o=e.target;e.defaultPrevented||!o||"Escape"!==r&&"Esc"!==r||ai(o.ownerDocument,!0,!0)};(e=>{e.addEventListener("click",n),e.addEventListener("keydown",l),e.addEventListener("pointerdown",li),e.addEventListener("pointerup",li)})(document),ui(document)}function hi(){return hi=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},hi.apply(this,arguments)}const pi="\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",mi=h.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-5xkifj-0"})(["display:none;&[popover]{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:8px;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{","}",";"],Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),pi,pi,po),yi={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"}},xi={"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"},Ci=["a[href]","button:not(:disabled)","summary","select","input:not([type=hidden])","textarea"],wi=e=>Ci.some((r=>e.matches(r)))||e.hasAttribute("role")&&"button"===e.getAttribute("role"),ki=r.createContext({}),Bi=r.forwardRef((({direction:e="s",text:o,type:t="description",children:a,id:n,...l},c)=>{const s=Ho(n),b=v.only(a),u=aa(c),f=g(null),[h,p]=d(e),m=()=>{f.current&&u.current&&!f.current.matches(":popover-open")&&f.current.showPopover()},y=()=>{f.current&&u.current&&f.current.matches(":popover-open")&&f.current.hidePopover()};return i((()=>{if(!f.current||!u.current)return;const r=wi(u.current),o=u.current.childNodes,a=Array.from(o).some((e=>e instanceof HTMLElement&&wi(e)));if(r||a||Tl(!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||fi());const n=f.current,l=u.current;n.setAttribute("popover","auto");const i={side:yi[e].side,align:yi[e].align},c=()=>{const{top:e,left:r,anchorAlign:o,anchorSide:t}=sa(n,l,i);n.style.top=`${e}px`,n.style.left=`${r}px`;p(xi[`${t}-${o}`])};return n.addEventListener("toggle",c),()=>{n.removeEventListener("toggle",c)}}),[f,u,e,t]),r.createElement(ki.Provider,{value:{tooltipId:s}},r.createElement(r.Fragment,null,r.isValidElement(b)&&r.cloneElement(b,{ref:u,"aria-describedby":"description"===t?s:b.props["aria-describedby"],"aria-labelledby":"label"===t?s:b.props["aria-labelledby"],onBlur:e=>{var r,o;y(),null===(r=(o=b.props).onBlur)||void 0===r||r.call(o,e)},onFocus:e=>{var r,o;m(),null===(r=(o=b.props).onFocus)||void 0===r||r.call(o,e)},onMouseEnter:e=>{var r,o;m(),null===(r=(o=b.props).onMouseEnter)||void 0===r||r.call(o,e)},onMouseLeave:e=>{var r,o;y(),null===(r=(o=b.props).onMouseLeave)||void 0===r||r.call(o,e)}}),r.createElement(mi,hi({ref:f,"data-direction":h},l,{role:"description"===t?"tooltip":void 0,"aria-hidden":"label"===t||void 0,id:s,onMouseEnter:m,onMouseLeave:y}),o)))}));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=h.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"),ze,(e=>e.expandable?"&:hover { max-width: 10000px; }":""),po),Si=r.forwardRef((function({as:e,expandable:o=!1,inline:t=!1,maxWidth:a=125,...n},l){return r.createElement(Ti,Ei({ref:l,as:e,expandable:o,inline:t,maxWidth:a},n))}));const Ii=({variant:e="inline",sx:o={},...t})=>{const a={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:n,inlineDescriptionId:l}=r.useContext(wl);return"block"===e?r.createElement(mo,{as:"span",sx:to(a,o),id:n},t.children):r.createElement(Si,{id:l,sx:to(a,o),title:t.children,inline:!0,maxWidth:"100%"},t.children)};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)}const Ni=({sx:e={},...o})=>r.createElement(mo,Mi({as:"span",sx:to({height:Bl,minWidth:Kr("space.3"),maxWidth:Bl,display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,marginRight:2},e)},o));Ni.displayName="LeadingVisualContainer";const Ai=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(wl);return r.createElement(Ni,Mi({sx:to({color:kl(t,a,n).iconColor,svg:{fontSize:0},'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:kl(t,a,n).hoverColor}},e)},o),o.children)};Ai.displayName="LeadingVisual";const Oi=({sx:e={},...o})=>{const{variant:t,disabled:a,inactive:n}=r.useContext(wl);return r.createElement(mo,Mi({as:"span",sx:to({height:"20px",flexShrink:0,color:kl(t,a,n).annotationColor,marginLeft:2,fontWeight:"initial",'[data-variant="danger"]:hover &, [data-variant="danger"]:active &':{color:kl(t,a,n).hoverColor}},e)},o),o.children)};Oi.displayName="TrailingVisual";const Li=({selected:e})=>{const{selectionVariant:o,role:t}=r.useContext(El),{selectionVariant:a}=r.useContext(Ll);let n;if(n=void 0!==a?a:o,!n){if(e)throw new Error("For Item to be selected, ActionList or ActionList.Group needs to have a selectionVariant defined");return null}if("single"===n||"menu"===t)return r.createElement(Ni,null,e&&r.createElement($a,null));return r.createElement(Ni,null,r.createElement(mo,{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"}))};function ji(){return ji=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},ji.apply(this,arguments)}Li.displayName="Selection";const Ri=h.li.withConfig({displayName:"Item__LiBox",componentId:"sc-yeql7o-0"})(po),Di=({labelId:e,text:o,visualComponent:t})=>r.createElement(Bi,{text:o},r.createElement(mo,{as:"button",sx:{background:"none",color:"inherit",border:"none",padding:0,font:"inherit",cursor:"pointer",display:"flex"},"aria-labelledby":e},r.createElement(t,null,r.createElement(Wa,null))));Di.displayName="InactiveIndicator";const zi=r.forwardRef((({variant:e="default",disabled:o=!1,inactiveText:t,selected:a,active:n=!1,onSelect:l,sx:i=So,id:c,role:d,_PrivateItemWrapper:s,...g},b)=>{const[v,u]=Go(g.children,{leadingVisual:Ai,trailingVisual:Oi,blockDescription:[Ii,e=>"block"===e.variant],inlineDescription:[Ii,e=>"block"!==e.variant]}),{variant:f,role:h,showDividers:p,selectionVariant:m}=r.useContext(El),{selectionVariant:y}=r.useContext(Ll),{container:x,afterSelect:C,selectionAttribute:w}=r.useContext(ml),k=Boolean(t),B=k&&void 0===x,E=r.useCallback(((e,r)=>{"function"==typeof l&&l(e),e.defaultPrevented||"function"==typeof r&&r()}),[l]),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:A}=co(),O={position:"relative",display:"flex",paddingX:2,fontSize:1,paddingY:"6px",lineHeight:Bl,minHeight:5,marginX:"inset"===f?2:0,borderRadius:2,transition:"background 33.333ms linear",color:kl(e,o,k).color,cursor:"pointer","&[aria-disabled], &[data-inactive]":{cursor:"not-allowed",'[data-component="ActionList.Checkbox"]':{cursor:"not-allowed",bg:a?"fg.muted":"var(--color-input-disabled-bg, rgba(175, 184, 193, 0.2))",borderColor:a?"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:kl(e,o,k).hoverColor,boxShadow:`inset 0 0 0 max(1px, 0.0625rem) ${null==A?void 0:A.colors.actionListItem.default.activeBorder}`},"&:focus-visible, > a:focus-visible":{outline:"none",border:"2 solid",boxShadow:`0 0 0 2px ${null==A?void 0:A.colors.accent.emphasis}`},":active:not([aria-disabled]):not([data-inactive])":{backgroundColor:`actionListItem.${e}.activeBg`,color:kl(e,o,k).hoverColor}},"@media (forced-colors: active)":{":focus":{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==A?void 0:A.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"},...n?{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=r.useCallback((e=>{o||k||E(e,C)}),[E,o,k,C]),j=r.useCallback((e=>{o||k||[" ","Enter"].includes(e.key)&&E(e,C)}),[E,o,k,C]),R=Ho(c),D=`${R}--label`,z=`${R}--inline-description`,P=`${R}--block-description`,_=k&&!B?`${R}--warning-message`:void 0,H=s||r.Fragment,F=N&&I&&["menuitemradio","menuitemcheckbox","option"].includes(I),V={onClick:L,onKeyPress:j,"aria-disabled":!!o||void 0,"data-inactive":!!k||void 0,tabIndex:o||B?void 0:0,"aria-labelledby":`${D} ${v.inlineDescription?z:""}`,"aria-describedby":v.blockDescription?[P,_].join(" "):_,...F&&{[N]:a},role:I,id:R},W=s?{role:I?"none":void 0}:V,Z=s?V:{};return r.createElement(wl.Provider,{value:{variant:e,disabled:o,inactive:Boolean(t),inlineDescriptionId:z,blockDescriptionId:P}},r.createElement(Ri,ji({ref:b,sx:to(O,i),"data-variant":"danger"===e?e:void 0},W,g),r.createElement(H,Z,r.createElement(Li,{selected:a}),B&&v.leadingVisual?r.createElement(Di,{labelId:D,text:t,visualComponent:Ai}):v.leadingVisual,r.createElement(mo,{"data-component":"ActionList.Item--DividerContainer",sx:{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0}},r.createElement(Pi,{if:Boolean(v.trailingVisual)||B&&!v.leadingVisual,sx:{display:"flex",flexGrow:1}},r.createElement(Pi,{if:!!v.inlineDescription,sx:{display:"flex",flexGrow:1,alignItems:"baseline",minWidth:0}},r.createElement(mo,{as:"span",id:D,sx:{flexGrow:v.inlineDescription?0:1,fontWeight:v.inlineDescription||v.blockDescription?"bold":"normal",marginBlockEnd:v.blockDescription?"4px":void 0}},u),v.inlineDescription),B&&!v.leadingVisual?r.createElement(Di,{labelId:D,text:t,visualComponent:Oi}):v.trailingVisual),k&&x?r.createElement(mo,{as:"span",sx:{fontSize:0,lineHeight:"16px",color:"attention.fg"},id:_},t):null,v.blockDescription))))}));zi.displayName="ActionList.Item";const Pi=e=>{const{if:o,...t}=e;return o?r.createElement(mo,t,e.children):r.createElement(r.Fragment,null,e.children)};function _i(){return _i=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},_i.apply(this,arguments)}const Hi=q({hoverColor:{property:"color",scale:"colors"}}),Fi=h.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?Kr("colors.fg.muted")(e):Kr("colors.accent.fg")(e)),(e=>e.underline?"underline":void 0),(e=>e.muted?"none":"underline"),(e=>e.hoverColor?Hi:e.muted?`color: ${Kr("colors.accent.fg")(e)}`:""),po),Vi=t((({as:e="a",...o},t)=>{const a=r.useRef(null);return To(t,a),r.createElement(Fi,_i({as:e,"data-inline":o.inline},o,{ref:a}))}));function Wi(){return Wi=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},Wi.apply(this,arguments)}Vi.displayName="Link";const Zi=r.forwardRef((({sx:e={},active:o,inactiveText:t,as:a,...n},l)=>{const i={paddingX:2,paddingY:"6px",display:"flex",flexGrow:1,borderRadius:2,color:"inherit","&:hover":{color:"inherit",textDecoration:"none"}};return r.createElement(zi,{active:o,sx:{paddingY:0,paddingX:0},inactiveText:t,"data-inactive":!!t||void 0,_PrivateItemWrapper:({children:o,onClick:c,...d})=>t?r.createElement(mo,Wi({sx:to(i,e)},d),o):r.createElement(Vi,Wi({as:a,sx:to(i,e)},d,n,{onClick:e=>{c&&c(e),n.onClick&&n.onClick(e)},ref:l}),o)},n.children)})),$i=({sx:e={}})=>r.createElement(mo,{as:"li","aria-hidden":"true",sx:to({height:1,backgroundColor:"actionListItem.inlineDivider",marginTop:e=>`calc(${Kr("space.2")(e)} - 1px)`,marginBottom:2,listStyle:"none"},e),"data-component":"ActionList.Divider"});$i.displayName="Divider";const Ki=Object.assign(Al,{Group:jl,Item:zi,LinkItem:Zi,Divider:$i,Description:Ii,LeadingVisual:Ai,TrailingVisual:Oi,Heading:Il,GroupHeading:Rl});function Gi(){return Gi=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},Gi.apply(this,arguments)}const Ui={xsmall:"192px",small:"256px",medium:"320px",large:"432px",xlarge:"600px",auto:"auto",initial:"auto","fit-content":"fit-content"},qi={small:"256px",medium:"320px",large:"480px",xlarge:"640px",xxlarge:"960px",auto:"auto"};const Yi=h.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;}",";"],Kr("colors.canvas.overlay"),Kr("shadows.overlay.shadow"),(e=>e.maxWidth&&qi[e.maxWidth]),(e=>Ui[e.height||"auto"]),(e=>e.maxHeight&&Ui[e.maxHeight]),(e=>qi[e.width||"auto"]),(e=>e.overflow?e.overflow:"hidden"),200,Kr("animation.easeOutCubic"),po),Xi=r.forwardRef((({onClickOutside:e,role:o="none",initialFocusRef:t,returnFocusRef:a,ignoreClickRefs:n,onEscape:l,visibility:c="visible",height:d="auto",width:s="auto",top:b,left:v,right:u,bottom:f,anchorSide:h,portalContainerName:p,preventFocusOnOpen:m,position:y,...x},C)=>{const w=g(null);To(C,w);const{theme:k}=co(),B=parseInt(Kr("space.2")(k).replace("px","")),E=Kr("animation.easeOutCubic")(k);na({overlayRef:w,returnFocusRef:a,onEscape:l,ignoreClickRefs:n,onClickOutside:e,initialFocusRef:t,preventFocusOnOpen:m}),i((()=>{var e;"initial"===d&&null!==(e=w.current)&&void 0!==e&&e.clientHeight&&(w.current.style.height=`${w.current.clientHeight}px`)}),[d]),ot((()=>{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}}(h);(r||o)&&null!==(e=w.current)&&void 0!==e&&e.animate&&"hidden"!==c&&w.current.animate({transform:[`translate(${B*r}px, ${B*o}px)`,"translate(0, 0)"]},{duration:200,easing:E})}),[h,B,E,c]);const T=void 0===v&&void 0===u?{left:0}:{left:v};return r.createElement(pn,{containerName:p},r.createElement(Yi,Gi({height:d,width:s,role:o},x,{ref:w,style:{...T,right:u,top:b,bottom:f,position:y,"--styled-overlay-visibility":c}})))}));function Ji(){return Ji=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},Ji.apply(this,arguments)}const Qi=({renderAnchor:e,anchorRef:o,anchorId:t,children:a,open:n,onOpen:l,onClose:c,height:d,width:s,overlayProps:g,focusTrapSettings:v,focusZoneSettings:u,side:f="outside-bottom",align:h="start",alignmentOffset:p,anchorOffset:m})=>{const y=aa(o),[x,C]=La(),w=Ho(t),k=b((()=>null==c?void 0:c("click-outside")),[c]),B=b((()=>null==c?void 0:c("escape")),[c]),E=b((e=>{e.defaultPrevented||!n&&["ArrowDown","ArrowUp"," ","Enter"].includes(e.key)&&(null==l||l("anchor-key-press",e),e.preventDefault())}),[n,l]),T=b((e=>{e.defaultPrevented||0!==e.button||(n?null==c||c("anchor-click"):null==l||l("anchor-click"))}),[n,l,c]),{position:S}=Oa({anchorElementRef:y,floatingElementRef:x,side:f,align:h,alignmentOffset:p,anchorOffset:m},[x.current]);return i((()=>{!n&&x.current&&C(null)}),[n,x,C]),bn({containerRef:x,disabled:!n||!S,...u}),Pa({containerRef:x,disabled:!n||!S,...v}),r.createElement(r.Fragment,null,e&&e({ref:y,id:w,"aria-haspopup":"true","aria-expanded":n?"true":void 0,tabIndex:0,onClick:T,onKeyDown:E}),n?r.createElement(Xi,Ji({returnFocusRef:y,onClickOutside:k,ignoreClickRefs:[y],onEscape:B,ref:C,role:"none",visibility:S?"visible":"hidden",height:d,width:s,top:(null==S?void 0:S.top)||0,left:(null==S?void 0:S.left)||0,anchorSide:null==S?void 0:S.anchorSide},g),a):null)};function ec(){return ec=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},ec.apply(this,arguments)}Qi.displayName="AnchoredOverlay";const rc=r.createContext({renderAnchor:null,open:!1}),oc=({anchorRef:e,open:o,onOpenChange:t,children:a})=>{const[n,l]=ja(o,t,!1),i=r.useCallback((()=>l(!0)),[l]),c=r.useCallback((()=>l(!1)),[l]),d=r.Children.toArray(a).find((e=>r.isValidElement(e)&&(e.type===ac||e.type===tc))),s=r.isValidElement(d)?d.props.id:void 0,g=aa(e),b=Ho(s);let v=null;const u=r.Children.map(a,(e=>{if(e.type===Bi){const o=e.props.children;return o.type===ac&&(v=t=>{const a=r.cloneElement(o,{...t});return r.cloneElement(e,{children:a,ref:g})}),null}if(e.type===tc){const o=e.props.children;return void 0!==o&&o.type===Bi?null!==o.props.children&&(v=t=>{const a=o.props.children,n=r.cloneElement(a,{...t}),l=r.cloneElement(o,{children:n});return r.cloneElement(e,{children:l,ref:g})}):v=o=>r.cloneElement(e,o),null}return e.type===ac?(v=o=>r.cloneElement(e,o),null):e}));return r.createElement(rc.Provider,{value:{anchorRef:g,renderAnchor:v,anchorId:b,open:n,onOpen:i,onClose:c}},u)};oc.displayName="Menu";const tc=r.forwardRef((({children:e,...o},t)=>r.cloneElement(e,{...o,ref:t}))),ac=r.forwardRef((({...e},o)=>r.createElement(tc,{ref:o},r.createElement(jo,ec({type:"button",trailingAction:sn},e))))),nc=({children:e,align:o="start",side:t="outside-bottom","aria-labelledby":a,...n})=>{const{anchorRef:l,renderAnchor:i,anchorId:c,open:d,onOpen:s,onClose:g}=r.useContext(rc),b=r.useRef(null);return Ra(d,g,b,l),r.createElement(Qi,{anchorRef:l,renderAnchor:i,anchorId:c,open:d,onOpen:s,onClose:g,align:o,side:t,overlayProps:n,focusZoneSettings:{focusOutBehavior:"wrap"}},r.createElement("div",{ref:b},r.createElement(ml.Provider,{value:{container:"ActionMenu",listRole:"menu",listLabelledBy:a||c,selectionAttribute:"aria-checked",afterSelect:g}},e)))};nc.displayName="Overlay",oc.displayName="ActionMenu";const lc=Object.assign(oc,{Button:ac,Anchor:tc,Overlay:nc,Divider:$i}),ic=c(null);var cc,dc={exports:{}},sc={},gc=Symbol.for("react.element"),bc=Symbol.for("react.portal"),vc=Symbol.for("react.fragment"),uc=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),hc=Symbol.for("react.provider"),pc=Symbol.for("react.context"),mc=Symbol.for("react.server_context"),yc=Symbol.for("react.forward_ref"),xc=Symbol.for("react.suspense"),Cc=Symbol.for("react.suspense_list"),wc=Symbol.for("react.memo"),kc=Symbol.for("react.lazy"),Bc=Symbol.for("react.offscreen");function Ec(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case gc:switch(e=e.type){case vc:case fc:case uc:case xc:case Cc:return e;default:switch(e=e&&e.$$typeof){case mc:case pc:case yc:case kc:case wc:case hc:return e;default:return r}}case bc:return r}}}cc=Symbol.for("react.module.reference"),sc.ContextConsumer=pc,sc.ContextProvider=hc,sc.Element=gc,sc.ForwardRef=yc,sc.Fragment=vc,sc.Lazy=kc,sc.Memo=wc,sc.Portal=bc,sc.Profiler=fc,sc.StrictMode=uc,sc.Suspense=xc,sc.SuspenseList=Cc,sc.isAsyncMode=function(){return!1},sc.isConcurrentMode=function(){return!1},sc.isContextConsumer=function(e){return Ec(e)===pc},sc.isContextProvider=function(e){return Ec(e)===hc},sc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gc},sc.isForwardRef=function(e){return Ec(e)===yc},sc.isFragment=function(e){return Ec(e)===vc},sc.isLazy=function(e){return Ec(e)===kc},sc.isMemo=function(e){return Ec(e)===wc},sc.isPortal=function(e){return Ec(e)===bc},sc.isProfiler=function(e){return Ec(e)===fc},sc.isStrictMode=function(e){return Ec(e)===uc},sc.isSuspense=function(e){return Ec(e)===xc},sc.isSuspenseList=function(e){return Ec(e)===Cc},sc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===vc||e===fc||e===uc||e===xc||e===Cc||e===Bc||"object"==typeof e&&null!==e&&(e.$$typeof===kc||e.$$typeof===wc||e.$$typeof===hc||e.$$typeof===pc||e.$$typeof===yc||e.$$typeof===cc||void 0!==e.getModuleId)},sc.typeOf=Ec,dc.exports=sc;var Tc=dc.exports;function Sc(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=Sc(e[r]))&&(t&&(t+=" "),t+=o);else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Ic(){for(var e,r,o=0,t="";o<arguments.length;)(e=arguments[o++])&&(r=Sc(e))&&(t&&(t+=" "),t+=r);return t}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={small:"16px",medium:"32px",large:"64px"};function Ac({size:e="medium",...o}){const t=Nc[e];return r.createElement("svg",Mc({height:t,width:t,viewBox:"0 0 16 16",fill:"none"},o),r.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"2",vectorEffect:"non-scaling-stroke"}),r.createElement("path",{d:"M15 8a7.002 7.002 0 00-7-7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",vectorEffect:"non-scaling-stroke"}))}Ac.displayName="Spinner";const Oc=h(Ac).withConfig({displayName:"Spinner__StyledSpinner",componentId:"sc-1knt686-0"})(["@keyframes rotate-keyframes{100%{transform:rotate(360deg);}}animation:rotate-keyframes 1s linear infinite;",""],po);Oc.displayName="Spinner";const Lc=({children:e,hasLoadingIndicator:o,showLoadingIndicator:t,visualPosition:a})=>!e&&!o||"leading"===a&&!e&&!t?null:o?r.createElement("span",{className:"TextInput-icon"},r.createElement(mo,{display:"flex",position:"relative"},e&&r.createElement(mo,{sx:{visibility:t?"hidden":"visible"}},e),r.createElement(Oc,{sx:e?{position:"absolute",top:0,height:"100%",maxWidth:"100%",visibility:t?"visible":"hidden",..."leading"===a?{left:0}:{right:0}}:{visibility:t?"visible":"hidden"},size:e?void 0:"small"}))):r.createElement("span",{className:"TextInput-icon"},e);Lc.displayName="TextInputInnerVisualSlot";const jc=Me({variants:{small:{minHeight:"28px",px:2,py:"3px",fontSize:0,lineHeight:"20px"},large:{px:2,py:"10px",fontSize:3}}}),Rc=Me({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"}}}),Dc="12px",zc=Dc,Pc=(e,r)=>e?r&&y(["border-color:",";outline:2px solid ",";outline-offset:-1px;"],Kr("colors.accent.fg"),Kr("colors.accent.fg")):y(["&:focus-within{border-color:",";outline:2px solid ",";outline-offset:-1px;}"],Kr("colors.accent.fg"),Kr("colors.accent.fg")),_c=h.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;}&::placeholder{color:",";}"," > textarea{padding:",";}"," "," "," "," "," "," @media (min-width:","){font-size:",";}"," "," "," "," "," ",";"],Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("colors.canvas.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("shadows.primer.shadow.inset"),Kr("colors.fg.subtle"),(e=>Pc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused))),Dc,(e=>e.contrast&&y(["background-color:",";"],Kr("colors.canvas.inset"))),(e=>e.disabled&&y(["color:",";background-color:",";border-color:",";input,textarea,select{cursor:not-allowed;}"],Kr("colors.primer.fg.disabled"),Kr("colors.input.disabledBg"),Kr("colors.border.default"))),(e=>e.monospace&&y(["font-family:",";"],Kr("fonts.mono"))),(e=>"error"===e.validationStatus&&y(["border-color:",";",""],Kr("colors.danger.emphasis"),Pc(Boolean(e.hasTrailingAction),Boolean(e.isInputFocused)))),(e=>"success"===e.validationStatus&&y(["border-color:",";"],Kr("colors.success.emphasis"))),(e=>e.block&&y(["width:100%;display:flex;align-self:stretch;"])),Kr("breakpoints.1"),Kr("fontSizes.1"),Le,Re,ze,jc,Rc,po),Hc=h(_c).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;}"," ",";"],Kr("space.2"),Kr("colors.fg.muted"),(e=>y(["padding-left:",";padding-right:",";> input,> select{padding-left:",";padding-right:",";}"],e.hasLeadingVisual?zc:0,e.hasTrailingVisual&&!e.hasTrailingAction?zc:0,e.hasLeadingVisual?0:zc,e.hasTrailingVisual||e.hasTrailingAction?0:zc)),po);function Fc(){return Fc=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},Fc.apply(this,arguments)}const Vc=h.span.withConfig({displayName:"Tooltip__TooltipBase",componentId:"sc-17tf59c-0"})(["position:relative;display:inline-block;&::before{position:absolute;z-index:1000001;display:none;width:0px;height:0px;color:",";pointer-events:none;content:'';border:6px solid transparent;opacity:0;}&::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{&::before,&::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:0.4s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus,&.tooltipped-no-delay:focus-within{&::before,&::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;}&::before{top:auto;right:50%;bottom:-7px;margin-right:-6px;border-bottom-color:",";}}&.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;}&::before{top:-7px;right:50%;bottom:auto;margin-right:-6px;border-top-color:",";}}&.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%);}&::before{top:50%;bottom:50%;left:-7px;margin-top:-6px;border-left-color:",";}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}&::before{top:50%;right:-7px;bottom:50%;margin-top:-6px;border-right-color:",";}}&.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-right-2::before{right:15px;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}&.tooltipped-align-left-2::before{left:10px;}",";"],Kr("colors.neutral.emphasisPlus"),Kr("fonts.normal"),Kr("colors.fg.onEmphasis"),Kr("colors.neutral.emphasisPlus"),Kr("radii.2"),Kr("colors.neutral.emphasisPlus"),Kr("space.3"),Kr("space.3"),Kr("colors.neutral.emphasisPlus"),Kr("space.3"),Kr("space.3"),Kr("colors.neutral.emphasisPlus"),Kr("colors.neutral.emphasisPlus"),po);function Wc({direction:e="n",children:o,className:t,text:a,noDelay:n,align:l,wrap:i,...c}){const d=Ic(t,`tooltipped-${e}`,l&&`tooltipped-align-${l}-2`,n&&"tooltipped-no-delay",i&&"tooltipped-multiline");return r.createElement(Vc,Fc({role:"tooltip","aria-label":a},c,{className:d}),o)}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)}Wc.displayName="Tooltip",Wc.alignments=["left","right"],Wc.directions=["n","ne","e","se","s","sw","w","nw"];const $c={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"}}},Kc=({"aria-label":e,children:o,tooltipDirection:t})=>r.createElement(r.Fragment,null,e?r.createElement(Wc,{"aria-label":e,direction:t,sx:{display:"inline-block"}},o):o),Gc=t((({"aria-label":e,tooltipDirection:o,children:t,icon:a,sx:n,variant:l="invisible",...i},c)=>{const d="invisible"===l?to($c,n||{}):n||{};return(a&&!e||!t&&!e)&&console.warn("Use the `aria-label` prop to provide an accessible label for assistive technology"),r.createElement(mo,{as:"span",className:"TextInput-action",marginLeft:1,marginRight:1,lineHeight:"0"},a&&!t?r.createElement(Wc,{direction:o,"aria-label":e},r.createElement(zo,Zc({variant:l,type:"button",icon:a,size:"small",sx:d},i,{"aria-label":e,"aria-labelledby":void 0,ref:c}))):r.createElement(Kc,{"aria-label":e},r.createElement(jo,Zc({variant:l,type:"button",sx:d},i,{ref:c}),t)))})),Uc=h.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;}",";"],po);function qc(){return qc=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},qc.apply(this,arguments)}const Yc=r.forwardRef((({icon:e,leadingVisual:o,trailingVisual:t,trailingAction:a,block:n,className:l,contrast:i,disabled:c,loading:s,loaderPosition:g="auto",monospace:v,validationStatus:u,sx:f,size:h,onFocus:p,onBlur:m,width:y,minWidth:x,maxWidth:C,variant:w,type:k="text",required:B,...E},T)=>{const[S,I]=d(!1),M=aa(T),N=Ic(l,"TextInput-wrapper"),A=s&&("leading"===g||Boolean(o&&"trailing"!==g)),O=s&&("trailing"===g||Boolean("auto"===g&&!o)),L=b((e=>{I(!0),p&&p(e)}),[p]),j=b((e=>{I(!1),m&&m(e)}),[m]);return r.createElement(Hc,{block:n,className:N,validationStatus:u,contrast:i,disabled:c,monospace:v,sx:f,size:h,width:y,minWidth:x,maxWidth:C,variant:w,hasLeadingVisual:Boolean(o||A),hasTrailingVisual:Boolean(t||O),hasTrailingAction:Boolean(a),isInputFocused:S,onClick:()=>{var e;null===(e=M.current)||void 0===e||e.focus()},"aria-busy":Boolean(s)},e&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Lc,{visualPosition:"leading",showLoadingIndicator:A,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof o&&Tc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(Uc,qc({ref:M,disabled:c,onFocus:L,onBlur:j,type:k,"aria-required":B},E,{"data-component":"input"})),r.createElement(Lc,{visualPosition:"trailing",showLoadingIndicator:O,hasLoadingIndicator:"boolean"==typeof s},"string"!=typeof t&&Tc.isValidElementType(t)?r.createElement(t,null):t),a)}));Yc.displayName="TextInput";var Xc=Object.assign(Yc,{Action:Gc});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 Qc=r.forwardRef((({as:e=Xc,onFocus:o,onBlur:t,onChange:a,onKeyDown:n,onKeyUp:c,onKeyPress:s,value:g,...v},u)=>{const f=l(ic);if(null===f)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:h,autocompleteSuggestion:p="",id:m,inputRef:y,inputValue:x="",isMenuDirectlyActivated:C,setInputValue:w,setShowMenu:k,showMenu:B}=f;To(u,y);const[E,T]=d(!0),{safeSetTimeout:S}=Ht(),I=b((e=>{o&&o(e),k(!0)}),[o,k]),M=b((e=>{t&&t(e),S((()=>{document.activeElement!==y.current&&k(!1)}),0)}),[t,k,y,S]),N=b((e=>{a&&a(e),w(e.currentTarget.value),B||k(!0)}),[a,w,k,B]),A=b((e=>{var r;n&&n(e),"Backspace"===e.key&&T(!1),"Escape"===e.key&&null!==(r=y.current)&&void 0!==r&&r.value&&(w(""),y.current.value="")}),[y,w,T,n]),O=b((e=>{c&&c(e),"Backspace"===e.key&&T(!0)}),[T,c]),L=b((e=>{if(s&&s(e),B&&"Enter"===e.key&&h.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);h.current.dispatchEvent(r)}}),[h,B,s]);return i((()=>{y.current&&(p||(y.current.value=x),E&&p&&(x||C)&&(y.current.value=p,0===p.toLowerCase().indexOf(x.toLowerCase())&&y.current.setSelectionRange(x.length,p.length)))}),[p,x,y,C]),i((()=>{w(void 0!==g?g.toString():"")}),[g,w]),r.createElement(e,Jc({onFocus:I,onBlur:M,onChange:N,onKeyDown:A,onKeyPress:L,onKeyUp:O,ref:y,"aria-controls":`${m}-listbox`,"aria-autocomplete":"both",role:"combobox","aria-expanded":B,"aria-haspopup":"listbox","aria-owns":`${m}-listbox`,autoComplete:"off",id:m},v))}));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)}Qc.displayName="AutocompleteInput";const rd={startMargin:0,endMargin:8};function od(e){const o=l(ic);if(null===o)throw new Error("AutocompleteContext returned null values");const{activeDescendantRef:t,id:n,inputRef:c,inputValue:s="",scrollContainerRef:b,setAutocompleteSuggestion:v,setShowMenu:u,setInputValue:f,setIsMenuDirectlyActivated:h,setSelectedItemLength:p,showMenu:m}=o,{items:y,selectedItemIds:x,sortOnCloseFn:C,emptyStateText:w="No selectable options",addNewItem:k,loading:B,selectionVariant:E="single",filterFn:T,"aria-labelledby":S,onOpenChange:I,onSelectedChange:M,customScrollContainerRef:N}=e,A=g(null),O=g([]),[L,j]=d(),[R,D]=d(y.map((({id:e})=>e))),z=Ho(n),P=a((()=>y.map((e=>({...e,role:"option",id:e.id,active:(null==L?void 0:L.id)===e.id,selected:"multiple"===E?x.includes(e.id):void 0,onAction:e=>{const r=x.filter((r=>r!==e.id)),o=x.includes(e.id)?r:[...r,e.id];var t,a;((M||(t=f,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,y)))),"multiple"===E)?(f(""),v("")):(u(!1),null===(a=c.current)||void 0===a||a.setSelectionRange(c.current.value.length,c.current.value.length))}})))),[L,y,x,c,M,E,v,f,u]),_=a((()=>R.reduce(((e,r,o)=>(e[r]=o,e)),{})),[R]),H=a((()=>{return P.filter(T||(e=s,function(r,o){var t;return Boolean(null===(t=r.text)||void 0===t?void 0:t.toLowerCase().startsWith(e.toLowerCase()))})).sort(((e,r)=>_[e.id]-_[r.id]));var e}),[P,_,T,s]),F=a((()=>[...H,...k?[{...k,role:"option",key:k.id,active:(null==L?void 0:L.id)===k.id,selected:"multiple"===E?x.includes(k.id):void 0,leadingVisual:()=>r.createElement(nn,null),onAction:e=>{k.handleAddItem({...e,id:e.id||z,leadingVisual:void 0}),"multiple"===E&&(f(""),v(""))}}]:[]]),[H,k,v,E,f,z,L,x]);if(r.useEffect((()=>{O.current=F})),bn({containerRef:A,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:c,onActiveDescendantChanged:(e,r,o)=>{if(t.current=e||null,e){const r=O.current.find((r=>{var o;return r.id===(null===(o=e.closest("li"))||void 0===o?void 0:o.getAttribute("data-id"))}));j(r),h(o)}e&&N&&N.current&&o?Na(e,N.current,rd):e&&b.current&&o&&Na(e,b.current,rd)}},[B]),i((()=>{var e;null!=L&&null!==(e=L.text)&&void 0!==e&&e.startsWith(s)&&!x.includes(L.id)?v(L.text):v("")}),[L,s,x,v]),i((()=>{const e=[...R].sort(C||(r=e=>((e,r)=>r.includes(e))(e,x),(e,o)=>r(e)===r(o)?0:r(e)?-1:1));var r;const o=e.length===R.length&&e.every(((e,r)=>e===R[r]));!1!==m||o||D(e),I&&I(Boolean(m))}),[m,I,x,C,R]),i((()=>{x.length&&p(x.length)}),[x,p]),"single"===E&&x.length>1)throw new Error('Autocomplete: selectionVariant "single" cannot be used with multiple selected items');return r.createElement(Io,{isVisible:m},B?r.createElement(mo,{p:3,display:"flex",justifyContent:"center"},r.createElement(Oc,null)):r.createElement("div",{ref:A},F.length?r.createElement(Ki,{selectionVariant:E,role:"listbox",id:`${n}-listbox`,"aria-labelledby":S},F.map((e=>{const{id:o,onAction:t,children:a,text:n,leadingVisual:l,trailingVisual:i,...c}=e;return r.createElement(Ki.Item,ed({key:o,onSelect:()=>t(e)},c,{id:o,"data-id":o}),l&&r.createElement(Ki.LeadingVisual,null,r.createElement(l,null)),null!=a?a:n,i&&r.createElement(Ki.TrailingVisual,null,r.createElement(i,null)))}))):!1!==w&&null!==w?r.createElement(mo,{p:3},w):null))}function td(){return td=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},td.apply(this,arguments)}function ad({menuAnchorRef:e,overlayProps:o,children:t,...a}){const n=l(ic);if(null===n)throw new Error("AutocompleteContext returned null values");const i={...o,...a},{inputRef:c,scrollContainerRef:d,selectedItemLength:s,setShowMenu:g,showMenu:v=!1}=n,{floatingElementRef:u,position:f}=Oa({side:"outside-bottom",align:"start",anchorElementRef:e||c},[v,s]);To(d,u);const h=b((()=>{g(!1)}),[g]);return"undefined"==typeof window?null:v?r.createElement(Xi,td({returnFocusRef:c,preventFocusOnOpen:!0,onClickOutside:h,onEscape:h,ref:u,top:null==f?void 0:f.top,left:null==f?void 0:f.left,sx:{overflow:"auto"}},i),t):r.createElement(Io,{"aria-hidden":"true"},t)}od.displayName="AutocompleteMenu",od.displayName="AutocompleteMenu",ad.displayName="AutocompleteOverlay";const nd={inputValue:"",showMenu:!1,isMenuDirectlyActivated:!1,autocompleteSuggestion:"",selectedItemLength:0},ld=(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}},id=({children:e,id:o})=>{const t=g(null),a=g(null),n=g(null),[l,i]=u(ld,nd),{inputValue:c,showMenu:d,autocompleteSuggestion:s,isMenuDirectlyActivated:v,selectedItemLength:f}=l,h=b((e=>{i({type:"inputValue",payload:e})}),[]),p=b((e=>{i({type:"showMenu",payload:e})}),[]),m=b((e=>{i({type:"autocompleteSuggestion",payload:e})}),[]),y=b((e=>{i({type:"isMenuDirectlyActivated",payload:e})}),[]),x=b((e=>{i({type:"selectedItemLength",payload:e})}),[]),C=Ho(o);return r.createElement(ic.Provider,{value:{activeDescendantRef:t,autocompleteSuggestion:s,id:C,inputRef:n,inputValue:c,isMenuDirectlyActivated:v,scrollContainerRef:a,selectedItemLength:f,setAutocompleteSuggestion:m,setInputValue:h,setIsMenuDirectlyActivated:y,setShowMenu:p,setSelectedItemLength:x,showMenu:d}},e)};id.displayName="Autocomplete";var cd=Object.assign(id,{Context:ic,Input:Qc,Menu:od,Overlay:ad});const dd={xsmall:{width:"320px"},small:{width:j.breakpoints[0]},medium:{width:j.breakpoints[1]},large:{width:j.breakpoints[2]},xlarge:{width:j.breakpoints[3]},xxlarge:{width:"1400px"}};function sd(e){return`@media screen and (min-width: ${e})`}const gd=function(e){return`@media screen and (max-width: calc(${e} - 0.02px))`}(dd.medium.width),bd=sd(dd.medium.width),vd=sd(dd.xxlarge.width);function ud(e,r,o){if($o(e)){const t=e,a="narrow"in t?{[gd]:{[r]:o(t.narrow)}}:{},n="regular"in t?{[bd]:{[r]:o(t.regular)}}:{},l="wide"in t?{[vd]:{[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 fd(){return fd=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},fd.apply(this,arguments)}const hd=20,pd=h.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);",""],Kr("lineHeights.condensedUltra"),(e=>e.square?"clamp(4px, var(--avatar-size) - 24px, 6px)":"50%"),Kr("colors.avatar.border"),po),md=r.forwardRef((function({alt:e="",size:o=20,square:t=!1,sx:a=So,...n},l){const i=$o(o)?to(ud(o,"--avatar-size",(e=>`${e||hd}px`)),a):to({"--avatar-size":`${o}px`},a);return r.createElement(pd,fd({ref:l,alt:e,size:o,square:t,sx:i},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=h(md).withConfig({displayName:"AvatarPair__ChildAvatar",componentId:"sc-1f7gzqg-0"})(["position:absolute;right:-15%;bottom:-9%;box-shadow:",";"],Kr("shadows.avatar.childShadow")),Cd=({children:e,...o})=>{const t=r.Children.map(e,((e,o)=>r.isValidElement(e)?0===o?r.cloneElement(e,{size:40}):r.createElement(xd,yd({bg:"canvas.default"},e.props,{size:20})):e));return r.createElement(mo,yd({position:"relative",display:"inline-flex"},o),t)};Cd.displayName="AvatarPair",Cd.displayName="AvatarPair";const wd=h.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?Kr("colors.avatar.border"):Kr("colors.canvas.default")),55,40,25,Kr("space.1"),Kr("space.1"),(e=>1===e.count?"":`box-shadow: 0 0 0 4px ${Kr("colors.canvas.default")};`),po),kd=({children:e,alignRight:o,disableExpand:t,size:a,sx:n=So})=>{const l=r.Children.count(e),i=Ic({"pc-AvatarStack--two":2===l,"pc-AvatarStack--three":3===l,"pc-AvatarStack--three-plus":l>3,"pc-AvatarStack--right":o}),c=Ic("pc-AvatarStackBody",{"pc-AvatarStack--disableExpand":t}),d=to(a?$o(a)?ud(a,"--avatar-stack-size",(e=>`${e||hd}px`)):{"--avatar-stack-size":`${a}px`}:ud((()=>{const o={narrow:[],regular:[],wide:[]};return r.Children.toArray(e).reduce(((e,t)=>{if(!r.isValidElement(t))return e;for(const r of Object.keys(o))$o(t.props.size)?o[r].push(t.props.size[r]||hd):o[r].push(t.props.size||hd),e[r]=Math.min(...o[r]);return e}),{narrow:hd,regular:hd,wide:hd})})(),"--avatar-stack-size",(e=>`${e}px`)),n);return r.createElement(wd,{count:l,className:i,sx:d},r.createElement(mo,{className:c}," ",(e=>r.Children.map(e,(e=>r.isValidElement(e)?r.cloneElement(e,{...e.props,className:Ic(e.props.className,"pc-AvatarItem")}):e)))(e)))};kd.displayName="AvatarStack";const Bd=h.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;",";"],Kr("fontSizes.0"),Kr("fonts.mono"),Kr("colors.accent.fg"),Kr("colors.accent.subtle"),Kr("radii.2"),po),Ed=h.li.withConfig({displayName:"Breadcrumbs__Wrapper",componentId:"sc-9m4wsf-0"})(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:",";font-size:",";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"],Kr("colors.fg.muted"),Kr("fontSizes.1")),Td=h.nav.withConfig({displayName:"Breadcrumbs__BreadcrumbsBase",componentId:"sc-9m4wsf-1"})(["display:flex;justify-content:space-between;",";"],po);function Sd({className:e,children:o,sx:t}){const a=r.Children.map(o,(e=>r.createElement(Ed,null,e)));return r.createElement(Td,{className:e,"aria-label":"Breadcrumbs",sx:t},r.createElement(mo,{as:"ol",my:0,pl:0},a))}Sd.displayName="Breadcrumbs";const Id=h.a.attrs((e=>({className:Ic(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{text-decoration:underline;}&.selected{color:",";pointer-events:none;}",";"],Kr("colors.accent.fg"),Kr("fontSizes.1"),Kr("colors.fg.default"),po);Sd.displayName="Breadcrumbs",Id.displayName="Breadcrumbs.Item";var Md=Object.assign(Sd,{Item:Id});const Nd=Object.assign(Sd,{Item:Id}),Ad=h.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1gxhls1-0"})(["display:inline-flex;vertical-align:middle;isolation:isolate;&& > [type='button'],&& > span[role='tooltip'] > [type='button']{margin-inline-end:-1px;position:relative;border-radius:0;:focus,:active,:hover{z-index:1;}}&& > [type='button']:first-child,&& > span[role='tooltip']:first-of-type > [type='button']{border-top-left-radius:",";border-bottom-left-radius:",";}&& > [type='button']:last-of-type,&& > span[role='tooltip']:last-of-type > [type='button']{border-top-right-radius:",";border-bottom-right-radius:",";}",";"],Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),po),Od={top:"Bottom",right:"Left",bottom:"Top",left:"Right"},Ld={top:"Left",right:"Top",bottom:"Left",left:"Top"};function jd(e,r,o){const t=Od[e].toLowerCase(),a=Ld[e].toLowerCase();return{[t]:"100%",[r||a]:r?o:"50%"}}const Rd=Fr({prop:"bg",key:"colors"}),Dd=Fr({prop:"borderColor",key:"colors"}),zd=Fr({prop:"borderWidth",key:"borderWidths",scale:[0,1]});function Pd(e){var o;const t=r.useContext(C),a={...e,bg:e.bg||"canvas.default",borderColor:e.borderColor||"border.default",borderWidth:e.borderWidth||1,theme:null!==(o=e.theme)&&void 0!==o?o:t},{bg:n}=Rd(a),{borderColor:l}=Dd(a),{borderWidth:i}=zd(a),{size:c=8,location:d="bottom"}=e,[s,g]=function(e){const[r,o]=e.split("-");return[r,o]}(d),b=Ld[s],v=[-c,0],u=[0,c],f=[c,0],h=`M${v}L${u}L${f}L${v}Z`,p=`M${v}L${u}L${f}`,m={top:`translate(${[c,2*c]}) rotate(180)`,right:`translate(${[0,c]}) rotate(-90)`,bottom:`translate(${[c,0]})`,left:`translate(${[2*c,c]}) rotate(90)`}[s];return r.createElement("svg",{width:2*c,height:2*c,style:{pointerEvents:"none",position:"absolute",...jd(s,g,c),[`margin${b}`]:g?null:-c},role:"presentation"},r.createElement("g",{transform:m},r.createElement("path",{d:h,fill:null==t?void 0:t.colors.canvas.default}),r.createElement("path",{d:h,fill:n}),r.createElement("path",{d:p,fill:"none",stroke:l,strokeWidth:i})))}function _d(){return _d=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},_d.apply(this,arguments)}function Hd(e){const{size:o=32,as:t,icon:a,bg:n,...l}=e;return r.createElement(mo,{as:t,bg:n,overflow:"hidden",borderWidth:0,size:o,borderRadius:"50%",borderStyle:"solid",borderColor:"border.default"},r.createElement(mo,_d({display:"flex",as:t,size:o},l,{alignItems:"center",justifyContent:"center"}),r.createElement(a,{size:o})))}Pd.displayName="Caret",Pd.locations=["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"],Hd.displayName="CircleOcticon";const Fd=c(null),Vd=Fd.Provider;function Wd(){var e;return null!==(e=l(Fd))&&void 0!==e?e:{}}function Zd(e={}){const r=l(Fd);return r?{disabled:r.disabled,id:r.id,required:r.required,validationStatus:r.validationStatus,"aria-describedby":[r.validationMessageId,r.captionId].filter(Boolean).join(" ")||void 0,...e}:e}const $d=c({});function Kd(){return Kd=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},Kd.apply(this,arguments)}const Gd=h.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,Kr("radii.1"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),Kr("colors.accent.fg"),Kr("colors.fg.muted"),Kr("colors.fg.muted"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.fg"),xo(),po),Ud=r.forwardRef((({checked:e,indeterminate:o,disabled:t,onChange:a,sx:n,required:i,validationStatus:c,value:d,...s},g)=>{const b=aa(g),v=l($d);return ot((()=>{b.current&&(b.current.indeterminate=o||!1)}),[o,e,b]),r.createElement(Gd,Kd({type:"checkbox",disabled:t,ref:g||b,checked:!o&&e,"aria-checked":o?"mixed":e?"true":"false",sx:n,required:i,"aria-required":i?"true":"false","aria-invalid":"error"===c?"true":"false",onChange:e=>{v.onChange&&v.onChange(e),a&&a(e)},value:d,name:d},s))}));function qd(){return qd=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},qd.apply(this,arguments)}Ud.displayName="Checkbox";const Yd=h.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;}}"]),Xd=({className:e})=>r.createElement("svg",{"aria-hidden":"true",width:"16",height:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:e},r.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"}));Xd.displayName="ArrowIndicatorSVG";const Jd=h(Xd).withConfig({displayName:"Select__ArrowIndicator",componentId:"sc-li6bhs-1"})(["pointer-events:none;position:absolute;right:",";top:50%;transform:translateY(-50%);"],"4px"),Qd=r.forwardRef((({block:e,children:o,contrast:t,disabled:a,placeholder:n,size:l,required:i,validationStatus:c,sx:d={},...s},g)=>r.createElement(Hc,{block:e,contrast:t,disabled:a,size:l,validationStatus:c,sx:to({overflow:"hidden",position:"relative","@media screen and (forced-colors: active)":{svg:{fill:a?"GrayText":"FieldText"}}},d)},r.createElement(Yd,qd({ref:g,required:i,disabled:a,"aria-invalid":"error"===c?"true":"false","data-hasplaceholder":Boolean(n),defaultValue:null!=n?n:void 0},s),n&&r.createElement("option",{value:"",disabled:i,hidden:i},n),o),r.createElement(Jd,null)))),es=e=>r.createElement("option",e);es.displayName="Option";const rs=e=>r.createElement("optgroup",e);rs.displayName="OptGroup";var os=Object.assign(Qd,{Option:es,OptGroup:rs}),ts=Y(pe,re,ee,J,oe,le,ce,se,ae,me,Ne,Ae,Oe),as=new RegExp("^("+ts.propNames.join("|")+")$");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)}const ls={small:"16px",medium:"20px",large:"24px",xlarge:"32px"},is="medium",cs=({as:e="span",onClick:r,onFocus:o,tabIndex:t=-1,disabled:a})=>!a&&Boolean(o||r||t>-1||["a","button"].includes(e)),ds=Me({prop:"size",variants:{small:{fontSize:0,height:ls.small,lineHeight:ls.small,paddingLeft:1,paddingRight:1},medium:{fontSize:0,height:ls.medium,lineHeight:ls.medium,paddingLeft:2,paddingRight:2},large:{fontSize:0,height:ls.large,lineHeight:ls.large,paddingLeft:2,paddingRight:2},xlarge:{fontSize:1,height:ls.xlarge,lineHeight:ls.xlarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),ss=h.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=>cs(e)?"pointer":"auto"),Kr("fontWeights.bold"),ds,po),gs=r.forwardRef((({onRemove:e,onKeyDown:o,id:t,size:a=is,...n},l)=>r.createElement(ss,ns({onKeyDown:r=>{o&&o(r),"Backspace"!==r.key&&"Delete"!==r.key||!e||e()},id:null==t?void 0:t.toString(),size:a},n,{ref:l}))));function bs(){return bs=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},bs.apply(this,arguments)}const vs=Me({prop:"size",variants:{small:{height:ls.small,width:ls.small},medium:{height:ls.medium,width:ls.medium},large:{height:ls.large,width:ls.large},xlarge:{height:ls.xlarge,width:ls.xlarge}}}),us=e=>.75*parseInt(ls[e||is],10),fs=h.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 y(["margin-left:",";"],Kr("space.2"));default:return y(["margin-left:",";"],Kr("space.1"))}}),Kr("colors.neutral.muted"),Kr("colors.neutral.subtle"),vs,po),hs=({"aria-label":e,isParentInteractive:o,size:t=is,...a})=>(delete a.children,r.createElement(fs,bs({as:o?"span":"button",tabIndex:o?-1:void 0,"aria-label":o?e:"Remove token",size:t},a),r.createElement(gn,{size:us(t)})));hs.displayName="RemoveTokenButton";const ps=h("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 ms(){return ms=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},ms.apply(this,arguments)}const ys=({children:e,size:o})=>r.createElement(mo,{sx:{flexShrink:0,lineHeight:0,marginRight:o&&["large","xlarge"].includes(o)?2:1}},e);ys.displayName="LeadingVisualContainer";const xs=t(((e,o)=>{const{as:t,onRemove:a,id:n,leadingVisual:l,text:i,size:c=is,hideRemoveButton:d,href:s,onClick:g,sx:b=So,...v}=e,u=cs(e)&&Boolean(a)&&!d,f={as:t,href:s,onClick:g},h=to({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&&a?0:void 0,...cs(e)?{"&:hover":{backgroundColor:"neutral.muted",boxShadow:"shadow.medium",color:"fg.default"}}:{}},b);return r.createElement(gs,ms({onRemove:a,id:null==n?void 0:n.toString(),text:i,size:c,sx:h},u?{}:f,v,{ref:o}),l?r.createElement(ys,{size:c},r.createElement(l,null)):null,r.createElement(ps,u?f:{},i),a&&r.createElement(Io,null," (press backspace or delete to remove)"),!d&&a?r.createElement(hs,{borderOffset:1,onClick:e=>{e.stopPropagation(),a&&a()},size:c,isParentInteractive:cs(e),"aria-hidden":u?"true":"false"}):null)}));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)}xs.displayName="Token";const ws={small:0,medium:1,large:1,xlarge:2};function ks({icon:e,leadingVisual:o,trailingVisual:t,loading:a,loaderPosition:n="auto",contrast:l,className:i,block:c,disabled:s,sx:b,tokens:v,onTokenRemove:u,tokenComponent:f=xs,preventTokenWrapping:h=!1,size:p="xlarge",hideTokenRemoveButtons:m=!1,maxHeight:y,width:x,minWidth:C,maxWidth:w,validationStatus:k,variant:B,visibleTokenCount:E,...T},S){const{onBlur:I,onFocus:M,onKeyDown:N,...A}=function(e){var r={};for(var o in e)as.test(o)||(r[o]=e[o]);return r}(T),O=g(null);To(S,O);const[L,j]=d(),[R,D]=d(Boolean(E)),{containerRef:z}=bn({focusOutBehavior:"wrap",bindKeys:Ca.ArrowHorizontal|Ca.HomeAndEnd,focusableElementFilter:e=>!e.getAttributeNames().includes("aria-hidden"),getNextFocusable:e=>{var r;if(!L&&0!==L)return;let o=L+1;return"next"===e&&(o+=1),"previous"===e&&(o-=1),o>v.length||o<1?O.current||void 0:null===(r=z.current)||void 0===r?void 0:r.children[o]}},[L]),P=e=>{u(e),setTimeout((()=>{var e,r;const o=null===(e=z.current)||void 0===e?void 0:e.children[L||0],t=o&&Ut(o)?o:Array.from((null===(r=z.current)||void 0===r?void 0:r.children)||[]).find((e=>Ut(e)));var a;t?t.focus():null===(a=O.current)||void 0===a||a.focus()}),0)},_=()=>{j(void 0),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},H=e=>{var r;"Escape"===e.key&&(null===(r=O.current)||void 0===r||r.focus())},F=e=>{e.stopPropagation()},V=R?v.slice(0,E):v,W=a&&("leading"===n||Boolean(o&&"trailing"!==n)),Z=a&&("trailing"===n||"auto"===n&&!o);return r.createElement(Hc,{block:c,className:i,contrast:l,disabled:s,hasLeadingVisual:Boolean(o||W),hasTrailingVisual:Boolean(t||Z),width:x,minWidth:C,maxWidth:w,size:{small:"small",medium:"small",large:"medium",xlarge:"medium"}[p],validationStatus:k,variant:B,onClick:()=>{var e;null===(e=O.current)||void 0===e||e.focus()},sx:{paddingLeft:zc,py:`calc(${zc} / 2)`,...c?{display:"flex",width:"100%"}:{},...y?{maxHeight:y,overflow:"auto"}:{},...h?{overflow:"auto"}:{},...b}},e&&!o&&r.createElement(e,{className:"TextInput-icon"}),r.createElement(Lc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"leading",showLoadingIndicator:W},"string"!=typeof o&&Tc.isValidElementType(o)?r.createElement(o,null):o),r.createElement(mo,{ref:z,display:"flex",sx:{alignItems:"center",flexWrap:h?"nowrap":"wrap",marginLeft:"-0.25rem",marginBottom:"-0.25rem",flexGrow:1,"> *":{flexShrink:0,marginLeft:"0.25rem",marginBottom:"0.25rem"}}},r.createElement(mo,{sx:{order:1,flexGrow:1}},r.createElement(Uc,Cs({ref:O,disabled:s,onFocus:e=>{M&&M(e),j(void 0),E&&D(!1)},onBlur:e=>{I&&I(e),setTimeout((()=>{var e;null!==(e=z.current)&&void 0!==e&&e.contains(document.activeElement)||!E||D(!0)}),0)},onKeyDown:e=>{var r;if(N&&N(e),null!==(r=O.current)&&void 0!==r&&r.value)return;const o=v[v.length-1];"Backspace"===e.key&&o&&(P(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"===k?"true":"false"},A))),V.map((({id:e,...o},t)=>{return r.createElement(f,Cs({disabled:s,key:e,onFocus:(a=t,()=>{s||j(a)}),onBlur:_,onKeyUp:H,onClick:F,isSelected:L===t,onRemove:()=>{P(e)},hideRemoveButton:s||m,size:p,tabIndex:0},o));var a})),R&&v.length-V.length?r.createElement(Jn,{color:"fg.muted",fontSize:ws[p]},"+",v.length-V.length):null),r.createElement(Lc,{hasLoadingIndicator:"boolean"==typeof a,visualPosition:"trailing",showLoadingIndicator:Z},"string"!=typeof t&&Tc.isValidElementType(t)?r.createElement(t,null):t))}ks.displayName="TextInputWithTokensInnerComponent";const Bs=r.forwardRef(ks);function Es(){return Es=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},Es.apply(this,arguments)}Bs.displayName="TextInputWithTokens";const Ts=h.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&&y(["resize:",";"],e.resize)),(e=>e.disabled&&y(["resize:none;"])),po),Ss=r.forwardRef((({value:e,disabled:o,sx:t,required:a,validationStatus:n,rows:l=7,cols:i=30,resize:c="both",block:d,contrast:s,...g},b)=>r.createElement(_c,{sx:t,validationStatus:n,disabled:o,block:d,contrast:s},r.createElement(Ts,Es({value:e,resize:c,"aria-required":a,"aria-invalid":"error"===n?"true":"false",ref:b,disabled:o,rows:l,cols:i},g)))));Ss.displayName="Textarea";const Is=({children:e,disabled:o,id:t,sx:a})=>r.createElement(Jn,{color:o?"fg.subtle":"fg.muted",display:"block",fontSize:0,id:t,sx:a},e);Is.displayName="InputCaption";const Ms=({children:e,sx:o,id:t})=>{const{captionId:a,disabled:n}=Wd();return r.createElement(Is,{id:t||a||"",disabled:n,sx:o},e)};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)}Ms.displayName="FormControlCaption";const As=({children:e,disabled:o,htmlFor:t,id:a,required:n,visuallyHidden:l,sx:i,as:c="label",...d})=>r.createElement(Io,Ns({isVisible:!l,as:c,htmlFor:t,id:a,sx:{fontWeight:"bold",fontSize:1,display:"block",color:o?"fg.muted":"fg.default",cursor:o?"not-allowed":"pointer",alignSelf:"flex-start",...i}},d),n?r.createElement(mo,{display:"flex",as:"span"},r.createElement(mo,{mr:1},e),r.createElement("span",null,"*")):e);As.displayName="InputLabel";const Os=({as:e,children:o,htmlFor:t,id:a,visuallyHidden:n,sx:l,...i})=>{const{disabled:c,id:d,required:s}=Wd(),g="legend"===e||"span"===e?{as:e,id:a,visuallyHidden:n,required:s,disabled:c,sx:l,...i}:{as:e,id:a,visuallyHidden:n,htmlFor:t||d,required:s,disabled:c,sx:l,...i};return r.createElement(As,g,o)};Os.displayName="FormControlLabel";const Ls=({children:e,sx:o})=>{const{disabled:t,captionId:a}=Wd();return r.createElement(mo,{color:t?"fg.muted":"fg.default",sx:{"> *":{minWidth:Kr(a?"fontSizes.4":"fontSizes.2"),minHeight:Kr(a?"fontSizes.4":"fontSizes.2"),fill:"currentColor"},...o},ml:2},e)};Ls.displayName="FormControlLeadingVisual";const js=({children:e,variant:o,sx:t,id:a})=>{const{validationMessageId:n}=Wd();return r.createElement(al,{validationStatus:o,id:a||n||"",sx:t},e)};js.displayName="FormControlValidation";const Rs=r.forwardRef((({children:e,disabled:o,layout:t="vertical",id:a,required:n,sx:i},c)=>{var d,s,g;const[b,v]=Go(e,{caption:Ms,label:Os,leadingVisual:Ls,validation:js}),u=[cd,Ud,pl,os,Xc,Bs,Ss],f=l(Qn).disabled||o,h=Ho(a),p=b.validation?`${h}-validationMessage`:void 0,m=b.caption?`${h}-caption`:void 0,y=null===(d=b.validation)||void 0===d?void 0:d.props.variant,x=v.find((e=>u.some((o=>r.isValidElement(e)&&e.type===o)))),C=r.isValidElement(x)&&x.props,w=r.isValidElement(x)&&(x.type===Ud||x.type===pl);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>")),b.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?(b.validation&&console.warn("Validation messages are not rendered for an individual checkbox or radio. The validation message should be shown for all options."),v.find((e=>{var o;return r.isValidElement(e)&&(null===(o=e.props)||void 0===o?void 0:o.required)}))&&console.warn("An individual checkbox or radio cannot be a required field.")):b.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=b.label)||void 0===s?void 0:s.props.visuallyHidden;return r.createElement(Vd,{value:{captionId:m,disabled:f,id:h,required:n,validationMessageId:p}},w||"horizontal"===t?r.createElement(mo,{ref:c,display:"flex",alignItems:b.leadingVisual?"center":void 0,sx:i},r.createElement(mo,{sx:{"> input":{marginLeft:0,marginRight:0}}},r.isValidElement(x)&&r.cloneElement(x,{id:h,disabled:f,"aria-describedby":m}),v.filter((e=>r.isValidElement(e)&&![Ud,pl].some((r=>e.type===r))))),b.leadingVisual&&r.createElement(mo,{color:f?"fg.muted":"fg.default",sx:{"> *":{minWidth:b.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),minHeight:b.caption?Kr("fontSizes.4"):Kr("fontSizes.2"),fill:"currentColor"}},ml:2},b.leadingVisual),null===(g=b.label)||void 0===g||!g.props.visuallyHidden||b.caption?r.createElement(mo,{display:"flex",flexDirection:"column",ml:2},b.label,b.caption):r.createElement(r.Fragment,null,b.label,b.caption)):r.createElement(mo,{ref:c,display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{...k?{"> *:not(label) + *":{marginTop:1}}:{"> * + *":{marginTop:1}},...i}},b.label,r.isValidElement(x)&&r.cloneElement(x,Object.assign({id:h,required:n,disabled:f,validationStatus:y,"aria-describedby":[p,m].filter(Boolean).join(" ")},x.props)),v.filter((e=>r.isValidElement(e)&&!u.some((r=>e.type===r)))),b.validation?r.createElement(Xn,{show:!0},b.validation):null,b.caption))}));var Ds=Object.assign(Rs,{Caption:Ms,Label:Os,LeadingVisual:Ls,Validation:js});function zs(){return zs=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},zs.apply(this,arguments)}const Ps=({children:e,disabled:o,onChange:t,...a})=>{const n=r.Children.toArray(e).filter((e=>r.isValidElement(e)&&e.type===Ds)).map((e=>r.isValidElement(e)?e.props.children:[])).flat(),l=r.Children.toArray(n).filter((e=>r.isValidElement(e)&&e.type===Ud)).map((e=>r.isValidElement(e)&&(e.props.checked||e.props.defaultChecked)&&e.props.value)).filter(Boolean),[i,c]=La(l);return r.createElement($d.Provider,{value:{disabled:o,onChange:e=>{t&&((e=>{const{value:r,checked:o}=e.currentTarget;c(o?[...i.current||[],r]:(i.current||[]).filter((e=>e!==r)))})(e),t(i.current||[],e))}}},r.createElement(dl,zs({disabled:o},a),e))};Ps.displayName="CheckboxGroup";var _s=Object.assign(Ps,{Caption:el,Label:rl,Validation:nl});const Hs={small:56,medium:96,large:128},Fs=h.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"),Kr("colors.canvas.default"),Kr("shadows.shadow.medium"),(({size:e,variant:r="medium"})=>{const o=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}(e)?e:Hs[r];return{width:o,height:o}}),po),Vs=h(Ha).withConfig({displayName:"CircleBadge__CircleBadgeIcon",componentId:"sc-nywehb-1"})(["height:auto;max-width:60%;max-height:55%;"]);Vs.displayName="CircleBadge.Icon";var Ws=Object.assign(Fs,{Icon:Vs});const Zs=h.details.withConfig({displayName:"Details",componentId:"sc-1jjccgx-0"})(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}",";"],po);Zs.displayName="Details";const $s=()=>null;function Ks(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 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=()=>null,qs=h.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;}",";"],Kr("shadows.shadow.large"),Kr("radii.2"),Kr("colors.canvas.default"),(e=>e.narrow?"320px":e.wide?"640px":"440px"),po),Ys=h(mo).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;}",";"],Kr("radii.2"),Kr("radii.2"),Kr("colors.border.default"),po);function Xs({theme:e,children:o,backgroundColor:t="canvas.subtle",...a}){return r.Children.toArray(o).every((e=>"string"==typeof e))&&(o=r.createElement(Jn,{theme:e,color:"fg.default",fontSize:1,fontWeight:"bold",fontFamily:"sans-serif"},o)),r.createElement(Ys,Gs({theme:e,p:3,backgroundColor:t},a),o)}Xs.displayName="DialogHeader";const Js=h.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:",";}"],Kr("colors.primer.canvas.backdrop")),Qs=t((({children:e,onDismiss:o=Us,isOpen:t,initialFocusRef:a,returnFocusRef:n,...l},c)=>{const d=g(null),s=g(null);To(c,s);const v=g(null),u=()=>{o(),n&&n.current&&n.current.focus()},{getDialogProps:f}=function({modalRef:e,overlayRef:r,isOpen:o,onDismiss:t=$s,initialFocusRef:a,closeButtonRef:n}){const l=b((o=>{e.current&&r.current&&o.target instanceof Node&&!e.current.contains(o.target)&&r.current.contains(o.target)&&t()}),[t,e,r]);i((()=>{if(o)return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[o,l]),i((()=>{o&&(a&&a.current?a.current.focus():n&&n.current&&n.current.focus())}),[o,a,n]);const c=b(((r,o)=>{if(e.current){const t=Array.from(e.current.querySelectorAll("*")).filter(Ks);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=b((e=>{const r=e.shiftKey?-1:1,o=c(e,r);o&&o.focus()}),[c]),s=b((e=>{"Tab"===e.key&&d(e)}),[d]);return ta((e=>{o&&(t(),e.preventDefault())}),[o,t]),{getDialogProps:()=>({onKeyDown:s})}}({modalRef:s,onDismiss:u,isOpen:t,initialFocusRef:a,closeButtonRef:v,returnFocusRef:n,overlayRef:d});return t?r.createElement(r.Fragment,null,r.createElement(Js,{ref:d}),r.createElement(qs,Gs({tabIndex:-1,ref:s,role:"dialog","aria-modal":"true"},l,f()),r.createElement(zo,{icon:gn,ref:v,onClick:u,sx:{position:"absolute",top:"8px",right:"16px"},"aria-label":"Close",variant:"invisible"}),e)):null}));Xs.propTypes={...mo.propTypes},Xs.displayName="Dialog.Header",Qs.displayName="Dialog";var eg=Object.assign(Qs,{Header:Xs});function rg(){return rg=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},rg.apply(this,arguments)}const og=Me({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"}}}}),tg=h.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:",";}",";",";"],Kr("colors.fg.default"),Kr("space.3"),(e=>e.full?"1px 0px":"1px"),(e=>e.full?"0":Kr("radii.2")),(e=>e.full?"-1px":"0"),Kr("space.2"),og,po),ag=r.forwardRef((function({as:e,variant:o="default",...t},a){return r.createElement(tg,rg({ref:a,as:e,variant:o},t))}));const ng=h.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;",";"],Kr("space.3"),Kr("fontSizes.1"),Kr("lineHeights.default"),Kr("colors.header.text"),Kr("colors.header.bg"),po),lg=h.div.withConfig({displayName:"Header__HeaderItem",componentId:"sc-1wu4agm-1"})(["display:flex;margin-right:",";align-self:stretch;align-items:center;flex-wrap:nowrap;",";",";"],Kr("space.3"),(({full:e})=>e&&y(["flex:auto;"])),po);lg.displayName="Header.Item";const ig=h.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:",";}",";"],Kr("fontWeights.bold"),Kr("colors.header.logo"),Kr("colors.header.text"),po);ig.displayName="Header.Link";var cg=Object.assign(ng,{Link:ig,Item:lg});function dg(){return dg=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},dg.apply(this,arguments)}const sg=h.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;",";",";",";"],Kr("fontWeights.bold"),Kr("fontSizes.0"),Me({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"}}}),Me({prop:"size",variants:{small:{height:"20px",padding:"0 7px"},large:{height:"24px",padding:"0 10px"}}}),po),gg=r.forwardRef((function({as:e,size:o="small",variant:t="default",...a},n){return r.createElement(sg,dg({as:e,size:o,variant:t,ref:n},a))}));function bg(){return bg=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},bg.apply(this,arguments)}const vg=h.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;}",";"],Kr("space.1"),po),ug=h.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;}"]),fg=({collapseButtonRef:e,collapseInlineExpandedChildren:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,showAllTokensInline:l,totalLength:i})=>n?r.createElement(jo,{ref:e,onClick:o,size:"small",variant:"invisible"},"Show less"):a.length?r.createElement(jo,{ref:t,variant:"invisible",size:"small",onClick:l},r.createElement(Io,null,"Show all ",i),r.createElement("span",{"aria-hidden":"true"},"+",a.length)):null,hg=({children:e,closeOverflowOverlay:o,expandButtonRef:t,hiddenItemIds:a,isOverflowShown:n,openOverflowOverlay:l,overlayPaddingPx:i,overlayWidth:c,totalLength:d})=>a.length?r.createElement(Qi,{open:n,onOpen:l,onClose:o,width:"auto",height:"auto",align:"start",side:"inside-right",anchorRef:t,anchorOffset:-1*i,alignmentOffset:-1*i,renderAnchor:e=>r.createElement(jo,bg({variant:"invisible",size:"small"},e,{ref:t}),r.createElement(Io,null,"Show all ",d),r.createElement("span",{"aria-hidden":"true"},"+",a.length)),focusZoneSettings:{disabled:!0}},r.createElement(mo,{alignItems:"flex-start",display:"flex",width:c,padding:`${i}px`},r.createElement(mo,{display:"flex",flexWrap:"wrap",sx:{gap:1}},e),r.createElement(zo,{onClick:o,icon:gn,"aria-label":"Close",variant:"invisible",sx:{flexShrink:0}}))):null,pg=({children:e,visibleChildCount:o,overflowStyle:t="overlay",sx:a})=>{const n=r.useRef(null),l=r.useRef(null),i=r.useRef(void 0),[c,d]=r.useState({}),[s,g]=r.useState(!1),[b,v]=r.useState({width:0,right:0,height:0,x:0,y:0,top:0,left:0,bottom:0,toJSON:()=>{}}),{theme:u}=co(),f=parseInt(Kr("space.2")(u),10),h=Object.keys(c).filter((e=>!c[e])),p=h.length&&"overlay"===t?((e,r,o)=>{var t,a;return o+e.right-((null===(t=r.current)||void 0===t||null===(a=t.getBoundingClientRect())||void 0===a?void 0:a.left)||0)})(b,n,f):void 0,m=r.useCallback((e=>{if(null!==e){const r=e.getBoundingClientRect();r.width===b.width&&r.right===b.right||v(r),m.current=e}}),[b]),y=r.useCallback((e=>{var r;const o=(null===(r=n.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=r.useCallback((()=>g(!0)),[g]),C=r.useCallback((()=>{g(!1)}),[g]),w=r.useCallback((()=>{g(!1),o&&"number"==typeof o&&y(o),setTimeout((()=>{var e;null===(e=m.current)||void 0===e||e.focus()}),10)}),[m,y,o]),k=r.useCallback((()=>{d({}),g(!0)}),[d,g]);return r.useEffect((()=>{if(o&&!s){if("auto"===o){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:n.current,rootMargin:`0px -${b.width}px 0px 0px`,threshold:1});for(const o of(null===(e=n.current)||void 0===e?void 0:e.children)||[]){var e;o.getAttribute("data-index")&&r.observe(o)}return()=>r.disconnect()}y(o)}}),[b,o,y,s]),r.useEffect((()=>{"overlay"!==t&&h.length&&(i.current=parseInt(h[0],10))}),[h,t,s]),r.useEffect((()=>{if("overlay"===t)return;const e=document.querySelector(`[data-index="${i.current}"]`),r=e?Gt(e):null;var o;s&&(r?r.focus():null===(o=l.current)||void 0===o||o.focus())}),[t,s]),o?r.createElement(vg,{ref:n,"data-overflow":"inline"===t&&s?"inline":void 0,sx:a},r.Children.map(e,((e,o)=>r.createElement(ug,{"data-index":o,className:h.includes(o.toString())?"ItemWrapper--hidden":void 0},e))),"inline"===t?r.createElement(fg,{collapseButtonRef:l,collapseInlineExpandedChildren:w,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,showAllTokensInline:k,totalLength:r.Children.toArray(e).length}):r.createElement(hg,{closeOverflowOverlay:C,expandButtonRef:m,hiddenItemIds:h,isOverflowShown:s,openOverflowOverlay:x,overlayPaddingPx:f,overlayWidth:p,totalLength:r.Children.toArray(e).length},e)):r.createElement(vg,{"data-overflow":"inline",sx:a},e)};function mg(){return mg=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},mg.apply(this,arguments)}pg.displayName="LabelGroup";const yg=e=>({paddingLeft:e>0?e+2:null,fontSize:e>0?0:null,fontWeight:e>0?"normal":null}),xg=h.nav.withConfig({displayName:"NavList__NavBox",componentId:"sc-1c8ygf7-0"})(po),Cg=r.forwardRef((({children:e,...o},t)=>r.createElement(xg,mg({},o,{ref:t}),r.createElement(Ki,null,e))));Cg.displayName="NavList";const wg=r.forwardRef((({"aria-current":e,children:o,defaultOpen:t,sx:a=So,...n},l)=>{const{depth:i}=r.useContext(Eg),c=r.Children.toArray(o).find((e=>f(e)&&e.type===Tg)),d=r.Children.toArray(o).filter((e=>!f(e)||e.type!==Tg));return!f(c)&&t&&console.error("NavList.Item must have a NavList.SubNav to use defaultOpen."),c&&f(c)?r.createElement(Bg,{subNav:c,depth:i,defaultOpen:t,sx:a},d):r.createElement(Ki.LinkItem,mg({ref:l,"aria-current":e,active:Boolean(e)&&"false"!==e,sx:to(yg(i),a)},n),o)}));wg.displayName="NavList.Item";const kg=r.createContext({buttonId:"",subNavId:"",isOpen:!1});function Bg({children:e,subNav:o,depth:t,defaultOpen:a,sx:n=So}){var l;const i=Ho(),c=Ho(),[d,s]=r.useState(null!==(l=a||null)&&void 0!==l&&l),g=r.useRef(null),[b,v]=r.useState(!1);return ot((()=>{if(g.current){g.current.querySelector("[aria-current]:not([aria-current=false])")&&(v(!0),s(!0))}}),[o,i]),r.createElement(kg.Provider,{value:{buttonId:i,subNavId:c,isOpen:d}},r.createElement(mo,{as:"li","aria-labelledby":i,sx:{listStyle:"none"}},r.createElement(Ki.Item,{as:"button",id:i,"aria-expanded":d,"aria-controls":c,active:!d&&b,onClick:()=>s((e=>!e)),sx:to({...yg(t),fontWeight:b?"bold":null},n)},e,r.createElement(Ki.TrailingVisual,null,r.createElement(Ha,{icon:Ga,sx:{transform:d?"rotate(180deg)":"rotate(0deg)"}}))),r.createElement("div",{ref:g},o)))}Bg.displayName="ItemWithSubNav";const Eg=r.createContext({depth:0}),Tg=({children:e,sx:o=So})=>{const{buttonId:t,subNavId:a,isOpen:n}=r.useContext(kg),{depth:l}=r.useContext(Eg);return t&&a||console.error("NavList.SubNav must be a child of a NavList.Item"),l>3?(console.error("NavList.SubNav only supports four levels of nesting"),null):r.createElement(Eg.Provider,{value:{depth:l+1}},r.createElement(mo,{as:"ul",id:a,"aria-labelledby":t,sx:to({padding:0,margin:0,display:n?"block":"none"},o)},e))};Tg.displayName="SubNav",Tg.displayName="NavList.SubNav";const Sg=Ki.LeadingVisual;Sg.displayName="NavList.LeadingVisual";const Ig=Ki.TrailingVisual;Ig.displayName="NavList.TrailingVisual";const Mg=Ki.Divider;Mg.displayName="NavList.Divider";const Ng={},Ag=({title:e,children:o,sx:t=Ng,...a})=>r.createElement(r.Fragment,null,r.createElement(Ki.Divider,{sx:{"&:first-child":{display:"none"}}}),r.createElement(Ki.Group,mg({},a,{title:e,sx:t}),o));Ag.displayName="NavList.Group";const Og=Object.assign(Cg,{Item:wg,SubNav:Tg,LeadingVisual:Sg,TrailingVisual:Ig,Divider:Mg,Group:Ag}),Lg=h.div.withConfig({displayName:"Pagehead",componentId:"sc-diawfz-0"})(["position:relative;padding-top:",";padding-bottom:",";margin-bottom:",";border-bottom:1px solid ",";",";"],Kr("space.4"),Kr("space.4"),Kr("space.4"),Kr("colors.border.default"),po);function jg(){return jg=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},jg.apply(this,arguments)}const Rg=e=>e&&"boolean"!=typeof e?Object.keys(e).filter((r=>!e[r])):e?[]:Object.keys(Zo),Dg=h.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 );}}"],Kr("colors.fg.default"),Kr("space.1"),Kr("radii.2"),Kr("colors.actionListItem.default.hoverBg"),xo(0),Kr("colors.border.muted"),Kr("colors.accent.fg"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.emphasis"),Kr("colors.primer.fg.disabled"),Kr("colors.primer.fg.disabled"),Kr("space.1"),Kr("space.1"));function zg({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c}){const d=r.useCallback((e=>r=>a(r,e)),[a]),s=r.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]}(o,t,!!i,l,c)),[o,t,i,l,c]),g=r.useMemo((()=>s.map((o=>{const{props:t,key:a,content:l}=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}}(o,n,d(o.num));return r.createElement(Dg,jg({},t,{key:a,theme:e}),l)}))),[s,n,d,e]);return g}const Pg=h.nav.withConfig({displayName:"Pagination__PaginationContainer",componentId:"sc-cp45c9-1"})(["margin-top:20px;margin-bottom:15px;text-align:center;"," ",";"],Object.keys(Zo).map((e=>`\n @media (${Zo[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(""),po);function _g({theme:e,pageCount:o,currentPage:t,onPageChange:a=Fg,hrefBuilder:n=Hg,marginPageCount:l=1,showPages:i=!0,surroundingPageCount:c=2,...d}){const s=zg({theme:e,pageCount:o,currentPage:t,onPageChange:a,hrefBuilder:n,marginPageCount:l,showPages:i,surroundingPageCount:c});return r.createElement(Pg,jg({"aria-label":"Pagination"},d,{theme:e}),r.createElement(mo,{display:"inline-block",theme:e,className:"TablePaginationSteps","data-hidden-viewport-ranges":Rg(i).join(" ")},s))}function Hg(e){return`#${e}`}function Fg(){}function Vg(){return Vg=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},Vg.apply(this,arguments)}function Wg(e){const o=r.useContext(C),{bg:t,border:a,borderColor:n,theme:l,sx:i}=e,{caret:c,children:d,...s}=e,{bg:g,backgroundColor:b,...v}=i||{},u=l||o,f=t||g||b,h={bg:t||(null==i?void 0:i.bg)||(null==i?void 0:i.backgroundColor),borderColor:n||(null==i?void 0:i.borderColor),borderWidth:a,location:c,theme:u};return r.createElement(mo,Vg({},{borderWidth:"1px",borderStyle:"solid",borderColor:"border.default",borderRadius:2},s,{sx:{...v,"--custom-bg":Kr(`colors.${f}`)({theme:u}),backgroundImage:f?`linear-gradient(var(--custom-bg), var(--custom-bg)), linear-gradient(${u.colors.canvas.default}, ${u.colors.canvas.default})`:void 0,position:"relative"}}),d,r.createElement(Pd,h))}_g.displayName="Pagination",Wg.displayName="PointerBox";const Zg=h.div.attrs((({className:e,caret:r="top"})=>({className:Ic(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"),po),$g=h.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);}}",";"],Kr("colors.border.default"),Kr("radii.2"),Kr("space.4"),Kr("colors.canvas.overlay"),Kr("space.3"),Kr("space.2"),Kr("colors.border.default"),Kr("space.2"),Kr("colors.canvas.overlay"),Zg,Zg,Zg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Zg,Zg,Zg,Zg,Kr("space.4"),Kr("space.4"),Zg,Zg,Zg,Zg,Zg,Zg,Kr("space.2"),Kr("space.2"),Zg,Zg,Zg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Zg,Zg,Zg,Kr("space.3"),Kr("colors.border.default"),Kr("colors.canvas.overlay"),Zg,Zg,Kr("space.4"),Zg,Zg,Kr("space.3"),Kr("space.3"),po);$g.displayName="Popover.Content";var Kg=Object.assign(Zg,{Content:$g});function Gg(){return Gg=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},Gg.apply(this,arguments)}const Ug=x(["from{mask-position:200%;}to{mask-position:0%;}"]),qg=h.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),Kr("colors.success.emphasis"),Ug,po);qg.displayName="ProgressBar.Item";const Yg={small:"5px",large:"10px",default:"8px"},Xg=h.span.withConfig({displayName:"ProgressBar__ProgressContainer",componentId:"sc-1jz8j7n-1"})(["display:",";overflow:hidden;background-color:",";border-radius:",";height:",";"," ",";"],(e=>e.inline?"inline-flex":"flex"),Kr("colors.border.default"),Kr("radii.1"),(e=>Yg[e.barSize||"default"]),Le,po),Jg=t((({animated:e,progress:o,bg:t="success.emphasis",barSize:a="default",children:n,...l},i)=>{if(n&&o)throw new Error("You should pass `progress` or children, not both.");const c="string"==typeof o?parseInt(o,10):o,d={"aria-valuenow":c?Math.round(c):void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!!c&&100!==c};return r.createElement(Xg,Gg({ref:i,role:"progressbar",barSize:a},d,l),null!=n?n:r.createElement(qg,{"data-animated":e,progress:o,sx:{backgroundColor:t}}))}));Jg.displayName="ProgressBar";const Qg=Object.assign(Jg,{Item:qg});var eb,rb=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},ob=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 tb="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)}},ab=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],nb={minimumIntegerDigits:2};class lb{constructor(e,r={}){eb.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;rb(this,eb,{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 ob(this,eb,"f")}formatToParts(e){const r=[],o=ob(this,eb,"f"),t=o.style,a=o.locale;for(const[t,n]of ab){const l=e[t];if("auto"===o[`${t}Display`]&&!l)continue;const i=o[t],c="2-digit"===i?nb:"numeric"===i?{}:{style:"unit",unit:n,unitDisplay:i};r.push(new Intl.NumberFormat(a,c).format(l))}return new tb(a,{type:"unit",style:"digital"===t?"short":t}).formatToParts(r)}format(e){return this.formatToParts(e).map((e=>e.value)).join("")}}eb=new WeakMap;const ib=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,cb=["year","month","week","day","hour","minute","second","millisecond"];class db{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 db(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(ib))||void 0===r?void 0:r.slice(1).map((e=>(Number(e)||0)*t));return a?new db(...a):new db}if("object"==typeof e){const{years:r,months:o,weeks:t,days:a,hours:n,minutes:l,seconds:i,milliseconds:c}=e;return new db(r,o,t,a,n,l,i,c)}throw new RangeError("invalid duration")}static compare(e,r){const o=Date.now(),t=Math.abs(sb(o,db.from(e)).getTime()-o),a=Math.abs(sb(o,db.from(r)).getTime()-o);return t>a?-1:t<a?1:0}toLocaleString(e,r){return new lb(e,r).format(this)}}function sb(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 gb(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 g=r.getFullYear();let b=r.getMonth();const v=r.getDate();return(l>=27||t+a&&l)&&(r.setDate(v+l*o),a+=Math.abs(r.getFullYear()>=g?r.getMonth()-b:r.getMonth()-b-12),a&&(l=0),b=r.getMonth()),l>=6&&(n+=Math.round(l/7)),(n||a||t)&&(l=0),n>=4&&(a+=Math.round(n/4)),(a||t)&&(n=0),(a>=11||t&&a)&&(r.setMonth(r.getMonth()+a*o),t+=Math.abs(g-r.getFullYear())),t&&(a=0),new db(t*o,a*o,n*o,l*o,i*o,c*o,d*o,s*o)}var bb,vb,ub,fb,hb,pb,mb,yb,xb,Cb,wb,kb=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)},Bb=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 Eb=globalThis.HTMLElement||null,Tb=new db,Sb=new db(0,0,0,0,0,1);class Ib 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 Mb(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 Nb=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=Mb(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,Mb(r)),r.update();this.time=Math.min(36e5,e),this.timer=setTimeout((()=>this.update()),this.time),this.time+=Date.now()}};class Ab extends Eb{constructor(){super(...arguments),bb.add(this),vb.set(this,!1),ub.set(this,!1),hb.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),wb.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 kb(this,wb,"f")}set onRelativeTimeUpdated(e){kb(this,wb,"f")&&this.removeEventListener("relative-time-updated",kb(this,wb,"f")),Bb(this,wb,"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,ib.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 cb.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(){Nb.unobserve(this)}attributeChangedCallback(e,r,o){r!==o&&("title"===e&&Bb(this,vb,null!==o&&(this.date&&kb(this,bb,"m",pb).call(this,this.date))!==o,"f"),kb(this,ub,"f")||"title"===e&&kb(this,vb,"f")||Bb(this,ub,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const e=kb(this,hb,"f").textContent||this.textContent||"",r=this.getAttribute("title")||"";let o=r;const t=this.date;if("undefined"==typeof Intl||!Intl.DateTimeFormat||!t)return void(kb(this,hb,"f").textContent=e);const a=Date.now();kb(this,vb,"f")||(o=kb(this,bb,"m",pb).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 db;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),g=Math.floor(s/12),b=cb.indexOf(r)||cb.length;return new db(b>=0?g*a:0,b>=1?(s-12*g)*a:0,0,b>=3?(d-30*s)*a:0,b>=4?(c-24*d)*a:0,b>=5?(i-60*c)*a:0,b>=6?(l-60*i)*a:0,b>=7?(n-1e3*l)*a:0)}(t,this.precision,a),l=kb(this,bb,"m",mb).call(this,n);let i=e;i="duration"===l?kb(this,bb,"m",yb).call(this,n):"relative"===l?kb(this,bb,"m",xb).call(this,n):kb(this,bb,"m",Cb).call(this,t),i?kb(this,hb,"f").textContent=i:this.shadowRoot===kb(this,hb,"f")&&this.textContent&&(kb(this,hb,"f").textContent=this.textContent),i===e&&o===r||this.dispatchEvent(new Ib(e,i,r,o)),"relative"===l||"duration"===l?Nb.observe(this):Nb.unobserve(this),Bb(this,ub,!1,"f")}}vb=new WeakMap,ub=new WeakMap,hb=new WeakMap,wb=new WeakMap,bb=new WeakSet,fb=function(){var e;return(null===(e=this.closest("[lang]"))||void 0===e?void 0:e.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},pb=function(e){return new Intl.DateTimeFormat(kb(this,bb,"a",fb),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(e)},mb=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===db.compare(e,this.threshold))return"relative"}return"datetime"},yb=function(e){const r=kb(this,bb,"a",fb),o=this.format,t=this.formatStyle,a=this.tense;let n=Tb;"micro"===o?(e=gb(e),n=Sb,("past"===this.tense&&-1!==e.sign||"future"===this.tense&&1!==e.sign)&&(e=Sb)):("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})},xb=function(e){const r=new Intl.RelativeTimeFormat(kb(this,bb,"a",fb),{numeric:"auto",style:this.formatStyle}),o=this.tense;"future"===o&&1!==e.sign&&(e=Tb),"past"===o&&-1!==e.sign&&(e=Tb);const[t,a]=function(e,r){const o=gb(e,r);if(o.blank)return[0,"second"];for(const e of cb){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)},Cb=function(e){const r=new Intl.DateTimeFormat(kb(this,bb,"a",fb),{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 Ob="undefined"!=typeof globalThis?globalThis:window;try{Ob.RelativeTimeElement=Ab.define()}catch(jb){if(!(Ob.DOMException&&jb instanceof DOMException&&"NotSupportedError"===jb.name||jb instanceof ReferenceError))throw jb}
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2018 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const Lb=new Set(["children","localName","ref","style","className"]),jb=new WeakMap,Rb=(e,r,o,t,a)=>{const n=null==a?void 0:a[r];void 0===n||o===t?null==o&&r in HTMLElement.prototype?e.removeAttribute(r):e[r]=o:((e,r,o)=>{let t=jb.get(e);void 0===t&&jb.set(e,t=new Map);let a=t.get(r);void 0!==o?void 0===a?(t.set(r,a={handleEvent:o}),e.addEventListener(r,a)):a.handleEvent=o:void 0!==a&&(t.delete(r),e.removeEventListener(r,a))})(e,n,o)};const Db=h(function(e=window.React,r,o,t,a){let n,l,i;if(void 0===r){const r=e;({tagName:l,elementClass:i,events:t,displayName:a}=r),n=r.react}else n=e,i=o,l=r;const c=n.Component,d=n.createElement,s=new Set(Object.keys(null!=t?t:{}));class g extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(const r in this.i)Rb(this.o,r,this.props[r],e?e[r]:void 0,t)}componentDidMount(){this.t()}componentDidUpdate(e){this.t(e)}render(){const{_$Gl:e,...r}=this.props;this.h!==e&&(this.u=r=>{null!==e&&((e,r)=>{"function"==typeof e?e(r):e.current=r})(e,r),this.o=r,this.h=e}),this.i={};const o={ref:this.u};for(const[e,t]of Object.entries(r))Lb.has(e)?o["className"===e?"class":e]=t:s.has(e)||e in i.prototype?this.i[e]=t:o[e]=t;return d(l,o)}}g.displayName=null!=a?a:i.name;const b=n.forwardRef(((e,r)=>d(g,{...e,_$Gl:r},null==e?void 0:e.children)));return b.displayName=g.displayName,b}(r,"relative-time",Ab)).withConfig({displayName:"RelativeTime",componentId:"sc-lqbqy3-0"})(po),zb={":first-child":{marginLeft:"-1px"},":last-child":{marginRight:"-1px"}},Pb={marginRight:"1px",":after":{backgroundColor:"var(--separator-color)",content:'""',position:"absolute",right:"-2px",top:2,bottom:2,width:"1px"}},_b=e=>({"--segmented-control-button-inner-padding":"12px","--segmented-control-button-bg-inset":"4px","--segmented-control-outer-radius":Kr("radii.2")(e),backgroundColor:"transparent",borderColor:"transparent",borderRadius:"var(--segmented-control-outer-radius)",borderWidth:0,color:"currentColor",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",fontWeight:null!=e&&e.selected?"bold":"normal",padding:null!=e&&e.selected?0:"var(--segmented-control-button-bg-inset)",height:"100%",width:"100%",".segmentedControl-content":{alignItems:"center",backgroundColor:null!=e&&e.selected?"segmentedControl.button.bg":"transparent",borderColor:null!=e&&e.selected?"segmentedControl.button.selected.border":"transparent",borderStyle:"solid",borderWidth:1,borderRadius:null!=e&&e.selected?"var(--segmented-control-outer-radius)":"calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2)",display:"flex",height:"100%",justifyContent:"center",paddingLeft:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))",paddingRight:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))"},svg:{fill:"fg.muted"},":hover .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.hover.bg"},":active .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.active.bg"},":focus:focus-visible:not(:last-child):after":{width:0},".segmentedControl-text":{":after":{content:`"${null==e?void 0:e.children}"`,display:"block",fontWeight:"bold",height:0,overflow:"hidden",pointerEvents:"none",userSelect:"none",visibility:"hidden"}},"@media (pointer: coarse)":{":before":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}}),Hb=()=>({display:"block",position:"relative",flexGrow:1,marginTop:"-1px",marginBottom:"-1px",":not(:last-child)":Pb,":focus-within:has(:focus-visible)":{"--separator-color":"transparent"},...zb});function Fb(){return Fb=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},Fb.apply(this,arguments)}const Vb=h.button.withConfig({displayName:"SegmentedControlButton__SegmentedControlButtonStyled",componentId:"sc-8lkgxl-0"})(["",";"],po),Wb=({children:e,leadingIcon:o,selected:t,sx:a=So,...n})=>{const l=to(Hb(),a);return r.createElement(mo,{as:"li",sx:l},r.createElement(Vb,Fb({"aria-current":t,sx:_b({selected:t,children:e})},n),r.createElement("span",{className:"segmentedControl-content"},o&&r.createElement(mo,{mr:1},r.createElement(o,null)),r.createElement(mo,{className:"segmentedControl-text"},e))))};function Zb(){return Zb=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},Zb.apply(this,arguments)}Wb.displayName="SegmentedControlButton";const $b=h.button.withConfig({displayName:"SegmentedControlIconButton__SegmentedControlIconButtonStyled",componentId:"sc-oxh6a9-0"})(["",";"],po),Kb=({"aria-label":e,icon:o,selected:t,sx:a=So,...n})=>{const l=to({width:"32px",...Hb()},a);return r.createElement(mo,{as:"li",sx:l},r.createElement($b,Zb({"aria-label":e,"aria-current":t,sx:_b({selected:t,isIconOnly:!0})},n),r.createElement("span",{className:"segmentedControl-content"},r.createElement(o,null))))};function Gb(){return Gb=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},Gb.apply(this,arguments)}Kb.displayName="SegmentedControlIconButton";const Ub=h.ul.withConfig({displayName:"SegmentedControl__SegmentedControlList",componentId:"sc-1rzig82-0"})(["",";"],po),qb=({"aria-label":e,"aria-labelledby":o,children:t,fullWidth:a,onChange:n,size:l,sx:i=So,variant:c="default",...s})=>{const b=g(null),{theme:v}=co(),u=void 0===n||r.Children.toArray(t).some((e=>r.isValidElement(e)&&void 0!==e.props.defaultSelected)),f=Ko(c,"default"),h=Ko(a,!1),p=r.Children.toArray(t).map((e=>r.isValidElement(e)&&(e.props.defaultSelected||e.props.selected))),m=p.some((e=>e))?p.indexOf(!0):0,[y,x]=d(m),C=u?y:m,w=r.isValidElement(r.Children.toArray(t)[C])?r.Children.toArray(t)[C]:void 0,k=e=>r.isValidElement(e)&&e.type===Wb&&e.props.leadingIcon?e.props.leadingIcon:r.isValidElement(e)?e.props.icon:null,B=e=>r.isValidElement(e)&&e.type===Wb?e.props.children:r.isValidElement(e)?e.props["aria-label"]:null,E=to({backgroundColor:"segmentedControl.bg",borderRadius:2,display:(T={isFullWidth:h,size:l}).isFullWidth?"flex":"inline-flex",fontSize:"small"===T.size?0:1,height:"small"===T.size?"28px":"32px",margin:0,padding:0,width:T.isFullWidth?"100%":void 0},i);var T;return e||o||console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies"),"dropdown"===f?r.createElement(r.Fragment,null,r.createElement(lc,null,r.createElement(lc.Button,{"aria-label":e,leadingVisual:k(w)},B(w)),r.createElement(lc.Overlay,{"aria-labelledby":o},r.createElement(Ki,{selectionVariant:"single"},r.Children.map(t,((e,o)=>{const t=k(e);return r.isValidElement(e)?r.createElement(Ki.Item,{key:`segmented-control-action-btn-${o}`,selected:o===C,onSelect:r=>{u&&x(o),n&&n(o),e.props.onClick&&e.props.onClick(r)}},t&&r.createElement(t,null)," ",B(e)):null})))))):r.createElement(Ub,Gb({sx:E,"aria-label":e,"aria-labelledby":o,ref:b},s),r.Children.map(t,((e,o)=>{if(!r.isValidElement(e))return null;const t={onClick:n?r=>{n(o),u&&x(o),e.props.onClick&&e.props.onClick(r)}:r=>{e.props.onClick&&e.props.onClick(r),u&&x(o)},selected:o===C,sx:{"--separator-color":o===C||o===C-1?"transparent":null==v?void 0:v.colors.border.default,...e.props.sx}};if("hideLabels"===f&&r.isValidElement(e)&&e.type===Wb){const{"aria-label":o,leadingIcon:a,children:n,...l}=e.props,{sx:i,...c}=t;if(a)return r.createElement(Kb,Gb({"aria-label":o||n,icon:a,sx:{...i,width:h?"100%":"32px"}},c,l));console.warn("A `leadingIcon` prop is required when hiding visible labels")}return r.cloneElement(e,t)})))};qb.displayName="SegmentedControl";const Yb=Object.assign(qb,{Button:Wb,IconButton:Kb});function Xb(){return Xb=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},Xb.apply(this,arguments)}const Jb=h.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-cjezay-0"})(["{}padding:6px ",";font-size:",";font-weight:",";color:",";"," ",""],Kr("space.3"),Kr("fontSizes.0"),Kr("fontWeights.bold"),Kr("colors.fg.muted"),(({variant:e})=>"filled"===e&&y(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Kr("colors.canvas.subtle"),Kr("space.2"),Kr("colors.neutral.muted"),Kr("colors.neutral.muted"))),po);function Qb({variant:e="subtle",title:o,auxiliaryText:t,children:a,...n}){return r.createElement(Jb,Xb({role:"heading",variant:e},n),o,t&&r.createElement("span",null,t))}Qb.displayName="Header";const ev=h.div.withConfig({displayName:"Group__StyledGroup",componentId:"sc-1s2aw76-0"})(["",""],po);function rv({header:e,items:o,...t}){return r.createElement(ev,t,e&&r.createElement(Qb,e),o)}rv.displayName="Group";const ov=h.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1s7tlfq-0"})(["height:1px;background:",";margin-top:calc("," - 1px);margin-bottom:",";"],Kr("colors.border.muted"),Kr("space.2"),Kr("space.2"));function tv(){return r.createElement(ov,null)}function av(){return av=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},av.apply(this,arguments)}tv.displayName="Divider",tv.renderItem=tv;const nv=(e="default",r)=>r?{color:Kr("colors.primer.fg.disabled"),iconColor:Kr("colors.primer.fg.disabled"),annotationColor:Kr("colors.primer.fg.disabled"),hoverCursor:"default"}:"danger"===e?{color:Kr("colors.danger.fg"),iconColor:Kr("colors.danger.fg"),annotationColor:Kr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Kr("colors.actionListItem.danger.hoverBg"),focusBg:Kr("colors.actionListItem.danger.activeBg"),hoverText:Kr("colors.actionListItem.danger.hoverText")}:{color:Kr("colors.fg.default"),iconColor:Kr("colors.fg.muted"),annotationColor:Kr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Kr("colors.actionListItem.default.hoverBg"),focusBg:Kr("colors.actionListItem.default.activeBg")},lv=h.div.withConfig({displayName:"Item__DividedContent",componentId:"sc-y6iv6t-0"})(["display:flex;min-width:0;position:relative;flex-grow:1;"]),iv=h.div.withConfig({displayName:"Item__MainContent",componentId:"sc-y6iv6t-1"})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]),cv=h.div.withConfig({displayName:"Item__StyledItem",componentId:"sc-y6iv6t-2"})(["padding:6px ",";display:flex;border-radius:",";color:",";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,"," );color:",";cursor:",";}}:not(:first-of-type):not("," + &):not("," + &){margin-top:",";","::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ",";border-top-width:",";}}&:hover ","::before,:hover + * ","::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ","::before,:focus + * ","::before,&[","] ","::before,[","] + & ","::before{border-color:transparent !important;}&[","='","']{background:",";}&[","='","']{background:",";}&:focus{background:",";outline:none;}&:active{background:",";}",""],Kr("space.2"),Kr("radii.2"),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).color),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverText),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverCursor),ov,Jb,(({showDivider:e})=>e?"1px":"0"),lv,Kr("colors.border.muted"),(({showDivider:e})=>e?"1px":"0"),lv,lv,lv,lv,Ea,lv,Ea,lv,Ea,Ta,(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).focusBg),Ea,Sa,(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).focusBg),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).focusBg),po),dv=h.span.withConfig({displayName:"Item__TextContainer",componentId:"sc-y6iv6t-3"})([""]),sv=h.div.withConfig({displayName:"Item__BaseVisualContainer",componentId:"sc-y6iv6t-4"})(["height:20px;width:",";margin-right:",";display:flex;justify-content:center;align-items:center;flex-shrink:0;"],Kr("space.3"),Kr("space.2")),gv=h(sv).withConfig({displayName:"Item__ColoredVisualContainer",componentId:"sc-y6iv6t-5"})(["svg{fill:",";font-size:",";}"],(({variant:e,disabled:r})=>nv(e,r).iconColor),Kr("fontSizes.0")),bv=h(gv).withConfig({displayName:"Item__LeadingVisualContainer",componentId:"sc-y6iv6t-6"})(["display:flex;flex-direction:column;justify-content:center;"]),vv=h(gv).withConfig({displayName:"Item__TrailingContent",componentId:"sc-y6iv6t-7"})(["color:",";margin-left:",";margin-right:0;width:auto;div:nth-child(2){margin-left:",";}"],(({variant:e,disabled:r})=>nv(e,r).annotationColor),Kr("space.2"),Kr("space.2")),uv=h.span.withConfig({displayName:"Item__DescriptionContainer",componentId:"sc-y6iv6t-8"})(["color:",";font-size:",";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"],Kr("colors.fg.muted"),Kr("fontSizes.0")),fv=h.svg.withConfig({displayName:"Item__MultiSelectIcon",componentId:"sc-y6iv6t-9"})(["rect{fill:",";stroke:",";shape-rendering:auto;}path{fill:",";boxshadow:",";opacity:",";}"],(({selected:e})=>Kr(e?"colors.accent.fg":"colors.canvas.default")),(({selected:e})=>Kr(e?"colors.accent.fg":"colors.border.default")),Kr("colors.fg.onEmphasis"),Kr("shadow.small"),(({selected:e})=>e?1:0)),hv=r.forwardRef(((e,o)=>{const{as:t,text:a,description:n,descriptionVariant:l="inline",selected:i,selectionVariant:c,leadingVisual:d,trailingIcon:s,trailingVisual:g,trailingText:v,variant:u="default",showDivider:f,disabled:h,onAction:p,onKeyPress:m,children:y,onClick:x,id:C,...w}=e,k=Ho(),B=Ho(),E=b((r=>{h||(null==m||m(r),!r.defaultPrevented&&[" ","Enter"].includes(r.key)&&(null==p||p(e,r)))}),[p,h,e,m]),T=b((r=>{h||(null==x||x(r),r.defaultPrevented||null==p||p(e,r))}),[p,h,e,x]),{theme:S}=co();return r.createElement(cv,av({ref:o,as:t,tabIndex:h?void 0:-1,variant:u,showDivider:f,"aria-selected":i,"aria-labelledby":a?k:void 0,"aria-describedby":n?B:void 0},w,{"data-id":C,onKeyPress:E,onClick:T}),!!i===i&&r.createElement(sv,null,"multiple"===c?r.createElement(r.Fragment,null,r.createElement(fv,{selected:i,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r.createElement("rect",{x:"2",y:"2",width:"12",height:"12",rx:"4"}),r.createElement("path",{fillRule:"evenodd",strokeWidth:"0",d:"M4.03231 8.69862C3.84775 8.20646 4.49385 7.77554 4.95539 7.77554C5.41693 7.77554 6.80154 9.85246 6.80154 9.85246C6.80154 9.85246 10.2631 4.314 10.4938 4.08323C10.7246 3.85246 11.8785 4.08323 11.4169 5.00631C11.0081 5.82388 7.26308 11.4678 7.26308 11.4678C7.26308 11.4678 6.80154 12.1602 6.34 11.4678C5.87846 10.7755 4.21687 9.19077 4.03231 8.69862Z"}))):i&&r.createElement($a,{fill:null==S?void 0:S.colors.fg.default})),d&&r.createElement(bv,{variant:u,disabled:h},r.createElement(d,null)),r.createElement(lv,null,r.createElement(iv,{style:{"--main-content-flex-direction":"inline"===l?"row":"column"}},y,a?r.createElement(dv,{id:k},a):null,n?r.createElement(uv,{id:B,style:{"--description-container-margin-left":"inline"===l?Kr("space.2")(S):0,"--description-container-flex-basis":"inline"===l?0:"auto"}},"block"===l?n:r.createElement(Bi,{title:n,inline:!0,maxWidth:"100%"},n)):null),g?r.createElement(vv,{variant:u,disabled:h},"string"!=typeof g&&Tc.isValidElementType(g)?r.createElement(g,null):g):s||v?r.createElement(vv,{variant:u,disabled:h},v,s&&r.createElement(s,null)):null))}));function pv(){return pv=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},pv.apply(this,arguments)}hv.displayName="ActionList.Item";const mv=h.div.withConfig({displayName:"List__StyledList",componentId:"sc-hkz3q0-0"})(["font-size:",";line-height:20px;&[","],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:",";}"],Kr("fontSizes.1"),Ia,Kr("colors.border.muted"));const yv=r.forwardRef(((e,o)=>{const{firstGroupStyle:t,lastGroupStyle:a,headerStyle:n,itemStyle:l}=function(e="inset"){return"full"===e?{headerStyle:{paddingX:Kr("space.2")},itemStyle:{borderRadius:0}}:{firstGroupStyle:{marginTop:Kr("space.2")},lastGroupStyle:{marginBottom:Kr("space.2")},itemStyle:{marginX:Kr("space.2")}}}(e.variant),i=(o,t,a)=>{var n,i,c;const d="renderItem"in o&&o.renderItem||e.renderItem||hv,s=null!==(n=null!==(i="key"in o?o.key:void 0)&&void 0!==i?i:null===(c=o.id)||void 0===c?void 0:c.toString())&&void 0!==n?n:a.toString();return r.createElement(d,pv({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},o,{key:s,sx:{...l,...o.sx},item:t}))};let c=[];if(function(e){return"groupMetadata"in e}(e)){const r=e.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const o of e.items){var d,s,g;const e=r.get(o.groupId),t=null!==(d=null==e||null===(s=e.items)||void 0===s?void 0:s.length)&&void 0!==d?d:0;r.set(o.groupId,{...e,items:[...null!==(g=null==e?void 0:e.items)&&void 0!==g?g:[],i({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...o},o,t)]})}c=[...r.values()]}else c=[{items:e.items.map(((e,r)=>i(e,e,r))),groupId:"0"}];return r.createElement(mv,pv({},e,{ref:o}),c.map((({header:o,...l},i)=>{const d="filled"===(null==o?void 0:o.variant),s=i>0&&!d;return r.createElement(r.Fragment,{key:l.groupId},s?r.createElement(tv,{key:`${l.groupId}-divider`}):null,(o=>{var t;const a=(null!==(t="renderGroup"in o&&o.renderGroup)&&void 0!==t?t:e.renderGroup)||rv;return r.createElement(a,pv({},o,{key:o.groupId}))})({sx:{...0===i&&t,...i===c.length-1&&a,...i>0&&!s&&{mt:2}},...o&&{header:{...o,sx:{...n,...o.sx}}},...l}))})))}));yv.displayName="ActionList";const xv=Object.assign(yv,{Group:rv,Item:hv,Divider:tv});const Cv=h.div.withConfig({displayName:"VisuallyHidden",componentId:"sc-1sffg7y-0"})(["&:not(:focus):not(:active):not(:focus-within){clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;}",""],po);function wv(){return wv=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},wv.apply(this,arguments)}const kv={startMargin:0,endMargin:8},Bv=h.div.withConfig({displayName:"FilteredActionList__StyledHeader",componentId:"sc-1oqgb0s-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Kr("colors.border.default"));function Ev({loading:e=!1,placeholderText:o,filterValue:t,onFilterChange:a,items:n,textInputProps:l,inputRef:c,sx:d,...s}){const[v,u]=ja(t,void 0,""),f=b((e=>{const r=e.target.value;a(r,e),u(r)}),[a,u]),h=g(null),p=g(null),m=aa(c),y=g(),x=Ho(),C=Ho(),w=b((e=>{if("Enter"===e.key&&y.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);y.current.dispatchEvent(r)}}),[y]);return bn({containerRef:p,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:m,onActiveDescendantChanged:(e,r,o)=>{y.current=e,e&&h.current&&o&&Na(e,h.current,kv)}},[e]),i((()=>{y.current&&h.current&&Na(y.current,h.current,{...kv,behavior:"auto"})}),[n]),function(e){i((()=>{const r=e.current;if(!r)return;const o=r.scrollTop,t=r.scrollHeight,a=o<Math.min(1,t)?o+1:o-1;r.scrollTop=a,r.scrollTop=o}),[e])}(h),r.createElement(mo,{display:"flex",flexDirection:"column",overflow:"hidden",sx:d},r.createElement(Bv,null,r.createElement(Xc,wv({ref:m,block:!0,width:"auto",color:"fg.default",value:v,onChange:f,onKeyPress:w,placeholder:o,"aria-label":o,"aria-controls":x,"aria-describedby":C},l))),r.createElement(Cv,{id:C},"Items will be filtered as you type"),r.createElement(mo,{ref:h,overflow:"auto"},e?r.createElement(mo,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Oc,null)):r.createElement(xv,wv({ref:p,items:n},s,{role:"listbox",id:x}))))}Ev.displayName="FilteredActionList",Ev.displayName="FilteredActionList";const Tv=r.createContext(null);function Sv(){const e=r.useContext(Tv);if(!e)throw new Error("useLiveRegion() must be used within a <LiveRegion>");return e}function Iv({children:e}){const[o,t]=r.useState(""),a=r.useMemo((()=>({announce:t,message:o})),[o]);return r.createElement(Tv.Provider,{value:a},e)}function Mv(){const e=Sv();return r.createElement(Cv,{role:"status","aria-live":"polite","aria-atomic":!0},e.message)}function Nv({value:e}){const o=Sv(),t=r.useRef(o),a=r.useRef(!1);return r.useEffect((()=>{t.current=o}),[o]),r.useEffect((()=>{if(!0!==a.current)return;const r=setTimeout((()=>{t.current.announce(e)}),750);return()=>{clearTimeout(r)}}),[e]),r.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),null}function Av(){return Av=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},Av.apply(this,arguments)}function Ov(e){return Array.isArray(e)}Iv.displayName="LiveRegion",Mv.displayName="LiveRegionOutlet";const Lv={disabled:!0};function jv({open:e,onOpenChange:o,renderAnchor:t=(e=>{const{children:o,...t}=e;return r.createElement(jo,Av({trailingAction:sn},t),o)}),anchorRef:n,placeholder:l,placeholderText:i="Filter items",inputLabel:c=i,selected:d,title:s=(Ov(d)?"Select items":"Select an item"),subtitle:g,onSelectedChange:v,filterValue:u,onFilterChange:f,items:h,textInputProps:p,overlayProps:m,sx:y,...x}){const C=Ho(),w=Ho(),[k,B]=ja(u,void 0,""),E=b(((e,r)=>{f(e,r),B(e)}),[f,B]),T=aa(n),S=b((e=>o(!0,e)),[o]),I=b((e=>{o(!1,e)}),[o]),M=a((()=>{if(null===t)return null;const e=Array.isArray(d)?d:[...d?[d]:[]];return r=>t({...r,children:e.length?e.map((e=>e.text)).join(", "):l})}),[l,t,d]),N=a((()=>h.map((e=>{const r=Ov(d)?d.includes(e):d===e;return{...e,role:"option",selected:"selected"in e&&void 0===e.selected?void 0:r,onAction:(r,o)=>{var t;if(null===(t=e.onAction)||void 0===t||t.call(e,r,o),o.defaultPrevented)return;if(Ov(d)){const r=d.filter((r=>r!==e)),o=d.includes(e)?r:[...r,e];return void v(o)}v(e===d?void 0:e),I("selection")}}}))),[I,v,h,d]),A=r.useRef(null),O={initialFocusRef:A},L=a((()=>({sx:{m:2},contrast:!0,leadingVisual:cn,"aria-label":c,...p})),[c,p]);return r.createElement(Iv,null,r.createElement(Qi,{renderAnchor:M,anchorRef:T,open:e,onOpen:S,onClose:I,overlayProps:{role:"dialog","aria-labelledby":C,"aria-describedby":g?w:void 0,...m},focusTrapSettings:O,focusZoneSettings:Lv},r.createElement(Mv,null),r.createElement(Nv,{value:""===k?"Showing all items":h.length<=0?"No matching items":`${h.length} matching ${1===h.length?"item":"items"}`}),r.createElement(mo,{sx:{display:"flex",flexDirection:"column",height:"inherit",maxHeight:"inherit"}},r.createElement(mo,{sx:{pt:2,px:3}},r.createElement(Cl,{as:"h1",id:C,sx:{fontSize:1}},s),g?r.createElement(mo,{id:w,sx:{fontSize:0,color:"fg.muted"}},g):null),r.createElement(Ev,Av({filterValue:k,onFilterChange:E,placeholderText:i},x,{role:"listbox","aria-multiselectable":Ov(d)?"true":"false",selectionVariant:Ov(d)?"multiple":"single",items:N,textInputProps:L,inputRef:A,sx:{...y,height:"inherit",maxHeight:"inherit"}})))))}function Rv({variant:e="normal",className:o,bordered:t,children:a,"aria-label":n}){const l=Ic(o,`variant-${"lightweight"===e?"lightweight":"normal"}`);return r.createElement(mo,{borderWidth:t?"1px":0,borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:l,"aria-label":n},a)}jv.displayName="SelectPanel",jv.displayName="SelectPanel",Rv.displayName="SideNavBase";const Dv=h(Rv).withConfig({displayName:"SideNav",componentId:"sc-11f1jdr-0"})(["background-color:",";"," ",";"],Kr("colors.canvas.subtle"),(e=>e.bordered&&y(["& > &{border-left:0;border-right:0;border-bottom:0;}"])),po),zv=y(["background-color:",";text-decoration:none;"],Kr("colors.neutral.subtle")),Pv=y(["color:",";text-decoration:none;"],Kr("colors.fg.default")),_v=h(Vi).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{})).withConfig({displayName:"SideNav__SideNavLink",componentId:"sc-11f1jdr-1"})(["position:relative;display:block;"," width:100%;text-align:left;font-size:",";& > ","{border-bottom:none;}",".variant-normal > &{color:",";padding:",";border:0;border-top:"," solid ",";&:first-child{border-top:0;border-top-right-radius:",";border-top-left-radius:",";}&:last-child{border-bottom-right-radius:",";border-bottom-left-radius:",";}&::before{position:absolute;top:0;bottom:0;left:0;z-index:1;width:3px;pointer-events:none;content:'';}&:hover{","}&:focus{"," outline:solid 2px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{background-color:",";&::before{background-color:",";}}}",".variant-lightweight > &{padding:"," 0;color:",";&:hover{","}&:focus{"," outline:solid 1px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{color:",";font-weight:",";}}",";"],(e=>"full"===e.variant&&y(["display:flex;align-items:center;justify-content:space-between;"])),Kr("fontSizes.1"),Dv,Dv,Kr("colors.fg.default"),Kr("space.3"),Kr("borderWidths.1"),Kr("colors.border.muted"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),zv,zv,Kr("colors.accent.fg"),Kr("colors.sidenav.selectedBg"),Kr("colors.primer.border.active"),Dv,Kr("space.1"),Kr("colors.accent.fg"),Pv,Pv,Kr("colors.accent.fg"),Kr("colors.fg.default"),Kr("fontWeights.semibold"),po);_v.displayName="SideNav.Link";var Hv=Object.assign(Dv,{Link:_v});function Fv(){return Fv=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},Fv.apply(this,arguments)}const Vv={issueOpened:an,pullOpened:Qa,issueClosed:on,issueClosedNotPlanned:dn,pullClosed:en,pullMerged:Xa,draft:rn,issueDraft:tn,pullQueued:Ja,unavailable:Wa},Wv=Me({prop:"status",variants:{issueClosed:{backgroundColor:"done.emphasis",color:"fg.onEmphasis"},issueClosedNotPlanned:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"},pullClosed:{backgroundColor:"closed.emphasis",color:"fg.onEmphasis"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis"},pullQueued:{backgroundColor:"attention.emphasis",color:"fg.onEmphasis"},issueOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis"},pullOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"},unavailable:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"}}}),Zv=Me({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),$v=h.span.withConfig({displayName:"StateLabel__StateLabelBase",componentId:"sc-qthdln-0"})(["display:inline-flex;align-items:center;font-weight:",";line-height:16px;color:",";text-align:center;border-radius:",";",";",";",";"],Kr("fontWeights.bold"),Kr("colors.canvas.default"),Kr("radii.3"),Wv,Zv,po);function Kv({children:e,status:o,variant:t="normal",...a}){const n="small"===t?{width:"1em"}:{};return r.createElement($v,Fv({},a,{variant:t,status:o}),o&&r.createElement(Ha,Fv({},n,{icon:Vv[o]||ln,sx:{mr:1}})),e)}function Gv(){return Gv=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},Gv.apply(this,arguments)}Kv.displayName="StateLabel";const Uv=h.nav.withConfig({displayName:"SubNav__SubNavBase",componentId:"sc-1t692wx-0"})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:",";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}",";"],Kr("space.2"),po);function qv({actions:e,className:o,children:t,label:a,...n}){const l=Ic(o,"SubNav");return r.createElement(Uv,Gv({className:l,"aria-label":a},n),r.createElement("div",{className:"SubNav-body"},t),e&&r.createElement("div",{className:"SubNav-actions"},e))}qv.displayName="SubNav";const Yv=h.div.withConfig({displayName:"SubNav__SubNavLinks",componentId:"sc-1t692wx-1"})(["display:flex;",";"],po),Xv=h.a.attrs((e=>({className:Ic("SubNav-item",e.selected&&"selected",e.className)}))).withConfig({displayName:"SubNav__SubNavLink",componentId:"sc-1t692wx-2"})(["padding-left:",";padding-right:",";font-weight:",";font-size:",";line-height:20px;min-height:34px;color:",";text-align:center;text-decoration:none;border-top:1px solid ",";border-bottom:1px solid ",";border-right:1px solid ",";display:flex;align-items:center;&:first-of-type{border-top-left-radius:",";border-bottom-left-radius:",";border-left:1px solid ",";}&:last-of-type{border-top-right-radius:",";border-bottom-right-radius:",";}&:hover,&:focus{text-decoration:none;background-color:",";transition:background-color 0.2s ease;.SubNav-octicon{color:",";}}&.selected{color:",";background-color:",";border-color:",";.SubNav-octicon{color:",";}}",";"],Kr("space.3"),Kr("space.3"),Kr("fontWeights.semibold"),Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("colors.border.default"),Kr("colors.border.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("radii.2"),Kr("colors.border.default"),Kr("radii.2"),Kr("radii.2"),Kr("colors.canvas.subtle"),Kr("colors.fg.muted"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.emphasis"),Kr("colors.accent.emphasis"),Kr("colors.fg.onEmphasis"),po);Xv.displayName="SubNav.Link",Yv.displayName="SubNav.Links";var Jv=Object.assign(qv,{Link:Xv,Links:Yv});function Qv(){return Qv=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},Qv.apply(this,arguments)}const eu="80ms",ru="cubic-bezier(0.5, 1, 0.89, 1)",ou=Me({prop:"size",variants:{small:{height:"24px",width:"48px"}}}),tu=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"}));tu.displayName="CircleIcon";const au=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"}));au.displayName="LineIcon";const nu=h.button.withConfig({displayName:"ToggleSwitch__SwitchButton",componentId:"sc-e6gszy-0"})(["vertical-align:middle;cursor:pointer;user-select:none;appearance:none;text-decoration:none;padding:0;transition-property:background-color,border-color;transition-duration:",";transition-timing-function:",";border-radius:",";border-style:solid;border-width:1px;display:block;height:32px;width:64px;outline-offset:3px;position:relative;overflow:hidden;@media (pointer:coarse){&:before{content:'';position:absolute;left:0;right:0;transform:translateY(-50%);top:50%;min-height:44px;}}@media (prefers-reduced-motion){transition:none;*{transition:none;}}&:hover,&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"," "," ",""],eu,ru,Kr("radii.2"),Kr("colors.switchTrack.hoverBg"),Kr("colors.switchTrack.activeBg"),(e=>e.disabled?y(["background-color:",";border-color:transparent;cursor:not-allowed;transition-property:none;"],Kr("colors.switchTrack.disabledBg")):e.checked?y(["background-color:",";border-color:transparent;&:hover,&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"],Kr("colors.switchTrack.checked.bg"),Kr("colors.switchTrack.checked.hoverBg"),Kr("colors.switchTrack.checked.activeBg")):y(["background-color:",";border-color:transparent;&:active{background-color:",";}"],Kr("colors.switchTrack.bg"),Kr("colors.switchTrack.activeBg"))),po,ou),lu=h.div.withConfig({displayName:"ToggleSwitch__ToggleKnob",componentId:"sc-e6gszy-1"})(["background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:calc("," - 1px);width:50%;position:absolute;top:0;bottom:0;transition-property:transform;transition-duration:",";transition-timing-function:",";transform:",";z-index:1;@media (prefers-reduced-motion){transition:none;}",""],Kr("colors.switchKnob.bg"),(e=>e.disabled?Kr("colors.switchTrack.disabledBg"):Kr("colors.switchKnob.border")),Kr("radii.2"),eu,ru,(e=>`translateX(${e.checked?"100%":"0px"})`),(e=>e.disabled?y(["border-color:",";"],Kr("colors.switchTrack.disabledBg")):e.checked?y(["border-color:",";"],Kr("colors.switchKnob.checked.border")):void 0)),iu={visibility:"hidden",height:0},cu=r.forwardRef((function(e,o){const{"aria-labelledby":t,"aria-describedby":a,defaultChecked:n,disabled:l,loading:c,checked:d,onChange:s,onClick:g,size:v="medium",statusLabelPosition:u="start",sx:f,...h}=e,p=void 0!==d,[m,y]=ja(d,s,Boolean(n)),x=!l&&!c,C=b((e=>{p||y(!m),g&&g(e)}),[g,p,m,y]);return i((()=>{s&&p&&s(Boolean(d))}),[s,d,p]),r.createElement(mo,Qv({display:"inline-flex",alignItems:"center",flexDirection:"start"===u?"row":"row-reverse",sx:f},h),c?r.createElement(Oc,{size:"small"}):null,r.createElement(Jn,{color:x?"fg.default":"fg.muted",fontSize:"small"===v?0:1,mx:2,"aria-hidden":"true",sx:{position:"relative",cursor:"pointer"},onClick:C},r.createElement(mo,{textAlign:"right",sx:m?null:iu},"On"),r.createElement(mo,{textAlign:"right",sx:m?iu:null},"Off")),r.createElement(nu,{ref:o,onClick:C,"aria-labelledby":t,"aria-describedby":a,"aria-pressed":m,checked:m,size:v,disabled:!x},r.createElement(mo,{"aria-hidden":"true",display:"flex",alignItems:"center",width:"100%",height:"100%",overflow:"hidden"},r.createElement(mo,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.checked.fg":"switchTrack.checked.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"0":"-100%"})`,transitionProperty:"transform",transitionDuration:eu}},r.createElement(au,{size:v})),r.createElement(mo,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.fg":"switchTrack.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"100%":"0"})`,transitionProperty:"transform",transitionDuration:eu}},r.createElement(tu,{size:v}))),r.createElement(lu,{"aria-hidden":"true",disabled:!x,checked:m})))}));function du(){return du=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},du.apply(this,arguments)}const su=h.div.withConfig({displayName:"TabNav__TabNavBase",componentId:"sc-pwdi4r-0"})(["",""],po),gu=h.div.withConfig({displayName:"TabNav__TabNavTabList",componentId:"sc-pwdi4r-1"})(["display:flex;margin-bottom:-1px;overflow:auto;"]),bu=h.nav.withConfig({displayName:"TabNav__TabNavNav",componentId:"sc-pwdi4r-2"})(["margin-top:0;border-bottom:1px solid ",";"],Kr("colors.border.default"));function vu({children:e,"aria-label":o,...t}){const a=g(null),[n,l]=d(!1);r.useEffect((()=>{if(a.current){a.current.closest("[role=menu]")&&l(!0)}}),[a]);const i=r.useCallback((()=>{var e,r,o;const t=null===(e=a.current)||void 0===e?void 0:e.querySelector("[role=tab][aria-selected=true]"),n=null===(r=a.current)||void 0===r?void 0:r.querySelector("[role=tab]");return null!==(o=null!=t?t:n)&&void 0!==o?o:void 0}),[a]),{containerRef:c}=bn({containerRef:a,bindKeys:Ca.ArrowHorizontal|Ca.HomeAndEnd,focusOutBehavior:"wrap",focusInStrategy:n?"previous":i,focusableElementFilter:e=>"tab"===e.getAttribute("role")},[n]);return r.createElement(su,du({},t,{ref:c}),r.createElement(bu,{"aria-label":o},r.createElement(gu,{role:"tablist"},e)))}vu.displayName="TabNav";const uu=h.a.attrs((e=>({className:Ic("TabNav-item",e.selected&&"selected",e.className),role:"tab","aria-selected":!!e.selected,tabIndex:-1}))).withConfig({displayName:"TabNav__TabNavLink",componentId:"sc-pwdi4r-3"})(["padding:8px 12px;font-size:",";line-height:20px;color:",";text-decoration:none;background-color:transparent;border:1px solid transparent;border-bottom:0;",";&:hover,&:focus{color:",";text-decoration:none;}&.selected{color:",";border-color:",";border-top-right-radius:",";border-top-left-radius:",";background-color:",";}",";"],Kr("fontSizes.1"),Kr("colors.fg.default"),xo("-6px"),Kr("colors.fg.default"),Kr("colors.fg.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("radii.2"),Kr("colors.canvas.default"),po);uu.displayName="TabNav.Link";var fu=Object.assign(vu,{Link:uu});const hu=h.div.withConfig({displayName:"Timeline",componentId:"sc-1nkzbnu-0"})(["display:flex;flex-direction:column;"," ",";"],(e=>e.clipSidebar&&y([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])),po),pu=h.div.attrs((e=>({className:Ic("Timeline-Item",e.className)}))).withConfig({displayName:"Timeline__TimelineItem",componentId:"sc-1nkzbnu-1"})(["display:flex;position:relative;padding:"," 0;margin-left:",";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:",";}"," ",";"],Kr("space.3"),Kr("space.3"),Kr("colors.border.muted"),(e=>e.condensed&&y(["padding-top:",";padding-bottom:0;&:last-child{padding-bottom:",";}.TimelineItem-Badge{height:16px;margin-top:",";margin-bottom:",";color:",";background-color:",";border:0;}"],Kr("space.1"),Kr("space.3"),Kr("space.2"),Kr("space.2"),Kr("colors.fg.muted"),Kr("colors.canvas.default"))),po),mu=e=>r.createElement(mo,{position:"relative",zIndex:1},r.createElement(mo,{display:"flex",className:"TimelineItem-Badge",flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center",sx:e.sx},e.children));mu.displayName="TimelineBadge";const yu=h.div.withConfig({displayName:"Timeline__TimelineBody",componentId:"sc-1nkzbnu-2"})(["min-width:0;max-width:100%;margin-top:",";color:",";flex:auto;font-size:",";",";"],Kr("space.1"),Kr("colors.fg.muted"),Kr("fontSizes.1"),po),xu=h.div.withConfig({displayName:"Timeline__TimelineBreak",componentId:"sc-1nkzbnu-3"})(["position:relative;z-index:1;height:24px;margin:0;margin-bottom:-",";margin-left:0;background-color:",";border:0;border-top:"," solid ",";",";"],Kr("space.3"),Kr("colors.canvas.default"),Kr("space.1"),Kr("colors.border.default"),po);pu.displayName="Timeline.Item",mu.displayName="Timeline.Badge",yu.displayName="Timeline.Body",xu.displayName="Timeline.Break";var Cu=Object.assign(hu,{Item:pu,Badge:mu,Body:yu,Break:xu});function wu(e,r,o){return Math.min(Math.max(e,o),r)}class ku extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Bu=ku;function Eu(e){if("string"!=typeof e)throw new Bu(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let r=e.trim();r=Lu.test(e)?function(e){const r=e.toLowerCase().trim(),o=Su[function(e){let r=5381,o=e.length;for(;o;)r=33*r^e.charCodeAt(--o);return(r>>>0)%2341}(r)];if(!o)throw new Bu(e);return`#${o}`}(e):e;const o=Mu.exec(r);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(Iu(e,2),16))),parseInt(Iu(e[3]||"f",2),16)/255]}const t=Nu.exec(r);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=Au.exec(r);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=Ou.exec(r);if(n){const[r,o,t,a]=Array.from(n).slice(1).map(parseFloat);if(wu(0,100,o)!==o)throw new Bu(e);if(wu(0,100,t)!==t)throw new Bu(e);return[...Ru(r,o,t),Number.isNaN(a)?1:a]}throw new Bu(e)}const Tu=e=>parseInt(e.replace(/_/g,""),36),Su="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,r)=>{const o=Tu(r.substring(0,3)),t=Tu(r.substring(3)).toString(16);let a="";for(let e=0;e<6-t.length;e++)a+="0";return e[o]=`${a}${t}`,e}),{});const Iu=(e,r)=>Array.from(Array(r)).map((()=>e)).join(""),Mu=new RegExp(`^#${Iu("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Nu=new RegExp(`^#${Iu("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Au=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Iu(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Ou=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Lu=/^[a-z]+$/i,ju=e=>Math.round(255*e),Ru=(e,r,o)=>{let t=o/100;if(0===r)return[t,t,t].map(ju);const a=(e%360+360)%360/60,n=(1-Math.abs(2*t-1))*(r/100),l=n*(1-Math.abs(a%2-1));let i=0,c=0,d=0;a>=0&&a<1?(i=n,c=l):a>=1&&a<2?(i=l,c=n):a>=2&&a<3?(c=n,d=l):a>=3&&a<4?(c=l,d=n):a>=4&&a<5?(i=l,d=n):a>=5&&a<6&&(i=n,d=l);const s=t-n/2;return[i+s,c+s,d+s].map(ju)};function Du(){return Du=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},Du.apply(this,arguments)}const zu={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},Pu={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},_u=t(((e,o)=>{const{as:t,fillColor:n="#999",onRemove:l,id:i,isSelected:c,text:d,size:s=is,hideRemoveButton:g,href:b,onClick:v,...u}=e,f={as:t,href:b,onClick:v},{resolvedColorScheme:h}=co(),p=cs(e)&&Boolean(l)&&!g,m=a((()=>{const[r,o,t]=Eu(n),[a,i,d]=function(e){const[r,o,t,a]=Eu(e).map(((e,r)=>3===r?e:e/255)),n=Math.max(r,o,t),l=Math.min(r,o,t),i=(n+l)/2;if(n===l)return[0,0,i,a];const c=n-l;return[60*(r===n?(o-t)/c+(o<t?6:0):o===n?(t-r)/c+2:(r-o)/c+4),i>.5?c/(2-n-l):c/(n+l),i,a]}(n),s=!(null!=h&&h.startsWith("dark"));return{"--label-r":String(r),"--label-g":String(o),"--label-b":String(t),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*i)),"--label-l":String(Math.round(100*d)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:g||!l?void 0:0,position:"relative",...s?zu:Pu,...c?{background:s?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":Pu.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+(s?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{},...cs(e)?{"&:hover":{...s?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), linear-gradient(rgb(var(--label-r),var(--label-g),var(--label-b)), rgb(var(--label-r),var(--label-g),var(--label-b)))"}:{background:"hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);"},boxShadow:"shadow.medium"}}:{}}}),[n,h,g,l,c,e]);return r.createElement(gs,Du({onRemove:l,id:null==i?void 0:i.toString(),isSelected:c,text:d,size:s,sx:m},p?{}:f,u,{ref:o}),r.createElement(ps,p?f:{},d),!g&&l?r.createElement(hs,{borderOffset:1,onClick:e=>{e.stopPropagation(),l&&l()},size:s,"aria-hidden":p?"true":"false",isParentInteractive:cs(e),sx:p?{position:"relative",zIndex:"1"}:{}}):null)}));function Hu(){return Hu=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},Hu.apply(this,arguments)}_u.displayName="IssueLabelToken";const Fu=h.span.withConfig({displayName:"AvatarToken__AvatarContainer",componentId:"sc-62sih1-0"})(["--spacing:calc("," * 2);display:block;height:",";width:",";"],Kr("space.1"),(e=>`calc(${ls[e.avatarSize]} - var(--spacing))`),(e=>`calc(${ls[e.avatarSize]} - var(--spacing))`)),Vu=t((({avatarSrc:e,id:o,size:t=is,...a},n)=>r.createElement(xs,Hu({leadingVisual:()=>r.createElement(Fu,{avatarSize:t},r.createElement(md,{src:e,size:parseInt(ls[t],10),sx:{width:"100%",height:"100%"}})),size:t,id:null==o?void 0:o.toString(),sx:{paddingLeft:Kr("space.1")}},a,{ref:n}))));function Wu(e){var r,o,t;const a=e.getAttribute("aria-label"),n=e.getAttribute("aria-labelledby");return a||(n?null!==(r=null===(o=document.getElementById(n))||void 0===o?void 0:o.textContent)&&void 0!==r?r:"":null!==(t=e.textContent)&&void 0!==t?t:"")}function Zu({containerRef:e,mouseDownRef:r}){bn({containerRef:e,bindKeys:Ca.ArrowVertical|Ca.ArrowHorizontal|Ca.HomeAndEnd|Ca.Backspace|Ca.PageUpDown,preventScroll:!0,getNextFocusable:(e,r,o)=>{var t;if(r instanceof HTMLElement){try{if(r.closest("dialog:modal"))return}catch{}return null!==(t=function(e,r){switch(`${function(e){if("treeitem"!==e.getAttribute("role"))throw new Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e)} ${r.key}`){case"open ArrowRight":return Ku(e);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return Gu(e)}switch(r.key){case"ArrowUp":return $u(e,"previous");case"ArrowDown":return $u(e,"next");case"Backspace":return Gu(e);case"Home":return function(e){const r=e.closest("[role=tree]"),o=null==r?void 0:r.querySelector("[role=treeitem]");return o instanceof HTMLElement?o:void 0}(e);case"End":return function(e){const r=e.closest("[role=tree]"),o=Array.from((null==r?void 0:r.querySelectorAll("[role=treeitem]"))||[]);if(0===o.length)return;let t=o.length-1,a=o[t];for(;t>0&&a instanceof HTMLElement&&null!==(n=a.parentElement)&&void 0!==n&&n.closest("[role=treeitem][aria-expanded=false]");){var n;t-=1,a=o[t]}return a instanceof HTMLElement?a:void 0}(e);case"PageUp":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=qu(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.max(0,(n-1)*a+l)]}(e);case"PageDown":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=qu(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.min(o.length-1,(n+1)*a+l)]}(e)}}(r,o))&&void 0!==t?t:r}},focusInStrategy:()=>{var o,t,a;if(r.current)return;const n=null===(o=e.current)||void 0===o?void 0:o.querySelector("[aria-current]"),l=null===(t=e.current)||void 0===t?void 0:t.querySelector('[role="treeitem"]');return n instanceof HTMLElement?n:document.activeElement instanceof HTMLElement&&null!==(a=e.current)&&void 0!==a&&a.contains(document.activeElement)?document.activeElement:l instanceof HTMLElement?l:void 0}})}function $u(e,r){const o=e.closest("[role=tree]");if(!o)return;const t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,(e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let a=t.firstChild();for(;a!==e;)a=t.nextNode();let n="next"===r?t.nextNode():t.previousNode();for(;n instanceof HTMLElement&&null!==(l=n.parentElement)&&void 0!==l&&l.closest("[role=treeitem][aria-expanded=false]");){var l;n="next"===r?t.nextNode():t.previousNode()}return n instanceof HTMLElement?n:void 0}function Ku(e){const r=e.querySelector("[role=treeitem]");return r instanceof HTMLElement?r:void 0}function Gu(e){const r=e.closest("[role=group]"),o=null==r?void 0:r.closest("[role=treeitem]");return o instanceof HTMLElement?o:void 0}Vu.displayName="AvatarToken";const Uu={height:32};function qu(e,r){var o,t;const a=tt(e),{height:n}=null!==(o=null==r?void 0:r.getBoundingClientRect())&&void 0!==o?o:Uu,l=null!==(t=null==a?void 0:a.clientHeight)&&void 0!==t?t:window.innerHeight;return Math.floor(l/n)}const Yu=r.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map}}),Xu=r.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:""}),Ju=h.ul.withConfig({displayName:"TreeView__UlBox",componentId:"sc-4ex6b6-0"})(["list-style:none;padding:0;margin:0;.PRIVATE_TreeView-item{outline:none;&:focus-visible > div,&.focus-visible > div{box-shadow:inset 0 0 0 2px ",";@media (forced-colors:active){outline:2px solid HighlightText;outline-offset:-2;}}}.PRIVATE_TreeView-item-container{--level:1;--toggle-width:1rem;position:relative;display:grid;grid-template-columns:calc(calc(var(--level) - 1) * (var(--toggle-width) / 2)) var(--toggle-width) 1fr;grid-template-areas:'spacer toggle content';width:100%;min-height:2rem;font-size:",";color:",";border-radius:",";cursor:pointer;&:hover{background-color:",";@media (forced-colors:active){outline:2px solid transparent;outline-offset:-2px;}}@media (pointer:coarse){--toggle-width:1.5rem;min-height:2.75rem;}&:has(.PRIVATE_TreeView-item-skeleton):hover{background-color:transparent;cursor:default;@media (forced-colors:active){outline:none;}}}&[data-omit-spacer='true'] .PRIVATE_TreeView-item-container{grid-template-columns:0 0 1fr;}.PRIVATE_TreeView-item[aria-current='true'] > .PRIVATE_TreeView-item-container{background-color:",";&::after{content:'';position:absolute;top:calc(50% - 0.75rem);left:-",";width:0.25rem;height:1.5rem;background-color:",";border-radius:",";@media (forced-colors:active){background-color:HighlightText;}}}.PRIVATE_TreeView-item-toggle{grid-area:toggle;display:flex;align-items:center;justify-content:center;height:100%;color:",";}.PRIVATE_TreeView-item-toggle--hover:hover{background-color:",";}.PRIVATE_TreeView-item-toggle--end{border-top-left-radius:",";border-bottom-left-radius:",";}.PRIVATE_TreeView-item-content{grid-area:content;display:flex;align-items:center;height:100%;padding:0 ",";gap:",";}.PRIVATE_TreeView-item-content-text{flex:1 1 auto;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.PRIVATE_TreeView-item-visual{display:flex;color:",";}.PRIVATE_TreeView-item-level-line{width:100%;height:100%;border-right:1px solid;border-color:",";}@media (hover:hover){.PRIVATE_TreeView-item-level-line{border-color:transparent;}&:hover .PRIVATE_TreeView-item-level-line,&:focus-within .PRIVATE_TreeView-item-level-line{border-color:",";}}.PRIVATE_TreeView-directory-icon{display:grid;color:",";}.PRIVATE_VisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}",""],Kr("colors.accent.fg"),Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("radii.2"),Kr("colors.actionListItem.default.hoverBg"),Kr("colors.actionListItem.default.selectedBg"),Kr("space.2"),Kr("colors.accent.fg"),Kr("radii.2"),Kr("colors.fg.muted"),Kr("colors.treeViewItem.chevron.hoverBg"),Kr("radii.2"),Kr("radii.2"),Kr("space.2"),Kr("space.2"),Kr("colors.fg.muted"),Kr("colors.border.subtle"),Kr("colors.border.subtle"),Kr("colors.treeViewItem.directory.fill"),po),Qu=({"aria-label":e,"aria-labelledby":o,children:t,flat:a})=>{const n=r.useRef(null),l=r.useRef(!1),[c,d]=r.useState(""),s=r.useCallback((e=>{d(e)}),[]),g=b((()=>{l.current=!0}),[]);i((()=>{function e(){l.current=!1}return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]),Zu({containerRef:n,mouseDownRef:l}),function({containerRef:e,onFocusChange:o}){const t=r.useRef(""),a=r.useRef(0),n=r.useRef(o),{safeSetTimeout:l,safeClearTimeout:i}=Ht();r.useEffect((()=>{n.current=o}),[o]);const c=r.useCallback((r=>{if(!r)return;if(!e.current)return;const o=e.current,t=Array.from(o.querySelectorAll('[role="treeitem"]')),a=t.findIndex((e=>e===document.activeElement));let l=(c=a,(i=t).map(((e,r)=>i[(c+r)%i.length])));var i,c;1===r.length&&(l=l.slice(1));const d=l.find((e=>Wu(e).toLowerCase().startsWith(r.toLowerCase())));d&&n.current(d)}),[e]);r.useEffect((()=>{if(!e.current)return;const r=e.current;function o(e){!e.key||e.key.length>1||e.ctrlKey||e.altKey||e.metaKey||(t.current+=e.key,c(t.current),i(a.current),a.current=l((()=>t.current=""),300),e.preventDefault(),e.stopPropagation())}return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)}),[e,c,i,l])}({containerRef:n,onFocusChange:e=>{e instanceof HTMLElement&&e.focus()}});const v=r.useRef(null);return null===v.current&&(v.current=new Map),r.createElement(Yu.Provider,{value:{announceUpdate:s,expandedStateCache:v}},r.createElement(r.Fragment,null,r.createElement(Io,{role:"status","aria-live":"polite","aria-atomic":"true"},c),r.createElement(Ju,{ref:n,role:"tree","aria-label":e,"aria-labelledby":o,"data-omit-spacer":a,onMouseDown:g},t)))};Qu.displayName="Root",Qu.displayName="TreeView";const ef=r.forwardRef((({id:e,containIntrinsicSize:o,current:t=!1,defaultExpanded:a,expanded:n,onExpandedChange:l,onSelect:i,children:c},d)=>{const[s,g]=Go(c,{leadingVisual:lf,trailingVisual:cf}),{expandedStateCache:b}=r.useContext(Yu),v=Ho(),u=Ho(),f=Ho(),[h,p]=function({name:e="custom",defaultValue:o,value:t,onChange:a}){const[n,l]=r.useState(null!=t?t:o),i=r.useRef(null),c=r.useRef(a);r.useEffect((()=>{c.current=a})),null===i.current&&(i.current=void 0!==t);const d=r.useCallback((e=>{var r;const o="function"==typeof e?e(n):e;!1===i.current&&l(o),null===(r=c.current)||void 0===r||r.call(c,o)}),[n]);return r.useEffect((()=>{i.current,i.current}),[e,t]),!0===i.current?[t,d]:[n,d]}({name:e,defaultValue:()=>{var r,o,n;return null!==(r=null!==(o=null===(n=b.current)||void 0===n?void 0:n.get(e))&&void 0!==o?o:a)&&void 0!==r?r:t},value:n,onChange:l}),{level:m}=r.useContext(Xu),{hasSubTree:y,subTree:x,childrenWithoutSubTree:C}=function(e){return r.useMemo((()=>{const o=r.Children.toArray(e).find((e=>r.isValidElement(e)&&e.type===of));return{subTree:o,childrenWithoutSubTree:r.Children.toArray(e).filter((e=>!(r.isValidElement(e)&&e.type===of))),hasSubTree:Boolean(o)}}),[e])}(g),[w,k]=r.useState(!y),[B,E]=r.useState(!1),T=r.useCallback((r=>{var o;p(r),null===(o=b.current)||void 0===o||o.set(e,r)}),[e,p,b]),S=r.useCallback((e=>{T(!h),null==e||e.stopPropagation()}),[h,T]),I=r.useCallback((e=>{switch(e.key){case"Enter":i?i(e):S(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),T(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),T(!1)}}),[i,T,S]);return r.createElement(Xu.Provider,{value:{itemId:e,level:m+1,isSubTreeEmpty:w,setIsSubTreeEmpty:k,isExpanded:h,setIsExpanded:T,leadingVisualId:u,trailingVisualId:f}},r.createElement("li",{className:"PRIVATE_TreeView-item",ref:d,tabIndex:0,id:e,role:"treeitem","aria-labelledby":v,"aria-describedby":`${u} ${f}`,"aria-level":m,"aria-expanded":w?void 0:h,"aria-current":t?"true":void 0,"aria-selected":B?"true":"false",onKeyDown:I,onFocus:e=>{var r;null===(r=e.currentTarget.firstElementChild)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),E(!0),e.stopPropagation()},onBlur:()=>E(!1),onClick:e=>{i?i(e):S(e),e.stopPropagation()},onAuxClick:e=>{i&&1===e.button&&i(e),e.stopPropagation()}},r.createElement("div",{className:"PRIVATE_TreeView-item-container",style:{"--level":m,contentVisibility:o?"auto":void 0,containIntrinsicSize:o}},r.createElement("div",{style:{gridArea:"spacer",display:"flex"}},r.createElement(rf,{level:m})),y?r.createElement("div",{className:Ic("PRIVATE_TreeView-item-toggle",i&&"PRIVATE_TreeView-item-toggle--hover",1===m&&"PRIVATE_TreeView-item-toggle--end"),onClick:e=>{i&&S(e)}},h?r.createElement(Ga,{size:12}):r.createElement(Ua,{size:12})):null,r.createElement("div",{id:v,className:"PRIVATE_TreeView-item-content"},s.leadingVisual,r.createElement("span",{className:"PRIVATE_TreeView-item-content-text"},C),s.trailingVisual)),x))})),rf=({level:e})=>r.createElement("div",{style:{width:"100%",display:"flex"}},Array.from({length:e-1}).map(((e,o)=>r.createElement("div",{key:o,className:"PRIVATE_TreeView-item-level-line"}))));rf.displayName="LevelIndicatorLines",ef.displayName="TreeView.Item";const of=({count:e,state:o,children:t})=>{const{announceUpdate:a}=r.useContext(Yu),{itemId:n,isExpanded:l,isSubTreeEmpty:i,setIsSubTreeEmpty:c}=r.useContext(Xu),d=r.useRef(null),s=r.useRef(null),[g,b]=r.useState(!1),v=function(e){const o=r.useRef(e);return r.useEffect((()=>{o.current=e}),[e]),o.current}(o),{safeSetTimeout:u}=Ht();return r.useEffect((()=>{void 0!==o&&"done"!==o||(i||t?i&&t&&c(!1):c(!0))}),[o,i,c,t]),r.useEffect((()=>{if("loading"===v&&"done"===o){var e;const r=document.getElementById(n);if(!r)return;const o=Wu(r);if(null!==(e=s.current)&&void 0!==e&&e.childElementCount?a(`${o} content loaded`):a(`${o} is empty`),g){const e=Ku(r);u(e?()=>{e.focus()}:()=>{r.focus()}),b(!1)}}}),[g,v,o,n,a,s,u]),r.useEffect((()=>{function e(){b(!0)}function r(e){e.relatedTarget&&b(!1)}const o=d.current;if(o)return o.addEventListener("focus",e),o.addEventListener("blur",r),()=>{o.removeEventListener("focus",e),o.removeEventListener("blur",r)}}),[d,o]),l?r.createElement("ul",{role:"group",style:{listStyle:"none",padding:0,margin:0},ref:s},"loading"===o?r.createElement(nf,{ref:d,count:e}):t):null};of.displayName="SubTree",of.displayName="TreeView.SubTree";const tf=x(["from{mask-position:200%;}to{mask-position:0%;}"]),af=h.span.attrs({className:"PRIVATE_TreeView-item-skeleton"}).withConfig({displayName:"TreeView__SkeletonItem",componentId:"sc-4ex6b6-1"})(["display:flex;align-items:center;column-gap:0.5rem;height:2rem;@media (pointer:coarse){height:2.75rem;}@media (prefers-reduced-motion:no-preference){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;}&::before{content:'';display:block;width:1rem;height:1rem;background-color:",";border-radius:3px;@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}}&::after{content:'';display:block;width:var(--tree-item-loading-width,67%);height:1rem;background-color:",";border-radius:3px;@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}}&:nth-of-type(5n + 1){--tree-item-loading-width:67%;}&:nth-of-type(5n + 2){--tree-item-loading-width:47%;}&:nth-of-type(5n + 3){--tree-item-loading-width:73%;}&:nth-of-type(5n + 4){--tree-item-loading-width:64%;}&:nth-of-type(5n + 5){--tree-item-loading-width:50%;}"],tf,Kr("colors.neutral.subtle"),Kr("colors.neutral.subtle")),nf=r.forwardRef((({count:e},o)=>{const t=Ho();return e?r.createElement(ef,{id:t,ref:o},Array.from({length:e}).map(((e,o)=>r.createElement(af,{"aria-hidden":!0,key:o}))),r.createElement("div",{className:"PRIVATE_VisuallyHidden"},"Loading ",e," items")):r.createElement(ef,{id:t,ref:o},r.createElement(lf,null,r.createElement(Oc,{size:"small"})),r.createElement(Jn,{sx:{color:"fg.muted"}},"Loading..."))}));const lf=e=>{const{isExpanded:o,leadingVisualId:t}=r.useContext(Xu),a="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:"PRIVATE_VisuallyHidden","aria-hidden":!0,id:t},e.label),r.createElement("div",{className:"PRIVATE_TreeView-item-visual","aria-hidden":!0},a))};lf.displayName="TreeView.LeadingVisual";const cf=e=>{const{isExpanded:o,trailingVisualId:t}=r.useContext(Xu),a="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:"PRIVATE_VisuallyHidden","aria-hidden":!0,id:t},e.label),r.createElement("div",{className:"PRIVATE_TreeView-item-visual","aria-hidden":!0},a))};cf.displayName="TreeView.TrailingVisual";const df=()=>{const{isExpanded:e}=r.useContext(Xu),o=e?Ya:qa;return r.createElement("div",{className:"PRIVATE_TreeView-directory-icon"},r.createElement(o,null))};df.displayName="DirectoryIcon";const sf=({title:e="Error",children:o,onRetry:t,onDismiss:a})=>{const{itemId:n,setIsExpanded:l}=r.useContext(Xu);return r.createElement("div",{onKeyDown:e=>{["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"].includes(e.key)&&e.stopPropagation()}},r.createElement(Kn,{title:e,onClose:e=>{setTimeout((()=>{const e=document.getElementById(n);null==e||e.focus()})),"confirm"===e?null==t||t():(l(!1),null==a||a())},confirmButtonContent:"Retry",cancelButtonContent:"Dismiss"},o))};sf.displayName="ErrorDialog",sf.displayName="TreeView.ErrorDialog";const gf=Object.assign(Qu,{Item:ef,SubTree:of,LeadingVisual:lf,TrailingVisual:cf,DirectoryIcon:df,ErrorDialog:sf}),bf=c({theme:{},setChildrenWidth:()=>null,setNoIconChildrenWidth:()=>null,loadingCounters:!1,iconsVisible:!0}),vf={alignItems:"center",display:"inline-flex",marginRight:2},uf={marginLeft:2,display:"flex",alignItems:"center"},ff=e=>({display:"flex",paddingX:3,justifyContent:"flex-start",borderBottom:"1px solid",borderBottomColor:`${null==e?void 0:e.colors.border.muted}`,align:"row",alignItems:"center",minHeight:"48px"}),hf={display:"flex",listStyle:"none",whiteSpace:"nowrap",paddingY:0,paddingX:0,margin:0,marginBottom:"-1px",alignItems:"center",gap:"8px",position:"relative"},pf=e=>({display:"inline-block",borderLeft:"1px solid",width:"1px",borderLeftColor:`${null==e?void 0:e.colors.border.muted}`,marginRight:1,height:"24px"}),mf={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2,'& > span[data-component="trailingVisual"]':{marginLeft:0}},yf=(e,r)=>({position:"relative",display:"inline-flex",color:"fg.default",textAlign:"center",textDecoration:"none",lineHeight:"calc(20/14)",'& span[data-component="icon"]':{color:"fg.muted"},borderRadius:2,fontSize:1,paddingX:2,paddingY:"calc((2rem - 1.25rem) / 2)","@media (hover:hover)":{"&:hover ":{backgroundColor:null==e?void 0:e.colors.neutral.muted,transition:"background .12s ease-out",textDecoration:"none"}},"&:focus":{outline:"2px solid transparent","&":{boxShadow:`inset 0 0 0 2px ${null==e?void 0:e.colors.accent.fg}`},"&:not(:focus-visible)":{boxShadow:"none"}},"&:focus-visible":{outline:"2px solid transparent",boxShadow:`inset 0 0 0 2px ${null==e?void 0:e.colors.accent.fg}`},"& span[data-content]::before":{content:"attr(data-content)",display:"block",height:0,fontWeight:"600",visibility:"hidden",whiteSpace:"nowrap"},"&::after":{position:"absolute",right:"50%",bottom:"calc(50% - 25px)",width:"100%",height:2,content:'""',backgroundColor:Boolean(r)&&"false"!==r?null==e?void 0:e.colors.primer.border.active:"transparent",borderRadius:0,transform:"translate(50%, -50%)"},"@media (forced-colors: active)":{"::after":{backgroundColor:Boolean(r)&&r?"LinkText":"transparent"}}}),xf={"& > span":{display:"none"},textDecoration:"none"},Cf={position:"absolute",zIndex:1,top:"90%",right:"0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",borderRadius:"12px",backgroundColor:"canvas.overlay",listStyle:"none",minWidth:"192px",maxWidth:"640px"},wf=x(["from{opacity:1;}to{opacity:0.2;}"]),kf=h.span.withConfig({displayName:"LoadingCounter",componentId:"sc-k62v1l-0"})(["animation:"," 1.2s ease-in-out infinite alternate;background-color:",";border-color:",";width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"],wf,Kr("colors.neutral.muted"),Kr("colors.border.default"));function Bf(){return Bf=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},Bf.apply(this,arguments)}const Ef=h.ul.withConfig({displayName:"UnderlineNav__NavigationList",componentId:"sc-1jfr31k-0"})(["",";"],po),Tf=h.li.withConfig({displayName:"UnderlineNav__MoreMenuListItem",componentId:"sc-1jfr31k-1"})(["display:flex;align-items:center;height:","px;"],45),Sf=(e,r,o=0)=>{const t=r-o;let a=e.length,n=0;for(const[r,o]of e.entries())if(n=n+o.width+8,n>t){a=r;break}return a},If=t((({as:e="nav","aria-label":o,sx:t=So,loadingCounters:a=!1,children:n},l)=>{const i=g(null),c=null!=l?l:i,s=g(null),v=g(null),u=g(null),f=r.useRef(null),h=Ho(),{theme:p}=co(),[m,y]=d(!1),[x,C]=d(!0),[w,k]=d([]),[B,E]=d([]),T=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(n),[S,I]=d({items:T,menuItems:[]}),M=S.items.map((e=>{var r;return null!==(r=T.find((r=>r.key===e.key)))&&void 0!==r?r:e})),N=S.menuItems.map((e=>{var r;return null!==(r=T.find((r=>r.key===e.key)))&&void 0!==r?r:e})),A=0===S.items.length;function O(e){var r,o;return null!==(r=null===(o=B.find((r=>r.text===e)))||void 0===o?void 0:o.width)&&void 0!==r?r:0}const L=(e,r,o,t)=>{var a,n;const l=function(e,r){let o=0,t=0;for(const[a,n]of[...S.items].reverse().entries())if(o+=O(n.props.children),e<o+r){t=a;break}return t}(O(e.props.children),c.current.getBoundingClientRect().width-(null!==(a=null===(n=s.current)||void 0===n?void 0:n.getBoundingClientRect().width)&&void 0!==a?a:0)),i=S.items.length-1-l,d=[...[...S.items].slice(0,i),e],g=[...S.items].slice(i),b=[...N];b.splice(r,1,...g),t({items:d,menuItems:b},!1)};const j=b(((e,r)=>{I(e),C(r)}),[]),R=b((e=>{k((r=>[...r,e]))}),[]),D=b((e=>{E((r=>[...r,e]))}),[]),z=r.useCallback((()=>{y(!1)}),[y]),P=r.useCallback((()=>{var e;null===(e=u.current)||void 0===e||e.focus()}),[]),_=b((e=>{e.defaultPrevented||0!==e.button||y((e=>!e))}),[]);return ta((e=>{m&&(e.preventDefault(),z(),P())}),[m]),$t({onClickOutside:z,containerRef:f,ignoreClickRefs:[u]}),Aa((e=>{var r,o;const t=e[0].contentRect.width,a=null!==(r=null===(o=v.current)||void 0===o?void 0:o.getBoundingClientRect().width)&&void 0!==r?r:0;0!==t&&((e,r,o,t,a,n)=>{let l=!0;0===t.length&&n({items:o,menuItems:[]},l);const i=Sf(t,e),c=Sf(a,e),d=Sf(a,e,r||86),s=[],g=[];if(o.length<=i)s.push(...o);else if(o.length<=c)l=!1,s.push(...o);else{l=!1;const e=1==o.length-d?d-1:d;for(const[r,t]of o.entries())if(r<e)s.push(t);else{const r=t.props["aria-current"];if(Boolean(r)&&"false"!==r&&e>0){const r=e-1,o=s.splice(r,1,t)[0];g.push(o)}else g.push(t)}}n({items:s,menuItems:g},l)})(t,a,T,w,B,j)}),c),r.createElement(bf.Provider,{value:{theme:p,setChildrenWidth:R,setNoIconChildrenWidth:D,loadingCounters:a,iconsVisible:x}},o&&r.createElement(Io,{as:"h2"},`${o} navigation`),r.createElement(mo,{as:e,sx:to(ff(p),t),"aria-label":o,ref:c},r.createElement(Ef,{sx:hf,ref:s,role:"list"},M,N.length>0&&r.createElement(Tf,{ref:v},!A&&r.createElement(mo,{sx:pf(p)}),r.createElement(jo,{ref:u,sx:mf,"aria-controls":h,"aria-expanded":m,onClick:_,trailingAction:sn},r.createElement(mo,{as:"span"},A?r.createElement(r.Fragment,null,r.createElement(Io,{as:"span"},`${o}`," "),"Menu"):r.createElement(r.Fragment,null,"More",r.createElement(Io,{as:"span"}," ",`${o} items`)))),r.createElement(Ki,{selectionVariant:"single",ref:f,id:h,sx:Cf,style:{display:m?"block":"none"}},N.map(((e,o)=>{const{children:t,counter:n,"aria-current":l,onSelect:i,...c}=e.props;if(Boolean(l)&&"false"!==l){new MouseEvent("click");!A&&L(e,o,0,j)}return r.createElement(Ki.LinkItem,Bf({key:t,sx:xf,onClick:r=>{!A&&L(e,o,0,j),z(),P(),"function"==typeof i&&i(r)}},c),r.createElement(mo,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},t,a?r.createElement(kf,null):void 0!==n&&r.createElement(mo,{as:"span","data-component":"counter"},r.createElement(No,null,n))))})))))))}));function Mf(){return Mf=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},Mf.apply(this,arguments)}If.displayName="UnderlineNav";const Nf=t((({sx:e=So,as:o="a",href:t="#",children:a,counter:n,onSelect:i,"aria-current":c,icon:d,...s},b)=>{const v=g(null),u=null!=b?b:v,{theme:f,setChildrenWidth:h,setNoIconChildrenWidth:p,loadingCounters:m,iconsVisible:y}=l(bf);ot((()=>{if(u.current){const e=u.current.getBoundingClientRect(),r=Array.from(u.current.children).find((e=>"icon"===e.getAttribute("data-component"))),o=Array.from(u.current.children).find((e=>"text"===e.getAttribute("data-component"))).textContent,t=r?r.getBoundingClientRect().width+Number(getComputedStyle(r).marginRight.slice(0,-2))+Number(getComputedStyle(r).marginLeft.slice(0,-2)):0;h({text:o,width:e.width}),p({text:o,width:e.width-t})}}),[u,h,p]);const x=r.useCallback((e=>{" "!==e.key&&"Enter"!==e.key||e.defaultPrevented||"function"!=typeof i||i(e)}),[i]),C=r.useCallback((e=>{e.defaultPrevented||"function"!=typeof i||i(e)}),[i]);return r.createElement(mo,{as:"li",sx:{display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(Vi,Mf({ref:u,as:o,href:t,"aria-current":c,onKeyDown:x,onClick:C,sx:to(yf(f,c),e)},s),y&&d&&r.createElement(mo,{as:"span","data-component":"icon",sx:vf},r.createElement(d,null)),a&&r.createElement(mo,{as:"span","data-component":"text","data-content":a,sx:Boolean(c)&&"false"!==c?{fontWeight:600}:{}},a),m?r.createElement(mo,{as:"span","data-component":"counter",sx:uf},r.createElement(kf,null)):void 0!==n&&r.createElement(mo,{as:"span","data-component":"counter",sx:uf},r.createElement(No,null,n))))}));Nf.displayName="UnderlineNavItem";const Af=Object.assign(If,{Item:Nf});function Of({children:e}){return e}const Lf=Ho;export{Ki as ActionList,lc as ActionMenu,Qi as AnchoredOverlay,cd as Autocomplete,md as Avatar,Cd as AvatarPair,kd as AvatarStack,Vu as AvatarToken,ho as BaseStyles,mo as Box,Bd as BranchName,Nd as Breadcrumb,Md as Breadcrumbs,jo as Button,Ad as ButtonGroup,Pd as Caret,Ud as Checkbox,_s as CheckboxGroup,Ws as CircleBadge,Hd as CircleOcticon,Kn as ConfirmationDialog,No as CounterLabel,Zs as Details,eg as Dialog,ag as Flash,Ds as FormControl,cg as Header,Cl as Heading,zo as IconButton,_u as IssueLabelToken,gg as Label,pg as LabelGroup,Vi as Link,_o as LinkButton,Og as NavList,Ha as Octicon,Xi as Overlay,At as PageLayout,Lg as Pagehead,_g as Pagination,Wg as PointerBox,Kg as Popover,pn as Portal,Qg as ProgressBar,pl as Radio,vl as RadioGroup,Db as RelativeTime,Of as SSRProvider,Yb as SegmentedControl,os as Select,jv as SelectPanel,Hv as SideNav,Oc as Spinner,Pt as SplitPageLayout,Kv as StateLabel,Jv as SubNav,fu as TabNav,Jn as Text,Xc as TextInput,Bs as TextInputWithTokens,Ss as Textarea,io as ThemeProvider,Cu as Timeline,cu as ToggleSwitch,xs as Token,Wc as Tooltip,gf as TreeView,Bi as Truncate,Af as UnderlineNav,to as merge,hn as registerPortalRoot,po as sx,j as theme,Kr as themeGet,so as useColorSchemeVar,Un as useConfirm,_t as useDetails,Pa as useFocusTrap,bn as useFocusZone,Zd as useFormControlForwardedProps,ta as useOnEscapePress,$t as useOnOutsideClick,Qt as useOpenAndCloseFocus,na as useOverlay,To as useRefObjectAsForwardedRef,Aa as useResizeObserver,Ko as useResponsiveValue,Lf as useSSRSafeId,Ht as useSafeTimeout,co as useTheme};
|
|
12
|
+
*/const Lb=new Set(["children","localName","ref","style","className"]),jb=new WeakMap,Rb=(e,r,o,t,a)=>{const n=null==a?void 0:a[r];void 0===n||o===t?null==o&&r in HTMLElement.prototype?e.removeAttribute(r):e[r]=o:((e,r,o)=>{let t=jb.get(e);void 0===t&&jb.set(e,t=new Map);let a=t.get(r);void 0!==o?void 0===a?(t.set(r,a={handleEvent:o}),e.addEventListener(r,a)):a.handleEvent=o:void 0!==a&&(t.delete(r),e.removeEventListener(r,a))})(e,n,o)};const Db=h(function(e=window.React,r,o,t,a){let n,l,i;if(void 0===r){const r=e;({tagName:l,elementClass:i,events:t,displayName:a}=r),n=r.react}else n=e,i=o,l=r;const c=n.Component,d=n.createElement,s=new Set(Object.keys(null!=t?t:{}));class g extends c{constructor(){super(...arguments),this.o=null}t(e){if(null!==this.o)for(const r in this.i)Rb(this.o,r,this.props[r],e?e[r]:void 0,t)}componentDidMount(){this.t()}componentDidUpdate(e){this.t(e)}render(){const{_$Gl:e,...r}=this.props;this.h!==e&&(this.u=r=>{null!==e&&((e,r)=>{"function"==typeof e?e(r):e.current=r})(e,r),this.o=r,this.h=e}),this.i={};const o={ref:this.u};for(const[e,t]of Object.entries(r))Lb.has(e)?o["className"===e?"class":e]=t:s.has(e)||e in i.prototype?this.i[e]=t:o[e]=t;return d(l,o)}}g.displayName=null!=a?a:i.name;const b=n.forwardRef(((e,r)=>d(g,{...e,_$Gl:r},null==e?void 0:e.children)));return b.displayName=g.displayName,b}(r,"relative-time",Ab)).withConfig({displayName:"RelativeTime",componentId:"sc-lqbqy3-0"})(po),zb={":first-child":{marginLeft:"-1px"},":last-child":{marginRight:"-1px"}},Pb={marginRight:"1px",":after":{backgroundColor:"var(--separator-color)",content:'""',position:"absolute",right:"-2px",top:2,bottom:2,width:"1px"}},_b=e=>({"--segmented-control-button-inner-padding":"12px","--segmented-control-button-bg-inset":"4px","--segmented-control-outer-radius":Kr("radii.2")(e),backgroundColor:"transparent",borderColor:"transparent",borderRadius:"var(--segmented-control-outer-radius)",borderWidth:0,color:"currentColor",cursor:"pointer",fontFamily:"inherit",fontSize:"inherit",fontWeight:null!=e&&e.selected?"bold":"normal",padding:null!=e&&e.selected?0:"var(--segmented-control-button-bg-inset)",height:"100%",width:"100%",".segmentedControl-content":{alignItems:"center",backgroundColor:null!=e&&e.selected?"segmentedControl.button.bg":"transparent",borderColor:null!=e&&e.selected?"segmentedControl.button.selected.border":"transparent",borderStyle:"solid",borderWidth:1,borderRadius:null!=e&&e.selected?"var(--segmented-control-outer-radius)":"calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2)",display:"flex",height:"100%",justifyContent:"center",paddingLeft:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))",paddingRight:null!=e&&e.selected?"var(--segmented-control-button-inner-padding)":"calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))"},svg:{fill:"fg.muted"},":hover .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.hover.bg"},":active .segmentedControl-content":{backgroundColor:null!=e&&e.selected?void 0:"segmentedControl.button.active.bg"},":focus:focus-visible:not(:last-child):after":{width:0},".segmentedControl-text":{":after":{content:`"${null==e?void 0:e.children}"`,display:"block",fontWeight:"bold",height:0,overflow:"hidden",pointerEvents:"none",userSelect:"none",visibility:"hidden"}},"@media (pointer: coarse)":{":before":{content:'""',position:"absolute",left:0,right:0,transform:"translateY(-50%)",top:"50%",minHeight:"44px"}}}),Hb=()=>({display:"block",position:"relative",flexGrow:1,marginTop:"-1px",marginBottom:"-1px",":not(:last-child)":Pb,":focus-within:has(:focus-visible)":{"--separator-color":"transparent"},...zb});function Fb(){return Fb=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},Fb.apply(this,arguments)}const Vb=h.button.withConfig({displayName:"SegmentedControlButton__SegmentedControlButtonStyled",componentId:"sc-8lkgxl-0"})(["",";"],po),Wb=({children:e,leadingIcon:o,selected:t,sx:a=So,...n})=>{const l=to(Hb(),a);return r.createElement(mo,{as:"li",sx:l},r.createElement(Vb,Fb({"aria-current":t,sx:_b({selected:t,children:e})},n),r.createElement("span",{className:"segmentedControl-content"},o&&r.createElement(mo,{mr:1},r.createElement(o,null)),r.createElement(mo,{className:"segmentedControl-text"},e))))};function Zb(){return Zb=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},Zb.apply(this,arguments)}Wb.displayName="SegmentedControlButton";const $b=h.button.withConfig({displayName:"SegmentedControlIconButton__SegmentedControlIconButtonStyled",componentId:"sc-oxh6a9-0"})(["",";"],po),Kb=({"aria-label":e,icon:o,selected:t,sx:a=So,...n})=>{const l=to({width:"32px",...Hb()},a);return r.createElement(mo,{as:"li",sx:l},r.createElement($b,Zb({"aria-label":e,"aria-current":t,sx:_b({selected:t,isIconOnly:!0})},n),r.createElement("span",{className:"segmentedControl-content"},r.createElement(o,null))))};function Gb(){return Gb=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},Gb.apply(this,arguments)}Kb.displayName="SegmentedControlIconButton";const Ub=h.ul.withConfig({displayName:"SegmentedControl__SegmentedControlList",componentId:"sc-1rzig82-0"})(["",";"],po),qb=({"aria-label":e,"aria-labelledby":o,children:t,fullWidth:a,onChange:n,size:l,sx:i=So,variant:c="default",...s})=>{const b=g(null),{theme:v}=co(),u=void 0===n||r.Children.toArray(t).some((e=>r.isValidElement(e)&&void 0!==e.props.defaultSelected)),f=Ko(c,"default"),h=Ko(a,!1),p=r.Children.toArray(t).map((e=>r.isValidElement(e)&&(e.props.defaultSelected||e.props.selected))),m=p.some((e=>e))?p.indexOf(!0):0,[y,x]=d(m),C=u?y:m,w=r.isValidElement(r.Children.toArray(t)[C])?r.Children.toArray(t)[C]:void 0,k=e=>r.isValidElement(e)&&e.type===Wb&&e.props.leadingIcon?e.props.leadingIcon:r.isValidElement(e)?e.props.icon:null,B=e=>r.isValidElement(e)&&e.type===Wb?e.props.children:r.isValidElement(e)?e.props["aria-label"]:null,E=to({backgroundColor:"segmentedControl.bg",borderRadius:2,display:(T={isFullWidth:h,size:l}).isFullWidth?"flex":"inline-flex",fontSize:"small"===T.size?0:1,height:"small"===T.size?"28px":"32px",margin:0,padding:0,width:T.isFullWidth?"100%":void 0},i);var T;return e||o||console.warn("Use the `aria-label` or `aria-labelledby` prop to provide an accessible label for assistive technologies"),"dropdown"===f?r.createElement(r.Fragment,null,r.createElement(lc,null,r.createElement(lc.Button,{"aria-label":e,leadingVisual:k(w)},B(w)),r.createElement(lc.Overlay,{"aria-labelledby":o},r.createElement(Ki,{selectionVariant:"single"},r.Children.map(t,((e,o)=>{const t=k(e);return r.isValidElement(e)?r.createElement(Ki.Item,{key:`segmented-control-action-btn-${o}`,selected:o===C,onSelect:r=>{u&&x(o),n&&n(o),e.props.onClick&&e.props.onClick(r)}},t&&r.createElement(t,null)," ",B(e)):null})))))):r.createElement(Ub,Gb({sx:E,"aria-label":e,"aria-labelledby":o,ref:b},s),r.Children.map(t,((e,o)=>{if(!r.isValidElement(e))return null;const t={onClick:n?r=>{n(o),u&&x(o),e.props.onClick&&e.props.onClick(r)}:r=>{e.props.onClick&&e.props.onClick(r),u&&x(o)},selected:o===C,sx:{"--separator-color":o===C||o===C-1?"transparent":null==v?void 0:v.colors.border.default,...e.props.sx}};if("hideLabels"===f&&r.isValidElement(e)&&e.type===Wb){const{"aria-label":o,leadingIcon:a,children:n,...l}=e.props,{sx:i,...c}=t;if(a)return r.createElement(Kb,Gb({"aria-label":o||n,icon:a,sx:{...i,width:h?"100%":"32px"}},c,l));console.warn("A `leadingIcon` prop is required when hiding visible labels")}return r.cloneElement(e,t)})))};qb.displayName="SegmentedControl";const Yb=Object.assign(qb,{Button:Wb,IconButton:Kb});function Xb(){return Xb=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},Xb.apply(this,arguments)}const Jb=h.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-cjezay-0"})(["{}padding:6px ",";font-size:",";font-weight:",";color:",";"," ",""],Kr("space.3"),Kr("fontSizes.0"),Kr("fontWeights.bold"),Kr("colors.fg.muted"),(({variant:e})=>"filled"===e&&y(["background:",";margin:"," 0;border-top:1px solid ",";border-bottom:1px solid ",";&:first-child{margin-top:0;}"],Kr("colors.canvas.subtle"),Kr("space.2"),Kr("colors.neutral.muted"),Kr("colors.neutral.muted"))),po);function Qb({variant:e="subtle",title:o,auxiliaryText:t,children:a,...n}){return r.createElement(Jb,Xb({role:"heading",variant:e},n),o,t&&r.createElement("span",null,t))}Qb.displayName="Header";const ev=h.div.withConfig({displayName:"Group__StyledGroup",componentId:"sc-1s2aw76-0"})(["",""],po);function rv({header:e,items:o,...t}){return r.createElement(ev,t,e&&r.createElement(Qb,e),o)}rv.displayName="Group";const ov=h.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1s7tlfq-0"})(["height:1px;background:",";margin-top:calc("," - 1px);margin-bottom:",";"],Kr("colors.border.muted"),Kr("space.2"),Kr("space.2"));function tv(){return r.createElement(ov,null)}function av(){return av=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},av.apply(this,arguments)}tv.displayName="Divider",tv.renderItem=tv;const nv=(e="default",r)=>r?{color:Kr("colors.primer.fg.disabled"),iconColor:Kr("colors.primer.fg.disabled"),annotationColor:Kr("colors.primer.fg.disabled"),hoverCursor:"default"}:"danger"===e?{color:Kr("colors.danger.fg"),iconColor:Kr("colors.danger.fg"),annotationColor:Kr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Kr("colors.actionListItem.danger.hoverBg"),focusBg:Kr("colors.actionListItem.danger.activeBg"),hoverText:Kr("colors.actionListItem.danger.hoverText")}:{color:Kr("colors.fg.default"),iconColor:Kr("colors.fg.muted"),annotationColor:Kr("colors.fg.muted"),hoverCursor:"pointer",hoverBg:Kr("colors.actionListItem.default.hoverBg"),focusBg:Kr("colors.actionListItem.default.activeBg")},lv=h.div.withConfig({displayName:"Item__DividedContent",componentId:"sc-y6iv6t-0"})(["display:flex;min-width:0;position:relative;flex-grow:1;"]),iv=h.div.withConfig({displayName:"Item__MainContent",componentId:"sc-y6iv6t-1"})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]),cv=h.div.withConfig({displayName:"Item__StyledItem",componentId:"sc-y6iv6t-2"})(["padding:6px ",";display:flex;border-radius:",";color:",";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,"," );color:",";cursor:",";}}:not(:first-of-type):not("," + &):not("," + &){margin-top:",";","::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ",";border-top-width:",";}}&:hover ","::before,:hover + * ","::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ","::before,:focus + * ","::before,&[","] ","::before,[","] + & ","::before{border-color:transparent !important;}&[","='","']{background:",";}&[","='","']{background:",";}&:focus{background:",";outline:none;}&:active{background:",";}",""],Kr("space.2"),Kr("radii.2"),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).color),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverText),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverCursor),ov,Jb,(({showDivider:e})=>e?"1px":"0"),lv,Kr("colors.border.muted"),(({showDivider:e})=>e?"1px":"0"),lv,lv,lv,lv,Ea,lv,Ea,lv,Ea,Ta,(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).focusBg),Ea,Sa,(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).hoverBg),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).focusBg),(({variant:e,item:r})=>nv(e,null==r?void 0:r.disabled).focusBg),po),dv=h.span.withConfig({displayName:"Item__TextContainer",componentId:"sc-y6iv6t-3"})([""]),sv=h.div.withConfig({displayName:"Item__BaseVisualContainer",componentId:"sc-y6iv6t-4"})(["height:20px;width:",";margin-right:",";display:flex;justify-content:center;align-items:center;flex-shrink:0;"],Kr("space.3"),Kr("space.2")),gv=h(sv).withConfig({displayName:"Item__ColoredVisualContainer",componentId:"sc-y6iv6t-5"})(["svg{fill:",";font-size:",";}"],(({variant:e,disabled:r})=>nv(e,r).iconColor),Kr("fontSizes.0")),bv=h(gv).withConfig({displayName:"Item__LeadingVisualContainer",componentId:"sc-y6iv6t-6"})(["display:flex;flex-direction:column;justify-content:center;"]),vv=h(gv).withConfig({displayName:"Item__TrailingContent",componentId:"sc-y6iv6t-7"})(["color:",";margin-left:",";margin-right:0;width:auto;div:nth-child(2){margin-left:",";}"],(({variant:e,disabled:r})=>nv(e,r).annotationColor),Kr("space.2"),Kr("space.2")),uv=h.span.withConfig({displayName:"Item__DescriptionContainer",componentId:"sc-y6iv6t-8"})(["color:",";font-size:",";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"],Kr("colors.fg.muted"),Kr("fontSizes.0")),fv=h.svg.withConfig({displayName:"Item__MultiSelectIcon",componentId:"sc-y6iv6t-9"})(["rect{fill:",";stroke:",";shape-rendering:auto;}path{fill:",";boxshadow:",";opacity:",";}"],(({selected:e})=>Kr(e?"colors.accent.fg":"colors.canvas.default")),(({selected:e})=>Kr(e?"colors.accent.fg":"colors.border.default")),Kr("colors.fg.onEmphasis"),Kr("shadow.small"),(({selected:e})=>e?1:0)),hv=r.forwardRef(((e,o)=>{const{as:t,text:a,description:n,descriptionVariant:l="inline",selected:i,selectionVariant:c,leadingVisual:d,trailingIcon:s,trailingVisual:g,trailingText:v,variant:u="default",showDivider:f,disabled:h,onAction:p,onKeyPress:m,children:y,onClick:x,id:C,...w}=e,k=Ho(),B=Ho(),E=b((r=>{h||(null==m||m(r),!r.defaultPrevented&&[" ","Enter"].includes(r.key)&&(null==p||p(e,r)))}),[p,h,e,m]),T=b((r=>{h||(null==x||x(r),r.defaultPrevented||null==p||p(e,r))}),[p,h,e,x]),{theme:S}=co();return r.createElement(cv,av({ref:o,as:t,tabIndex:h?void 0:-1,variant:u,showDivider:f,"aria-selected":i,"aria-labelledby":a?k:void 0,"aria-describedby":n?B:void 0},w,{"data-id":C,onKeyPress:E,onClick:T}),!!i===i&&r.createElement(sv,null,"multiple"===c?r.createElement(r.Fragment,null,r.createElement(fv,{selected:i,width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},r.createElement("rect",{x:"2",y:"2",width:"12",height:"12",rx:"4"}),r.createElement("path",{fillRule:"evenodd",strokeWidth:"0",d:"M4.03231 8.69862C3.84775 8.20646 4.49385 7.77554 4.95539 7.77554C5.41693 7.77554 6.80154 9.85246 6.80154 9.85246C6.80154 9.85246 10.2631 4.314 10.4938 4.08323C10.7246 3.85246 11.8785 4.08323 11.4169 5.00631C11.0081 5.82388 7.26308 11.4678 7.26308 11.4678C7.26308 11.4678 6.80154 12.1602 6.34 11.4678C5.87846 10.7755 4.21687 9.19077 4.03231 8.69862Z"}))):i&&r.createElement($a,{fill:null==S?void 0:S.colors.fg.default})),d&&r.createElement(bv,{variant:u,disabled:h},r.createElement(d,null)),r.createElement(lv,null,r.createElement(iv,{style:{"--main-content-flex-direction":"inline"===l?"row":"column"}},y,a?r.createElement(dv,{id:k},a):null,n?r.createElement(uv,{id:B,style:{"--description-container-margin-left":"inline"===l?Kr("space.2")(S):0,"--description-container-flex-basis":"inline"===l?0:"auto"}},"block"===l?n:r.createElement(Si,{title:n,inline:!0,maxWidth:"100%"},n)):null),g?r.createElement(vv,{variant:u,disabled:h},"string"!=typeof g&&Tc.isValidElementType(g)?r.createElement(g,null):g):s||v?r.createElement(vv,{variant:u,disabled:h},v,s&&r.createElement(s,null)):null))}));function pv(){return pv=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},pv.apply(this,arguments)}hv.displayName="ActionList.Item";const mv=h.div.withConfig({displayName:"List__StyledList",componentId:"sc-hkz3q0-0"})(["font-size:",";line-height:20px;&[","],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:",";}"],Kr("fontSizes.1"),Ia,Kr("colors.border.muted"));const yv=r.forwardRef(((e,o)=>{const{firstGroupStyle:t,lastGroupStyle:a,headerStyle:n,itemStyle:l}=function(e="inset"){return"full"===e?{headerStyle:{paddingX:Kr("space.2")},itemStyle:{borderRadius:0}}:{firstGroupStyle:{marginTop:Kr("space.2")},lastGroupStyle:{marginBottom:Kr("space.2")},itemStyle:{marginX:Kr("space.2")}}}(e.variant),i=(o,t,a)=>{var n,i,c;const d="renderItem"in o&&o.renderItem||e.renderItem||hv,s=null!==(n=null!==(i="key"in o?o.key:void 0)&&void 0!==i?i:null===(c=o.id)||void 0===c?void 0:c.toString())&&void 0!==n?n:a.toString();return r.createElement(d,pv({showDivider:e.showItemDividers,selectionVariant:e.selectionVariant},o,{key:s,sx:{...l,...o.sx},item:t}))};let c=[];if(function(e){return"groupMetadata"in e}(e)){const r=e.groupMetadata.reduce(((e,r)=>e.set(r.groupId,r)),new Map);for(const o of e.items){var d,s,g;const e=r.get(o.groupId),t=null!==(d=null==e||null===(s=e.items)||void 0===s?void 0:s.length)&&void 0!==d?d:0;r.set(o.groupId,{...e,items:[...null!==(g=null==e?void 0:e.items)&&void 0!==g?g:[],i({showDivider:null==e?void 0:e.showItemDividers,...e&&"renderItem"in e&&{renderItem:e.renderItem},...o},o,t)]})}c=[...r.values()]}else c=[{items:e.items.map(((e,r)=>i(e,e,r))),groupId:"0"}];return r.createElement(mv,pv({},e,{ref:o}),c.map((({header:o,...l},i)=>{const d="filled"===(null==o?void 0:o.variant),s=i>0&&!d;return r.createElement(r.Fragment,{key:l.groupId},s?r.createElement(tv,{key:`${l.groupId}-divider`}):null,(o=>{var t;const a=(null!==(t="renderGroup"in o&&o.renderGroup)&&void 0!==t?t:e.renderGroup)||rv;return r.createElement(a,pv({},o,{key:o.groupId}))})({sx:{...0===i&&t,...i===c.length-1&&a,...i>0&&!s&&{mt:2}},...o&&{header:{...o,sx:{...n,...o.sx}}},...l}))})))}));yv.displayName="ActionList";const xv=Object.assign(yv,{Group:rv,Item:hv,Divider:tv});const Cv=h.div.withConfig({displayName:"VisuallyHidden",componentId:"sc-1sffg7y-0"})(["&:not(:focus):not(:active):not(:focus-within){clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;}",""],po);function wv(){return wv=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},wv.apply(this,arguments)}const kv={startMargin:0,endMargin:8},Bv=h.div.withConfig({displayName:"FilteredActionList__StyledHeader",componentId:"sc-1oqgb0s-0"})(["box-shadow:0 1px 0 ",";z-index:1;"],Kr("colors.border.default"));function Ev({loading:e=!1,placeholderText:o,filterValue:t,onFilterChange:a,items:n,textInputProps:l,inputRef:c,sx:d,...s}){const[v,u]=ja(t,void 0,""),f=b((e=>{const r=e.target.value;a(r,e),u(r)}),[a,u]),h=g(null),p=g(null),m=aa(c),y=g(),x=Ho(),C=Ho(),w=b((e=>{if("Enter"===e.key&&y.current){e.preventDefault(),e.nativeEvent.stopImmediatePropagation();const r=new KeyboardEvent(e.type,e.nativeEvent);y.current.dispatchEvent(r)}}),[y]);return bn({containerRef:p,focusOutBehavior:"wrap",focusableElementFilter:e=>!(e instanceof HTMLInputElement),activeDescendantFocus:m,onActiveDescendantChanged:(e,r,o)=>{y.current=e,e&&h.current&&o&&Na(e,h.current,kv)}},[e]),i((()=>{y.current&&h.current&&Na(y.current,h.current,{...kv,behavior:"auto"})}),[n]),function(e){i((()=>{const r=e.current;if(!r)return;const o=r.scrollTop,t=r.scrollHeight,a=o<Math.min(1,t)?o+1:o-1;r.scrollTop=a,r.scrollTop=o}),[e])}(h),r.createElement(mo,{display:"flex",flexDirection:"column",overflow:"hidden",sx:d},r.createElement(Bv,null,r.createElement(Xc,wv({ref:m,block:!0,width:"auto",color:"fg.default",value:v,onChange:f,onKeyPress:w,placeholder:o,"aria-label":o,"aria-controls":x,"aria-describedby":C},l))),r.createElement(Cv,{id:C},"Items will be filtered as you type"),r.createElement(mo,{ref:h,overflow:"auto"},e?r.createElement(mo,{width:"100%",display:"flex",flexDirection:"row",justifyContent:"center",pt:6,pb:7},r.createElement(Oc,null)):r.createElement(xv,wv({ref:p,items:n},s,{role:"listbox",id:x}))))}Ev.displayName="FilteredActionList",Ev.displayName="FilteredActionList";const Tv=r.createContext(null);function Sv(){const e=r.useContext(Tv);if(!e)throw new Error("useLiveRegion() must be used within a <LiveRegion>");return e}function Iv({children:e}){const[o,t]=r.useState(""),a=r.useMemo((()=>({announce:t,message:o})),[o]);return r.createElement(Tv.Provider,{value:a},e)}function Mv(){const e=Sv();return r.createElement(Cv,{role:"status","aria-live":"polite","aria-atomic":!0},e.message)}function Nv({value:e}){const o=Sv(),t=r.useRef(o),a=r.useRef(!1);return r.useEffect((()=>{t.current=o}),[o]),r.useEffect((()=>{if(!0!==a.current)return;const r=setTimeout((()=>{t.current.announce(e)}),750);return()=>{clearTimeout(r)}}),[e]),r.useEffect((()=>(a.current=!0,()=>{a.current=!1})),[]),null}function Av(){return Av=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},Av.apply(this,arguments)}function Ov(e){return Array.isArray(e)}Iv.displayName="LiveRegion",Mv.displayName="LiveRegionOutlet";const Lv={disabled:!0};function jv({open:e,onOpenChange:o,renderAnchor:t=(e=>{const{children:o,...t}=e;return r.createElement(jo,Av({trailingAction:sn},t),o)}),anchorRef:n,placeholder:l,placeholderText:i="Filter items",inputLabel:c=i,selected:d,title:s=(Ov(d)?"Select items":"Select an item"),subtitle:g,onSelectedChange:v,filterValue:u,onFilterChange:f,items:h,textInputProps:p,overlayProps:m,sx:y,...x}){const C=Ho(),w=Ho(),[k,B]=ja(u,void 0,""),E=b(((e,r)=>{f(e,r),B(e)}),[f,B]),T=aa(n),S=b((e=>o(!0,e)),[o]),I=b((e=>{o(!1,e)}),[o]),M=a((()=>{if(null===t)return null;const e=Array.isArray(d)?d:[...d?[d]:[]];return r=>t({...r,children:e.length?e.map((e=>e.text)).join(", "):l})}),[l,t,d]),N=a((()=>h.map((e=>{const r=Ov(d)?d.includes(e):d===e;return{...e,role:"option",selected:"selected"in e&&void 0===e.selected?void 0:r,onAction:(r,o)=>{var t;if(null===(t=e.onAction)||void 0===t||t.call(e,r,o),o.defaultPrevented)return;if(Ov(d)){const r=d.filter((r=>r!==e)),o=d.includes(e)?r:[...r,e];return void v(o)}v(e===d?void 0:e),I("selection")}}}))),[I,v,h,d]),A=r.useRef(null),O={initialFocusRef:A},L=a((()=>({sx:{m:2},contrast:!0,leadingVisual:cn,"aria-label":c,...p})),[c,p]);return r.createElement(Iv,null,r.createElement(Qi,{renderAnchor:M,anchorRef:T,open:e,onOpen:S,onClose:I,overlayProps:{role:"dialog","aria-labelledby":C,"aria-describedby":g?w:void 0,...m},focusTrapSettings:O,focusZoneSettings:Lv},r.createElement(Mv,null),r.createElement(Nv,{value:""===k?"Showing all items":h.length<=0?"No matching items":`${h.length} matching ${1===h.length?"item":"items"}`}),r.createElement(mo,{sx:{display:"flex",flexDirection:"column",height:"inherit",maxHeight:"inherit"}},r.createElement(mo,{sx:{pt:2,px:3}},r.createElement(Cl,{as:"h1",id:C,sx:{fontSize:1}},s),g?r.createElement(mo,{id:w,sx:{fontSize:0,color:"fg.muted"}},g):null),r.createElement(Ev,Av({filterValue:k,onFilterChange:E,placeholderText:i},x,{role:"listbox","aria-multiselectable":Ov(d)?"true":"false",selectionVariant:Ov(d)?"multiple":"single",items:N,textInputProps:L,inputRef:A,sx:{...y,height:"inherit",maxHeight:"inherit"}})))))}function Rv({variant:e="normal",className:o,bordered:t,children:a,"aria-label":n}){const l=Ic(o,`variant-${"lightweight"===e?"lightweight":"normal"}`);return r.createElement(mo,{borderWidth:t?"1px":0,borderStyle:"solid",borderColor:"border.default",borderRadius:2,as:"nav",className:l,"aria-label":n},a)}jv.displayName="SelectPanel",jv.displayName="SelectPanel",Rv.displayName="SideNavBase";const Dv=h(Rv).withConfig({displayName:"SideNav",componentId:"sc-11f1jdr-0"})(["background-color:",";"," ",";"],Kr("colors.canvas.subtle"),(e=>e.bordered&&y(["& > &{border-left:0;border-right:0;border-bottom:0;}"])),po),zv=y(["background-color:",";text-decoration:none;"],Kr("colors.neutral.subtle")),Pv=y(["color:",";text-decoration:none;"],Kr("colors.fg.default")),_v=h(Vi).attrs((e=>"string"==typeof e.to||e.selected?{"aria-current":"page"}:{})).withConfig({displayName:"SideNav__SideNavLink",componentId:"sc-11f1jdr-1"})(["position:relative;display:block;"," width:100%;text-align:left;font-size:",";& > ","{border-bottom:none;}",".variant-normal > &{color:",";padding:",";border:0;border-top:"," solid ",";&:first-child{border-top:0;border-top-right-radius:",";border-top-left-radius:",";}&:last-child{border-bottom-right-radius:",";border-bottom-left-radius:",";}&::before{position:absolute;top:0;bottom:0;left:0;z-index:1;width:3px;pointer-events:none;content:'';}&:hover{","}&:focus{"," outline:solid 2px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{background-color:",";&::before{background-color:",";}}}",".variant-lightweight > &{padding:"," 0;color:",";&:hover{","}&:focus{"," outline:solid 1px ",";z-index:1;}&[aria-current='page'],&[aria-selected='true']{color:",";font-weight:",";}}",";"],(e=>"full"===e.variant&&y(["display:flex;align-items:center;justify-content:space-between;"])),Kr("fontSizes.1"),Dv,Dv,Kr("colors.fg.default"),Kr("space.3"),Kr("borderWidths.1"),Kr("colors.border.muted"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),Kr("radii.2"),zv,zv,Kr("colors.accent.fg"),Kr("colors.sidenav.selectedBg"),Kr("colors.primer.border.active"),Dv,Kr("space.1"),Kr("colors.accent.fg"),Pv,Pv,Kr("colors.accent.fg"),Kr("colors.fg.default"),Kr("fontWeights.semibold"),po);_v.displayName="SideNav.Link";var Hv=Object.assign(Dv,{Link:_v});function Fv(){return Fv=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},Fv.apply(this,arguments)}const Vv={issueOpened:an,pullOpened:Qa,issueClosed:on,issueClosedNotPlanned:dn,pullClosed:en,pullMerged:Xa,draft:rn,issueDraft:tn,pullQueued:Ja,unavailable:Wa},Wv=Me({prop:"status",variants:{issueClosed:{backgroundColor:"done.emphasis",color:"fg.onEmphasis"},issueClosedNotPlanned:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"},pullClosed:{backgroundColor:"closed.emphasis",color:"fg.onEmphasis"},pullMerged:{backgroundColor:"done.emphasis",color:"fg.onEmphasis"},pullQueued:{backgroundColor:"attention.emphasis",color:"fg.onEmphasis"},issueOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis"},pullOpened:{backgroundColor:"open.emphasis",color:"fg.onEmphasis"},draft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"},issueDraft:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"},unavailable:{backgroundColor:"neutral.emphasis",color:"fg.onEmphasis"}}}),Zv=Me({prop:"variant",variants:{small:{paddingX:2,paddingY:1,fontSize:0},normal:{paddingX:"12px",paddingY:2,fontSize:1}}}),$v=h.span.withConfig({displayName:"StateLabel__StateLabelBase",componentId:"sc-qthdln-0"})(["display:inline-flex;align-items:center;font-weight:",";line-height:16px;color:",";text-align:center;border-radius:",";",";",";",";"],Kr("fontWeights.bold"),Kr("colors.canvas.default"),Kr("radii.3"),Wv,Zv,po);function Kv({children:e,status:o,variant:t="normal",...a}){const n="small"===t?{width:"1em"}:{};return r.createElement($v,Fv({},a,{variant:t,status:o}),o&&r.createElement(Ha,Fv({},n,{icon:Vv[o]||ln,sx:{mr:1}})),e)}function Gv(){return Gv=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},Gv.apply(this,arguments)}Kv.displayName="StateLabel";const Uv=h.nav.withConfig({displayName:"SubNav__SubNavBase",componentId:"sc-1t692wx-0"})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:",";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}",";"],Kr("space.2"),po);function qv({actions:e,className:o,children:t,label:a,...n}){const l=Ic(o,"SubNav");return r.createElement(Uv,Gv({className:l,"aria-label":a},n),r.createElement("div",{className:"SubNav-body"},t),e&&r.createElement("div",{className:"SubNav-actions"},e))}qv.displayName="SubNav";const Yv=h.div.withConfig({displayName:"SubNav__SubNavLinks",componentId:"sc-1t692wx-1"})(["display:flex;",";"],po),Xv=h.a.attrs((e=>({className:Ic("SubNav-item",e.selected&&"selected",e.className)}))).withConfig({displayName:"SubNav__SubNavLink",componentId:"sc-1t692wx-2"})(["padding-left:",";padding-right:",";font-weight:",";font-size:",";line-height:20px;min-height:34px;color:",";text-align:center;text-decoration:none;border-top:1px solid ",";border-bottom:1px solid ",";border-right:1px solid ",";display:flex;align-items:center;&:first-of-type{border-top-left-radius:",";border-bottom-left-radius:",";border-left:1px solid ",";}&:last-of-type{border-top-right-radius:",";border-bottom-right-radius:",";}&:hover,&:focus{text-decoration:none;background-color:",";transition:background-color 0.2s ease;.SubNav-octicon{color:",";}}&.selected{color:",";background-color:",";border-color:",";.SubNav-octicon{color:",";}}",";"],Kr("space.3"),Kr("space.3"),Kr("fontWeights.semibold"),Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("colors.border.default"),Kr("colors.border.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("radii.2"),Kr("colors.border.default"),Kr("radii.2"),Kr("radii.2"),Kr("colors.canvas.subtle"),Kr("colors.fg.muted"),Kr("colors.fg.onEmphasis"),Kr("colors.accent.emphasis"),Kr("colors.accent.emphasis"),Kr("colors.fg.onEmphasis"),po);Xv.displayName="SubNav.Link",Yv.displayName="SubNav.Links";var Jv=Object.assign(qv,{Link:Xv,Links:Yv});function Qv(){return Qv=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},Qv.apply(this,arguments)}const eu="80ms",ru="cubic-bezier(0.5, 1, 0.89, 1)",ou=Me({prop:"size",variants:{small:{height:"24px",width:"48px"}}}),tu=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 12.5a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12Z"}));tu.displayName="CircleIcon";const au=({size:e})=>r.createElement("svg",{"aria-hidden":"true",width:"small"===e?"12":"16",height:"small"===e?"12":"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",d:"M8 2a.75.75 0 0 1 .75.75v11.5a.75.75 0 0 1-1.5 0V2.75A.75.75 0 0 1 8 2Z"}));au.displayName="LineIcon";const nu=h.button.withConfig({displayName:"ToggleSwitch__SwitchButton",componentId:"sc-e6gszy-0"})(["vertical-align:middle;cursor:pointer;user-select:none;appearance:none;text-decoration:none;padding:0;transition-property:background-color,border-color;transition-duration:",";transition-timing-function:",";border-radius:",";border-style:solid;border-width:1px;display:block;height:32px;width:64px;outline-offset:3px;position:relative;overflow:hidden;@media (pointer:coarse){&:before{content:'';position:absolute;left:0;right:0;transform:translateY(-50%);top:50%;min-height:44px;}}@media (prefers-reduced-motion){transition:none;*{transition:none;}}&:hover,&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"," "," ",""],eu,ru,Kr("radii.2"),Kr("colors.switchTrack.hoverBg"),Kr("colors.switchTrack.activeBg"),(e=>e.disabled?y(["background-color:",";border-color:transparent;cursor:not-allowed;transition-property:none;"],Kr("colors.switchTrack.disabledBg")):e.checked?y(["background-color:",";border-color:transparent;&:hover,&:focus:focus-visible{background-color:",";}&:active,&:active:focus-visible{background-color:",";}"],Kr("colors.switchTrack.checked.bg"),Kr("colors.switchTrack.checked.hoverBg"),Kr("colors.switchTrack.checked.activeBg")):y(["background-color:",";border-color:transparent;&:active{background-color:",";}"],Kr("colors.switchTrack.bg"),Kr("colors.switchTrack.activeBg"))),po,ou),lu=h.div.withConfig({displayName:"ToggleSwitch__ToggleKnob",componentId:"sc-e6gszy-1"})(["background-color:",";border-width:1px;border-style:solid;border-color:",";border-radius:calc("," - 1px);width:50%;position:absolute;top:0;bottom:0;transition-property:transform;transition-duration:",";transition-timing-function:",";transform:",";z-index:1;@media (prefers-reduced-motion){transition:none;}",""],Kr("colors.switchKnob.bg"),(e=>e.disabled?Kr("colors.switchTrack.disabledBg"):Kr("colors.switchKnob.border")),Kr("radii.2"),eu,ru,(e=>`translateX(${e.checked?"100%":"0px"})`),(e=>e.disabled?y(["border-color:",";"],Kr("colors.switchTrack.disabledBg")):e.checked?y(["border-color:",";"],Kr("colors.switchKnob.checked.border")):void 0)),iu={visibility:"hidden",height:0},cu=r.forwardRef((function(e,o){const{"aria-labelledby":t,"aria-describedby":a,defaultChecked:n,disabled:l,loading:c,checked:d,onChange:s,onClick:g,size:v="medium",statusLabelPosition:u="start",sx:f,...h}=e,p=void 0!==d,[m,y]=ja(d,s,Boolean(n)),x=!l&&!c,C=b((e=>{p||y(!m),g&&g(e)}),[g,p,m,y]);return i((()=>{s&&p&&s(Boolean(d))}),[s,d,p]),r.createElement(mo,Qv({display:"inline-flex",alignItems:"center",flexDirection:"start"===u?"row":"row-reverse",sx:f},h),c?r.createElement(Oc,{size:"small"}):null,r.createElement(Jn,{color:x?"fg.default":"fg.muted",fontSize:"small"===v?0:1,mx:2,"aria-hidden":"true",sx:{position:"relative",cursor:"pointer"},onClick:C},r.createElement(mo,{textAlign:"right",sx:m?null:iu},"On"),r.createElement(mo,{textAlign:"right",sx:m?iu:null},"Off")),r.createElement(nu,{ref:o,onClick:C,"aria-labelledby":t,"aria-describedby":a,"aria-pressed":m,checked:m,size:v,disabled:!x},r.createElement(mo,{"aria-hidden":"true",display:"flex",alignItems:"center",width:"100%",height:"100%",overflow:"hidden"},r.createElement(mo,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.checked.fg":"switchTrack.checked.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"0":"-100%"})`,transitionProperty:"transform",transitionDuration:eu}},r.createElement(au,{size:v})),r.createElement(mo,{flexGrow:1,flexShrink:0,flexBasis:"50%",color:x?"switchTrack.fg":"switchTrack.disabledFg",lineHeight:"0",sx:{transform:`translateX(${m?"100%":"0"})`,transitionProperty:"transform",transitionDuration:eu}},r.createElement(tu,{size:v}))),r.createElement(lu,{"aria-hidden":"true",disabled:!x,checked:m})))}));function du(){return du=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},du.apply(this,arguments)}const su=h.div.withConfig({displayName:"TabNav__TabNavBase",componentId:"sc-pwdi4r-0"})(["",""],po),gu=h.div.withConfig({displayName:"TabNav__TabNavTabList",componentId:"sc-pwdi4r-1"})(["display:flex;margin-bottom:-1px;overflow:auto;"]),bu=h.nav.withConfig({displayName:"TabNav__TabNavNav",componentId:"sc-pwdi4r-2"})(["margin-top:0;border-bottom:1px solid ",";"],Kr("colors.border.default"));function vu({children:e,"aria-label":o,...t}){const a=g(null),[n,l]=d(!1);r.useEffect((()=>{if(a.current){a.current.closest("[role=menu]")&&l(!0)}}),[a]);const i=r.useCallback((()=>{var e,r,o;const t=null===(e=a.current)||void 0===e?void 0:e.querySelector("[role=tab][aria-selected=true]"),n=null===(r=a.current)||void 0===r?void 0:r.querySelector("[role=tab]");return null!==(o=null!=t?t:n)&&void 0!==o?o:void 0}),[a]),{containerRef:c}=bn({containerRef:a,bindKeys:Ca.ArrowHorizontal|Ca.HomeAndEnd,focusOutBehavior:"wrap",focusInStrategy:n?"previous":i,focusableElementFilter:e=>"tab"===e.getAttribute("role")},[n]);return r.createElement(su,du({},t,{ref:c}),r.createElement(bu,{"aria-label":o},r.createElement(gu,{role:"tablist"},e)))}vu.displayName="TabNav";const uu=h.a.attrs((e=>({className:Ic("TabNav-item",e.selected&&"selected",e.className),role:"tab","aria-selected":!!e.selected,tabIndex:-1}))).withConfig({displayName:"TabNav__TabNavLink",componentId:"sc-pwdi4r-3"})(["padding:8px 12px;font-size:",";line-height:20px;color:",";text-decoration:none;background-color:transparent;border:1px solid transparent;border-bottom:0;",";&:hover,&:focus{color:",";text-decoration:none;}&.selected{color:",";border-color:",";border-top-right-radius:",";border-top-left-radius:",";background-color:",";}",";"],Kr("fontSizes.1"),Kr("colors.fg.default"),xo("-6px"),Kr("colors.fg.default"),Kr("colors.fg.default"),Kr("colors.border.default"),Kr("radii.2"),Kr("radii.2"),Kr("colors.canvas.default"),po);uu.displayName="TabNav.Link";var fu=Object.assign(vu,{Link:uu});const hu=h.div.withConfig({displayName:"Timeline",componentId:"sc-1nkzbnu-0"})(["display:flex;flex-direction:column;"," ",";"],(e=>e.clipSidebar&&y([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"])),po),pu=h.div.attrs((e=>({className:Ic("Timeline-Item",e.className)}))).withConfig({displayName:"Timeline__TimelineItem",componentId:"sc-1nkzbnu-1"})(["display:flex;position:relative;padding:"," 0;margin-left:",";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:",";}"," ",";"],Kr("space.3"),Kr("space.3"),Kr("colors.border.muted"),(e=>e.condensed&&y(["padding-top:",";padding-bottom:0;&:last-child{padding-bottom:",";}.TimelineItem-Badge{height:16px;margin-top:",";margin-bottom:",";color:",";background-color:",";border:0;}"],Kr("space.1"),Kr("space.3"),Kr("space.2"),Kr("space.2"),Kr("colors.fg.muted"),Kr("colors.canvas.default"))),po),mu=e=>r.createElement(mo,{position:"relative",zIndex:1},r.createElement(mo,{display:"flex",className:"TimelineItem-Badge",flexShrink:0,borderRadius:"50%",borderWidth:"2px",borderStyle:"solid",borderColor:"canvas.default",overflow:"hidden",color:"fg.muted",bg:"timeline.badgeBg",width:"32px",height:"32px",mr:2,ml:"-15px",alignItems:"center",justifyContent:"center",sx:e.sx},e.children));mu.displayName="TimelineBadge";const yu=h.div.withConfig({displayName:"Timeline__TimelineBody",componentId:"sc-1nkzbnu-2"})(["min-width:0;max-width:100%;margin-top:",";color:",";flex:auto;font-size:",";",";"],Kr("space.1"),Kr("colors.fg.muted"),Kr("fontSizes.1"),po),xu=h.div.withConfig({displayName:"Timeline__TimelineBreak",componentId:"sc-1nkzbnu-3"})(["position:relative;z-index:1;height:24px;margin:0;margin-bottom:-",";margin-left:0;background-color:",";border:0;border-top:"," solid ",";",";"],Kr("space.3"),Kr("colors.canvas.default"),Kr("space.1"),Kr("colors.border.default"),po);pu.displayName="Timeline.Item",mu.displayName="Timeline.Badge",yu.displayName="Timeline.Body",xu.displayName="Timeline.Break";var Cu=Object.assign(hu,{Item:pu,Badge:mu,Body:yu,Break:xu});function wu(e,r,o){return Math.min(Math.max(e,o),r)}class ku extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var Bu=ku;function Eu(e){if("string"!=typeof e)throw new Bu(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let r=e.trim();r=Lu.test(e)?function(e){const r=e.toLowerCase().trim(),o=Su[function(e){let r=5381,o=e.length;for(;o;)r=33*r^e.charCodeAt(--o);return(r>>>0)%2341}(r)];if(!o)throw new Bu(e);return`#${o}`}(e):e;const o=Mu.exec(r);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(Iu(e,2),16))),parseInt(Iu(e[3]||"f",2),16)/255]}const t=Nu.exec(r);if(t){const e=Array.from(t).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const a=Au.exec(r);if(a){const e=Array.from(a).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const n=Ou.exec(r);if(n){const[r,o,t,a]=Array.from(n).slice(1).map(parseFloat);if(wu(0,100,o)!==o)throw new Bu(e);if(wu(0,100,t)!==t)throw new Bu(e);return[...Ru(r,o,t),Number.isNaN(a)?1:a]}throw new Bu(e)}const Tu=e=>parseInt(e.replace(/_/g,""),36),Su="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,r)=>{const o=Tu(r.substring(0,3)),t=Tu(r.substring(3)).toString(16);let a="";for(let e=0;e<6-t.length;e++)a+="0";return e[o]=`${a}${t}`,e}),{});const Iu=(e,r)=>Array.from(Array(r)).map((()=>e)).join(""),Mu=new RegExp(`^#${Iu("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Nu=new RegExp(`^#${Iu("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Au=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Iu(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Ou=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Lu=/^[a-z]+$/i,ju=e=>Math.round(255*e),Ru=(e,r,o)=>{let t=o/100;if(0===r)return[t,t,t].map(ju);const a=(e%360+360)%360/60,n=(1-Math.abs(2*t-1))*(r/100),l=n*(1-Math.abs(a%2-1));let i=0,c=0,d=0;a>=0&&a<1?(i=n,c=l):a>=1&&a<2?(i=l,c=n):a>=2&&a<3?(c=n,d=l):a>=3&&a<4?(c=l,d=n):a>=4&&a<5?(i=l,d=n):a>=5&&a<6&&(i=n,d=l);const s=t-n/2;return[i+s,c+s,d+s].map(ju)};function Du(){return Du=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},Du.apply(this,arguments)}const zu={"--lightness-threshold":"0.453","--border-threshold":"0.96","--border-alpha":"max(0, min(calc((var(--perceived-lightness) - var(--border-threshold)) * 100), 1))",background:"rgb(var(--label-r), var(--label-g), var(--label-b))",color:"hsl(0, 0%, calc(var(--lightness-switch) * 100%))",borderWidth:1,borderStyle:"solid",borderColor:"hsla(var(--label-h),calc(var(--label-s) * 1%),calc((var(--label-l) - 25) * 1%),var(--border-alpha))"},Pu={"--lightness-threshold":"0.6","--background-alpha":"0.18","--border-alpha":"0.3","--lighten-by":"calc(((var(--lightness-threshold) - var(--perceived-lightness)) * 100) * var(--lightness-switch))",borderWidth:1,borderStyle:"solid",background:"rgba(var(--label-r), var(--label-g), var(--label-b), var(--background-alpha))",color:"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))",borderColor:"hsla(var(--label-h), calc(var(--label-s) * 1%),calc((var(--label-l) + var(--lighten-by)) * 1%),var(--border-alpha))"},_u=t(((e,o)=>{const{as:t,fillColor:n="#999",onRemove:l,id:i,isSelected:c,text:d,size:s=is,hideRemoveButton:g,href:b,onClick:v,...u}=e,f={as:t,href:b,onClick:v},{resolvedColorScheme:h}=co(),p=cs(e)&&Boolean(l)&&!g,m=a((()=>{const[r,o,t]=Eu(n),[a,i,d]=function(e){const[r,o,t,a]=Eu(e).map(((e,r)=>3===r?e:e/255)),n=Math.max(r,o,t),l=Math.min(r,o,t),i=(n+l)/2;if(n===l)return[0,0,i,a];const c=n-l;return[60*(r===n?(o-t)/c+(o<t?6:0):o===n?(t-r)/c+2:(r-o)/c+4),i>.5?c/(2-n-l):c/(n+l),i,a]}(n),s=!(null!=h&&h.startsWith("dark"));return{"--label-r":String(r),"--label-g":String(o),"--label-b":String(t),"--label-h":String(Math.round(a)),"--label-s":String(Math.round(100*i)),"--label-l":String(Math.round(100*d)),"--perceived-lightness":"calc(((var(--label-r) * 0.2126) + (var(--label-g) * 0.7152) + (var(--label-b) * 0.0722)) / 255)","--lightness-switch":"max(0, min(calc((var(--perceived-lightness) - var(--lightness-threshold)) * -1000), 1))",paddingRight:g||!l?void 0:0,position:"relative",...s?zu:Pu,...c?{background:s?"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) - 5) * 1%))":Pu.background,":focus":{outline:"none"},":after":{content:'""',position:"absolute",zIndex:1,top:"-2px",right:"-2px",bottom:"-2px",left:"-2px",display:"block",pointerEvents:"none",boxShadow:"0 0 0 2px "+(s?"rgb(var(--label-r), var(--label-g), var(--label-b))":"hsl(var(--label-h), calc(var(--label-s) * 1%), calc((var(--label-l) + var(--lighten-by)) * 1%))"),borderRadius:"999px"}}:{},...cs(e)?{"&:hover":{...s?{backgroundImage:"linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), linear-gradient(rgb(var(--label-r),var(--label-g),var(--label-b)), rgb(var(--label-r),var(--label-g),var(--label-b)))"}:{background:"hsla(var(--label-h), calc(var(--label-s) * 1%), calc(calc(var(--label-l) + 10) * 1%), 0.3);"},boxShadow:"shadow.medium"}}:{}}}),[n,h,g,l,c,e]);return r.createElement(gs,Du({onRemove:l,id:null==i?void 0:i.toString(),isSelected:c,text:d,size:s,sx:m},p?{}:f,u,{ref:o}),r.createElement(ps,p?f:{},d),!g&&l?r.createElement(hs,{borderOffset:1,onClick:e=>{e.stopPropagation(),l&&l()},size:s,"aria-hidden":p?"true":"false",isParentInteractive:cs(e),sx:p?{position:"relative",zIndex:"1"}:{}}):null)}));function Hu(){return Hu=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},Hu.apply(this,arguments)}_u.displayName="IssueLabelToken";const Fu=h.span.withConfig({displayName:"AvatarToken__AvatarContainer",componentId:"sc-62sih1-0"})(["--spacing:calc("," * 2);display:block;height:",";width:",";"],Kr("space.1"),(e=>`calc(${ls[e.avatarSize]} - var(--spacing))`),(e=>`calc(${ls[e.avatarSize]} - var(--spacing))`)),Vu=t((({avatarSrc:e,id:o,size:t=is,...a},n)=>r.createElement(xs,Hu({leadingVisual:()=>r.createElement(Fu,{avatarSize:t},r.createElement(md,{src:e,size:parseInt(ls[t],10),sx:{width:"100%",height:"100%"}})),size:t,id:null==o?void 0:o.toString(),sx:{paddingLeft:Kr("space.1")}},a,{ref:n}))));function Wu(e){var r,o,t;const a=e.getAttribute("aria-label"),n=e.getAttribute("aria-labelledby");return a||(n?null!==(r=null===(o=document.getElementById(n))||void 0===o?void 0:o.textContent)&&void 0!==r?r:"":null!==(t=e.textContent)&&void 0!==t?t:"")}function Zu({containerRef:e,mouseDownRef:r}){bn({containerRef:e,bindKeys:Ca.ArrowVertical|Ca.ArrowHorizontal|Ca.HomeAndEnd|Ca.Backspace|Ca.PageUpDown,preventScroll:!0,getNextFocusable:(e,r,o)=>{var t;if(r instanceof HTMLElement){try{if(r.closest("dialog:modal"))return}catch{}return null!==(t=function(e,r){switch(`${function(e){if("treeitem"!==e.getAttribute("role"))throw new Error("Element is not a treeitem");switch(e.getAttribute("aria-expanded")){case"true":return"open";case"false":return"closed";default:return"end"}}(e)} ${r.key}`){case"open ArrowRight":return Ku(e);case"open ArrowLeft":case"closed ArrowRight":case"end ArrowRight":return;case"closed ArrowLeft":case"end ArrowLeft":return Gu(e)}switch(r.key){case"ArrowUp":return $u(e,"previous");case"ArrowDown":return $u(e,"next");case"Backspace":return Gu(e);case"Home":return function(e){const r=e.closest("[role=tree]"),o=null==r?void 0:r.querySelector("[role=treeitem]");return o instanceof HTMLElement?o:void 0}(e);case"End":return function(e){const r=e.closest("[role=tree]"),o=Array.from((null==r?void 0:r.querySelectorAll("[role=treeitem]"))||[]);if(0===o.length)return;let t=o.length-1,a=o[t];for(;t>0&&a instanceof HTMLElement&&null!==(n=a.parentElement)&&void 0!==n&&n.closest("[role=treeitem][aria-expanded=false]");){var n;t-=1,a=o[t]}return a instanceof HTMLElement?a:void 0}(e);case"PageUp":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=qu(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.max(0,(n-1)*a+l)]}(e);case"PageDown":return function(e){const r=e.closest('[role="tree"]');if(!r)return;const o=Array.from(r.querySelectorAll('[role="treeitem"]'));if(0===o.length)return;const t=o[0].firstElementChild,a=qu(r,t),n=Math.floor(o.indexOf(e)/a),l=o.indexOf(e)-a*n;return o[Math.min(o.length-1,(n+1)*a+l)]}(e)}}(r,o))&&void 0!==t?t:r}},focusInStrategy:()=>{var o,t,a;if(r.current)return;const n=null===(o=e.current)||void 0===o?void 0:o.querySelector("[aria-current]"),l=null===(t=e.current)||void 0===t?void 0:t.querySelector('[role="treeitem"]');return n instanceof HTMLElement?n:document.activeElement instanceof HTMLElement&&null!==(a=e.current)&&void 0!==a&&a.contains(document.activeElement)?document.activeElement:l instanceof HTMLElement?l:void 0}})}function $u(e,r){const o=e.closest("[role=tree]");if(!o)return;const t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,(e=>e instanceof HTMLElement&&"treeitem"===e.getAttribute("role")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP));let a=t.firstChild();for(;a!==e;)a=t.nextNode();let n="next"===r?t.nextNode():t.previousNode();for(;n instanceof HTMLElement&&null!==(l=n.parentElement)&&void 0!==l&&l.closest("[role=treeitem][aria-expanded=false]");){var l;n="next"===r?t.nextNode():t.previousNode()}return n instanceof HTMLElement?n:void 0}function Ku(e){const r=e.querySelector("[role=treeitem]");return r instanceof HTMLElement?r:void 0}function Gu(e){const r=e.closest("[role=group]"),o=null==r?void 0:r.closest("[role=treeitem]");return o instanceof HTMLElement?o:void 0}Vu.displayName="AvatarToken";const Uu={height:32};function qu(e,r){var o,t;const a=tt(e),{height:n}=null!==(o=null==r?void 0:r.getBoundingClientRect())&&void 0!==o?o:Uu,l=null!==(t=null==a?void 0:a.clientHeight)&&void 0!==t?t:window.innerHeight;return Math.floor(l/n)}const Yu=r.createContext({announceUpdate:()=>{},expandedStateCache:{current:new Map}}),Xu=r.createContext({itemId:"",level:1,isSubTreeEmpty:!1,setIsSubTreeEmpty:()=>{},isExpanded:!1,setIsExpanded:()=>{},leadingVisualId:"",trailingVisualId:""}),Ju=h.ul.withConfig({displayName:"TreeView__UlBox",componentId:"sc-4ex6b6-0"})(["list-style:none;padding:0;margin:0;.PRIVATE_TreeView-item{outline:none;&:focus-visible > div,&.focus-visible > div{box-shadow:inset 0 0 0 2px ",";@media (forced-colors:active){outline:2px solid HighlightText;outline-offset:-2;}}}.PRIVATE_TreeView-item-container{--level:1;--toggle-width:1rem;position:relative;display:grid;grid-template-columns:calc(calc(var(--level) - 1) * (var(--toggle-width) / 2)) var(--toggle-width) 1fr;grid-template-areas:'spacer toggle content';width:100%;min-height:2rem;font-size:",";color:",";border-radius:",";cursor:pointer;&:hover{background-color:",";@media (forced-colors:active){outline:2px solid transparent;outline-offset:-2px;}}@media (pointer:coarse){--toggle-width:1.5rem;min-height:2.75rem;}&:has(.PRIVATE_TreeView-item-skeleton):hover{background-color:transparent;cursor:default;@media (forced-colors:active){outline:none;}}}&[data-omit-spacer='true'] .PRIVATE_TreeView-item-container{grid-template-columns:0 0 1fr;}.PRIVATE_TreeView-item[aria-current='true'] > .PRIVATE_TreeView-item-container{background-color:",";&::after{content:'';position:absolute;top:calc(50% - 0.75rem);left:-",";width:0.25rem;height:1.5rem;background-color:",";border-radius:",";@media (forced-colors:active){background-color:HighlightText;}}}.PRIVATE_TreeView-item-toggle{grid-area:toggle;display:flex;align-items:center;justify-content:center;height:100%;color:",";}.PRIVATE_TreeView-item-toggle--hover:hover{background-color:",";}.PRIVATE_TreeView-item-toggle--end{border-top-left-radius:",";border-bottom-left-radius:",";}.PRIVATE_TreeView-item-content{grid-area:content;display:flex;align-items:center;height:100%;padding:0 ",";gap:",";}.PRIVATE_TreeView-item-content-text{flex:1 1 auto;width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.PRIVATE_TreeView-item-visual{display:flex;color:",";}.PRIVATE_TreeView-item-level-line{width:100%;height:100%;border-right:1px solid;border-color:",";}@media (hover:hover){.PRIVATE_TreeView-item-level-line{border-color:transparent;}&:hover .PRIVATE_TreeView-item-level-line,&:focus-within .PRIVATE_TreeView-item-level-line{border-color:",";}}.PRIVATE_TreeView-directory-icon{display:grid;color:",";}.PRIVATE_VisuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}",""],Kr("colors.accent.fg"),Kr("fontSizes.1"),Kr("colors.fg.default"),Kr("radii.2"),Kr("colors.actionListItem.default.hoverBg"),Kr("colors.actionListItem.default.selectedBg"),Kr("space.2"),Kr("colors.accent.fg"),Kr("radii.2"),Kr("colors.fg.muted"),Kr("colors.treeViewItem.chevron.hoverBg"),Kr("radii.2"),Kr("radii.2"),Kr("space.2"),Kr("space.2"),Kr("colors.fg.muted"),Kr("colors.border.subtle"),Kr("colors.border.subtle"),Kr("colors.treeViewItem.directory.fill"),po),Qu=({"aria-label":e,"aria-labelledby":o,children:t,flat:a})=>{const n=r.useRef(null),l=r.useRef(!1),[c,d]=r.useState(""),s=r.useCallback((e=>{d(e)}),[]),g=b((()=>{l.current=!0}),[]);i((()=>{function e(){l.current=!1}return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}}),[]),Zu({containerRef:n,mouseDownRef:l}),function({containerRef:e,onFocusChange:o}){const t=r.useRef(""),a=r.useRef(0),n=r.useRef(o),{safeSetTimeout:l,safeClearTimeout:i}=Ht();r.useEffect((()=>{n.current=o}),[o]);const c=r.useCallback((r=>{if(!r)return;if(!e.current)return;const o=e.current,t=Array.from(o.querySelectorAll('[role="treeitem"]')),a=t.findIndex((e=>e===document.activeElement));let l=(c=a,(i=t).map(((e,r)=>i[(c+r)%i.length])));var i,c;1===r.length&&(l=l.slice(1));const d=l.find((e=>Wu(e).toLowerCase().startsWith(r.toLowerCase())));d&&n.current(d)}),[e]);r.useEffect((()=>{if(!e.current)return;const r=e.current;function o(e){!e.key||e.key.length>1||e.ctrlKey||e.altKey||e.metaKey||(t.current+=e.key,c(t.current),i(a.current),a.current=l((()=>t.current=""),300),e.preventDefault(),e.stopPropagation())}return r.addEventListener("keydown",o),()=>r.removeEventListener("keydown",o)}),[e,c,i,l])}({containerRef:n,onFocusChange:e=>{e instanceof HTMLElement&&e.focus()}});const v=r.useRef(null);return null===v.current&&(v.current=new Map),r.createElement(Yu.Provider,{value:{announceUpdate:s,expandedStateCache:v}},r.createElement(r.Fragment,null,r.createElement(Io,{role:"status","aria-live":"polite","aria-atomic":"true"},c),r.createElement(Ju,{ref:n,role:"tree","aria-label":e,"aria-labelledby":o,"data-omit-spacer":a,onMouseDown:g},t)))};Qu.displayName="Root",Qu.displayName="TreeView";const ef=r.forwardRef((({id:e,containIntrinsicSize:o,current:t=!1,defaultExpanded:a,expanded:n,onExpandedChange:l,onSelect:i,children:c},d)=>{const[s,g]=Go(c,{leadingVisual:lf,trailingVisual:cf}),{expandedStateCache:b}=r.useContext(Yu),v=Ho(),u=Ho(),f=Ho(),[h,p]=function({name:e="custom",defaultValue:o,value:t,onChange:a}){const[n,l]=r.useState(null!=t?t:o),i=r.useRef(null),c=r.useRef(a);r.useEffect((()=>{c.current=a})),null===i.current&&(i.current=void 0!==t);const d=r.useCallback((e=>{var r;const o="function"==typeof e?e(n):e;!1===i.current&&l(o),null===(r=c.current)||void 0===r||r.call(c,o)}),[n]);return r.useEffect((()=>{i.current,i.current}),[e,t]),!0===i.current?[t,d]:[n,d]}({name:e,defaultValue:()=>{var r,o,n;return null!==(r=null!==(o=null===(n=b.current)||void 0===n?void 0:n.get(e))&&void 0!==o?o:a)&&void 0!==r?r:t},value:n,onChange:l}),{level:m}=r.useContext(Xu),{hasSubTree:y,subTree:x,childrenWithoutSubTree:C}=function(e){return r.useMemo((()=>{const o=r.Children.toArray(e).find((e=>r.isValidElement(e)&&e.type===of));return{subTree:o,childrenWithoutSubTree:r.Children.toArray(e).filter((e=>!(r.isValidElement(e)&&e.type===of))),hasSubTree:Boolean(o)}}),[e])}(g),[w,k]=r.useState(!y),[B,E]=r.useState(!1),T=r.useCallback((r=>{var o;p(r),null===(o=b.current)||void 0===o||o.set(e,r)}),[e,p,b]),S=r.useCallback((e=>{T(!h),null==e||e.stopPropagation()}),[h,T]),I=r.useCallback((e=>{switch(e.key){case"Enter":i?i(e):S(e),e.stopPropagation();break;case"ArrowRight":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),T(!0);break;case"ArrowLeft":if(e.altKey||e.metaKey)return;e.preventDefault(),e.stopPropagation(),T(!1)}}),[i,T,S]);return r.createElement(Xu.Provider,{value:{itemId:e,level:m+1,isSubTreeEmpty:w,setIsSubTreeEmpty:k,isExpanded:h,setIsExpanded:T,leadingVisualId:u,trailingVisualId:f}},r.createElement("li",{className:"PRIVATE_TreeView-item",ref:d,tabIndex:0,id:e,role:"treeitem","aria-labelledby":v,"aria-describedby":`${u} ${f}`,"aria-level":m,"aria-expanded":w?void 0:h,"aria-current":t?"true":void 0,"aria-selected":B?"true":"false",onKeyDown:I,onFocus:e=>{var r;null===(r=e.currentTarget.firstElementChild)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),E(!0),e.stopPropagation()},onBlur:()=>E(!1),onClick:e=>{i?i(e):S(e),e.stopPropagation()},onAuxClick:e=>{i&&1===e.button&&i(e),e.stopPropagation()}},r.createElement("div",{className:"PRIVATE_TreeView-item-container",style:{"--level":m,contentVisibility:o?"auto":void 0,containIntrinsicSize:o}},r.createElement("div",{style:{gridArea:"spacer",display:"flex"}},r.createElement(rf,{level:m})),y?r.createElement("div",{className:Ic("PRIVATE_TreeView-item-toggle",i&&"PRIVATE_TreeView-item-toggle--hover",1===m&&"PRIVATE_TreeView-item-toggle--end"),onClick:e=>{i&&S(e)}},h?r.createElement(Ga,{size:12}):r.createElement(Ua,{size:12})):null,r.createElement("div",{id:v,className:"PRIVATE_TreeView-item-content"},s.leadingVisual,r.createElement("span",{className:"PRIVATE_TreeView-item-content-text"},C),s.trailingVisual)),x))})),rf=({level:e})=>r.createElement("div",{style:{width:"100%",display:"flex"}},Array.from({length:e-1}).map(((e,o)=>r.createElement("div",{key:o,className:"PRIVATE_TreeView-item-level-line"}))));rf.displayName="LevelIndicatorLines",ef.displayName="TreeView.Item";const of=({count:e,state:o,children:t})=>{const{announceUpdate:a}=r.useContext(Yu),{itemId:n,isExpanded:l,isSubTreeEmpty:i,setIsSubTreeEmpty:c}=r.useContext(Xu),d=r.useRef(null),s=r.useRef(null),[g,b]=r.useState(!1),v=function(e){const o=r.useRef(e);return r.useEffect((()=>{o.current=e}),[e]),o.current}(o),{safeSetTimeout:u}=Ht();return r.useEffect((()=>{void 0!==o&&"done"!==o||(i||t?i&&t&&c(!1):c(!0))}),[o,i,c,t]),r.useEffect((()=>{if("loading"===v&&"done"===o){var e;const r=document.getElementById(n);if(!r)return;const o=Wu(r);if(null!==(e=s.current)&&void 0!==e&&e.childElementCount?a(`${o} content loaded`):a(`${o} is empty`),g){const e=Ku(r);u(e?()=>{e.focus()}:()=>{r.focus()}),b(!1)}}}),[g,v,o,n,a,s,u]),r.useEffect((()=>{function e(){b(!0)}function r(e){e.relatedTarget&&b(!1)}const o=d.current;if(o)return o.addEventListener("focus",e),o.addEventListener("blur",r),()=>{o.removeEventListener("focus",e),o.removeEventListener("blur",r)}}),[d,o]),l?r.createElement("ul",{role:"group",style:{listStyle:"none",padding:0,margin:0},ref:s},"loading"===o?r.createElement(nf,{ref:d,count:e}):t):null};of.displayName="SubTree",of.displayName="TreeView.SubTree";const tf=x(["from{mask-position:200%;}to{mask-position:0%;}"]),af=h.span.attrs({className:"PRIVATE_TreeView-item-skeleton"}).withConfig({displayName:"TreeView__SkeletonItem",componentId:"sc-4ex6b6-1"})(["display:flex;align-items:center;column-gap:0.5rem;height:2rem;@media (pointer:coarse){height:2.75rem;}@media (prefers-reduced-motion:no-preference){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;}&::before{content:'';display:block;width:1rem;height:1rem;background-color:",";border-radius:3px;@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}}&::after{content:'';display:block;width:var(--tree-item-loading-width,67%);height:1rem;background-color:",";border-radius:3px;@media (forced-colors:active){outline:1px solid transparent;outline-offset:-1px;}}&:nth-of-type(5n + 1){--tree-item-loading-width:67%;}&:nth-of-type(5n + 2){--tree-item-loading-width:47%;}&:nth-of-type(5n + 3){--tree-item-loading-width:73%;}&:nth-of-type(5n + 4){--tree-item-loading-width:64%;}&:nth-of-type(5n + 5){--tree-item-loading-width:50%;}"],tf,Kr("colors.neutral.subtle"),Kr("colors.neutral.subtle")),nf=r.forwardRef((({count:e},o)=>{const t=Ho();return e?r.createElement(ef,{id:t,ref:o},Array.from({length:e}).map(((e,o)=>r.createElement(af,{"aria-hidden":!0,key:o}))),r.createElement("div",{className:"PRIVATE_VisuallyHidden"},"Loading ",e," items")):r.createElement(ef,{id:t,ref:o},r.createElement(lf,null,r.createElement(Oc,{size:"small"})),r.createElement(Jn,{sx:{color:"fg.muted"}},"Loading..."))}));const lf=e=>{const{isExpanded:o,leadingVisualId:t}=r.useContext(Xu),a="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:"PRIVATE_VisuallyHidden","aria-hidden":!0,id:t},e.label),r.createElement("div",{className:"PRIVATE_TreeView-item-visual","aria-hidden":!0},a))};lf.displayName="TreeView.LeadingVisual";const cf=e=>{const{isExpanded:o,trailingVisualId:t}=r.useContext(Xu),a="function"==typeof e.children?e.children({isExpanded:o}):e.children;return r.createElement(r.Fragment,null,r.createElement("div",{className:"PRIVATE_VisuallyHidden","aria-hidden":!0,id:t},e.label),r.createElement("div",{className:"PRIVATE_TreeView-item-visual","aria-hidden":!0},a))};cf.displayName="TreeView.TrailingVisual";const df=()=>{const{isExpanded:e}=r.useContext(Xu),o=e?Ya:qa;return r.createElement("div",{className:"PRIVATE_TreeView-directory-icon"},r.createElement(o,null))};df.displayName="DirectoryIcon";const sf=({title:e="Error",children:o,onRetry:t,onDismiss:a})=>{const{itemId:n,setIsExpanded:l}=r.useContext(Xu);return r.createElement("div",{onKeyDown:e=>{["Backspace","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"].includes(e.key)&&e.stopPropagation()}},r.createElement(Kn,{title:e,onClose:e=>{setTimeout((()=>{const e=document.getElementById(n);null==e||e.focus()})),"confirm"===e?null==t||t():(l(!1),null==a||a())},confirmButtonContent:"Retry",cancelButtonContent:"Dismiss"},o))};sf.displayName="ErrorDialog",sf.displayName="TreeView.ErrorDialog";const gf=Object.assign(Qu,{Item:ef,SubTree:of,LeadingVisual:lf,TrailingVisual:cf,DirectoryIcon:df,ErrorDialog:sf}),bf=c({theme:{},setChildrenWidth:()=>null,setNoIconChildrenWidth:()=>null,loadingCounters:!1,iconsVisible:!0}),vf={alignItems:"center",display:"inline-flex",marginRight:2},uf={marginLeft:2,display:"flex",alignItems:"center"},ff=e=>({display:"flex",paddingX:3,justifyContent:"flex-start",borderBottom:"1px solid",borderBottomColor:`${null==e?void 0:e.colors.border.muted}`,align:"row",alignItems:"center",minHeight:"48px"}),hf={display:"flex",listStyle:"none",whiteSpace:"nowrap",paddingY:0,paddingX:0,margin:0,marginBottom:"-1px",alignItems:"center",gap:"8px",position:"relative"},pf=e=>({display:"inline-block",borderLeft:"1px solid",width:"1px",borderLeftColor:`${null==e?void 0:e.colors.border.muted}`,marginRight:1,height:"24px"}),mf={margin:0,border:0,background:"transparent",fontWeight:"normal",boxShadow:"none",paddingY:1,paddingX:2,'& > span[data-component="trailingVisual"]':{marginLeft:0}},yf=(e,r)=>({position:"relative",display:"inline-flex",color:"fg.default",textAlign:"center",textDecoration:"none",lineHeight:"calc(20/14)",'& span[data-component="icon"]':{color:"fg.muted"},borderRadius:2,fontSize:1,paddingX:2,paddingY:"calc((2rem - 1.25rem) / 2)","@media (hover:hover)":{"&:hover ":{backgroundColor:null==e?void 0:e.colors.neutral.muted,transition:"background .12s ease-out",textDecoration:"none"}},"&:focus":{outline:"2px solid transparent","&":{boxShadow:`inset 0 0 0 2px ${null==e?void 0:e.colors.accent.fg}`},"&:not(:focus-visible)":{boxShadow:"none"}},"&:focus-visible":{outline:"2px solid transparent",boxShadow:`inset 0 0 0 2px ${null==e?void 0:e.colors.accent.fg}`},"& span[data-content]::before":{content:"attr(data-content)",display:"block",height:0,fontWeight:"600",visibility:"hidden",whiteSpace:"nowrap"},"&::after":{position:"absolute",right:"50%",bottom:"calc(50% - 25px)",width:"100%",height:2,content:'""',backgroundColor:Boolean(r)&&"false"!==r?null==e?void 0:e.colors.primer.border.active:"transparent",borderRadius:0,transform:"translate(50%, -50%)"},"@media (forced-colors: active)":{"::after":{backgroundColor:Boolean(r)&&r?"LinkText":"transparent"}}}),xf={"& > span":{display:"none"},textDecoration:"none"},Cf={position:"absolute",zIndex:1,top:"90%",right:"0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24)",borderRadius:"12px",backgroundColor:"canvas.overlay",listStyle:"none",minWidth:"192px",maxWidth:"640px"},wf=x(["from{opacity:1;}to{opacity:0.2;}"]),kf=h.span.withConfig({displayName:"LoadingCounter",componentId:"sc-k62v1l-0"})(["animation:"," 1.2s ease-in-out infinite alternate;background-color:",";border-color:",";width:1.5rem;height:1rem;display:inline-block;border-radius:20px;"],wf,Kr("colors.neutral.muted"),Kr("colors.border.default"));function Bf(){return Bf=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},Bf.apply(this,arguments)}const Ef=h.ul.withConfig({displayName:"UnderlineNav__NavigationList",componentId:"sc-1jfr31k-0"})(["",";"],po),Tf=h.li.withConfig({displayName:"UnderlineNav__MoreMenuListItem",componentId:"sc-1jfr31k-1"})(["display:flex;align-items:center;height:","px;"],45),Sf=(e,r,o=0)=>{const t=r-o;let a=e.length,n=0;for(const[r,o]of e.entries())if(n=n+o.width+8,n>t){a=r;break}return a},If=t((({as:e="nav","aria-label":o,sx:t=So,loadingCounters:a=!1,children:n},l)=>{const i=g(null),c=null!=l?l:i,s=g(null),v=g(null),u=g(null),f=r.useRef(null),h=Ho(),{theme:p}=co(),[m,y]=d(!1),[x,C]=d(!0),[w,k]=d([]),[B,E]=d([]),T=(e=>r.Children.toArray(e).filter((e=>r.isValidElement(e))))(n),[S,I]=d({items:T,menuItems:[]}),M=S.items.map((e=>{var r;return null!==(r=T.find((r=>r.key===e.key)))&&void 0!==r?r:e})),N=S.menuItems.map((e=>{var r;return null!==(r=T.find((r=>r.key===e.key)))&&void 0!==r?r:e})),A=0===S.items.length;function O(e){var r,o;return null!==(r=null===(o=B.find((r=>r.text===e)))||void 0===o?void 0:o.width)&&void 0!==r?r:0}const L=(e,r,o,t)=>{var a,n;const l=function(e,r){let o=0,t=0;for(const[a,n]of[...S.items].reverse().entries())if(o+=O(n.props.children),e<o+r){t=a;break}return t}(O(e.props.children),c.current.getBoundingClientRect().width-(null!==(a=null===(n=s.current)||void 0===n?void 0:n.getBoundingClientRect().width)&&void 0!==a?a:0)),i=S.items.length-1-l,d=[...[...S.items].slice(0,i),e],g=[...S.items].slice(i),b=[...N];b.splice(r,1,...g),t({items:d,menuItems:b},!1)};const j=b(((e,r)=>{I(e),C(r)}),[]),R=b((e=>{k((r=>[...r,e]))}),[]),D=b((e=>{E((r=>[...r,e]))}),[]),z=r.useCallback((()=>{y(!1)}),[y]),P=r.useCallback((()=>{var e;null===(e=u.current)||void 0===e||e.focus()}),[]),_=b((e=>{e.defaultPrevented||0!==e.button||y((e=>!e))}),[]);return ta((e=>{m&&(e.preventDefault(),z(),P())}),[m]),$t({onClickOutside:z,containerRef:f,ignoreClickRefs:[u]}),Aa((e=>{var r,o;const t=e[0].contentRect.width,a=null!==(r=null===(o=v.current)||void 0===o?void 0:o.getBoundingClientRect().width)&&void 0!==r?r:0;0!==t&&((e,r,o,t,a,n)=>{let l=!0;0===t.length&&n({items:o,menuItems:[]},l);const i=Sf(t,e),c=Sf(a,e),d=Sf(a,e,r||86),s=[],g=[];if(o.length<=i)s.push(...o);else if(o.length<=c)l=!1,s.push(...o);else{l=!1;const e=1==o.length-d?d-1:d;for(const[r,t]of o.entries())if(r<e)s.push(t);else{const r=t.props["aria-current"];if(Boolean(r)&&"false"!==r&&e>0){const r=e-1,o=s.splice(r,1,t)[0];g.push(o)}else g.push(t)}}n({items:s,menuItems:g},l)})(t,a,T,w,B,j)}),c),r.createElement(bf.Provider,{value:{theme:p,setChildrenWidth:R,setNoIconChildrenWidth:D,loadingCounters:a,iconsVisible:x}},o&&r.createElement(Io,{as:"h2"},`${o} navigation`),r.createElement(mo,{as:e,sx:to(ff(p),t),"aria-label":o,ref:c},r.createElement(Ef,{sx:hf,ref:s,role:"list"},M,N.length>0&&r.createElement(Tf,{ref:v},!A&&r.createElement(mo,{sx:pf(p)}),r.createElement(jo,{ref:u,sx:mf,"aria-controls":h,"aria-expanded":m,onClick:_,trailingAction:sn},r.createElement(mo,{as:"span"},A?r.createElement(r.Fragment,null,r.createElement(Io,{as:"span"},`${o}`," "),"Menu"):r.createElement(r.Fragment,null,"More",r.createElement(Io,{as:"span"}," ",`${o} items`)))),r.createElement(Ki,{selectionVariant:"single",ref:f,id:h,sx:Cf,style:{display:m?"block":"none"}},N.map(((e,o)=>{const{children:t,counter:n,"aria-current":l,onSelect:i,...c}=e.props;if(Boolean(l)&&"false"!==l){new MouseEvent("click");!A&&L(e,o,0,j)}return r.createElement(Ki.LinkItem,Bf({key:t,sx:xf,onClick:r=>{!A&&L(e,o,0,j),z(),P(),"function"==typeof i&&i(r)}},c),r.createElement(mo,{as:"span",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"}},t,a?r.createElement(kf,null):void 0!==n&&r.createElement(mo,{as:"span","data-component":"counter"},r.createElement(No,null,n))))})))))))}));function Mf(){return Mf=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},Mf.apply(this,arguments)}If.displayName="UnderlineNav";const Nf=t((({sx:e=So,as:o="a",href:t="#",children:a,counter:n,onSelect:i,"aria-current":c,icon:d,...s},b)=>{const v=g(null),u=null!=b?b:v,{theme:f,setChildrenWidth:h,setNoIconChildrenWidth:p,loadingCounters:m,iconsVisible:y}=l(bf);ot((()=>{if(u.current){const e=u.current.getBoundingClientRect(),r=Array.from(u.current.children).find((e=>"icon"===e.getAttribute("data-component"))),o=Array.from(u.current.children).find((e=>"text"===e.getAttribute("data-component"))).textContent,t=r?r.getBoundingClientRect().width+Number(getComputedStyle(r).marginRight.slice(0,-2))+Number(getComputedStyle(r).marginLeft.slice(0,-2)):0;h({text:o,width:e.width}),p({text:o,width:e.width-t})}}),[u,h,p]);const x=r.useCallback((e=>{" "!==e.key&&"Enter"!==e.key||e.defaultPrevented||"function"!=typeof i||i(e)}),[i]),C=r.useCallback((e=>{e.defaultPrevented||"function"!=typeof i||i(e)}),[i]);return r.createElement(mo,{as:"li",sx:{display:"flex",flexDirection:"column",alignItems:"center"}},r.createElement(Vi,Mf({ref:u,as:o,href:t,"aria-current":c,onKeyDown:x,onClick:C,sx:to(yf(f,c),e)},s),y&&d&&r.createElement(mo,{as:"span","data-component":"icon",sx:vf},r.createElement(d,null)),a&&r.createElement(mo,{as:"span","data-component":"text","data-content":a,sx:Boolean(c)&&"false"!==c?{fontWeight:600}:{}},a),m?r.createElement(mo,{as:"span","data-component":"counter",sx:uf},r.createElement(kf,null)):void 0!==n&&r.createElement(mo,{as:"span","data-component":"counter",sx:uf},r.createElement(No,null,n))))}));Nf.displayName="UnderlineNavItem";const Af=Object.assign(If,{Item:Nf});function Of({children:e}){return e}const Lf=Ho;export{Ki as ActionList,lc as ActionMenu,Qi as AnchoredOverlay,cd as Autocomplete,md as Avatar,Cd as AvatarPair,kd as AvatarStack,Vu as AvatarToken,ho as BaseStyles,mo as Box,Bd as BranchName,Nd as Breadcrumb,Md as Breadcrumbs,jo as Button,Ad as ButtonGroup,Pd as Caret,Ud as Checkbox,_s as CheckboxGroup,Ws as CircleBadge,Hd as CircleOcticon,Kn as ConfirmationDialog,No as CounterLabel,Zs as Details,eg as Dialog,ag as Flash,Ds as FormControl,cg as Header,Cl as Heading,zo as IconButton,_u as IssueLabelToken,gg as Label,pg as LabelGroup,Vi as Link,_o as LinkButton,Og as NavList,Ha as Octicon,Xi as Overlay,At as PageLayout,Lg as Pagehead,_g as Pagination,Wg as PointerBox,Kg as Popover,pn as Portal,Qg as ProgressBar,pl as Radio,vl as RadioGroup,Db as RelativeTime,Of as SSRProvider,Yb as SegmentedControl,os as Select,jv as SelectPanel,Hv as SideNav,Oc as Spinner,Pt as SplitPageLayout,Kv as StateLabel,Jv as SubNav,fu as TabNav,Jn as Text,Xc as TextInput,Bs as TextInputWithTokens,Ss as Textarea,io as ThemeProvider,Cu as Timeline,cu as ToggleSwitch,xs as Token,Wc as Tooltip,gf as TreeView,Si as Truncate,Af as UnderlineNav,to as merge,hn as registerPortalRoot,po as sx,j as theme,Kr as themeGet,so as useColorSchemeVar,Un as useConfirm,_t as useDetails,Pa as useFocusTrap,bn as useFocusZone,Zd as useFormControlForwardedProps,ta as useOnEscapePress,$t as useOnOutsideClick,Qt as useOpenAndCloseFocus,na as useOverlay,To as useRefObjectAsForwardedRef,Aa as useResizeObserver,Ko as useResponsiveValue,Lf as useSSRSafeId,Ht as useSafeTimeout,co as useTheme};
|
|
13
13
|
//# sourceMappingURL=browser.esm.js.map
|