forked from Stock-control-supervisors/awesome-go
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
31-04508cbd608678bd.js.download
1 lines (1 loc) · 59.3 KB
/
31-04508cbd608678bd.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31],{96893:function(e,t,r){r.r(t),r.d(t,{Content:function(){return b},Header:function(){return y},Item:function(){return w},Root:function(){return j}});var n=r(75965),a=r(11591),o=r(32574),i=r(20433),l=r.n(i),s=r(91710),u=r(70118),c=r(85835);let d=s.createContext(null),f=()=>{let e=s.useContext(d);if(!e)throw TypeError("`useAccordionContext` must be called within `AccordionContext.Provider`");return e},m=s.forwardRef((e,t)=>{let{size:r="2",className:i,value:f,defaultValue:m,onValueChange:h,...x}=(0,u.extractProps)(e,c.marginPropDefs),[p=[],v]=(0,o.T)({prop:f,defaultProp:m,onChange:h});return(0,n.jsx)(d.Provider,{value:{value:p,onValueChange:s.useCallback(e=>{v(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.includes(e)?t:[...t,e]})},[v])},children:(0,n.jsx)(a.fC,{ref:t,type:"multiple",className:l()("AccordionRoot",i,{"size-1":"1"===r,"size-2":"2"===r}),...x,value:p,onValueChange:v})})});m.displayName="AccordionRoot";let h=s.createContext(null),x=()=>{let e=s.useContext(h);if(!e)throw TypeError("`useAccordionItemContext` must be called within `AccordionItemContext.Provider`");return e},p=s.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(h.Provider,{value:{value:o.value},children:(0,n.jsx)(a.ck,{ref:t,className:l()("AccordionItem",r),...o})})});p.displayName="AccordionItem";let v=s.forwardRef((e,t)=>{let{as:r="h3",className:o,children:i,...s}=e;return(0,n.jsx)(a.h4,{asChild:!0,children:(0,n.jsx)(r,{ref:t,className:l()("AccordionHeader",o),...s,children:(0,n.jsxs)(a.xz,{className:"AccordionTrigger reset-button",children:[(0,n.jsx)("div",{className:"AccordionChevron",children:(0,n.jsx)("svg",{fill:"none",height:"16",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M6 11L6 4L10.5 7.5L6 11Z",fill:"currentColor"})})}),(0,n.jsx)("div",{children:i})]})})})});v.displayName="AccordionHeader";let g=s.forwardRef((e,t)=>{let{children:r,className:o,...i}=e,u=f(),c=x(),d=s.useRef(null),[m,h]=s.useState(null),p=u.value.includes(c.value),{onValueChange:v}=u;return s.useEffect(()=>{let e=d.current,t=()=>v(c.value);return null==e||e.addEventListener("beforematch",t),()=>{null==e||e.removeEventListener("beforematch",t)}},[c.value,v]),s.useEffect(()=>{let e=d.current;e&&(p?(e.removeAttribute("hidden"),h(e.offsetHeight)):(h(e.offsetHeight),e.setAttribute("hidden","until-found")))},[p]),(0,n.jsx)(a.VY,{ref:t,forceMount:!0,className:l()("AccordionContent",o),...i,style:{...i.style,"--workds-accordion-inner-content-height":"".concat(m,"px")},children:(0,n.jsx)("div",{ref:d,className:"AccordionContentInner",children:r})})});g.displayName="AccordionContent";let j=m,b=g,y=v,w=p},80883:function(e,t,r){r.r(t),r.d(t,{Button:function(){return l}});var n=r(75965),a=r(63873),o=r(20433),i=r.n(o);let l=r(91710).forwardRef((e,t)=>{let{ghost:r=!1,color:o="gray",state:l="normal",className:s,onClick:u,...c}=e;return(0,n.jsx)(a.zx,{ref:t,"aria-disabled":"normal"!==l||void 0,"aria-label":"loading"===l?"Loading, please wait.":void 0,"aria-live":"assertive",color:o,"data-disabled":"normal"!==l||void 0,highContrast:!r&&"gray"===o,type:"button",className:i()(s,"Button",{"state-loading":"loading"===l}),variant:r?"ghost":"purple"===o||"normal"!==l?"solid":"surface",onClick:e=>{let t=e.currentTarget.getAttribute("aria-disabled");if(null!==t&&"false"!==t){e.preventDefault(),e.stopPropagation();return}null==u||u(e)},...c})});l.displayName="Button"},2110:function(e,t,r){r.r(t),r.d(t,{Checkbox:function(){return d}});var n=r(75965),a=r(87546),o=r(18145),i=r(20433),l=r.n(i),s=r(91710),u=r(70118),c=r(85835);let d=s.forwardRef((e,t)=>{let{className:r,style:i,...s}=(0,u.extractProps)(e,c.marginPropDefs);return(0,n.jsx)("div",{className:l()("CheckboxRoot",r),style:i,children:(0,n.jsx)(a.fC,{ref:t,className:"CheckboxButton",...s,children:(0,n.jsx)(a.z$,{className:"CheckboxIndicator",children:(0,n.jsx)(o.nQG,{height:"16",width:"16"})})})})});d.displayName="Checkbox"},89676:function(e,t,r){r.r(t),r.d(t,{Chip:function(){return d}});var n=r(75965),a=r(18145),o=r(19767),i=r(20433),l=r.n(i),s=r(91710),u=r(70118),c=r(85835);let d=s.forwardRef((e,t)=>{let{as:r="span",color:i="blue",weight:s="regular",className:d,children:f,onRemove:m,...h}=(0,u.extractProps)(e,c.marginPropDefs);return(0,n.jsx)(o.g7,{ref:t,"data-accent-color":i,className:l()(d,"Chip",{gray:"gray"===i,blue:"blue"===i,"weight-regular":"regular"===s,"weight-bold":"bold"===s,"reset-button":"button"===r}),...h,children:(0,n.jsxs)(r,{type:"button"===r?"button":void 0,children:[f,m&&(0,n.jsx)("button",{"aria-label":"Remove",className:l()("reset-button","ChipRemove"),onClick:e=>{"button"===r&&e.stopPropagation(),m()},children:(0,n.jsx)(a.Pxu,{})})]})})});d.displayName="Chip"},59078:function(e,t,r){r.r(t),r.d(t,{ColorField:function(){return u}});var n=r(75965),a=r(37321),o=r(91710),i=r(70118),l=r(72150);let s="000000",u=o.forwardRef((e,t)=>{var r;let{defaultValue:u=s,value:m,onChange:h,onBlur:x,onValueChange:p,onKeyDownCapture:v,placeholder:g="Hex color",size:j,state:b,...y}=e,w=o.useRef(null),[C,N]=o.useState(null!==(r=d(null!=m?m:u))&&void 0!==r?r:s),R=o.useRef(C),k=o.useRef(!1),T=o.useMemo(()=>d(C)||R.current,[C]);return(0,i.useIsomorphicLayoutEffect)(()=>{let e=d(m);e&&(N(e),R.current=e)},[m]),(0,n.jsx)("div",{className:"ColorFieldRoot",onMouseUp:()=>{if(!k.current&&document.activeElement===w.current&&!c(w.current)){var e;null===(e=w.current)||void 0===e||e.select(),k.current=!0}},children:(0,n.jsx)(l.f,{ref:(0,a.F)(w,t),autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",placeholder:g,size:j,state:b,type:"text",value:C,variant:"surface",onBlur:e=>{if(R.current=T,k.current=!1,N(T),null==p||p(f(T)),navigator.userAgent.toLowerCase().includes("firefox")){var t;null===(t=w.current)||void 0===t||t.setSelectionRange(0,0)}null==x||x(e)},onChange:e=>{N(e.currentTarget.value),null==h||h(e)},onKeyDownCapture:e=>{"Enter"===e.key&&R.current!==C&&(R.current=T,N(T),null==p||p(f(T)),setTimeout(()=>{var e;return null===(e=w.current)||void 0===e?void 0:e.select()}),e.preventDefault()),"Escape"===e.key&&R.current!==C&&(N(R.current),setTimeout(()=>{var e;return null===(e=w.current)||void 0===e?void 0:e.select()}),e.stopPropagation()),null==v||v(e)},...y,children:(0,n.jsx)(l.g,{children:(0,n.jsxs)("div",{className:"ColorFieldSwatchWrapper",children:[(0,n.jsx)("input",{className:"ColorFieldSwatch",disabled:"disabled"===b||"read-only"===b,tabIndex:-1,type:"color",value:"#"+T,onChange:e=>{let t=d(e.currentTarget.value);t&&(R.current=t,N(t),null==p||p(f(t))),null==h||h(e)}}),(0,n.jsx)("div",{className:"ColorFieldSwatchBorder"})]})})})})});u.displayName="ColorField";let c=e=>{if(e){let{selectionStart:t,selectionEnd:r}=e;return(null!=r?r:0)-(null!=t?t:0)>0}return!1},d=e=>{var t;let[r]=null!==(t=null==e?void 0:e.trim().replace(/^#/,"").match(/((?:^(?:[0-9]|[a-f]){6})|(?:^(?:[0-9]|[a-f]){1,3}))/i))&&void 0!==t?t:[];if(!r)return null;switch(r.length){case 1:r=r.repeat(6);break;case 2:r=r.repeat(3);break;case 3:let[n,a,o]=r.split("");r="".concat(n).concat(n).concat(a).concat(a).concat(o).concat(o)}return r.toUpperCase()},f=e=>"#"+e},45697:function(e,t,r){r.r(t),r.d(t,{IconButton:function(){return u}});var n=r(75965),a=r(20433),o=r.n(a),i=r(91710),l=r(70118),s=r(85835);let u=i.forwardRef((e,t)=>{let{className:r,color:a="gray",size:i="2",state:u="normal",onClick:c,...d}=(0,l.extractProps)(e,s.marginPropDefs);return(0,n.jsx)("button",{ref:t,"aria-disabled":"normal"!==u||void 0,"aria-label":"loading"===u?"Loading, please wait.":void 0,"aria-live":"assertive",type:"button",className:o()(r,"reset-button","IconButton",{"state-normal":"normal"===u,"state-disabled":"disabled"===u,"state-loading":"loading"===u,"size-1":"1"===i,"size-2":"2"===i,"size-3":"3"===i,gray:"gray"===a,purple:"purple"===a,green:"green"===a,red:"red"===a}),onClick:e=>{let t=e.currentTarget.getAttribute("aria-disabled");if(null!==t&&"false"!==t){e.preventDefault(),e.stopPropagation();return}null==c||c(e)},...d})});u.displayName="IconButton"},34187:function(e,t,r){r.r(t),r.d(t,{Preview:function(){return j},Root:function(){return g}});var n=r(75965),a=r(18145),o=r(44266),i=r(32574),l=r(63873),s=r(20433),u=r.n(s),c=r(91710),d=r(70118),f=r(85835);let m=["image/jpeg","image/png","image/gif","image/svg+xml","image/webp","image/avif","image/x-icon","image/vnd.microsoft.icon"],[h,x]=(0,d.createContext)("ImageField"),p=c.forwardRef((e,t)=>{let r;let{id:a,name:o,className:s,placeholder:x="Upload image",accept:p=m,ratio:v,children:g,maxDimensions:j,maxSizeKB:b,minDimensions:y,state:w="normal",defaultFile:C,file:N,onFileChange:R,onError:k=()=>null,onClick:T,...P}=(0,d.extractProps)(e,f.marginPropDefs),I=c.useRef(null),[L,S]=c.useState(!1),[A,D]=(0,i.T)({prop:N,onChange:R,defaultProp:C}),E=c.useCallback(()=>{var e,t;null===(e=I.current)||void 0===e||e.focus(),null===(t=I.current)||void 0===t||t.click()},[]),F=c.useCallback(()=>{k([]),D(null),I.current&&(I.current.value="")},[k,D]);return"string"==typeof A?r="Previous file will be used. Press backspace to clear.":A&&(r="Press backspace to clear."),(0,n.jsx)(h,{file:null!=A?A:null,handleChangeStart:E,handleClear:F,children:(0,n.jsxs)("div",{ref:t,className:u()(s,"ImageFieldRoot"),"data-state":w,onDragEnter:()=>S(!0),onDragLeave:()=>S(!1),...P,children:[(0,n.jsx)("input",{ref:I,accept:p.join(),"aria-description":r,className:"ImageFieldInput","data-dragging-over":L||void 0,disabled:"disabled"===w,id:a,multiple:!1,name:o,readOnly:"read-only"===w,title:"",type:"file",onChange:e=>{var t;let r=null===(t=e.target.files)||void 0===t?void 0:t[0];if(S(!1),!r)return;let n=new FileReader;n.readAsDataURL(r),n.onerror=()=>{null==k||k(["file-unreadable"])},n.onload=e=>{var t;if("string"==typeof(null===(t=e.target)||void 0===t?void 0:t.result)){let t=e.target.result,n=new Image;n.src=t,n.onerror=()=>{null==k||k(["format-unacceptable"])},n.onload=()=>{let e=[],t=(n.width/n.height).toFixed(2)!==(null==v?void 0:v.toFixed(2));if(p.includes(r.type)||e.push("format-unacceptable"),v&&t&&e.push("aspect-ratio-incorrect"),b&&r.size/1024>b&&e.push("file-size-too-large"),"image/svg+xml"!==r.type){var a,o,i,l;let t=null!==(a=null==y?void 0:y.width)&&void 0!==a?a:0,r=null!==(o=null==y?void 0:y.height)&&void 0!==o?o:0,s=null!==(i=null==j?void 0:j.width)&&void 0!==i?i:1/0,u=null!==(l=null==j?void 0:j.height)&&void 0!==l?l:1/0;(n.width<t||n.height<r)&&e.push("dimensions-too-small"),(n.width>s||n.height>u)&&e.push("dimensions-too-large")}null==k||k(e),0===e.length&&D(r)}}else null==k||k(["file-unreadable"])}},onClick:e=>{"read-only"===w&&(null==e||e.preventDefault()),null==T||T(e)},onKeyDown:e=>{"Backspace"===e.key&&(e.preventDefault(),F())}}),(0,n.jsx)("div",{className:"ImageFieldOutline"}),!A&&(0,n.jsx)(l.kC,{align:"center",direction:"column",gap:"2",m:"4",children:(0,n.jsx)(l.xv,{align:"center",className:"ImageFieldPlaceholder",size:"1",children:x})}),g]})})});p.displayName="ImageFieldRoot";let v=c.forwardRef((e,t)=>{let{backgroundColor:r,onSrcChange:i,children:l,style:s,...u}=e,f=x("ImageField"),m=c.useRef(null),h=(0,o.W)(i),p=c.useMemo(()=>{if(m.current&&URL.revokeObjectURL(m.current),"string"==typeof f.file)return f.file;if(null!==f.file){let e=URL.createObjectURL(f.file);return m.current=e,e}return null},[f.file]);return(c.useEffect(()=>()=>{m.current&&URL.revokeObjectURL(m.current)},[]),(0,d.useIsomorphicLayoutEffect)(()=>{null==h||h(null!=p?p:void 0)},[p]),p)?(0,n.jsxs)("div",{ref:t,"aria-hidden":!0,className:"ImageFieldPreview",style:{backgroundColor:r,...s},...u,children:[(0,n.jsx)("div",{className:"ImageFieldPreviewInner",children:l?l(p):(0,n.jsx)("img",{className:"ImageFieldPreviewImage",src:p})}),(0,n.jsxs)("div",{className:"ImageFieldPreviewOverlay",children:[(0,n.jsx)("button",{className:"rt-reset ImageFieldPreviewButton",tabIndex:-1,type:"button",onClick:()=>f.handleChangeStart(),children:"Change"}),(0,n.jsx)("button",{"aria-label":"Clear",className:"rt-reset ImageFieldPreviewIconButton",tabIndex:-1,type:"button",onClick:()=>f.handleClear(),children:(0,n.jsx)(a.XHJ,{})})]})]}):null});v.displayName="ImageFieldPreview";let g=p,j=v},45497:function(e,t,r){r.d(t,{aR:function(){return o},qE:function(){return n},Ct:function(){return K},xu:function(){return w.xu},zx:function(){return E.Button},UW:function(){return w.UW},Zb:function(){return w.Zb},XZ:function(){return y.Checkbox},kW:function(){return w.kW},Af:function(){return eH.Chip},EK:function(){return w.EK},dn:function(){return u},SG:function(){return eS.ColorField},W2:function(){return w.W2},FR:function(){return i},Vq:function(){return l},h_:function(){return a},ig:function(){return eV},kC:function(){return w.kC},rj:function(){return w.rj},X6:function(){return w.X6},hU:function(){return S.IconButton},gW:function(){return eO},Ee:function(){return eD},Mk:function(){return eE},eB:function(){return w.eB},__:function(){return eF},rU:function(){return w.rU},K7:function(){return eG},Jx:function(){return eB},J2:function(){return w.J2},Ex:function(){return ei},LC:function(){return e9},Y8:function(){return A},QC:function(){return w.Jx},xr:function(){return D},$0:function(){return w.$0},sY:function(){return w.sY},Ph:function(){return s},Z0:function(){return w.Z0},Od:function(){return w.Od},$j:function(){return w.$j},qb:function(){return e_},cK:function(){return w.cK},rs:function(){return w.rs},KT:function(){return w.KT},iA:function(){return e6},mQ:function(){return ep},xv:function(){return w.xv},Kx:function(){return F},nv:function(){return B},Q2:function(){return ev},u:function(){return eg}});var n={};r.r(n),r.d(n,{f:function(){return j},x:function(){return b}});var a={};r.r(a),r.d(a,{VY:function(){return k},ck:function(){return T},Ee:function(){return P},Rk:function(){return I},fC:function(){return N},Z0:function(){return L},xz:function(){return R}});var o={};r.r(o),r.d(o,{aU:function(){return G},$j:function(){return W},VY:function(){return U},dk:function(){return O},fC:function(){return _},Dx:function(){return V},xz:function(){return H}});var i={};r.r(i),r.d(i,{ck:function(){return q},__:function(){return Y},fC:function(){return Z},B4:function(){return X}});var l={};r.r(l),r.d(l,{x8:function(){return eo},VY:function(){return er},dk:function(){return ea},fC:function(){return ee},Dx:function(){return en},xz:function(){return et}});var s={};r.r(s),r.d(s,{VY:function(){return ed},ZA:function(){return ex},ck:function(){return ef},__:function(){return em},fC:function(){return eu},Z0:function(){return eh},xz:function(){return ec}});var u={};r.r(u),r.d(u,{VY:function(){return eP},h4:function(){return ek},x1:function(){return eL},pT:function(){return eI},r_:function(){return eT},fC:function(){return eR}});var c={};r.r(c),r.d(c,{Heading:function(){return e$},Item:function(){return e0},Link:function(){return e1},List:function(){return eJ},Root:function(){return eX},Sub:function(){return e2}});var d=r(75965),f=r(20433),m=r.n(f),h=r(91710),x=r(70118),p=r(85835);let v=h.forwardRef((e,t)=>{let{src:r,size:n="1",children:a,className:o,style:i,...l}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)("div",{ref:t,className:m()(o,"AvatarRoot",{"size-1":"1"===n,"size-2":"2"===n,"size-3":"3"===n,"size-4":"4"===n,"has-image":!!r}),style:{backgroundImage:r?'url("'.concat(r,'")'):void 0,...i},...l,children:a})});v.displayName="AvatarRoot";let g=h.forwardRef((e,t)=>{let{children:r,className:n,...a}=e;return(0,d.jsx)("span",{ref:t,"aria-hidden":"true",className:m()(n,"AvatarText"),...a,children:r})});g.displayName="AvatarText";let j=v,b=g;var y=r(2110),w=r(63873);let C=h.forwardRef((e,t)=>(0,d.jsx)(w.h_.Content,{ref:t,variant:"soft",...e}));C.displayName="DropdownMenuContent";let N=w.h_.Root,R=w.h_.Trigger;w.h_.TriggerIcon;let k=C;w.h_.Label;let T=w.h_.Item;w.h_.Group;let P=w.h_.RadioGroup,I=w.h_.RadioItem;w.h_.CheckboxItem,w.h_.Sub,w.h_.SubTrigger,w.h_.SubContent;let L=w.h_.Separator;var S=r(45697),A=r(10571),D=r(46430),E=r(80883);let F=h.forwardRef((e,t)=>{let{state:r,variant:n="classic",...a}=e;return(0,d.jsx)(w.Kx,{ref:t,disabled:"disabled"===r,readOnly:"read-only"===r,variant:"valid"===r||"invalid"===r?"soft":n,color:"valid"===r?"green":"invalid"===r?"red":"soft"===n?"gray":void 0,...a})});F.displayName="TextArea";var B=r(72150);let z=h.forwardRef((e,t)=>(0,d.jsx)(w.aR.Title,{ref:t,size:"4",...e}));z.displayName="AlertDialogTitle";let M=h.forwardRef((e,t)=>(0,d.jsx)(w.aR.Description,{ref:t,size:"2",...e}));M.displayName="AlertDialogDescription";let _=w.aR.Root,H=w.aR.Trigger,U=w.aR.Content,V=z,O=M,G=w.aR.Action,W=w.aR.Cancel,K=h.forwardRef((e,t)=>{let{color:r="gray",lowContrast:n=!1,...a}=e;return(0,d.jsx)(w.Ct,{ref:t,color:r,"data-low-contrast":n||void 0,radius:"full",variant:"gray"===r?"surface":"soft",...a})});K.displayName="Badge";let Q=h.forwardRef((e,t)=>(0,d.jsx)(w.FR.__,{ref:t,width:"180px",...e}));Q.displayName="DataListLabel";let Z=w.FR.fC,q=w.FR.ck,Y=Q,X=w.FR.B4,$=h.forwardRef((e,t)=>(0,d.jsx)(w.Vq.Title,{ref:t,size:"4",...e}));$.displayName="DialogTitle";let J=h.forwardRef((e,t)=>(0,d.jsx)(w.Vq.Description,{ref:t,size:"2",...e}));J.displayName="DialogDescription";let ee=w.Vq.Root,et=w.Vq.Trigger,er=w.Vq.Content,en=$,ea=J,eo=w.Vq.Close,ei=h.forwardRef((e,t)=>{let{style:r,...n}=e;return(0,d.jsx)(w.Ex,{ref:t,color:"gray",size:"1",style:{maxWidth:250,...r},...n})});ei.displayName="Progress";let el=h.forwardRef((e,t)=>{let{ghost:r,highContrast:n,style:a,...o}=e;return(0,d.jsx)(w.Ph.Trigger,{ref:t,color:"gray",variant:r?"ghost":"surface",style:(0,x.mergeStyles)(a,{color:r&&!n?"var(--gray-a11)":void 0}),...o})});el.displayName="SelectTrigger";let es=h.forwardRef((e,t)=>(0,d.jsx)(w.Ph.Content,{ref:t,variant:"soft",...e}));es.displayName="SelectContent";let eu=w.Ph.Root,ec=el,ed=es,ef=w.Ph.Item,em=w.Ph.Label,eh=w.Ph.Separator,ex=w.Ph.Group;var ep=r(16965);let ev=h.forwardRef((e,t)=>{let{branded:r,className:n,...a}=e;return(0,d.jsx)(w.Q2,{ref:t,accentColor:r?"gray":"purple",className:m()(n,{branded:r}),grayColor:r?"gray":"slate",...a})});ev.displayName="DesignSystemTheme";let eg=h.forwardRef((e,t)=>(0,d.jsx)(w.u,{ref:t,delayDuration:300,...e}));eg.displayName="Tooltip",r(96893);let ej=h.forwardRef((e,t)=>{let{className:r,...n}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)("div",{ref:t,className:m()("CodeBlockRoot",r),...n})});ej.displayName="CodeBlockRoot";let eb=h.forwardRef((e,t)=>{let{className:r,children:n,...a}=e;return(0,d.jsx)("output",{ref:t,className:m()("CodeBlockOutput",r),...a,children:(0,d.jsxs)(D.Root,{children:[(0,d.jsx)(D.Viewport,{children:n}),(0,d.jsx)(D.Scrollbar,{orientation:"vertical"}),(0,d.jsx)(D.Scrollbar,{orientation:"horizontal"})]})})});eb.displayName="CodeBlockOutput";let ey=h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("div",{ref:t,className:m()("CodeBlockHeader",r),...n})});ey.displayName="CodeBlockHeader";let ew=h.forwardRef((e,t)=>{let{className:r,children:n,wrap:a,...o}=e;return(0,d.jsx)("pre",{ref:t,className:m()("CodeBlockContent",r,{"ws-pre-wrap":"pre-wrap"===a,"ws-pre":"pre"===a}),...o,children:(0,d.jsxs)(D.Root,{children:[(0,d.jsx)(D.Viewport,{children:(0,d.jsx)("code",{className:"CodeBlockCode",children:(0,d.jsx)("div",{className:"CodeBlockContentInner",children:n})})}),(0,d.jsx)(D.Scrollbar,{orientation:"vertical"}),(0,d.jsx)(D.Scrollbar,{orientation:"horizontal"})]})})});ew.displayName="CodeBlockContent";let eC=h.forwardRef((e,t)=>{let{gutter:r="numbers",children:n,className:a,...o}=e;return(0,d.jsx)("table",{ref:t,role:"presentation",className:m()("CodeBlockLineGroup",a,{"gutter-numbers":"numbers"===r,"gutter-cli":"cli"===r}),...o,children:(0,d.jsx)("tbody",{children:n})})});eC.displayName="CodeBlockLineGroup";let eN=h.forwardRef((e,t)=>{let{children:r="\n",color:n,className:a,...o}=e;return(0,d.jsxs)("tr",{ref:t,className:m()("CodeBlockLine",a,{yellow:"yellow"===n,green:"green"===n,red:"red"===n,blue:"blue"===n}),...o,children:[(0,d.jsx)("td",{className:"CodeBlockLineGutter"}),(0,d.jsx)("td",{className:"CodeBlockLineContent",children:r})]})});eN.displayName="CodeBlockLine";let eR=ej,ek=ey,eT=eb,eP=ew,eI=eC,eL=eN;var eS=r(59078);h.forwardRef((e,t)=>{let{className:r,...n}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)("dl",{ref:t,className:m()(r,"DefinitionListRoot"),...n})}).displayName="DefinitionListRoot",h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("div",{ref:t,className:m()(r,"DefinitionListItem"),...n})}).displayName="DefinitionListItem",h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("dt",{ref:t,className:m()(r,"DefinitionListTerm"),...n})}).displayName="DefinitionListTerm",h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("dd",{ref:t,className:m()(r,"DefinitionListDetails"),...n})}).displayName="DefinitionListDetails";var eA=r(30893);let eD=h.forwardRef((e,t)=>{let{children:r,className:n,style:a,...o}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)("div",{className:m()(n,"Image"),style:a,children:(0,d.jsx)(eA.Zoomable,{children:(0,d.jsx)("div",{className:"ImageInner",children:r||(0,d.jsx)("img",{ref:t,className:"ImageElement",...o})})})})});eD.displayName="Image";var eE=r(34187);let eF=h.forwardRef((e,t)=>{let{className:r,children:n,...a}=e;return(0,d.jsx)(w.xv,{ref:t,highContrast:!0,as:"label",className:m()(r,"Label"),color:"gray",size:"2",weight:"bold",...a,children:n})});eF.displayName="Label";let eB=h.forwardRef((e,t)=>{let{children:r,className:n,highContrast:a,...o}=e;return(0,d.jsxs)(w.xv,{ref:t,className:m()(n,"Marker",{"high-contrast":a}),...o,children:[(0,d.jsx)("span",{className:"MarkerCircle",children:(0,d.jsx)("span",{className:"MarkerContent",children:r})}),(0,x.childrenText)(r)&&(0,d.jsx)("span",{className:"MarkerHidden",children:". "})]})});eB.displayName="Marker";var ez=r(18145);let eM=h.forwardRef((e,t)=>{let{children:r,className:n,style:a,label:o,...i}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsxs)("div",{className:m()(n,"PermanentLink"),style:a,children:[(0,d.jsx)("div",{className:"PermanentLinkInner",children:r}),(0,d.jsx)("a",{ref:t,"aria-label":o,className:"PermanentLinkIcon",...i,children:(0,d.jsx)(ez.qDj,{height:"16",width:"16"})})]})});eM.displayName="PermanentLink";let e_=h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)(w.xv,{ref:t,className:m()(r,"Status"),size:"2",...n})});e_.displayName="Status";var eH=r(89676);let eU={"admin-portal":"https://workos.imgix.net/docs/icons/admin-portal-20220915.png","audit-logs":"https://workos.imgix.net/docs/icons/audit-logs-20220915.png","authkit-ui":"https://workos.imgix.net/images/cd618d41-9d9d-4108-a8b3-2548bef48565.png","domain-verification":"https://workos.imgix.net/images/e7d34bcd-09a5-457c-b894-c77e7164b4d2.png","directory-sync":"https://workos.imgix.net/docs/icons/directory-sync-20220915.png","magic-link":"https://workos.imgix.net/docs/icons/magic-link-20220915.png",mfa:"https://workos.imgix.net/docs/icons/mfa-20220915.png",sso:"https://workos.imgix.net/docs/icons/sso-20220915.png","user-management":"https://workos.imgix.net/images/3e4702e1-3e6b-417e-a319-ea07cff89e61.png",sessions:"https://workos.imgix.net/images/39bbd891-150e-4c29-8b4c-e819a807de53.png",impersonation:"https://workos.imgix.net/images/65b2a5cb-30fd-47ee-b2a4-c5ac13535798.png"},eV=h.forwardRef((e,t)=>{let{className:r,feature:n,size:a="2",...o}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)("div",{ref:t,className:m()(r,"FeatureIcon",{"size-1":"1"===a,"size-2":"2"===a,"size-3":"3"===a}),...o,children:(0,d.jsx)("img",{className:"FeatureIconImage",role:"presentation",src:eU[n]})})});eV.displayName="FeatureIcon";let eO=h.forwardRef((e,t)=>{let{children:r,className:n,size:a="2",...o}=(0,x.extractProps)(e,p.marginPropDefs),i=h.useId();return(0,d.jsxs)("div",{ref:t,className:m()(n,"IconPanel",{"size-1":"1"===a,"size-2":"2"===a,"size-3":"3"===a}),...o,children:[(0,d.jsxs)("svg",{className:"IconPanelBackground",fill:"none",viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{filter:"url(#".concat(i,"-shadow)"),children:(0,d.jsx)("rect",{fill:"var(--color-background)",fillOpacity:"0.01",height:"63.5",rx:"15",width:"63.5",x:"8.25",y:"8.25"})}),(0,d.jsx)("rect",{fill:"url(#".concat(i,"-gradient)"),height:"64",rx:"15",width:"64",x:"8",y:"8"}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"69",id:"".concat(i,"-shadow"),width:"67.5",x:"6.25",y:"6.75",children:[(0,d.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feMorphology",{in:"SourceAlpha",operator:"erode",radius:"1",result:"".concat(i,"-effect-1")}),(0,d.jsx)("feOffset",{dy:"2"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,d.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),(0,d.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"normal",result:"".concat(i,"-effect-1")}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"0.5"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,d.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0"}),(0,d.jsx)("feBlend",{in2:"".concat(i,"-effect-1"),mode:"normal",result:"".concat(i,"-effect-2")}),(0,d.jsx)("feBlend",{in:"SourceGraphic",in2:"".concat(i,"-effect-2"),mode:"normal",result:"shape"})]}),(0,d.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"".concat(i,"-gradient"),x1:"40",x2:"40",y1:"8",y2:"72",children:[(0,d.jsx)("stop",{stopColor:"var(--icon-panel-gradient-top)"}),(0,d.jsx)("stop",{offset:"1",stopColor:"var(--icon-panel-gradient-bottom)"})]})]})]}),(0,d.jsx)("div",{className:"IconPanelChildren",children:r})]})});eO.displayName="IconPanel";let eG=h.forwardRef((e,t)=>{let{className:r,size:n="2",...a}=(0,x.extractProps)(e,p.marginPropDefs),o=h.useId();return(0,d.jsx)("div",{ref:t,className:m()(r,"LogoIcon",{"size-1":"1"===n,"size-2":"2"===n,"size-3":"3"===n}),...a,children:(0,d.jsxs)("svg",{className:"LogoIconSvg",fill:"none",viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{d:"M8.25 32.0625C8.25 23.7273 8.25 19.5598 9.87213 16.3762C11.299 13.5758 13.5758 11.299 16.3762 9.87213C19.5598 8.25 23.7273 8.25 32.0625 8.25H47.9375C56.2727 8.25 60.4402 8.25 63.6238 9.87213C66.4242 11.299 68.701 13.5758 70.1279 16.3762C71.75 19.5598 71.75 23.7273 71.75 32.0625V47.9375C71.75 56.2727 71.75 60.4402 70.1279 63.6238C68.701 66.4242 66.4242 68.701 63.6238 70.1279C60.4402 71.75 56.2727 71.75 47.9375 71.75H32.0625C23.7273 71.75 19.5598 71.75 16.3762 70.1279C13.5758 68.701 11.299 66.4242 9.87213 63.6238C8.25 60.4402 8.25 56.2727 8.25 47.9375V32.0625Z",fill:"var(--purple-9)",filter:"url(#".concat(o,"-filter-1)")}),(0,d.jsx)("path",{d:"M8 32C8 23.5992 8 19.3988 9.6349 16.1901C11.073 13.3677 13.3677 11.073 16.1901 9.6349C19.3988 8 23.5992 8 32 8H48C56.4008 8 60.6012 8 63.8099 9.6349C66.6323 11.073 68.927 13.3677 70.3651 16.1901C72 19.3988 72 23.5992 72 32V48C72 56.4008 72 60.6012 70.3651 63.8099C68.927 66.6323 66.6323 68.927 63.8099 70.3651C60.6012 72 56.4008 72 48 72H32C23.5992 72 19.3988 72 16.1901 70.3651C13.3677 68.927 11.073 66.6323 9.6349 63.8099C8 60.6012 8 56.4008 8 48V32Z",fill:"var(--purple-9)"}),(0,d.jsxs)("g",{filter:"url(#".concat(o,"-filter-2)"),children:[(0,d.jsx)("path",{d:"M18.4 40C18.4 40.8208 18.616 41.6416 19.0336 42.3472L26.608 55.4656C27.3856 56.8048 28.5664 57.8992 30.0352 58.3888C32.9296 59.3536 35.9248 58.1152 37.3504 55.6384L39.1792 52.4704L31.9648 40L39.5824 26.7952L41.4112 23.6272C41.9584 22.6768 42.6928 21.8992 43.5568 21.28H42.7648H31.8064C29.7472 21.28 27.8464 22.3744 26.824 24.16L19.0336 37.6528C18.616 38.3584 18.4 39.1792 18.4 40Z",fill:"url(#".concat(o,"-gradient-1)")}),(0,d.jsx)("path",{d:"M61.6001 39.9999C61.6001 39.1791 61.3841 38.3583 60.9665 37.6527L53.2912 24.3615C51.8656 21.8991 48.8704 20.6607 45.976 21.6111C44.5072 22.1007 43.3264 23.1951 42.5488 24.5343L40.8208 27.5151L48.0352 39.9999L40.4176 53.2047L38.5888 56.3727C38.0416 57.3087 37.3072 58.1007 36.4432 58.7199H37.2352H48.1936C50.2528 58.7199 52.1536 57.6255 53.176 55.8399L60.9665 42.3471C61.3841 41.6415 61.6001 40.8207 61.6001 39.9999Z",fill:"url(#".concat(o,"-gradient-2)")})]}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"69",id:"".concat(o,"-filter-1"),width:"67.5",x:"6.25",y:"6.75",children:[(0,d.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feMorphology",{in:"SourceAlpha",operator:"erode",radius:"1",result:"".concat(o,"-effect-1")}),(0,d.jsx)("feOffset",{dy:"2"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"1.5"}),(0,d.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),(0,d.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"normal",result:"".concat(o,"-effect-1")}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"0.5"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,d.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,d.jsx)("feBlend",{in2:"".concat(o,"-effect-1"),mode:"normal",result:"".concat(o,"-effect-2")}),(0,d.jsx)("feBlend",{in:"SourceGraphic",in2:"".concat(o,"-effect-2"),mode:"normal",result:"shape"})]}),(0,d.jsxs)("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"61.94",id:"".concat(o,"-filter-2"),width:"67.2",x:"6.4",y:"21.28",children:[(0,d.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"1.5"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"0.5"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0117647 0 0 0 0 0.00784314 0 0 0 0 0.0509804 0 0 0 0.04 0"}),(0,d.jsx)("feBlend",{in2:"BackgroundImageFix",mode:"normal",result:"".concat(o,"-effect-1")}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"2"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"0.75"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0117647 0 0 0 0 0.00784314 0 0 0 0 0.0509804 0 0 0 0.06 0"}),(0,d.jsx)("feBlend",{in2:"".concat(o,"-effect-1"),mode:"normal",result:"".concat(o,"-effect-2")}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"3"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"1.25"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0117647 0 0 0 0 0.00784314 0 0 0 0 0.0509804 0 0 0 0.06 0"}),(0,d.jsx)("feBlend",{in2:"".concat(o,"-effect-2"),mode:"normal",result:"".concat(o,"-effect-3")}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"5.5"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"2.5"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0117647 0 0 0 0 0.00784314 0 0 0 0 0.0509804 0 0 0 0.08 0"}),(0,d.jsx)("feBlend",{in2:"".concat(o,"-effect-3"),mode:"normal",result:"".concat(o,"-effect-4")}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,d.jsx)("feOffset",{dy:"12.5"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"6"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0117647 0 0 0 0 0.00784314 0 0 0 0 0.0509804 0 0 0 0.1 0"}),(0,d.jsx)("feBlend",{in2:"".concat(o,"-effect-4"),mode:"normal",result:"".concat(o,"-effect-5")}),(0,d.jsx)("feBlend",{in:"SourceGraphic",in2:"".concat(o,"-effect-5"),mode:"normal",result:"shape"})]}),(0,d.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"".concat(o,"-gradient-1"),x1:"31",x2:"31",y1:"21.3",y2:"58.7",children:[(0,d.jsx)("stop",{stopColor:"white"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#BDBFFF"})]}),(0,d.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"".concat(o,"-gradient-2"),x1:"49",x2:"49",y1:"21.3",y2:"58.7",children:[(0,d.jsx)("stop",{stopColor:"white"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#BDBFFF"})]})]})]})})});eG.displayName="LogoIcon";let eW=h.forwardRef((e,t)=>{let{className:r,...n}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)(w.xv,{ref:t,as:"div",className:m()(r,"QuickNavRoot"),role:"navigation",size:"2",...n})});eW.displayName="QuickNavRoot";let eK=h.forwardRef((e,t)=>{let{children:r="On this page",...n}=e;return(0,d.jsx)(w.X6,{ref:t,as:"h2",mb:"2",size:"4",...n,children:r})});eK.displayName="QuickNavHeading";let eQ=h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("ul",{ref:t,className:m()(r,"rt-reset QuickNavList"),...n})});eQ.displayName="QuickNavList";let eZ=h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("li",{ref:t,className:m()(r,"QuickNavItem"),...n})});eZ.displayName="QuickNavItem";let eq=h.forwardRef((e,t)=>(0,d.jsx)(w.rU,{ref:t,color:"gray",underline:"hover",...e}));eq.displayName="QuickNavLink";let eY=h.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,d.jsx)("div",{ref:t,className:m()(r,"QuickNavSub"),...n})});eY.displayName="QuickNavSub";let eX=eW,e$=eK,eJ=eQ,e0=eZ,e1=eq,e2=eY;var e7=r(19767);let e5=h.forwardRef((e,t)=>{let{className:r,...n}=(0,x.extractProps)(e,p.marginPropDefs);return(0,d.jsx)("div",{ref:t,className:m()(r,"ScreenshotRoot"),...n})});e5.displayName="ScreenshotRoot";let e3=h.forwardRef((e,t)=>{let{as:r="img",children:n,className:a,...o}=e;return(0,d.jsx)(e7.g7,{ref:t,className:m()(a,"ScreenshotImage"),...o,children:(0,d.jsx)(r,{children:n})})});e3.displayName="ScreenshotImage";var e6=r(39230);w.rU,w.Em,e6.Header,e6.Body,e6.Row,e6.Cell,w.EK,w.mQ.Root,w.mQ.List,r(84593);let e8=["access-people-hr","adp","auth0","azure","aws","bamboohr","breathe-hr","bubble","cas","cezanne-hr","classlink","cloudflare","cyberark","datadog","duo","firebase","fourth","github","godaddy","google","google-cloud","hibob","jumpcloud","keycloak","lastpass","login-gov","microsoft","miniorange","net-iq","next-auth","okta","onelogin","oracle","personio","ping-identity","react-native-expo","rippling","salesforce","shibboleth","simple-saml-php","splunk","supabase","vmware","workday"],e9=h.forwardRef((e,t)=>{let{provider:r,size:n="4",className:a,...o}=(0,x.extractProps)(e,p.marginPropDefs);if(!e8.includes(r))throw TypeError('ProviderIcon: "'.concat(r,'" is not a valid provider.'));return(0,d.jsx)("div",{...o,ref:t,className:m()("ProviderIcon","size-".concat(n),a),"data-provider":r})});e9.displayName="ProviderIcon"},84593:function(e,t,r){r.r(t),r.d(t,{Label:function(){return j},Link:function(){return v},LinkIcon:function(){return g},Root:function(){return h},Sub:function(){return x},SubContent:function(){return p}});var n=r(75965),a=r(54503),o=r(37321),i=r(29737),l=r(20433),s=r.n(l),u=r(91710),c=r(89593),d=r(70118),f=r(85835);let m=u.forwardRef((e,t)=>{let{className:r,children:a,state:l="normal",...d}=e,f=u.useRef(null),m=(0,o.e)(f,t);return(u.useEffect(()=>{if(f.current&&"active"===l){let e=document.querySelector("[data-radix-scroll-area-viewport]");e&&(0,c.Z)(f.current,{block:"nearest",scrollMode:"if-needed",boundary:t=>!!e.contains(t),behavior:e=>{e.forEach(e=>{let{el:t,top:r}=e,n=t.scrollTop<r?1:-1;t.scrollTop=r+80*n})}})}},[l]),"disabled"===l)?(0,n.jsxs)("span",{ref:m,className:s()(r,"PageNavLink disabled"),...d,children:[(0,n.jsx)("span",{className:"PageNavLinkInnerVisible",children:(0,n.jsx)("span",{className:"PageNavText",children:a})}),(0,n.jsx)("span",{className:"PageNavLinkInnerHidden",children:(0,n.jsx)("span",{className:"PageNavText",children:a})})]}):(0,n.jsx)(i.rU,{asChild:!0,children:(0,n.jsxs)("a",{ref:m,className:s()(r,"PageNavLink reset-a",{active:"active"===l,normal:"normal"===l}),...d,children:[(0,n.jsx)("span",{className:"PageNavLinkInnerVisible",children:(0,n.jsx)("span",{className:"PageNavText",children:a})}),(0,n.jsx)("span",{className:"PageNavLinkInnerHidden",children:(0,n.jsx)("span",{className:"PageNavText",children:a})})]})})});m.displayName="PageNavLink";let h=e=>{let{children:t,color:r="gray",className:a,...o}=(0,d.extractProps)(e,f.marginPropDefs);return(0,n.jsx)(i.fC,{orientation:"vertical",className:s()(a,"PageNavRoot",{gray:"gray"===r,purple:"purple"===r}),...o,children:(0,n.jsx)(i.aV,{asChild:!0,children:(0,n.jsx)("div",{children:t})})})},x=e=>(0,n.jsx)(a.fC,{className:"PageNavSub",...e}),p=e=>(0,n.jsx)(a.VY,{className:"PageNavSubContent",...e}),v=m,g=e=>(0,n.jsx)("div",{className:"PageNavLinkIcon",...e}),j=e=>(0,n.jsx)("span",{className:"PageNavLabel",children:(0,n.jsx)("span",{className:"PageNavText",...e})})},10571:function(e,t,r){r.r(t),r.d(t,{Button:function(){return m},Root:function(){return f}});var n=r(75965),a=r(620),o=r(20433),i=r.n(o),l=r(91710),s=r(70118),u=r(85835);let c=l.forwardRef((e,t)=>{let r=(0,s.extractProps)(e,u.marginPropDefs);return(0,n.jsx)(a.fC,{ref:t,...r})});c.displayName="RadioRoot";let d=l.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(a.ck,{ref:t,className:i()("RadioButton",r,"reset-button"),...o,children:(0,n.jsx)(a.z$,{className:"RadioIndicator"})})});d.displayName="RadioButton";let f=c,m=d},46430:function(e,t,r){r.r(t),r.d(t,{Root:function(){return m},Scrollbar:function(){return x},Viewport:function(){return h}});var n=r(75965),a=r(23019),o=r(20433),i=r.n(o),l=r(91710),s=r(70118),u=r(85835);let c=l.forwardRef((e,t)=>{let{className:r,...o}=(0,s.extractProps)(e,u.marginPropDefs);return(0,n.jsx)(a.fC,{ref:t,className:i()(r,"ScrollAreaRoot"),scrollHideDelay:0,...o})});c.displayName="ScrollAreaRoot";let d=l.forwardRef((e,t)=>{let{className:r,...o}=(0,s.extractProps)(e,u.marginPropDefs);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.l_,{ref:t,className:i()(r,"ScrollAreaViewport"),...o}),(0,n.jsx)("div",{className:"ScrollAreaViewportFocusRing"})]})});d.displayName="ScrollAreaViewport";let f=l.forwardRef((e,t)=>{let{className:r,...o}=(0,s.extractProps)(e,u.marginPropDefs);return(0,n.jsx)(a.LW,{ref:t,className:i()(r,"ScrollAreaTrack"),...o,children:(0,n.jsx)(a.bU,{className:"ScrollAreaThumb"})})});f.displayName="ScrollAreaScrollbar";let m=c,h=d,x=f},39230:function(e,t,r){r.r(t),r.d(t,{Body:function(){return K},Cell:function(){return q},ColumnHeader:function(){return Q},Content:function(){return O},Detail:function(){return V},Footer:function(){return $},Header:function(){return G},Root:function(){return U},Row:function(){return W},RowAction:function(){return X},RowHeader:function(){return Z},RowLink:function(){return Y}});var n=r(75965),a=r(37321),o=r(18145),i=r(1781),l=r(19767),s=r(32574),u=r(56998),c=r(63873),d=r(20433),f=r.n(d),m=r(91710),h=r(70118),x=r(75701),p=r(85835),v=r(46430);let g={layout:{type:"enum",className:"rt-r-tl",values:["auto","fixed"],default:void 0,responsive:!0}},j={align:{type:"enum",className:"rt-r-va",values:["start","center","end","baseline"],default:void 0,responsive:!0,parseValue:e=>({baseline:"baseline",start:"top",center:"middle",end:"bottom"})[e]}},b={justify:{type:"enum",className:"rt-r-ta",values:["start","center","end"],default:void 0,responsive:!0,parseValue:e=>({start:"left",center:"center",end:"right"})[e]},...p.widthPropDefs,...p.paddingPropDefs},y=m.forwardRef((e,t)=>{let{className:r,...a}=(0,h.extractProps)(e,p.marginPropDefs);return(0,n.jsx)("div",{ref:t,className:f()(r,"TableRoot"),...a})});y.displayName="TableRoot";let[w,C]=(0,h.createContext)("TableContent"),N="Press Up Arrow or Down Arrow to navigate the rows.",R=m.forwardRef((e,t)=>{let{children:r,defaultValue:o,onValueChange:l,value:d,...j}=e,{className:b,...y}=(0,h.extractProps)(j,p.marginPropDefs),{className:C}=(0,h.extractProps)(j,g),[R,k]=(0,s.T)({prop:d,onChange:l,defaultProp:o}),[T,P]=m.useState(!1),I=m.useRef(null),L=m.useRef(null),S=m.useRef(null);(0,h.useIsomorphicLayoutEffect)(()=>{let e=I.current,t=L.current,r=null==t?void 0:t.querySelector("th");if(e&&t&&r){let n=new ResizeObserver(()=>{t.scrollWidth>t.clientWidth?e.setAttribute("data-has-horizontal-scroll","true"):e.removeAttribute("data-has-horizontal-scroll")});n.observe(e);let a=new ResizeObserver(t=>{var r,n;let[a]=t,o=null==a?void 0:null===(n=a.borderBoxSize)||void 0===n?void 0:null===(r=n[0])||void 0===r?void 0:r.inlineSize;void 0!==o&&e.style.setProperty("--table-scrollbar-offset","".concat(o,"px"))});return a.observe(r,{box:"border-box"}),()=>{n.disconnect(),a.disconnect()}}},[]);let A=m.useId(),[D,E]=m.useState(N);return(0,n.jsx)(w,{hasFocusWithin:T,value:R,onValueChange:e=>k(e),children:(0,n.jsx)(c.xv,{ref:I,as:"div",className:f()(b,"TableContent"),size:"2",...y,children:(0,n.jsx)(x.Root,{asChild:!0,dir:"ltr",loop:!1,orientation:"vertical",children:(0,n.jsxs)(v.Root,{children:[(0,n.jsx)(v.Viewport,{ref:L,children:(0,n.jsx)("table",{ref:(0,a.F)(S,t),"aria-describedby":A,className:f()("TableContentTable",C),tabIndex:-1,onBlur:e=>{var t;(null===(t=S.current)||void 0===t?void 0:t.contains(e.relatedTarget))||P(!1)},onFocus:e=>{if(P(!0),e.target instanceof HTMLTableElement&&E(N),e.target instanceof HTMLTableRowElement){var t,r,n;let a=null===(t=e.target)||void 0===t?void 0:t.closest("table"),o=null!==(r=null==a?void 0:a.querySelectorAll("tr"))&&void 0!==r?r:[],i=null!==(n=o.length)&&void 0!==n?n:0,l=Array.from(o).indexOf(e.target)+1,s=Array.from(e.target.querySelectorAll("th, td")).map(e=>e.textContent).join(", "),u="";e.target.getAttribute("data-clickable")&&(u="clickable,"),e.target.getAttribute("data-selected")&&(u="selected,"),E("\n Row ".concat(l," of ").concat(i,", ").concat(u," ").concat(s,". ").concat(N,"\n "))}},children:r})}),(0,n.jsx)("div",{className:"TableContentScrollbarContainer",children:(0,n.jsx)(v.Scrollbar,{orientation:"horizontal"})}),T&&(0,n.jsx)(i.f,{children:(0,n.jsx)(u.f,{"aria-live":"assertive",id:A,tabIndex:-1,children:D})})]})})})})});R.displayName="TableContent";let k=m.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("thead",{ref:t,className:f()(r,"TableHeader"),...a})});k.displayName="TableHeader";let T=m.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("tbody",{ref:t,className:f()(r,"TableBody"),...a})});T.displayName="TableBody";let[P,I]=(0,h.createContext)("TableRow"),L=m.forwardRef((e,t)=>{let{children:r,onAuxClick:o,onBlur:i,onClick:l,onFocus:s,onKeyDown:u,onMouseDown:c,value:d,...p}=e,{className:v,...g}=(0,h.extractProps)(p,j),b=m.useRef(null),y=(0,a.e)(b,t),[w,N]=m.useState(!1),R=C("TableContent"),[k,T]=m.useState(null),[I,L]=m.useState(null),A=void 0!==d,F=A&&d===R.value,B=!!(l||A||k||I),z=m.useRef([]),[M,_]=m.useState(0),H=!!(R.hasFocusWithin||B||M),U=m.useCallback(()=>{if(b.current){let e=(0,h.getTabbableNodes)(b.current);z.current=e.map(e=>({element:e,originalTabIndex:e.getAttribute("tabindex")})),_(e.length),e.forEach(e=>e.setAttribute("tabindex","-1"))}},[]),V=m.useCallback(()=>{z.current.forEach(e=>{let{element:t,originalTabIndex:r}=e;null===r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r)})},[]);return(m.useEffect(()=>(U(),V),[U,V]),r)?(0,n.jsx)(P,{actionNode:I,linkNode:k,setActionNode:L,setLinkNode:T,children:(0,n.jsx)(x.Item,{asChild:!0,active:F,focusable:H,children:(0,n.jsx)("tr",{ref:y,className:f()(v,"TableRow"),"data-clickable":B||void 0,"data-pressed":B&&w||void 0,"data-selected":F||void 0,onAuxClick:e=>{D(k,e),null==o||o(e)},onBlur:e=>{null==i||i(e),e.currentTarget.contains(document.activeElement)||U()},onClick:e=>{I&&S(e)&&I.click(),D(k,e),null==l||l(e)},onContextMenu:()=>{N(!1)},onFocus:e=>{V(),null==s||s(e)},onKeyDown:e=>{(" "===e.key||"Enter"===e.key)&&S(e)&&(e.preventDefault(),null==I||I.click(),A&&R.onValueChange(d),k&&(N(!0),addEventListener("keyup",()=>N(!1),{once:!0}))),D(k,e),null==u||u(e)},onMouseDown:e=>{2!==e.button&&S(e)&&(A&&!e.ctrlKey&&R.onValueChange(d),k&&(N(!0),addEventListener("mouseup",()=>N(!1),{once:!0}))),null==c||c(e)},...g,children:r})})}):(0,n.jsx)("tr",{ref:t,"aria-hidden":!0,className:f()(v,"TableRow"),children:(0,n.jsx)(E,{"aria-hidden":!0,colSpan:1e3})})}),S=e=>(e.target instanceof HTMLElement||e.target instanceof SVGElement)&&e.target.closest(A)===e.currentTarget,A="\n [contenteditable],\n [tabindex],\n a,\n audio,\n button,\n details,\n input,\n label,\n object,\n select,\n textarea,\n video\n",D=(e,t)=>{let r=t.nativeEvent instanceof MouseEvent;if("key"in t&&(r=" "===t.key||"Enter"===t.key),!e||!S(t)||!r)return;let n=e.target;("button"in t&&1===t.button||t.ctrlKey||t.shiftKey||t.metaKey)&&(e.target="_blank"),e.click(),n?e.target=n:e.removeAttribute("target")};L.displayName="TableRow";let E=m.forwardRef((e,t)=>{let{className:r,...a}=(0,h.extractProps)(e,b);return(0,n.jsx)("td",{ref:t,className:f()(r,"TableCell"),...a})});E.displayName="TableCell";let F=m.forwardRef((e,t)=>{let{className:r,...a}=(0,h.extractProps)(e,b);return(0,n.jsx)("th",{ref:t,className:f()(r,"TableColumnHeader","TableCell"),scope:"col",...a})});F.displayName="TableColumnHeader";let B=m.forwardRef((e,t)=>{let{className:r,...a}=(0,h.extractProps)(e,b);return(0,n.jsx)("th",{ref:t,className:f()(r,"TableRowHeader","TableCell"),scope:"row",...a})});B.displayName="TableRowHeader";let z=m.forwardRef((e,t)=>{let r=I("TableRow");return(0,n.jsx)(l.g7,{ref:(0,a.F)(t,r.setActionNode),tabIndex:-1,...e})});z.displayName="TableRowAction";let M=m.forwardRef((e,t)=>{let{children:r,className:a,...i}=e,l=m.useRef(null),s=I("TableRow"),c=m.Children.only(r);return m.useEffect(()=>{if(l.current){let e=l.current.querySelector("a");s.setLinkNode(e),null==e||e.setAttribute("tabindex","-1")}}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.XCv,{ref:t,"aria-hidden":!0,className:f()(a,"TableRowLink"),height:"16",width:"16",...i}),(0,n.jsx)(u.f,{ref:l,children:c})]})});M.displayName="TableRowLink";let _=m.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:f()(r,"TableFooter"),...a})});_.displayName="TableFooter";let H=m.forwardRef((e,t)=>{let{children:r,className:a,...o}=e;return(0,n.jsx)("div",{ref:t,className:f()(a,"TableDetail"),...o,children:(0,n.jsx)("div",{className:"TableDetailInner",children:(0,n.jsxs)(v.Root,{children:[(0,n.jsx)(v.Viewport,{className:"TableDetailViewport",tabIndex:0,children:(0,n.jsx)("div",{className:"TableDetailViewportInner",children:r})}),(0,n.jsx)(v.Scrollbar,{orientation:"horizontal"}),(0,n.jsx)(v.Scrollbar,{orientation:"vertical"})]})})})});H.displayName="TableDetail";let U=y,V=H,O=R,G=k,W=L,K=T,Q=F,Z=B,q=E,Y=M,X=z,$=_},16965:function(e,t,r){r.r(t),r.d(t,{Content:function(){return x},List:function(){return m},Root:function(){return f},Trigger:function(){return h}});var n=r(75965),a=r(37321),o=r(32574),i=r(63873),l=r(91710);let s=l.createContext(null),u=()=>{let e=l.useContext(s);if(!e)throw TypeError("`useTabsContext` must be called within `TabsContext.Provider`");return e},c=l.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:l,...u}=e,[c="",d]=(0,o.T)({prop:r,defaultProp:a,onChange:l});return(0,n.jsx)(s.Provider,{value:{value:c,onValueChange:d},children:(0,n.jsx)(i.mQ.Root,{ref:t,...u,value:c,onValueChange:d})})});c.displayName="TabsRoot";let d=l.forwardRef((e,t)=>{let{value:r,...o}=e,s=u(),c=s.value===r,d=l.useRef(null),{onValueChange:f}=s;return l.useEffect(()=>{let e=d.current,t=()=>f(r);return null==e||e.addEventListener("beforematch",t),()=>{null==e||e.removeEventListener("beforematch",t)}},[r,f]),l.useEffect(()=>{let e=d.current;e&&(c?e.removeAttribute("hidden"):e.setAttribute("hidden","until-found"))},[c]),(0,n.jsx)(i.mQ.Content,{ref:(0,a.F)(d,t),forceMount:!0,hidden:!c,value:r,...o})});d.displayName="TabsContent";let f=c,m=i.mQ.List,h=i.mQ.Trigger,x=d},72150:function(e,t,r){r.d(t,{f:function(){return i},g:function(){return l}});var n=r(75965),a=r(63873);let o=r(91710).forwardRef((e,t)=>{let{state:r,variant:o="classic",...i}=e;return(0,n.jsx)(a.nv.Root,{ref:t,disabled:"disabled"===r,readOnly:"read-only"===r,variant:"valid"===r||"invalid"===r?"soft":o,color:"valid"===r?"green":"invalid"===r?"red":"soft"===o?"gray":void 0,...i})});o.displayName="TextFieldRoot";let i=o,l=a.nv.Slot},30893:function(e,t,r){r.r(t),r.d(t,{Zoomable:function(){return d}});var n=r(75965),a=r(88424),o=r(63873),i=r(20433),l=r.n(i),s=r(91710),u=r(70118),c=r(85835);let d=e=>{let{children:t,className:r,style:i}=(0,u.extractProps)(e,c.marginPropDefs),[d,f]=s.useState(!0),[m,h]=s.useState("closed"),[x,p]=s.useState({width:0,height:0,x:0,y:0,opacity:0,scale:1}),v=s.useRef(null),g=function(e){let[t,r]=s.useState({width:0,height:0}),n=s.useRef(void 0);return s.useEffect(()=>{function e(){var e;null===(e=n.current)||void 0===e||e.call(n),r({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),t}(),[j,b]=s.useState({width:1500,height:1500}),y=s.useCallback((e,t)=>{p(e),setTimeout(()=>p(t),60)},[]),w=s.useCallback(e=>{var t,r,n,a;let o=Math.min(null!==(t=null==j?void 0:j.width)&&void 0!==t?t:1.2*e.width,g.width-40),i=Math.min(null!==(r=null==j?void 0:j.height)&&void 0!==r?r:1.2*e.height,g.height-40);return{x:g.width/2-(null!==(n=null==e?void 0:e.width)&&void 0!==n?n:0)/2,y:g.height/2-(null!==(a=null==e?void 0:e.height)&&void 0!==a?a:0)/2,scale:Math.min(o/e.width,i/e.height)}},[j,20,g]),C=s.useCallback(()=>{var e;let t=null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;let r=window.scrollY;if("closed"===m){let{x:e,y:n,scale:a}=w(t);if(a<1)return;h("open"),y({x:t.x,y:t.y+r,width:t.width,height:t.height,opacity:0,scale:1},{x:e,y:n+r,width:t.width,height:t.height,opacity:.8,scale:a})}else"open"===m&&(h("closing"),y({...x},{x:t.x,y:t.y+r,width:t.width,height:t.height,opacity:0,scale:1}))},[y,w,m,x]),N="open"===m?C:void 0;return s.useEffect(()=>("open"===m?window.addEventListener("scroll",C):window.removeEventListener("scroll",C),()=>{window.removeEventListener("scroll",C)}),[C,m]),s.useEffect(()=>{if("open"===m){var e;let t=null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect();if(!t)return;let r=window.scrollY,{x:n,y:a,scale:o}=w(t);p({x:n,y:a+r,width:t.width,height:t.height,opacity:.8,scale:o})}},[w,m]),s.useEffect(()=>{let e=window.matchMedia("(min-width: 768px)"),t=e=>{let{matches:t}=e;f(!t),t&&h("closed")};return t(e),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),d?(0,n.jsx)("div",{className:r,style:i,children:t}):(0,n.jsxs)(a.fC,{modal:!1,open:"closed"!==m,children:[(0,n.jsx)(a.xz,{asChild:!0,style:i,className:l()(r,"ZoomableTrigger",("open"===m||"closing"===m)&&"ZoomableTriggerHidden"),onClick:C,children:s.cloneElement(t,{...t.props,ref:v,onLoad:e=>{var r,n;let a;(a=e.currentTarget instanceof HTMLImageElement?e.currentTarget:e.currentTarget.querySelector('img:not([aria-hidden="true"])'))&&a.naturalWidth>1&&a.naturalHeight>1&&b({width:Math.min(a.naturalWidth,1500),height:Math.min(a.naturalHeight,1500)}),null===(r=(n=t.props).onLoad)||void 0===r||r.call(n,e)}})}),(0,n.jsx)(a.h_,{children:(0,n.jsxs)(o.Q2,{children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"ZoomableOverlay","data-state":m,style:{opacity:x.opacity},onClick:C,onWheel:N}),(0,n.jsx)(a.VY,{className:"ZoomableContent","data-state":m,style:{width:x.width,height:x.height,transform:"translate3d(".concat(x.x,"px, ").concat(x.y,"px, 0) scale(").concat(x.scale,")"),opacity:"fading-out"===m?0:1},onClick:C,onEscapeKeyDown:N,onWheel:N,onTransitionEnd:()=>{"closing"===m?h("fading-out"):"fading-out"===m&&h("closed")},children:s.cloneElement(t,t.props)})]})})]})}},69145:function(e,t,r){r.d(t,{v:function(){return a}});var n=r(91710);let a=e=>{if(o(e)){var t;return a(null===(t=e.props)||void 0===t?void 0:t.children)}return Array.isArray(e)?e.map(a).flat().filter(Boolean).join(""):"string"==typeof e?e:null},o=e=>n.isValidElement(e)&&!!e.props.children},47599:function(e,t,r){r.r(t),r.d(t,{createContext:function(){return o}});var n=r(75965),a=r(91710);function o(e){let t=a.createContext(null);function r(e){let{children:r,...o}=e,i=a.useMemo(()=>o,Object.values(o));return(0,n.jsx)(t.Provider,{value:i,children:r})}return r.displayName=e+"Provider",[r,function(r){let n=a.useContext(t);if(null===n)throw Error("`".concat(r,"` must be used within `").concat(e,"`"));return n}]}},70406:function(e,t,r){r.d(t,{d:function(){return n}});function n(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;r.nextNode();)r.currentNode instanceof HTMLElement&&t.push(r.currentNode);return t}},70118:function(e,t,r){r.d(t,{childrenText:function(){return n.v},createContext:function(){return a.createContext},getTabbableNodes:function(){return o.d},useIsomorphicLayoutEffect:function(){return i.L}});var n=r(69145),a=r(47599),o=r(70406);r(75701);var i=r(27994),l=r(83869);r.o(l,"extractProps")&&r.d(t,{extractProps:function(){return l.extractProps}}),r.o(l,"mergeStyles")&&r.d(t,{mergeStyles:function(){return l.mergeStyles}})},75701:function(e,t,r){r.r(t),r.d(t,{Item:function(){return A},Root:function(){return S},RovingFocusGroup:function(){return N},RovingFocusGroupItem:function(){return T},createRovingFocusGroupScope:function(){return y}});var n=r(75965),a=r(62283),o=r(20469),i=r(37321),l=r(5382),s=r(25815),u=r(65276),c=r(24744),d=r(44266),f=r(32574),m=r(91710);let h="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[v,g,j]=(0,o.B)(p),[b,y]=(0,l.b)(p,[j]),[w,C]=b(p),N=m.forwardRef((e,t)=>(0,n.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(R,{...e,ref:t})})}));N.displayName=p;let R=m.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:l=!1,dir:u,currentTabStopId:p,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:j,onEntryFocus:b,...y}=e,C=m.useRef(null),N=(0,i.e)(t,C),R=(0,s.gm)(u),[k=null,T]=(0,f.T)({prop:p,defaultProp:v,onChange:j}),[P,L]=m.useState(!1),S=(0,d.W)(b),A=g(r),D=m.useRef(!1),[E,F]=m.useState(0);return m.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(h,S),()=>e.removeEventListener(h,S)},[S]),(0,n.jsx)(w,{currentTabStopId:k,dir:R,loop:l,orientation:o,scope:r,onItemShiftTab:m.useCallback(()=>L(!0),[]),onFocusableItemAdd:m.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:m.useCallback(()=>F(e=>e-1),[]),onItemFocus:m.useCallback(e=>T(e),[T]),children:(0,n.jsx)(c.WV.div,{"data-orientation":o,tabIndex:P||0===E?-1:0,...y,ref:N,style:{outline:"none",...e.style},onBlur:(0,a.M)(e.onBlur,()=>{L(!1)}),onFocus:(0,a.M)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!P){let t=new CustomEvent(h,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=A().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current))}}D.current=!1}),onMouseDown:(0,a.M)(e.onMouseDown,()=>{D.current=!0})})})});R.displayName="RovingFocusGroupImpl";let k="RovingFocusGroupItem",T=m.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:l,...s}=e,d=(0,u.M)(),f=l||d,h=C(k,r),x=h.currentTabStopId===f,p=g(r);return m.useEffect(()=>{if(o)return h.onFocusableItemAdd(),()=>h.onFocusableItemRemove()},[o,h]),(0,n.jsx)(v.ItemSlot,{active:i,focusable:o,id:f,scope:r,children:(0,n.jsx)(c.WV.span,{"data-orientation":h.orientation,tabIndex:o&&x?0:-1,...s,ref:t,onFocus:(0,a.M)(e.onFocus,()=>h.onItemFocus(f)),onKeyDown:(0,a.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return P[a]}(e,h.orientation,h.dir);if(void 0!==t){e.preventDefault();let r=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=h.loop?L(r,n+1):r.slice(n+1)}setTimeout(()=>I(r))}}),onMouseDown:(0,a.M)(e.onMouseDown,()=>{o&&h.onItemFocus(f)})})})});T.displayName=k;let P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let t=document.activeElement;for(let r of e)if(!r||r===t||(null==r||r.focus(),document.activeElement!==t))return}let L=(e,t)=>e.map((r,n)=>e[(t+n)%e.length]),S=N,A=T},27994:function(e,t,r){r.d(t,{L:function(){return n}});let n=r(91710).useLayoutEffect},60031:function(e,t,r){r.d(t,{aR:function(){return n.aR},qE:function(){return n.qE},Ct:function(){return n.Ct},xu:function(){return n.xu},zx:function(){return n.zx},UW:function(){return n.UW},Zb:function(){return n.Zb},XZ:function(){return n.XZ},kW:function(){return n.kW},Af:function(){return n.Af},EK:function(){return n.EK},dn:function(){return n.dn},SG:function(){return n.SG},W2:function(){return n.W2},qi:function(){return s},Ih:function(){return c},FR:function(){return n.FR},Vq:function(){return n.Vq},h_:function(){return n.h_},ig:function(){return n.ig},kC:function(){return n.kC},rj:function(){return n.rj},X6:function(){return n.X6},hU:function(){return n.hU},gW:function(){return n.gW},Ee:function(){return n.Ee},Mk:function(){return n.Mk},eB:function(){return n.eB},__:function(){return n.__},rU:function(){return n.rU},K7:function(){return n.K7},Jx:function(){return n.Jx},J2:function(){return n.J2},Ex:function(){return n.Ex},LC:function(){return n.LC},Y8:function(){return n.Y8},QC:function(){return n.QC},xr:function(){return n.xr},$0:function(){return n.$0},sY:function(){return n.sY},Ph:function(){return n.Ph},Z0:function(){return n.Z0},Od:function(){return n.Od},$j:function(){return n.$j},qb:function(){return n.qb},cK:function(){return n.cK},rs:function(){return n.rs},KT:function(){return n.KT},iA:function(){return n.iA},mQ:function(){return n.mQ},xv:function(){return n.xv},Kx:function(){return n.Kx},nv:function(){return n.nv},Q2:function(){return n.Q2},Tl:function(){return d.ThemeToggle},u:function(){return n.u},vN:function(){return a.childrenText},kr:function(){return a.createContext},LI:function(){return a.useIsomorphicLayoutEffect}});var n=r(45497),a=r(70118),o=r(75965),i=r(18145),l=r(91710);let s=e=>{let{onClick:t,...r}=e,[a,s]=l.useState();return(0,o.jsx)(n.u,{content:a?"Copied":"Copy",children:(0,o.jsx)(n.hU,{onClick:e=>{null==t||t(e),e.defaultPrevented||(a&&clearTimeout(a),s(setTimeout(()=>s(void 0),3e3)))},...r,children:a?(0,o.jsx)(i.nQG,{height:"16",width:"16"}):(0,o.jsx)(i.TIy,{height:"16",width:"16"})})})};var u=r(37321);let c=l.forwardRef((e,t)=>{let{children:r,onClick:a,...i}=e,s=l.useRef(null),[c,d]=l.useReducer((e,t)=>(!1===t.open&&(t.timeout=setTimeout(()=>{d({text:"Click to copy",timeout:null})},1e3)),e.timeout&&(clearTimeout(e.timeout),e.timeout=null),{...e,...t}),{open:!1,text:"Click to copy",timeout:null});return(0,o.jsx)(n.u,{content:c.text,open:c.open,onOpenChange:e=>d({open:e}),onPointerDownOutside:e=>{var t;let r=e.target;(null===(t=s.current)||void 0===t?void 0:t.contains(r))&&e.preventDefault()},children:(0,o.jsx)(n.Af,{...i,ref:(0,u.F)(s,t),as:"button",onClick:async e=>{var t;null==a||a(e);let r=e.defaultPrevented;e.preventDefault();let n=null===(t=s.current)||void 0===t?void 0:t.textContent;n&&(d({open:!0,text:"Copied"}),r||await navigator.clipboard.writeText(n))},children:r})})});c.displayName="CopyChip";var d=r(22629)},22629:function(e,t,r){r.r(t),r.d(t,{ThemeToggle:function(){return l}});var n=r(75965),a=r(18145),o=r(91710),i=r(45497);let l=e=>{let{theme:t="system",onThemeChange:r,onClick:l,...s}=e,[u,c]=o.useState("system");return o.useEffect(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{c(e.matches?"dark":"light")};return e.addListener(t),t(e),()=>e.removeListener(t)},[]),(0,n.jsx)(i.u,{collisionPadding:4,content:"Toggle theme",children:(0,n.jsxs)(i.hU,{onClick:e=>{if(null==l||l(e),e.defaultPrevented)return;let n="dark"===("system"===t?u:t)?"light":"dark",a=n===u;null==r||r(a?"system":n)},...s,children:[(0,n.jsx)(a.kLh,{className:"ThemeToggleMoonIcon",height:"16",width:"16"}),(0,n.jsx)(a.NWY,{className:"ThemeToggleSunIcon",height:"16",width:"16"})]})})}}}]);