diff --git a/storybook/.gitkeep b/storybook/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/storybook/assets/Autocomplete.stories-CCFkWnCt.js b/storybook/assets/Autocomplete.stories-CCFkWnCt.js new file mode 100644 index 0000000..a01e07c --- /dev/null +++ b/storybook/assets/Autocomplete.stories-CCFkWnCt.js @@ -0,0 +1,3 @@ +import{U as Je,V as Nt,o as At,p as kt,s as F,t as Ye,u as Rt,_ as Re,j as S,c as ye,q as wt,X as Et,y as pt,E as Bt,W as Ht,F as Wt,h as _t,k as Gt,z as me,l as Ae,B as xt,m as zt}from"./Wrapper-DXvvO_B0.js";import{r as s}from"./index-CTjT7uj6.js";import{c as Vt,a as It,d as jt}from"./array-D74jl773.js";import{_ as I}from"./isNativeReflectConstruct-CJAgTEKr.js";import{i as ut}from"./FormHelperText-h4EvFgt8.js";import{i as ne}from"./InputBase-DuDaiXcF.js";import{o as St,f as he,A as Ut}from"./Select-DSn46qfv.js";import{c as Kt}from"./createSvgIcon-DLhoJ5Fi.js";import{I as Mt,P as Dt,C as qt}from"./Chip-C6MsZLfs.js";import{u as Jt}from"./useId-BjRAp5Eo.js";import{u as ct}from"./useControlled-5JjQu8rW.js";import{T as ke}from"./TextField-4ii8jFMh.js";import"./v4-CQkTLCs1.js";import"./_baseIteratee-8_jeTHtL.js";import"./_overArg-duoZdnBA.js";import"./useFormControl-Baz_U5RD.js";import"./isMuiElement-BqzHBgRb.js";import"./ownerWindow-DIR61fab.js";import"./index-BjNUr1t6.js";import"./index-CYM-y3Gt.js";const Xt=o=>{const n=s.useRef({});return s.useEffect(()=>{n.current=o}),n.current};function Ot(o){return typeof o.normalize<"u"?o.normalize("NFD").replace(/[\u0300-\u036f]/g,""):o}function Qt(o={}){const{ignoreAccents:n=!0,ignoreCase:c=!0,limit:d,matchFrom:b="any",stringify:p,trim:O=!1}=o;return(x,{inputValue:N,getOptionLabel:B})=>{let L=O?N.trim():N;c&&(L=L.toLowerCase()),n&&(L=Ot(L));const H=L?x.filter(j=>{let $=(p||B)(j);return c&&($=$.toLowerCase()),n&&($=Ot($)),b==="start"?$.indexOf(L)===0:$.indexOf(L)>-1}):x;return typeof d=="number"?H.slice(0,d):H}}function Xe(o,n){for(let c=0;c{var n;return o.current!==null&&((n=o.current.parentElement)==null?void 0:n.contains(document.activeElement))};function eo(o){const{unstable_isActiveElementInListbox:n=Zt,unstable_classNamePrefix:c="Mui",autoComplete:d=!1,autoHighlight:b=!1,autoSelect:p=!1,blurOnSelect:O=!1,clearOnBlur:x=!o.freeSolo,clearOnEscape:N=!1,componentName:B="useAutocomplete",defaultValue:L=o.multiple?[]:null,disableClearable:H=!1,disableCloseOnSelect:j=!1,disabled:$,disabledItemsFocusable:be=!1,disableListWrap:Ze=!1,filterOptions:dt=Yt,filterSelectedOptions:xe=!1,freeSolo:X=!1,getOptionDisabled:U,getOptionKey:et,getOptionLabel:we=t=>{var e;return(e=t.label)!=null?e:t},groupBy:Ie,handleHomeEndKeys:Q=!o.freeSolo,id:ft,includeInputInList:tt=!1,inputValue:Ee,isOptionEqualToValue:le=(t,e)=>t===e,multiple:m=!1,onChange:Se,onClose:Me,onHighlightChange:De,onInputChange:K,onOpen:Fe,open:gt,openOnFocus:mt=!1,options:Oe,readOnly:ee=!1,selectOnFocus:Pe=!o.freeSolo,value:Ne}=o,w=Jt(ft);let A=we;A=t=>{const e=we(t);return typeof e!="string"?String(e):e};const Ce=s.useRef(!1),Be=s.useRef(!0),P=s.useRef(null),E=s.useRef(null),[ie,ot]=s.useState(null),[k,ve]=s.useState(-1),He=b?0:-1,v=s.useRef(He),[l,ht]=ct({controlled:Ne,default:L,name:B}),[f,q]=ct({controlled:Ee,default:"",name:B,state:"inputValue"}),[se,We]=s.useState(!1),te=s.useCallback((t,e)=>{if(!(m?l.length!(xe&&(m?l:[l]).some(e=>e!==null&&le(t,e)))),{inputValue:ze&&rt?"":f,getOptionLabel:A}):[],W=Xt({filteredOptions:h,value:l,inputValue:f});s.useEffect(()=>{const t=l!==W.value;se&&!t||X&&!t||te(null,l)},[l,te,se,W.value,X]);const Te=Y&&h.length>0&&!ee,pe=Je(t=>{t===-1?P.current.focus():ie.querySelector(`[data-tag-index="${t}"]`).focus()});s.useEffect(()=>{m&&k>l.length-1&&(ve(-1),pe(-1))},[l,m,k,pe]);function ue(t,e){if(!E.current||t<0||t>=h.length)return-1;let a=t;for(;;){const r=E.current.querySelector(`[data-option-index="${a}"]`),i=be?!1:!r||r.disabled||r.getAttribute("aria-disabled")==="true";if(r&&r.hasAttribute("tabindex")&&!i)return a;if(e==="next"?a=(a+1)%h.length:a=(a-1+h.length)%h.length,a===t)return-1}}const z=Je(({event:t,index:e,reason:a="auto"})=>{if(v.current=e,e===-1?P.current.removeAttribute("aria-activedescendant"):P.current.setAttribute("aria-activedescendant",`${w}-option-${e}`),De&&De(t,e===-1?null:h[e],a),!E.current)return;const r=E.current.querySelector(`[role="option"].${c}-focused`);r&&(r.classList.remove(`${c}-focused`),r.classList.remove(`${c}-focusVisible`));let i=E.current;if(E.current.getAttribute("role")!=="listbox"&&(i=E.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(e===-1){i.scrollTop=0;return}const g=E.current.querySelector(`[data-option-index="${e}"]`);if(g&&(g.classList.add(`${c}-focused`),a==="keyboard"&&g.classList.add(`${c}-focusVisible`),i.scrollHeight>i.clientHeight&&a!=="mouse"&&a!=="touch")){const y=g,D=i.clientHeight+i.scrollTop,qe=y.offsetTop+y.offsetHeight;qe>D?i.scrollTop=qe-i.clientHeight:y.offsetTop-y.offsetHeight*(Ie?1.3:0){if(!R)return;const g=ue((()=>{const y=h.length-1;if(e==="reset")return He;if(e==="start")return 0;if(e==="end")return y;const D=v.current+e;return D<0?D===-1&&tt?-1:Ze&&v.current!==-1||Math.abs(e)>1?0:y:D>y?D===y+1&&tt?-1:Ze||Math.abs(e)>1?y:0:D})(),a);if(z({index:g,reason:r,event:t}),d&&e!=="reset")if(g===-1)P.current.value=f;else{const y=A(h[g]);P.current.value=y,y.toLowerCase().indexOf(f.toLowerCase())===0&&f.length>0&&P.current.setSelectionRange(f.length,y.length)}}),ce=()=>{const t=(e,a)=>{const r=e?A(e):"",i=a?A(a):"";return r===i};if(v.current!==-1&&W.filteredOptions&&W.filteredOptions.length!==h.length&&W.inputValue===f&&(m?l.length===W.value.length&&W.value.every((e,a)=>A(l[a])===A(e)):t(W.value,l))){const e=W.filteredOptions[v.current];if(e)return Xe(h,a=>A(a)===A(e))}return-1},Le=s.useCallback(()=>{if(!R)return;const t=ce();if(t!==-1){v.current=t;return}const e=m?l[0]:l;if(h.length===0||e==null){_({diff:"reset"});return}if(E.current){if(e!=null){const a=h[v.current];if(m&&a&&Xe(l,i=>le(a,i))!==-1)return;const r=Xe(h,i=>le(i,e));r===-1?_({diff:"reset"}):z({index:r});return}if(v.current>=h.length-1){z({index:h.length-1});return}z({index:v.current})}},[h.length,m?!1:l,xe,_,z,R,f,m]),nt=Je(t=>{Nt(E,t),t&&Le()});s.useEffect(()=>{Le()},[Le]);const M=t=>{Y||(_e(!0),Ge(!0),Fe&&Fe(t))},J=(t,e)=>{Y&&(_e(!1),Me&&Me(t,e))},V=(t,e,a,r)=>{if(m){if(l.length===e.length&&l.every((i,g)=>i===e[g]))return}else if(l===e)return;Se&&Se(t,e,a,r),ht(e)},de=s.useRef(!1),oe=(t,e,a="selectOption",r="options")=>{let i=a,g=e;if(m){g=Array.isArray(l)?l.slice():[];const y=Xe(g,D=>le(e,D));y===-1?g.push(e):r!=="freeSolo"&&(g.splice(y,1),i="removeOption")}te(t,g),V(t,g,i,{option:e}),!j&&(!t||!t.ctrlKey&&!t.metaKey)&&J(t,i),(O===!0||O==="touch"&&de.current||O==="mouse"&&!de.current)&&P.current.blur()};function Ve(t,e){if(t===-1)return-1;let a=t;for(;;){if(e==="next"&&a===l.length||e==="previous"&&a===-1)return-1;const r=ie.querySelector(`[data-tag-index="${a}"]`);if(!r||!r.hasAttribute("tabindex")||r.disabled||r.getAttribute("aria-disabled")==="true")a+=e==="next"?1:-1;else return a}}const je=(t,e)=>{if(!m)return;f===""&&J(t,"toggleInput");let a=k;k===-1?f===""&&e==="previous"&&(a=l.length-1):(a+=e==="next"?1:-1,a<0&&(a=0),a===l.length&&(a=-1)),a=Ve(a,e),ve(a),pe(a)},Ue=t=>{Ce.current=!0,q(""),K&&K(t,"","clear"),V(t,m?[]:null,"clear")},at=t=>e=>{if(t.onKeyDown&&t.onKeyDown(e),!e.defaultMuiPrevented&&(k!==-1&&["ArrowLeft","ArrowRight"].indexOf(e.key)===-1&&(ve(-1),pe(-1)),e.which!==229))switch(e.key){case"Home":R&&Q&&(e.preventDefault(),_({diff:"start",direction:"next",reason:"keyboard",event:e}));break;case"End":R&&Q&&(e.preventDefault(),_({diff:"end",direction:"previous",reason:"keyboard",event:e}));break;case"PageUp":e.preventDefault(),_({diff:-Pt,direction:"previous",reason:"keyboard",event:e}),M(e);break;case"PageDown":e.preventDefault(),_({diff:Pt,direction:"next",reason:"keyboard",event:e}),M(e);break;case"ArrowDown":e.preventDefault(),_({diff:1,direction:"next",reason:"keyboard",event:e}),M(e);break;case"ArrowUp":e.preventDefault(),_({diff:-1,direction:"previous",reason:"keyboard",event:e}),M(e);break;case"ArrowLeft":je(e,"previous");break;case"ArrowRight":je(e,"next");break;case"Enter":if(v.current!==-1&&R){const a=h[v.current],r=U?U(a):!1;if(e.preventDefault(),r)return;oe(e,a,"selectOption"),d&&P.current.setSelectionRange(P.current.value.length,P.current.value.length)}else X&&f!==""&&ze===!1&&(m&&e.preventDefault(),oe(e,f,"createOption","freeSolo"));break;case"Escape":R?(e.preventDefault(),e.stopPropagation(),J(e,"escape")):N&&(f!==""||m&&l.length>0)&&(e.preventDefault(),e.stopPropagation(),Ue(e));break;case"Backspace":if(m&&!ee&&f===""&&l.length>0){const a=k===-1?l.length-1:k,r=l.slice();r.splice(a,1),V(e,r,"removeOption",{option:l[a]})}break;case"Delete":if(m&&!ee&&f===""&&l.length>0&&k!==-1){const a=k,r=l.slice();r.splice(a,1),V(e,r,"removeOption",{option:l[a]})}break}},yt=t=>{We(!0),mt&&!Ce.current&&M(t)},fe=t=>{if(n(E)){P.current.focus();return}We(!1),Be.current=!0,Ce.current=!1,p&&v.current!==-1&&R?oe(t,h[v.current],"blur"):p&&X&&f!==""?oe(t,f,"blur","freeSolo"):x&&te(t,l),J(t,"blur")},T=t=>{const e=t.target.value;f!==e&&(q(e),Ge(!1),K&&K(t,e,"input")),e===""?!H&&!m&&V(t,null,"clear"):M(t)},C=t=>{const e=Number(t.currentTarget.getAttribute("data-option-index"));v.current!==e&&z({event:t,index:e,reason:"mouse"})},G=t=>{z({event:t,index:Number(t.currentTarget.getAttribute("data-option-index")),reason:"touch"}),de.current=!0},bt=t=>{const e=Number(t.currentTarget.getAttribute("data-option-index"));oe(t,h[e],"selectOption"),de.current=!1},lt=t=>e=>{const a=l.slice();a.splice(t,1),V(e,a,"removeOption",{option:l[t]})},it=t=>{Y?J(t,"toggleInput"):M(t)},st=t=>{t.currentTarget.contains(t.target)&&t.target.getAttribute("id")!==w&&t.preventDefault()},Ke=t=>{t.currentTarget.contains(t.target)&&(P.current.focus(),Pe&&Be.current&&P.current.selectionEnd-P.current.selectionStart===0&&P.current.select(),Be.current=!1)},$e=t=>{!$&&(f===""||!Y)&&it(t)};let re=X&&f.length>0;re=re||(m?l.length>0:l!==null);let ge=h;return Ie&&(ge=h.reduce((t,e,a)=>{const r=Ie(e);return t.length>0&&t[t.length-1].group===r?t[t.length-1].options.push(e):t.push({key:a,index:a,group:r,options:[e]}),t},[])),$&&se&&fe(),{getRootProps:(t={})=>I({"aria-owns":Te?`${w}-listbox`:null},t,{onKeyDown:at(t),onMouseDown:st,onClick:Ke}),getInputLabelProps:()=>({id:`${w}-label`,htmlFor:w}),getInputProps:()=>({id:w,value:f,onBlur:fe,onFocus:yt,onChange:T,onMouseDown:$e,"aria-activedescendant":R?"":null,"aria-autocomplete":d?"both":"list","aria-controls":Te?`${w}-listbox`:void 0,"aria-expanded":Te,autoComplete:"off",ref:P,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:$}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ue}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:it}),getTagProps:({index:t})=>I({key:t,"data-tag-index":t,tabIndex:-1},!ee&&{onDelete:lt(t)}),getListboxProps:()=>({role:"listbox",id:`${w}-listbox`,"aria-labelledby":`${w}-label`,ref:nt,onMouseDown:t=>{t.preventDefault()}}),getOptionProps:({index:t,option:e})=>{var a;const r=(m?l:[l]).some(g=>g!=null&&le(e,g)),i=U?U(e):!1;return{key:(a=et==null?void 0:et(e))!=null?a:A(e),tabIndex:-1,role:"option",id:`${w}-option-${t}`,onMouseMove:C,onClick:bt,onTouchStart:G,"data-option-index":t,"aria-disabled":i,"aria-selected":r}},id:w,inputValue:f,value:l,dirty:re,expanded:R&&ie,popupOpen:R,focused:se||k!==-1,anchorEl:ie,setAnchorEl:ot,focusedTag:k,groupedOptions:ge}}function to(o){return At("MuiListSubheader",o)}kt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const oo=["className","color","component","disableGutters","disableSticky","inset"],ro=o=>{const{classes:n,color:c,disableGutters:d,inset:b,disableSticky:p}=o,O={root:["root",c!=="default"&&`color${Ye(c)}`,!d&&"gutters",b&&"inset",!p&&"sticky"]};return wt(O,to,n)},no=F("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(o,n)=>{const{ownerState:c}=o;return[n.root,c.color!=="default"&&n[`color${Ye(c.color)}`],!c.disableGutters&&n.gutters,c.inset&&n.inset,!c.disableSticky&&n.sticky]}})(({theme:o,ownerState:n})=>I({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(o.vars||o).palette.text.secondary,fontFamily:o.typography.fontFamily,fontWeight:o.typography.fontWeightMedium,fontSize:o.typography.pxToRem(14)},n.color==="primary"&&{color:(o.vars||o).palette.primary.main},n.color==="inherit"&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(o.vars||o).palette.background.paper})),Ft=s.forwardRef(function(n,c){const d=Rt({props:n,name:"MuiListSubheader"}),{className:b,color:p="default",component:O="li",disableGutters:x=!1,disableSticky:N=!1,inset:B=!1}=d,L=Re(d,oo),H=I({},d,{color:p,component:O,disableGutters:x,disableSticky:N,inset:B}),j=ro(H);return S.jsx(no,I({as:O,className:ye(j.root,b),ref:c,ownerState:H},L))});Ft.muiSkipListHighlight=!0;const ao=Kt(S.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function lo(o){return At("MuiAutocomplete",o)}const u=kt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Ct,vt;const io=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],so=["ref"],po=["key"],uo=["key"],co=o=>{const{classes:n,disablePortal:c,expanded:d,focused:b,fullWidth:p,hasClearIcon:O,hasPopupIcon:x,inputFocused:N,popupOpen:B,size:L}=o,H={root:["root",d&&"expanded",b&&"focused",p&&"fullWidth",O&&"hasClearIcon",x&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",N&&"inputFocused"],tag:["tag",`tagSize${Ye(L)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",B&&"popupIndicatorOpen"],popper:["popper",c&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return wt(H,lo,n)},fo=F("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(o,n)=>{const{ownerState:c}=o,{fullWidth:d,hasClearIcon:b,hasPopupIcon:p,inputFocused:O,size:x}=c;return[{[`& .${u.tag}`]:n.tag},{[`& .${u.tag}`]:n[`tagSize${Ye(x)}`]},{[`& .${u.inputRoot}`]:n.inputRoot},{[`& .${u.input}`]:n.input},{[`& .${u.input}`]:O&&n.inputFocused},n.root,d&&n.fullWidth,p&&n.hasPopupIcon,b&&n.hasClearIcon]}})({[`&.${u.focused} .${u.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${u.clearIndicator}`]:{visibility:"visible"}},[`& .${u.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${u.inputRoot}`]:{[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]:{paddingRight:30},[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]:{paddingRight:56},[`& .${u.input}`]:{width:0,minWidth:30}},[`& .${ut.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ut.root}.${ne.sizeSmall}`]:{[`& .${ut.input}`]:{padding:"2px 4px 3px 0"}},[`& .${St.root}`]:{padding:9,[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]:{paddingRight:39},[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]:{paddingRight:65},[`& .${u.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${u.endAdornment}`]:{right:9}},[`& .${St.root}.${ne.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${u.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${he.root}`]:{paddingTop:19,paddingLeft:8,[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]:{paddingRight:39},[`.${u.hasPopupIcon}.${u.hasClearIcon}&`]:{paddingRight:65},[`& .${he.input}`]:{padding:"7px 4px"},[`& .${u.endAdornment}`]:{right:9}},[`& .${he.root}.${ne.sizeSmall}`]:{paddingBottom:1,[`& .${he.input}`]:{padding:"2.5px 4px"}},[`& .${ne.hiddenLabel}`]:{paddingTop:8},[`& .${he.root}.${ne.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${u.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${he.root}.${ne.hiddenLabel}.${ne.sizeSmall}`]:{[`& .${u.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${u.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${u.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${u.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${u.inputRoot}`]:{flexWrap:"wrap"}}}]}),go=F("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(o,n)=>n.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),mo=F(Mt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(o,n)=>n.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),ho=F(Mt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:o},n)=>I({},n.popupIndicator,o.popupOpen&&n.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),yo=F(Dt,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(o,n)=>{const{ownerState:c}=o;return[{[`& .${u.option}`]:n.option},n.popper,c.disablePortal&&n.popperDisablePortal]}})(({theme:o})=>({zIndex:(o.vars||o).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),bo=F(Et,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(o,n)=>n.paper})(({theme:o})=>I({},o.typography.body1,{overflow:"auto"})),xo=F("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(o,n)=>n.loading})(({theme:o})=>({color:(o.vars||o).palette.text.secondary,padding:"14px 16px"})),Io=F("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(o,n)=>n.noOptions})(({theme:o})=>({color:(o.vars||o).palette.text.secondary,padding:"14px 16px"})),So=F("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(o,n)=>n.listbox})(({theme:o})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${u.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[o.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${u.focused}`]:{backgroundColor:(o.vars||o).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(o.vars||o).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${u.focusVisible}`]:{backgroundColor:(o.vars||o).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.selectedOpacity})`:pt(o.palette.primary.main,o.palette.action.selectedOpacity),[`&.${u.focused}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.hoverOpacity}))`:pt(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(o.vars||o).palette.action.selected}},[`&.${u.focusVisible}`]:{backgroundColor:o.vars?`rgba(${o.vars.palette.primary.mainChannel} / calc(${o.vars.palette.action.selectedOpacity} + ${o.vars.palette.action.focusOpacity}))`:pt(o.palette.primary.main,o.palette.action.selectedOpacity+o.palette.action.focusOpacity)}}}})),Oo=F(Ft,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(o,n)=>n.groupLabel})(({theme:o})=>({backgroundColor:(o.vars||o).palette.background.paper,top:-8})),Po=F("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(o,n)=>n.groupUl})({padding:0,[`& .${u.option}`]:{paddingLeft:24}}),Co=s.forwardRef(function(n,c){var d,b,p,O;const x=Rt({props:n,name:"MuiAutocomplete"}),{autoComplete:N=!1,autoHighlight:B=!1,autoSelect:L=!1,blurOnSelect:H=!1,ChipProps:j,className:$,clearIcon:be=Ct||(Ct=S.jsx(ao,{fontSize:"small"})),clearOnBlur:Ze=!x.freeSolo,clearOnEscape:dt=!1,clearText:xe="Clear",closeText:X="Close",componentsProps:U={},defaultValue:et=x.multiple?[]:null,disableClearable:we=!1,disableCloseOnSelect:Ie=!1,disabled:Q=!1,disabledItemsFocusable:ft=!1,disableListWrap:tt=!1,disablePortal:Ee=!1,filterSelectedOptions:le=!1,forcePopupIcon:m="auto",freeSolo:Se=!1,fullWidth:Me=!1,getLimitTagsText:De=r=>`+${r}`,getOptionLabel:K,groupBy:Fe,handleHomeEndKeys:gt=!x.freeSolo,includeInputInList:mt=!1,limitTags:Oe=-1,ListboxComponent:ee="ul",ListboxProps:Pe,loading:Ne=!1,loadingText:w="Loading…",multiple:A=!1,noOptionsText:Ce="No options",openOnFocus:Be=!1,openText:P="Open",PaperComponent:E=Et,PopperComponent:ie=Dt,popupIcon:ot=vt||(vt=S.jsx(Ut,{})),readOnly:k=!1,renderGroup:ve,renderInput:He,renderOption:v,renderTags:l,selectOnFocus:ht=!x.freeSolo,size:f="medium",slotProps:q={}}=x,se=Re(x,io),{getRootProps:We,getInputProps:te,getInputLabelProps:Y,getPopupIndicatorProps:_e,getClearProps:rt,getTagProps:Ge,getListboxProps:ze,getOptionProps:R,value:h,dirty:W,expanded:Te,id:pe,popupOpen:ue,focused:z,focusedTag:_,anchorEl:ce,setAnchorEl:Le,inputValue:nt,groupedOptions:M}=eo(I({},x,{componentName:"Autocomplete"})),J=!we&&!Q&&W&&!k,V=(!Se||m===!0)&&m!==!1,{onMouseDown:de}=te(),{ref:oe}=Pe??{},Ve=ze(),{ref:je}=Ve,Ue=Re(Ve,so),at=Bt(je,oe),fe=K||(r=>{var i;return(i=r.label)!=null?i:r}),T=I({},x,{disablePortal:Ee,expanded:Te,focused:z,fullWidth:Me,getOptionLabel:fe,hasClearIcon:J,hasPopupIcon:V,inputFocused:_===-1,popupOpen:ue,size:f}),C=co(T);let G;if(A&&h.length>0){const r=i=>I({className:C.tag,disabled:Q},Ge(i));l?G=l(h,r,T):G=h.map((i,g)=>{const y=r({index:g}),{key:D}=y,qe=Re(y,po);return S.jsx(qt,I({label:fe(i),size:f},qe,j),D)})}if(Oe>-1&&Array.isArray(G)){const r=G.length-Oe;!z&&r>0&&(G=G.splice(0,Oe),G.push(S.jsx("span",{className:C.tag,children:De(r)},G.length)))}const lt=ve||(r=>S.jsxs("li",{children:[S.jsx(Oo,{className:C.groupLabel,ownerState:T,component:"div",children:r.group}),S.jsx(Po,{className:C.groupUl,ownerState:T,children:r.children})]},r.key)),st=v||((r,i)=>{const{key:g}=r,y=Re(r,uo);return S.jsx("li",I({},y,{children:fe(i)}),g)}),Ke=(r,i)=>{const g=R({option:r,index:i});return st(I({},g,{className:C.option}),r,{selected:g["aria-selected"],index:i,inputValue:nt},T)},$e=(d=q.clearIndicator)!=null?d:U.clearIndicator,re=(b=q.paper)!=null?b:U.paper,ge=(p=q.popper)!=null?p:U.popper,t=(O=q.popupIndicator)!=null?O:U.popupIndicator,e=r=>S.jsx(yo,I({as:ie,disablePortal:Ee,style:{width:ce?ce.clientWidth:null},ownerState:T,role:"presentation",anchorEl:ce,open:ue},ge,{className:ye(C.popper,ge==null?void 0:ge.className),children:S.jsx(bo,I({ownerState:T,as:E},re,{className:ye(C.paper,re==null?void 0:re.className),children:r}))}));let a=null;return M.length>0?a=e(S.jsx(So,I({as:ee,className:C.listbox,ownerState:T},Ue,Pe,{ref:at,children:M.map((r,i)=>Fe?lt({key:r.key,group:r.group,children:r.options.map((g,y)=>Ke(g,r.index+y))}):Ke(r,i))}))):Ne&&M.length===0?a=e(S.jsx(xo,{className:C.loading,ownerState:T,children:w})):M.length===0&&!Se&&!Ne&&(a=e(S.jsx(Io,{className:C.noOptions,ownerState:T,role:"presentation",onMouseDown:r=>{r.preventDefault()},children:Ce}))),S.jsxs(s.Fragment,{children:[S.jsx(fo,I({ref:c,className:ye(C.root,$),ownerState:T},We(se),{children:He({id:pe,disabled:Q,fullWidth:!0,size:f==="small"?"small":void 0,InputLabelProps:Y(),InputProps:I({ref:Le,className:C.inputRoot,startAdornment:G,onClick:r=>{r.target===r.currentTarget&&de(r)}},(J||V)&&{endAdornment:S.jsxs(go,{className:C.endAdornment,ownerState:T,children:[J?S.jsx(mo,I({},rt(),{"aria-label":xe,title:xe,ownerState:T},$e,{className:ye(C.clearIndicator,$e==null?void 0:$e.className),children:be})):null,V?S.jsx(ho,I({},_e(),{disabled:Q,"aria-label":ue?X:P,title:ue?X:P,ownerState:T},t,{className:ye(C.popupIndicator,t==null?void 0:t.className),children:ot})):null]})}),inputProps:I({className:C.input,disabled:Q,readOnly:k},te())})})),ce?a:null]})});function vo({disabled:o,field:n,form:{isSubmitting:c,setFieldValue:d},type:b,onChange:p,onBlur:O,freeSolo:x,...N}){const{onChange:B,onBlur:L,multiple:H,...j}=n;return{freeSolo:x,onBlur:O??function($){n.onBlur($??n.name)},onChange:p??function($,be){d(n.name,be)},disabled:o??c,loading:c,...j,...N}}function Z(o){return s.createElement(Co,{...vo(o)})}Z.displayName="FormikMaterialUIAutocomplete";Z.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUIAutocomplete",props:{type:{required:!1,tsType:{name:"string"},description:""}},composes:["FieldProps","Omit"]};const To=Vt().shape({single:It().required("Required"),freeSolo:It().required("Required"),multiple:jt().min(2)}),ae=[{title:"The Shawshank Redemption",year:1994},{title:"The Godfather",year:1972},{title:"The Godfather: Part II",year:1974},{title:"The Dark Knight",year:2008},{title:"12 Angry Men",year:1957},{title:"Schindler's List",year:1993},{title:"Pulp Fiction",year:1994},{title:"The Lord of the Rings: The Return of the King",year:2003},{title:"The Good, the Bad and the Ugly",year:1966},{title:"Fight Club",year:1999},{title:"The Lord of the Rings: The Fellowship of the Ring",year:2001},{title:"Star Wars: Episode V - The Empire Strikes Back",year:1980},{title:"Forrest Gump",year:1994},{title:"Inception",year:2010},{title:"The Lord of the Rings: The Two Towers",year:2002},{title:"One Flew Over the Cuckoo's Nest",year:1975},{title:"Goodfellas",year:1990},{title:"The Matrix",year:1999},{title:"Seven Samurai",year:1954},{title:"Star Wars: Episode IV - A New Hope",year:1977},{title:"City of God",year:2002},{title:"Se7en",year:1995},{title:"The Silence of the Lambs",year:1991},{title:"It's a Wonderful Life",year:1946},{title:"Life Is Beautiful",year:1997},{title:"The Usual Suspects",year:1995},{title:"Léon: The Professional",year:1994},{title:"Spirited Away",year:2001},{title:"Saving Private Ryan",year:1998},{title:"Once Upon a Time in the West",year:1968},{title:"American History X",year:1998},{title:"Interstellar",year:2014},{title:"Casablanca",year:1942},{title:"City Lights",year:1931},{title:"Psycho",year:1960},{title:"The Green Mile",year:1999},{title:"The Intouchables",year:2011},{title:"Modern Times",year:1936},{title:"Raiders of the Lost Ark",year:1981},{title:"Rear Window",year:1954},{title:"The Pianist",year:2002},{title:"The Departed",year:2006},{title:"Terminator 2: Judgment Day",year:1991},{title:"Back to the Future",year:1985},{title:"Whiplash",year:2014},{title:"Gladiator",year:2e3},{title:"Memento",year:2e3},{title:"The Prestige",year:2006},{title:"The Lion King",year:1994},{title:"Apocalypse Now",year:1979},{title:"Alien",year:1979},{title:"Sunset Boulevard",year:1950},{title:"Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb",year:1964},{title:"The Great Dictator",year:1940},{title:"Cinema Paradiso",year:1988},{title:"The Lives of Others",year:2006},{title:"Grave of the Fireflies",year:1988},{title:"Paths of Glory",year:1957},{title:"Django Unchained",year:2012},{title:"The Shining",year:1980},{title:"WALL·E",year:2008},{title:"American Beauty",year:1999},{title:"The Dark Knight Rises",year:2012},{title:"Princess Mononoke",year:1997},{title:"Aliens",year:1986},{title:"Oldboy",year:2003},{title:"Once Upon a Time in America",year:1984},{title:"Witness for the Prosecution",year:1957},{title:"Das Boot",year:1981},{title:"Citizen Kane",year:1941},{title:"North by Northwest",year:1959},{title:"Vertigo",year:1958},{title:"Star Wars: Episode VI - Return of the Jedi",year:1983},{title:"Reservoir Dogs",year:1992},{title:"Braveheart",year:1995},{title:"M",year:1931},{title:"Requiem for a Dream",year:2e3},{title:"Amélie",year:2001},{title:"A Clockwork Orange",year:1971},{title:"Like Stars on Earth",year:2007},{title:"Taxi Driver",year:1976},{title:"Lawrence of Arabia",year:1962},{title:"Double Indemnity",year:1944},{title:"Eternal Sunshine of the Spotless Mind",year:2004},{title:"Amadeus",year:1984},{title:"To Kill a Mockingbird",year:1962},{title:"Toy Story 3",year:2010},{title:"Logan",year:2017},{title:"Full Metal Jacket",year:1987},{title:"Dangal",year:2016},{title:"The Sting",year:1973},{title:"2001: A Space Odyssey",year:1968},{title:"Singin' in the Rain",year:1952},{title:"Toy Story",year:1995},{title:"Bicycle Thieves",year:1948},{title:"The Kid",year:1921},{title:"Inglourious Basterds",year:2009},{title:"Snatch",year:2e3},{title:"3 Idiots",year:2009},{title:"Monty Python and the Holy Grail",year:1975}],Lo=ae.map(o=>{const n=o.title[0].toUpperCase();return{firstLetter:/[0-9]/.test(n)?"0-9":n,...o}}).sort((o,n)=>-n.firstLetter.localeCompare(o.firstLetter)),Jo={title:"Core/Autocomplete",component:Z,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},$o=()=>s.createElement(Ht,null,s.createElement(Wt,{validationSchema:To,initialValues:{single:ae[0],freeSolo:"Godfather",freeSoloMultiple:[],grouped:null,multiple:[ae[0]]},onSubmit:(o,{setSubmitting:n})=>{setTimeout(()=>{n(!1),_t("submit")(o)},2e3)}},({submitForm:o,resetForm:n,values:c,errors:d,touched:b})=>s.createElement(Gt,null,s.createElement(me,{margin:1},s.createElement(Ae,{name:"single",component:Z,options:ae,getOptionLabel:p=>p.title,style:{width:300},renderInput:p=>s.createElement(ke,{...p,label:"Single",variant:"outlined"})})),s.createElement(me,{margin:1},s.createElement(Ae,{name:"freeSolo",component:Z,freeSolo:!0,options:ae.map(p=>p.title),style:{width:300},renderInput:p=>s.createElement(ke,{...p,name:"freeSolo",error:b.freeSolo&&!!d.freeSolo,helperText:b.freeSolo&&d.freeSolo,label:"Free Solo",InputProps:{...p.InputProps,type:"search"},variant:"outlined"})})),s.createElement(me,{margin:1},s.createElement(Ae,{name:"freeSoloMultiple",component:Z,freeSolo:!0,multiple:!0,options:ae.map(p=>p.title),style:{width:300},renderInput:p=>s.createElement(ke,{...p,name:"freeSoloMultiple",error:b.freeSoloMultiple&&!!d.freeSoloMultiple,helperText:b.freeSoloMultiple&&d.freeSoloMultiple,label:"Free Solo Multiple",InputProps:{...p.InputProps,type:"search"},variant:"outlined"})})),s.createElement(me,{margin:1},s.createElement(Ae,{name:"multiple",multiple:!0,component:Z,options:ae,getOptionLabel:p=>p.title,style:{width:300},renderInput:p=>s.createElement(ke,{...p,name:"multiple",error:b.multiple&&!!d.multiple,helperText:b.multiple&&d.multiple,label:"Multiple",variant:"outlined"})})),s.createElement(me,{margin:1},s.createElement(Ae,{name:"grouped",component:Z,options:Lo,groupBy:p=>p.firstLetter,getOptionLabel:p=>p.title,style:{width:300},renderInput:p=>s.createElement(ke,{...p,name:"grouped",error:b.grouped&&!!d.grouped,helperText:b.grouped&&d.grouped,label:"Grouped",variant:"outlined"})})),s.createElement(me,{margin:1},s.createElement(xt,{sx:{margin:1},variant:"contained",color:"primary",onClick:o},"Submit"),s.createElement(xt,{sx:{margin:1},variant:"contained",color:"secondary",onClick:()=>{n()}},"Reset")),s.createElement(zt,{values:c})))),Qe={render:$o};var Tt,Lt,$t;Qe.parameters={...Qe.parameters,docs:{...(Tt=Qe.parameters)==null?void 0:Tt.docs,source:{originalSource:`{ + render: Template +}`,...($t=(Lt=Qe.parameters)==null?void 0:Lt.docs)==null?void 0:$t.source}}};const Xo=["Default"];export{Qe as Default,Xo as __namedExportsOrder,Jo as default}; diff --git a/storybook/assets/Checkbox.stories-BcL-IxSz.js b/storybook/assets/Checkbox.stories-BcL-IxSz.js new file mode 100644 index 0000000..8629a97 --- /dev/null +++ b/storybook/assets/Checkbox.stories-BcL-IxSz.js @@ -0,0 +1,6 @@ +import{r as t}from"./index-CTjT7uj6.js";import{j as c,p as j,o as T,s as N,C as U,t as h,y as W,u as R,_ as V,c as D,q as H,W as q,F as w,h as A,k as G,T as J,l as r,z as F,B as K,m as Q}from"./Wrapper-DXvvO_B0.js";import{_ as u}from"./isNativeReflectConstruct-CJAgTEKr.js";import{S as X,F as Y}from"./FormControlLabel-D18ON2k4.js";import{c as v}from"./createSvgIcon-DLhoJ5Fi.js";import"./v4-CQkTLCs1.js";import"./useFormControl-Baz_U5RD.js";import"./useControlled-5JjQu8rW.js";import"./createStyled-D6A6HRKR.js";const Z=v(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ee=v(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),oe=v(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function te(e){return T("MuiCheckbox",e)}const C=j("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ae=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ne=e=>{const{classes:o,indeterminate:a,color:l,size:m}=e,n={root:["root",a&&"indeterminate",`color${h(l)}`,`size${h(m)}`]},p=H(n,te,o);return u({},o,p)},re=N(X,{shouldForwardProp:e=>U(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:a}=e;return[o.root,a.indeterminate&&o.indeterminate,o[`size${h(a.size)}`],a.color!=="default"&&o[`color${h(a.color)}`]]}})(({theme:e,ownerState:o})=>u({color:(e.vars||e).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${o.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:W(o.color==="default"?e.palette.action.active:e.palette[o.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},o.color!=="default"&&{[`&.${C.checked}, &.${C.indeterminate}`]:{color:(e.vars||e).palette[o.color].main},[`&.${C.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),ce=c.jsx(ee,{}),le=c.jsx(Z,{}),se=c.jsx(oe,{}),_=t.forwardRef(function(o,a){var l,m;const n=R({props:o,name:"MuiCheckbox"}),{checkedIcon:p=ce,color:k="primary",icon:x=le,indeterminate:d=!1,indeterminateIcon:y=se,inputProps:$,size:f="medium",className:O}=n,S=V(n,ae),E=d?y:x,I=d?y:p,z=u({},n,{color:k,indeterminate:d,size:f}),g=ne(z);return c.jsx(re,u({type:"checkbox",inputProps:u({"data-indeterminate":d},$),icon:t.cloneElement(E,{fontSize:(l=E.props.fontSize)!=null?l:f}),checkedIcon:t.cloneElement(I,{fontSize:(m=I.props.fontSize)!=null?m:f}),ownerState:z,ref:a,className:D(g.root,O)},S,{classes:g}))});function B({disabled:e,field:{onBlur:o,...a},form:{isSubmitting:l},type:m,onBlur:n,...p}){const k=!Array.isArray(a.value)&&a.value==null;return{disabled:e??l,indeterminate:k,onBlur:n??function(x){o(x??a.name)},...a,...p}}function i(e){return t.createElement(_,{...B(e)})}i.displayName="FormikMaterialUICheckbox";i.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUICheckbox",props:{type:{required:!1,tsType:{name:"string"},description:""}},composes:["FieldProps","Omit"]};function s({Label:e,...o}){return t.createElement(Y,{control:t.createElement(_,{...B(o)}),...e})}s.displayName="FormikMaterialUICheckboxWithLabel";s.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUICheckboxWithLabel",props:{type:{required:!1,tsType:{name:"string"},description:""},Label:{required:!0,tsType:{name:"Omit",elements:[{name:"MuiFormControlLabelProps"},{name:"union",raw:"'checked' | 'name' | 'value' | 'control'",elements:[{name:"literal",value:"'checked'"},{name:"literal",value:"'name'"},{name:"literal",value:"'value'"},{name:"literal",value:"'control'"}]}],raw:`Omit< + MuiFormControlLabelProps, + 'checked' | 'name' | 'value' | 'control' +>`},description:""}},composes:["FieldProps","Omit"]};const Ce={title:"Core/Checkbox",component:i,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},ie=()=>t.createElement(q,null,t.createElement(w,{initialValues:{on:!0,off:!1,null:null,multiple:[],withLabel:!1},onSubmit:(e,{setSubmitting:o})=>{setTimeout(()=>{o(!1),A("submit")(e)},2e3)}},({submitForm:e,values:o})=>t.createElement(G,null,t.createElement(J,null,"On",t.createElement(r,{component:i,name:"on",type:"checkbox"}),"Off",t.createElement(r,{component:i,name:"off",type:"checkbox"}),"Null",t.createElement(r,{component:i,name:"null",type:"checkbox"})),t.createElement(F,null,t.createElement(r,{component:s,Label:{label:"Checkbox With Label"},name:"withLabel",type:"checkbox"})),t.createElement(F,null,t.createElement(r,{component:s,Label:{label:"Designer?"},name:"multiple",value:"designer",type:"checkbox"}),t.createElement(r,{component:s,Label:{label:"Developer?"},name:"multiple",value:"developer",type:"checkbox"}),t.createElement(r,{component:s,Label:{label:"Product Manager?"},name:"multiple",value:"product",type:"checkbox"})),t.createElement(K,{variant:"contained",color:"primary",onClick:e},"Submit"),t.createElement("br",null),t.createElement(Q,{values:o})))),b={render:ie};var L,M,P;b.parameters={...b.parameters,docs:{...(L=b.parameters)==null?void 0:L.docs,source:{originalSource:`{ + render: Template +}`,...(P=(M=b.parameters)==null?void 0:M.docs)==null?void 0:P.source}}};const ve=["Default"];export{b as Default,ve as __namedExportsOrder,Ce as default}; diff --git a/storybook/assets/Chip-C6MsZLfs.js b/storybook/assets/Chip-C6MsZLfs.js new file mode 100644 index 0000000..4162a6a --- /dev/null +++ b/storybook/assets/Chip-C6MsZLfs.js @@ -0,0 +1 @@ +import{_ as M}from"./isNativeReflectConstruct-CJAgTEKr.js";import{aa as Tt,o as Le,p as We,_ as me,j as Y,E as je,D as at,q as Se,s as Re,u as Ne,A as Te,t as C,y as V,c as te}from"./Wrapper-DXvvO_B0.js";import{r as I}from"./index-CTjT7uj6.js";import{a as nt}from"./ownerWindow-DIR61fab.js";import{P as Mt,u as Bt}from"./Select-DSn46qfv.js";import{c as zt}from"./createSvgIcon-DLhoJ5Fi.js";var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0});var mt=Ve.default=void 0,Lt=St(I),Wt=Tt;function bt(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(bt=function(o){return o?r:t})(e)}function St(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=bt(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(o,n,l):o[n]=e[n]}return o.default=e,r&&r.set(e,o),o}function Nt(e){return Object.keys(e).length===0}function Vt(e=null){const t=Lt.useContext(Wt.ThemeContext);return!t||Nt(t)?e:t}mt=Ve.default=Vt;var W="top",F="bottom",U="right",S="left",He="auto",be=[W,F,U,S],ne="start",ve="end",Ht="clippingParents",yt="viewport",fe="popper",Ft="reference",it=be.reduce(function(e,t){return e.concat([t+"-"+ne,t+"-"+ve])},[]),ht=[].concat(be,[He]).reduce(function(e,t){return e.concat([t,t+"-"+ne,t+"-"+ve])},[]),Ut="beforeRead",qt="read",_t="afterRead",Xt="beforeMain",Kt="main",Yt="afterMain",Gt="beforeWrite",Jt="write",Qt="afterWrite",Zt=[Ut,qt,_t,Xt,Kt,Yt,Gt,Jt,Qt];function K(e){return e?(e.nodeName||"").toLowerCase():null}function N(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oe(e){var t=N(e).Element;return e instanceof t||e instanceof Element}function H(e){var t=N(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fe(e){if(typeof ShadowRoot>"u")return!1;var t=N(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},a=t.attributes[r]||{},n=t.elements[r];!H(n)||!K(n)||(Object.assign(n.style,o),Object.keys(a).forEach(function(l){var s=a[l];s===!1?n.removeAttribute(l):n.setAttribute(l,s===!0?"":s)}))})}function tr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var a=t.elements[o],n=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=l.reduce(function(i,p){return i[p]="",i},{});!H(a)||!K(a)||(Object.assign(a.style,s),Object.keys(n).forEach(function(i){a.removeAttribute(i)}))})}}const rr={name:"applyStyles",enabled:!0,phase:"write",fn:er,effect:tr,requires:["computeStyles"]};function X(e){return e.split("-")[0]}var re=Math.max,Pe=Math.min,ie=Math.round;function Me(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xt(){return!/^((?!chrome|android).)*safari/i.test(Me())}function se(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),a=1,n=1;t&&H(e)&&(a=e.offsetWidth>0&&ie(o.width)/e.offsetWidth||1,n=e.offsetHeight>0&&ie(o.height)/e.offsetHeight||1);var l=oe(e)?N(e):window,s=l.visualViewport,i=!xt()&&r,p=(o.left+(i&&s?s.offsetLeft:0))/a,c=(o.top+(i&&s?s.offsetTop:0))/n,d=o.width/a,y=o.height/n;return{width:d,height:y,top:c,right:p+d,bottom:c+y,left:p,x:p,y:c}}function Ue(e){var t=se(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Ot(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fe(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function G(e){return N(e).getComputedStyle(e)}function or(e){return["table","td","th"].indexOf(K(e))>=0}function Q(e){return((oe(e)?e.ownerDocument:e.document)||window.document).documentElement}function ke(e){return K(e)==="html"?e:e.assignedSlot||e.parentNode||(Fe(e)?e.host:null)||Q(e)}function st(e){return!H(e)||G(e).position==="fixed"?null:e.offsetParent}function ar(e){var t=/firefox/i.test(Me()),r=/Trident/i.test(Me());if(r&&H(e)){var o=G(e);if(o.position==="fixed")return null}var a=ke(e);for(Fe(a)&&(a=a.host);H(a)&&["html","body"].indexOf(K(a))<0;){var n=G(a);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return a;a=a.parentNode}return null}function ye(e){for(var t=N(e),r=st(e);r&&or(r)&&G(r).position==="static";)r=st(r);return r&&(K(r)==="html"||K(r)==="body"&&G(r).position==="static")?t:r||ar(e)||t}function qe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function de(e,t,r){return re(e,Pe(t,r))}function nr(e,t,r){var o=de(e,t,r);return o>r?r:o}function Ct(){return{top:0,right:0,bottom:0,left:0}}function $t(e){return Object.assign({},Ct(),e)}function wt(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var ir=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$t(typeof t!="number"?t:wt(t,be))};function sr(e){var t,r=e.state,o=e.name,a=e.options,n=r.elements.arrow,l=r.modifiersData.popperOffsets,s=X(r.placement),i=qe(s),p=[S,U].indexOf(s)>=0,c=p?"height":"width";if(!(!n||!l)){var d=ir(a.padding,r),y=Ue(n),f=i==="y"?W:S,b=i==="y"?F:U,v=r.rects.reference[c]+r.rects.reference[i]-l[i]-r.rects.popper[c],g=l[i]-r.rects.reference[i],O=ye(n),P=O?i==="y"?O.clientHeight||0:O.clientWidth||0:0,x=v/2-g/2,u=d[f],h=P-y[c]-d[b],m=P/2-y[c]/2+x,$=de(u,m,h),E=i;r.modifiersData[o]=(t={},t[E]=$,t.centerOffset=$-m,t)}}function lr(e){var t=e.state,r=e.options,o=r.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ot(t.elements.popper,a)&&(t.elements.arrow=a))}const cr={name:"arrow",enabled:!0,phase:"main",fn:sr,effect:lr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function le(e){return e.split("-")[1]}var pr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fr(e,t){var r=e.x,o=e.y,a=t.devicePixelRatio||1;return{x:ie(r*a)/a||0,y:ie(o*a)/a||0}}function lt(e){var t,r=e.popper,o=e.popperRect,a=e.placement,n=e.variation,l=e.offsets,s=e.position,i=e.gpuAcceleration,p=e.adaptive,c=e.roundOffsets,d=e.isFixed,y=l.x,f=y===void 0?0:y,b=l.y,v=b===void 0?0:b,g=typeof c=="function"?c({x:f,y:v}):{x:f,y:v};f=g.x,v=g.y;var O=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),x=S,u=W,h=window;if(p){var m=ye(r),$="clientHeight",E="clientWidth";if(m===N(r)&&(m=Q(r),G(m).position!=="static"&&s==="absolute"&&($="scrollHeight",E="scrollWidth")),m=m,a===W||(a===S||a===U)&&n===ve){u=F;var k=d&&m===h&&h.visualViewport?h.visualViewport.height:m[$];v-=k-o.height,v*=i?1:-1}if(a===S||(a===W||a===F)&&n===ve){x=U;var R=d&&m===h&&h.visualViewport?h.visualViewport.width:m[E];f-=R-o.width,f*=i?1:-1}}var D=Object.assign({position:s},p&&pr),B=c===!0?fr({x:f,y:v},N(r)):{x:f,y:v};if(f=B.x,v=B.y,i){var j;return Object.assign({},D,(j={},j[u]=P?"0":"",j[x]=O?"0":"",j.transform=(h.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",j))}return Object.assign({},D,(t={},t[u]=P?v+"px":"",t[x]=O?f+"px":"",t.transform="",t))}function dr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,a=o===void 0?!0:o,n=r.adaptive,l=n===void 0?!0:n,s=r.roundOffsets,i=s===void 0?!0:s,p={placement:X(t.placement),variation:le(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,lt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,lt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dr,data:{}};var $e={passive:!0};function vr(e){var t=e.state,r=e.instance,o=e.options,a=o.scroll,n=a===void 0?!0:a,l=o.resize,s=l===void 0?!0:l,i=N(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&p.forEach(function(c){c.addEventListener("scroll",r.update,$e)}),s&&i.addEventListener("resize",r.update,$e),function(){n&&p.forEach(function(c){c.removeEventListener("scroll",r.update,$e)}),s&&i.removeEventListener("resize",r.update,$e)}}const gr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vr,data:{}};var mr={left:"right",right:"left",bottom:"top",top:"bottom"};function we(e){return e.replace(/left|right|bottom|top/g,function(t){return mr[t]})}var br={start:"end",end:"start"};function ct(e){return e.replace(/start|end/g,function(t){return br[t]})}function _e(e){var t=N(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function Xe(e){return se(Q(e)).left+_e(e).scrollLeft}function yr(e,t){var r=N(e),o=Q(e),a=r.visualViewport,n=o.clientWidth,l=o.clientHeight,s=0,i=0;if(a){n=a.width,l=a.height;var p=xt();(p||!p&&t==="fixed")&&(s=a.offsetLeft,i=a.offsetTop)}return{width:n,height:l,x:s+Xe(e),y:i}}function hr(e){var t,r=Q(e),o=_e(e),a=(t=e.ownerDocument)==null?void 0:t.body,n=re(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=re(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-o.scrollLeft+Xe(e),i=-o.scrollTop;return G(a||r).direction==="rtl"&&(s+=re(r.clientWidth,a?a.clientWidth:0)-n),{width:n,height:l,x:s,y:i}}function Ke(e){var t=G(e),r=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+o)}function Pt(e){return["html","body","#document"].indexOf(K(e))>=0?e.ownerDocument.body:H(e)&&Ke(e)?e:Pt(ke(e))}function ue(e,t){var r;t===void 0&&(t=[]);var o=Pt(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),n=N(o),l=a?[n].concat(n.visualViewport||[],Ke(o)?o:[]):o,s=t.concat(l);return a?s:s.concat(ue(ke(l)))}function Be(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xr(e,t){var r=se(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function pt(e,t,r){return t===yt?Be(yr(e,r)):oe(t)?xr(t,r):Be(hr(Q(e)))}function Or(e){var t=ue(ke(e)),r=["absolute","fixed"].indexOf(G(e).position)>=0,o=r&&H(e)?ye(e):e;return oe(o)?t.filter(function(a){return oe(a)&&Ot(a,o)&&K(a)!=="body"}):[]}function Cr(e,t,r,o){var a=t==="clippingParents"?Or(e):[].concat(t),n=[].concat(a,[r]),l=n[0],s=n.reduce(function(i,p){var c=pt(e,p,o);return i.top=re(c.top,i.top),i.right=Pe(c.right,i.right),i.bottom=Pe(c.bottom,i.bottom),i.left=re(c.left,i.left),i},pt(e,l,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Rt(e){var t=e.reference,r=e.element,o=e.placement,a=o?X(o):null,n=o?le(o):null,l=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(a){case W:i={x:l,y:t.y-r.height};break;case F:i={x:l,y:t.y+t.height};break;case U:i={x:t.x+t.width,y:s};break;case S:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var p=a?qe(a):null;if(p!=null){var c=p==="y"?"height":"width";switch(n){case ne:i[p]=i[p]-(t[c]/2-r[c]/2);break;case ve:i[p]=i[p]+(t[c]/2-r[c]/2);break}}return i}function ge(e,t){t===void 0&&(t={});var r=t,o=r.placement,a=o===void 0?e.placement:o,n=r.strategy,l=n===void 0?e.strategy:n,s=r.boundary,i=s===void 0?Ht:s,p=r.rootBoundary,c=p===void 0?yt:p,d=r.elementContext,y=d===void 0?fe:d,f=r.altBoundary,b=f===void 0?!1:f,v=r.padding,g=v===void 0?0:v,O=$t(typeof g!="number"?g:wt(g,be)),P=y===fe?Ft:fe,x=e.rects.popper,u=e.elements[b?P:y],h=Cr(oe(u)?u:u.contextElement||Q(e.elements.popper),i,c,l),m=se(e.elements.reference),$=Rt({reference:m,element:x,strategy:"absolute",placement:a}),E=Be(Object.assign({},x,$)),k=y===fe?E:m,R={top:h.top-k.top+O.top,bottom:k.bottom-h.bottom+O.bottom,left:h.left-k.left+O.left,right:k.right-h.right+O.right},D=e.modifiersData.offset;if(y===fe&&D){var B=D[a];Object.keys(R).forEach(function(j){var z=[U,F].indexOf(j)>=0?1:-1,q=[W,F].indexOf(j)>=0?"y":"x";R[j]+=B[q]*z})}return R}function $r(e,t){t===void 0&&(t={});var r=t,o=r.placement,a=r.boundary,n=r.rootBoundary,l=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,p=i===void 0?ht:i,c=le(o),d=c?s?it:it.filter(function(b){return le(b)===c}):be,y=d.filter(function(b){return p.indexOf(b)>=0});y.length===0&&(y=d);var f=y.reduce(function(b,v){return b[v]=ge(e,{placement:v,boundary:a,rootBoundary:n,padding:l})[X(v)],b},{});return Object.keys(f).sort(function(b,v){return f[b]-f[v]})}function wr(e){if(X(e)===He)return[];var t=we(e);return[ct(e),t,ct(t)]}function Pr(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var a=r.mainAxis,n=a===void 0?!0:a,l=r.altAxis,s=l===void 0?!0:l,i=r.fallbackPlacements,p=r.padding,c=r.boundary,d=r.rootBoundary,y=r.altBoundary,f=r.flipVariations,b=f===void 0?!0:f,v=r.allowedAutoPlacements,g=t.options.placement,O=X(g),P=O===g,x=i||(P||!b?[we(g)]:wr(g)),u=[g].concat(x).reduce(function(ae,J){return ae.concat(X(J)===He?$r(t,{placement:J,boundary:c,rootBoundary:d,padding:p,flipVariations:b,allowedAutoPlacements:v}):J)},[]),h=t.rects.reference,m=t.rects.popper,$=new Map,E=!0,k=u[0],R=0;R=0,q=z?"width":"height",T=ge(t,{placement:D,boundary:c,rootBoundary:d,altBoundary:y,padding:p}),L=z?j?U:S:j?F:W;h[q]>m[q]&&(L=we(L));var _=we(L),A=[];if(n&&A.push(T[B]<=0),s&&A.push(T[L]<=0,T[_]<=0),A.every(function(ae){return ae})){k=D,E=!1;break}$.set(D,A)}if(E)for(var he=b?3:1,Ee=function(J){var pe=u.find(function(Oe){var Z=$.get(Oe);if(Z)return Z.slice(0,J).every(function(De){return De})});if(pe)return k=pe,"break"},ce=he;ce>0;ce--){var xe=Ee(ce);if(xe==="break")break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}}const Rr={name:"flip",enabled:!0,phase:"main",fn:Pr,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function dt(e){return[W,U,F,S].some(function(t){return e[t]>=0})}function kr(e){var t=e.state,r=e.name,o=t.rects.reference,a=t.rects.popper,n=t.modifiersData.preventOverflow,l=ge(t,{elementContext:"reference"}),s=ge(t,{altBoundary:!0}),i=ft(l,o),p=ft(s,a,n),c=dt(i),d=dt(p);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Er={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kr};function Dr(e,t,r){var o=X(e),a=[S,W].indexOf(o)>=0?-1:1,n=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=n[0],s=n[1];return l=l||0,s=(s||0)*a,[S,U].indexOf(o)>=0?{x:s,y:l}:{x:l,y:s}}function Ar(e){var t=e.state,r=e.options,o=e.name,a=r.offset,n=a===void 0?[0,0]:a,l=ht.reduce(function(c,d){return c[d]=Dr(d,t.rects,n),c},{}),s=l[t.placement],i=s.x,p=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=l}const Ir={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ar};function jr(e){var t=e.state,r=e.name;t.modifiersData[r]=Rt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Tr={name:"popperOffsets",enabled:!0,phase:"read",fn:jr,data:{}};function Mr(e){return e==="x"?"y":"x"}function Br(e){var t=e.state,r=e.options,o=e.name,a=r.mainAxis,n=a===void 0?!0:a,l=r.altAxis,s=l===void 0?!1:l,i=r.boundary,p=r.rootBoundary,c=r.altBoundary,d=r.padding,y=r.tether,f=y===void 0?!0:y,b=r.tetherOffset,v=b===void 0?0:b,g=ge(t,{boundary:i,rootBoundary:p,padding:d,altBoundary:c}),O=X(t.placement),P=le(t.placement),x=!P,u=qe(O),h=Mr(u),m=t.modifiersData.popperOffsets,$=t.rects.reference,E=t.rects.popper,k=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,R=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(m){if(n){var j,z=u==="y"?W:S,q=u==="y"?F:U,T=u==="y"?"height":"width",L=m[u],_=L+g[z],A=L-g[q],he=f?-E[T]/2:0,Ee=P===ne?$[T]:E[T],ce=P===ne?-E[T]:-$[T],xe=t.elements.arrow,ae=f&&xe?Ue(xe):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ct(),pe=J[z],Oe=J[q],Z=de(0,$[T],ae[T]),De=x?$[T]/2-he-Z-pe-R.mainAxis:Ee-Z-pe-R.mainAxis,kt=x?-$[T]/2+he+Z+Oe+R.mainAxis:ce+Z+Oe+R.mainAxis,Ae=t.elements.arrow&&ye(t.elements.arrow),Et=Ae?u==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,Ye=(j=D==null?void 0:D[u])!=null?j:0,Dt=L+De-Ye-Et,At=L+kt-Ye,Ge=de(f?Pe(_,Dt):_,L,f?re(A,At):A);m[u]=Ge,B[u]=Ge-L}if(s){var Je,It=u==="x"?W:S,jt=u==="x"?F:U,ee=m[h],Ce=h==="y"?"height":"width",Qe=ee+g[It],Ze=ee-g[jt],Ie=[W,S].indexOf(O)!==-1,et=(Je=D==null?void 0:D[h])!=null?Je:0,tt=Ie?Qe:ee-$[Ce]-E[Ce]-et+R.altAxis,rt=Ie?ee+$[Ce]+E[Ce]-et-R.altAxis:Ze,ot=f&&Ie?nr(tt,ee,rt):de(f?tt:Qe,ee,f?rt:Ze);m[h]=ot,B[h]=ot-ee}t.modifiersData[o]=B}}const zr={name:"preventOverflow",enabled:!0,phase:"main",fn:Br,requiresIfExists:["offset"]};function Lr(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Wr(e){return e===N(e)||!H(e)?_e(e):Lr(e)}function Sr(e){var t=e.getBoundingClientRect(),r=ie(t.width)/e.offsetWidth||1,o=ie(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Nr(e,t,r){r===void 0&&(r=!1);var o=H(t),a=H(t)&&Sr(t),n=Q(t),l=se(e,a,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((K(t)!=="body"||Ke(n))&&(s=Wr(t)),H(t)?(i=se(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):n&&(i.x=Xe(n))),{x:l.left+s.scrollLeft-i.x,y:l.top+s.scrollTop-i.y,width:l.width,height:l.height}}function Vr(e){var t=new Map,r=new Set,o=[];e.forEach(function(n){t.set(n.name,n)});function a(n){r.add(n.name);var l=[].concat(n.requires||[],n.requiresIfExists||[]);l.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&a(i)}}),o.push(n)}return e.forEach(function(n){r.has(n.name)||a(n)}),o}function Hr(e){var t=Vr(e);return Zt.reduce(function(r,o){return r.concat(t.filter(function(a){return a.phase===o}))},[])}function Fr(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ur(e){var t=e.reduce(function(r,o){var a=r[o.name];return r[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var ut={placement:"bottom",modifiers:[],strategy:"absolute"};function vt(){for(var e=arguments.length,t=new Array(e),r=0;r{const{classes:t}=e;return Se({root:["root"]},Kr,t)},eo={},to=I.forwardRef(function(t,r){var o;const{anchorEl:a,children:n,direction:l,disablePortal:s,modifiers:i,open:p,placement:c,popperOptions:d,popperRef:y,slotProps:f={},slots:b={},TransitionProps:v}=t,g=me(t,Yr),O=I.useRef(null),P=je(O,r),x=I.useRef(null),u=je(x,y),h=I.useRef(u);at(()=>{h.current=u},[u]),I.useImperativeHandle(y,()=>x.current,[]);const m=Jr(c,l),[$,E]=I.useState(m),[k,R]=I.useState(ze(a));I.useEffect(()=>{x.current&&x.current.forceUpdate()}),I.useEffect(()=>{a&&R(ze(a))},[a]),at(()=>{if(!k||!p)return;const q=_=>{E(_.placement)};let T=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:_})=>{q(_)}}];i!=null&&(T=T.concat(i)),d&&d.modifiers!=null&&(T=T.concat(d.modifiers));const L=Xr(k,O.current,M({placement:m},d,{modifiers:T}));return h.current(L),()=>{L.destroy(),h.current(null)}},[k,s,i,p,d,m]);const D={placement:$};v!==null&&(D.TransitionProps=v);const B=Zr(t),j=(o=b.root)!=null?o:"div",z=Bt({elementType:j,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:B.root});return Y.jsx(j,M({},z,{children:typeof n=="function"?n(D):n}))}),ro=I.forwardRef(function(t,r){const{anchorEl:o,children:a,container:n,direction:l="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:p,open:c,placement:d="bottom",popperOptions:y=eo,popperRef:f,style:b,transition:v=!1,slotProps:g={},slots:O={}}=t,P=me(t,Gr),[x,u]=I.useState(!0),h=()=>{u(!1)},m=()=>{u(!0)};if(!i&&!c&&(!v||x))return null;let $;if(n)$=n;else if(o){const R=ze(o);$=R&&Qr(R)?nt(R).body:nt(null).body}const E=!c&&i&&(!v||x)?"none":void 0,k=v?{in:c,onEnter:h,onExited:m}:void 0;return Y.jsx(Mt,{disablePortal:s,container:$,children:Y.jsx(to,M({anchorEl:o,direction:l,disablePortal:s,modifiers:p,ref:r,open:v?!x:c,placement:d,popperOptions:y,popperRef:f,slotProps:g,slots:O},P,{style:M({position:"fixed",top:0,left:0,display:E},b),TransitionProps:k,children:a}))})}),oo=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ao=Re(ro,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$o=I.forwardRef(function(t,r){var o;const a=mt(),n=Ne({props:t,name:"MuiPopper"}),{anchorEl:l,component:s,components:i,componentsProps:p,container:c,disablePortal:d,keepMounted:y,modifiers:f,open:b,placement:v,popperOptions:g,popperRef:O,transition:P,slots:x,slotProps:u}=n,h=me(n,oo),m=(o=x==null?void 0:x.root)!=null?o:i==null?void 0:i.Root,$=M({anchorEl:l,container:c,disablePortal:d,keepMounted:y,modifiers:f,open:b,placement:v,popperOptions:g,popperRef:O,transition:P},h);return Y.jsx(ao,M({as:s,direction:a==null?void 0:a.direction,slots:{root:m},slotProps:u??p},$,{ref:r}))});function no(e){return Le("MuiIconButton",e)}const io=We("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),so=["edge","children","className","color","disabled","disableFocusRipple","size"],lo=e=>{const{classes:t,disabled:r,color:o,edge:a,size:n}=e,l={root:["root",r&&"disabled",o!=="default"&&`color${C(o)}`,a&&`edge${C(a)}`,`size${C(n)}`]};return Se(l,no,t)},co=Re(Te,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${C(r.color)}`],r.edge&&t[`edge${C(r.edge)}`],t[`size${C(r.size)}`]]}})(({theme:e,ownerState:t})=>M({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:V(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const o=(r=(e.vars||e).palette)==null?void 0:r[t.color];return M({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&M({color:o==null?void 0:o.main},!t.disableRipple&&{"&:hover":M({},o&&{backgroundColor:e.vars?`rgba(${o.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:V(o.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${io.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),wo=I.forwardRef(function(t,r){const o=Ne({props:t,name:"MuiIconButton"}),{edge:a=!1,children:n,className:l,color:s="default",disabled:i=!1,disableFocusRipple:p=!1,size:c="medium"}=o,d=me(o,so),y=M({},o,{edge:a,color:s,disabled:i,disableFocusRipple:p,size:c}),f=lo(y);return Y.jsx(co,M({className:te(f.root,l),centerRipple:!0,focusRipple:!p,disabled:i,ref:r},d,{ownerState:y,children:n}))}),po=zt(Y.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function fo(e){return Le("MuiChip",e)}const w=We("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),uo=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],vo=e=>{const{classes:t,disabled:r,size:o,color:a,iconColor:n,onDelete:l,clickable:s,variant:i}=e,p={root:["root",i,r&&"disabled",`size${C(o)}`,`color${C(a)}`,s&&"clickable",s&&`clickableColor${C(a)}`,l&&"deletable",l&&`deletableColor${C(a)}`,`${i}${C(a)}`],label:["label",`label${C(o)}`],avatar:["avatar",`avatar${C(o)}`,`avatarColor${C(a)}`],icon:["icon",`icon${C(o)}`,`iconColor${C(n)}`],deleteIcon:["deleteIcon",`deleteIcon${C(o)}`,`deleteIconColor${C(a)}`,`deleteIcon${C(i)}Color${C(a)}`]};return Se(p,fo,t)},go=Re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:o,iconColor:a,clickable:n,onDelete:l,size:s,variant:i}=r;return[{[`& .${w.avatar}`]:t.avatar},{[`& .${w.avatar}`]:t[`avatar${C(s)}`]},{[`& .${w.avatar}`]:t[`avatarColor${C(o)}`]},{[`& .${w.icon}`]:t.icon},{[`& .${w.icon}`]:t[`icon${C(s)}`]},{[`& .${w.icon}`]:t[`iconColor${C(a)}`]},{[`& .${w.deleteIcon}`]:t.deleteIcon},{[`& .${w.deleteIcon}`]:t[`deleteIcon${C(s)}`]},{[`& .${w.deleteIcon}`]:t[`deleteIconColor${C(o)}`]},{[`& .${w.deleteIcon}`]:t[`deleteIcon${C(i)}Color${C(o)}`]},t.root,t[`size${C(s)}`],t[`color${C(o)}`],n&&t.clickable,n&&o!=="default"&&t[`clickableColor${C(o)})`],l&&t.deletable,l&&o!=="default"&&t[`deletableColor${C(o)}`],t[i],t[`${i}${C(o)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return M({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${w.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${w.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${w.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${w.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${w.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${w.icon}`]:M({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&M({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${w.deleteIcon}`]:M({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:V(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:V(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:V(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>M({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>M({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${w.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${w.avatar}`]:{marginLeft:4},[`& .${w.avatarSmall}`]:{marginLeft:2},[`& .${w.icon}`]:{marginLeft:4},[`& .${w.iconSmall}`]:{marginLeft:2},[`& .${w.deleteIcon}`]:{marginRight:5},[`& .${w.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:V(e.palette[t.color].main,.7)}`,[`&.${w.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:V(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:V(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${w.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:V(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),mo=Re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${C(o)}`]]}})(({ownerState:e})=>M({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function gt(e){return e.key==="Backspace"||e.key==="Delete"}const Po=I.forwardRef(function(t,r){const o=Ne({props:t,name:"MuiChip"}),{avatar:a,className:n,clickable:l,color:s="default",component:i,deleteIcon:p,disabled:c=!1,icon:d,label:y,onClick:f,onDelete:b,onKeyDown:v,onKeyUp:g,size:O="medium",variant:P="filled",tabIndex:x,skipFocusWhenDisabled:u=!1}=o,h=me(o,uo),m=I.useRef(null),$=je(m,r),E=A=>{A.stopPropagation(),b&&b(A)},k=A=>{A.currentTarget===A.target&>(A)&&A.preventDefault(),v&&v(A)},R=A=>{A.currentTarget===A.target&&(b&>(A)?b(A):A.key==="Escape"&&m.current&&m.current.blur()),g&&g(A)},D=l!==!1&&f?!0:l,B=D||b?Te:i||"div",j=M({},o,{component:B,disabled:c,size:O,color:s,iconColor:I.isValidElement(d)&&d.props.color||s,onDelete:!!b,clickable:D,variant:P}),z=vo(j),q=B===Te?M({component:i||"div",focusVisibleClassName:z.focusVisible},b&&{disableRipple:!0}):{};let T=null;b&&(T=p&&I.isValidElement(p)?I.cloneElement(p,{className:te(p.props.className,z.deleteIcon),onClick:E}):Y.jsx(po,{className:te(z.deleteIcon),onClick:E}));let L=null;a&&I.isValidElement(a)&&(L=I.cloneElement(a,{className:te(z.avatar,a.props.className)}));let _=null;return d&&I.isValidElement(d)&&(_=I.cloneElement(d,{className:te(z.icon,d.props.className)})),Y.jsxs(go,M({as:B,className:te(z.root,n),disabled:D&&c?!0:void 0,onClick:f,onKeyDown:k,onKeyUp:R,ref:$,tabIndex:u&&c?-1:x,ownerState:j},q,h,{children:[L||_,Y.jsx(mo,{className:te(z.label),ownerState:j,children:y}),T]}))});export{Po as C,wo as I,$o as P}; diff --git a/storybook/assets/Color-KGDBMAHA-20AvhpEt.js b/storybook/assets/Color-KGDBMAHA-20AvhpEt.js new file mode 100644 index 0000000..c9b9837 --- /dev/null +++ b/storybook/assets/Color-KGDBMAHA-20AvhpEt.js @@ -0,0 +1 @@ +import{ae as $,a2 as ie,a0 as Me,w as Ce,af as $e,ag as Oe}from"./DocsRenderer-PKQXORMH-rcj42PMV.js";import{R as h,r as m,g as ue}from"./index-CTjT7uj6.js";import{a as Ie,i as fe}from"./_overArg-duoZdnBA.js";import{i as Ne}from"./_baseIteratee-8_jeTHtL.js";import"./iframe-BOnrVhc9.js";import"../sb-preview/runtime.js";import"./react-18-CaMpY7kV.js";import"./index-CYM-y3Gt.js";import"./index-D-8MO0q_.js";import"./isNativeReflectConstruct-CJAgTEKr.js";import"./_getPrototype-C87Y6mw8.js";import"./index-DrFu-skq.js";function I(){return(I=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var R=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(te(o.current,p,l.current)):M(!1)},j=function(){return M(!1)};function M(p){var b=c.current,w=V(o.current),E=p?w.addEventListener:w.removeEventListener;E(b?"touchmove":"mousemove",x),E(b?"touchend":"mouseup",j)}return[function(p){var b=p.nativeEvent,w=o.current;if(w&&(ne(b),!function(k,O){return O&&!F(k)}(b,c.current)&&w)){if(F(b)){c.current=!0;var E=b.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),a(te(w,b,l.current)),M(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),s({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},M]},[s,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",I({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),T=function(e){return e.filter(Boolean).join(" ")},Z=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=T(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},je=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},ze=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:je(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},He=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:y(255*[r,l,s,s,c,r][i]),g:y(255*[c,r,r,l,s,s][i]),b:y(255*[s,s,c,r,r,l][i]),a:y(o,2)}},Te=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(y(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=T(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Q,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:R(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(Z,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Q,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:R(t.s+100*o.left,0,100),v:R(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(Z,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,l.current.color)){var i=e.toHsva(t);l.current={hsva:i,color:t},s(i)}},[t,e]),m.useEffect(function(){var i;ve(a,l.current.hsva)||e.equal(i=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){s(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},re=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!re.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,re.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},Xe=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);xe(l);var c=ye(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",I({},s,{ref:l,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},De={defaultColor:"000",toHsva:Re,fromHsva:function(e){return He({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},We=function(e){return h.createElement(Xe,I({},e,{colorModel:De}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=T(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Q,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:R(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(Z,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=J(e,["className","colorModel","color","onChange"]),l=m.useRef(null);xe(l);var c=ye(n,o,a),i=c[0],d=c[1],f=T(["react-colorful",t]);return h.createElement("div",I({},s,{ref:l,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:ze,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,I({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Te,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,I({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const H=Ye,ke={};for(const e of Object.keys(H))ke[H[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,c;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=s/(a+o):c=s/(2-a-o),[l,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,c=e[2]/255,i=Math.max(s,l,c),d=i-Math.min(s,l,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(s),n=f(l),r=f(c),s===i?o=r-n:l===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(H)){const a=H[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,c[i]=s*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,s];case 1:return[l,r,s];case 2:return[s,r,c];case 3:return[s,l,r];case 4:return[c,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const c=n+a*(l-n);let i,d,f;switch(s){default:case 6:case 0:i=l,d=c,f=n;break;case 1:i=c,d=l,f=n;break;case 2:i=n,d=l,f=c;break;case 3:i=n,d=c,f=l;break;case 4:i=c,d=n,f=l;break;case 5:i=l,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,c=o**3,i=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,s=i>.008856?i:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,c;return s<1?l=a/(1-s):l=0,s<=0?c=0:o===t?c=(n-r)/s%6:o===n?c=2+(r-t)/s:c=4+(t-n)/s,c/=6,c%=1,[c*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const X=_e;function Qe(){const e={},t=Object.keys(X);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{N[e]={},Object.defineProperty(N[e],"channels",{value:U[e].channels}),Object.defineProperty(N[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];N[e][r]=st(o),N[e][r].raw=at(o)})});var lt=N;const _=ue(lt);var ct=Ie,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,oe=fe,yt=Ne,ae=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return ae;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?ae:+e}var Mt=Et,Ct=fe,W=ut,se=Mt,$t="Expected a function",Ot=Math.max,It=Math.min;function Nt(e,t,n){var r,o,a,s,l,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function x(v){var C=r,z=o;return r=o=void 0,i=v,s=e.apply(z,C),s}function j(v){return i=v,l=setTimeout(b,t),d?x(v):s}function M(v){var C=v-c,z=v-i,ee=t-C;return f?It(ee,a-z):ee}function p(v){var C=v-c,z=v-i;return c===void 0||C>=t||C<0||f&&z>=a}function b(){var v=W();if(p(v))return w(v);l=setTimeout(b,M(v))}function w(v){return l=void 0,g&&r?x(v):(r=o=void 0,s)}function E(){l!==void 0&&clearTimeout(l),i=0,r=c=o=l=void 0}function k(){return l===void 0?s:w(W())}function O(){var v=W(),C=p(v);if(r=arguments,o=this,c=v,C){if(l===void 0)return j(c);if(f)return clearTimeout(l),l=setTimeout(b,t),x(c)}return l===void 0&&(l=setTimeout(b,t)),s}return O.cancel=E,O.flush=k,O}var St=Nt;const Rt=ue(St);var jt=$.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),zt=$(ie)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),Ft=$.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Ht=$(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Tt=$.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Pt=$.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Lt=`url('data:image/svg+xml;charset=utf-8,')`,le=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Lt}, linear-gradient(#fff, #fff)`;return h.createElement(Pt,{...n,style:{...t,backgroundImage:r}})},qt=$(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Bt=$($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),Xt=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Dt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Wt=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Kt=/^\s*#?([0-9a-f]{3})\s*$/i,Vt={hex:We,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(Xt);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},S=e=>{if(!e)return;let t=!0;if(Dt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.rgb.hsl([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([s,l,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([s,l,c]).toLowerCase()}`}}if(Wt.test(e)){let[s,l,c,i]=ce(e),[d,f,g]=_.hsl.rgb([s,l,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([s,l,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([s,l,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},At=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return q[n];if(n!=="hex")return(t==null?void 0:t[n])||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Kt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Gt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>S(n)),[s,l]=m.useState((o==null?void 0:o.colorSpace)||"hex");m.useEffect(()=>{let f=e||"",g=S(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let c=m.useMemo(()=>At(n,o,s).toLowerCase(),[n,o,s]),i=m.useCallback(f=>{let g=S(f),x=(g==null?void 0:g.value)||f||"";r(x),x===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(s)+1;f>=L.length&&(f=0),l(L[f]);let g=(o==null?void 0:o[L[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:s,cycleColorSpace:d}},D=e=>e.replace(/\s*/,"").toLowerCase(),Ut=(e,t,n)=>{let[r,o]=m.useState(t!=null&&t.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(l=>typeof l=="string"?S(l):l.title?{...S(l.color),keyword:l.title}:S(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=m.useCallback(l=>{l!=null&&l.valid&&(a.some(c=>D(c[n])===D(l[n]))||o(c=>c.concat(l)))},[n,a]);return{presets:a,addPreset:s}},Yt=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1,argType:l})=>{var E;let c=m.useCallback(Rt(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:x,cycleColorSpace:j}=Gt(t,c),{presets:M,addPreset:p}=Ut(a,g,x),b=Vt[x],w=!!((E=l==null?void 0:l.table)!=null&&E.readonly);return h.createElement(jt,{"aria-readonly":w},h.createElement(zt,{startOpen:s,trigger:w?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(Ft,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),M.length>0&&h.createElement(Tt,null,M.map((k,O)=>h.createElement(ie,{key:`${k.value}-${O}`,hasChrome:!1,tooltip:h.createElement(Ht,{note:k.keyword||k.value})},h.createElement(le,{value:k[x],active:g&&D(k[x])===D(g[x]),onClick:()=>f(k.value)})))))},h.createElement(le,{value:d,style:{margin:4}})),h.createElement(qt,{id:Oe(e),value:i,onChange:k=>f(k.target.value),onFocus:k=>k.target.select(),readOnly:w,placeholder:"Choose color..."}),i?h.createElement(Bt,{onClick:j}):null)},un=Yt;export{Yt as ColorControl,un as default}; diff --git a/storybook/assets/DatePicker.stories-RHnsKfw2.js b/storybook/assets/DatePicker.stories-RHnsKfw2.js new file mode 100644 index 0000000..0056b48 --- /dev/null +++ b/storybook/assets/DatePicker.stories-RHnsKfw2.js @@ -0,0 +1,3 @@ +import{Z as oe,$ as te,a0 as ae,o as re,p as ne,s as K,T as se,Y as C,_ as I,j as O,c as le,q as ie,n as T,W as ce,F as ue,h as de,k as pe,l as x,B as me,m as fe}from"./Wrapper-DXvvO_B0.js";import{r}from"./index-CTjT7uj6.js";import{c as be,e as z}from"./array-D74jl773.js";import{h as De,i as j,j as N,y as A,z as ye,n as Pe,A as $,B as he,s as ke,b as ge,c as R,d as Te,e as xe,f as Fe,g as Me,E as Oe,o as X,p as we,q as Z,v as ve,w as Ee,x as Ce,t as S}from"./errorHandler-ulv3bqY5.js";import{_ as i}from"./isNativeReflectConstruct-CJAgTEKr.js";import{P as e}from"./index-BzjuzjN8.js";import{v as _,r as h}from"./dateViewRenderers-B8uYg_Kt.js";import{T as je}from"./TextField-4ii8jFMh.js";import{u as Re,r as G}from"./Select-DSn46qfv.js";import{u as Se}from"./useStaticPicker-DQGfQM-K.js";import{L as _e}from"./LinearProgress-CIiBqE01.js";import"./v4-CQkTLCs1.js";import"./_baseIteratee-8_jeTHtL.js";import"./_overArg-duoZdnBA.js";import"./Chip-C6MsZLfs.js";import"./ownerWindow-DIR61fab.js";import"./createSvgIcon-DLhoJ5Fi.js";import"./useId-BjRAp5Eo.js";import"./index-BjNUr1t6.js";import"./useControlled-5JjQu8rW.js";import"./useFormControl-Baz_U5RD.js";import"./FormHelperText-h4EvFgt8.js";import"./InputBase-DuDaiXcF.js";import"./isMuiElement-BqzHBgRb.js";import"./createStyled-D6A6HRKR.js";import"./colorManipulator-BcfljvUw.js";import"./index-CYM-y3Gt.js";function Ie(s,o){oe(2,arguments);var l=ae(o);return te(s,-l)}function Ne(s){return re("MuiDatePickerToolbar",s)}ne("MuiDatePickerToolbar",["root","title"]);const Ae=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],Ve=s=>{const{classes:o}=s;return ie({root:["root"],title:["title"]},Ne,o)},Ue=K(De,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(s,o)=>o.root})({}),We=K(se,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(s,o)=>o.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),qe=r.forwardRef(function(o,l){const n=C({props:o,name:"MuiDatePickerToolbar"}),{value:a,isLandscape:t,toolbarFormat:u,toolbarPlaceholder:c="––",views:p,className:f}=n,m=I(n,Ae),d=j(),b=N(),y=Ve(n),P=r.useMemo(()=>{if(!a)return c;const D=A(d,{format:u,views:p},!0);return d.formatByString(a,D)},[a,u,c,d,p]),g=n;return O.jsx(Ue,i({ref:l,toolbarTitle:b.datePickerToolbarTitle,isLandscape:t,className:le(y.root,f)},m,{children:O.jsx(We,{variant:"h4",align:t?"left":"center",ownerState:g,className:y.title,children:P})}))});function V(s,o){const l=j(),n=ye(),a=C({props:s,name:o}),t=r.useMemo(()=>{var u;return((u=a.localeText)==null?void 0:u.toolbarTitle)==null?a.localeText:i({},a.localeText,{datePickerToolbarTitle:a.localeText.toolbarTitle})},[a.localeText]);return i({},a,{localeText:t},Pe({views:a.views,openTo:a.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:a.disableFuture??!1,disablePast:a.disablePast??!1,minDate:$(l,a.minDate,n.minDate),maxDate:$(l,a.maxDate,n.maxDate),slots:i({toolbar:qe},a.slots)})}const Be=s=>{const o=he(s),{forwardedProps:l,internalProps:n}=ke(o,"date");return ge({forwardedProps:l,internalProps:n,valueManager:R,fieldValueManager:Te,validator:_,valueType:"date"})},Le=["slots","slotProps","InputProps","inputProps"],J=r.forwardRef(function(o,l){const n=C({props:o,name:"MuiDateField"}),{slots:a,slotProps:t,InputProps:u,inputProps:c}=n,p=I(n,Le),f=n,m=(a==null?void 0:a.textField)??(o.enableAccessibleFieldDOMStructure?xe:je),d=Re({elementType:m,externalSlotProps:t==null?void 0:t.textField,externalForwardedProps:p,additionalProps:{ref:l},ownerState:f});d.inputProps=i({},c,d.inputProps),d.InputProps=i({},u,d.InputProps);const b=Be(d),y=Fe(b),P=Me(i({},y,{slots:a,slotProps:t}));return O.jsx(m,i({},P))}),U=r.forwardRef(function(o,l){var f,m;const n=N(),a=j(),t=V(o,"MuiDesktopDatePicker"),u=i({day:h,month:h,year:h},t.viewRenderers),c=i({},t,{viewRenderers:u,format:A(a,t,!1),yearsPerRow:t.yearsPerRow??4,slots:i({openPickerIcon:Oe,field:J},t.slots),slotProps:i({},t.slotProps,{field:d=>{var b;return i({},G((b=t.slotProps)==null?void 0:b.field,d),X(t),{ref:l})},toolbar:i({hidden:!0},(f=t.slotProps)==null?void 0:f.toolbar)})}),{renderPicker:p}=we({props:c,valueManager:R,valueType:"date",getOpenDialogAriaText:((m=c.localeText)==null?void 0:m.openDatePickerDialogue)??n.openDatePickerDialogue,validator:_});return p()});U.propTypes={autoFocus:e.bool,className:e.string,closeOnSelect:e.bool,dayOfWeekFormatter:e.func,defaultValue:e.object,disabled:e.bool,disableFuture:e.bool,disableHighlightToday:e.bool,disableOpenPicker:e.bool,disablePast:e.bool,displayWeekNumber:e.bool,enableAccessibleFieldDOMStructure:e.any,fixedWeekNumber:e.number,format:e.string,formatDensity:e.oneOf(["dense","spacious"]),inputRef:Z,label:e.node,loading:e.bool,localeText:e.object,maxDate:e.object,minDate:e.object,monthsPerRow:e.oneOf([3,4]),name:e.string,onAccept:e.func,onChange:e.func,onClose:e.func,onError:e.func,onMonthChange:e.func,onOpen:e.func,onSelectedSectionsChange:e.func,onViewChange:e.func,onYearChange:e.func,open:e.bool,openTo:e.oneOf(["day","month","year"]),orientation:e.oneOf(["landscape","portrait"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.object,renderLoading:e.func,selectedSections:e.oneOfType([e.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),e.number]),shouldDisableDate:e.func,shouldDisableMonth:e.func,shouldDisableYear:e.func,showDaysOutsideCurrentMonth:e.bool,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),timezone:e.string,value:e.object,view:e.oneOf(["day","month","year"]),viewRenderers:e.shape({day:e.func,month:e.func,year:e.func}),views:e.arrayOf(e.oneOf(["day","month","year"]).isRequired),yearsPerRow:e.oneOf([3,4])};const W=r.forwardRef(function(o,l){var f,m;const n=N(),a=j(),t=V(o,"MuiMobileDatePicker"),u=i({day:h,month:h,year:h},t.viewRenderers),c=i({},t,{viewRenderers:u,format:A(a,t,!1),slots:i({field:J},t.slots),slotProps:i({},t.slotProps,{field:d=>{var b;return i({},G((b=t.slotProps)==null?void 0:b.field,d),X(t),{ref:l})},toolbar:i({hidden:!1},(f=t.slotProps)==null?void 0:f.toolbar)})}),{renderPicker:p}=ve({props:c,valueManager:R,valueType:"date",getOpenDialogAriaText:((m=c.localeText)==null?void 0:m.openDatePickerDialogue)??n.openDatePickerDialogue,validator:_});return p()});W.propTypes={autoFocus:e.bool,className:e.string,closeOnSelect:e.bool,dayOfWeekFormatter:e.func,defaultValue:e.object,disabled:e.bool,disableFuture:e.bool,disableHighlightToday:e.bool,disableOpenPicker:e.bool,disablePast:e.bool,displayWeekNumber:e.bool,enableAccessibleFieldDOMStructure:e.any,fixedWeekNumber:e.number,format:e.string,formatDensity:e.oneOf(["dense","spacious"]),inputRef:Z,label:e.node,loading:e.bool,localeText:e.object,maxDate:e.object,minDate:e.object,monthsPerRow:e.oneOf([3,4]),name:e.string,onAccept:e.func,onChange:e.func,onClose:e.func,onError:e.func,onMonthChange:e.func,onOpen:e.func,onSelectedSectionsChange:e.func,onViewChange:e.func,onYearChange:e.func,open:e.bool,openTo:e.oneOf(["day","month","year"]),orientation:e.oneOf(["landscape","portrait"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.object,renderLoading:e.func,selectedSections:e.oneOfType([e.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),e.number]),shouldDisableDate:e.func,shouldDisableMonth:e.func,shouldDisableYear:e.func,showDaysOutsideCurrentMonth:e.bool,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),timezone:e.string,value:e.object,view:e.oneOf(["day","month","year"]),viewRenderers:e.shape({day:e.func,month:e.func,year:e.func}),views:e.arrayOf(e.oneOf(["day","month","year"]).isRequired),yearsPerRow:e.oneOf([3,4])};const ze=["desktopModeMediaQuery"],$e=r.forwardRef(function(o,l){const n=C({props:o,name:"MuiDatePicker"}),{desktopModeMediaQuery:a=Ce}=n,t=I(n,ze);return Ee(a,{defaultMatches:!0})?O.jsx(U,i({ref:l},t)):O.jsx(W,i({ref:l},t))});function Ye({field:{onChange:s,...o},form:{isSubmitting:l,touched:n,errors:a,setFieldValue:t,setFieldError:u,setFieldTouched:c},textField:{helperText:p,onBlur:f,...m}={},disabled:d,label:b,onChange:y,onError:P,...g}){const D=T(a,o.name),k=T(n,o.name)&&!!D,F=()=>{c(o.name,!0,!0)};return{disabled:d??l,onChange:y??(M=>{c(o.name,!0,!1),t(o.name,M,!0)}),onError:P??S(D,o.name,u),slotProps:{textField:{error:k,helperText:k?D:p,label:b,onBlur:f??F,...m}},...o,...g}}function w(s){return r.createElement($e,{...Ye(s)})}w.displayName="FormikMUIDatePicker";w.__docgenInfo={description:"",methods:[],displayName:"FormikMUIDatePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};function He({field:{onChange:s,...o},form:{isSubmitting:l,touched:n,errors:a,setFieldValue:t,setFieldError:u,setFieldTouched:c},textField:{helperText:p,onBlur:f,...m}={},disabled:d,label:b,onChange:y,onError:P,...g}){const D=T(a,o.name),k=T(n,o.name)&&!!D,F=()=>{c(o.name,!0,!0)};return{disabled:d??l,onChange:y??(M=>{c(o.name,!0,!1),t(o.name,M,!0)}),onError:P??S(D,o.name,u),slotProps:{textField:{error:k,helperText:k?D:p,label:b,onBlur:f??F,...m}},...o,...g}}function E(s){return r.createElement(U,{...He(s)})}E.displayName="FormikMUIDesktopDatePicker";E.__docgenInfo={description:"",methods:[],displayName:"FormikMUIDesktopDatePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};function Qe({field:{onChange:s,...o},form:{isSubmitting:l,touched:n,errors:a,setFieldValue:t,setFieldError:u,setFieldTouched:c},textField:{helperText:p,onBlur:f,...m}={},disabled:d,label:b,onChange:y,onError:P,...g}){const D=T(a,o.name),k=T(n,o.name)&&!!D,F=()=>{c(o.name,!0,!0)};return{disabled:d??l,onChange:y??(M=>{c(o.name,!0,!1),t(o.name,M,!0)}),onError:P??S(D,o.name,u),slotProps:{textField:{error:k,helperText:k?D:p,label:b,onBlur:f??F,...m}},...o,...g}}function q(s){return r.createElement(W,{...Qe(s)})}q.displayName="FormikMUIMobileDatePicker";q.__docgenInfo={description:"",methods:[],displayName:"FormikMUIMobileDatePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const ee=r.forwardRef(function(o,l){var p;const n=V(o,"MuiStaticDatePicker"),a=n.displayStaticWrapperAs??"mobile",t=i({day:h,month:h,year:h},n.viewRenderers),u=i({},n,{viewRenderers:t,displayStaticWrapperAs:a,yearsPerRow:n.yearsPerRow??(a==="mobile"?3:4),slotProps:i({},n.slotProps,{toolbar:i({hidden:a==="desktop"},(p=n.slotProps)==null?void 0:p.toolbar)})}),{renderPicker:c}=Se({props:u,valueManager:R,valueType:"date",validator:_,ref:l});return c()});ee.propTypes={autoFocus:e.bool,className:e.string,dayOfWeekFormatter:e.func,defaultValue:e.object,disabled:e.bool,disableFuture:e.bool,disableHighlightToday:e.bool,disablePast:e.bool,displayStaticWrapperAs:e.oneOf(["desktop","mobile"]),displayWeekNumber:e.bool,fixedWeekNumber:e.number,loading:e.bool,localeText:e.object,maxDate:e.object,minDate:e.object,monthsPerRow:e.oneOf([3,4]),onAccept:e.func,onChange:e.func,onClose:e.func,onError:e.func,onMonthChange:e.func,onViewChange:e.func,onYearChange:e.func,openTo:e.oneOf(["day","month","year"]),orientation:e.oneOf(["landscape","portrait"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.object,renderLoading:e.func,shouldDisableDate:e.func,shouldDisableMonth:e.func,shouldDisableYear:e.func,showDaysOutsideCurrentMonth:e.bool,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),timezone:e.string,value:e.object,view:e.oneOf(["day","month","year"]),viewRenderers:e.shape({day:e.func,month:e.func,year:e.func}),views:e.arrayOf(e.oneOf(["day","month","year"]).isRequired),yearsPerRow:e.oneOf([3,4])};function Ke({field:{onChange:s,...o},form:{isSubmitting:l,errors:n,setFieldValue:a,setFieldError:t,setFieldTouched:u},disabled:c,onChange:p,onError:f,...m}){const d=T(n,o.name);return{disabled:c??l,onChange:p??(y=>{u(o.name,!0,!1),a(o.name,y,!0)}),onError:f??S(d,o.name,t),...o,...m}}function B(s){return r.createElement(ee,{...Ke(s)})}B.displayName="FormikMUIStaticDatePicker";B.__docgenInfo={description:"",methods:[],displayName:"FormikMUIStaticDatePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const Xe=be().shape({date:z().required(),futureDate:z().required().min(Ie(new Date,1))}),Oo={title:"X-Mui/DatePicker",component:w,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},Ze=()=>r.createElement(ce,null,r.createElement(ue,{initialValues:{date:new Date},validationSchema:Xe,onSubmit:(s,{setSubmitting:o})=>{setTimeout(()=>{o(!1),de("submit")(s)},2e3)}},({submitForm:s,isSubmitting:o,values:l})=>r.createElement(pe,null,r.createElement(x,{component:w,label:"Date",name:"date",textField:{helperText:"Helper text"}}),r.createElement("br",null),r.createElement("br",null),r.createElement(x,{component:w,label:"Date filled",name:"dateFilled",textField:{variant:"filled"}}),r.createElement("br",null),r.createElement("br",null),r.createElement(x,{component:E,label:"Desktop date picker",name:"desktopDate",format:"MM/dd/yyyy"}),r.createElement("br",null),r.createElement("br",null),r.createElement(x,{component:E,label:"Future Desktop date picker",name:"futureDate",format:"MM/dd/yyyy"}),r.createElement("br",null),r.createElement("br",null),r.createElement(x,{component:q,label:"Mobile date picker",name:"mobileDate",format:"MM/dd/yyyy"}),r.createElement("br",null),r.createElement("br",null),r.createElement(x,{component:B,label:"Static date picker",name:"staticDate",format:"MM/dd/yyyy"}),r.createElement("br",null),o&&r.createElement(_e,null),r.createElement("br",null),r.createElement(me,{variant:"contained",color:"primary",disabled:o,onClick:s},"Submit"),r.createElement("br",null),r.createElement(fe,{values:l})))),v={render:Ze};var Y,H,Q;v.parameters={...v.parameters,docs:{...(Y=v.parameters)==null?void 0:Y.docs,source:{originalSource:`{ + render: Template +}`,...(Q=(H=v.parameters)==null?void 0:H.docs)==null?void 0:Q.source}}};const wo=["Default"];export{v as Default,wo as __namedExportsOrder,Oo as default}; diff --git a/storybook/assets/DateTimePicker.stories-Cu1X5d-B.js b/storybook/assets/DateTimePicker.stories-Cu1X5d-B.js new file mode 100644 index 0000000..6501e24 --- /dev/null +++ b/storybook/assets/DateTimePicker.stories-Cu1X5d-B.js @@ -0,0 +1,3 @@ +import{s as F,y as Wt,u as De,_ as z,j as p,c as W,q as ee,Y as le,p as ce,o as de,A as bt,t as ft,D as At,U as Be,n as J,W as $t,F as Vt,h as zt,k as _t,l as fe,B as Ht,m as Ut}from"./Wrapper-DXvvO_B0.js";import{r as i}from"./index-CTjT7uj6.js";import{c as Yt,e as Xt}from"./array-D74jl773.js";import{U as qt,s as Kt,b as Qt,c as Ne,d as Gt,e as Zt,f as Jt,g as eo,j as Ce,V as Le,W as to,X as oo,h as ro,Y as ao,i as Pe,k as no,T as he,m as Fe,z as so,n as io,A as rt,Z as lo,_ as co,$ as ve,a0 as uo,E as mo,o as ht,p as po,q as vt,a1 as bo,I as ge,v as fo,w as ho,x as vo,t as We}from"./errorHandler-ulv3bqY5.js";import{_ as l}from"./isNativeReflectConstruct-CJAgTEKr.js";import{P as o}from"./index-BzjuzjN8.js";import{u as ke}from"./index-BjNUr1t6.js";import{u as se,a as go,r as Oe}from"./Select-DSn46qfv.js";import{d as gt,o as Tt,a as To}from"./ownerWindow-DIR61fab.js";import{c as xt}from"./createSvgIcon-DLhoJ5Fi.js";import{v as xo,p as yo,P as Do,a as Y,r as Co,b as at,e as yt,m as nt,f as Po,g as ko,c as So,d as Ee}from"./timeViewRenderers-DSKlpx4k.js";import{v as wo,r as Z}from"./dateViewRenderers-B8uYg_Kt.js";import{g as Mo}from"./MenuItem-BLPASM16.js";import{T as Io}from"./TextField-4ii8jFMh.js";import{L as Ro}from"./LinearProgress-CIiBqE01.js";import"./v4-CQkTLCs1.js";import"./_baseIteratee-8_jeTHtL.js";import"./_overArg-duoZdnBA.js";import"./Chip-C6MsZLfs.js";import"./useId-BjRAp5Eo.js";import"./useControlled-5JjQu8rW.js";import"./useFormControl-Baz_U5RD.js";import"./FormHelperText-h4EvFgt8.js";import"./InputBase-DuDaiXcF.js";import"./isMuiElement-BqzHBgRb.js";import"./createStyled-D6A6HRKR.js";import"./index-CYM-y3Gt.js";import"./colorManipulator-BcfljvUw.js";let G;function Dt(){if(G)return G;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),G="reverse",t.scrollLeft>0?G="default":(t.scrollLeft=1,t.scrollLeft===0&&(G="negative")),document.body.removeChild(t),G}function Bo(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(Dt()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}const Fo=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Eo=t=>{const{absolute:e,children:r,classes:s,flexItem:a,light:n,orientation:m,textAlign:u,variant:d}=t;return ee({root:["root",e&&"absolute",d,n&&"light",m==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&m==="vertical"&&"withChildrenVertical",u==="right"&&m!=="vertical"&&"textAlignRight",u==="left"&&m!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",m==="vertical"&&"wrapperVertical"]},Mo,s)},jo=F("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.absolute&&e.absolute,e[r.variant],r.light&&e.light,r.orientation==="vertical"&&e.vertical,r.flexItem&&e.flexItem,r.children&&e.withChildren,r.children&&r.orientation==="vertical"&&e.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&e.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&e.textAlignLeft]}})(({theme:t,ownerState:e})=>l({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Wt(t.palette.divider,.08)},e.variant==="inset"&&{marginLeft:72},e.variant==="middle"&&e.orientation==="horizontal"&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},e.variant==="middle"&&e.orientation==="vertical"&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},e.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:t})=>l({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:t,ownerState:e})=>l({},e.children&&e.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}),({theme:t,ownerState:e})=>l({},e.children&&e.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:t})=>l({},t.textAlign==="right"&&t.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},t.textAlign==="left"&&t.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Lo=F("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.wrapper,r.orientation==="vertical"&&e.wrapperVertical]}})(({theme:t,ownerState:e})=>l({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},e.orientation==="vertical"&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),Ae=i.forwardRef(function(e,r){const s=De({props:e,name:"MuiDivider"}),{absolute:a=!1,children:n,className:m,component:u=n?"div":"hr",flexItem:d=!1,light:h=!1,orientation:g="horizontal",role:f=u!=="hr"?"separator":void 0,textAlign:v="center",variant:y="fullWidth"}=s,C=z(s,Fo),P=l({},s,{absolute:a,component:u,flexItem:d,light:h,orientation:g,role:f,textAlign:v,variant:y}),T=Eo(P);return p.jsx(jo,l({as:u,className:W(T.root,m),role:f,ref:r,ownerState:P},C,{children:n?p.jsx(Lo,{className:T.wrapper,ownerState:P,children:n}):null}))});Ae.muiSkipListHighlight=!0;const $e=({props:t,value:e,adapter:r})=>{const s=wo({adapter:r,value:e,props:t});return s!==null?s:xo({adapter:r,value:e,props:t})},Oo=t=>{const e=qt(t),{forwardedProps:r,internalProps:s}=Kt(e,"date-time");return Qt({forwardedProps:r,internalProps:s,valueManager:Ne,fieldValueManager:Gt,validator:$e,valueType:"date-time"})},No=["slots","slotProps","InputProps","inputProps"],Ct=i.forwardRef(function(e,r){const s=le({props:e,name:"MuiDateTimeField"}),{slots:a,slotProps:n,InputProps:m,inputProps:u}=s,d=z(s,No),h=s,g=(a==null?void 0:a.textField)??(e.enableAccessibleFieldDOMStructure?Zt:Io),f=se({elementType:g,externalSlotProps:n==null?void 0:n.textField,externalForwardedProps:d,ownerState:h,additionalProps:{ref:r}});f.inputProps=l({},u,f.inputProps),f.InputProps=l({},m,f.InputProps);const v=Oo(f),y=Jt(v),C=eo(l({},y,{slots:a,slotProps:n}));return p.jsx(g,l({},C))});function Wo(t){return de("MuiTab",t)}const X=ce("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ao=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],$o=t=>{const{classes:e,textColor:r,fullWidth:s,wrapped:a,icon:n,label:m,selected:u,disabled:d}=t,h={root:["root",n&&m&&"labelIcon",`textColor${ft(r)}`,s&&"fullWidth",a&&"wrapped",u&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return ee(h,Wo,e)},Vo=F(bt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${ft(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped,{[`& .${X.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>l({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${X.iconWrapper}`]:l({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${X.selected}`]:{opacity:1},[`&.${X.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${X.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${X.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${X.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${X.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),st=i.forwardRef(function(e,r){const s=De({props:e,name:"MuiTab"}),{className:a,disabled:n=!1,disableFocusRipple:m=!1,fullWidth:u,icon:d,iconPosition:h="top",indicator:g,label:f,onChange:v,onClick:y,onFocus:C,selected:P,selectionFollowsFocus:T,textColor:M="inherit",value:S,wrapped:R=!1}=s,k=z(s,Ao),N=l({},s,{disabled:n,disableFocusRipple:m,selected:P,icon:!!d,iconPosition:h,label:!!f,fullWidth:u,textColor:M,wrapped:R}),E=$o(N),j=d&&f&&i.isValidElement(d)?i.cloneElement(d,{className:W(E.iconWrapper,d.props.className)}):d,B=I=>{!P&&v&&v(I,S),y&&y(I)},_=I=>{T&&!P&&v&&v(I,S),C&&C(I)};return p.jsxs(Vo,l({focusRipple:!m,className:W(E.root,a),ref:r,role:"tab","aria-selected":P,disabled:n,onClick:B,onFocus:_,ownerState:N,tabIndex:P?0:-1},k,{children:[h==="top"||h==="start"?p.jsxs(i.Fragment,{children:[j,f]}):p.jsxs(i.Fragment,{children:[f,j]}),g]}))});function zo(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function _o(t,e,r,s={},a=()=>{}){const{ease:n=zo,duration:m=300}=s;let u=null;const d=e[t];let h=!1;const g=()=>{h=!0},f=v=>{if(h){a(new Error("Animation cancelled"));return}u===null&&(u=v);const y=Math.min(1,(v-u)/m);if(e[t]=n(y)*(r-d)+d,y>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(f)};return d===r?(a(new Error("Element already at target position")),g):(requestAnimationFrame(f),g)}const Ho=["onChange"],Uo={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Yo(t){const{onChange:e}=t,r=z(t,Ho),s=i.useRef(),a=i.useRef(null),n=()=>{s.current=a.current.offsetHeight-a.current.clientHeight};return At(()=>{const m=gt(()=>{const d=s.current;n(),d!==s.current&&e(s.current)}),u=Tt(a.current);return u.addEventListener("resize",m),()=>{m.clear(),u.removeEventListener("resize",m)}},[e]),i.useEffect(()=>{n(),e(s.current)},[e]),p.jsx("div",l({style:Uo,ref:a},r))}const Xo=xt(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qo=xt(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ko(t){return de("MuiTabScrollButton",t)}const Qo=ce("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Go=["className","slots","slotProps","direction","orientation","disabled"],Zo=t=>{const{classes:e,orientation:r,disabled:s}=t;return ee({root:["root",r,s&&"disabled"]},Ko,e)},Jo=F(bt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>l({width:40,flexShrink:0,opacity:.8,[`&.${Qo.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),er=i.forwardRef(function(e,r){var s,a;const n=De({props:e,name:"MuiTabScrollButton"}),{className:m,slots:u={},slotProps:d={},direction:h}=n,g=z(n,Go),f=ke(),v=l({isRtl:f},n),y=Zo(v),C=(s=u.StartScrollButtonIcon)!=null?s:Xo,P=(a=u.EndScrollButtonIcon)!=null?a:qo,T=se({elementType:C,externalSlotProps:d.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),M=se({elementType:P,externalSlotProps:d.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(Jo,l({component:"div",className:W(y.root,m),ref:r,role:null,ownerState:v,tabIndex:null},g,{children:h==="left"?p.jsx(C,l({},T)):p.jsx(P,l({},M))}))});function tr(t){return de("MuiTabs",t)}const ye=ce("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),or=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],it=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,lt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Te=(t,e,r)=>{let s=!1,a=r(t,e);for(;a;){if(a===t.firstChild){if(s)return;s=!0}const n=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||n)a=r(t,a);else{a.focus();return}}},rr=t=>{const{vertical:e,fixed:r,hideScrollbar:s,scrollableX:a,scrollableY:n,centered:m,scrollButtonsHideMobile:u,classes:d}=t;return ee({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",s&&"hideScrollbar",a&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",m&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},tr,d)},ar=F("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${ye.scrollButtons}`]:e.scrollButtons},{[`& .${ye.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>l({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ye.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),nr=F("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>l({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),sr=F("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>l({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ir=F("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>l({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),lr=F(Yo)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ct={},cr=i.forwardRef(function(e,r){const s=De({props:e,name:"MuiTabs"}),a=go(),n=ke(),{"aria-label":m,"aria-labelledby":u,action:d,centered:h=!1,children:g,className:f,component:v="div",allowScrollButtonsMobile:y=!1,indicatorColor:C="primary",onChange:P,orientation:T="horizontal",ScrollButtonComponent:M=er,scrollButtons:S="auto",selectionFollowsFocus:R,slots:k={},slotProps:N={},TabIndicatorProps:E={},TabScrollButtonProps:j={},textColor:B="primary",value:_,variant:I="standard",visibleScrollbar:te=!1}=s,Se=z(s,or),A=I==="scrollable",O=T==="vertical",oe=O?"scrollTop":"scrollLeft",ue=O?"top":"left",me=O?"bottom":"right",we=O?"clientHeight":"clientWidth",re=O?"height":"width",q=l({},s,{component:v,allowScrollButtonsMobile:y,indicatorColor:C,orientation:T,vertical:O,scrollButtons:S,textColor:B,variant:I,visibleScrollbar:te,fixed:!A,hideScrollbar:A&&!te,scrollableX:A&&!O,scrollableY:A&&O,centered:h&&!A,scrollButtonsHideMobile:!y}),H=rr(q),kt=se({elementType:k.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:q}),St=se({elementType:k.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:q}),[Ue,wt]=i.useState(!1),[K,Ye]=i.useState(ct),[Xe,Mt]=i.useState(!1),[qe,It]=i.useState(!1),[Ke,Rt]=i.useState(!1),[Qe,Bt]=i.useState({overflow:"hidden",scrollbarWidth:0}),Ge=new Map,V=i.useRef(null),Q=i.useRef(null),Ze=()=>{const c=V.current;let b;if(c){const x=c.getBoundingClientRect();b={clientWidth:c.clientWidth,scrollLeft:c.scrollLeft,scrollTop:c.scrollTop,scrollLeftNormalized:Bo(c,n?"rtl":"ltr"),scrollWidth:c.scrollWidth,top:x.top,bottom:x.bottom,left:x.left,right:x.right}}let D;if(c&&_!==!1){const x=Q.current.children;if(x.length>0){const w=x[Ge.get(_)];D=w?w.getBoundingClientRect():null}}return{tabsMeta:b,tabMeta:D}},ae=Be(()=>{const{tabsMeta:c,tabMeta:b}=Ze();let D=0,x;if(O)x="top",b&&c&&(D=b.top-c.top+c.scrollTop);else if(x=n?"right":"left",b&&c){const L=n?c.scrollLeftNormalized+c.clientWidth-c.scrollWidth:c.scrollLeft;D=(n?-1:1)*(b[x]-c[x]+L)}const w={[x]:D,[re]:b?b[re]:0};if(isNaN(K[x])||isNaN(K[re]))Ye(w);else{const L=Math.abs(K[x]-w[x]),$=Math.abs(K[re]-w[re]);(L>=1||$>=1)&&Ye(w)}}),Me=(c,{animation:b=!0}={})=>{b?_o(oe,V.current,c,{duration:a.transitions.duration.standard}):V.current[oe]=c},Je=c=>{let b=V.current[oe];O?b+=c:(b+=c*(n?-1:1),b*=n&&Dt()==="reverse"?-1:1),Me(b)},et=()=>{const c=V.current[we];let b=0;const D=Array.from(Q.current.children);for(let x=0;xc){x===0&&(b=c);break}b+=w[we]}return b},Ft=()=>{Je(-1*et())},Et=()=>{Je(et())},jt=i.useCallback(c=>{Bt({overflow:null,scrollbarWidth:c})},[]),Lt=()=>{const c={};c.scrollbarSizeListener=A?p.jsx(lr,{onChange:jt,className:W(H.scrollableX,H.hideScrollbar)}):null;const D=A&&(S==="auto"&&(Xe||qe)||S===!0);return c.scrollButtonStart=D?p.jsx(M,l({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:kt},orientation:T,direction:n?"right":"left",onClick:Ft,disabled:!Xe},j,{className:W(H.scrollButtons,j.className)})):null,c.scrollButtonEnd=D?p.jsx(M,l({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:St},orientation:T,direction:n?"left":"right",onClick:Et,disabled:!qe},j,{className:W(H.scrollButtons,j.className)})):null,c},tt=Be(c=>{const{tabsMeta:b,tabMeta:D}=Ze();if(!(!D||!b)){if(D[ue]b[me]){const x=b[oe]+(D[me]-b[me]);Me(x,{animation:c})}}}),pe=Be(()=>{A&&S!==!1&&Rt(!Ke)});i.useEffect(()=>{const c=gt(()=>{V.current&&ae()});let b;const D=L=>{L.forEach($=>{$.removedNodes.forEach(ne=>{var U;(U=b)==null||U.unobserve(ne)}),$.addedNodes.forEach(ne=>{var U;(U=b)==null||U.observe(ne)})}),c(),pe()},x=Tt(V.current);x.addEventListener("resize",c);let w;return typeof ResizeObserver<"u"&&(b=new ResizeObserver(c),Array.from(Q.current.children).forEach(L=>{b.observe(L)})),typeof MutationObserver<"u"&&(w=new MutationObserver(D),w.observe(Q.current,{childList:!0})),()=>{var L,$;c.clear(),x.removeEventListener("resize",c),(L=w)==null||L.disconnect(),($=b)==null||$.disconnect()}},[ae,pe]),i.useEffect(()=>{const c=Array.from(Q.current.children),b=c.length;if(typeof IntersectionObserver<"u"&&b>0&&A&&S!==!1){const D=c[0],x=c[b-1],w={root:V.current,threshold:.99},L=Re=>{Mt(!Re[0].isIntersecting)},$=new IntersectionObserver(L,w);$.observe(D);const ne=Re=>{It(!Re[0].isIntersecting)},U=new IntersectionObserver(ne,w);return U.observe(x),()=>{$.disconnect(),U.disconnect()}}},[A,S,Ke,g==null?void 0:g.length]),i.useEffect(()=>{wt(!0)},[]),i.useEffect(()=>{ae()}),i.useEffect(()=>{tt(ct!==K)},[tt,K]),i.useImperativeHandle(d,()=>({updateIndicator:ae,updateScrollButtons:pe}),[ae,pe]);const ot=p.jsx(ir,l({},E,{className:W(H.indicator,E.className),ownerState:q,style:l({},K,E.style)}));let be=0;const Ot=i.Children.map(g,c=>{if(!i.isValidElement(c))return null;const b=c.props.value===void 0?be:c.props.value;Ge.set(b,be);const D=b===_;return be+=1,i.cloneElement(c,l({fullWidth:I==="fullWidth",indicator:D&&!Ue&&ot,selected:D,selectionFollowsFocus:R,onChange:P,textColor:B,value:b},be===1&&_===!1&&!c.props.tabIndex?{tabIndex:0}:{}))}),Nt=c=>{const b=Q.current,D=To(b).activeElement;if(D.getAttribute("role")!=="tab")return;let w=T==="horizontal"?"ArrowLeft":"ArrowUp",L=T==="horizontal"?"ArrowRight":"ArrowDown";switch(T==="horizontal"&&n&&(w="ArrowRight",L="ArrowLeft"),c.key){case w:c.preventDefault(),Te(b,D,lt);break;case L:c.preventDefault(),Te(b,D,it);break;case"Home":c.preventDefault(),Te(b,null,it);break;case"End":c.preventDefault(),Te(b,null,lt);break}},Ie=Lt();return p.jsxs(ar,l({className:W(H.root,f),ownerState:q,ref:r,as:v},Se,{children:[Ie.scrollButtonStart,Ie.scrollbarSizeListener,p.jsxs(nr,{className:H.scroller,ownerState:q,style:{overflow:Qe.overflow,[O?`margin${n?"Left":"Right"}`:"marginBottom"]:te?void 0:-Qe.scrollbarWidth},ref:V,children:[p.jsx(sr,{"aria-label":m,"aria-labelledby":u,"aria-orientation":T==="vertical"?"vertical":null,className:H.flexContainer,ownerState:q,onKeyDown:Nt,ref:Q,role:"tablist",children:Ot}),Ue&&ot]}),Ie.scrollButtonEnd]}))});function dr(t){return de("MuiDateTimePickerTabs",t)}ce("MuiDateTimePickerTabs",["root"]);const ur=t=>Le(t)?"date":"time",mr=t=>t==="date"?"day":"hours",pr=t=>{const{classes:e}=t;return ee({root:["root"]},dr,e)},br=F(cr,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({boxShadow:`0 -1px 0 0 inset ${(t.vars||t).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(t.vars||t).palette.divider}`,[`& .${ye.indicator}`]:{bottom:"auto",top:0}}})),fr=function(e){const r=le({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:s=p.jsx(to,{}),onViewChange:a,timeIcon:n=p.jsx(oo,{}),view:m,hidden:u=typeof window>"u"||window.innerHeight<667,className:d,sx:h}=r,g=Ce(),f=pr(r),v=(y,C)=>{a(mr(C))};return u?null:p.jsxs(br,{ownerState:r,variant:"fullWidth",value:ur(m),onChange:v,className:W(d,f.root),sx:h,children:[p.jsx(st,{value:"date","aria-label":g.dateTableLabel,icon:p.jsx(i.Fragment,{children:s})}),p.jsx(st,{value:"time","aria-label":g.timeTableLabel,icon:p.jsx(i.Fragment,{children:n})})]})};function hr(t){return de("MuiDateTimePickerToolbar",t)}const je=ce("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),vr=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],gr=t=>{const{classes:e,isLandscape:r,isRtl:s}=t;return ee({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",s&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",s&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]},hr,e)},Tr=F(ro,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,[`& .${ao.content} .${yo.selected}`]:{color:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(t.vars||t).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),xr=F("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(t,e)=>e.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),yr=F("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(t,e)=>e.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:t,toolbarVariant:e})=>t&&e!=="desktop",style:{flexDirection:"column"}},{props:({isLandscape:t,toolbarVariant:e,isRtl:r})=>t&&e!=="desktop"&&r,style:{flexDirection:"column-reverse"}}]}),Dr=F("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(t,e)=>e.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),dt=F(Do,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(t,e)=>e.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),Cr=F("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(t,e)=>[{[`.${je.ampmLabel}`]:e.ampmLabel},{[`&.${je.ampmLandscape}`]:e.ampmLandscape},e.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${je.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function Pr(t){const e=le({props:t,name:"MuiDateTimePickerToolbar"}),{ampm:r,ampmInClock:s,value:a,onChange:n,view:m,isLandscape:u,onViewChange:d,toolbarFormat:h,toolbarPlaceholder:g="––",views:f,disabled:v,readOnly:y,toolbarVariant:C="mobile",toolbarTitle:P,className:T}=e,M=z(e,vr),S=ke(),R=l({},e,{isRtl:S}),k=Pe(),{meridiemMode:N,handleMeridiemChange:E}=no(a,r,n),j=!!(r&&!s),B=C==="desktop",_=Ce(),I=gr(R),te=P??_.dateTimePickerToolbarTitle,Se=O=>r?k.format(O,"hours12h"):k.format(O,"hours24h"),A=i.useMemo(()=>a?h?k.formatByString(a,h):k.format(a,"shortDate"):g,[a,h,g,k]);return p.jsxs(Tr,l({isLandscape:u,className:W(I.root,T),toolbarTitle:te},M,{ownerState:R,children:[p.jsxs(xr,{className:I.dateContainer,ownerState:R,children:[f.includes("year")&&p.jsx(Y,{tabIndex:-1,variant:"subtitle1",onClick:()=>d("year"),selected:m==="year",value:a?k.format(a,"year"):"–"}),f.includes("day")&&p.jsx(Y,{tabIndex:-1,variant:B?"h5":"h4",onClick:()=>d("day"),selected:m==="day",value:A})]}),p.jsxs(yr,{className:I.timeContainer,ownerState:R,children:[p.jsxs(Dr,{className:I.timeDigitsContainer,ownerState:R,children:[f.includes("hours")&&p.jsxs(i.Fragment,{children:[p.jsx(Y,{variant:B?"h5":"h3",width:B&&!u?he:void 0,onClick:()=>d("hours"),selected:m==="hours",value:a?Se(a):"--"}),p.jsx(dt,{variant:B?"h5":"h3",value:":",className:I.separator,ownerState:R}),p.jsx(Y,{variant:B?"h5":"h3",width:B&&!u?he:void 0,onClick:()=>d("minutes"),selected:m==="minutes"||!f.includes("minutes")&&m==="hours",value:a?k.format(a,"minutes"):"--",disabled:!f.includes("minutes")})]}),f.includes("seconds")&&p.jsxs(i.Fragment,{children:[p.jsx(dt,{variant:B?"h5":"h3",value:":",className:I.separator,ownerState:R}),p.jsx(Y,{variant:B?"h5":"h3",width:B&&!u?he:void 0,onClick:()=>d("seconds"),selected:m==="seconds",value:a?k.format(a,"seconds"):"--"})]})]}),j&&!B&&p.jsxs(Cr,{className:I.ampmSelection,ownerState:R,children:[p.jsx(Y,{variant:"subtitle2",selected:N==="am",typographyClassName:I.ampmLabel,value:Fe(k,"am"),onClick:y?void 0:()=>E("am"),disabled:v}),p.jsx(Y,{variant:"subtitle2",selected:N==="pm",typographyClassName:I.ampmLabel,value:Fe(k,"pm"),onClick:y?void 0:()=>E("pm"),disabled:v})]}),r&&B&&p.jsx(Y,{variant:"h5",onClick:()=>d("meridiem"),selected:m==="meridiem",value:a&&N?Fe(k,N):"--",width:he})]})]}))}function Pt(t,e){var u;const r=Pe(),s=so(),a=le({props:t,name:e}),n=a.ampm??r.is12HourCycleInCurrentLocale(),m=i.useMemo(()=>{var d;return((d=a.localeText)==null?void 0:d.toolbarTitle)==null?a.localeText:l({},a.localeText,{dateTimePickerToolbarTitle:a.localeText.toolbarTitle})},[a.localeText]);return l({},a,io({views:a.views,openTo:a.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:n,localeText:m,orientation:a.orientation??"portrait",disableIgnoringDatePartForTimeValidation:a.disableIgnoringDatePartForTimeValidation??!!(a.minDateTime||a.maxDateTime||a.disablePast||a.disableFuture),disableFuture:a.disableFuture??!1,disablePast:a.disablePast??!1,minDate:rt(r,a.minDateTime??a.minDate,s.minDate),maxDate:rt(r,a.maxDateTime??a.maxDate,s.maxDate),minTime:a.minDateTime??a.minTime,maxTime:a.maxDateTime??a.maxTime,slots:l({toolbar:Pr,tabs:fr},a.slots),slotProps:l({},a.slotProps,{toolbar:l({ampm:n},(u=a.slotProps)==null?void 0:u.toolbar)})})}const kr=i.forwardRef(function(e,r){var P;const s=ke(),{toolbar:a,tabs:n,content:m,actionBar:u,shortcuts:d}=lo(e),{sx:h,className:g,isLandscape:f,classes:v}=e,y=u&&(((P=u.props.actions)==null?void 0:P.length)??0)>0,C=l({},e,{isRtl:s});return p.jsxs(co,{ref:r,className:W(g,ve.root,v==null?void 0:v.root),sx:[{[`& .${ve.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${ve.actionBar}`]:{gridRow:5}},...Array.isArray(h)?h:[h]],ownerState:C,children:[f?d:a,f?a:d,p.jsxs(uo,{className:W(ve.contentWrapper,v==null?void 0:v.contentWrapper),sx:{display:"grid"},children:[m,n,y&&p.jsx(Ae,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),u]})}),Sr=["openTo","focusedView","timeViewsCount"],wr=function(e,r,s){var g,f;const{openTo:a,focusedView:n,timeViewsCount:m}=s,u=z(s,Sr),d=l({},u,{focusedView:null,sx:[{[`&.${nt.root}`]:{borderBottom:0},[`&.${nt.root}, .${Po.root}, &.${ko.root}`]:{maxHeight:bo}}]}),h=ge(r);return p.jsxs(i.Fragment,{children:[(g=e[h?"day":r])==null?void 0:g.call(e,l({},s,{view:h?"day":r,focusedView:n&&Le(n)?n:null,views:s.views.filter(Le),sx:[{gridColumn:1},...d.sx]})),m>0&&p.jsxs(i.Fragment,{children:[p.jsx(Ae,{orientation:"vertical",sx:{gridColumn:2}}),(f=e[h?r:"hours"])==null?void 0:f.call(e,l({},d,{view:h?r:"hours",focusedView:n&&ge(n)?n:null,openTo:ge(a)?a:"hours",views:s.views.filter(ge),sx:[{gridColumn:3},...d.sx]}))]})]})},Ve=i.forwardRef(function(e,r){var S,R,k,N;const s=Ce(),a=Pe(),n=Pt(e,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:m,thresholdToRenderTimeInASingleColumn:u,views:d,timeSteps:h}=Co(n),g=m?So:at,f=l({day:Z,month:Z,year:Z,hours:g,minutes:g,seconds:g,meridiem:g},n.viewRenderers),v=n.ampmInClock??!0,C=((S=f.hours)==null?void 0:S.name)===at.name?d:d.filter(E=>E!=="meridiem"),P=m?[]:["accept"],T=l({},n,{viewRenderers:f,format:yt(a,n),views:C,yearsPerRow:n.yearsPerRow??4,ampmInClock:v,timeSteps:h,thresholdToRenderTimeInASingleColumn:u,shouldRenderTimeInASingleColumn:m,slots:l({field:Ct,layout:kr,openPickerIcon:mo},n.slots),slotProps:l({},n.slotProps,{field:E=>{var j;return l({},Oe((j=n.slotProps)==null?void 0:j.field,E),ht(n),{ref:r})},toolbar:l({hidden:!0,ampmInClock:v,toolbarVariant:"desktop"},(R=n.slotProps)==null?void 0:R.toolbar),tabs:l({hidden:!0},(k=n.slotProps)==null?void 0:k.tabs),actionBar:E=>{var j;return l({actions:P},Oe((j=n.slotProps)==null?void 0:j.actionBar,E))}})}),{renderPicker:M}=po({props:T,valueManager:Ne,valueType:"date-time",getOpenDialogAriaText:((N=T.localeText)==null?void 0:N.openDatePickerDialogue)??s.openDatePickerDialogue,validator:$e,rendererInterceptor:wr});return M()});Ve.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:vt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:o.oneOf([3,4])};const ze=i.forwardRef(function(e,r){var g,f,v;const s=Ce(),a=Pe(),n=Pt(e,"MuiMobileDateTimePicker"),m=l({day:Z,month:Z,year:Z,hours:Ee,minutes:Ee,seconds:Ee},n.viewRenderers),u=n.ampmInClock??!1,d=l({},n,{viewRenderers:m,format:yt(a,n),ampmInClock:u,slots:l({field:Ct},n.slots),slotProps:l({},n.slotProps,{field:y=>{var C;return l({},Oe((C=n.slotProps)==null?void 0:C.field,y),ht(n),{ref:r})},toolbar:l({hidden:!1,ampmInClock:u},(g=n.slotProps)==null?void 0:g.toolbar),tabs:l({hidden:!1},(f=n.slotProps)==null?void 0:f.tabs)})}),{renderPicker:h}=fo({props:d,valueManager:Ne,valueType:"date-time",getOpenDialogAriaText:((v=d.localeText)==null?void 0:v.openDatePickerDialogue)??s.openDatePickerDialogue,validator:$e});return h()});ze.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:vt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:o.oneOf([3,4])};const Mr=["desktopModeMediaQuery"],Ir=i.forwardRef(function(e,r){const s=le({props:e,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:a=vo}=s,n=z(s,Mr);return ho(a,{defaultMatches:!0})?p.jsx(Ve,l({ref:r},n)):p.jsx(ze,l({ref:r},n))});function Rr({field:{onChange:t,...e},form:{isSubmitting:r,touched:s,errors:a,setFieldValue:n,setFieldError:m,setFieldTouched:u},textField:{helperText:d,onBlur:h,...g}={},disabled:f,label:v,onChange:y,onError:C,...P}){const T=J(a,e.name),M=J(s,e.name)&&!!T,S=()=>{u(e.name,!0,!0)};return{disabled:f??r,onChange:y??(k=>{u(e.name,!0,!1),n(e.name,k,!0)}),onError:C??We(T,e.name,m),slotProps:{textField:{error:M,helperText:M?T:d,label:v,onBlur:h??S,...g}},...e,...P}}function ie(t){return i.createElement(Ir,{...Rr(t)})}ie.displayName="FormikMUIDateTimePicker";ie.__docgenInfo={description:"",methods:[],displayName:"FormikMUIDateTimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};function Br({field:{onChange:t,...e},form:{isSubmitting:r,touched:s,errors:a,setFieldValue:n,setFieldError:m,setFieldTouched:u},textField:{helperText:d,onBlur:h,...g}={},disabled:f,label:v,onChange:y,onError:C,...P}){const T=J(a,e.name),M=J(s,e.name)&&!!T,S=()=>{u(e.name,!0,!0)};return{disabled:f??r,onChange:y??(k=>{u(e.name,!0,!1),n(e.name,k,!0)}),onError:C??We(T,e.name,m),slotProps:{textField:{error:M,helperText:M?T:d,label:v,onBlur:h??S,...g}},...e,...P}}function _e(t){return i.createElement(Ve,{...Br(t)})}_e.displayName="FormikMUIDesktopDateTimePicker";_e.__docgenInfo={description:"",methods:[],displayName:"FormikMUIDesktopDateTimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};function Fr({field:{onChange:t,...e},form:{isSubmitting:r,touched:s,errors:a,setFieldValue:n,setFieldError:m,setFieldTouched:u},textField:{helperText:d,onBlur:h,...g}={},disabled:f,label:v,onChange:y,onError:C,...P}){const T=J(a,e.name),M=J(s,e.name)&&!!T,S=()=>{u(e.name,!0,!0)};return{disabled:f??r,onChange:y??(k=>{u(e.name,!0,!1),n(e.name,k,!0)}),onError:C??We(T,e.name,m),slotProps:{textField:{error:M,helperText:M?T:d,label:v,onBlur:h??S,...g}},...e,...P}}function He(t){return i.createElement(ze,{...Fr(t)})}He.displayName="FormikMUIMobileDateTimePicker";He.__docgenInfo={description:"",methods:[],displayName:"FormikMUIMobileDateTimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const Er=Yt().shape({date:Xt().required()}),ca={title:"X-Mui/DateTimePicker",component:ie,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},jr=()=>i.createElement($t,null,i.createElement(Vt,{initialValues:{date:new Date},validationSchema:Er,onSubmit:(t,{setSubmitting:e})=>{setTimeout(()=>{e(!1),zt("submit")(t)},2e3)}},({submitForm:t,isSubmitting:e,values:r})=>i.createElement(_t,null,i.createElement(fe,{component:ie,label:"Date & time",name:"date",textField:{helperText:"Helper text"}}),i.createElement("br",null),i.createElement("br",null),i.createElement(fe,{component:ie,label:"Date & time standard",name:"dateStandard",textField:{variant:"standard"}}),i.createElement("br",null),i.createElement("br",null),i.createElement(fe,{component:_e,label:"Desktop date & time picker",name:"desktopDate",format:"yyyy/MM/dd HH:mm"}),i.createElement("br",null),i.createElement("br",null),i.createElement(fe,{component:He,label:"Mobile date & time picker",name:"mobileDate",format:"yyyy/MM/dd HH:mm"}),i.createElement("br",null),e&&i.createElement(Ro,null),i.createElement("br",null),i.createElement(Ht,{variant:"contained",color:"primary",disabled:e,onClick:t},"Submit"),i.createElement("br",null),i.createElement(Ut,{values:r})))),xe={render:jr};var ut,mt,pt;xe.parameters={...xe.parameters,docs:{...(ut=xe.parameters)==null?void 0:ut.docs,source:{originalSource:`{ + render: Template +}`,...(pt=(mt=xe.parameters)==null?void 0:mt.docs)==null?void 0:pt.source}}};const da=["Default"];export{xe as Default,da as __namedExportsOrder,ca as default}; diff --git a/storybook/assets/DocsRenderer-PKQXORMH-rcj42PMV.js b/storybook/assets/DocsRenderer-PKQXORMH-rcj42PMV.js new file mode 100644 index 0000000..c8f66bf --- /dev/null +++ b/storybook/assets/DocsRenderer-PKQXORMH-rcj42PMV.js @@ -0,0 +1,574 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-d4yFdb60.js","./iframe-BOnrVhc9.js","./index-CTjT7uj6.js","./react-18-CaMpY7kV.js","./index-CYM-y3Gt.js","./index-D-8MO0q_.js","./isNativeReflectConstruct-CJAgTEKr.js","./_baseIteratee-8_jeTHtL.js","./_overArg-duoZdnBA.js","./_getPrototype-C87Y6mw8.js","./index-DrFu-skq.js","./Color-KGDBMAHA-20AvhpEt.js","./index-DSkyVWTJ.js"])))=>i.map(i=>d[i]); +var Lx=Object.defineProperty;var Ox=(e,t,r)=>t in e?Lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var yr=(e,t,r)=>Ox(e,typeof t!="symbol"?t+"":t,r);import{_ as A1}from"./iframe-BOnrVhc9.js";import{r as l,R as v,g as ss}from"./index-CTjT7uj6.js";import{r as Mx,u as $x}from"./react-18-CaMpY7kV.js";import{w as j4,r as F1}from"./index-CYM-y3Gt.js";import{O as V4,P as Px}from"./index-D-8MO0q_.js";import{b as Nx,c as U4,d as Hx,a as jx,e as Vx,_ as ot}from"./isNativeReflectConstruct-CJAgTEKr.js";import{b as q4,e as Ux,c as W4,d as qx,f as Wx,g as Gx,h as Kx,j as G4,s as Yx,l as K4,m as Jx,n as Zx,o as Xx,p as Qx,a as eD,q as tD,r as Y4,u as rD,v as nD,k as J4,w as aD,x as _1,y as Z4,z as X4,A as oD,B as iD,C as lD}from"./_baseIteratee-8_jeTHtL.js";import{i as us,a as sD,f as uD,c as Q4,d as cD}from"./_overArg-duoZdnBA.js";import{_ as e3,e as nh,s as pu}from"./_getPrototype-C87Y6mw8.js";import{d as dD}from"./index-DrFu-skq.js";var pD=Object.create,t3=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,r3=Object.getOwnPropertyNames,hD=Object.getPrototypeOf,mD=Object.prototype.hasOwnProperty,Ea=(e,t)=>function(){return t||(0,e[r3(e)[0]])((t={exports:{}}).exports,t),t.exports},gD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of r3(t))!mD.call(e,a)&&a!==r&&t3(e,a,{get:()=>t[a],enumerable:!(n=fD(t,a))||n.enumerable});return e},vD=(e,t,r)=>(r=e!=null?pD(hD(e)):{},gD(!e||!e.__esModule?t3(r,"default",{value:e,enumerable:!0}):r,e)),Ct=e=>`control-${e.replace(/\s+/g,"-")}`,cs=e=>`set-${e.replace(/\s+/g,"-")}`,yD=Object.create,I1=Object.defineProperty,bD=Object.getOwnPropertyDescriptor,wD=Object.getOwnPropertyNames,ED=Object.getPrototypeOf,xD=Object.prototype.hasOwnProperty,I=(e,t)=>I1(e,"name",{value:t,configurable:!0}),wi=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ds=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),DD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of wD(t))!xD.call(e,a)&&a!==r&&I1(e,a,{get:()=>t[a],enumerable:!(n=bD(t,a))||n.enumerable});return e},R1=(e,t,r)=>(r=e!=null?yD(ED(e)):{},DD(t||!e||!e.__esModule?I1(r,"default",{value:e,enumerable:!0}):r,e)),CD=ds(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,m=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,g=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,D=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function E(P){return typeof P=="string"||typeof P=="function"||P===a||P===p||P===i||P===o||P===f||P===h||typeof P=="object"&&P!==null&&(P.$$typeof===y||P.$$typeof===g||P.$$typeof===s||P.$$typeof===u||P.$$typeof===m||P.$$typeof===D||P.$$typeof===w||P.$$typeof===x||P.$$typeof===b)}I(E,"isValidElementType");function C(P){if(typeof P=="object"&&P!==null){var ct=P.$$typeof;switch(ct){case r:var Ft=P.type;switch(Ft){case d:case p:case a:case i:case o:case f:return Ft;default:var jr=Ft&&Ft.$$typeof;switch(jr){case u:case m:case y:case g:case s:return jr;default:return ct}}case n:return ct}}}I(C,"typeOf");var S=d,k=p,A=u,_=s,R=r,T=m,L=a,z=y,M=g,O=n,$=i,j=o,K=f,H=!1;function Y(P){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),re(P)||C(P)===d}I(Y,"isAsyncMode");function re(P){return C(P)===p}I(re,"isConcurrentMode");function le(P){return C(P)===u}I(le,"isContextConsumer");function ee(P){return C(P)===s}I(ee,"isContextProvider");function ne(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}I(ne,"isElement");function N(P){return C(P)===m}I(N,"isForwardRef");function J(P){return C(P)===a}I(J,"isFragment");function Z(P){return C(P)===y}I(Z,"isLazy");function pe(P){return C(P)===g}I(pe,"isMemo");function Se(P){return C(P)===n}I(Se,"isPortal");function At(P){return C(P)===i}I(At,"isProfiler");function Ue(P){return C(P)===o}I(Ue,"isStrictMode");function ut(P){return C(P)===f}I(ut,"isSuspense"),e.AsyncMode=S,e.ConcurrentMode=k,e.ContextConsumer=A,e.ContextProvider=_,e.Element=R,e.ForwardRef=T,e.Fragment=L,e.Lazy=z,e.Memo=M,e.Portal=O,e.Profiler=$,e.StrictMode=j,e.Suspense=K,e.isAsyncMode=Y,e.isConcurrentMode=re,e.isContextConsumer=le,e.isContextProvider=ee,e.isElement=ne,e.isForwardRef=N,e.isFragment=J,e.isLazy=Z,e.isMemo=pe,e.isPortal=Se,e.isProfiler=At,e.isStrictMode=Ue,e.isSuspense=ut,e.isValidElementType=E,e.typeOf=C})()}),SD=ds((e,t)=>{t.exports=CD()}),n3=ds((e,t)=>{var r=SD(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[r.ForwardRef]=o,s[r.Memo]=i;function u(b){return r.isMemo(b)?i:s[b.$$typeof]||n}I(u,"getStatics");var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;function y(b,D,w){if(typeof D!="string"){if(g){var x=h(D);x&&x!==g&&y(b,x,w)}var E=p(D);m&&(E=E.concat(m(D)));for(var C=u(b),S=u(D),k=0;k{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return I(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof wi=="function"&&wi;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var f=new Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f}var h=a[d]={exports:{}};n[d][0].call(h.exports,function(g){var y=n[d][1][g];return i(y||g)},h,h.exports,r,n,a,o)}return a[d].exports}I(i,"s");for(var s=typeof wi=="function"&&wi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(w[D]={cacheItem:g,arg:arguments[D]},x?i(m,w):m.push(w),m.length>d&&s(m.shift())),h.wasMemoized=x,h.numArgs=D+1,b},"memoizerific");return h.limit=d,h.wasMemoized=!1,h.cache=p,h.lru=m,h}};function i(d,p){var m=d.length,f=p.length,h,g,y;for(g=0;g=0&&(m=d[h],f=m.cacheItem.get(m.arg),!f||!f.size);h--)m.cacheItem.delete(m.arg)}I(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}I(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?be(xa,--je):0,ra--,de===10&&(ra=1,hs--),de}I(p3,"prev");function Pe(){return de=je2||na(de)>3?"":" "}I(f3,"whitespace");function h3(e,t){for(;--t&&Pe()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Da(e,go()+(t<6&&yt()==32&&Pe()==32))}I(h3,"escaping");function wl(e){for(;Pe();)switch(de){case e:return je;case 34:case 39:e!==34&&e!==39&&wl(de);break;case 40:e===41&&wl(e);break;case 92:Pe();break}return je}I(wl,"delimiter");function m3(e,t){for(;Pe()&&e+de!==57&&!(e+de===84&&yt()===47););return"/*"+Da(t,je-1)+"*"+ps(e===47?e:Pe())}I(m3,"commenter");function g3(e){for(;!na(yt());)Pe();return Da(e,je)}I(g3,"identifier");function v3(e){return P1(yo("",null,null,null,[""],e=$1(e),0,[0],e))}I(v3,"compile");function yo(e,t,r,n,a,o,i,s,u){for(var d=0,p=0,m=i,f=0,h=0,g=0,y=1,b=1,D=1,w=0,x="",E=a,C=o,S=n,k=x;b;)switch(g=w,w=Pe()){case 40:if(g!=108&&be(k,m-1)==58){bl(k+=Q(vo(w),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:k+=vo(w);break;case 9:case 10:case 13:case 32:k+=f3(g);break;case 92:k+=h3(go()-1,7);continue;case 47:switch(yt()){case 42:case 47:ao(y3(m3(Pe(),go()),t,r),u);break;default:k+="/"}break;case 123*y:s[d++]=ht(k)*D;case 125*y:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+p:D==-1&&(k=Q(k,/\f/g,"")),h>0&&ht(k)-m&&ao(h>32?O0(k+";",n,r,m-1):O0(Q(k," ","")+";",n,r,m-2),u);break;case 59:k+=";";default:if(ao(S=L0(k,t,r,d,p,a,s,x,E=[],C=[],m),o),w===123)if(p===0)yo(k,t,S,S,E,o,m,s,C);else switch(f===99&&be(k,3)===110?100:f){case 100:case 108:case 109:case 115:yo(e,S,S,n&&ao(L0(e,S,S,0,0,a,s,x,a,E=[],m),C),a,C,m,s,n?E:C);break;default:yo(k,S,S,S,[""],C,0,s,C)}}d=p=h=0,y=D=1,x=k="",m=i;break;case 58:m=1+ht(k),h=g;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&p3()==125)continue}switch(k+=ps(w),w*y){case 38:D=p>0?1:(k+="\f",-1);break;case 44:s[d++]=(ht(k)-1)*D,D=1;break;case 64:yt()===45&&(k+=vo(Pe())),f=yt(),p=m=ht(x=k+=g3(go())),w++;break;case 45:g===45&&ht(k)==2&&(y=0)}}return o}I(yo,"parse");function L0(e,t,r,n,a,o,i,s,u,d,p){for(var m=a-1,f=a===0?o:[""],h=fs(f),g=0,y=0,b=0;g0?f[D]+" "+w:Q(w,/&\f/g,f[D])))&&(u[b++]=x);return Uo(e,t,r,a===0?L1:s,u,d,p)}I(L0,"ruleset");function y3(e,t,r){return Uo(e,t,r,z1,ps(d3()),ta(e,2,-2),0)}I(y3,"comment");function O0(e,t,r,n){return Uo(e,t,r,O1,ta(e,0,n),ta(e,n+1,-1),n)}I(O0,"declaration");function ln(e,t){for(var r="",n=fs(e),a=0;a-1},"isIgnoringComment"),ND=I(function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=!!t.parent,i=o?t.parent.children:n,s=i.length-1;s>=0;s--){var u=i[s];if(u.line=0;r--)if(!E3(t[r]))return!0;return!1},"isPrependedWithRegularRules"),ih=I(function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},"nullifyElement"),jD=I(function(e,t,r){E3(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ih(e)):HD(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ih(e)))},"incorrectImportAlarm");function N1(e,t){switch(l3(e,t)){case 5103:return te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return te+e+yl+e+_e+e+e;case 6828:case 4268:return te+e+_e+e+e;case 6165:return te+e+_e+"flex-"+e+e;case 5187:return te+e+Q(e,/(\w+).+(:[^]+)/,te+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return te+e+_e+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return te+e+_e+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return te+e+_e+Q(e,"shrink","negative")+e;case 5292:return te+e+_e+Q(e,"basis","preferred-size")+e;case 6060:return te+"box-"+Q(e,"-grow","")+te+e+_e+Q(e,"grow","positive")+e;case 4554:return te+Q(e,/([^-])(transform)/g,"$1"+te+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,te+"$1"),/(image-set)/,te+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,te+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,te+"box-pack:$3"+_e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+te+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(e)-1-t>6)switch(be(e,t+1)){case 109:if(be(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+yl+(be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bl(e,"stretch")?N1(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(be(e,t+1)!==115)break;case 6444:switch(be(e,ht(e)-3-(~bl(e,"!important")&&10))){case 107:return Q(e,":",":"+te)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(be(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+_e+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return te+e+_e+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+_e+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+_e+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+_e+e+e}return e}I(N1,"prefix");var VD=I(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case O1:e.return=N1(e.value,e.length);break;case i3:return ln([$n(e,{value:Q(e.value,"@","@"+te)})],n);case L1:if(e.length)return u3(e.props,function(a){switch(s3(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([$n(e,{props:[Q(a,/:(read-\w+)/,":"+yl+"$1")]})],n);case"::placeholder":return ln([$n(e,{props:[Q(a,/:(plac\w+)/,":"+te+"input-$1")]}),$n(e,{props:[Q(a,/:(plac\w+)/,":"+yl+"$1")]}),$n(e,{props:[Q(a,/:(plac\w+)/,_e+"input-$1")]})],n)}return""})}},"prefixer"),UD=[VD],qD=I(function(e){var t=e.key;if(!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. +If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var n=e.stylisPlugins||UD;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},o,i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),b=1;b=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}I(x3,"murmur2");var YD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lh=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,JD="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ZD=/[A-Z]|^ms/g,D3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,H1=I(function(e){return e.charCodeAt(1)===45},"isCustomProperty"),sh=I(function(e){return e!=null&&typeof e!="boolean"},"isProcessableValue"),fu=T1(function(e){return H1(e)?e:e.replace(ZD,"-$&").toLowerCase()}),El=I(function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(D3,function(r,n,a){return $t={name:n,styles:a,next:$t},n})}return YD[e]!==1&&!H1(e)&&typeof t=="number"&&t!==0?t+"px":t},"processStyleValue");uh=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ch=["normal","none","initial","inherit","unset"],dh=El,ph=/^-ms-/,fh=/-(.)/g,hu={},El=I(function(e,t){if(e==="content"&&(typeof t!="string"||ch.indexOf(t)===-1&&!uh.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=dh(e,t);return r!==""&&!H1(e)&&e.indexOf("-")!==-1&&hu[e]===void 0&&(hu[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(ph,"ms-").replace(fh,function(n,a){return a.toUpperCase()})+"?")),r},"processStyleValue");var uh,ch,dh,ph,fh,hu,C3="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function aa(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(C3);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return $t={name:r.name,styles:r.styles,next:$t},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)$t={name:n.name,styles:n.styles,next:$t},n=n.next;var a=r.styles+";";return r.map!==void 0&&(a+=r.map),a}return S3(e,t,r)}case"function":{if(e!==void 0){var o=$t,i=r(e);return $t=o,aa(e,t,i)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":var s=[],u=r.replace(D3,function(p,m,f){var h="animation"+s.length;return s.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+u+"`"]).join(` +`)+` + +You should wrap it with \`css\` like this: + +`+("css`"+u+"`"));break}if(t==null)return r;var d=t[r];return d!==void 0?d:r}I(aa,"handleInterpolation");function S3(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a ({})}!");return r}if(t==null||typeof t!="object"||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return Gt({},e,t)},"getTheme"),tC=ah(function(e){return ah(function(t){return eC(e,t)})}),_3=I(function(e){var t=l.useContext(pr);return e.theme!==t&&(t=tC(t)(e.theme)),l.createElement(pr.Provider,{value:t},e.children)},"ThemeProvider");function rC(e){var t=e.displayName||e.name||"Component",r=I(function(a,o){var i=l.useContext(pr);return l.createElement(e,Gt({theme:i,ref:o},a))},"render"),n=l.forwardRef(r);return n.displayName="WithTheme("+t+")",GD(n,e)}I(rC,"withTheme");var gh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",nC=I(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return gs(t,r,n),j1(function(){return vs(t,r,n)}),null},"Insertion"),aC=ys(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[gh],o=[n],i="";typeof e.className=="string"?i=ms(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=oa(o,void 0,l.useContext(pr));if(s.name.indexOf("-")===-1){var u=e[vh];u&&(s=oa([s,"label:"+u+";"]))}i+=t.key+"-"+s.name;var d={};for(var p in e)QD.call(e,p)&&p!=="css"&&p!==gh&&p!==vh&&(d[p]=e[p]);return d.ref=r,d.className=i,l.createElement(l.Fragment,null,l.createElement(nC,{cache:t,serialized:s,isStringTag:typeof a=="string"}),l.createElement(a,d))});aC.displayName="EmotionCssPropInternal";R1(n3());var oC={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},yh=!1,iC=ys(function(e,t){!yh&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),yh=!0);var r=e.styles,n=oa([r],void 0,l.useContext(pr)),a=l.useRef();return mh(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",o),i.hydrate([u])),a.current=[i,s],function(){i.flush()}},[t]),mh(function(){var o=a.current,i=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&vs(t,n.next,!0),i.tags.length){var u=i.tags[i.tags.length-1].nextElementSibling;i.before=u,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});iC.displayName="EmotionGlobal";function bs(){for(var e=arguments.length,t=new Array(e),r=0;r component."),i="";for(var s in o)o[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=o}i&&(a&&(a+=" "),a+=i)}}return a},"classnames");function I3(e,t,r){var n=[],a=ms(e,n,r);return n.length<2?r:a+t(n)}I(I3,"merge");var sC=I(function(e){var t=e.cache,r=e.serializedArr;return j1(function(){for(var n=0;n96?cC:dC},"getDefaultShouldForwardProp"),Eh=I(function(e,t,r){var n;if(t){var a=t.shouldForwardProp;n=e.__emotion_forwardProp&&a?function(o){return e.__emotion_forwardProp(o)&&a(o)}:a}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},"composeShouldForwardProps"),xh=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,pC=I(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return gs(t,r,n),j1(function(){return vs(t,r,n)}),null},"Insertion"),fC=I(function e(t,r){if(t===void 0)throw new Error(`You are trying to create a styled element with an undefined component. +You may have forgotten to import it.`);var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=Eh(t,r,n),u=s||wh(a),d=!u("as");return function(){var p=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{p[0][0]===void 0&&console.error(xh),m.push(p[0][0]);for(var f=p.length,h=1;h1?a-1:0),i=1;i=0&&a<1?(s=o,u=i):a>=1&&a<2?(s=i,u=o):a>=2&&a<3?(u=o,d=i):a>=3&&a<4?(u=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,f=u+p,h=d+p;return n(m,f,h)}I(la,"hslToRgb");var Dh={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function M3(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Dh[t]?"#"+Dh[t]:e}I(M3,"nameToHex");var gC=/^#[a-fA-F0-9]{6}$/,vC=/^#[a-fA-F0-9]{8}$/,yC=/^#[a-fA-F0-9]{3}$/,bC=/^#[a-fA-F0-9]{4}$/,yu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,wC=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,EC=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,xC=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function qo(e){if(typeof e!="string")throw new Ht(3);var t=M3(e);if(t.match(gC))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(vC)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(yC))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(bC)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=yu.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=wC.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=EC.exec(t);if(i){var s=parseInt(""+i[1],10),u=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+la(s,u,d)+")",m=yu.exec(p);if(!m)throw new Ht(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=xC.exec(t.substring(0,50));if(f){var h=parseInt(""+f[1],10),g=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,b="rgb("+la(h,g,y)+")",D=yu.exec(b);if(!D)throw new Ht(4,t,b);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Ht(5)}I(qo,"parseToRgb");function $3(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,u=a-o,d=i>.5?u/(2-a-o):u/(a+o);switch(a){case t:s=(r-n)/u+(r=1?ko(e,t,r):"rgba("+la(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ko(e.hue,e.saturation,e.lightness):"rgba("+la(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ht(2)}I(H3,"hsla");function Cl(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return M0("#"+Dr(e)+Dr(t)+Dr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return M0("#"+Dr(e.red)+Dr(e.green)+Dr(e.blue));throw new Ht(6)}I(Cl,"rgb");function sa(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=qo(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Cl(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Cl(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ht(7)}I(sa,"rgba");var CC=I(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),SC=I(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),kC=I(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),AC=I(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function W1(e){if(typeof e!="object")throw new Ht(8);if(SC(e))return sa(e);if(CC(e))return Cl(e);if(AC(e))return H3(e);if(kC(e))return N3(e);throw new Ht(8)}I(W1,"toColorString");function G1(e,t,r){return I(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):G1(e,t,n)},"fn")}I(G1,"curried");function Wo(e){return G1(e,e.length,[])}I(Wo,"curry");function Go(e,t,r){return Math.max(e,Math.min(t,r))}I(Go,"guard");function j3(e,t){if(t==="transparent")return t;var r=q1(t);return W1(Gt({},r,{lightness:Go(0,1,r.lightness-parseFloat(e))}))}I(j3,"darken");var FC=Wo(j3),_C=FC;function V3(e,t){if(t==="transparent")return t;var r=q1(t);return W1(Gt({},r,{lightness:Go(0,1,r.lightness+parseFloat(e))}))}I(V3,"lighten");var IC=Wo(V3),RC=IC;function U3(e,t){if(t==="transparent")return t;var r=qo(t),n=typeof r.alpha=="number"?r.alpha:1,a=Gt({},r,{alpha:Go(0,1,(n*100+parseFloat(e)*100)/100)});return sa(a)}I(U3,"opacify");var TC=Wo(U3),BC=TC;function q3(e,t){if(t==="transparent")return t;var r=qo(t),n=typeof r.alpha=="number"?r.alpha:1,a=Gt({},r,{alpha:Go(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return sa(a)}I(q3,"transparentize");var zC=Wo(q3),LC=zC,V={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Cr={app:"#F6F9FC",bar:V.lightest,content:V.lightest,preview:V.lightest,gridCellSize:10,hoverable:LC(.9,V.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},jt={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},W3=R1(kD(),1),OC=(0,W3.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,W3.default)(1)(({color:e,background:t,typography:r})=>{let n=OC({typography:r});return{...n,body:{...n.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`}}});var MC={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Cr.app,appContentBg:V.lightest,appPreviewBg:V.lightest,appBorderColor:V.border,appBorderRadius:4,fontBase:jt.fonts.base,fontCode:jt.fonts.mono,textColor:V.darkest,textInverseColor:V.lightest,textMutedColor:V.dark,barTextColor:V.mediumdark,barHoverColor:V.secondary,barSelectedColor:V.secondary,barBg:V.lightest,buttonBg:Cr.app,buttonBorder:V.medium,booleanBg:V.mediumlight,booleanSelectedBg:V.lightest,inputBg:V.lightest,inputBorder:V.border,inputTextColor:V.darkest,inputBorderRadius:4},Sl=MC,$C={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:V.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:jt.fonts.base,fontCode:jt.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:V.mediumdark,barHoverColor:V.secondary,barSelectedColor:V.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:V.lightest,inputBorderRadius:4},PC=$C,NC=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();const{logger:HC}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{window:bu}=NC,jC=I(e=>({color:e}),"mkColor"),VC=I(e=>typeof e!="string"?(HC.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,"isColorString"),UC=I(e=>!/(gradient|var|calc)/.test(e),"isValidColorForPolished"),qC=I((e,t)=>e==="darken"?sa(`${_C(1,t)}`,.95):e==="lighten"?sa(`${RC(1,t)}`,.95):t,"applyPolished"),G3=I(e=>t=>{if(!VC(t)||!UC(t))return t;try{return qC(e,t)}catch{return t}},"colorFactory"),Pa=G3("lighten");G3("darken");var K3=I(()=>!bu||!bu.matchMedia?"light":bu.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light","getPreferredColorScheme"),$0={light:Sl,dark:PC,normal:Sl};K3();var WC={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},GC=mr` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,Y3=mr` + 0%, 100% { opacity: 1; } + 50% { opacity: .4; } +`,KC=mr` + 0% { transform: translateY(1px); } + 25% { transform: translateY(0px); } + 50% { transform: translateY(-3px); } + 100% { transform: translateY(1px); } +`,YC=mr` + 0%, 100% { transform:translate3d(0,0,0); } + 12.5%, 62.5% { transform:translate3d(-4px,0,0); } + 37.5%, 87.5% { transform: translate3d(4px,0,0); } +`,JC=bs` + animation: ${Y3} 1.5s ease-in-out infinite; + color: transparent; + cursor: progress; +`,ZC=bs` + transition: all 150ms ease-out; + transform: translate3d(0, 0, 0); + + &:hover { + transform: translate3d(0, -2px, 0); + } + + &:active { + transform: translate3d(0, 0, 0); + } +`,XC={rotate360:GC,glow:Y3,float:KC,jiggle:YC,inlineGlow:JC,hoverable:ZC},QC={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},eS={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},tS=I(e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:jC(n)}),{}),"convertColors"),rS=I(({colors:e,mono:t})=>{let r=tS(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},"create"),nS={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},aS={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},oS=I(e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:V.tertiary,ancillary:V.ancillary,orange:V.orange,gold:V.gold,green:V.green,seafoam:V.seafoam,purple:V.purple,ultraviolet:V.ultraviolet,lightest:V.lightest,lighter:V.lighter,light:V.light,mediumlight:V.mediumlight,medium:V.medium,mediumdark:V.mediumdark,dark:V.dark,darker:V.darker,darkest:V.darkest,border:V.border,positive:V.positive,negative:V.negative,warning:V.warning,critical:V.critical,defaultText:e.textColor||V.darkest,inverseText:e.textInverseColor||V.lightest,positiveText:V.positiveText,negativeText:V.negativeText,warningText:V.warningText}),"createColors"),P0=I((e=$0[K3()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:a,appContentBg:o,appPreviewBg:i,appBorderColor:s,appBorderRadius:u,fontBase:d,fontCode:p,textColor:m,textInverseColor:f,barTextColor:h,barHoverColor:g,barSelectedColor:y,barBg:b,buttonBg:D,buttonBorder:w,booleanBg:x,booleanSelectedBg:E,inputBg:C,inputBorder:S,inputTextColor:k,inputBorderRadius:A,brandTitle:_,brandUrl:R,brandImage:T,brandTarget:L,gridCellSize:z,...M}=e;return{...M,base:t,color:oS(e),background:{app:a,bar:b,content:o,preview:i,gridCellSize:z||Cr.gridCellSize,hoverable:Cr.hoverable,positive:Cr.positive,negative:Cr.negative,warning:Cr.warning,critical:Cr.critical},typography:{fonts:{base:d,mono:p},weight:jt.weight,size:jt.size},animation:XC,easing:WC,input:{background:C,border:S,borderRadius:A,color:k},button:{background:D||C,border:w||S},boolean:{background:x||S,selectedBackground:E||C},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:h,barHoverColor:g||n,barSelectedColor:y||n,barBg:b,brand:{title:_,url:R,image:T||(_?null:void 0),target:L},code:rS({colors:t==="light"?nS:aS,mono:p}),addonActionsTheme:{...t==="light"?eS:QC,BASE_FONT_FAMILY:p,BASE_FONT_SIZE:jt.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:m,ARROW_COLOR:BC(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:p,TREENODE_FONT_SIZE:jt.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},"convert");const{logger:iS}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var lS=I(e=>Object.keys(e).length===0,"isEmpty"),wu=I(e=>e!=null&&typeof e=="object","isObject"),sS=I((e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),"hasOwnProperty"),uS=I(()=>Object.create(null),"makeObjectWithoutPrototype"),J3=I((e,t)=>e===t||!wu(e)||!wu(t)?{}:Object.keys(e).reduce((r,n)=>{if(sS(t,n)){let a=J3(e[n],t[n]);return wu(a)&&lS(a)||(r[n]=a),r}return r[n]=void 0,r},uS()),"deletedDiff"),cS=J3;function Z3(e){for(var t=[],r=1;r{if(!e)return P0(Sl);let t=cS(Sl,e);return Object.keys(t).length&&iS.warn(Z3` + Your theme is missing properties, you should update your theme! + + theme-data missing: + `,t),P0(e)},"ensure"),N0="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",pS=Object.create,Ko=Object.defineProperty,fS=Object.getOwnPropertyDescriptor,hS=Object.getOwnPropertyNames,mS=Object.getPrototypeOf,gS=Object.prototype.hasOwnProperty,vS=(e,t,r)=>t in e?Ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>Ko(e,"name",{value:t,configurable:!0}),Ei=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),B=(e,t)=>()=>(e&&(t=e(e=0)),t),W=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ca=(e,t)=>{for(var r in t)Ko(e,r,{get:t[r],enumerable:!0})},yS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of hS(t))!gS.call(e,a)&&a!==r&&Ko(e,a,{get:()=>t[a],enumerable:!(n=fS(t,a))||n.enumerable});return e},Ce=(e,t,r)=>(r=e!=null?pS(mS(e)):{},yS(t||!e||!e.__esModule?Ko(r,"default",{value:e,enumerable:!0}):r,e)),bS=(e,t,r)=>vS(e,t+"",r);function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c(q,"_extends")});function X3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var wS=B(()=>{c(X3,"_assertThisInitialized")});function ua(e,t){return ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ua(e,t)}var K1=B(()=>{c(ua,"_setPrototypeOf")});function kl(e){return kl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kl(e)}var ES=B(()=>{c(kl,"_getPrototypeOf")}),ws,Y1=B(()=>{ws=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})()}),Es=W((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return c(function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof Ei=="function"&&Ei;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var f=new Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f}var h=a[d]={exports:{}};n[d][0].call(h.exports,function(g){var y=n[d][1][g];return i(y||g)},h,h.exports,r,n,a,o)}return a[d].exports}c(i,"s");for(var s=typeof Ei=="function"&&Ei,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(w[D]={cacheItem:g,arg:arguments[D]},x?i(m,w):m.push(w),m.length>d&&s(m.shift())),h.wasMemoized=x,h.numArgs=D+1,b},"memoizerific");return h.limit=d,h.wasMemoized=!1,h.cache=p,h.lru=m,h}};function i(d,p){var m=d.length,f=p.length,h,g,y;for(g=0;g=0&&(m=d[h],f=m.cacheItem.get(m.arg),!f||!f.size);h--)m.cacheItem.delete(m.arg)}c(s,"removeCachedResult");function u(d,p){return d===p||d!==d&&p!==p}c(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),Q3=W((e,t)=>{t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(a){var o=a.util.clone(a.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,s=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,u=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function d(f,h){return f=f.replace(//g,function(){return i}).replace(//g,function(){return s}).replace(//g,function(){return u}),RegExp(f,h)}c(d,"re"),u=d(u).source,a.languages.jsx=a.languages.extend("markup",o),a.languages.jsx.tag.pattern=d(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=o.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:d(//.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:d(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);var p=c(function(f){return f?typeof f=="string"?f:typeof f.content=="string"?f.content:f.content.map(p).join(""):""},"stringifyToken"),m=c(function(f){for(var h=[],g=0;g0&&h[h.length-1].tagName===p(y.content[0].content[1])&&h.pop():y.content[y.content.length-1].content==="/>"||h.push({tagName:p(y.content[0].content[1]),openedBraces:0}):h.length>0&&y.type==="punctuation"&&y.content==="{"?h[h.length-1].openedBraces++:h.length>0&&h[h.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?h[h.length-1].openedBraces--:b=!0),(b||typeof y=="string")&&h.length>0&&h[h.length-1].openedBraces===0){var D=p(y);g0&&(typeof f[g-1]=="string"||f[g-1].type==="plain-text")&&(D=p(f[g-1])+D,f.splice(g-1,1),g--),f[g]=new a.Token("plain-text",D,null,D)}y.content&&typeof y.content!="string"&&m(y.content)}},"walkTokens");a.hooks.add("after-tokenize",function(f){f.language!=="jsx"&&f.language!=="tsx"||m(f.tokens)})})(n)}c(r,"jsx")}),Ch,ey,xS=B(()=>{Ch=Ce(Q3()),ey=Ch.default}),DS=W((e,t)=>{t.exports=r,r.displayName="bash",r.aliases=["shell"];function r(n){(function(a){var o="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},s={bash:i,environment:{pattern:RegExp("\\$"+o),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+o),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};a.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+o),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:s},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:s},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:s.entity}}],environment:{pattern:RegExp("\\$?"+o),alias:"constant"},variable:s.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=a.languages.bash;for(var u=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],d=s.variable[1].inside,p=0;p{Sh=Ce(DS()),ty=Sh.default}),ry=W((e,t)=>{t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(a){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var i=a.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(n)}c(r,"css")}),kh,ny,SS=B(()=>{kh=Ce(ry()),ny=kh.default}),kS=W((e,t)=>{t.exports=r,r.displayName="jsExtras",r.aliases=[];function r(n){(function(a){a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function o(m,f){return RegExp(m.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),f)}c(o,"withId"),a.languages.insertBefore("javascript","keyword",{imports:{pattern:o(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:o(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:o(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var i=["function","function-variable","method","method-variable","property-access"],s=0;s{Ah=Ce(kS()),ay=Ah.default}),FS=W((e,t)=>{t.exports=r,r.displayName="json",r.aliases=["webmanifest"];function r(n){n.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},n.languages.webmanifest=n.languages.json}c(r,"json")}),Fh,oy,_S=B(()=>{Fh=Ce(FS()),oy=Fh.default}),IS=W((e,t)=>{t.exports=r,r.displayName="graphql",r.aliases=[];function r(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",c(function(a){if(a.language!=="graphql")return;var o=a.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function s(w){return o[i+w]}c(s,"getToken");function u(w,x){x=x||0;for(var E=0;E0)){var y=d(/^\{$/,/^\}$/);if(y===-1)continue;for(var b=i;b=0&&p(D,"variable-input")}}}}},"afterTokenizeGraphql"))}c(r,"graphql")}),_h,iy,RS=B(()=>{_h=Ce(IS()),iy=_h.default}),ly=W((e,t)=>{t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function r(n){n.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:c(function(a,o){var i={};i["language-"+o]={pattern:/(^$)/i,lookbehind:!0,inside:n.languages[o]},i.cdata=/^$/i;var s={"included-cdata":{pattern://i,inside:i}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var u={};u[a]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",u)},"addInlined")}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:c(function(a,o){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[o,"language-"+o],inside:n.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})},"value")}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}c(r,"markup")}),Ih,sy,TS=B(()=>{Ih=Ce(ly()),sy=Ih.default}),BS=W((e,t)=>{t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(a){var o=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(g){return g=g.replace(//g,function(){return o}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}c(i,"createInline");var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,u=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),d=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+u+d+"(?:"+u+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+u+d+")(?:"+u+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+u+")"+d+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+u+"$"),inside:{"table-header":{pattern:RegExp(s),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(y){g!==y&&(a.languages.markdown[g].inside.content.inside[y]=a.languages.markdown[y])})}),a.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function y(b){if(!(!b||typeof b=="string"))for(var D=0,w=b.length;D",quot:'"'},f=String.fromCodePoint||String.fromCharCode;function h(g){var y=g.replace(p,"");return y=y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,D){if(D=D.toLowerCase(),D[0]==="#"){var w;return D[1]==="x"?w=parseInt(D.slice(2),16):w=Number(D.slice(1)),f(w)}else{var x=m[D];return x||b}}),y}c(h,"textContent"),a.languages.md=a.languages.markdown})(n)}c(r,"markdown")}),Rh,uy,zS=B(()=>{Rh=Ce(BS()),uy=Rh.default}),LS=W((e,t)=>{t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(a){var o=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+i.source+"(?:[ ]+"+o.source+")?|"+o.source+"(?:[ ]+"+i.source+")?)",u=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),d=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(m,f){f=(f||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return s}).replace(/<>/g,function(){return m});return RegExp(h,f)}c(p,"createValuePattern"),a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return s})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return s}).replace(/<>/g,function(){return"(?:"+u+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(d),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:o,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(n)}c(r,"yaml")}),Th,cy,OS=B(()=>{Th=Ce(LS()),cy=Th.default}),dy=W((e,t)=>{t.exports=r,r.displayName="typescript",r.aliases=["ts"];function r(n){(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var o=a.languages.extend("typescript",{});delete o["class-name"],a.languages.typescript["class-name"].inside=o,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:o}}}}),a.languages.ts=a.languages.typescript})(n)}c(r,"typescript")}),MS=W((e,t)=>{var r=Q3(),n=dy();t.exports=a,a.displayName="tsx",a.aliases=[];function a(o){o.register(r),o.register(n),function(i){var s=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",s),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var u=i.languages.tsx.tag;u.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+u.pattern.source+")",u.pattern.flags),u.lookbehind=!0}(o)}c(a,"tsx")}),Bh,py,$S=B(()=>{Bh=Ce(MS()),py=Bh.default}),zh,fy,PS=B(()=>{zh=Ce(dy()),fy=zh.default});function xs(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var J1=B(()=>{c(xs,"_objectWithoutPropertiesLoose")});function hy(e,t){if(e==null)return{};var r,n,a=xs(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var NS=B(()=>{J1(),c(hy,"_objectWithoutProperties")});function Al(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{c(Al,"_arrayLikeToArray")});function gy(e){if(Array.isArray(e))return Al(e)}var HS=B(()=>{my(),c(gy,"_arrayWithoutHoles")});function vy(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}var jS=B(()=>{c(vy,"_iterableToArray")});function yy(e,t){if(e){if(typeof e=="string")return Al(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Al(e,t):void 0}}var VS=B(()=>{my(),c(yy,"_unsupportedIterableToArray")});function by(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var US=B(()=>{c(by,"_nonIterableSpread")});function wy(e){return gy(e)||vy(e)||yy(e)||by()}var qS=B(()=>{HS(),jS(),VS(),US(),c(wy,"_toConsumableArray")});function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}var Ey=B(()=>{c(ca,"_typeof")});function xy(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WS=B(()=>{Ey(),c(xy,"toPrimitive")});function Dy(e){var t=xy(e,"string");return ca(t)=="symbol"?t:t+""}var GS=B(()=>{Ey(),WS(),c(Dy,"toPropertyKey")});function Z1(e,t,r){return(t=Dy(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cy=B(()=>{GS(),c(Z1,"_defineProperty")});function H0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function en(e){for(var t=1;t=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}function ky(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Zi[t]||(Zi[t]=Sy(e)),Zi[t]}function Ay(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(o){return o!=="token"}),a=ky(n);return a.reduce(function(o,i){return en(en({},o),r[i])},t)}function j0(e){return e.join(" ")}function Fy(e,t){var r=0;return function(n){return r+=1,n.map(function(a,o){return Ds({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(o)})})}}function Ds(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,o=e.useInlineStyles,i=e.key,s=t.properties,u=t.type,d=t.tagName,p=t.value;if(u==="text")return p;if(d){var m=Fy(r,o),f;if(!o)f=en(en({},s),{},{className:j0(s.className)});else{var h=Object.keys(r).reduce(function(D,w){return w.split(".").forEach(function(x){D.includes(x)||D.push(x)}),D},[]),g=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&g.concat(s.className.filter(function(D){return!h.includes(D)}));f=en(en({},s),{},{className:j0(y)||void 0,style:Ay(s.className,Object.assign({},s.style,a),r)})}var b=m(t.children);return v.createElement(d,q({key:i},f),b)}}var Zi,_y=B(()=>{St(),Cy(),c(H0,"ownKeys"),c(en,"_objectSpread"),c(Sy,"powerSetPermutations"),Zi={},c(ky,"getClassNameCombinations"),c(Ay,"createStyleObject"),c(j0,"createClassNameString"),c(Fy,"createChildren"),c(Ds,"createElement")}),Iy,KS=B(()=>{Iy=c(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},"default")});function V0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return bo({children:C,lineNumber:S,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:a,lineProps:r,className:k,showLineNumbers:n,wrapLongLines:u})}c(g,"createWrappedLine");function y(C,S){if(n&&S&&a){var k=Q1(s,S,i);C.unshift(X1(S,k))}return C}c(y,"createUnwrappedLine");function b(C,S){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||k.length>0?g(C,S,k):y(C,S)}c(b,"createLine");for(var D=c(function(){var C=p[h],S=C.children[0].value,k=Ry(S);if(k){var A=S.split(` +`);A.forEach(function(_,R){var T=n&&m.length+o,L={type:"text",value:"".concat(_,` +`)};if(R===0){var z=p.slice(f+1,h).concat(bo({children:[L],className:C.properties.className})),M=b(z,T);m.push(M)}else if(R===A.length-1){var O=p[h+1]&&p[h+1].children&&p[h+1].children[0],$={type:"text",value:"".concat(_)};if(O){var j=bo({children:[$],className:C.properties.className});p.splice(h+1,0,j)}else{var K=[$],H=b(K,T,C.properties.className);m.push(H)}}else{var Y=[L],re=b(Y,T,C.properties.className);m.push(re)}}),f=h}h++},"_loop");h{NS(),qS(),Cy(),_y(),KS(),Py=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],c(V0,"ownKeys"),c(mt,"_objectSpread"),Ny=/\n/g,c(Ry,"getNewLines"),c(Ty,"getAllLineNumbers"),c(By,"AllLineNumbers"),c(zy,"getEmWidthOfNumber"),c(X1,"getInlineLineNumber"),c(Q1,"assembleLineNumberStyles"),c(bo,"createLineElement"),c(ep,"flattenCodeTree"),c(Ly,"processLines"),c(Oy,"defaultRenderer"),c(tp,"isHighlightJs"),c(My,"getCodeTree"),c($y,"default")}),JS=W((e,t)=>{t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var a={},o=0;o{t.exports=n;var r=n.prototype;r.space=null,r.normal={},r.property={};function n(a,o,i){this.property=a,this.normal=o,i&&(this.space=i)}c(n,"Schema")}),ZS=W((e,t)=>{var r=JS(),n=Hy();t.exports=a;function a(o){for(var i=o.length,s=[],u=[],d=-1,p,m;++d{t.exports=r;function r(n){return n.toLowerCase()}c(r,"normalize")}),jy=W((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1;function n(a,o){this.property=a,this.attribute=o}c(n,"Info")}),np=W(e=>{var t=0;e.boolean=r(),e.booleanish=r(),e.overloadedBoolean=r(),e.number=r(),e.spaceSeparated=r(),e.commaSeparated=r(),e.commaOrSpaceSeparated=r();function r(){return Math.pow(2,++t)}c(r,"increment")}),Vy=W((e,t)=>{var r=jy(),n=np();t.exports=i,i.prototype=new r,i.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=a.length;function i(u,d,p,m){var f=-1,h;for(s(this,"space",m),r.call(this,u,d);++f{var r=rp(),n=Hy(),a=Vy();t.exports=o;function o(i){var s=i.space,u=i.mustUseProperty||[],d=i.attributes||{},p=i.properties,m=i.transform,f={},h={},g,y;for(g in p)y=new a(g,m(d,g),p[g],s),u.indexOf(g)!==-1&&(y.mustUseProperty=!0),f[g]=y,h[r(g)]=g,h[r(y.attribute)]=g;return new n(f,h,s)}c(o,"create")}),XS=W((e,t)=>{var r=Yo();t.exports=r({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(a,o){return"xlink:"+o.slice(5).toLowerCase()}c(n,"xlinkTransform")}),QS=W((e,t)=>{var r=Yo();t.exports=r({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(a,o){return"xml:"+o.slice(3).toLowerCase()}c(n,"xmlTransform")}),ek=W((e,t)=>{t.exports=r;function r(n,a){return a in n?n[a]:a}c(r,"caseSensitiveTransform")}),Uy=W((e,t)=>{var r=ek();t.exports=n;function n(a,o){return r(a,o.toLowerCase())}c(n,"caseInsensitiveTransform")}),tk=W((e,t)=>{var r=Yo(),n=Uy();t.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}})}),rk=W((e,t)=>{var r=np(),n=Yo(),a=r.booleanish,o=r.number,i=r.spaceSeparated;t.exports=n({transform:s,properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:a,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:i,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:o,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:i,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:a,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}});function s(u,d){return d==="role"?d:"aria-"+d.slice(4).toLowerCase()}c(s,"ariaTransform")}),nk=W((e,t)=>{var r=np(),n=Yo(),a=Uy(),o=r.boolean,i=r.overloadedBoolean,s=r.booleanish,u=r.number,d=r.spaceSeparated,p=r.commaSeparated;t.exports=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:d,accessKey:d,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:d,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:d,cols:u,colSpan:null,content:null,contentEditable:s,controls:o,controlsList:d,coords:u|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:i,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:d,height:u,hidden:o,high:u,href:null,hrefLang:null,htmlFor:d,httpEquiv:d,id:null,imageSizes:null,imageSrcSet:p,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:d,itemRef:d,itemScope:o,itemType:d,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:u,pattern:null,ping:d,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:d,required:o,reversed:o,rows:u,rowSpan:u,sandbox:d,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:p,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:s,width:u,wrap:null,align:null,aLink:null,archive:d,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:u,security:null,unselectable:null}})}),ak=W((e,t)=>{var r=ZS(),n=XS(),a=QS(),o=tk(),i=rk(),s=nk();t.exports=r([a,n,o,i,s])}),ok=W((e,t)=>{var r=rp(),n=Vy(),a=jy(),o="data";t.exports=d;var i=/^data[-\w.:]+$/i,s=/-[a-z]/g,u=/[A-Z]/g;function d(g,y){var b=r(y),D=y,w=a;return b in g.normal?g.property[g.normal[b]]:(b.length>4&&b.slice(0,4)===o&&i.test(y)&&(y.charAt(4)==="-"?D=p(y):y=m(y),w=n),new w(D,y))}c(d,"find");function p(g){var y=g.slice(5).replace(s,h);return o+y.charAt(0).toUpperCase()+y.slice(1)}c(p,"datasetToProperty");function m(g){var y=g.slice(4);return s.test(y)?g:(y=y.replace(u,f),y.charAt(0)!=="-"&&(y="-"+y),o+y)}c(m,"datasetToAttribute");function f(g){return"-"+g.toLowerCase()}c(f,"kebab");function h(g){return g.charAt(1).toUpperCase()}c(h,"camelcase")}),ik=W((e,t)=>{t.exports=n;var r=/[#.]/g;function n(a,o){for(var i=a||"",s=o||"div",u={},d=0,p,m,f;d{e.parse=a,e.stringify=o;var t="",r=" ",n=/[ \t\n\r\f]+/g;function a(i){var s=String(i||t).trim();return s===t?[]:s.split(n)}c(a,"parse");function o(i){return i.join(r).trim()}c(o,"stringify")}),sk=W(e=>{e.parse=a,e.stringify=o;var t=",",r=" ",n="";function a(i){for(var s=[],u=String(i||n),d=u.indexOf(t),p=0,m=!1,f;!m;)d===-1&&(d=u.length,m=!0),f=u.slice(p,d).trim(),(f||!m)&&s.push(f),p=d+1,d=u.indexOf(t,p);return s}c(a,"parse");function o(i,s){var u=s||{},d=u.padLeft===!1?n:r,p=u.padRight?r:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(p+t+d).trim()}c(o,"stringify")}),uk=W((e,t)=>{var r=ok(),n=rp(),a=ik(),o=lk().parse,i=sk().parse;t.exports=u;var s={}.hasOwnProperty;function u(b,D,w){var x=w?y(w):null;return E;function E(S,k){var A=a(S,D),_=Array.prototype.slice.call(arguments,2),R=A.tagName.toLowerCase(),T;if(A.tagName=x&&s.call(x,R)?x[R]:R,k&&d(k,A)&&(_.unshift(k),k=null),k)for(T in k)C(A.properties,T,k[T]);return m(A.children,_),A.tagName==="template"&&(A.content={type:"root",children:A.children},A.children=[]),A}function C(S,k,A){var _,R,T;A==null||A!==A||(_=r(b,k),R=_.property,T=A,typeof T=="string"&&(_.spaceSeparated?T=o(T):_.commaSeparated?T=i(T):_.commaOrSpaceSeparated&&(T=o(i(T).join(" ")))),R==="style"&&typeof A!="string"&&(T=g(T)),R==="className"&&S.className&&(T=S.className.concat(T)),S[R]=f(_,R,T))}}c(u,"factory");function d(b,D){return typeof b=="string"||"length"in b||p(D.tagName,b)}c(d,"isChildren");function p(b,D){var w=D.type;return b==="input"||!w||typeof w!="string"?!1:typeof D.children=="object"&&"length"in D.children?!0:(w=w.toLowerCase(),b==="button"?w!=="menu"&&w!=="submit"&&w!=="reset"&&w!=="button":"value"in D)}c(p,"isNode");function m(b,D){var w,x;if(typeof D=="string"||typeof D=="number"){b.push({type:"text",value:String(D)});return}if(typeof D=="object"&&"length"in D){for(w=-1,x=D.length;++w{var r=ak(),n=uk(),a=n(r,"div");a.displayName="html",t.exports=a}),dk=W((e,t)=>{t.exports=ck()}),pk=W((e,t)=>{t.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),fk=W((e,t)=>{t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),qy=W((e,t)=>{t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=48&&a<=57}c(r,"decimal")}),hk=W((e,t)=>{t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=102||a>=65&&a<=70||a>=48&&a<=57}c(r,"hexadecimal")}),mk=W((e,t)=>{t.exports=r;function r(n){var a=typeof n=="string"?n.charCodeAt(0):n;return a>=97&&a<=122||a>=65&&a<=90}c(r,"alphabetical")}),gk=W((e,t)=>{var r=mk(),n=qy();t.exports=a;function a(o){return r(o)||n(o)}c(a,"alphanumerical")}),vk=W((e,t)=>{var r,n=59;t.exports=a;function a(o){var i="&"+o+";",s;return r=r||document.createElement("i"),r.innerHTML=i,s=r.textContent,s.charCodeAt(s.length-1)===n&&o!=="semi"||s===i?!1:s}c(a,"decodeEntity")}),yk=W((e,t)=>{var r=pk(),n=fk(),a=qy(),o=hk(),i=gk(),s=vk();t.exports=re;var u={}.hasOwnProperty,d=String.fromCharCode,p=Function.prototype,m={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f=9,h=10,g=12,y=32,b=38,D=59,w=60,x=61,E=35,C=88,S=120,k=65533,A="named",_="hexadecimal",R="decimal",T={};T[_]=16,T[R]=10;var L={};L[A]=i,L[R]=a,L[_]=o;var z=1,M=2,O=3,$=4,j=5,K=6,H=7,Y={};Y[z]="Named character references must be terminated by a semicolon",Y[M]="Numeric character references must be terminated by a semicolon",Y[O]="Named character references cannot be empty",Y[$]="Numeric character references cannot be empty",Y[j]="Named character references must be known",Y[K]="Numeric character references cannot be disallowed",Y[H]="Numeric character references cannot be outside the permissible Unicode range";function re(N,J){var Z={},pe,Se;J||(J={});for(Se in m)pe=J[Se],Z[Se]=pe??m[Se];return(Z.position.indent||Z.position.start)&&(Z.indent=Z.position.indent||[],Z.position=Z.position.start),le(N,Z)}c(re,"parseEntities");function le(N,J){var Z=J.additional,pe=J.nonTerminated,Se=J.text,At=J.reference,Ue=J.warning,ut=J.textContext,P=J.referenceContext,ct=J.warningContext,Ft=J.position,jr=J.indent||[],An=N.length,_t=0,gi=-1,Re=Ft.column||1,Vr=Ft.line||1,It="",Fn=[],Rt,_n,Tt,ke,dt,ge,ce,Bt,yi,cu,Ur,Oa,qr,nr,Qf,Ma,bi,zt,ve;for(typeof Z=="string"&&(Z=Z.charCodeAt(0)),Ma=$a(),Bt=Ue?zx:p,_t--,An++;++_t65535&&(ge-=65536,cu+=d(ge>>>10|55296),ge=56320|ge&1023),ge=cu+d(ge))):nr!==A&&Bt($,zt)),ge?(eh(),Ma=$a(),_t=ve-1,Re+=ve-qr+1,Fn.push(ge),bi=$a(),bi.offset++,At&&At.call(P,ge,{start:Ma,end:bi},N.slice(qr-1,ve)),Ma=bi):(ke=N.slice(qr-1,ve),It+=ke,Re+=ke.length,_t=ve-1)}else dt===10&&(Vr++,gi++,Re=0),dt===dt?(It+=d(dt),Re++):eh();return Fn.join("");function $a(){return{line:Vr,column:Re,offset:_t+(Ft.offset||0)}}function zx(th,rh){var du=$a();du.column+=rh,du.offset+=rh,Ue.call(ct,Y[th],du,th)}function eh(){It&&(Fn.push(It),Se&&Se.call(ut,It,{start:Ma,end:$a()}),It="")}}c(le,"parse");function ee(N){return N>=55296&&N<=57343||N>1114111}c(ee,"prohibited");function ne(N){return N>=1&&N<=8||N===11||N>=13&&N<=31||N>=127&&N<=159||N>=64976&&N<=65007||(N&65535)===65535||(N&65535)===65534}c(ne,"disallowed")}),bk=W((e,t)=>{var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=function(a){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},u={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:c(function x(E){return E instanceof d?new d(E.type,x(E.content),E.alias):Array.isArray(E)?E.map(x):E.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(S){var x=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(x){var E=document.getElementsByTagName("script");for(var C in E)if(E[C].src==x)return E[C]}return null}},"currentScript"),isActive:c(function(x,E,C){for(var S="no-"+E;x;){var k=x.classList;if(k.contains(E))return!0;if(k.contains(S))return!1;x=x.parentElement}return!!C},"isActive")},languages:{plain:s,plaintext:s,text:s,txt:s,extend:c(function(x,E){var C=u.util.clone(u.languages[x]);for(var S in E)C[S]=E[S];return C},"extend"),insertBefore:c(function(x,E,C,S){S=S||u.languages;var k=S[x],A={};for(var _ in k)if(k.hasOwnProperty(_)){if(_==E)for(var R in C)C.hasOwnProperty(R)&&(A[R]=C[R]);C.hasOwnProperty(_)||(A[_]=k[_])}var T=S[x];return S[x]=A,u.languages.DFS(u.languages,function(L,z){z===T&&L!=x&&(this[L]=A)}),A},"insertBefore"),DFS:c(function x(E,C,S,k){k=k||{};var A=u.util.objId;for(var _ in E)if(E.hasOwnProperty(_)){C.call(E,_,E[_],S||_);var R=E[_],T=u.util.type(R);T==="Object"&&!k[A(R)]?(k[A(R)]=!0,x(R,C,null,k)):T==="Array"&&!k[A(R)]&&(k[A(R)]=!0,x(R,C,_,k))}},"DFS")},plugins:{},highlightAll:c(function(x,E){u.highlightAllUnder(document,x,E)},"highlightAll"),highlightAllUnder:c(function(x,E,C){var S={callback:C,container:x,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),u.hooks.run("before-all-elements-highlight",S);for(var k=0,A;A=S.elements[k++];)u.highlightElement(A,E===!0,S.callback)},"highlightAllUnder"),highlightElement:c(function(x,E,C){var S=u.util.getLanguage(x),k=u.languages[S];u.util.setLanguage(x,S);var A=x.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(A,S);var _=x.textContent,R={element:x,language:S,grammar:k,code:_};function T(z){R.highlightedCode=z,u.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,u.hooks.run("after-highlight",R),u.hooks.run("complete",R),C&&C.call(R.element)}if(c(T,"insertHighlightedCode"),u.hooks.run("before-sanity-check",R),A=R.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!R.code){u.hooks.run("complete",R),C&&C.call(R.element);return}if(u.hooks.run("before-highlight",R),!R.grammar){T(u.util.encode(R.code));return}if(E&&a.Worker){var L=new Worker(u.filename);L.onmessage=function(z){T(z.data)},L.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else T(u.highlight(R.code,R.grammar,R.language))},"highlightElement"),highlight:c(function(x,E,C){var S={code:x,grammar:E,language:C};if(u.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=u.tokenize(S.code,S.grammar),u.hooks.run("after-tokenize",S),d.stringify(u.util.encode(S.tokens),S.language)},"highlight"),tokenize:c(function(x,E){var C=E.rest;if(C){for(var S in C)E[S]=C[S];delete E.rest}var k=new f;return h(k,k.head,x),m(x,k,E,k.head,0),y(k)},"tokenize"),hooks:{all:{},add:c(function(x,E){var C=u.hooks.all;C[x]=C[x]||[],C[x].push(E)},"add"),run:c(function(x,E){var C=u.hooks.all[x];if(!(!C||!C.length))for(var S=0,k;k=C[S++];)k(E)},"run")},Token:d};a.Prism=u;function d(x,E,C,S){this.type=x,this.content=E,this.alias=C,this.length=(S||"").length|0}c(d,"Token"),d.stringify=c(function x(E,C){if(typeof E=="string")return E;if(Array.isArray(E)){var S="";return E.forEach(function(T){S+=x(T,C)}),S}var k={type:E.type,content:x(E.content,C),tag:"span",classes:["token",E.type],attributes:{},language:C},A=E.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(k.classes,A):k.classes.push(A)),u.hooks.run("wrap",k);var _="";for(var R in k.attributes)_+=" "+R+'="'+(k.attributes[R]||"").replace(/"/g,""")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+_+">"+k.content+""},"stringify");function p(x,E,C,S){x.lastIndex=E;var k=x.exec(C);if(k&&S&&k[1]){var A=k[1].length;k.index+=A,k[0]=k[0].slice(A)}return k}c(p,"matchPattern");function m(x,E,C,S,k,A){for(var _ in C)if(!(!C.hasOwnProperty(_)||!C[_])){var R=C[_];R=Array.isArray(R)?R:[R];for(var T=0;T=A.reach);Y+=H.value.length,H=H.next){var re=H.value;if(E.length>x.length)return;if(!(re instanceof d)){var le=1,ee;if(O){if(ee=p(K,Y,x,M),!ee||ee.index>=x.length)break;var Z=ee.index,ne=ee.index+ee[0].length,N=Y;for(N+=H.value.length;Z>=N;)H=H.next,N+=H.value.length;if(N-=H.value.length,Y=N,H.value instanceof d)continue;for(var J=H;J!==E.tail&&(NA.reach&&(A.reach=Ue);var ut=H.prev;Se&&(ut=h(E,ut,Se),Y+=Se.length),g(E,ut,le);var P=new d(_,z?u.tokenize(pe,z):pe,$,pe);if(H=h(E,ut,P),At&&h(E,H,At),le>1){var ct={cause:_+","+T,reach:Ue};m(x,E,C,H.prev,Y,ct),A&&ct.reach>A.reach&&(A.reach=ct.reach)}}}}}}c(m,"matchGrammar");function f(){var x={value:null,prev:null,next:null},E={value:null,prev:x,next:null};x.next=E,this.head=x,this.tail=E,this.length=0}c(f,"LinkedList");function h(x,E,C){var S=E.next,k={value:C,prev:E,next:S};return E.next=k,S.prev=k,x.length++,k}c(h,"addAfter");function g(x,E,C){for(var S=E.next,k=0;k{t.exports=r,r.displayName="clike",r.aliases=[];function r(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}c(r,"clike")}),Ek=W((e,t)=>{t.exports=r,r.displayName="javascript",r.aliases=["js"];function r(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}c(r,"javascript")}),xk=W((e,t)=>{var r=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},n=k();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var a=dk(),o=yk(),i=bk(),s=ly(),u=ry(),d=wk(),p=Ek();n();var m={}.hasOwnProperty;function f(){}c(f,"Refractor"),f.prototype=i;var h=new f;t.exports=h,h.highlight=b,h.register=g,h.alias=y,h.registered=D,h.listLanguages=w,g(s),g(u),g(d),g(p),h.util.encode=C,h.Token.stringify=x;function g(A){if(typeof A!="function"||!A.displayName)throw new Error("Expected `function` for `grammar`, got `"+A+"`");h.languages[A.displayName]===void 0&&A(h)}c(g,"register");function y(A,_){var R=h.languages,T=A,L,z,M,O;_&&(T={},T[A]=_);for(L in T)for(z=T[L],z=typeof z=="string"?[z]:z,M=z.length,O=-1;++O{YS(),xi=Ce(xk()),Di=$y(xi.default,{}),Di.registerLanguage=function(e,t){return xi.default.register(t)},Di.alias=function(e,t){return xi.default.alias(e,t)},Xi=Di}),Ck=B(()=>{_y()}),Lh,Eu,ap,Wy=B(()=>{Lh=F.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Eu=F.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}),Eu.displayName="ActionButton",ap=c(({actionItems:e,...t})=>v.createElement(Lh,{...t},e.map(({title:r,className:n,onClick:a,disabled:o},i)=>v.createElement(Eu,{key:i,className:n,onClick:a,disabled:!!o},r))),"ActionBar")});function Gy(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function op(...e){return t=>e.forEach(r=>Gy(r,t))}function Ke(...e){return l.useCallback(op(...e),e)}var Sa=B(()=>{c(Gy,"$6ed0406888f73fc4$var$setRef"),c(op,"$6ed0406888f73fc4$export$43e446d32b3d21af"),c(Ke,"$6ed0406888f73fc4$export$c7b2cbe3552a0d05")});function Oh(e){return l.isValidElement(e)&&e.type===Ky}function Mh(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...i)=>{o(...i),a(...i)}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}var Ao,Ci,Ky,ip=B(()=>{St(),Sa(),Ao=l.forwardRef((e,t)=>{let{children:r,...n}=e,a=l.Children.toArray(r),o=a.find(Oh);if(o){let i=o.props.children,s=a.map(u=>u===o?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:u);return l.createElement(Ci,q({},n,{ref:t}),l.isValidElement(i)?l.cloneElement(i,void 0,s):null)}return l.createElement(Ci,q({},n,{ref:t}),r)}),Ao.displayName="Slot",Ci=l.forwardRef((e,t)=>{let{children:r,...n}=e;return l.isValidElement(r)?l.cloneElement(r,{...Mh(n,r.props),ref:t?op(t,r.ref):r.ref}):l.Children.count(r)>1?l.Children.only(null):null}),Ci.displayName="SlotClone",Ky=c(({children:e})=>l.createElement(l.Fragment,null,e),"$5e63c961fc1ce211$export$d9f1ccf0bdb05d45"),c(Oh,"$5e63c961fc1ce211$var$isSlottable"),c(Mh,"$5e63c961fc1ce211$var$mergeProps")});function Yy(e,t){e&&F1.flushSync(()=>e.dispatchEvent(t))}var $h,$e,Jo=B(()=>{St(),ip(),$h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$e=$h.reduce((e,t)=>{let r=l.forwardRef((n,a)=>{let{asChild:o,...i}=n,s=o?Ao:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(s,q({},i,{ref:a}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),c(Yy,"$8927f6f2acc4f386$export$6d1a0317bde7de7f")}),Fo,lp=B(()=>{Fo=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{}});function Jy(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}function Ph(e){let[t,r]=l.useState(),n=l.useRef({}),a=l.useRef(e),o=l.useRef("none"),i=e?"mounted":"unmounted",[s,u]=Jy(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{let d=oo(n.current);o.current=s==="mounted"?d:"none"},[s]),Fo(()=>{let d=n.current,p=a.current;if(p!==e){let m=o.current,f=oo(d);e?u("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&m!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),Fo(()=>{if(t){let d=c(m=>{let f=oo(n.current).includes(m.animationName);m.target===t&&f&&F1.flushSync(()=>u("ANIMATION_END"))},"handleAnimationEnd"),p=c(m=>{m.target===t&&(o.current=oo(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function oo(e){return(e==null?void 0:e.animationName)||"none"}var cr,Zy=B(()=>{Sa(),lp(),c(Jy,"$fe963b355347cc68$export$3e6543de14f8614f"),cr=c(e=>{let{present:t,children:r}=e,n=Ph(t),a=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),o=Ke(n.ref,a.ref);return typeof r=="function"||n.isPresent?l.cloneElement(a,{ref:o}):null},"$921a889cee6df7e8$export$99c2b779aa4e8b8b"),cr.displayName="Presence",c(Ph,"$921a889cee6df7e8$var$usePresence"),c(oo,"$921a889cee6df7e8$var$getAnimationName")});function Xy(e,t){let r=l.createContext(t);function n(o){let{children:i,...s}=o,u=l.useMemo(()=>s,Object.values(s));return l.createElement(r.Provider,{value:u},i)}c(n,"Provider");function a(o){let i=l.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return c(a,"useContext"),n.displayName=e+"Provider",[n,a]}function sp(e,t=[]){let r=[];function n(o,i){let s=l.createContext(i),u=r.length;r=[...r,i];function d(m){let{scope:f,children:h,...g}=m,y=(f==null?void 0:f[e][u])||s,b=l.useMemo(()=>g,Object.values(g));return l.createElement(y.Provider,{value:b},h)}c(d,"Provider");function p(m,f){let h=(f==null?void 0:f[e][u])||s,g=l.useContext(h);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${o}\``)}return c(p,"useContext"),d.displayName=o+"Provider",[d,p]}c(n,"$c512c27ab02ef895$export$fd42f52fd3ae1109");let a=c(()=>{let o=r.map(i=>l.createContext(i));return c(function(i){let s=(i==null?void 0:i[e])||o;return l.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])},"useScope")},"createScope");return a.scopeName=e,[n,Qy(a,...t)]}function Qy(...e){let t=e[0];if(e.length===1)return t;let r=c(()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return c(function(a){let o=n.reduce((i,{useScope:s,scopeName:u})=>{let d=s(a)[`__scope${u}`];return{...i,...d}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope1");return r.scopeName=t.scopeName,r}var eb=B(()=>{c(Xy,"$c512c27ab02ef895$export$fd42f52fd3ae1109"),c(sp,"$c512c27ab02ef895$export$50c7b4e9d9f19c1"),c(Qy,"$c512c27ab02ef895$var$composeContextScopes")});function ze(e){let t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}var Zo=B(()=>{c(ze,"$b1b2314f5f9a1d84$export$25bec8c6f54ee79a")});function tb(e){let t=l.useContext(rb);return e||t||"ltr"}var rb,Sk=B(()=>{rb=l.createContext(void 0),c(tb,"$f631663db3294ace$export$b39126d51d94e6f3")});function nb(e,[t,r]){return Math.min(r,Math.max(t,e))}var kk=B(()=>{c(nb,"$ae6933e535247d3d$export$7d15b64cf5a3a4c4")});function Ie(e,t,{checkForDefaultPrevented:r=!0}={}){return c(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}var up=B(()=>{c(Ie,"$e42e1063c40fb3ef$export$b9ecd428b558ff10")});function Nh(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}function Na(e){return e?parseInt(e,10):0}function U0(e,t){let r=e/t;return isNaN(r)?0:r}function wo(e){let t=U0(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Hh(e,t,r,n="ltr"){let a=wo(r),o=a/2,i=t||o,s=a-i,u=r.scrollbar.paddingStart+i,d=r.scrollbar.size-r.scrollbar.paddingEnd-s,p=r.content-r.viewport,m=n==="ltr"?[0,p]:[p*-1,0];return cp([u,d],m)(e)}function xu(e,t,r="ltr"){let n=wo(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,i=t.content-t.viewport,s=o-n,u=r==="ltr"?[0,i]:[i*-1,0],d=nb(e,u);return cp([0,i],[0,s])(d)}function cp(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Du(e,t){return e>0&&e()=>window.clearTimeout(n.current),[]),l.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Wr(e,t){let r=ze(t);Fo(()=>{let n=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}},[e,r])}var Cu,Su,Ak,jh,qe,Vh,Uh,qh,Lt,Wh,Gh,Kh,ku,Si,Yh,Jh,Zh,Au,Fu,ki,Xh,Qh,_u,em,tm,rm,ab,ob,ib,lb,sb,Fk=B(()=>{St(),Jo(),Zy(),eb(),Sa(),Zo(),Sk(),lp(),kk(),up(),c(Nh,"$6c2e24571c90391f$export$3e6543de14f8614f"),Cu="ScrollArea",[Su,Ak]=sp(Cu),[jh,qe]=Su(Cu),Vh=l.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:o=600,...i}=e,[s,u]=l.useState(null),[d,p]=l.useState(null),[m,f]=l.useState(null),[h,g]=l.useState(null),[y,b]=l.useState(null),[D,w]=l.useState(0),[x,E]=l.useState(0),[C,S]=l.useState(!1),[k,A]=l.useState(!1),_=Ke(t,T=>u(T)),R=tb(a);return l.createElement(jh,{scope:r,type:n,dir:R,scrollHideDelay:o,scrollArea:s,viewport:d,onViewportChange:p,content:m,onContentChange:f,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:C,onScrollbarXEnabledChange:S,scrollbarY:y,onScrollbarYChange:b,scrollbarYEnabled:k,onScrollbarYEnabledChange:A,onCornerWidthChange:w,onCornerHeightChange:E},l.createElement($e.div,q({dir:R},i,{ref:_,style:{position:"relative","--radix-scroll-area-corner-width":D+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),Uh="ScrollAreaViewport",qh=l.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,...a}=e,o=qe(Uh,r),i=l.useRef(null),s=Ke(t,i,o.onViewportChange);return l.createElement(l.Fragment,null,l.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),l.createElement($e.div,q({"data-radix-scroll-area-viewport":""},a,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),l.createElement("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},n)))}),Lt="ScrollAreaScrollbar",Wh=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=qe(Lt,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=a,s=e.orientation==="horizontal";return l.useEffect(()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)}),[s,o,i]),a.type==="hover"?l.createElement(Gh,q({},n,{ref:t,forceMount:r})):a.type==="scroll"?l.createElement(Kh,q({},n,{ref:t,forceMount:r})):a.type==="auto"?l.createElement(ku,q({},n,{ref:t,forceMount:r})):a.type==="always"?l.createElement(Si,q({},n,{ref:t})):null}),Gh=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=qe(Lt,e.__scopeScrollArea),[o,i]=l.useState(!1);return l.useEffect(()=>{let s=a.scrollArea,u=0;if(s){let d=c(()=>{window.clearTimeout(u),i(!0)},"handlePointerEnter"),p=c(()=>{u=window.setTimeout(()=>i(!1),a.scrollHideDelay)},"handlePointerLeave");return s.addEventListener("pointerenter",d),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",d),s.removeEventListener("pointerleave",p)}}},[a.scrollArea,a.scrollHideDelay]),l.createElement(cr,{present:r||o},l.createElement(ku,q({"data-state":o?"visible":"hidden"},n,{ref:t})))}),Kh=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=qe(Lt,e.__scopeScrollArea),o=e.orientation==="horizontal",i=Ha(()=>u("SCROLL_END"),100),[s,u]=Nh("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return l.useEffect(()=>{if(s==="idle"){let d=window.setTimeout(()=>u("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,a.scrollHideDelay,u]),l.useEffect(()=>{let d=a.viewport,p=o?"scrollLeft":"scrollTop";if(d){let m=d[p],f=c(()=>{let h=d[p];m!==h&&(u("SCROLL"),i()),m=h},"handleScroll");return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,o,u,i]),l.createElement(cr,{present:r||s!=="hidden"},l.createElement(Si,q({"data-state":s==="hidden"?"hidden":"visible"},n,{ref:t,onPointerEnter:Ie(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:Ie(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),ku=l.forwardRef((e,t)=>{let r=qe(Lt,e.__scopeScrollArea),{forceMount:n,...a}=e,[o,i]=l.useState(!1),s=e.orientation==="horizontal",u=Ha(()=>{if(r.viewport){let d=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,a=qe(Lt,e.__scopeScrollArea),o=l.useRef(null),i=l.useRef(0),[s,u]=l.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=U0(s.viewport,s.content),p={...n,sizes:s,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:c(f=>o.current=f,"onThumbChange"),onThumbPointerUp:c(()=>i.current=0,"onThumbPointerUp"),onThumbPointerDown:c(f=>i.current=f,"onThumbPointerDown")};function m(f,h){return Hh(f,i.current,s,h)}return c(m,"getScrollPosition"),r==="horizontal"?l.createElement(Yh,q({},p,{ref:t,onThumbPositionChange:c(()=>{if(a.viewport&&o.current){let f=a.viewport.scrollLeft,h=xu(f,s,a.dir);o.current.style.transform=`translate3d(${h}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:c(f=>{a.viewport&&(a.viewport.scrollLeft=f)},"onWheelScroll"),onDragScroll:c(f=>{a.viewport&&(a.viewport.scrollLeft=m(f,a.dir))},"onDragScroll")})):r==="vertical"?l.createElement(Jh,q({},p,{ref:t,onThumbPositionChange:c(()=>{if(a.viewport&&o.current){let f=a.viewport.scrollTop,h=xu(f,s);o.current.style.transform=`translate3d(0, ${h}px, 0)`}},"onThumbPositionChange"),onWheelScroll:c(f=>{a.viewport&&(a.viewport.scrollTop=f)},"onWheelScroll"),onDragScroll:c(f=>{a.viewport&&(a.viewport.scrollTop=m(f))},"onDragScroll")})):null}),Yh=l.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,o=qe(Lt,e.__scopeScrollArea),[i,s]=l.useState(),u=l.useRef(null),d=Ke(t,u,o.onScrollbarXChange);return l.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),l.createElement(Fu,q({"data-orientation":"horizontal"},a,{ref:d,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":wo(r)+"px",...e.style},onThumbPointerDown:c(p=>e.onThumbPointerDown(p.x),"onThumbPointerDown"),onDragScroll:c(p=>e.onDragScroll(p.x),"onDragScroll"),onWheelScroll:c((p,m)=>{if(o.viewport){let f=o.viewport.scrollLeft+p.deltaX;e.onWheelScroll(f),Du(f,m)&&p.preventDefault()}},"onWheelScroll"),onResize:c(()=>{u.current&&o.viewport&&i&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Na(i.paddingLeft),paddingEnd:Na(i.paddingRight)}})},"onResize")}))}),Jh=l.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,o=qe(Lt,e.__scopeScrollArea),[i,s]=l.useState(),u=l.useRef(null),d=Ke(t,u,o.onScrollbarYChange);return l.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),l.createElement(Fu,q({"data-orientation":"vertical"},a,{ref:d,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":wo(r)+"px",...e.style},onThumbPointerDown:c(p=>e.onThumbPointerDown(p.y),"onThumbPointerDown"),onDragScroll:c(p=>e.onDragScroll(p.y),"onDragScroll"),onWheelScroll:c((p,m)=>{if(o.viewport){let f=o.viewport.scrollTop+p.deltaY;e.onWheelScroll(f),Du(f,m)&&p.preventDefault()}},"onWheelScroll"),onResize:c(()=>{u.current&&o.viewport&&i&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Na(i.paddingTop),paddingEnd:Na(i.paddingBottom)}})},"onResize")}))}),[Zh,Au]=Su(Lt),Fu=l.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:p,onResize:m,...f}=e,h=qe(Lt,r),[g,y]=l.useState(null),b=Ke(t,_=>y(_)),D=l.useRef(null),w=l.useRef(""),x=h.viewport,E=n.content-n.viewport,C=ze(p),S=ze(u),k=Ha(m,10);function A(_){if(D.current){let R=_.clientX-D.current.left,T=_.clientY-D.current.top;d({x:R,y:T})}}return c(A,"handleDragScroll"),l.useEffect(()=>{let _=c(R=>{let T=R.target;g!=null&&g.contains(T)&&C(R,E)},"handleWheel");return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[x,g,E,C]),l.useEffect(S,[n,S]),Wr(g,k),Wr(h.content,k),l.createElement(Zh,{scope:r,scrollbar:g,hasThumb:a,onThumbChange:ze(o),onThumbPointerUp:ze(i),onThumbPositionChange:S,onThumbPointerDown:ze(s)},l.createElement($e.div,q({},f,{ref:b,style:{position:"absolute",...f.style},onPointerDown:Ie(e.onPointerDown,_=>{_.button===0&&(_.target.setPointerCapture(_.pointerId),D.current=g.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",h.viewport&&(h.viewport.style.scrollBehavior="auto"),A(_))}),onPointerMove:Ie(e.onPointerMove,A),onPointerUp:Ie(e.onPointerUp,_=>{let R=_.target;R.hasPointerCapture(_.pointerId)&&R.releasePointerCapture(_.pointerId),document.body.style.webkitUserSelect=w.current,h.viewport&&(h.viewport.style.scrollBehavior=""),D.current=null})})))}),ki="ScrollAreaThumb",Xh=l.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=Au(ki,e.__scopeScrollArea);return l.createElement(cr,{present:r||a.hasThumb},l.createElement(Qh,q({ref:t},n)))}),Qh=l.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...a}=e,o=qe(ki,r),i=Au(ki,r),{onThumbPositionChange:s}=i,u=Ke(t,m=>i.onThumbChange(m)),d=l.useRef(),p=Ha(()=>{d.current&&(d.current(),d.current=void 0)},100);return l.useEffect(()=>{let m=o.viewport;if(m){let f=c(()=>{if(p(),!d.current){let h=rm(m,s);d.current=h,s()}},"handleScroll");return s(),m.addEventListener("scroll",f),()=>m.removeEventListener("scroll",f)}},[o.viewport,p,s]),l.createElement($e.div,q({"data-state":i.hasThumb?"visible":"hidden"},a,{ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Ie(e.onPointerDownCapture,m=>{let f=m.target.getBoundingClientRect(),h=m.clientX-f.left,g=m.clientY-f.top;i.onThumbPointerDown({x:h,y:g})}),onPointerUp:Ie(e.onPointerUp,i.onThumbPointerUp)}))}),_u="ScrollAreaCorner",em=l.forwardRef((e,t)=>{let r=qe(_u,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?l.createElement(tm,q({},e,{ref:t})):null}),tm=l.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,a=qe(_u,r),[o,i]=l.useState(0),[s,u]=l.useState(0),d=!!(o&&s);return Wr(a.scrollbarX,()=>{var p;let m=((p=a.scrollbarX)===null||p===void 0?void 0:p.offsetHeight)||0;a.onCornerHeightChange(m),u(m)}),Wr(a.scrollbarY,()=>{var p;let m=((p=a.scrollbarY)===null||p===void 0?void 0:p.offsetWidth)||0;a.onCornerWidthChange(m),i(m)}),d?l.createElement($e.div,q({},n,{ref:t,style:{width:o,height:s,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}})):null}),c(Na,"$57acba87d6e25586$var$toInt"),c(U0,"$57acba87d6e25586$var$getThumbRatio"),c(wo,"$57acba87d6e25586$var$getThumbSize"),c(Hh,"$57acba87d6e25586$var$getScrollPositionFromPointer"),c(xu,"$57acba87d6e25586$var$getThumbOffsetFromScroll"),c(cp,"$57acba87d6e25586$var$linearScale"),c(Du,"$57acba87d6e25586$var$isScrollingWithinScrollbarBounds"),rm=c((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return c(function a(){let o={left:e.scrollLeft,top:e.scrollTop},i=r.left!==o.left,s=r.top!==o.top;(i||s)&&t(),r=o,n=window.requestAnimationFrame(a)},"loop")(),()=>window.cancelAnimationFrame(n)},"$57acba87d6e25586$var$addUnlinkedScrollListener"),c(Ha,"$57acba87d6e25586$var$useDebounceCallback"),c(Wr,"$57acba87d6e25586$var$useResizeObserver"),ab=Vh,ob=qh,ib=Wh,lb=Xh,sb=em}),nm,am,Iu,Ru,Fl,dp=B(()=>{Fk(),nm=F(ab)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),am=F(ob)({width:"100%",height:"100%"}),Iu=F(ib)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),Ru=F(lb)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Fl=l.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:a=6,className:o},i)=>v.createElement(nm,{scrollbarsize:a,offset:n,className:o},v.createElement(am,{ref:i},e),t&&v.createElement(Iu,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},v.createElement(Ru,null)),r&&v.createElement(Iu,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},v.createElement(Ru,null)),t&&r&&v.createElement(sb,null))),Fl.displayName="ScrollArea"}),pp={};Ca(pp,{SyntaxHighlighter:()=>Eo,createCopyToClipboardFunction:()=>q0,default:()=>ub,supportedLanguages:()=>W0});const{logger:_k}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function q0(){return io!=null&&io.clipboard?e=>io.clipboard.writeText(e):async e=>{let t=Pn.createElement("TEXTAREA"),r=Pn.activeElement;t.value=e,Pn.body.appendChild(t),t.select(),Pn.execCommand("copy"),Pn.body.removeChild(t),r.focus()}}var om,io,Pn,im,W0,lm,sm,um,cm,dm,pm,fm,Tu,hm,mm,Eo,ub,Cs=B(()=>{Y1(),om=Ce(Es(),1),xS(),CS(),SS(),AS(),_S(),RS(),TS(),zS(),OS(),$S(),PS(),Dk(),Ck(),Wy(),dp(),{navigator:io,document:Pn,window:im}=ws,W0={jsextra:ay,jsx:ey,json:oy,yml:cy,md:uy,bash:ty,css:ny,html:sy,tsx:py,typescript:fy,graphql:iy},Object.entries(W0).forEach(([e,t])=>{Xi.registerLanguage(e,t)}),lm=(0,om.default)(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),sm=q0(),c(q0,"createCopyToClipboardFunction"),um=F.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),cm=c(({children:e,className:t})=>v.createElement(Fl,{horizontal:!0,vertical:!0,className:t},e),"UnstyledScroller"),dm=F(cm)({position:"relative"},({theme:e})=>lm(e)),pm=F.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),fm=F.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),Tu=c(e=>{let t=[...e.children],r=t[0],n=r.children[0].value,a={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=a,{...e,children:t}},"processLineNumber"),hm=c(({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,a)=>Ds({node:Tu(n),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`})),"defaultRenderer"),mm=c((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(a=>Tu(a)),...n}):hm:e,"wrapRenderer"),Eo=c(({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:a=!1,format:o=!0,formatter:i=void 0,className:s=void 0,showLineNumbers:u=!1,...d})=>{if(typeof e!="string"||!e.trim())return null;let[p,m]=l.useState("");l.useEffect(()=>{i?i(o,e).then(m):m(e.trim())},[e,o,i]);let[f,h]=l.useState(!1),g=l.useCallback(b=>{b.preventDefault(),sm(p).then(()=>{h(!0),im.setTimeout(()=>h(!1),1500)}).catch(_k.error)},[p]),y=mm(d.renderer,u);return v.createElement(um,{bordered:n,padded:a,showLineNumbers:u,className:s},v.createElement(dm,null,v.createElement(Xi,{padded:a||n,language:t,showLineNumbers:u,showInlineLineNumbers:u,useInlineStyles:!1,PreTag:pm,CodeTag:fm,lineNumberContainerStyle:{},...d,renderer:y},p)),r?v.createElement(ap,{actionItems:[{title:f?"Copied":"Copy",onClick:g}]}):null)},"SyntaxHighlighter"),Eo.registerLanguage=(...e)=>Xi.registerLanguage(...e),ub=Eo});function gm(e){if(typeof e=="string")return Ts;if(Array.isArray(e))return Bs;if(!e)return;let{type:t}=e;if(Lp.has(t))return t}function vm(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(zs(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=m7([...Lp].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}function er(e){return Br(e),{type:Ro,contents:e}}function fp(e,t){return Br(t),{type:To,contents:t,n:e}}function De(e,t={}){return Br(e),Ls(t.expandedStates,!0),{type:pa,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function cb(e){return fp(Number.NEGATIVE_INFINITY,e)}function db(e){return fp({type:"root"},e)}function hp(e){return Ls(e),{type:Bo,parts:e}}function _o(e,t="",r={}){return Br(e),t!==""&&Br(t),{type:zo,breakContents:e,flatContents:t,groupId:r.groupId}}function pb(e,t){return Br(e),{type:Lo,contents:e,groupId:t.groupId,negate:t.negate}}function vn(e,t){Br(e),Ls(t);let r=[];for(let n=0;nt===""))return"";break;case pa:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===pa&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case To:case Ro:case Lo:case Ol:if(!e.contents)return"";break;case zo:if(!e.flatContents&&!e.breakContents)return"";break;case Bs:{let t=[];for(let r of e){if(!r)continue;let[n,...a]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof fa(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case Ts:case zl:case Ll:case Ml:case Sr:case $l:case xo:break;default:throw new Op(e)}return e}function hb(e){return Ss(e,t=>fb(t))}function rt(e,t=g7){return Ss(e,r=>typeof r=="string"?vn(t,r.split(` +`)):r)}function ym(e,t){let r=t===!0||t===po?po:ed,n=r===po?ed:po,a=0,o=0;for(let i of e)i===r?a++:i===n&&o++;return a>o?n:r}function bm(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wm(e){return(e==null?void 0:e.type)==="front-matter"}function Bu(e,t){var r;if(e.type==="text"||e.type==="comment"||oi(e)||e.type==="yaml"||e.type==="toml")return null;if(e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value,e.type==="angularControlFlowBlock"&&(r=t.parameters)!=null&&r.children)for(let n of t.parameters.children)b7.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.type==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim())}async function Em(e,t){if(e.lang==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return db([e.startDelimiter,oe,n,n?oe:"",e.endDelimiter])}}function Xo(e,t=!0){return[er([xe,e]),t?xe:""]}function yn(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function wt(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let a=!0;n&&(r.__onHtmlBindingRoot=(i,s)=>{a=n(i,s)});let o=await t(e,r,t);return a?De(o):Xo(o)}function xm(e,t,r,n){let{node:a}=r,o=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return/^\s*$/.test(o)?"":wt(o,e,{parser:"__ng_directive",__isInHtmlAttribute:!1,trailingComma:"none"},yn)}function G0(e,t){if(!t)return;let r=x7(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>r.endsWith(a)))}function mb(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function Dm(e,t){let r=e.plugins.flatMap(a=>a.languages??[]),n=mb(r,t.language)??G0(r,t.physicalFile)??G0(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}function Cm(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function mp(e,t){return!!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||dn(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||As(e,t)&&!Kt(e)&&e.type!=="interpolation")}function Qo(e){return e.type==="attribute"||!e.parent||!e.prev?!1:gb(e.prev)}function gb(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function Ye(e){return e.type==="text"||e.type==="comment"}function Kt(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||ha(e)&&(e.name==="script"||e.name==="style"))}function vb(e){return e.children&&!Kt(e)}function yb(e){return Kt(e)||e.type==="interpolation"||gp(e)}function gp(e){return Dp(e).startsWith("pre")}function bb(e,t){var r,n;let a=o();if(a&&!e.prev&&(n=(r=e.parent)==null?void 0:r.tagDefinition)!=null&&n.ignoreFirstLf)return e.type==="interpolation";return a;function o(){return oi(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:dn(e.parent)?!0:!(!e.prev&&(e.parent.type==="root"||dn(e)&&e.parent||Kt(e.parent)||ei(e.parent,t)||!Fb(e.parent.cssDisplay))||e.prev&&!Rb(e.prev.cssDisplay))}}function wb(e,t){return oi(e)||e.type==="angularControlFlowBlock"?!1:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?!0:!e.parent||e.parent.cssDisplay==="none"?!1:dn(e.parent)?!0:!(!e.next&&(e.parent.type==="root"||dn(e)&&e.parent||Kt(e.parent)||ei(e.parent,t)||!_b(e.parent.cssDisplay))||e.next&&!Ib(e.next.cssDisplay))}function Eb(e){return Tb(e.cssDisplay)&&!Kt(e)}function lo(e){return oi(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some(t=>Cb(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&bp(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||wp(e.lastChild))}function vp(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Qi(e){return Ep(e)||e.prev&&Db(e.prev)||yp(e)}function Db(e){return Ep(e)||e.type==="element"&&e.fullName==="br"||yp(e)}function yp(e){return bp(e)&&wp(e)}function bp(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Ep(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function ks(e){return e.lastChild?ks(e.lastChild):e}function Cb(e){var t;return(t=e.children)==null?void 0:t.some(r=>r.type!=="text")}function xp(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return"json"}}function Sb(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:a,lang:o}=e.attrMap;return!o&&!a?"babel":ii(t,{language:o})??xp(a)}function kb(e,t){if(!As(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:a}=r;return ii(t,{language:a})??xp(n)}function Ab(e,t){if(e.name!=="style")return;let{lang:r}=e.attrMap;return r?ii(t,{language:r}):"css"}function K0(e,t){return Sb(e,t)??Ab(e,t)??kb(e,t)}function ka(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Fb(e){return!ka(e)&&e!=="inline-block"}function _b(e){return!ka(e)&&e!=="inline-block"}function Ib(e){return!ka(e)}function Rb(e){return!ka(e)}function Tb(e){return!ka(e)&&e!=="inline-block"}function dn(e){return Dp(e).startsWith("pre")}function Bb(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function zb(e,t){var r;if(bn(e,t))return"block";if(((r=e.prev)==null?void 0:r.type)==="comment"){let a=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(a)return a[1]}let n=!1;if(e.type==="element"&&e.namespace==="svg")if(Bb(e,a=>a.fullName==="svg:foreignObject"))n=!0;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return e.type==="element"&&(!e.namespace||n||ha(e))&&C7[e.name]||D7}}function Dp(e){return e.type==="element"&&(!e.namespace||ha(e))&&k7[e.name]||S7}function Lb(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(` +`)){if(r.length===0)continue;let n=vt.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&nr.slice(t)).join(` +`)}function Sp(e){return Ne(!1,Ne(!1,e,"'","'"),""",'"')}function gr(e){return Sp(e.value)}function ei(e,t){return bn(e,t)&&!F7.has(e.fullName)}function bn(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function As(e,t){return bn(e,t)&&(ei(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function Ob(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Mb(e,t){let r=e.parent;if(!bn(r,t))return!1;let n=r.fullName,a=e.fullName;return n==="script"&&a==="setup"||n==="style"&&a==="vars"}function kp(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?rt(t):rt(Cp(Mp(t)),oe):vn(Ee,vt.split(t))}function Ap(e,t){return bn(e,t)&&e.name==="script"}async function $b(e,t){let r=[];for(let[n,a]of e.split($p).entries())if(n%2===0)r.push(rt(a));else try{r.push(De(["{{",er([Ee,await wt(a,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0,trailingComma:"none"})]),Ee,"}}"]))}catch{r.push("{{",rt(a),"}}")}return r}function Ai({parser:e}){return(t,r,n)=>wt(gr(n.node),t,{parser:e,trailingComma:"none"},yn)}function Sm(e,t){if(t.parser!=="angular")return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return _7;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/.test(n)||/^ng-(?:if|show|hide|class|style)$/.test(n))return I7;if(n.startsWith("*"))return R7;let a=gr(r);if(/^i18n(?:-.+)?$/.test(n))return()=>Xo(hp(kp(r,a.trim())),!a.includes("@@"));if($p.test(a))return o=>$b(a,o)}function km(e,t){let{node:r}=e,n=gr(r);if(r.fullName==="class"&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/).join(" ")}function Y0(e){return e===" "||e===` +`||e==="\f"||e==="\r"||e===" "}function Am(e){let t=e.length,r,n,a,o,i,s=0,u;function d(h){let g,y=h.exec(e.substring(s));if(y)return[g]=y,s+=g.length,g}c(d,"p");let p=[];for(;;){if(d(L7),s>=t){if(p.length===0)throw new Error("Must contain one or more image candidate strings.");return p}u=s,r=d(O7),n=[],r.slice(-1)===","?(r=r.replace(M7,""),f()):m()}function m(){for(d(z7),a="",o="in descriptor";;){if(i=e.charAt(s),o==="in descriptor")if(Y0(i))a&&(n.push(a),a="",o="after descriptor");else if(i===","){s+=1,a&&n.push(a),f();return}else if(i==="(")a+=i,o="in parens";else if(i===""){a&&n.push(a),f();return}else a+=i;else if(o==="in parens")if(i===")")a+=i,o="in descriptor";else if(i===""){n.push(a),f();return}else a+=i;else if(o==="after descriptor"&&!Y0(i))if(i===""){f();return}else o="in descriptor",s-=1;s+=1}}c(m,"m");function f(){let h=!1,g,y,b,D,w={},x,E,C,S,k;for(D=0;DPb(gr(e.node))}function Pb(e){let t=P7(e),r=N7.filter(p=>t.some(m=>Object.prototype.hasOwnProperty.call(m,p)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,a=rd[n],o=t.map(p=>p.source.value),i=Math.max(...o.map(p=>p.length)),s=t.map(p=>p[n]?String(p[n].value):""),u=s.map(p=>{let m=p.indexOf(".");return m===-1?p.length:m}),d=Math.max(...u);return Xo(vn([",",Ee],o.map((p,m)=>{let f=[p],h=s[m];if(h){let g=i-p.length+1,y=d-u[m],b=" ".repeat(g+y);f.push(_o(b," "),h+a)}return f})))}function Nb(e,t){let{node:r}=e,n=gr(e.node).trim();if(r.fullName==="style"&&!t.parentParser&&!n.includes("{{"))return async a=>Xo(await a(n,{parser:"css",__isHTMLStyleAttribute:!0}))}function _m(e,t){let{root:r}=e;return el.has(r)||el.set(r,r.children.some(n=>Ap(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),el.get(r)}function Hb(e,t,r){let{node:n}=r,a=gr(n);return wt(`type T<${a}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},yn)}function jb(e,t,{parseWithTs:r}){return wt(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function Vb(e){let t=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,r=/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$_a-z][\w$]*])*$/i,n=e.trim();return t.test(n)||r.test(n)}async function Ub(e,t,r,n){let a=gr(r.node),{left:o,operator:i,right:s}=qb(a),u=Os(r,n);return[De(await wt(`function _(${o}) {}`,e,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",i," ",await wt(s,e,{parser:u?"__ts_expression":"__js_expression"})]}function qb(e){let t=/(.*?)\s+(in|of)\s+(.*)/s,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/,n=/^\(|\)$/g,a=e.match(t);if(!a)return;let o={};if(o.for=a[3].trim(),!o.for)return;let i=Ne(!1,a[1].trim(),n,""),s=i.match(r);s?(o.alias=i.replace(r,""),o.iterator1=s[1].trim(),s[2]&&(o.iterator2=s[2].trim())):o.alias=i;let u=[o.alias,o.iterator1,o.iterator2];if(!u.some((d,p)=>!d&&(p===0||u.slice(p+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:a[2],right:o.for}}function Im(e,t){if(t.parser!=="vue")return;let{node:r}=e,n=r.fullName;if(n==="v-for")return Ub;if(n==="generic"&&Ap(r.parent,t))return Hb;let a=gr(r),o=Os(e,t);if(Ob(r)||Mb(r,t))return i=>jb(a,i,{parseWithTs:o});if(n.startsWith("@")||n.startsWith("v-on:"))return i=>Wb(a,i,{parseWithTs:o});if(n.startsWith(":")||n.startsWith("v-bind:"))return i=>Gb(a,i,{parseWithTs:o});if(n.startsWith("v-"))return i=>Fp(a,i,{parseWithTs:o})}function Wb(e,t,{parseWithTs:r}){return Vb(e)?Fp(e,t,{parseWithTs:r}):wt(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},yn)}function Gb(e,t,{parseWithTs:r}){return wt(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},yn)}function Fp(e,t,{parseWithTs:r}){return wt(e,t,{parser:r?"__ts_expression":"__js_expression"},yn)}function Rm(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||t.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[H7,Nb,B7,j7,T7]){let a=n(e,t);if(a)return Kb(a)}}}function Kb(e){return async(t,r,n,a)=>{let o=await e(t,r,n,a);if(o)return o=Ss(o,i=>typeof i=="string"?Ne(!1,i,'"',"""):i),[n.node.rawName,'="',De(o),'"']}}function Tm(e){return Array.isArray(e)&&e.length>0}function ti(e){return e.sourceSpan.start.offset}function ri(e){return e.sourceSpan.end.offset}function _l(e,t){return[e.isSelfClosing?"":Yb(e,t),Un(e,t)]}function Yb(e,t){return e.lastChild&&da(e.lastChild)?"":[Jb(e,t),Fs(e,t)]}function Un(e,t){return(e.next?Rr(e.next):Fa(e.parent))?"":[Aa(e,t),Ir(e,t)]}function Jb(e,t){return Fa(e)?Aa(e.lastChild,t):""}function Ir(e,t){return da(e)?Fs(e.parent,t):ni(e)?_s(e.next):""}function Fs(e,t){if(Pp(!e.isSelfClosing),_p(e,t))return"";switch(e.type){case"ieConditionalComment":return"";case"ieConditionalStartComment":return"]>";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function _p(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Qo(e)||mp(e.parent,t))}function Rr(e){return e.prev&&e.prev.type!=="docType"&&e.type!=="angularControlFlowBlock"&&!Ye(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Fa(e){var t;return((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Ye(ks(e.lastChild))&&!dn(e)}function da(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Ye(ks(e))}function ni(e){return e.next&&!Ye(e.next)&&Ye(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Zb(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return t?t[1]?t[1].split(/\s+/):!0:!1}function ai(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Xb(e,t,r){var n;let{node:a}=e;if(!Ms(a.attrs))return a.isSelfClosing?" ":"";let o=((n=a.prev)==null?void 0:n.type)==="comment"&&Zb(a.prev.value),i=typeof o=="boolean"?()=>o:Array.isArray(o)?m=>o.includes(m.rawName):()=>!1,s=e.map(({node:m})=>i(m)?rt(t.originalText.slice(ti(m),ri(m))):r(),"attrs"),u=a.type==="element"&&a.fullName==="script"&&a.attrs.length===1&&a.attrs[0].fullName==="src"&&a.children.length===0,d=t.singleAttributePerLine&&a.attrs.length>1&&!bn(a,t)?oe:Ee,p=[er([u?" ":Ee,vn(d,s)])];return a.firstChild&&ai(a.firstChild)||a.isSelfClosing&&Fa(a.parent)||u?p.push(a.isSelfClosing?" ":""):p.push(t.bracketSameLine?a.isSelfClosing?" ":"":a.isSelfClosing?Ee:xe),p}function Qb(e){return e.firstChild&&ai(e.firstChild)?"":Is(e)}function Il(e,t,r){let{node:n}=e;return[qn(n,t),Xb(e,t,r),n.isSelfClosing?"":Qb(n)]}function qn(e,t){return e.prev&&ni(e.prev)?"":[Tr(e,t),_s(e)]}function Tr(e,t){return ai(e)?Is(e.parent):Rr(e)?Aa(e.prev,t):""}function _s(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<${e.rawName}`;default:return`<${e.rawName}`}}function Is(e){switch(Pp(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">";default:return">"}}function Bm(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&ai(e.firstChild)&&(r-=Is(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&da(e.lastChild)?n+=Fs(e,t).length:Fa(e)&&(n-=Aa(e.lastChild,t).length),t.originalText.slice(r,n)}function zm(e,t){let{node:r}=e;switch(r.type){case"element":if(Kt(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&As(r,t)){let n=K0(r,t);return n?async(a,o)=>{let i=Np(r,t),s=/^\s*$/.test(i),u="";return s||(u=await a(Mp(i),{parser:n,__embeddedInHtml:!0}),s=u===""),[Tr(r,t),De(Il(e,t,o)),s?"":oe,u,s?"":oe,_l(r,t),Ir(r,t)]}:void 0}break;case"text":if(Kt(r.parent)){let n=K0(r.parent,t);if(n)return async a=>{let o=n==="markdown"?Cp(r.value.replace(/^[^\S\n]*\n/,"")):r.value,i={parser:n,__embeddedInHtml:!0};if(t.parser==="html"&&n==="babel"){let s="script",{attrMap:u}=r.parent;u&&(u.type==="module"||u.type==="text/babel"&&u["data-type"]==="module")&&(s="module"),i.__babelSourceType=s}return[Gn,Tr(r,t),await a(o,i),Ir(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let a={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser==="angular"?(a.parser="__ng_interpolation",a.trailingComma="none"):t.parser==="vue"?a.parser=Os(e,t)?"__vue_ts_expression":"__vue_expression":a.parser="__js_expression",[er([Ee,await n(r.value,a)]),r.parent.next&&Rr(r.parent.next)?" ":Ee]};break;case"attribute":return V7(e,t);case"front-matter":return n=>w7(r,n);case"angularControlFlowBlockParameters":return U7.has(e.parent.name)?E7:void 0}}function Wn(e){if(Hn!==null&&typeof Hn.property){let t=Hn;return Hn=Wn.prototype=null,t}return Hn=Wn.prototype=e??Object.create(null),new Wn}function e7(e){return Wn(e)}function Lm(e,t="type"){e7(e);function r(n){let a=n[t],o=e[a];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return o}return c(r,"r"),r}function t7(e){return/^\s*/.test(e)}function Om(e){return` + +`+e}function Ip(e){let t=ri(e);return e.type==="element"&&!e.endSourceSpan&&Ms(e.children)?Math.max(t,Ip(fa(!1,e.children,-1))):t}function Nn(e,t,r){let n=e.node;if(Qo(n)){let a=Ip(n);return[Tr(n,t),rt(vt.trimEnd(t.originalText.slice(ti(n)+(n.prev&&ni(n.prev)?_s(n).length:0),a-(n.next&&Rr(n.next)?Aa(n,t).length:0)))),Ir(n,t)]}return r()}function so(e,t){return Ye(e)&&Ye(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Qi(t)?oe:Ee:"":Qi(t)?oe:xe:ni(e)&&(Qo(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&Rr(t)?"":!t.isLeadingSpaceSensitive||Qi(t)||Rr(t)&&e.lastChild&&da(e.lastChild)&&e.lastChild.lastChild&&da(e.lastChild.lastChild)?oe:t.hasLeadingSpaces?Ee:xe}function Rs(e,t,r){let{node:n}=e;if(vp(n))return[Gn,...e.map(o=>{let i=o.node,s=i.prev?so(i.prev,i):"";return[s?[s,lo(i.prev)?oe:""]:"",Nn(o,t,r)]},"children")];let a=n.children.map(()=>Symbol(""));return e.map((o,i)=>{let s=o.node;if(Ye(s)){if(s.prev&&Ye(s.prev)){let g=so(s.prev,s);if(g)return lo(s.prev)?[oe,oe,Nn(o,t,r)]:[g,Nn(o,t,r)]}return Nn(o,t,r)}let u=[],d=[],p=[],m=[],f=s.prev?so(s.prev,s):"",h=s.next?so(s,s.next):"";return f&&(lo(s.prev)?u.push(oe,oe):f===oe?u.push(oe):Ye(s.prev)?d.push(f):d.push(_o("",xe,{groupId:a[i-1]}))),h&&(lo(s)?Ye(s.next)&&m.push(oe,oe):h===oe?Ye(s.next)&&m.push(oe):p.push(h)),[...u,De([...d,De([Nn(o,t,r),...p],{id:a[i]})]),...m]},"children")}function r7(e,t,r){let{node:n}=e,a=[];n7(e)&&a.push("} "),a.push("@",n.name),n.parameters&&a.push(" (",De(r("parameters")),")"),a.push(" {");let o=Rp(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,a.push(er([oe,Rs(e,t,r)])),o&&a.push(oe,"}")):o&&a.push("}"),De(a,{shouldBreak:!0})}function Rp(e){var t,r;return!(((t=e.next)==null?void 0:t.type)==="angularControlFlowBlock"&&(r=q7.get(e.name))!=null&&r.has(e.next.name))}function n7(e){let{previous:t}=e;return(t==null?void 0:t.type)==="angularControlFlowBlock"&&!Qo(t)&&!Rp(t)}function a7(e,t,r){return[er([xe,vn([";",Ee],e.map(r,"children"))]),xe]}function o7(e,t,r){let{node:n}=e;return[qn(n,t),De([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",er([Ee,vn(Ee,e.map(r,"cases"))])]:"",xe]),Un(n,t)]}function i7(e,t,r){let{node:n}=e;return[n.value," {",De([er([xe,e.map(({node:a})=>a.type==="text"&&!vt.trim(a.value)?"":r(),"expression")]),xe]),"}"]}function l7(e,t,r){let{node:n}=e;if(mp(n,t))return[Tr(n,t),De(Il(e,t,r)),rt(Np(n,t)),..._l(n,t),Ir(n,t)];let a=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,o=Symbol("element-attr-group-id"),i=c(p=>De([De(Il(e,t,r),{id:o}),p,_l(n,t)]),"a"),s=c(p=>a?pb(p,{groupId:o}):(Kt(n)||ei(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?p:er(p),"o"),u=c(()=>a?_o(xe,"",{groupId:o}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?Ee:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?cb(xe):xe,"u"),d=c(()=>(n.next?Rr(n.next):Fa(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?_o(xe,"",{groupId:o}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?Ee:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`).test(n.lastChild.value)?"":xe,"p");return n.children.length===0?i(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?Ee:""):i([xb(n)?Gn:"",s([u(),Rs(e,t,r)]),d()])}function Rl(e){return e>=9&&e<=32||e==160}function Tp(e){return 48<=e&&e<=57}function Tl(e){return e>=97&&e<=122||e>=65&&e<=90}function s7(e){return e>=97&&e<=102||e>=65&&e<=70||Tp(e)}function zu(e){return e===10||e===13}function Lu(e){return 48<=e&&e<=55}function Ou(e){return e===39||e===34||e===96}function Mm(e){return e.replace(W7,(...t)=>t[1].toUpperCase())}function $m(e,t){for(let r of G7)r(e,t);return e}function Pm(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===` +`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1)}})}function Nm(e){let t=c(r=>{var n,a;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((a=r.firstChild)==null?void 0:a.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset},"e");e.walk(r=>{if(r.children)for(let n=0;n{if(n.children)for(let a=0;at.type==="cdata",t=>``)}function jm(e){let t=c(r=>{var n,a;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!vt.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((a=r.next)==null?void 0:a.type)==="text"},"e");e.walk(r=>{if(r.children)for(let n=0;n`+a.firstChild.value+``+i.value,o.sourceSpan=new X(o.sourceSpan.start,i.sourceSpan.end),o.isTrailingSpaceSensitive=i.isTrailingSpaceSensitive,o.hasTrailingSpaces=i.hasTrailingSpaces,r.removeChild(a),n--,r.removeChild(i)}})}function Vm(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(vb(n))for(let a of n.children){if(a.type!=="text")continue;let o=a.sourceSpan.start,i=null,s=a.value.split(r);for(let u=0;u0&&n.insertChildBefore(a,{type:"text",value:d,sourceSpan:new X(o,i)});continue}i=o.moveBy(d.length+4),n.insertChildBefore(a,{type:"interpolation",sourceSpan:new X(o,i),children:d.length===0?[]:[{type:"text",value:d,sourceSpan:new X(o.moveBy(2),i.moveBy(-2))}]})}n.removeChild(a)}})}function Um(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&vt.trim(t.children[0].value).length===0){t.hasDanglingSpaces=t.children.length>0,t.children=[];return}let r=yb(t),n=gp(t);if(!r)for(let a=0;a{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)})}function Wm(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Gm(e,t){e.walk(r=>{r.cssDisplay=zb(r,t)})}function Km(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Eb(r);return}for(let a of n)a.isLeadingSpaceSensitive=bb(a,t),a.isTrailingSpaceSensitive=wb(a,t);for(let a=0;a{!Ua[t]&&uo(t)===null&&(Ua[t]=new G({canSelfClose:!1}))})),Ua[e]??Jg}function J0(e,t,r=null){let n=[],a=e.visit?o=>e.visit(o,r)||o.visit(e,r):o=>o.visit(e,r);return t.forEach(o=>{let i=a(o);i&&n.push(i)}),n}function Zm(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let r=t[0],n=t[1];J7.forEach(a=>{if(a.test(r)||a.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)})}}function Xm(e,t,r,n={}){let a=new X7(new Hp(e,t),r,n);return a.tokenize(),new Z7(c7(a.tokens),a.errors,a.nonNormalizedIcuExpressions)}function Gr(e){return`Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function Nu(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function Qm(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}function ye(e){return!Rl(e)||e===0}function Hu(e){return Rl(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function eg(e){return(e<97||12257)}function tg(e){return e===59||e===0||!s7(e)}function rg(e){return e===59||e===0||!Tl(e)}function ng(e){return e!==125}function ag(e,t){return Z0(e)===Z0(t)}function Z0(e){return e>=97&&e<=122?e-97+65:e}function ju(e){return Tl(e)||Tp(e)||e===95}function Vu(e){return e!==59&&ye(e)}function c7(e){let t=[],r;for(let n=0;n0&&e[e.length-1]===t}function qu(e,t){return Do[t]!==void 0?Do[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}function X0(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:a=!1,getTagContentType:o,tokenizeAngularBlocks:i=!1}=t;return Q7().parse(e,"angular-html-parser",{tokenizeExpansionForms:i,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:i},a,o)}function og(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function ig(e){let t=e.match(tw);if(!t)return{content:e};let{startDelimiter:r,language:n,value:a="",endDelimiter:o}=t.groups,i=n.trim()||"yaml";if(r==="+++"&&(i="toml"),i!=="yaml"&&r!==o)return{content:e};let[s]=t;return{frontMatter:{type:"front-matter",lang:i,value:a,startDelimiter:r,endDelimiter:o,raw:s.replace(/\n$/,"")},content:Ne(!1,s,/[^\n]/g," ")+e.slice(s.length)}}function lg(e,t){let r=e.map(t);return r.some((n,a)=>n!==e[a])?r:e}function d7(e,t){if(e.value)for(let{regex:r,parse:n}of aw){let a=e.value.match(r);if(a)return n(e,t,a)}return null}function sg(e,t,r){let[,n,a,o]=r,i=4+n.length,s=e.sourceSpan.start.moveBy(i),u=s.moveBy(o.length),[d,p]=(()=>{try{return[!0,t(o,s).children]}catch{return[!1,[{type:"text",value:o,sourceSpan:new X(s,u)}]]}})();return{type:"ieConditionalComment",complete:d,children:p,condition:Ne(!1,a.trim(),/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new X(e.sourceSpan.start,s),endSourceSpan:new X(u,e.sourceSpan.end)}}function ug(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:Ne(!1,n.trim(),/\s+/g," "),sourceSpan:e.sourceSpan}}function cg(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function p7(e){if(e.type==="block"){if(e.name=Ne(!1,e.name.toLowerCase(),/\s+/g," ").trim(),e.type="angularControlFlowBlock",!Ms(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new X(e.parameters[0].sourceSpan.start,fa(!1,e.parameters,-1).sourceSpan.end)}}}function f7(e){(e.type==="plural"||e.type==="select")&&(e.clause=e.type,e.type="angularIcuExpression"),e.type==="expansionCase"&&(e.type="angularIcuCase")}function Bp(e,t,r){let{name:n,canSelfClose:a=!0,normalizeTagName:o=!1,normalizeAttributeName:i=!1,allowHtmComponentClosingTags:s=!1,isTagNameCaseSensitive:u=!1,shouldParseAsRawText:d}=t,{rootNodes:p,errors:m}=X0(e,{canSelfClose:a,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:u,getTagContentType:d?(...w)=>d(...w)?gt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?!0:void 0});if(n==="vue"){if(p.some(C=>C.type==="docType"&&C.value==="html"||C.type==="element"&&C.name.toLowerCase()==="html"))return Bp(e,nd,r);let w,x=c(()=>w??(w=X0(e,{canSelfClose:a,allowHtmComponentClosingTags:s,isTagNameCaseSensitive:u})),"y"),E=c(C=>x().rootNodes.find(({startSourceSpan:S})=>S&&S.start.offset===C.startSourceSpan.start.offset)??C,"O");for(let[C,S]of p.entries()){let{endSourceSpan:k,startSourceSpan:A}=S;if(k===null)m=x().errors,p[C]=E(S);else if(h7(S,r)){let _=x().errors.find(R=>R.span.start.offset>A.start.offset&&R.span.start.offset0&&Q0(m[0]);let f=c(w=>{let x=w.name.startsWith(":")?w.name.slice(1).split(":")[0]:null,E=w.nameSpan.toString(),C=x!==null&&E.startsWith(`${x}:`),S=C?E.slice(x.length+1):E;w.name=S,w.namespace=x,w.hasExplicitNamespace=C},"g"),h=c(w=>{switch(w.type){case"element":f(w);for(let x of w.attrs)f(x),x.valueSpan?(x.value=x.valueSpan.toString(),/["']/.test(x.value[0])&&(x.value=x.value.slice(1,-1))):x.value=null;break;case"comment":w.value=w.sourceSpan.toString().slice(4,-3);break;case"text":w.value=w.sourceSpan.toString();break}},"C"),g=c((w,x)=>{let E=w.toLowerCase();return x(E)?E:w},"_"),y=c(w=>{if(w.type==="element"&&(o&&(!w.namespace||w.namespace===w.tagDefinition.implicitNamespacePrefix||ha(w))&&(w.name=g(w.name,x=>ow.has(x))),i))for(let x of w.attrs)x.namespace||(x.name=g(x.name,E=>rl.has(w.name)&&(rl.get("*").has(E)||rl.get(w.name).has(E))))},"D"),b=c(w=>{w.sourceSpan&&w.endSourceSpan&&(w.sourceSpan=new X(w.sourceSpan.start,w.endSourceSpan.end))},"I"),D=c(w=>{if(w.type==="element"){let x=Bl(u?w.name:w.name.toLowerCase());!w.namespace||w.namespace===x.implicitNamespacePrefix||ha(w)?w.tagDefinition=x:w.tagDefinition=Bl("")}},"B");return J0(new class extends Y7{visitExpansionCase(w,x){n==="angular"&&this.visitChildren(x,E=>{E(w.expression)})}visit(w){h(w),D(w),y(w),b(w)}},p),p}function h7(e,t){var r;if(e.type!=="element"||e.name!=="template")return!1;let n=(r=e.attrs.find(a=>a.name==="lang"))==null?void 0:r.value;return!n||ii(t,{language:n})==="html"}function Q0(e){let{msg:t,span:{start:r,end:n}}=e;throw ew(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function zp(e,t,r={},n=!0){let{frontMatter:a,content:o}=n?rw(e):{frontMatter:null,content:e},i=new Hp(e,r.filepath),s=new Pl(i,0,0,0),u=s.moveBy(e.length),d={type:"root",sourceSpan:new X(s,u),children:Bp(o,t,r)};if(a){let f=new Pl(i,0,0,0),h=f.moveBy(a.raw.length);a.sourceSpan=new X(f,h),d.children.unshift(a)}let p=new nw(d),m=c((f,h)=>{let{offset:g}=h,y=Ne(!1,e.slice(0,g),/[^\n\r]/g," "),b=zp(y+f,t,r,!1);b.sourceSpan=new X(h,fa(!1,b.children,-1).sourceSpan.end);let D=b.children[0];return D.length===g?b.children.shift():(D.sourceSpan=new X(D.sourceSpan.start.moveBy(g),D.sourceSpan.end),D.value=D.value.slice(g)),b},"m");return p.walk(f=>{if(f.type==="comment"){let h=d7(f,m);h&&f.parent.replaceChild(f,h)}p7(f),f7(f)}),p}function Va(e){return{parse:c((t,r)=>zp(t,e,r),"parse"),hasPragma:t7,astFormat:"html",locStart:ti,locEnd:ri}}var dg,Wu,Gu,ar,pg,fg,Ku,hg,Ne,Ts,Bs,zl,Ro,To,Ll,pa,Bo,zo,Lo,Ol,Ml,Sr,$l,xo,Lp,zs,m7,Yu,mg,Op,Ju,Br,Ls,Gn,gg,vg,Ee,xe,oe,g7,yg,fa,po,ed,v7,pt,Zu,bg,wg,Eg,xg,vt,Xu,Dg,y7,oi,Cg,b7,Sg,w7,E7,x7,ii,D7,C7,S7,k7,ha,kg,Mp,A7,F7,$p,_7,I7,R7,T7,B7,z7,L7,O7,M7,td,$7,P7,rd,N7,H7,el,Os,j7,V7,Qu,Pp,Ms,Np,U7,Ag,Hn,Fg,_g,Ig,Rg,Tg,Bg,q7,W7,Fi,Pl,ec,Hp,tc,X,_i,rc,nc,G7,zg,Lg,Og,Mg,ac,oc,$g,Pg,ic,Ng,Hg,lc,sc,tn,jg,gt,tl,uc,Vg,Ug,qg,Wg,Gg,Kg,cc,Yg,dc,K7,pc,G,Jg,Ua,fc,In,hc,Zg,mc,Xg,gc,Qg,vc,e5,yc,t5,bc,or,wc,r5,Ec,n5,xc,Kr,Dc,Cc,Sc,Y7,Do,a5,J7,Ii,o5,kc,Ac,Ri,Fc,Z7,i5,Ti,_c,Bi,Ic,X7,qa,Rc,Wa,l5,Tc,zi,Li,We,Bc,s5,zc,u5,Oi,c5,Lc,d5,Mi,Q7,ew,tw,rw,Ga,Oc,Yr,nw,aw,rl,ow,nd,p5,f5,h5,m5,g5,iw,Ik=B(()=>{dg=Object.defineProperty,Wu=c((e,t)=>{for(var r in t)dg(e,r,{get:t[r],enumerable:!0})},"Yr"),Gu=c((e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},"jr"),ar=c((e,t,r)=>(Gu(e,t,"read from private field"),r?r.call(e):t.get(e)),"Q"),pg=c((e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},"Kr"),fg=c((e,t,r,n)=>(Gu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),"Qr"),Ku={},Wu(Ku,{languages:c(()=>Mg,"languages"),options:c(()=>Pg,"options"),parsers:c(()=>ic,"parsers"),printers:c(()=>g5,"printers")}),hg=c((e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},"Zs"),Ne=hg,Ts="string",Bs="array",zl="cursor",Ro="indent",To="align",Ll="trim",pa="group",Bo="fill",zo="if-break",Lo="indent-if-break",Ol="line-suffix",Ml="line-suffix-boundary",Sr="line",$l="label",xo="break-parent",Lp=new Set([zl,Ro,To,Ll,pa,Bo,zo,Lo,Ol,Ml,Sr,$l,xo]),c(gm,"ei"),zs=gm,m7=c(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),"ti"),c(vm,"ri"),mg=(Yu=class extends Error{constructor(t){super(vm(t));yr(this,"name","InvalidDocError");this.doc=t}},c(Yu,"rr"),Yu),Op=mg,Ju=c(()=>{},"Xr"),Br=Ju,Ls=Ju,c(er,"L"),c(fp,"Jr"),c(De,"E"),c(cb,"Zr"),c(db,"en"),c(hp,"Ct"),c(_o,"me"),c(pb,"tn"),Gn={type:xo},gg={type:Sr,hard:!0},vg={type:Sr,hard:!0,literal:!0},Ee={type:Sr},xe={type:Sr,soft:!0},oe=[gg,Gn],g7=[vg,Gn],c(vn,"M"),yg=c((e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},"ii"),fa=yg,c(Ss,"St"),c(fb,"ai"),c(hb,"nn"),c(rt,"T"),po="'",ed='"',c(ym,"oi"),v7=ym,c(bm,"nr"),bg=(Zu=class{constructor(e){pg(this,pt,void 0),fg(this,pt,new Set(e))}getLeadingWhitespaceCount(e){let t=ar(this,pt),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return ar(this,pt).has(e.charAt(0))}hasTrailingWhitespace(e){return ar(this,pt).has(fa(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${bm([...ar(this,pt)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=ar(this,pt);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=ar(this,pt);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=ar(this,pt);return Array.prototype.every.call(e,r=>t.has(r))}},c(Zu,"sr"),Zu),pt=new WeakMap,wg=bg,Eg=[" ",` +`,"\f","\r"," "],xg=new wg(Eg),vt=xg,Dg=(Xu=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);yr(this,"name","UnexpectedNodeError");this.node=t}},c(Xu,"ir"),Xu),y7=Dg,c(wm,"ci"),oi=wm,Cg=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),b7=new Set(["if","else if","for","switch","case"]),c(Bu,"ln"),Bu.ignoredProperties=Cg,Sg=Bu,c(Em,"fi"),w7=Em,c(Xo,"ge"),c(yn,"j"),c(wt,"x"),c(xm,"mi"),E7=xm,x7=c(e=>String(e).split(/[/\\]/).pop(),"gi"),c(G0,"fn"),c(mb,"di"),c(Dm,"Ci"),ii=Dm,D7="inline",C7={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},S7="normal",k7={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},c(Cm,"Si"),ha=Cm,kg=c(e=>Ne(!1,e,/^[\t\f\r ]*\n/g,""),"_i"),Mp=c(e=>kg(vt.trimEnd(e)),"ar"),A7=c(e=>{let t=e,r=vt.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=vt.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}},"Sn"),c(mp,"Et"),c(Qo,"Se"),c(gb,"Ei"),c(Ye,"R"),c(Kt,"U"),c(vb,"_n"),c(yb,"En"),c(gp,"or"),c(bb,"An"),c(wb,"Dn"),c(Eb,"vn"),c(lo,"Qe"),c(xb,"yn"),c(vp,"ur"),c(Qi,"At"),c(Db,"Ai"),c(yp,"wn"),c(bp,"bn"),c(wp,"Tn"),c(Ep,"xn"),c(ks,"Dt"),c(Cb,"Di"),c(xp,"kn"),c(Sb,"vi"),c(kb,"yi"),c(Ab,"wi"),c(K0,"lr"),c(ka,"Xe"),c(Fb,"bi"),c(_b,"Ti"),c(Ib,"xi"),c(Rb,"ki"),c(Tb,"Bi"),c(dn,"Ce"),c(Bb,"Li"),c(zb,"Bn"),c(Dp,"Ln"),c(Lb,"Fi"),c(Cp,"cr"),c(Sp,"pr"),c(gr,"P"),F7=new Set(["template","style","script"]),c(ei,"Je"),c(bn,"_e"),c(As,"vt"),c(Ob,"Fn"),c(Mb,"Pn"),c(kp,"yt"),c(Ap,"wt"),$p=/{{(.+?)}}/s,c($b,"Nn"),c(Ai,"fr"),_7=Ai({parser:"__ng_action"}),I7=Ai({parser:"__ng_binding"}),R7=Ai({parser:"__ng_directive"}),c(Sm,"$i"),T7=Sm,c(km,"Oi"),B7=km,c(Y0,"$n"),z7=/^[ \t\n\r\u000c]+/,L7=/^[, \t\n\r\u000c]+/,O7=/^[^ \t\n\r\u000c]+/,M7=/[,]+$/,td=/^\d+$/,$7=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,c(Am,"Wi"),P7=Am,c(Fm,"zi"),rd={width:"w",height:"h",density:"x"},N7=Object.keys(rd),c(Pb,"Yi"),H7=Fm,c(Nb,"Vn"),el=new WeakMap,c(_m,"ji"),Os=_m,c(Hb,"Un"),c(jb,"Wn"),c(Vb,"zn"),c(Ub,"Gn"),c(qb,"Ki"),c(Im,"Qi"),c(Wb,"Xi"),c(Gb,"Ji"),c(Fp,"Yn"),j7=Im,c(Rm,"Zi"),c(Kb,"ea"),V7=Rm,Qu=new Proxy(()=>{},{get:c(()=>Qu,"get")}),Pp=Qu,c(Tm,"ta"),Ms=Tm,c(ti,"se"),c(ri,"ie"),c(_l,"Ze"),c(Yb,"ra"),c(Un,"Ee"),c(Jb,"na"),c(Ir,"W"),c(Fs,"bt"),c(Aa,"Ae"),c(_p,"Xn"),c(Rr,"K"),c(Fa,"De"),c(da,"ve"),c(ni,"et"),c(Zb,"sa"),c(ai,"tt"),c(Xb,"ia"),c(Qb,"aa"),c(Il,"rt"),c(qn,"ye"),c(Tr,"z"),c(_s,"Tt"),c(Is,"xt"),c(Bm,"oa"),Np=Bm,U7=new Set(["if","else if","for","switch","case"]),c(zm,"la"),Ag=zm,Hn=null,c(Wn,"st"),Fg=10;for(let e=0;e<=Fg;e++)Wn();c(e7,"dr"),c(Lm,"pa"),_g=Lm,Ig={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},Rg=Ig,Tg=_g(Rg),Bg=Tg,c(t7,"rs"),c(Om,"ns"),q7=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]),c(Ip,"is"),c(Nn,"it"),c(so,"Bt"),c(Rs,"qe"),c(r7,"as"),c(Rp,"os"),c(n7,"ma"),c(a7,"us"),c(o7,"ls"),c(i7,"cs"),c(l7,"ps"),c(Rl,"Lt"),c(Tp,"Cr"),c(Tl,"Ft"),c(s7,"hs"),c(zu,"Sr"),c(Lu,"_r"),c(Ou,"Er"),W7=/-+([a-z0-9])/g,c(Mm,"ms"),Pl=(Fi=class{constructor(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let t=this.file.content,r=t.length,n=this.offset,a=this.line,o=this.col;for(;n>0&&e<0;)if(n--,e++,t.charCodeAt(n)==10){a--;let i=t.substring(0,n-1).lastIndexOf(` +`);o=i>0?n-i:n}else o--;for(;n0;){let i=t.charCodeAt(n);n++,e--,i==10?(a++,o=0):o++}return new Fi(this.file,n,a,o)}getContext(e,t){let r=this.file.content,n=this.offset;if(n!=null){n>r.length-1&&(n=r.length-1);let a=n,o=0,i=0;for(;o0&&(n--,o++,!(r[n]==` +`&&++i==t)););for(o=0,i=0;o]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}},c(rc,"Ve"),rc),G7=[Pm,Nm,Hm,Vm,Um,Gm,qm,Wm,Km,jm],c($m,"Ca"),c(Pm,"Sa"),c(Nm,"_a"),c(u7,"Ea"),c(Hm,"Aa"),c(jm,"Da"),c(Vm,"va"),c(Um,"ya"),c(qm,"wa"),c(Wm,"ba"),c(Gm,"Ta"),c(Km,"xa"),zg=$m,c(Ym,"ka"),Lg={preprocess:zg,print:Ym,insertPragma:Om,massageAstNode:Sg,embed:Ag,getVisitorKeys:Bg},Og=Lg,Mg=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],ac={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},oc="HTML",$g={bracketSameLine:ac.bracketSameLine,htmlWhitespaceSensitivity:{category:oc,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:ac.singleAttributePerLine,vueIndentScriptAndStyle:{category:oc,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Pg=$g,ic={},Wu(ic,{angular:c(()=>f5,"angular"),html:c(()=>p5,"html"),lwc:c(()=>m5,"lwc"),vue:c(()=>h5,"vue")}),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Ng||(Ng={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(Hg||(Hg={})),lc={name:"custom-elements"},sc={name:"no-errors-schema"},function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(tn||(tn={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(jg||(jg={})),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(gt||(gt={})),c(Io,"at"),c(Mu,"yr"),c($u,"wr"),c(uo,"Ue"),c(ja,"We"),c(Pu,"br"),c(co,"Nt"),Vg=(uc=class{},c(uc,"Rt"),uc),Ug="boolean",qg="number",Wg="string",Gg="object",Kg=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],cc=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),Yg=Array.from(cc).reduce((e,[t,r])=>(e.set(t,r),e),new Map),K7=(dc=class extends Vg{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Kg.forEach(e=>{let t=new Map,r=new Set,[n,a]=e.split("|"),o=a.split(","),[i,s]=n.split("^");i.split(",").forEach(d=>{this._schema.set(d.toLowerCase(),t),this._eventSchema.set(d.toLowerCase(),r)});let u=s&&this._schema.get(s.toLowerCase());if(u){for(let[d,p]of u)t.set(d,p);for(let d of this._eventSchema.get(s.toLowerCase()))r.add(d)}o.forEach(d=>{if(d.length>0)switch(d[0]){case"*":r.add(d.substring(1));break;case"!":t.set(d.substring(1),Ug);break;case"#":t.set(d.substring(1),qg);break;case"%":t.set(d.substring(1),Gg);break;default:t.set(d,Wg)}})})}hasProperty(e,t,r){if(r.some(n=>n.name===sc.name))return!0;if(e.indexOf("-")>-1){if(Mu(e)||$u(e))return!1;if(r.some(n=>n.name===lc.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===sc.name)||e.indexOf("-")>-1&&(Mu(e)||$u(e)||t.some(r=>r.name===lc.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=Pu()[e+"|"+t];return n||(n=Pu()["*|"+t],n||tn.NONE)}getMappedPropName(e){return cc.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>Yg.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Mm(e)}normalizeAnimationStyleValue(e,t,r){let n="",a=r.toString().trim(),o=null;if(Jm(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else{let i=r.match(/^[+-]?[\d\.]+([a-z]*)$/);i&&i[1].length==0&&(o=`Please provide a CSS unit value for ${t}:${r}`)}return{error:o,value:a+n}}},c(dc,"$t"),dc),c(Jm,"Oa"),G=(pc=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=gt.PARSABLE_DATA,closedByParent:n=!1,isVoid:a=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:i=!1,canSelfClose:s=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=a,this.closedByParent=n||a,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=o,this.preventNamespaceInheritance=i,this.canSelfClose=s??a}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},c(pc,"h"),pc),c(Bl,"ze"),In=(fc=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},c(fc,"be"),fc),Zg=(hc=class extends In{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="text"}visit(e,t){return e.visitText(this,t)}},c(hc,"Ot"),hc),Xg=(mc=class extends In{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="cdata"}visit(e,t){return e.visitCdata(this,t)}},c(mc,"Mt"),mc),Qg=(gc=class extends In{constructor(e,t,r,n,a,o){super(n,o),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=a}visit(e,t){return e.visitExpansion(this,t)}},c(gc,"qt"),gc),e5=(vc=class{constructor(e,t,r,n,a){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=a,this.type="expansionCase"}visit(e,t){return e.visitExpansionCase(this,t)}},c(vc,"Ht"),vc),t5=(yc=class extends In{constructor(e,t,r,n,a,o,i){super(r,i),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=a,this.valueTokens=o,this.type="attribute"}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},c(yc,"Vt"),yc),or=(bc=class extends In{constructor(e,t,r,n,a,o=null,i=null,s){super(n,s),this.name=e,this.attrs=t,this.children=r,this.startSourceSpan=a,this.endSourceSpan=o,this.nameSpan=i,this.type="element"}visit(e,t){return e.visitElement(this,t)}},c(bc,"G"),bc),r5=(wc=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment"}visit(e,t){return e.visitComment(this,t)}},c(wc,"Ut"),wc),n5=(Ec=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType"}visit(e,t){return e.visitDocType(this,t)}},c(Ec,"Wt"),Ec),Kr=(xc=class{constructor(e,t,r,n,a,o=null){this.name=e,this.parameters=t,this.children=r,this.sourceSpan=n,this.startSourceSpan=a,this.endSourceSpan=o,this.type="block"}visit(e,t){return e.visitBlock(this,t)}},c(xc,"Z"),xc),Cc=(Dc=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},c(Dc,"ut"),Dc),c(J0,"zt"),Y7=(Sc=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children)})}visitBlockParameter(e,t){}visitChildren(e,t){let r=[],n=this;function a(o){o&&r.push(J0(n,o,e))}return c(a,"i"),t(a),Array.prototype.concat.apply([],r)}},c(Sc,"lt"),Sc),Do={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:` +`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},a5="",Do.ngsp=a5,J7=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],c(Zm,"ws"),o5=(Ii=class{static fromArray(e){return e?(Zm("interpolation",e),new Ii(e[0],e[1])):kc}constructor(e,t){this.start=e,this.end=t}},c(Ii,"t"),Ii),kc=new o5("{{","}}"),Ri=(Ac=class extends nc{constructor(e,t,r){super(r,e),this.tokenType=t}},c(Ac,"pt"),Ac),Z7=(Fc=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r}},c(Fc,"Pr"),Fc),c(Xm,"Ms"),i5=/\r\n?/g,c(Gr,"Ye"),c(Nu,"Ls"),c(Qm,"oo"),function(e){e.HEX="hexadecimal",e.DEC="decimal"}(Ti||(Ti={})),Bi=(_c=class{constructor(e){this.error=e}},c(_c,"ht"),_c),X7=(Ic=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||!1,this._interpolationConfig=r.interpolationConfig||kc,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(a=>a.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||!1,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||!1;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new l5(e,n):new Rc(e,n),this._preserveLineEndings=r.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=r.tokenizeBlocks??!0;try{this._cursor.init()}catch(a){this.handleError(a)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(i5,` +`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(30),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Rl(r)?!e:ju(r)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ye),this._attemptCharCode(41))this._attemptCharCodeUntilFn(ye);else{t.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Vu);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&Ou(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Vu)}}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(ng(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Ri("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new Ri("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new Ri(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Bi(r)}handleError(e){if(e instanceof zi&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Bi)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return ag(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Gr(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==58&&!eg(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(t=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(Hu,t===""?0:1);let n=this._cursor.getChars(r);return[t,n]}_consumeTagOpen(e){let t,r,n,a=[];try{if(!Tl(this._cursor.peek()))throw this._createError(Gr(this._cursor.peek()),this._cursor.getSpan(e));for(n=this._consumeTagOpenStart(e),r=n.parts[0],t=n.parts[1],this._attemptCharCodeUntilFn(ye);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[i,s]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(ye),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(ye);let u=this._consumeAttributeValue();a.push({prefix:i,name:s,value:u})}else a.push({prefix:i,name:s});this._attemptCharCodeUntilFn(ye)}this._consumeTagOpenEnd()}catch(i){if(i instanceof Bi){n?n.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw i}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let o=this._getTagContentType(t,r,this._fullNameStack.length>0,a);this._handleFullNameStackForTagOpen(r,t),o===gt.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,!1):o===gt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,!0)}_consumeRawTextWithTagClose(e,t,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(ye),!this._attemptStrCaseInsensitive(e?`${e}:${t}`:t))?!1:(this._attemptCharCodeUntilFn(ye),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(n=>n===62,3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(Gr(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();return this._endToken(t),t}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=c(()=>this._cursor.peek()===t,"n");e=this._consumeWithInterpolation(16,17,r,r),this._consumeQuote(t)}else{let t=c(()=>Hu(this._cursor.peek()),"r");e=this._consumeWithInterpolation(16,17,t,t)}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(ye),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ye),this._requireCharCode(62),this._endToken([]);else{let[t,r]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ye),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ye),this._beginToken(7);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ye)}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ye),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ye),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ye),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let a=[];for(;!r();){let i=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(a.join(""))],i),a.length=0,this._consumeInterpolation(t,i,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(a.join(""))]),a.length=0,this._consumeEntity(e),this._beginToken(e)):a.push(this._readChar())}this._inInterpolation=!1;let o=this._processCarriageReturns(a.join(""));return this._endToken([o]),o}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);let a=this._cursor.clone(),o=null,i=!1;for(;this._cursor.peek()!==0&&(r===null||!r());){let s=this._cursor.clone();if(this._isTagStart()){this._cursor=s,n.push(this._getProcessedChars(a,s)),this._endToken(n);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){n.push(this._getProcessedChars(a,s)),n.push(this._interpolationConfig.end),this._endToken(n);return}else this._attemptStr("//")&&(i=!0);let u=this._cursor.peek();this._cursor.advance(),u===92?this._cursor.advance():u===o?o=null:!i&&o===null&&Ou(u)&&(o=u)}n.push(this._getProcessedChars(a,this._cursor)),this._endToken(n)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),ju(e.peek()))return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}_handleFullNameStackForTagOpen(e,t){let r=ja(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r)}_handleFullNameStackForTagClose(e,t){let r=ja(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop()}},c(Ic,"Nr"),Ic),c(ye,"k"),c(Hu,"Fs"),c(eg,"uo"),c(tg,"lo"),c(rg,"co"),c(ng,"po"),c(ag,"ho"),c(Z0,"Ps"),c(ju,"Ns"),c(Vu,"Is"),c(c7,"fo"),Rc=(qa=class{constructor(e,t){if(e instanceof qa){this.file=e.file,this.input=e.input,this.end=e.end;let r=e.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}else{if(!t)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=e,this.input=e.content,this.end=t.endPos,this.state={peek:-1,offset:t.startPos,line:t.startLine,column:t.startCol}}}clone(){return new qa(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){e=e||this;let r=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)r===e&&(e=e.clone()),e.advance();let n=this.locationFromCursor(e),a=this.locationFromCursor(this),o=r!==e?this.locationFromCursor(r):n;return new X(n,a,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new zi('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===10?(e.line++,e.column=0):zu(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Pl(e.file,e.state.offset,e.state.line,e.state.column)}},c(qa,"t"),qa),l5=(Wa=class extends Rc{constructor(e,t){e instanceof Wa?(super(e),this.internalState={...e.internalState}):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new Wa(this)}getChars(e){let t=e.clone(),r="";for(;t.internalState.offsetthis.internalState.peek,"e");if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let t=this.clone(),r=0;for(;e()!==125;)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(t,r)}else{let t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(e()===120){this.advanceState(this.internalState);let t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(Lu(e())){let t="",r=0,n=this.clone();for(;Lu(e())&&r<3;)n=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),r++;this.state.peek=parseInt(t,8),this.internalState=n.internalState}else zu(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let r=this.input.slice(e.internalState.offset,e.internalState.offset+t),n=parseInt(r,16);if(isNaN(n))throw e.state=e.internalState,new zi("Invalid hexadecimal escape sequence",e);return n}},c(Wa,"t"),Wa),zi=(Tc=class{constructor(e,t){this.msg=e,this.cursor=t}},c(Tc,"ft"),Tc),We=(Li=class extends nc{static create(e,t,r){return new Li(e,t,r)}constructor(e,t,r){super(t,r),this.elementName=e}},c(Li,"t"),Li),s5=(Bc=class{constructor(e,t){this.rootNodes=e,this.errors=t}},c(Bc,"Or"),Bc),u5=(zc=class{constructor(e){this.getTagDefinition=e}parse(e,t,r,n=!1,a){let o=c(h=>(g,...y)=>h(g.toLowerCase(),...y),"a"),i=n?this.getTagDefinition:o(this.getTagDefinition),s=c(h=>i(h).getContentType(),"u"),u=n?a:o(a),d=Xm(e,t,a?(h,g,y,b)=>{let D=u(h,g,y,b);return D!==void 0?D:s(h)}:s,r),p=r&&r.canSelfClose||!1,m=r&&r.allowHtmComponentClosingTags||!1,f=new c5(d.tokens,i,p,m,n);return f.build(),new s5(f.rootNodes,d.errors.concat(f.errors))}},c(zc,"Qt"),zc),c5=(Oi=class{constructor(e,t,r,n,a){this.tokens=e,this.getTagDefinition=t,this.canSelfClose=r,this.allowHtmComponentClosingTags=n,this.isTagNameCaseSensitive=a,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==30;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._advance();for(let e of this._containerStack)e instanceof Kr&&this.errors.push(We.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(a.errors),null;let o=new X(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart),i=new X(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart);return new e5(e.parts[0],a.rootNodes,o,e.sourceSpan,i)}_collectExpansionExpTokens(e){let t=[],r=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&r.push(this._peek.type),this._peek.type===23)if(Uu(r,22)){if(r.pop(),r.length===0)return t}else return this.errors.push(We.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Uu(r,20))r.pop();else return this.errors.push(We.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===30)return this.errors.push(We.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&t[0]==` +`){let r=this._getClosestParentElement();r!=null&&r.children.length==0&&this.getTagDefinition(r.name).ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],r=e.sourceSpan,n=e.parts[0];if(n.length>0&&n[0]===` +`){let a=this._getContainer();a!=null&&a.children.length===0&&this.getTagDefinition(a.name).ignoreFirstLf&&(n=n.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[n]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?n+=e.parts.join("").replace(/&([^;]+);/g,qu):e.type===9?n+=e.parts[0]:n+=e.parts.join("");if(n.length>0){let a=e.sourceSpan;this._addToParent(new Zg(n,new X(r.start,a.end,r.fullStart,r.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof or&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,r]=e.parts,n=[];for(;this._peek.type===14;)n.push(this._consumeAttr(this._advance()));let a=this._getElementFullName(t,r,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let f=this.getTagDefinition(a);this.canSelfClose||f.canSelfClose||uo(a)!==null||f.isVoid||this.errors.push(We.create(a,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let i=this._peek.sourceSpan.fullStart,s=new X(e.sourceSpan.start,i,e.sourceSpan.fullStart),u=new X(e.sourceSpan.start,i,e.sourceSpan.fullStart),d=new X(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),p=new or(a,n,[],s,u,void 0,d),m=this._getContainer();this._pushContainer(p,m instanceof or&&this.getTagDefinition(m.name).isClosedByChild(p.name)),o?this._popContainer(a,or,s):e.type===4&&(this._popContainer(a,or,null),this.errors.push(We.create(a,s,`Opening tag "${a}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(t&&this.getTagDefinition(t).isVoid)this.errors.push(We.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,or,e.sourceSpan)){let r=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(We.create(t,e.sourceSpan,r))}}_popContainer(e,t,r){let n=!1;for(let a=this._containerStack.length-1;a>=0;a--){let o=this._containerStack[a];if(uo(o.name)?o.name===e:(e==null||o.name.toLowerCase()===e.toLowerCase())&&o instanceof t)return o.endSourceSpan=r,o.sourceSpan.end=r!==null?r.end:o.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!n;(o instanceof Kr||o instanceof or&&!this.getTagDefinition(o.name).closedByParent)&&(n=!0)}return!1}_consumeAttr(e){let t=ja(e.parts[0],e.parts[1]),r=e.sourceSpan.end,n;this._peek.type===15&&(n=this._advance());let a="",o=[],i,s;if(this._peek.type===16)for(i=this._peek.sourceSpan,s=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let d=this._advance();o.push(d),d.type===17?a+=d.parts.join("").replace(/&([^;]+);/g,qu):d.type===9?a+=d.parts[0]:a+=d.parts.join(""),s=r=d.sourceSpan.end}this._peek.type===15&&(s=r=this._advance().sourceSpan.end);let u=i&&s&&new X((n==null?void 0:n.sourceSpan.start)??i.start,s,(n==null?void 0:n.sourceSpan.fullStart)??i.fullStart);return new t5(t,a,new X(e.sourceSpan.start,r,e.sourceSpan.fullStart),e.sourceSpan,u,o.length>0?o:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===28;){let i=this._advance();t.push(new Cc(i.parts[0],i.sourceSpan))}this._peek.type===26&&this._advance();let r=this._peek.sourceSpan.fullStart,n=new X(e.sourceSpan.start,r,e.sourceSpan.fullStart),a=new X(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Kr(e.parts[0],t,[],n,a);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Kr,e.sourceSpan)||this.errors.push(We.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===28;){let i=this._advance();t.push(new Cc(i.parts[0],i.sourceSpan))}let r=this._peek.sourceSpan.fullStart,n=new X(e.sourceSpan.start,r,e.sourceSpan.fullStart),a=new X(e.sourceSpan.start,r,e.sourceSpan.fullStart),o=new Kr(e.parts[0],t,[],n,a);this._pushContainer(o,!1),this._popContainer(null,Kr,null),this.errors.push(We.create(e.parts[0],n,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof or)return this._containerStack[e];return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,r){if(e===""&&(e=this.getTagDefinition(t).implicitNamespacePrefix||"",e===""&&r!=null)){let n=Io(r.name)[1];this.getTagDefinition(n).preventNamespaceInheritance||(e=uo(r.name))}return ja(e,t)}},c(Oi,"t"),Oi),c(Uu,"qs"),c(qu,"Hs"),d5=(Lc=class extends u5{constructor(){super(Bl)}parse(e,t,r,n=!1,a){return super.parse(e,t,r,n,a)}},c(Lc,"Xt"),Lc),Mi=null,Q7=c(()=>(Mi||(Mi=new d5),Mi),"mo"),c(X0,"Hr"),c(og,"go"),ew=og,tw=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s"),c(ig,"So"),rw=ig,Ga={attrs:!0,children:!0,cases:!0,expression:!0},Oc=new Set(["parent"]),nw=(Yr=class{constructor(e={}){for(let t of new Set([...Oc,...Object.keys(e)]))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in Ga&&(t=t.map(r=>this.createChild(r))),!Oc.has(e)){this[e]=t;return}Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(e){let t;for(let r in Ga){let n=this[r];if(n){let a=lg(n,o=>o.map(e));t!==n&&(t||(t=new Yr({parent:this.parent})),t.setProperty(r,a))}}if(t)for(let r in this)r in Ga||(t[r]=this[r]);return e(t||this)}walk(e){for(let t in Ga){let r=this[t];if(r)for(let n=0;n[e.fullName,e.value]))}},c(Yr,"t"),Yr),c(lg,"_o"),aw=[{regex:/^(\[if([^\]]*)]>)(.*?)a==="lang"&&o!=="html"&&o!==""&&o!==void 0))}}),m5=Va({name:"lwc",canSelfClose:!1}),g5={html:Og},iw=Ku});function lw(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===` +`?"crlf":"cr":"lf"}function $s(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}}function jp(e,t){let r;switch(t){case` +`:r=/\n/g;break;case"\r":r=/\r/g;break;case`\r +`:r=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function sw(e){return si(!1,e,/\r\n?/g,` +`)}function v5(e){if(typeof e=="string")return Or;if(Array.isArray(e))return fr;if(!e)return;let{type:t}=e;if(ef.has(t))return t}function y5(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Mr(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Jw([...ef].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}function b5(e,t,r,n){let a=[e];for(;a.length>0;){let o=a.pop();if(o===Sd){r(a.pop());continue}r&&a.push(o,Sd);let i=Mr(o);if(!i)throw new fn(o);if((t==null?void 0:t(o))!==!1)switch(i){case fr:case Je:{let s=i===fr?o:o.parts;for(let u=s.length,d=u-1;d>=0;--d)a.push(s[d]);break}case He:a.push(o.flatContents,o.breakContents);break;case Me:if(n&&o.expandedStates)for(let s=o.expandedStates.length,u=s-1;u>=0;--u)a.push(o.expandedStates[u]);else a.push(o.contents);break;case Jt:case Yt:case Zt:case Et:case Xt:a.push(o.contents);break;case Or:case Ar:case qt:case Wt:case we:case Ze:break;default:throw new fn(o)}}}function Oo(e){return xt(e),{type:Yt,contents:e}}function pn(e,t){return xt(t),{type:Jt,contents:t,n:e}}function ad(e,t={}){return xt(e),Hs(t.expandedStates,!0),{type:Me,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function w5(e){return pn(Number.NEGATIVE_INFINITY,e)}function E5(e){return pn({type:"root"},e)}function x5(e){return pn(-1,e)}function D5(e,t){return ad(e[0],{...t,expandedStates:e})}function od(e){return Hs(e),{type:Je,parts:e}}function C5(e,t="",r={}){return xt(e),t!==""&&xt(t),{type:He,breakContents:e,flatContents:t,groupId:r.groupId}}function S5(e,t){return xt(e),{type:Zt,contents:e,groupId:t.groupId,negate:t.negate}}function Nl(e){return xt(e),{type:Xt,contents:e}}function id(e,t){xt(e),Hs(t);let r=[];for(let n=0;n0){for(let a=0;a0?`, { ${p.join(", ")} }`:"";return`indentIfBreak(${n(o.contents)}${m})`}if(o.type===Me){let p=[];o.break&&o.break!=="propagated"&&p.push("shouldBreak: true"),o.id&&p.push(`id: ${a(o.id)}`);let m=p.length>0?`, { ${p.join(", ")} }`:"";return o.expandedStates?`conditionalGroup([${o.expandedStates.map(f=>n(f)).join(",")}]${m})`:`group(${n(o.contents)}${m})`}if(o.type===Je)return`fill([${o.parts.map(p=>n(p)).join(", ")}])`;if(o.type===Xt)return"lineSuffix("+n(o.contents)+")";if(o.type===Wt)return"lineSuffixBoundary";if(o.type===Et)return`label(${JSON.stringify(o.label)}, ${n(o.contents)})`;throw new Error("Unknown doc type "+o.type)}function a(o){if(typeof o!="symbol")return JSON.stringify(String(o));if(o in t)return t[o];let i=o.description||"symbol";for(let s=0;;s++){let u=i+(s>0?` #${s}`:"");if(!r.has(u))return r.add(u),t[o]=`Symbol.for(${JSON.stringify(u)})`}}}function A5(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function F5(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function _5(e){if(!e)return 0;if(!Qw.test(e))return e.length;e=e.replace(Zw()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=Xw(n)?1:2)}return t}function Mo(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(o){if(r.has(o))return r.get(o);let i=a(o);return r.set(o,i),i}function a(o){switch(Mr(o)){case fr:return t(o.map(n));case Je:return t({...o,parts:o.parts.map(n)});case He:return t({...o,breakContents:n(o.breakContents),flatContents:n(o.flatContents)});case Me:{let{expandedStates:i,contents:s}=o;return i?(i=i.map(n),s=i[0]):s=n(s),t({...o,contents:s,expandedStates:i})}case Jt:case Yt:case Zt:case Et:case Xt:return t({...o,contents:n(o.contents)});case Or:case Ar:case qt:case Wt:case we:case Ze:return t(o);default:throw new fn(o)}}}function Hl(e,t,r){let n=r,a=!1;function o(i){if(a)return!1;let s=t(i);s!==void 0&&(a=!0,n=s)}return c(o,"u"),ql(e,o),n}function cw(e){if(e.type===Me&&e.break||e.type===we&&e.hard||e.type===Ze)return!0}function I5(e){return Hl(e,cw,!1)}function sd(e){if(e.length>0){let t=me(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function dw(e){let t=new Set,r=[];function n(o){if(o.type===Ze&&sd(r),o.type===Me){if(r.push(o),t.has(o))return!1;t.add(o)}}c(n,"n");function a(o){o.type===Me&&r.pop().break&&sd(r)}c(a,"o"),ql(e,n,a,!0)}function pw(e){return e.type===we&&!e.hard?e.soft?"":" ":e.type===He?e.flatContents:e}function R5(e){return Mo(e,pw)}function ud(e){for(e=[...e];e.length>=2&&me(!1,e,-2).type===we&&me(!1,e,-1).type===Ze;)e.length-=2;if(e.length>0){let t=Kn(me(!1,e,-1));e[e.length-1]=t}return e}function Kn(e){switch(Mr(e)){case Jt:case Yt:case Zt:case Me:case Xt:case Et:{let t=Kn(e.contents);return{...e,contents:t}}case He:return{...e,breakContents:Kn(e.breakContents),flatContents:Kn(e.flatContents)};case Je:return{...e,parts:ud(e.parts)};case fr:return ud(e);case Or:return e.replace(/[\n\r]*$/,"");case Ar:case qt:case Wt:case we:case Ze:break;default:throw new fn(e)}return e}function cd(e){return Kn(hw(e))}function fw(e){switch(Mr(e)){case Je:if(e.parts.every(t=>t===""))return"";break;case Me:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Me&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Jt:case Yt:case Zt:case Xt:if(!e.contents)return"";break;case He:if(!e.flatContents&&!e.breakContents)return"";break;case fr:{let t=[];for(let r of e){if(!r)continue;let[n,...a]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof me(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...a)}return t.length===0?"":t.length===1?t[0]:t}case Or:case Ar:case qt:case Wt:case we:case Et:case Ze:break;default:throw new fn(e)}return e}function hw(e){return Mo(e,t=>fw(t))}function T5(e,t=Ad){return Mo(e,r=>typeof r=="string"?id(t,r.split(` +`)):r)}function mw(e){if(e.type===we)return!0}function B5(e){return Hl(e,mw,!1)}function Vp(e,t){return e.type===Et?{...e,contents:t(e.contents)}:t(e)}function Up(){return{value:"",length:0,queue:[]}}function gw(e,t){return jl(e,{type:"indent"},t)}function vw(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Up():t<0?jl(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:jl(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function jl(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],a="",o=0,i=0,s=0;for(let g of n)switch(g.type){case"indent":p(),r.useTabs?u(1):d(r.tabWidth);break;case"stringAlign":p(),a+=g.n,o+=g.n.length;break;case"numberAlign":i+=1,s+=g.n;break;default:throw new Error(`Unexpected type '${g.type}'`)}return f(),{...e,value:a,length:o,queue:n};function u(g){a+=" ".repeat(g),o+=r.tabWidth*g}function d(g){a+=" ".repeat(g),o+=g}function p(){r.useTabs?m():f()}function m(){i>0&&u(i),h()}function f(){s>0&&d(s),h()}function h(){i=0,s=0}}function Vl(e){let t=0,r=0,n=e.length;e:for(;n--;){let a=e[n];if(a===Yn){r++;continue}for(let o=a.length-1;o>=0;o--){let i=a[o];if(i===" "||i===" ")t++;else{e[n]=a.slice(0,o+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Yn);return t}function fo(e,t,r,n,a,o){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,s=[e],u=[];for(;r>=0;){if(s.length===0){if(i===0)return!0;s.push(t[--i]);continue}let{mode:d,doc:p}=s.pop();switch(Mr(p)){case Or:u.push(p),r-=Gl(p);break;case fr:case Je:{let m=e6(p);for(let f=m.length-1;f>=0;f--)s.push({mode:d,doc:m[f]});break}case Yt:case Jt:case Zt:case Et:s.push({mode:d,doc:p.contents});break;case qt:r+=Vl(u);break;case Me:{if(o&&p.break)return!1;let m=p.break?Be:d,f=p.expandedStates&&m===Be?me(!1,p.expandedStates,-1):p.contents;s.push({mode:m,doc:f});break}case He:{let m=(p.groupId?a[p.groupId]||ft:d)===Be?p.breakContents:p.flatContents;m&&s.push({mode:d,doc:m});break}case we:if(d===Be||p.hard)return!0;p.soft||(u.push(" "),r--);break;case Xt:n=!0;break;case Wt:if(n)return!1;break}}return!1}function $o(e,t){let r={},n=t.printWidth,a=$s(t.endOfLine),o=0,i=[{ind:Up(),mode:Be,doc:e}],s=[],u=!1,d=[],p=0;for(dw(e);i.length>0;){let{ind:f,mode:h,doc:g}=i.pop();switch(Mr(g)){case Or:{let y=a!==` +`?si(!1,g,` +`,a):g;s.push(y),i.length>0&&(o+=Gl(y));break}case fr:for(let y=g.length-1;y>=0;y--)i.push({ind:f,mode:h,doc:g[y]});break;case Ar:if(p>=2)throw new Error("There are too many 'cursor' in doc.");s.push(Yn),p++;break;case Yt:i.push({ind:gw(f,t),mode:h,doc:g.contents});break;case Jt:i.push({ind:vw(f,g.n,t),mode:h,doc:g.contents});break;case qt:o-=Vl(s);break;case Me:switch(h){case ft:if(!u){i.push({ind:f,mode:g.break?Be:ft,doc:g.contents});break}case Be:{u=!1;let y={ind:f,mode:ft,doc:g.contents},b=n-o,D=d.length>0;if(!g.break&&fo(y,i,b,D,r))i.push(y);else if(g.expandedStates){let w=me(!1,g.expandedStates,-1);if(g.break){i.push({ind:f,mode:Be,doc:w});break}else for(let x=1;x=g.expandedStates.length){i.push({ind:f,mode:Be,doc:w});break}else{let E=g.expandedStates[x],C={ind:f,mode:ft,doc:E};if(fo(C,i,b,D,r)){i.push(C);break}}}else i.push({ind:f,mode:Be,doc:g.contents});break}}g.id&&(r[g.id]=me(!1,i,-1).mode);break;case Je:{let y=n-o,{parts:b}=g;if(b.length===0)break;let[D,w]=b,x={ind:f,mode:ft,doc:D},E={ind:f,mode:Be,doc:D},C=fo(x,[],y,d.length>0,r,!0);if(b.length===1){C?i.push(x):i.push(E);break}let S={ind:f,mode:ft,doc:w},k={ind:f,mode:Be,doc:w};if(b.length===2){C?i.push(S,x):i.push(k,E);break}b.splice(0,2);let A={ind:f,mode:h,doc:od(b)},_=b[0];fo({ind:f,mode:ft,doc:[D,w,_]},[],y,d.length>0,r,!0)?i.push(A,S,x):C?i.push(A,k,x):i.push(A,k,E);break}case He:case Zt:{let y=g.groupId?r[g.groupId]:h;if(y===Be){let b=g.type===He?g.breakContents:g.negate?g.contents:Oo(g.contents);b&&i.push({ind:f,mode:h,doc:b})}if(y===ft){let b=g.type===He?g.flatContents:g.negate?Oo(g.contents):g.contents;b&&i.push({ind:f,mode:h,doc:b})}break}case Xt:d.push({ind:f,mode:h,doc:g.contents});break;case Wt:d.length>0&&i.push({ind:f,mode:h,doc:il});break;case we:switch(h){case ft:if(g.hard)u=!0;else{g.soft||(s.push(" "),o+=1);break}case Be:if(d.length>0){i.push({ind:f,mode:h,doc:g},...d.reverse()),d.length=0;break}g.literal?f.root?(s.push(a,f.root.value),o=f.root.length):(s.push(a),o=0):(o-=Vl(s),s.push(a+f.value),o=f.length);break}break;case Et:i.push({ind:f,mode:h,doc:g.contents});break;case Ze:break;default:throw new fn(g)}i.length===0&&d.length>0&&(i.push(...d.reverse()),d.length=0)}let m=s.indexOf(Yn);if(m!==-1){let f=s.indexOf(Yn,m+1),h=s.slice(0,m).join(""),g=s.slice(m+1,f).join(""),y=s.slice(f+1).join("");return{formatted:h+g+y,cursorNodeStart:h.length,cursorNodeText:g}}return{formatted:s.join("")}}function z5(e,t,r=0){let n=0;for(let a=r;a!0,"n")}=t,a=c(o=>r6(o)&&n(o),"o");for(let o of r(e)){let i=e[o];if(Array.isArray(i))for(let s of i)a(s)&&(yield s);else a(i)&&(yield i)}}function*yw(e,t){let r=[e];for(let n=0;n{let a=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:o}=t,i=r;for(;i>=0&&i0}function P5(e){return e?t=>e(t,Id):a6}function bw(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function Ps(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=bw(e)}function rn(e,t){t.leading=!0,t.trailing=!1,Ps(e,t)}function Co(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ps(e,t)}function nn(e,t){t.leading=!1,t.trailing=!0,Ps(e,t)}function Ns(e,t){if(ll.has(e))return ll.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:a},locStart:o,locEnd:i}=t;if(!n)return[];let s=((r==null?void 0:r(e,t))??[...qp(e,{getVisitorKeys:ui(a)})]).flatMap(u=>n(u)?[u]:Ns(u,t));return s.sort((u,d)=>o(u)-o(d)||i(u)-i(d)),ll.set(e,s),s}function Wp(e,t,r,n){let{locStart:a,locEnd:o}=r,i=a(t),s=o(t),u=Ns(e,r),d,p,m=0,f=u.length;for(;m>1,g=u[h],y=a(g),b=o(g);if(y<=i&&s<=b)return Wp(g,t,r,g);if(b<=i){d=g,m=h+1;continue}if(s<=y){p=g,f=h;continue}throw new Error("Comment location overlaps with node location")}if((n==null?void 0:n.type)==="TemplateLiteral"){let{quasis:h}=n,g=nl(h,t,r);d&&nl(h,d,r)!==g&&(d=null),p&&nl(h,p,r)!==g&&(p=null)}return{enclosingNode:n,precedingNode:d,followingNode:p}}function ww(e,t){let{comments:r}=e;if(delete e.comments,!n6(r)||!t.printer.canAttachComment)return;let n=[],{locStart:a,locEnd:o,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:s={}},originalText:u}=t,{ownLine:d=sl,endOfLine:p=sl,remaining:m=sl}=s,f=r.map((h,g)=>({...Wp(e,h,t),comment:h,text:u,options:t,ast:e,isLastComment:r.length-1===g}));for(let[h,g]of f.entries()){let{comment:y,precedingNode:b,enclosingNode:D,followingNode:w,text:x,options:E,ast:C,isLastComment:S}=g;if(E.parser==="json"||E.parser==="json5"||E.parser==="jsonc"||E.parser==="__js_expression"||E.parser==="__ts_expression"||E.parser==="__vue_expression"||E.parser==="__vue_ts_expression"){if(a(y)-a(C)<=0){rn(C,y);continue}if(o(y)-o(C)>=0){nn(C,y);continue}}let k;if(i?k=[g]:(y.enclosingNode=D,y.precedingNode=b,y.followingNode=w,k=[y,x,E,C,S]),Ew(x,E,f,h))y.placement="ownLine",d(...k)||(w?rn(w,y):b?nn(b,y):Co(D||C,y));else if(xw(x,E,f,h))y.placement="endOfLine",p(...k)||(b?nn(b,y):w?rn(w,y):Co(D||C,y));else if(y.placement="remaining",!m(...k))if(b&&w){let A=n.length;A>0&&n[A-1].followingNode!==w&&dd(n,E),n.push(g)}else b?nn(b,y):w?rn(w,y):Co(D||C,y)}if(dd(n,t),!i)for(let h of r)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode}function Ew(e,t,r,n){let{comment:a,precedingNode:o}=r[n],{locStart:i,locEnd:s}=t,u=i(a);if(o)for(let d=n-1;d>=0;d--){let{comment:p,precedingNode:m}=r[d];if(m!==o||!tf(e.slice(s(p),u)))break;u=i(p)}return dr(e,u,{backwards:!0})}function xw(e,t,r,n){let{comment:a,followingNode:o}=r[n],{locStart:i,locEnd:s}=t,u=s(a);if(o)for(let d=n+1;d0;--u){let{comment:d,precedingNode:p,followingNode:m}=e[u-1];Yl.strictEqual(p,o),Yl.strictEqual(m,i);let f=t.originalText.slice(t.locEnd(d),s);if(((n=(r=t.printer).isGap)==null?void 0:n.call(r,f,t))??/^[\s(]*$/.test(f))s=t.locStart(d);else break}for(let[d,{comment:p}]of e.entries())d1&&d.comments.sort((p,m)=>t.locStart(p)-t.locStart(m));e.length=0}function nl(e,t,r){let n=r.locStart(t)-1;for(let a=1;a!n.has(s)).length===0)return{leading:"",trailing:""};let a=[],o=[],i;return e.each(()=>{let s=e.node;if(n!=null&&n.has(s))return;let{leading:u,trailing:d}=s;u?a.push(Dw(e,t)):d&&(i=Cw(e,t,i),o.push(i.doc))},"comments"),{leading:a,trailing:o}}function kw(e,t,r){let{leading:n,trailing:a}=Sw(e,r);return!n&&!a?t:Vp(t,o=>[n,o,a])}function Aw(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function H5(e){return()=>{}}function pd({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(a=>a.languages??[]),n=[];for(let a of _w(Object.assign({},...e.map(({options:o})=>o),i6)))!t&&a.deprecated||(Array.isArray(a.choices)&&(t||(a.choices=a.choices.filter(o=>!o.deprecated)),a.name==="parser"&&(a.choices=[...a.choices,...Fw(a.choices,r,e)])),a.pluginDefaults=Object.fromEntries(e.filter(o=>{var i;return((i=o.defaultOptions)==null?void 0:i[a.name])!==void 0}).map(o=>[o.name,o.defaultOptions[a.name]])),n.push(a));return{languages:r,options:n}}function*Fw(e,t,r){let n=new Set(e.map(a=>a.value));for(let a of t)if(a.parsers){for(let o of a.parsers)if(!n.has(o)){n.add(o);let i=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,o)),s=a.name;i!=null&&i.name&&(s+=` (plugin: ${i.name})`),yield{value:o,description:s}}}}function _w(e){let t=[];for(let[r,n]of Object.entries(e)){let a={name:r,...n};Array.isArray(a.default)&&(a.default=me(!1,a.default,-1).value),t.push(a)}return t}function fd(e,t){if(!t)return;let r=l6(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>r.endsWith(a)))}function Iw(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function j5(e,t){let r=e.plugins.flatMap(a=>a.languages??[]),n=Iw(r,t.language)??fd(r,t.physicalFile)??fd(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}function Mc(e,t,r,n){return[`Invalid ${an.default.red(n.key(e))} value.`,`Expected ${an.default.blue(r)},`,`but received ${t===Td?an.default.gray("nothing"):an.default.red(n.value(t))}.`].join(" ")}function hd({text:e,list:t},r){let n=[];return e&&n.push(`- ${an.default.blue(e)}`),t&&n.push([`- ${an.default.blue(t.title)}:`].concat(t.values.map(a=>hd(a,r-Bd.length).replace(/^|\n/g,`$&${Bd}`))).join(` +`)),md(n,r)}function md(e,t){if(e.length===1)return e[0];let[r,n]=e,[a,o]=e.map(i=>i.split(` +`,1)[0].length);return a>t&&a>o?n:r}function V5(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let o=0;for(;os?d>s?s+1:d:d>u?u+1:d;return s}function U5(e,t){let r=new e(t),n=Object.create(r);for(let a of u6)a in t&&(n[a]=Rw(t[a],r,sr.prototype[a].length));return n}function Rw(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}function $c({from:e,to:t}){return{from:[e],to:t}}function q5(e,t){let r=Object.create(null);for(let n of e){let a=n[t];if(r[a])throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r[a]=n}return r}function W5(e,t){let r=new Map;for(let n of e){let a=n[t];if(r.has(a))throw new Error(`Duplicate ${t} ${JSON.stringify(a)}`);r.set(a,n)}return r}function G5(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function K5(e,t){let r=[],n=[];for(let a of e)t(a)?r.push(a):n.push(a);return[r,n]}function Y5(e){return e===Math.floor(e)}function J5(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function Z5(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function Pc(e){return e===void 0?{}:e}function gd(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return Tw((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(gd)}}:{text:t}}function Nc(e,t){return e===!0?!0:e===!1?{value:t}:e}function Hc(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function vd(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function al(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>vd(r,t)):[vd(e,t)]}function jc(e,t){let r=al(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function Tw(e,t){if(!e)throw new Error(t)}function X5(e,t,{logger:r=!1,isCLI:n=!1,passThrough:a=!1,FlagSchema:o,descriptor:i}={}){if(n){if(!o)throw new Error("'FlagSchema' option is required.");if(!i)throw new Error("'descriptor' option is required.")}else i=Jr;let s=a?Array.isArray(a)?(f,h)=>a.includes(f)?{[f]:h}:void 0:(f,h)=>({[f]:h}):(f,h,g)=>{let{_:y,...b}=g.schemas;return Ld(f,h,{...g,schemas:b})},u=Bw(t,{isCLI:n,FlagSchema:o}),d=new g6(u,{logger:r,unknown:s,descriptor:i}),p=r!==!1;p&&f0&&(d._hasDeprecationWarned=f0);let m=d.normalize(e);return p&&(f0=d._hasDeprecationWarned),m}function Bw(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(d6.create({name:"_"}));for(let a of e)n.push(zw(a,{isCLI:t,optionInfos:e,FlagSchema:r})),a.alias&&t&&n.push(c6.create({name:a.alias,sourceName:a.name}));return n}function zw(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:a}=e,o={name:a},i,s={};switch(e.type){case"int":i=m6,t&&(o.preprocess=Number);break;case"string":i=Od;break;case"choice":i=h6,o.choices=e.choices.map(u=>u!=null&&u.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":i=f6;break;case"flag":i=n,o.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":i=Od;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?o.validate=(u,d,p)=>e.exception(u)||d.validate(u,p):o.validate=(u,d,p)=>u===void 0||d.validate(u,p),e.redirect&&(s.redirect=u=>u?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let u=o.preprocess||(d=>d);o.preprocess=(d,p,m)=>p.preprocess(u(Array.isArray(d)?me(!1,d,-1):d),m)}return e.array?p6.create({...t?{preprocess:c(u=>Array.isArray(u)?u:[u],"preprocess")}:{},...s,valueSchema:i.create(o)}):i.create({...o,...s})}function Kp(e,t){if(!t)throw new Error("parserName is required.");let r=nf(!1,e,a=>a.parsers&&Object.prototype.hasOwnProperty.call(a.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new rf(n)}function Lw(e,t){if(!t)throw new Error("astFormat is required.");let r=nf(!1,e,a=>a.printers&&Object.prototype.hasOwnProperty.call(a.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new rf(n)}function Yp({plugins:e,parser:t}){let r=Kp(e,t);return Jp(r,t)}function Jp(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}function Ow(e,t){let r=e.printers[t];return typeof r=="function"?r():r}async function Q5(e,t={}){var r;let n={...e};if(!n.parser)if(n.filepath){if(n.parser=s6(n,{physicalFile:n.filepath}),!n.parser)throw new Rd(`No parser could be inferred for file "${n.filepath}".`)}else throw new Rd("No parser and no file path given, couldn't infer a parser.");let a=pd({plugins:e.plugins,showDeprecated:!0}).options,o={...Md,...Object.fromEntries(a.filter(f=>f.default!==void 0).map(f=>[f.name,f.default]))},i=Kp(n.plugins,n.parser),s=await Jp(i,n.parser);n.astFormat=s.astFormat,n.locEnd=s.locEnd,n.locStart=s.locStart;let u=(r=i.printers)!=null&&r[s.astFormat]?i:Lw(n.plugins,s.astFormat),d=await Ow(u,s.astFormat);n.printer=d;let p=u.defaultOptions?Object.fromEntries(Object.entries(u.defaultOptions).filter(([,f])=>f!==void 0)):{},m={...o,...p};for(let[f,h]of Object.entries(m))(n[f]===null||n[f]===void 0)&&(n[f]=h);return n.parser==="json"&&(n.trailingComma="none"),v6(n,a,{passThrough:Object.keys(Md),...t})}async function e2(e,t){let r=await Yp(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;let a;try{a=await r.parse(n,t,t)}catch(o){Mw(o,e)}return{text:n,ast:a}}function Mw(e,t){let{loc:r}=e;if(r){let n=(0,y6.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e}async function $w(e,t,r,n,a){let{embeddedLanguageFormatting:o,printer:{embed:i,hasPrettierIgnore:s=c(()=>!1,"s"),getVisitorKeys:u}}=r;if(!i||o!=="auto")return;if(i.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let d=ui(i.getVisitorKeys??u),p=[];h();let m=e.stack;for(let{print:g,node:y,pathStack:b}of p)try{e.stack=b;let D=await g(f,t,e,r);D&&a.set(y,D)}catch(D){if(globalThis.PRETTIER_DEBUG)throw D}e.stack=m;function f(g,y){return Pw(g,y,r,n)}c(f,"f");function h(){let{node:g}=e;if(g===null||typeof g!="object"||s(e))return;for(let b of d(g))Array.isArray(g[b])?e.each(h,b):e.call(h,b);let y=i(e,r);if(y){if(typeof y=="function"){p.push({print:y,node:g,pathStack:[...e.stack]});return}a.set(g,y)}}c(h,"p")}async function Pw(e,t,r,n){let a=await wn({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:o}=await _a(e,a),i=await n(o,a);return cd(i)}function t2(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:a,locEnd:o,[Symbol.for("printedComments")]:i}=t,{node:s}=e,u=a(s),d=o(s);for(let p of n)a(p)>=u&&o(p)<=d&&i.add(p);return r.slice(u,d)}async function li(e,t){({ast:e}=await Zp(e,t));let r=new Map,n=new t6(e),a=o6(t),o=new Map;await $w(n,s,t,li,o);let i=await yd(n,t,s,void 0,o);return Aw(t),i;function s(d,p){return d===void 0||d===n?u(p):Array.isArray(d)?n.call(()=>u(p),...d):n.call(()=>u(p),d)}function u(d){a(n);let p=n.node;if(p==null)return"";let m=p&&typeof p=="object"&&d===void 0;if(m&&r.has(p))return r.get(p);let f=yd(n,t,s,d,o);return m&&r.set(p,f),f}}function yd(e,t,r,n,a){var o;let{node:i}=e,{printer:s}=t,u;return(o=s.hasPrettierIgnore)!=null&&o.call(s,e)?u=b6(e,t):a.has(i)?u=a.get(i):u=s.print(e,t,r,n),i===t.cursorNode&&(u=Vp(u,d=>[Wl,d,Wl])),s.printComment&&(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(u=kw(e,u,t)),u}async function Zp(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,ww(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function r2(e,t){let{cursorOffset:r,locStart:n,locEnd:a}=t,o=ui(t.printer.getVisitorKeys),i=c(u=>n(u)<=r&&a(u)>=r,"i"),s=e;for(let u of yw(e,{getVisitorKeys:o,filter:i}))s=u;return s}function n2(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let a=ui(n),o=r.ignoredProperties??new Set;return i(e);function i(s,u){if(!(s!==null&&typeof s=="object"))return s;if(Array.isArray(s))return s.map(f=>i(f,u)).filter(Boolean);let d={},p=new Set(a(s));for(let f in s)!Object.prototype.hasOwnProperty.call(s,f)||o.has(f)||(p.has(f)?d[f]=i(s[f],s):d[f]=s[f]);let m=r(s,d,u);if(m!==null)return m??d}}function Nw(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find(a=>af.has(a.type)&&n.has(a))}function bd(e){let t=e.length-1;for(;;){let r=e[t];if((r==null?void 0:r.type)==="Program"||(r==null?void 0:r.type)==="File")t--;else break}return e.slice(0,t+1)}function Hw(e,t,{locStart:r,locEnd:n}){let a=e.node,o=t.node;if(a===o)return{startNode:a,endNode:o};let i=r(e.node);for(let u of bd(t.parentNodes))if(r(u)>=i)o=u;else break;let s=n(t.node);for(let u of bd(e.parentNodes)){if(n(u)<=s)a=u;else break;if(a===o)break}return{startNode:a,endNode:o}}function Ul(e,t,r,n,a=[],o){let{locStart:i,locEnd:s}=r,u=i(e),d=s(e);if(!(t>d||tn);let s=e.slice(n,a).search(/\S/),u=s===-1;if(!u)for(n+=s;a>n&&!/\S/.test(e[a-1]);--a);let d=Ul(r,n,t,(h,g)=>wd(t,h,g),[],"rangeStart"),p=u?d:Ul(r,a,t,h=>wd(t,h),[],"rangeEnd");if(!d||!p)return{rangeStart:0,rangeEnd:0};let m,f;if(x6(t)){let h=Nw(d,p);m=h,f=h}else({startNode:m,endNode:f}=Hw(d,p,t));return{rangeStart:Math.min(o(m),o(f)),rangeEnd:Math.max(i(m),i(f))}}async function Xp(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:a}=await _a(e,t);t.cursorOffset>=0&&(t.cursorNode=w6(n,t));let o=await li(n,t);r>0&&(o=ld([Fr,o],r,t.tabWidth));let i=$o(o,t);if(r>0){let u=i.formatted.trim();i.cursorNodeStart!==void 0&&(i.cursorNodeStart-=i.formatted.indexOf(u)),i.formatted=u+$s(t.endOfLine)}let s=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,d,p,m,f;if(t.cursorNode&&i.cursorNodeText?(u=t.locStart(t.cursorNode),d=a.slice(u,t.locEnd(t.cursorNode)),p=t.cursorOffset-u,m=i.cursorNodeStart,f=i.cursorNodeText):(u=0,d=a,p=t.cursorOffset,m=0,f=i.formatted),d===f)return{formatted:i.formatted,cursorOffset:m+p,comments:s};let h=d.split("");h.splice(p,0,$d);let g=f.split(""),y=(0,Yw.diffArrays)(h,g),b=m;for(let D of y)if(D.removed){if(D.value.includes($d))break}else b+=D.count;return{formatted:i.formatted,cursorOffset:b,comments:s}}return{formatted:i.formatted,cursorOffset:-1,comments:s}}async function Uw(e,t){let{ast:r,text:n}=await _a(e,t),{rangeStart:a,rangeEnd:o}=Vw(n,t,r),i=n.slice(a,o),s=Math.min(a,n.lastIndexOf(` +`,a)+1),u=n.slice(s,a).match(/^\s*/)[0],d=Kl(u,t.tabWidth),p=await Xp(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>a&&t.cursorOffset<=o?t.cursorOffset-a:-1,endOfLine:"lf"},d),m=p.formatted.trimEnd(),{cursorOffset:f}=t;f>o?f+=m.length-i.length:p.cursorOffset>=0&&(f=p.cursorOffset+a);let h=n.slice(0,a)+m+n.slice(o);if(t.endOfLine!=="lf"){let g=$s(t.endOfLine);f>=0&&g===`\r +`&&(f+=jp(h.slice(0,f),` +`)),h=si(!1,h,` +`,g)}return{formatted:h,cursorOffset:f,comments:p.comments}}function ol(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function Ed(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a}=t;return r=ol(e,r,-1),n=ol(e,n,0),a=ol(e,a,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:a}}function Qp(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o}=Ed(e,t),i=e.charAt(0)===of;if(i&&(e=e.slice(1),r--,n--,a--),o==="auto"&&(o=lw(e)),e.includes("\r")){let s=c(u=>jp(e.slice(0,Math.max(u,0)),`\r +`),"s");r-=s(r),n-=s(n),a-=s(a),e=sw(e)}return{hasBOM:i,text:e,options:Ed(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o})}}async function xd(e,t){let r=await Yp(t);return!r.hasPragma||r.hasPragma(e)}async function Dd(e,t){let{hasBOM:r,text:n,options:a}=Qp(e,await wn(t));if(a.rangeStart>=a.rangeEnd&&n!==""||a.requirePragma&&!await xd(n,a))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let o;return a.rangeStart>0||a.rangeEnd=0&&o.cursorOffset++),o}async function a2(e,t,r){let{text:n,options:a}=Qp(e,await wn(t)),o=await _a(n,a);return r&&(r.preprocessForPrint&&(o.ast=await Zp(o.ast,a)),r.massage&&(o.ast=E6(o.ast,a))),o}async function o2(e,t){t=await wn(t);let r=await li(e,t);return $o(r,t)}async function i2(e,t){let r=uw(e),{formatted:n}=await Dd(r,{...t,parser:"__js_expression"});return n}async function l2(e,t){t=await wn(t);let{ast:r}=await _a(e,t);return li(r,t)}async function s2(e,t){return $o(e,await wn(t))}function u2(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;rMath.max(n,a.length/t.length),0)}function m2(e,t){let r=Vs(e,t);return r===!1?"":e.charAt(r)}function g2(e,t,r){for(let n=t;ni===n?i:s===t?"\\"+s:s||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+a+t}function Ww(e,t,r){return Vs(e,r(t))}function b2(e,t){return arguments.length===2||typeof t=="number"?Vs(e,t):Ww(...arguments)}function Gw(e,t,r){return js(e,r(t))}function w2(e,t){return arguments.length===2||typeof t=="number"?js(e,t):Gw(...arguments)}function Kw(e,t,r){return Xl(e,r(t))}function E2(e,t){return arguments.length===2||typeof t=="number"?Xl(e,t):Kw(...arguments)}function br(e,t=1){return async(...r)=>{let n=r[t]??{},a=n.plugins??[];return r[t]={...n,plugins:Array.isArray(a)?a:Object.values(a)},e(...r)}}async function Cd(e,t){let{formatted:r}=await Pd(e,{...t,cursorOffset:-1});return r}async function x2(e,t){return await Cd(e,t)===e}var D2,Ka,C2,S2,k2,A2,F2,Ya,Ja,Vc,Tn,_2,I2,Uc,Bn,R2,T2,Za,qc,B2,z2,L2,O2,Wc,M2,si,Yw,Or,fr,Ar,Yt,Jt,qt,Me,Je,He,Zt,Xt,Wt,we,Et,Ze,ef,Mr,Jw,Gc,$2,fn,Sd,ql,Kc,xt,Hs,P2,ho,N2,il,Yc,kd,H2,Fr,Ad,Wl,j2,me,Zw,Xw,Qw,Gl,e6,Be,ft,Yn,Kl,$i,Jc,Xa,Pi,Zc,V2,t6,Xc,Yl,r6,U2,hr,Fd,_d,zr,dr,n6,Id,a6,ui,ll,sl,tf,js,o6,Qc,rf,e0,Rd,i6,l6,s6,Jr,t0,q2,an,Td,Qa,Bd,W2,r0,ul,zd,Ld,u6,n0,sr,a0,c6,o0,d6,i0,p6,l0,f6,s0,h6,u0,G2,c0,m6,d0,Od,K2,Y2,J2,Z2,p0,g6,f0,v6,X2,nf,Md,wn,y6,_a,b6,w6,E6,x6,af,D6,of,$d,h0,Q2,ev,tv,rv,m0,Jl,Zl,Vs,Xl,nv,av,ov,iv,lv,sv,Pd,uv,cv,C6,Rk=B(()=>{D2=Object.create,Ka=Object.defineProperty,C2=Object.getOwnPropertyDescriptor,S2=Object.getOwnPropertyNames,k2=Object.getPrototypeOf,A2=Object.prototype.hasOwnProperty,F2=c((e,t)=>()=>(e&&(t=e(e=0)),t),"Eu"),Ya=c((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),"Me"),Ja=c((e,t)=>{for(var r in t)Ka(e,r,{get:t[r],enumerable:!0})},"We"),Vc=c((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of S2(t))!A2.call(e,a)&&a!==r&&Ka(e,a,{get:c(()=>t[a],"get"),enumerable:!(n=C2(t,a))||n.enumerable});return e},"ur"),Tn=c((e,t,r)=>(r=e!=null?D2(k2(e)):{},Vc(t||!e||!e.__esModule?Ka(r,"default",{value:e,enumerable:!0}):r,e)),"he"),_2=c(e=>Vc(Ka({},"__esModule",{value:!0}),e),"Cu"),I2=c((e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},"hu"),Uc=c((e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},"ht"),Bn=c((e,t,r)=>(I2(e,t,"access private method"),r),"ce"),R2=Ya(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){}c(t,"or"),t.prototype={diff:c(function(a,o){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.callback;typeof i=="function"&&(s=i,i={}),this.options=i;var u=this;function d(w){return s?(setTimeout(function(){s(void 0,w)},0),!0):w}c(d,"i"),a=this.castInput(a),o=this.castInput(o),a=this.removeEmpty(this.tokenize(a)),o=this.removeEmpty(this.tokenize(o));var p=o.length,m=a.length,f=1,h=p+m;i.maxEditLength&&(h=Math.min(h,i.maxEditLength));var g=[{newPos:-1,components:[]}],y=this.extractCommon(g[0],o,a,0);if(g[0].newPos+1>=p&&y+1>=m)return d([{value:this.join(o),count:o.length}]);function b(){for(var w=-1*f;w<=f;w+=2){var x=void 0,E=g[w-1],C=g[w+1],S=(C?C.newPos:0)-w;E&&(g[w-1]=void 0);var k=E&&E.newPos+1=p&&S+1>=m)return d(r(u,x.components,o,a,u.useLongestToken));g[w]=x}f++}if(c(b,"p"),s)c(function w(){setTimeout(function(){if(f>h)return s();b()||w()},0)},"F")();else for(;f<=h;){var D=b();if(D)return D}},"diff"),pushComponent:c(function(a,o,i){var s=a[a.length-1];s&&s.added===o&&s.removed===i?a[a.length-1]={count:s.count+1,added:o,removed:i}:a.push({count:1,added:o,removed:i})},"pushComponent"),extractCommon:c(function(a,o,i,s){for(var u=o.length,d=i.length,p=a.newPos,m=p-s,f=0;p+1D.length?x:D}),h.value=a.join(y)}else h.value=a.join(i.slice(m,m+h.count));m+=h.count,h.added||(f+=h.count)}}var b=o[p-1];return p>1&&typeof b.value=="string"&&(b.added||b.removed)&&a.equals("",b.value)&&(o[p-2].value+=b.value,o.pop()),o}c(r,"yu");function n(a){return{newPos:a.newPos,components:a.components.slice(0)}}c(n,"Au")}),T2=Ya(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.diffArrays=a,e.arrayDiff=void 0;var t=r(R2());function r(o){return o&&o.__esModule?o:{default:o}}c(r,"_u");var n=new t.default;e.arrayDiff=n,n.tokenize=function(o){return o.slice()},n.join=n.removeEmpty=function(o){return o};function a(o,i,s){return n.diff(o,i,s)}c(a,"ku")}),Za=Ya((e,t)=>{var r=new Proxy(String,{get:c(()=>r,"get")});t.exports=r}),qc={},Ja(qc,{default:c(()=>z2,"default"),shouldHighlight:c(()=>B2,"shouldHighlight")}),L2=F2(()=>{B2=c(()=>!1,"Eo"),z2=String}),O2=Ya(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=m,e.default=f;var t=(L2(),_2(qc)),r=a(Za(),!0);function n(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,y=new WeakMap;return(n=c(function(b){return b?y:g},"Tn"))(h)}c(n,"Tn");function a(h,g){if(!g&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=n(g);if(y&&y.has(h))return y.get(h);var b={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in h)if(w!=="default"&&Object.prototype.hasOwnProperty.call(h,w)){var x=D?Object.getOwnPropertyDescriptor(h,w):null;x&&(x.get||x.set)?Object.defineProperty(b,w,x):b[w]=h[w]}return b.default=h,y&&y.set(h,b),b}c(a,"ho");var o;function i(h){return h?(o!=null||(o=new r.default.constructor({enabled:!0,level:1})),o):r.default}c(i,"go");var s=!1;function u(h){return{gutter:h.grey,marker:h.red.bold,message:h.red.bold}}c(u,"yo");var d=/\r\n|[\n\r\u2028\u2029]/;function p(h,g,y){let b=Object.assign({column:0,line:-1},h.start),D=Object.assign({},b,h.end),{linesAbove:w=2,linesBelow:x=3}=y||{},E=b.line,C=b.column,S=D.line,k=D.column,A=Math.max(E-(w+1),0),_=Math.min(g.length,S+x);E===-1&&(A=0),S===-1&&(_=g.length);let R=S-E,T={};if(R)for(let L=0;L<=R;L++){let z=L+E;if(!C)T[z]=!0;else if(L===0){let M=g[z-1].length;T[z]=[C,M-C+1]}else if(L===R)T[z]=[0,k];else{let M=g[z-L].length;T[z]=[0,M]}}else C===k?C?T[E]=[C,0]:T[E]=!0:T[E]=[C,k-C];return{start:A,end:_,markerLines:T}}c(p,"Ao");function m(h,g,y={}){let b=(y.highlightCode||y.forceColor)&&(0,t.shouldHighlight)(y),D=i(y.forceColor),w=u(D),x=c((T,L)=>b?T(L):L,"i"),E=h.split(d),{start:C,end:S,markerLines:k}=p(g,E,y),A=g.start&&typeof g.start.column=="number",_=String(S).length,R=(b?(0,t.default)(h,y):h).split(d,S).slice(C,S).map((T,L)=>{let z=C+1+L,M=` ${` ${z}`.slice(-_)} |`,O=k[z],$=!k[z+1];if(O){let j="";if(Array.isArray(O)){let K=T.slice(0,Math.max(O[0]-1,0)).replace(/[^\t]/g," "),H=O[1]||1;j=[` + `,x(w.gutter,M.replace(/\d/g," "))," ",K,x(w.marker,"^").repeat(H)].join(""),$&&y.message&&(j+=" "+x(w.message,y.message))}return[x(w.marker,">"),x(w.gutter,M),T.length>0?` ${T}`:"",j].join("")}else return` ${x(w.gutter,M)}${T.length>0?` ${T}`:""}`}).join(` +`);return y.message&&!A&&(R=`${" ".repeat(_+1)}${y.message} +${R}`),b?D.reset(R):R}c(m,"vn");function f(h,g,y,b={}){if(!s){s=!0;let D="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let w=new Error(D);w.name="DeprecationWarning",console.warn(new Error(D))}}return y=Math.max(y,0),m(h,{start:{column:y,line:g}},b)}c(f,"Bo")}),Wc={},Ja(Wc,{__debug:c(()=>cv,"__debug"),check:c(()=>x2,"check"),doc:c(()=>h0,"doc"),format:c(()=>Cd,"format"),formatWithCursor:c(()=>Pd,"formatWithCursor"),getSupportInfo:c(()=>uv,"getSupportInfo"),util:c(()=>m0,"util"),version:c(()=>rv,"version")}),M2=c((e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},"gu"),si=M2,Yw=Tn(T2(),1),c(lw,"Dr"),c($s,"Ae"),c(jp,"yt"),c(sw,"ar"),Or="string",fr="array",Ar="cursor",Yt="indent",Jt="align",qt="trim",Me="group",Je="fill",He="if-break",Zt="indent-if-break",Xt="line-suffix",Wt="line-suffix-boundary",we="line",Et="label",Ze="break-parent",ef=new Set([Ar,Yt,Jt,qt,Me,Je,He,Zt,Xt,Wt,we,Et,Ze]),c(v5,"xu"),Mr=v5,Jw=c(e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),"bu"),c(y5,"wu"),$2=(Gc=class extends Error{constructor(t){super(y5(t));yr(this,"name","InvalidDocError");this.doc=t}},c(Gc,"At"),Gc),fn=$2,Sd={},c(b5,"Ou"),ql=b5,Kc=c(()=>{},"lr"),xt=Kc,Hs=Kc,c(Oo,"ie"),c(pn,"oe"),c(ad,"Bt"),c(w5,"fr"),c(E5,"Fr"),c(x5,"pr"),c(D5,"dr"),c(od,"Ge"),c(C5,"mr"),c(S5,"Er"),c(Nl,"_e"),P2={type:Wt},ho={type:Ze},N2={type:qt},il={type:we,hard:!0},Yc={type:we,hard:!0,literal:!0},kd={type:we},H2={type:we,soft:!0},Fr=[il,ho],Ad=[Yc,ho],Wl={type:Ar},c(id,"be"),c(ld,"qe"),c(k5,"yr"),c(Ot,"J"),c(uw,"Ar"),j2=c((e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},"Nu"),me=j2,Zw=c(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"Br"),c(A5,"_r"),c(F5,"kr"),Xw=c(e=>!(A5(e)||F5(e)),"xr"),Qw=/[^\x20-\x7F]/,c(_5,"Tu"),Gl=_5,e6=c(e=>{if(Array.isArray(e))return e;if(e.type!==Je)throw new Error(`Expect doc to be 'array' or '${Je}'.`);return e.parts},"Or"),c(Mo,"Ne"),c(Hl,"Je"),c(cw,"vu"),c(I5,"Nr"),c(sd,"br"),c(dw,"Sr"),c(pw,"Pu"),c(R5,"Tr"),c(ud,"wr"),c(Kn,"Oe"),c(cd,"Xe"),c(fw,"Lu"),c(hw,"Iu"),c(T5,"vr"),c(mw,"Ru"),c(B5,"Pr"),c(Vp,"Ze"),Be=Symbol("MODE_BREAK"),ft=Symbol("MODE_FLAT"),Yn=Symbol("cursor"),c(Up,"Lr"),c(gw,"Yu"),c(vw,"ju"),c(jl,"kt"),c(Vl,"xt"),c(fo,"Qe"),c($o,"fe"),c(z5,"Vu"),Kl=z5,V2=(Zc=class{constructor(e){Uc(this,$i),Uc(this,Xa),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return me(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:me(!1,this.stack,-2)}get node(){return me(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=me(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...Bn(this,Xa,Pi).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?me(!1,e,-2):null}getValue(){return me(!1,this.stack,-1)}getNode(e=0){let t=Bn(this,$i,Jc).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,a=me(!1,r,-1);for(let o of t)a=a[o],r.push(o,a);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=Bn(this,$i,Jc).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,a=me(!1,r,-1);for(let o of t)a=a[o],r.push(o,a);try{for(let o=0;o{r[a]=e(n,a,o)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let a of e){if(n===void 0)return!1;let o=null;if(typeof r=="number"&&(o=r,r=this.stack[t--],n=this.stack[t--]),a&&!a(n,r,o))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of Bn(this,Xa,Pi).call(this))if(e(t))return t}hasAncestor(e){for(let t of Bn(this,Xa,Pi).call(this))if(e(t))return!0;return!1}},c(Zc,"bt"),Zc),$i=new WeakSet,Jc=c(function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1},"wt"),Xa=new WeakSet,Pi=c(function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}},"et"),t6=V2,Xc=new Proxy(()=>{},{get:c(()=>Xc,"get")}),Yl=Xc,c(L5,"$u"),r6=L5,c(qp,"Ot"),c(yw,"jr"),c(Rn,"de"),U2=Rn(/\s/),hr=Rn(" "),Fd=Rn(",; "),_d=Rn(/[^\n\r]/),c(O5,"Mu"),zr=O5,c(M5,"Wu"),dr=M5,c($5,"Uu"),n6=$5,Id=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),a6=c(e=>Object.keys(e).filter(t=>!Id.has(t)),"zu"),c(P5,"Gu"),ui=P5,c(bw,"Ku"),c(Ps,"St"),c(rn,"te"),c(Co,"X"),c(nn,"re"),ll=new WeakMap,c(Ns,"nt"),c(Wp,"Wr"),sl=c(()=>!1,"vt"),c(ww,"Ur"),tf=c(e=>!/[\S\n\u2028\u2029]/.test(e),"zr"),c(Ew,"Hu"),c(xw,"qu"),c(dd,"Mr"),c(nl,"Pt"),c(N5,"Ju"),js=N5,c(Gp,"Gr"),c(Dw,"Xu"),c(Cw,"Zu"),c(Sw,"Qu"),c(kw,"Kr"),c(Aw,"Hr"),c(H5,"eo"),o6=H5,rf=(Qc=class extends Error{constructor(){super(...arguments);yr(this,"name","ConfigError")}},c(Qc,"Le"),Qc),Rd=(e0=class extends Error{constructor(){super(...arguments);yr(this,"name","UndefinedParserError")}},c(e0,"Ie"),e0),i6={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing +(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:c(e=>typeof e=="string"||typeof e=="function","exception"),choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:c(e=>typeof e=="string"||typeof e=="object","exception"),cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},c(pd,"ut"),c(Fw,"to"),c(_w,"ro"),l6=c(e=>String(e).split(/[/\\]/).pop(),"no"),c(fd,"Xr"),c(Iw,"uo"),c(j5,"oo"),s6=j5,Jr={key:c(e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),"key"),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>Jr.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${Jr.key(r)}: ${Jr.value(e[r])}`).join(", ")} }`},pair:c(({key:e,value:t})=>Jr.value({[e]:t}),"pair")},t0=Tn(Za(),1),q2=c((e,t,{descriptor:r})=>{let n=[`${t0.default.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${t0.default.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},"tn"),an=Tn(Za(),1),Td=Symbol.for("vnopts.VALUE_NOT_EXIST"),Qa=Symbol.for("vnopts.VALUE_UNCHANGED"),Bd=" ".repeat(2),W2=c((e,t,r)=>{let{text:n,list:a}=r.normalizeExpectedResult(r.schemas[e].expected(r)),o=[];return n&&o.push(Mc(e,t,n,r.descriptor)),a&&o.push([Mc(e,t,a.title,r.descriptor)].concat(a.values.map(i=>hd(i,r.loggerPrintWidth))).join(` +`)),md(o,r.loggerPrintWidth)},"un"),c(Mc,"nn"),c(hd,"on"),c(md,"sn"),r0=Tn(Za(),1),ul=[],zd=[],c(V5,"Rt"),Ld=c((e,t,{descriptor:r,logger:n,schemas:a})=>{let o=[`Ignored unknown option ${r0.default.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(a).sort().find(s=>V5(e,s)<3);i&&o.push(`Did you mean ${r0.default.blue(r.key(i))}?`),n.warn(o.join(" "))},"it"),u6=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],c(U5,"so"),sr=(n0=class{static create(e){return U5(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return Qa}},c(n0,"w"),n0),c(Rw,"Do"),c6=(a0=class extends sr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},c(a0,"st"),a0),d6=(o0=class extends sr{expected(){return"anything"}validate(){return!0}},c(o0,"Dt"),o0),p6=(i0=class extends sr{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let a=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);a!==!0&&r.push(a.value)}return r.length===0?!0:{value:r}}deprecated(e,t){let r=[];for(let n of e){let a=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);a!==!1&&r.push(...a.map(({value:o})=>({value:[o]})))}return r}forward(e,t){let r=[];for(let n of e){let a=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...a.map($c))}return r}redirect(e,t){let r=[],n=[];for(let a of e){let o=t.normalizeRedirectResult(this._valueSchema.redirect(a,t),a);"remain"in o&&r.push(o.remain),n.push(...o.redirect.map($c))}return r.length===0?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}},c(i0,"at"),i0),c($c,"an"),f6=(l0=class extends sr{expected(){return"true or false"}validate(e){return typeof e=="boolean"}},c(l0,"ct"),l0),c(q5,"ln"),c(W5,"fn"),c(G5,"Fn"),c(K5,"pn"),c(Y5,"dn"),c(J5,"mn"),c(Z5,"En"),c(Pc,"jt"),c(gd,"Vt"),c(Nc,"$t"),c(Hc,"Mt"),c(vd,"cn"),c(al,"lt"),c(jc,"Wt"),c(Tw,"ao"),h6=(s0=class extends sr{constructor(e){super(e),this._choices=W5(e.choices.map(t=>t&&typeof t=="object"?t:{value:t}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(a=>this._choices.get(a)).filter(({hidden:a})=>!a).map(a=>a.value).sort(J5).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},c(s0,"ft"),s0),G2=(u0=class extends sr{expected(){return"a number"}validate(e,t){return typeof e=="number"}},c(u0,"Ft"),u0),m6=(c0=class extends G2{expected(){return"an integer"}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Y5(e)}},c(c0,"pt"),c0),Od=(d0=class extends sr{expected(){return"a string"}validate(e){return typeof e=="string"}},c(d0,"Ye"),d0),K2=Jr,Y2=Ld,J2=W2,Z2=q2,g6=(p0=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:a=K2,unknown:o=Y2,invalid:i=J2,deprecated:s=Z2,missing:u=c(()=>!1,"a"),required:d=c(()=>!1,"c"),preprocess:p=c(f=>f,"d"),postprocess:m=c(()=>Qa,"f")}=t||{};this._utils={descriptor:a,logger:r||{warn:c(()=>{},"warn")},loggerPrintWidth:n,schemas:q5(e,"name"),normalizeDefaultResult:Pc,normalizeExpectedResult:gd,normalizeDeprecatedResult:Hc,normalizeForwardResult:al,normalizeRedirectResult:jc,normalizeValidateResult:Nc},this._unknownHandler=o,this._invalidHandler=Z5(i),this._deprecatedHandler=s,this._identifyMissing=(f,h)=>!(f in h)||u(f,h),this._identifyRequired=d,this._preprocess=p,this._postprocess=m,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=G5()}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=c(()=>{for(;r.length!==0;){let a=r.shift(),o=this._applyNormalization(a,t);r.push(...o)}},"u");n();for(let a of Object.keys(this._utils.schemas)){let o=this._utils.schemas[a];if(!(a in t)){let i=Pc(o.default(this._utils));"value"in i&&r.push({[a]:i.value})}}n();for(let a of Object.keys(this._utils.schemas)){if(!(a in t))continue;let o=this._utils.schemas[a],i=t[a],s=o.postprocess(i,this._utils);s!==Qa&&(this._applyValidation(s,a,o),t[a]=s)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:a}=this._partitionOptionKeys(e);for(let o of n){let i=this._utils.schemas[o],s=i.preprocess(e[o],this._utils);this._applyValidation(s,o,i);let u=c(({from:m,to:f})=>{r.push(typeof f=="string"?{[f]:m}:{[f.key]:f.value})},"a"),d=c(({value:m,redirectTo:f})=>{let h=Hc(i.deprecated(m,this._utils),s,!0);if(h!==!1)if(h===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,f,this._utils));else for(let{value:g}of h){let y={key:o,value:g};if(!this._hasDeprecationWarned(y)){let b=typeof f=="string"?{key:f,value:g}:f;this._utils.logger.warn(this._deprecatedHandler(y,b,this._utils))}}},"c");al(i.forward(s,this._utils),s).forEach(u);let p=jc(i.redirect(s,this._utils),s);if(p.redirect.forEach(u),"remain"in p){let m=p.remain;t[o]=o in t?i.overlap(t[o],m,this._utils):m,d({value:m})}for(let{from:m,to:f}of p.redirect)d({value:m,redirectTo:f})}for(let o of a){let i=e[o];this._applyUnknownHandler(o,i,t,(s,u)=>{r.push({[s]:u})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,Td,this._utils)}_partitionOptionKeys(e){let[t,r]=K5(Object.keys(e).filter(n=>!this._identifyMissing(n,e)),n=>n in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=Nc(r.validate(e,this._utils),e);if(n!==!0)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let a=this._unknownHandler(e,t,this._utils);if(a)for(let o of Object.keys(a)){if(this._identifyMissing(o,a))continue;let i=a[o];o in this._utils.schemas?n(o,i):r[o]=i}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==Qa){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let a of r){let o=t.override[a];this._applyValidation(o,a,this._utils.schemas[a]),e[a]=o}for(let a of n){let o=t.override[a];this._applyUnknownHandler(a,o,e,(i,s)=>{let u=this._utils.schemas[i];this._applyValidation(s,i,u),e[i]=s})}}}}},c(p0,"dt"),p0),c(X5,"lo"),c(Bw,"fo"),c(zw,"Fo"),v6=X5,X2=c((e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let a=t[n];if(r(a,n,t))return a}}},"po"),nf=X2,c(Kp,"Gt"),c(Lw,"Bn"),c(Yp,"mt"),c(Jp,"Kt"),c(Ow,"_n"),Md={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},c(Q5,"mo"),wn=Q5,y6=Tn(O2(),1),c(e2,"_o"),c(Mw,"ko"),_a=e2,c($w,"In"),c(Pw,"xo"),c(t2,"bo"),b6=t2,c(li,"je"),c(yd,"Yn"),c(Zp,"qt"),c(r2,"wo"),w6=r2,c(n2,"Oo"),E6=n2,x6=c(({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify","No"),c(Nw,"So"),c(bd,"$n"),c(Hw,"To"),c(Ul,"Jt"),c(jw,"vo"),af=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),D6=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]),c(wd,"Mn"),c(Vw,"Un"),of="\uFEFF",$d=Symbol("cursor"),c(Xp,"Jn"),c(Uw,"Lo"),c(ol,"Xt"),c(Ed,"Gn"),c(Qp,"Xn"),c(xd,"Kn"),c(Dd,"Zt"),c(a2,"Zn"),c(o2,"Qn"),c(i2,"eu"),c(l2,"tu"),c(s2,"ru"),h0={},Ja(h0,{builders:c(()=>Q2,"builders"),printer:c(()=>ev,"printer"),utils:c(()=>tv,"utils")}),Q2={join:id,line:kd,softline:H2,hardline:Fr,literalline:Ad,group:ad,conditionalGroup:D5,fill:od,lineSuffix:Nl,lineSuffixBoundary:P2,cursor:Wl,breakParent:ho,ifBreak:C5,trim:N2,indent:Oo,indentIfBreak:S5,align:pn,addAlignmentToDoc:ld,markAsRoot:E5,dedentToRoot:w5,dedent:x5,hardlineWithoutBreakParent:il,literallineWithoutBreakParent:Yc,label:k5,concat:c(e=>e,"concat")},ev={printDocToString:$o},tv={willBreak:I5,traverseDoc:ql,findInDoc:Hl,mapDoc:Mo,removeLines:R5,stripTrailingHardline:cd,replaceEndOfLine:T5,canBreak:B5},rv="3.2.5",m0={},Ja(m0,{addDanglingComment:c(()=>Co,"addDanglingComment"),addLeadingComment:c(()=>rn,"addLeadingComment"),addTrailingComment:c(()=>nn,"addTrailingComment"),getAlignmentSize:c(()=>Kl,"getAlignmentSize"),getIndentSize:c(()=>nv,"getIndentSize"),getMaxContinuousCount:c(()=>av,"getMaxContinuousCount"),getNextNonSpaceNonCommentCharacter:c(()=>ov,"getNextNonSpaceNonCommentCharacter"),getNextNonSpaceNonCommentCharacterIndex:c(()=>b2,"getNextNonSpaceNonCommentCharacterIndex"),getStringWidth:c(()=>Gl,"getStringWidth"),hasNewline:c(()=>dr,"hasNewline"),hasNewlineInRange:c(()=>iv,"hasNewlineInRange"),hasSpaces:c(()=>lv,"hasSpaces"),isNextLineEmpty:c(()=>E2,"isNextLineEmpty"),isNextLineEmptyAfterIndex:c(()=>Xl,"isNextLineEmptyAfterIndex"),isPreviousLineEmpty:c(()=>w2,"isPreviousLineEmpty"),makeString:c(()=>sv,"makeString"),skip:c(()=>Rn,"skip"),skipEverythingButNewLine:c(()=>_d,"skipEverythingButNewLine"),skipInlineComment:c(()=>Jl,"skipInlineComment"),skipNewline:c(()=>zr,"skipNewline"),skipSpaces:c(()=>hr,"skipSpaces"),skipToLineEnd:c(()=>Fd,"skipToLineEnd"),skipTrailingComment:c(()=>Zl,"skipTrailingComment"),skipWhitespace:c(()=>U2,"skipWhitespace")}),c(u2,"Vo"),Jl=u2,c(c2,"$o"),Zl=c2,c(d2,"Mo"),Vs=d2,c(p2,"Wo"),Xl=p2,c(f2,"Uo"),nv=f2,c(qw,"er"),c(h2,"zo"),av=h2,c(m2,"Go"),ov=m2,c(g2,"Ko"),iv=g2,c(v2,"Ho"),lv=v2,c(y2,"qo"),sv=y2,c(Ww,"Jo"),c(b2,"Xo"),c(Gw,"Zo"),c(w2,"Qo"),c(Kw,"ei"),c(E2,"ti"),c(br,"ae"),Pd=br(Dd),c(Cd,"lu"),c(x2,"ri"),uv=br(pd,0),cv={parse:br(a2),formatAST:br(o2),formatDoc:br(i2),printToDoc:br(l2),printDocToString:br(s2)},C6=Wc});function S6(e){for(var t=[],r=1;r{c(S6,"dedent")}),k6={};Ca(k6,{formatter:()=>A6});var dv,A6,Bk=B(()=>{dv=Ce(Es(),1),Ik(),Rk(),Tk(),A6=(0,dv.default)(2)(async(e,t)=>e===!1?t:e==="dedent"||e===!0?S6(t):(await C6.format(t,{parser:e,plugins:[iw],htmlWhitespaceSensitivity:"ignore"})).trim())}),Nd,Hd,zk=B(()=>{Nd=c(function(e){return e.reduce(function(t,r){var n=r[0],a=r[1];return t[n]=a,t},{})},"fromEntries"),Hd=typeof window<"u"&&window.document&&window.document.createElement?l.useLayoutEffect:l.useEffect}),Le,Qe,et,Oe,Ql,Jn,sn,Zn,F6,lf,jn,_6,jd,sf,pv,fv,hv,mv,gv,vv,yv,bv,wv,I6,it=B(()=>{Le="top",Qe="bottom",et="right",Oe="left",Ql="auto",Jn=[Le,Qe,et,Oe],sn="start",Zn="end",F6="clippingParents",lf="viewport",jn="popper",_6="reference",jd=Jn.reduce(function(e,t){return e.concat([t+"-"+sn,t+"-"+Zn])},[]),sf=[].concat(Jn,[Ql]).reduce(function(e,t){return e.concat([t,t+"-"+sn,t+"-"+Zn])},[]),pv="beforeRead",fv="read",hv="afterRead",mv="beforeMain",gv="main",vv="afterMain",yv="beforeWrite",bv="write",wv="afterWrite",I6=[pv,fv,hv,mv,gv,vv,yv,bv,wv]});function Dt(e){return e?(e.nodeName||"").toLowerCase():null}var En=B(()=>{c(Dt,"getNodeName")});function Ve(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var tr=B(()=>{c(Ve,"getWindow")});function Lr(e){var t=Ve(e).Element;return e instanceof t||e instanceof Element}function Xe(e){var t=Ve(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Us(e){if(typeof ShadowRoot>"u")return!1;var t=Ve(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var lt=B(()=>{tr(),c(Lr,"isElement"),c(Xe,"isHTMLElement"),c(Us,"isShadowRoot")});function Ev(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Xe(o)||!Dt(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function xv(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=i.reduce(function(u,d){return u[d]="",u},{});!Xe(a)||!Dt(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}var R6,Lk=B(()=>{En(),lt(),c(Ev,"applyStyles"),c(xv,"effect"),R6={name:"applyStyles",enabled:!0,phase:"write",fn:Ev,effect:xv,requires:["computeStyles"]}});function bt(e){return e.split("-")[0]}var xn=B(()=>{c(bt,"getBasePlacement")}),_r,Po,hn,Dn=B(()=>{_r=Math.max,Po=Math.min,hn=Math.round});function es(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}var T6=B(()=>{c(es,"getUAString")});function uf(){return!/^((?!chrome|android).)*safari/i.test(es())}var B6=B(()=>{T6(),c(uf,"isLayoutViewport")});function mn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Xe(e)&&(a=e.offsetWidth>0&&hn(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&hn(n.height)/e.offsetHeight||1);var i=Lr(e)?Ve(e):window,s=i.visualViewport,u=!uf()&&r,d=(n.left+(u&&s?s.offsetLeft:0))/a,p=(n.top+(u&&s?s.offsetTop:0))/o,m=n.width/a,f=n.height/o;return{width:m,height:f,top:p,right:d+m,bottom:p+f,left:d,x:d,y:p}}var ci=B(()=>{lt(),Dn(),tr(),B6(),c(mn,"getBoundingClientRect")});function qs(e){var t=mn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var cf=B(()=>{ci(),c(qs,"getLayoutRect")});function df(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Us(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var z6=B(()=>{lt(),c(df,"contains")});function Qt(e){return Ve(e).getComputedStyle(e)}var di=B(()=>{tr(),c(Qt,"getComputedStyle")});function L6(e){return["table","td","th"].indexOf(Dt(e))>=0}var Ok=B(()=>{En(),c(L6,"isTableElement")});function vr(e){return((Lr(e)?e.ownerDocument:e.document)||window.document).documentElement}var $r=B(()=>{lt(),c(vr,"getDocumentElement")});function pi(e){return Dt(e)==="html"?e:e.assignedSlot||e.parentNode||(Us(e)?e.host:null)||vr(e)}var Ws=B(()=>{En(),$r(),lt(),c(pi,"getParentNode")});function Vd(e){return!Xe(e)||Qt(e).position==="fixed"?null:e.offsetParent}function O6(e){var t=/firefox/i.test(es()),r=/Trident/i.test(es());if(r&&Xe(e)){var n=Qt(e);if(n.position==="fixed")return null}var a=pi(e);for(Us(a)&&(a=a.host);Xe(a)&&["html","body"].indexOf(Dt(a))<0;){var o=Qt(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Ia(e){for(var t=Ve(e),r=Vd(e);r&&L6(r)&&Qt(r).position==="static";)r=Vd(r);return r&&(Dt(r)==="html"||Dt(r)==="body"&&Qt(r).position==="static")?t:r||O6(e)||t}var fi=B(()=>{tr(),En(),di(),lt(),Ok(),Ws(),T6(),c(Vd,"getTrueOffsetParent"),c(O6,"getContainingBlock"),c(Ia,"getOffsetParent")});function Gs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var pf=B(()=>{c(Gs,"getMainAxisFromPlacement")});function Xn(e,t,r){return _r(e,Po(t,r))}function M6(e,t,r){var n=Xn(e,t,r);return n>r?r:n}var $6=B(()=>{Dn(),c(Xn,"within"),c(M6,"withinMaxClamp")});function ff(){return{top:0,right:0,bottom:0,left:0}}var P6=B(()=>{c(ff,"getFreshSideObject")});function hf(e){return Object.assign({},ff(),e)}var N6=B(()=>{P6(),c(hf,"mergePaddingObject")});function mf(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var H6=B(()=>{c(mf,"expandToHashMap")});function Dv(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,s=bt(r.placement),u=Gs(s),d=[Oe,et].indexOf(s)>=0,p=d?"height":"width";if(!(!o||!i)){var m=j6(a.padding,r),f=qs(o),h=u==="y"?Le:Oe,g=u==="y"?Qe:et,y=r.rects.reference[p]+r.rects.reference[u]-i[u]-r.rects.popper[p],b=i[u]-r.rects.reference[u],D=Ia(o),w=D?u==="y"?D.clientHeight||0:D.clientWidth||0:0,x=y/2-b/2,E=m[h],C=w-f[p]-m[g],S=w/2-f[p]/2+x,k=Xn(E,S,C),A=u;r.modifiersData[n]=(t={},t[A]=k,t.centerOffset=k-S,t)}}function Cv(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||df(t.elements.popper,a)&&(t.elements.arrow=a))}var j6,V6,Mk=B(()=>{xn(),cf(),z6(),fi(),pf(),$6(),N6(),H6(),it(),j6=c(function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,hf(typeof e!="number"?e:mf(e,Jn))},"toPaddingObject"),c(Dv,"arrow"),c(Cv,"effect"),V6={name:"arrow",enabled:!0,phase:"main",fn:Dv,effect:Cv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}});function gn(e){return e.split("-")[1]}var hi=B(()=>{c(gn,"getVariation")});function U6(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:hn(r*a)/a||0,y:hn(n*a)/a||0}}function Ud(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,m=e.isFixed,f=i.x,h=f===void 0?0:f,g=i.y,y=g===void 0?0:g,b=typeof p=="function"?p({x:h,y}):{x:h,y};h=b.x,y=b.y;var D=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),x=Oe,E=Le,C=window;if(d){var S=Ia(r),k="clientHeight",A="clientWidth";if(S===Ve(r)&&(S=vr(r),Qt(S).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),S=S,a===Le||(a===Oe||a===et)&&o===Zn){E=Qe;var _=m&&S===C&&C.visualViewport?C.visualViewport.height:S[k];y-=_-n.height,y*=u?1:-1}if(a===Oe||(a===Le||a===Qe)&&o===Zn){x=et;var R=m&&S===C&&C.visualViewport?C.visualViewport.width:S[A];h-=R-n.width,h*=u?1:-1}}var T=Object.assign({position:s},d&&q6),L=p===!0?U6({x:h,y},Ve(r)):{x:h,y};if(h=L.x,y=L.y,u){var z;return Object.assign({},T,(z={},z[E]=w?"0":"",z[x]=D?"0":"",z.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",z))}return Object.assign({},T,(t={},t[E]=w?y+"px":"",t[x]=D?h+"px":"",t.transform="",t))}function Sv(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,s=r.roundOffsets,u=s===void 0?!0:s,d={placement:bt(t.placement),variation:gn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ud(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ud(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var q6,W6,$k=B(()=>{it(),fi(),tr(),$r(),di(),xn(),hi(),Dn(),q6={top:"auto",right:"auto",bottom:"auto",left:"auto"},c(U6,"roundOffsetsByDPR"),c(Ud,"mapToStyles"),c(Sv,"computeStyles"),W6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Sv,data:{}}});function kv(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,s=i===void 0?!0:i,u=Ve(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(p){p.addEventListener("scroll",r.update,mo)}),s&&u.addEventListener("resize",r.update,mo),function(){o&&d.forEach(function(p){p.removeEventListener("scroll",r.update,mo)}),s&&u.removeEventListener("resize",r.update,mo)}}var mo,G6,Pk=B(()=>{tr(),mo={passive:!0},c(kv,"effect"),G6={name:"eventListeners",enabled:!0,phase:"write",fn:c(function(){},"fn"),effect:kv,data:{}}});function So(e){return e.replace(/left|right|bottom|top/g,function(t){return K6[t]})}var K6,Nk=B(()=>{K6={left:"right",right:"left",bottom:"top",top:"bottom"},c(So,"getOppositePlacement")});function qd(e){return e.replace(/start|end/g,function(t){return Y6[t]})}var Y6,Hk=B(()=>{Y6={start:"end",end:"start"},c(qd,"getOppositeVariationPlacement")});function Ks(e){var t=Ve(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}var gf=B(()=>{tr(),c(Ks,"getWindowScroll")});function Ys(e){return mn(vr(e)).left+Ks(e).scrollLeft}var vf=B(()=>{ci(),$r(),gf(),c(Ys,"getWindowScrollBarX")});function J6(e,t){var r=Ve(e),n=vr(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,s=0,u=0;if(a){o=a.width,i=a.height;var d=uf();(d||!d&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:o,height:i,x:s+Ys(e),y:u}}var jk=B(()=>{tr(),$r(),vf(),B6(),c(J6,"getViewportRect")});function Z6(e){var t,r=vr(e),n=Ks(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=_r(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=_r(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+Ys(e),u=-n.scrollTop;return Qt(a||r).direction==="rtl"&&(s+=_r(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:u}}var Vk=B(()=>{$r(),di(),vf(),gf(),Dn(),c(Z6,"getDocumentRect")});function Js(e){var t=Qt(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}var yf=B(()=>{di(),c(Js,"isScrollParent")});function bf(e){return["html","body","#document"].indexOf(Dt(e))>=0?e.ownerDocument.body:Xe(e)&&Js(e)?e:bf(pi(e))}var Uk=B(()=>{Ws(),yf(),En(),lt(),c(bf,"getScrollParent")});function Qn(e,t){var r;t===void 0&&(t=[]);var n=bf(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Ve(n),i=a?[o].concat(o.visualViewport||[],Js(n)?n:[]):n,s=t.concat(i);return a?s:s.concat(Qn(pi(i)))}var X6=B(()=>{Uk(),Ws(),tr(),yf(),c(Qn,"listScrollParents")});function ts(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var Q6=B(()=>{c(ts,"rectToClientRect")});function e8(e,t){var r=mn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Wd(e,t,r){return t===lf?ts(J6(e,r)):Lr(t)?e8(t,r):ts(Z6(vr(e)))}function t8(e){var t=Qn(pi(e)),r=["absolute","fixed"].indexOf(Qt(e).position)>=0,n=r&&Xe(e)?Ia(e):e;return Lr(n)?t.filter(function(a){return Lr(a)&&df(a,n)&&Dt(a)!=="body"}):[]}function r8(e,t,r,n){var a=t==="clippingParents"?t8(e):[].concat(t),o=[].concat(a,[r]),i=o[0],s=o.reduce(function(u,d){var p=Wd(e,d,n);return u.top=_r(p.top,u.top),u.right=Po(p.right,u.right),u.bottom=Po(p.bottom,u.bottom),u.left=_r(p.left,u.left),u},Wd(e,i,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var qk=B(()=>{it(),jk(),Vk(),X6(),fi(),$r(),di(),lt(),ci(),Ws(),z6(),En(),Q6(),Dn(),c(e8,"getInnerBoundingClientRect"),c(Wd,"getClientRectFromMixedType"),c(t8,"getClippingParents"),c(r8,"getClippingRect")});function wf(e){var t=e.reference,r=e.element,n=e.placement,a=n?bt(n):null,o=n?gn(n):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case Le:u={x:i,y:t.y-r.height};break;case Qe:u={x:i,y:t.y+t.height};break;case et:u={x:t.x+t.width,y:s};break;case Oe:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var d=a?Gs(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(o){case sn:u[d]=u[d]-(t[p]/2-r[p]/2);break;case Zn:u[d]=u[d]+(t[p]/2-r[p]/2);break}}return u}var n8=B(()=>{xn(),hi(),pf(),it(),c(wf,"computeOffsets")});function ma(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,s=r.boundary,u=s===void 0?F6:s,d=r.rootBoundary,p=d===void 0?lf:d,m=r.elementContext,f=m===void 0?jn:m,h=r.altBoundary,g=h===void 0?!1:h,y=r.padding,b=y===void 0?0:y,D=hf(typeof b!="number"?b:mf(b,Jn)),w=f===jn?_6:jn,x=e.rects.popper,E=e.elements[g?w:f],C=r8(Lr(E)?E:E.contextElement||vr(e.elements.popper),u,p,i),S=mn(e.elements.reference),k=wf({reference:S,element:x,strategy:"absolute",placement:a}),A=ts(Object.assign({},x,k)),_=f===jn?A:S,R={top:C.top-_.top+D.top,bottom:_.bottom-C.bottom+D.bottom,left:C.left-_.left+D.left,right:_.right-C.right+D.right},T=e.modifiersData.offset;if(f===jn&&T){var L=T[a];Object.keys(R).forEach(function(z){var M=[et,Qe].indexOf(z)>=0?1:-1,O=[Le,Qe].indexOf(z)>=0?"y":"x";R[z]+=L[O]*M})}return R}var Zs=B(()=>{qk(),$r(),ci(),n8(),Q6(),it(),lt(),N6(),H6(),c(ma,"detectOverflow")});function a8(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,d=u===void 0?sf:u,p=gn(n),m=p?s?jd:jd.filter(function(g){return gn(g)===p}):Jn,f=m.filter(function(g){return d.indexOf(g)>=0});f.length===0&&(f=m);var h=f.reduce(function(g,y){return g[y]=ma(e,{placement:y,boundary:a,rootBoundary:o,padding:i})[bt(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}var Wk=B(()=>{hi(),it(),Zs(),xn(),c(a8,"computeAutoPlacement")});function o8(e){if(bt(e)===Ql)return[];var t=So(e);return[qd(e),t,qd(t)]}function Av(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!0:i,u=r.fallbackPlacements,d=r.padding,p=r.boundary,m=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,y=r.allowedAutoPlacements,b=t.options.placement,D=bt(b),w=D===b,x=u||(w||!g?[So(b)]:o8(b)),E=[b].concat(x).reduce(function(ne,N){return ne.concat(bt(N)===Ql?a8(t,{placement:N,boundary:p,rootBoundary:m,padding:d,flipVariations:g,allowedAutoPlacements:y}):N)},[]),C=t.rects.reference,S=t.rects.popper,k=new Map,A=!0,_=E[0],R=0;R=0,O=M?"width":"height",$=ma(t,{placement:T,boundary:p,rootBoundary:m,altBoundary:f,padding:d}),j=M?z?et:Oe:z?Qe:Le;C[O]>S[O]&&(j=So(j));var K=So(j),H=[];if(o&&H.push($[L]<=0),s&&H.push($[j]<=0,$[K]<=0),H.every(function(ne){return ne})){_=T,A=!1;break}k.set(T,H)}if(A)for(var Y=g?3:1,re=c(function(ne){var N=E.find(function(J){var Z=k.get(J);if(Z)return Z.slice(0,ne).every(function(pe){return pe})});if(N)return _=N,"break"},"_loop"),le=Y;le>0;le--){var ee=re(le);if(ee==="break")break}t.placement!==_&&(t.modifiersData[n]._skip=!0,t.placement=_,t.reset=!0)}}var i8,Gk=B(()=>{Nk(),xn(),Hk(),Zs(),Wk(),it(),hi(),c(o8,"getExpandedFallbackPlacements"),c(Av,"flip"),i8={name:"flip",enabled:!0,phase:"main",fn:Av,requiresIfExists:["offset"],data:{_skip:!1}}});function Gd(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Kd(e){return[Le,et,Qe,Oe].some(function(t){return e[t]>=0})}function Fv(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=ma(t,{elementContext:"reference"}),s=ma(t,{altBoundary:!0}),u=Gd(i,n),d=Gd(s,a,o),p=Kd(u),m=Kd(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}var l8,Kk=B(()=>{it(),Zs(),c(Gd,"getSideOffsets"),c(Kd,"isAnySideFullyClipped"),c(Fv,"hide"),l8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fv}});function s8(e,t,r){var n=bt(e),a=[Oe,Le].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[Oe,et].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function _v(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=sf.reduce(function(p,m){return p[m]=s8(m,t.rects,o),p},{}),s=i[t.placement],u=s.x,d=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=i}var u8,Yk=B(()=>{xn(),it(),c(s8,"distanceAndSkiddingToXY"),c(_v,"offset"),u8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_v}});function Iv(e){var t=e.state,r=e.name;t.modifiersData[r]=wf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var c8,Jk=B(()=>{n8(),c(Iv,"popperOffsets"),c8={name:"popperOffsets",enabled:!0,phase:"read",fn:Iv,data:{}}});function d8(e){return e==="x"?"y":"x"}var Zk=B(()=>{c(d8,"getAltAxis")});function Rv(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,s=i===void 0?!1:i,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,m=r.padding,f=r.tether,h=f===void 0?!0:f,g=r.tetherOffset,y=g===void 0?0:g,b=ma(t,{boundary:u,rootBoundary:d,padding:m,altBoundary:p}),D=bt(t.placement),w=gn(t.placement),x=!w,E=Gs(D),C=d8(E),S=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,_=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,R=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(S){if(o){var z,M=E==="y"?Le:Oe,O=E==="y"?Qe:et,$=E==="y"?"height":"width",j=S[E],K=j+b[M],H=j-b[O],Y=h?-A[$]/2:0,re=w===sn?k[$]:A[$],le=w===sn?-A[$]:-k[$],ee=t.elements.arrow,ne=h&&ee?qs(ee):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ff(),J=N[M],Z=N[O],pe=Xn(0,k[$],ne[$]),Se=x?k[$]/2-Y-pe-J-R.mainAxis:re-pe-J-R.mainAxis,At=x?-k[$]/2+Y+pe+Z+R.mainAxis:le+pe+Z+R.mainAxis,Ue=t.elements.arrow&&Ia(t.elements.arrow),ut=Ue?E==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,P=(z=T==null?void 0:T[E])!=null?z:0,ct=j+Se-P-ut,Ft=j+At-P,jr=Xn(h?Po(K,ct):K,j,h?_r(H,Ft):H);S[E]=jr,L[E]=jr-j}if(s){var An,_t=E==="x"?Le:Oe,gi=E==="x"?Qe:et,Re=S[C],Vr=C==="y"?"height":"width",It=Re+b[_t],Fn=Re-b[gi],Rt=[Le,Oe].indexOf(D)!==-1,_n=(An=T==null?void 0:T[C])!=null?An:0,Tt=Rt?It:Re-k[Vr]-A[Vr]-_n+R.altAxis,ke=Rt?Re+k[Vr]+A[Vr]-_n-R.altAxis:Fn,dt=h&&Rt?M6(Tt,Re,ke):Xn(h?Tt:It,Re,h?ke:Fn);S[C]=dt,L[C]=dt-Re}t.modifiersData[n]=L}}var p8,Xk=B(()=>{it(),xn(),pf(),Zk(),$6(),cf(),fi(),Zs(),hi(),P6(),Dn(),c(Rv,"preventOverflow"),p8={name:"preventOverflow",enabled:!0,phase:"main",fn:Rv,requiresIfExists:["offset"]}}),f8=B(()=>{});function h8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var Qk=B(()=>{c(h8,"getHTMLElementScroll")});function m8(e){return e===Ve(e)||!Xe(e)?Ks(e):h8(e)}var eA=B(()=>{gf(),tr(),lt(),Qk(),c(m8,"getNodeScroll")});function g8(e){var t=e.getBoundingClientRect(),r=hn(t.width)/e.offsetWidth||1,n=hn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function v8(e,t,r){r===void 0&&(r=!1);var n=Xe(t),a=Xe(t)&&g8(t),o=vr(t),i=mn(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Dt(t)!=="body"||Js(o))&&(s=m8(t)),Xe(t)?(u=mn(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Ys(o))),{x:i.left+s.scrollLeft-u.x,y:i.top+s.scrollTop-u.y,width:i.width,height:i.height}}var tA=B(()=>{ci(),eA(),En(),lt(),vf(),$r(),yf(),Dn(),c(g8,"isElementScaled"),c(v8,"getCompositeRect")});function y8(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(o)}return c(a,"sort"),e.forEach(function(o){r.has(o.name)||a(o)}),n}function b8(e){var t=y8(e);return I6.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}var rA=B(()=>{it(),c(y8,"order"),c(b8,"orderModifiers")});function w8(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var nA=B(()=>{c(w8,"debounce")});function E8(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var aA=B(()=>{c(E8,"mergeByName")});function Yd(){for(var e=arguments.length,t=new Array(e),r=0;r{tA(),cf(),X6(),fi(),rA(),nA(),aA(),lt(),Jd={placement:"bottom",modifiers:[],strategy:"absolute"},c(Yd,"areValidElements"),c(x8,"popperGenerator")}),Tv,D8,iA=B(()=>{oA(),Pk(),Jk(),$k(),Lk(),Yk(),Gk(),Xk(),Mk(),Kk(),f8(),Tv=[G6,c8,W6,R6,u8,i8,p8,V6,l8],D8=x8({defaultModifiers:Tv})}),lA=B(()=>{it(),f8(),iA()}),sA=W((e,t)=>{var r=typeof Element<"u",n=typeof Map=="function",a=typeof Set=="function",o=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,u){if(s===u)return!0;if(s&&u&&typeof s=="object"&&typeof u=="object"){if(s.constructor!==u.constructor)return!1;var d,p,m;if(Array.isArray(s)){if(d=s.length,d!=u.length)return!1;for(p=d;p--!==0;)if(!i(s[p],u[p]))return!1;return!0}var f;if(n&&s instanceof Map&&u instanceof Map){if(s.size!==u.size)return!1;for(f=s.entries();!(p=f.next()).done;)if(!u.has(p.value[0]))return!1;for(f=s.entries();!(p=f.next()).done;)if(!i(p.value[1],u.get(p.value[0])))return!1;return!0}if(a&&s instanceof Set&&u instanceof Set){if(s.size!==u.size)return!1;for(f=s.entries();!(p=f.next()).done;)if(!u.has(p.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(u)){if(d=s.length,d!=u.length)return!1;for(p=d;p--!==0;)if(s[p]!==u[p])return!1;return!0}if(s.constructor===RegExp)return s.source===u.source&&s.flags===u.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof u.valueOf=="function")return s.valueOf()===u.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof u.toString=="function")return s.toString()===u.toString();if(m=Object.keys(s),d=m.length,d!==Object.keys(u).length)return!1;for(p=d;p--!==0;)if(!Object.prototype.hasOwnProperty.call(u,m[p]))return!1;if(r&&s instanceof Element)return!1;for(p=d;p--!==0;)if(!((m[p]==="_owner"||m[p]==="__v"||m[p]==="__o")&&s.$$typeof)&&!i(s[m[p]],u[m[p]]))return!1;return!0}return s!==s&&u!==u}c(i,"equal"),t.exports=c(function(s,u){try{return i(s,u)}catch(d){if((d.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw d}},"isEqual")}),Bv,zv,C8,uA=B(()=>{lA(),Bv=Ce(sA()),zk(),zv=[],C8=c(function(e,t,r){r===void 0&&(r={});var n=l.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||zv},o=l.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=o[0],s=o[1],u=l.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:c(function(m){var f=m.state,h=Object.keys(f.elements);F1.flushSync(function(){s({styles:Nd(h.map(function(g){return[g,f.styles[g]||{}]})),attributes:Nd(h.map(function(g){return[g,f.attributes[g]]}))})})},"fn"),requires:["computeStyles"]}},[]),d=l.useMemo(function(){var m={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return(0,Bv.default)(n.current,m)?n.current||m:(n.current=m,m)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),p=l.useRef();return Hd(function(){p.current&&p.current.setOptions(d)},[d]),Hd(function(){if(!(e==null||t==null)){var m=r.createPopper||D8,f=m(e,t,d);return p.current=f,function(){f.destroy(),p.current=null}}},[e,t,r.createPopper]),{state:p.current?p.current.state:null,styles:i.styles,attributes:i.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},"usePopper")}),cA=B(()=>{uA()});function Ef(e){var t=l.useRef(e);return t.current=e,l.useCallback(function(){return t.current},[])}function S8(e){var t=e.initial,r=e.value,n=e.onChange,a=n===void 0?A8:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var o=l.useState(t),i=o[0],s=o[1],u=Ef(i),d=l.useCallback(function(m){var f=u(),h=typeof m=="function"?m(f):m;typeof h.persist=="function"&&h.persist(),s(h),typeof a=="function"&&a(h)},[u,a]),p=r!==void 0;return[p?r:i,p?a:d]}function Zd(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:c(function(){return null},"toJSON")}}}function k8(e,t){var r,n,a;e===void 0&&(e={}),t===void 0&&(t={});var o=Object.keys(Qd).reduce(function(O,$){var j;return q({},O,(j={},j[$]=O[$]!==void 0?O[$]:Qd[$],j))},e),i=l.useMemo(function(){return[{name:"offset",options:{offset:o.offset}}]},Array.isArray(o.offset)?o.offset:[]),s=q({},t,{placement:t.placement||o.placement,modifiers:t.modifiers||i}),u=l.useState(null),d=u[0],p=u[1],m=l.useState(null),f=m[0],h=m[1],g=S8({initial:o.defaultVisible,value:o.visible,onChange:o.onVisibleChange}),y=g[0],b=g[1],D=l.useRef();l.useEffect(function(){return function(){return clearTimeout(D.current)}},[]);var w=C8(o.followCursor?Xd:d,f,s),x=w.styles,E=w.attributes,C=xs(w,F8),S=C.update,k=Ef({visible:y,triggerRef:d,tooltipRef:f,finalConfig:o}),A=l.useCallback(function(O){return Array.isArray(o.trigger)?o.trigger.includes(O):o.trigger===O},Array.isArray(o.trigger)?o.trigger:[o.trigger]),_=l.useCallback(function(){clearTimeout(D.current),D.current=window.setTimeout(function(){return b(!1)},o.delayHide)},[o.delayHide,b]),R=l.useCallback(function(){clearTimeout(D.current),D.current=window.setTimeout(function(){return b(!0)},o.delayShow)},[o.delayShow,b]),T=l.useCallback(function(){k().visible?_():R()},[k,_,R]);l.useEffect(function(){if(k().finalConfig.closeOnOutsideClick){var O=c(function($){var j,K=k(),H=K.tooltipRef,Y=K.triggerRef,re=($.composedPath==null||(j=$.composedPath())==null?void 0:j[0])||$.target;re instanceof Node&&H!=null&&Y!=null&&!H.contains(re)&&!Y.contains(re)&&_()},"handleClickOutside");return document.addEventListener("mousedown",O),function(){return document.removeEventListener("mousedown",O)}}},[k,_]),l.useEffect(function(){if(!(d==null||!A("click")))return d.addEventListener("click",T),function(){return d.removeEventListener("click",T)}},[d,A,T]),l.useEffect(function(){if(!(d==null||!A("double-click")))return d.addEventListener("dblclick",T),function(){return d.removeEventListener("dblclick",T)}},[d,A,T]),l.useEffect(function(){if(!(d==null||!A("right-click"))){var O=c(function($){$.preventDefault(),T()},"preventDefaultAndToggle");return d.addEventListener("contextmenu",O),function(){return d.removeEventListener("contextmenu",O)}}},[d,A,T]),l.useEffect(function(){if(!(d==null||!A("focus")))return d.addEventListener("focus",R),d.addEventListener("blur",_),function(){d.removeEventListener("focus",R),d.removeEventListener("blur",_)}},[d,A,R,_]),l.useEffect(function(){if(!(d==null||!A("hover")))return d.addEventListener("mouseenter",R),d.addEventListener("mouseleave",_),function(){d.removeEventListener("mouseenter",R),d.removeEventListener("mouseleave",_)}},[d,A,R,_]),l.useEffect(function(){if(!(f==null||!A("hover")||!k().finalConfig.interactive))return f.addEventListener("mouseenter",R),f.addEventListener("mouseleave",_),function(){f.removeEventListener("mouseenter",R),f.removeEventListener("mouseleave",_)}},[f,A,R,_,k]);var L=C==null||(r=C.state)==null||(n=r.modifiersData)==null||(a=n.hide)==null?void 0:a.isReferenceHidden;l.useEffect(function(){o.closeOnTriggerHidden&&L&&_()},[o.closeOnTriggerHidden,_,L]),l.useEffect(function(){if(!o.followCursor||d==null)return;function O($){var j=$.clientX,K=$.clientY;Xd.getBoundingClientRect=Zd(j,K),S==null||S()}return c(O,"setMousePosition"),d.addEventListener("mousemove",O),function(){return d.removeEventListener("mousemove",O)}},[o.followCursor,d,S]),l.useEffect(function(){if(!(f==null||S==null||o.mutationObserverOptions==null)){var O=new MutationObserver(S);return O.observe(f,o.mutationObserverOptions),function(){return O.disconnect()}}},[o.mutationObserverOptions,f,S]);var z=c(function(O){return O===void 0&&(O={}),q({},O,{style:q({},O.style,x.popper)},E.popper,{"data-popper-interactive":o.interactive})},"getTooltipProps"),M=c(function(O){return O===void 0&&(O={}),q({},O,E.arrow,{style:q({},O.style,x.arrow),"data-popper-arrow":!0})},"getArrowProps");return q({getArrowProps:M,getTooltipProps:z,setTooltipRef:h,setTriggerRef:p,tooltipRef:f,triggerRef:d,visible:y},C)}var A8,F8,Xd,Qd,dA=B(()=>{J1(),St(),cA(),c(Ef,"useGetLatest"),A8=c(function(){},"noop"),c(S8,"useControlledState"),c(Zd,"generateBoundingClientRect"),F8=["styles","attributes"],Xd={getBoundingClientRect:Zd()},Qd={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"},c(k8,"usePopperTooltip")}),Lv,Ge,ir,Ov,Mv,e1,pA=B(()=>{Lv=Ce(Es(),1),Ge=(0,Lv.default)(1e3)((e,t,r,n=0)=>t.split("-")[0]===e?r:n),ir=8,Ov=F.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${Ge("top",r,`${ir*-1}px`,"auto")}`,top:`${Ge("bottom",r,`${ir*-1}px`,"auto")}`,right:`${Ge("left",r,`${ir*-1}px`,"auto")}`,left:`${Ge("right",r,`${ir*-1}px`,"auto")}`,borderBottomWidth:`${Ge("top",r,"0",ir)}px`,borderTopWidth:`${Ge("bottom",r,"0",ir)}px`,borderRightWidth:`${Ge("left",r,"0",ir)}px`,borderLeftWidth:`${Ge("right",r,"0",ir)}px`,borderTopColor:Ge("top",r,e.color[t]||t||e.base==="light"?Pa(e.background.app):e.background.app,"transparent"),borderBottomColor:Ge("bottom",r,e.color[t]||t||e.base==="light"?Pa(e.background.app):e.background.app,"transparent"),borderLeftColor:Ge("left",r,e.color[t]||t||e.base==="light"?Pa(e.background.app):e.background.app,"transparent"),borderRightColor:Ge("right",r,e.color[t]||t||e.base==="light"?Pa(e.background.app):e.background.app,"transparent")})),Mv=F.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647}),({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||e.base==="light"?Pa(e.background.app):e.background.app,filter:` + drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) + drop-shadow(0 1px 3px rgba(0,0,0,0.1)) + `,borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{}),e1=v.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:a,color:o,withArrows:i,...s},u)=>v.createElement(Mv,{"data-testid":"tooltip",hasChrome:t,ref:u,...s,color:o},t&&i&&v.createElement(Ov,{placement:e,...n,color:o}),r)),e1.displayName="Tooltip"}),xf={};Ca(xf,{WithToolTipState:()=>rs,WithTooltip:()=>rs,WithTooltipPure:()=>t1});var eo,$v,Pv,t1,rs,Df=B(()=>{Y1(),dA(),pA(),{document:eo}=ws,$v=F.div` + display: inline-block; + cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"}; +`,Pv=F.g` + cursor: ${e=>e.trigger==="hover"||e.trigger.includes("hover")?"default":"pointer"}; +`,t1=c(({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:a=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:o=!0,defaultVisible:i=!1,withArrows:s,offset:u,tooltip:d,children:p,closeOnTriggerHidden:m,mutationObserverOptions:f,delayHide:h,visible:g,interactive:y,delayShow:b,strategy:D,followCursor:w,onVisibleChange:x,...E})=>{let C=e?Pv:$v,{getArrowProps:S,getTooltipProps:k,setTooltipRef:A,setTriggerRef:_,visible:R,state:T}=k8({trigger:t,placement:n,defaultVisible:i,delayHide:h,interactive:y,closeOnOutsideClick:r,closeOnTriggerHidden:m,onVisibleChange:x,delayShow:b,followCursor:w,mutationObserverOptions:f,visible:g,offset:u},{modifiers:a,strategy:D}),L=v.createElement(e1,{placement:T==null?void 0:T.placement,ref:A,hasChrome:o,arrowProps:S(),withArrows:s,...k()},typeof d=="function"?d({onHide:c(()=>x(!1),"onHide")}):d);return v.createElement(v.Fragment,null,v.createElement(C,{trigger:t,ref:_,...E},p),R&&j4.createPortal(L,eo.body))},"WithTooltipPure"),rs=c(({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,a]=l.useState(e),o=l.useCallback(i=>{t&&t(i)===!1||a(i)},[t]);return l.useEffect(()=>{let i=c(()=>o(!1),"hide");eo.addEventListener("keydown",i,!1);let s=Array.from(eo.getElementsByTagName("iframe")),u=[];return s.forEach(d=>{let p=c(()=>{try{d.contentWindow.document&&(d.contentWindow.document.addEventListener("click",i),u.push(()=>{try{d.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}},"bind");p(),d.addEventListener("load",p),u.push(()=>{d.removeEventListener("load",p)})}),()=>{eo.removeEventListener("keydown",i),u.forEach(d=>{d()})}}),v.createElement(t1,{...r,visible:n,onVisibleChange:o})},"WithToolTipState")}),se=c(({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},"nameSpaceClassNames");St();wS();K1();function _8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ua(e,t)}c(_8,"_inheritsLoose");ES();K1();function I8(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}c(I8,"_isNativeFunction");function Cf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cf=c(function(){return!!e},"_isNativeReflectConstruct"))()}c(Cf,"_isNativeReflectConstruct");K1();function R8(e,t,r){if(Cf())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ua(a,r.prototype),a}c(R8,"_construct");function ns(e){var t=typeof Map=="function"?new Map:void 0;return ns=c(function(r){if(r===null||!I8(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return R8(r,arguments,kl(this).constructor)}return c(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ua(n,r)},"_wrapNativeSuper"),ns(e)}c(ns,"_wrapNativeSuper");var fA={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). + +`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). + +`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. + +`,4:`Couldn't generate valid rgb string from %s, it returned %s. + +`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. + +`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). + +`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). + +`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. + +`,9:`Please provide a number of steps to the modularScale helper. + +`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" + +`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. + +`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. + +`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. + +`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. + +`,16:`You must provide a template to this method. + +`,17:`You passed an unsupported selector state to this method. + +`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,19:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. + +`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,25:`fontFace expects localFonts to be an array. + +`,26:`fontFace expects fileFormats to be an array. + +`,27:`radialGradient requries at least 2 color-stops to properly render. + +`,28:`Please supply a filename to retinaImage() as the first argument. + +`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation + +`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') + +`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation + +`,34:`borderRadius expects a radius value as a string or number as the second argument. + +`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,36:`Property must be a string value. + +`,37:`Syntax Error at %s. + +`,38:`Formula contains a function that needs parentheses at %s. + +`,39:`Formula is missing closing parenthesis at %s. + +`,40:`Formula has too many closing parentheses at %s. + +`,41:`All values in a formula must have the same unit or be unitless. + +`,42:`Please provide a number of steps to the modularScale helper. + +`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. + +`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. + +`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. + +`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. + +`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. + +`,48:`fromSize and toSize must be provided as stringified numbers with the same units. + +`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. + +`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. + +`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. + +`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. + +`,53:`fontFace expects localFonts to be an array. + +`,54:`fontFace expects fileFormats to be an array. + +`,55:`fontFace expects a name of a font-family. + +`,56:`linearGradient requries at least 2 color-stops to properly render. + +`,57:`radialGradient requries at least 2 color-stops to properly render. + +`,58:`Please supply a filename to retinaImage() as the first argument. + +`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. + +`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. + +`,62:`borderRadius expects a radius value as a string or number as the second argument. + +`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. + +`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. + +`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). + +`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. + +`,67:`You must provide a template to this method. + +`,68:`You passed an unsupported selector state to this method. + +`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. + +`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. + +`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. + +`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. + +`,73:`Please provide a valid CSS variable. + +`,74:`CSS variable not found and no default was provided. + +`,75:`important requires a valid style object, got a %s instead. + +`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. + +`,77:`remToPx expects a value in "rem" but you provided it in "%s". + +`,78:`base must be set in "px" or "%" but you set it in "%s". +`};function T8(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(s=o,u=i):a>=1&&a<2?(s=i,u=o):a>=2&&a<3?(u=o,d=i):a>=3&&a<4?(u=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,f=u+p,h=d+p;return n(m,f,h)}c(ga,"hslToRgb");var Nv={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function z8(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Nv[t]?"#"+Nv[t]:e}c(z8,"nameToHex");var hA=/^#[a-fA-F0-9]{6}$/,mA=/^#[a-fA-F0-9]{8}$/,gA=/^#[a-fA-F0-9]{3}$/,vA=/^#[a-fA-F0-9]{4}$/,g0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,yA=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,bA=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,wA=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Xs(e){if(typeof e!="string")throw new Vt(3);var t=z8(e);if(t.match(hA))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(mA)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(gA))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(vA)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=g0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=yA.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=bA.exec(t);if(i){var s=parseInt(""+i[1],10),u=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+ga(s,u,d)+")",m=g0.exec(p);if(!m)throw new Vt(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=wA.exec(t.substring(0,50));if(f){var h=parseInt(""+f[1],10),g=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,b="rgb("+ga(h,g,y)+")",D=g0.exec(b);if(!D)throw new Vt(4,t,b);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Vt(5)}c(Xs,"parseToRgb");function L8(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,u=a-o,d=i>.5?u/(2-a-o):u/(a+o);switch(a){case t:s=(r-n)/u+(r=1?No(e,t,r):"rgba("+ga(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?No(e.hue,e.saturation,e.lightness):"rgba("+ga(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Vt(2)}c($8,"hsla");function as(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return r1("#"+kr(e)+kr(t)+kr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return r1("#"+kr(e.red)+kr(e.green)+kr(e.blue));throw new Vt(6)}c(as,"rgb");function Ho(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Xs(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?as(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?as(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Vt(7)}c(Ho,"rgba");var xA=c(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),DA=c(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),CA=c(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),SA=c(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function kf(e){if(typeof e!="object")throw new Vt(8);if(DA(e))return Ho(e);if(xA(e))return as(e);if(SA(e))return $8(e);if(CA(e))return M8(e);throw new Vt(8)}c(kf,"toColorString");function Af(e,t,r){return c(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Af(e,t,n)},"fn")}c(Af,"curried");function Qs(e){return Af(e,e.length,[])}c(Qs,"curry");function eu(e,t,r){return Math.max(e,Math.min(t,r))}c(eu,"guard");function P8(e,t){if(t==="transparent")return t;var r=Sf(t);return kf(q({},r,{lightness:eu(0,1,r.lightness-parseFloat(e))}))}c(P8,"darken");var kA=Qs(P8),Vn=kA;function N8(e,t){if(t==="transparent")return t;var r=Sf(t);return kf(q({},r,{lightness:eu(0,1,r.lightness+parseFloat(e))}))}c(N8,"lighten");var AA=Qs(N8),Hv=AA;function H8(e,t){if(t==="transparent")return t;var r=Xs(t),n=typeof r.alpha=="number"?r.alpha:1,a=q({},r,{alpha:eu(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Ho(a)}c(H8,"transparentize");var FA=Qs(H8),nt=FA,Ra=c(({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),"headerCommon"),Pr=c(({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?nt(.1,e.color.defaultText):nt(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),"codeCommon"),ue=c(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),"withReset"),Cn={margin:"16px 0"},_A=c(({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return v.createElement("a",{href:r,target:n,...t})},"Link"),IA=F(_A)(ue,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),RA=F.blockquote(ue,Cn,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}));Cs();var TA=c(e=>typeof e=="string","isReactChildString"),BA=/[\n\r]/g,zA=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),Pr),LA=F(Eo)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),j8=c(({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=l.Children.toArray(t);return a.filter(TA).some(o=>o.match(BA))?v.createElement(LA,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):v.createElement(zA,{...r,className:e},a)},"Code"),OA=F.div(ue),MA=F.dl(ue,Cn,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),$A=F.h1(ue,Ra,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),V8=F.h2(ue,Ra,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),U8=F.h3(ue,Ra,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),PA=F.h4(ue,Ra,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),NA=F.h5(ue,Ra,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),HA=F.h6(ue,Ra,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),jA=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),VA=F.img({maxWidth:"100%"}),UA=F.li(ue,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":Pr({theme:e})})),qA={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},WA=F.ol(ue,Cn,qA,{listStyle:"decimal"}),GA=F.p(ue,Cn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":Pr({theme:e})})),KA=F.pre(ue,Cn,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),YA=F.span(ue,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),JA=F.table(ue,Cn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),ZA=F.title(Pr),XA={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},QA=F.ul(ue,Cn,XA,{listStyle:"disc"}),q8=F.div(ue),W8={h1:c(e=>v.createElement($A,{...se(e,"h1")}),"h1"),h2:c(e=>v.createElement(V8,{...se(e,"h2")}),"h2"),h3:c(e=>v.createElement(U8,{...se(e,"h3")}),"h3"),h4:c(e=>v.createElement(PA,{...se(e,"h4")}),"h4"),h5:c(e=>v.createElement(NA,{...se(e,"h5")}),"h5"),h6:c(e=>v.createElement(HA,{...se(e,"h6")}),"h6"),pre:c(e=>v.createElement(KA,{...se(e,"pre")}),"pre"),a:c(e=>v.createElement(IA,{...se(e,"a")}),"a"),hr:c(e=>v.createElement(jA,{...se(e,"hr")}),"hr"),dl:c(e=>v.createElement(MA,{...se(e,"dl")}),"dl"),blockquote:c(e=>v.createElement(RA,{...se(e,"blockquote")}),"blockquote"),table:c(e=>v.createElement(JA,{...se(e,"table")}),"table"),img:c(e=>v.createElement(VA,{...se(e,"img")}),"img"),div:c(e=>v.createElement(OA,{...se(e,"div")}),"div"),span:c(e=>v.createElement(YA,{...se(e,"span")}),"span"),li:c(e=>v.createElement(UA,{...se(e,"li")}),"li"),ul:c(e=>v.createElement(QA,{...se(e,"ul")}),"ul"),ol:c(e=>v.createElement(WA,{...se(e,"ol")}),"ol"),p:c(e=>v.createElement(GA,{...se(e,"p")}),"p"),code:c(e=>v.createElement(j8,{...se(e,"code")}),"code"),tt:c(e=>v.createElement(ZA,{...se(e,"tt")}),"tt"),resetwrapper:c(e=>v.createElement(q8,{...se(e,"resetwrapper")}),"resetwrapper")},eF=F.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${nt(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${nt(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${nt(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${nt(.9,e.color.positiveText)}`:"none"};default:return{}}}),CG=c(({...e})=>v.createElement(eF,{...e}),"Badge"),G8={};Ca(G8,{AccessibilityAltIcon:()=>uT,AccessibilityIcon:()=>sT,AddIcon:()=>pI,AdminIcon:()=>XR,AlertAltIcon:()=>PI,AlertIcon:()=>$I,AlignLeftIcon:()=>UF,AlignRightIcon:()=>qF,AppleIcon:()=>c_,ArrowDownIcon:()=>DR,ArrowLeftIcon:()=>CR,ArrowRightIcon:()=>SR,ArrowSolidDownIcon:()=>AR,ArrowSolidLeftIcon:()=>FR,ArrowSolidRightIcon:()=>_R,ArrowSolidUpIcon:()=>kR,ArrowUpIcon:()=>xR,AzureDevOpsIcon:()=>g_,BackIcon:()=>HR,BasketIcon:()=>sR,BatchAcceptIcon:()=>oI,BatchDenyIcon:()=>aI,BeakerIcon:()=>uR,BellIcon:()=>UI,BitbucketIcon:()=>v_,BoldIcon:()=>XF,BookIcon:()=>LF,BookmarkHollowIcon:()=>ZI,BookmarkIcon:()=>XI,BottomBarIcon:()=>j_,BottomBarToggleIcon:()=>V_,BoxIcon:()=>K_,BranchIcon:()=>l_,BrowserIcon:()=>z_,ButtonIcon:()=>II,CPUIcon:()=>U_,CalendarIcon:()=>jF,CameraIcon:()=>xF,CategoryIcon:()=>$F,CertificateIcon:()=>aR,ChangedIcon:()=>vI,ChatIcon:()=>CI,CheckIcon:()=>rI,ChevronDownIcon:()=>gR,ChevronLeftIcon:()=>vR,ChevronRightIcon:()=>J8,ChevronSmallDownIcon:()=>bR,ChevronSmallLeftIcon:()=>wR,ChevronSmallRightIcon:()=>ER,ChevronSmallUpIcon:()=>yR,ChevronUpIcon:()=>mR,ChromaticIcon:()=>y_,ChromeIcon:()=>h_,CircleHollowIcon:()=>YI,CircleIcon:()=>JI,ClearIcon:()=>bI,CloseAltIcon:()=>sI,CloseIcon:()=>hI,CloudHollowIcon:()=>pR,CloudIcon:()=>fR,CogIcon:()=>Z_,CollapseIcon:()=>RR,CommandIcon:()=>zI,CommentAddIcon:()=>EI,CommentIcon:()=>wI,CommentsIcon:()=>DI,CommitIcon:()=>i_,CompassIcon:()=>qR,ComponentDrivenIcon:()=>b_,ComponentIcon:()=>nF,ContrastIcon:()=>mF,ControlsIcon:()=>iI,CopyIcon:()=>MF,CreditIcon:()=>_I,CrossIcon:()=>Y8,DashboardIcon:()=>YR,DatabaseIcon:()=>q_,DeleteIcon:()=>mI,DiamondIcon:()=>QI,DirectionIcon:()=>QR,DiscordIcon:()=>w_,DocChartIcon:()=>GF,DocListIcon:()=>KF,DocumentIcon:()=>OF,DownloadIcon:()=>NR,DragIcon:()=>YF,EditIcon:()=>J_,EllipsisIcon:()=>eI,EmailIcon:()=>NI,ExpandAltIcon:()=>IR,ExpandIcon:()=>TR,EyeCloseIcon:()=>fF,EyeIcon:()=>pF,FaceHappyIcon:()=>oT,FaceNeutralIcon:()=>iT,FaceSadIcon:()=>lT,FacebookIcon:()=>E_,FailedIcon:()=>yI,FastForwardIcon:()=>_F,FigmaIcon:()=>x_,FilterIcon:()=>WF,FlagIcon:()=>dR,FolderIcon:()=>PF,FormIcon:()=>nI,GDriveIcon:()=>D_,GithubIcon:()=>C_,GitlabIcon:()=>S_,GlobeIcon:()=>UR,GoogleIcon:()=>k_,GraphBarIcon:()=>VF,GraphLineIcon:()=>HF,GraphqlIcon:()=>A_,GridAltIcon:()=>lF,GridIcon:()=>aF,GrowIcon:()=>yF,HeartHollowIcon:()=>eR,HeartIcon:()=>tR,HomeIcon:()=>ZR,HourglassIcon:()=>cR,InfoIcon:()=>LI,ItalicIcon:()=>QF,JumpToIcon:()=>KI,KeyIcon:()=>AI,LightningIcon:()=>hF,LightningOffIcon:()=>K8,LinkBrokenIcon:()=>VI,LinkIcon:()=>jI,LinkedinIcon:()=>B_,LinuxIcon:()=>d_,ListOrderedIcon:()=>t_,ListUnorderedIcon:()=>r_,LocationIcon:()=>WR,LockIcon:()=>SI,MarkdownIcon:()=>a_,MarkupIcon:()=>ZF,MediumIcon:()=>F_,MemoryIcon:()=>W_,MenuIcon:()=>JF,MergeIcon:()=>u_,MirrorIcon:()=>vF,MobileIcon:()=>O_,MoonIcon:()=>zF,NutIcon:()=>X_,OutboxIcon:()=>FI,OutlineIcon:()=>oF,PaintBrushIcon:()=>bF,PaperClipIcon:()=>e_,ParagraphIcon:()=>n_,PassedIcon:()=>gI,PhoneIcon:()=>HI,PhotoDragIcon:()=>iF,PhotoIcon:()=>rF,PinAltIcon:()=>cI,PinIcon:()=>GR,PlayBackIcon:()=>kF,PlayIcon:()=>SF,PlayNextIcon:()=>AF,PlusIcon:()=>lI,PointerDefaultIcon:()=>TI,PointerHandIcon:()=>BI,PowerIcon:()=>Y_,PrintIcon:()=>NF,ProceedIcon:()=>jR,ProfileIcon:()=>aT,PullRequestIcon:()=>s_,QuestionIcon:()=>OI,RSSIcon:()=>qI,RedirectIcon:()=>LR,ReduxIcon:()=>__,RefreshIcon:()=>VR,ReplyIcon:()=>MR,RepoIcon:()=>o_,RequestChangeIcon:()=>xI,RewindIcon:()=>FF,RulerIcon:()=>wF,SearchIcon:()=>sF,ShareAltIcon:()=>WI,ShareIcon:()=>GI,ShieldIcon:()=>lR,SideBySideIcon:()=>RF,SidebarAltIcon:()=>P_,SidebarAltToggleIcon:()=>N_,SidebarIcon:()=>$_,SidebarToggleIcon:()=>H_,SpeakerIcon:()=>CF,StackedIcon:()=>TF,StarHollowIcon:()=>rR,StarIcon:()=>nR,StickerIcon:()=>hR,StopAltIcon:()=>IF,StopIcon:()=>EF,StorybookIcon:()=>m_,StructureIcon:()=>G_,SubtractIcon:()=>fI,SunIcon:()=>BF,SupportIcon:()=>MI,SwitchAltIcon:()=>gF,SyncIcon:()=>$R,TabletIcon:()=>L_,ThumbsUpIcon:()=>iR,TimeIcon:()=>KR,TimerIcon:()=>JR,TransferIcon:()=>zR,TrashIcon:()=>uI,TwitterIcon:()=>I_,TypeIcon:()=>RI,UbuntuIcon:()=>p_,UndoIcon:()=>OR,UnfoldIcon:()=>BR,UnlockIcon:()=>kI,UnpinIcon:()=>dI,UploadIcon:()=>PR,UserAddIcon:()=>rT,UserAltIcon:()=>tT,UserIcon:()=>eT,UsersIcon:()=>nT,VSCodeIcon:()=>T_,VerifiedIcon:()=>oR,VideoIcon:()=>DF,WandIcon:()=>tI,WatchIcon:()=>M_,WindowsIcon:()=>f_,WrenchIcon:()=>Q_,YoutubeIcon:()=>R_,ZoomIcon:()=>uF,ZoomOutIcon:()=>cF,ZoomResetIcon:()=>dF,iconList:()=>tF});var tF=[{name:"Images",icons:["PhotoIcon","ComponentIcon","GridIcon","OutlineIcon","PhotoDragIcon","GridAltIcon","SearchIcon","ZoomIcon","ZoomOutIcon","ZoomResetIcon","EyeIcon","EyeCloseIcon","LightningIcon","LightningOffIcon","ContrastIcon","SwitchAltIcon","MirrorIcon","GrowIcon","PaintBrushIcon","RulerIcon","StopIcon","CameraIcon","VideoIcon","SpeakerIcon","PlayIcon","PlayBackIcon","PlayNextIcon","RewindIcon","FastForwardIcon","StopAltIcon","SideBySideIcon","StackedIcon","SunIcon","MoonIcon"]},{name:"Documents",icons:["BookIcon","DocumentIcon","CopyIcon","CategoryIcon","FolderIcon","PrintIcon","GraphLineIcon","CalendarIcon","GraphBarIcon","AlignLeftIcon","AlignRightIcon","FilterIcon","DocChartIcon","DocListIcon","DragIcon","MenuIcon"]},{name:"Editing",icons:["MarkupIcon","BoldIcon","ItalicIcon","PaperClipIcon","ListOrderedIcon","ListUnorderedIcon","ParagraphIcon","MarkdownIcon"]},{name:"Git",icons:["RepoIcon","CommitIcon","BranchIcon","PullRequestIcon","MergeIcon"]},{name:"OS",icons:["AppleIcon","LinuxIcon","UbuntuIcon","WindowsIcon","ChromeIcon"]},{name:"Logos",icons:["StorybookIcon","AzureDevOpsIcon","BitbucketIcon","ChromaticIcon","ComponentDrivenIcon","DiscordIcon","FacebookIcon","FigmaIcon","GDriveIcon","GithubIcon","GitlabIcon","GoogleIcon","GraphqlIcon","MediumIcon","ReduxIcon","TwitterIcon","YoutubeIcon","VSCodeIcon","LinkedinIcon"]},{name:"Devices",icons:["BrowserIcon","TabletIcon","MobileIcon","WatchIcon","SidebarIcon","SidebarAltIcon","SidebarAltToggleIcon","SidebarToggleIcon","BottomBarIcon","BottomBarToggleIcon","CPUIcon","DatabaseIcon","MemoryIcon","StructureIcon","BoxIcon","PowerIcon"]},{name:"CRUD",icons:["EditIcon","CogIcon","NutIcon","WrenchIcon","EllipsisIcon","WandIcon","CheckIcon","FormIcon","BatchDenyIcon","BatchAcceptIcon","ControlsIcon","PlusIcon","CloseAltIcon","CrossIcon","TrashIcon","PinAltIcon","UnpinIcon","AddIcon","SubtractIcon","CloseIcon","DeleteIcon","PassedIcon","ChangedIcon","FailedIcon","ClearIcon","CommentIcon","CommentAddIcon","RequestChangeIcon","CommentsIcon","ChatIcon","LockIcon","UnlockIcon","KeyIcon","OutboxIcon","CreditIcon","ButtonIcon","TypeIcon","PointerDefaultIcon","PointerHandIcon","CommandIcon"]},{name:"Communicate",icons:["InfoIcon","QuestionIcon","SupportIcon","AlertIcon","AlertAltIcon","EmailIcon","PhoneIcon","LinkIcon","LinkBrokenIcon","BellIcon","RSSIcon","ShareAltIcon","ShareIcon","JumpToIcon","CircleHollowIcon","CircleIcon","BookmarkHollowIcon","BookmarkIcon","DiamondIcon","HeartHollowIcon","HeartIcon","StarHollowIcon","StarIcon","CertificateIcon","VerifiedIcon","ThumbsUpIcon","ShieldIcon","BasketIcon","BeakerIcon","HourglassIcon","FlagIcon","CloudHollowIcon","CloudIcon","StickerIcon"]},{name:"Wayfinding",icons:["ChevronUpIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronSmallUpIcon","ChevronSmallDownIcon","ChevronSmallLeftIcon","ChevronSmallRightIcon","ArrowUpIcon","ArrowDownIcon","ArrowLeftIcon","ArrowRightIcon","ArrowSolidUpIcon","ArrowSolidDownIcon","ArrowSolidLeftIcon","ArrowSolidRightIcon","ExpandAltIcon","CollapseIcon","ExpandIcon","UnfoldIcon","TransferIcon","RedirectIcon","UndoIcon","ReplyIcon","SyncIcon","UploadIcon","DownloadIcon","BackIcon","ProceedIcon","RefreshIcon","GlobeIcon","CompassIcon","LocationIcon","PinIcon","TimeIcon","DashboardIcon","TimerIcon","HomeIcon","AdminIcon","DirectionIcon"]},{name:"People",icons:["UserIcon","UserAltIcon","UserAddIcon","UsersIcon","ProfileIcon","FaceHappyIcon","FaceNeutralIcon","FaceSadIcon","AccessibilityIcon","AccessibilityAltIcon"]}],rF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 4.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 1.504v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5zM2 9.297V2.004h10v5.293L9.854 5.15a.5.5 0 00-.708 0L6.5 7.797 5.354 6.65a.5.5 0 00-.708 0L2 9.297zM9.5 6.21l2.5 2.5v3.293H2V10.71l3-3 3.146 3.146a.5.5 0 00.708-.707L7.207 8.504 9.5 6.21z",fill:e}))),nF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1.004a2.5 2.5 0 00-2.5 2.5v7a2.5 2.5 0 002.5 2.5h7a2.5 2.5 0 002.5-2.5v-7a2.5 2.5 0 00-2.5-2.5h-7zm8.5 5.5H7.5v-4.5h3a1.5 1.5 0 011.5 1.5v3zm0 1v3a1.5 1.5 0 01-1.5 1.5h-3v-4.5H12zm-5.5 4.5v-4.5H2v3a1.5 1.5 0 001.5 1.5h3zM2 6.504h4.5v-4.5h-3a1.5 1.5 0 00-1.5 1.5v3z",fill:e}))),aF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5H6a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H1.5a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5h3.5v3.5H2zM7.5 1.504a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5zM1.5 7.504a.5.5 0 00-.5.5v4.5a.5.5 0 00.5.5H6a.5.5 0 00.5-.5v-4.5a.5.5 0 00-.5-.5H1.5zm.5 1v3.5h3.5v-3.5H2zM7.5 8.004a.5.5 0 01.5-.5h4.5a.5.5 0 01.5.5v4.5a.5.5 0 01-.5.5H8a.5.5 0 01-.5-.5v-4.5zm1 4v-3.5H12v3.5H8.5z",fill:e}))),oF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2 2.004v2H1v-2.5a.5.5 0 01.5-.5H4v1H2zM1 9.004v-4h1v4H1zM1 10.004v2.5a.5.5 0 00.5.5H4v-1H2v-2H1zM10 13.004h2.5a.5.5 0 00.5-.5v-2.5h-1v2h-2v1zM12 4.004h1v-2.5a.5.5 0 00-.5-.5H10v1h2v2zM9 12.004v1H5v-1h4zM9 1.004v1H5v-1h4zM13 9.004h-1v-4h1v4zM7 8.004a1 1 0 100-2 1 1 0 000 2z",fill:e}))),iF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25 3.254a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm-.5 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7.003v-6.5a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v2.5h1v-2h2v6.5a.5.5 0 00.5.5H10v2H8v1h2.5a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-3.5zm-10-6v5.794L5.646 5.15a.5.5 0 01.708 0L7.5 6.297l2.646-2.647a.5.5 0 01.708 0L13 5.797V1.004H4zm9 6.208l-2.5-2.5-2.293 2.293L9.354 8.15a.5.5 0 11-.708.707L6 6.211l-2 2v1.793h9V7.21z",fill:e}),l.createElement("path",{d:"M0 10.004v-3h1v3H0zM0 13.504v-2.5h1v2h2v1H.5a.5.5 0 01-.5-.5zM7 14.004H4v-1h3v1z",fill:e}))),lF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 3V1h1v2H4zM4 6v2h1V6H4zM4 11v2h1v-2H4zM9 11v2h1v-2H9zM9 8V6h1v2H9zM9 1v2h1V1H9zM13 5h-2V4h2v1zM11 10h2V9h-2v1zM3 10H1V9h2v1zM1 5h2V4H1v1zM8 5H6V4h2v1zM6 10h2V9H6v1zM4 4h1v1H4V4zM10 4H9v1h1V4zM9 9h1v1H9V9zM5 9H4v1h1V9z",fill:e}))),sF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),uF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),cF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),dF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),pF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),fF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),l.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),hF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.522 6.6a.566.566 0 00-.176.544.534.534 0 00.382.41l2.781.721-1.493 5.013a.563.563 0 00.216.627.496.496 0 00.63-.06l6.637-6.453a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L2.522 6.6zm7.72.63l-3.067-.804L9.02 2.29 3.814 6.803l2.95.764-1.277 4.285 4.754-4.622zM4.51 13.435l.037.011-.037-.011z",fill:e}))),K8=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),mF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h10a.5.5 0 00.5-.5v-2.5h2.5a.5.5 0 00.5-.5v-10a.5.5 0 00-.5-.5h-10a.5.5 0 00-.5.5v2.5zm1 1v2.293l2.293-2.293H4zm-1 0v6.5a.499.499 0 00.497.5H10v2H1v-9h2zm1-1h6.5a.499.499 0 01.5.5v6.5h2v-9H4v2zm6 7V7.71l-2.293 2.293H10zm0-3.707V4.71l-5.293 5.293h1.586L10 6.297zm-.707-2.293H7.707L4 7.71v1.586l5.293-5.293z",fill:e}))),gF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3.004v-2.5a.5.5 0 01.5-.5h10a.5.5 0 01.5.5v10a.5.5 0 01-.5.5H11v2.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-10a.5.5 0 01.5-.5H3zm1 0v-2h9v9h-2v-6.5a.5.5 0 00-.5-.5H4zm6 8v2H1v-9h2v6.5a.5.5 0 00.5.5H10zm0-1H4v-6h6v6z",fill:e}))),vF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5h10v-10l-10 10z",fill:e}))),yF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 1.004a.5.5 0 100 1H12v10.5a.5.5 0 001 0v-10.5a1 1 0 00-1-1H1.5z",fill:e}),l.createElement("path",{d:"M1 3.504a.5.5 0 01.5-.5H10a1 1 0 011 1v8.5a.5.5 0 01-1 0v-8.5H1.5a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 5.004a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h7a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5h-7zm.5 1v6h6v-6H2z",fill:e}))),bF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.854.146a.5.5 0 00-.708 0L2.983 8.31a2.24 2.24 0 00-1.074.6C.677 10.14.24 11.902.085 12.997 0 13.6 0 14 0 14s.4 0 1.002-.085c1.095-.155 2.857-.592 4.089-1.824a2.24 2.24 0 00.6-1.074l8.163-8.163a.5.5 0 000-.708l-2-2zM5.6 9.692l.942-.942L5.25 7.457l-.942.943A2.242 2.242 0 015.6 9.692zm1.649-1.65L12.793 2.5 11.5 1.207 5.957 6.75 7.25 8.043zM4.384 9.617a1.25 1.25 0 010 1.768c-.767.766-1.832 1.185-2.78 1.403-.17.04-.335.072-.49.098.027-.154.06-.318.099-.49.219-.947.637-2.012 1.403-2.779a1.25 1.25 0 011.768 0z",fill:e}))),wF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 1.004a.5.5 0 01.5.5v.5h10v-.5a.5.5 0 011 0v2a.5.5 0 01-1 0v-.5H2v.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 6a.5.5 0 00-.5.5v6a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-6a.5.5 0 00-.5-.5h-11zM2 7v5h10V7h-1v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H7.5v2.5a.5.5 0 01-1 0V7h-.75v1a.5.5 0 01-1 0V7H4v2.5a.5.5 0 01-1 0V7H2z",fill:e}))),EF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4.5 4a.5.5 0 00-.5.5v5a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),xF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7a3 3 0 11-6 0 3 3 0 016 0zM9 7a2 2 0 11-4 0 2 2 0 014 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 1a.5.5 0 00-.5.5v.504H.5a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H6V1.5a.5.5 0 00-.5-.5h-3zM1 3.004v8h12v-8H1z",fill:e}))),DF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:e}))),CF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 4.5v5a.5.5 0 00.5.5H4l3.17 2.775a.5.5 0 00.83-.377V1.602a.5.5 0 00-.83-.376L4 4H1.5a.5.5 0 00-.5.5zM4 9V5H2v4h2zm.998.545A.504.504 0 005 9.5v-5c0-.015 0-.03-.002-.044L7 2.704v8.592L4.998 9.545z",fill:e}),l.createElement("path",{d:"M10.15 1.752a.5.5 0 00-.3.954 4.502 4.502 0 010 8.588.5.5 0 00.3.954 5.502 5.502 0 000-10.496z",fill:e}),l.createElement("path",{d:"M10.25 3.969a.5.5 0 00-.5.865 2.499 2.499 0 010 4.332.5.5 0 10.5.866 3.499 3.499 0 000-6.063z",fill:e}))),SF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M12.813 7.425l-9.05 5.603A.5.5 0 013 12.603V1.398a.5.5 0 01.763-.425l9.05 5.602a.5.5 0 010 .85z",fill:e}))),kF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.24 12.035L3.697 7.427A.494.494 0 013.5 7.2v4.05a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0V6.8a.494.494 0 01.198-.227l7.541-4.608A.5.5 0 0112 2.39v9.217a.5.5 0 01-.76.427z",fill:e}))),AF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.76 12.035l7.542-4.608A.495.495 0 0010.5 7.2v4.05a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0V6.8a.495.495 0 00-.198-.227L2.76 1.965A.5.5 0 002 2.39v9.217a.5.5 0 00.76.427z",fill:e}))),FF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9 2.42v2.315l4.228-2.736a.5.5 0 01.772.42v9.162a.5.5 0 01-.772.42L9 9.263v2.317a.5.5 0 01-.772.42L1.5 7.647v3.603a.75.75 0 01-1.5 0v-8.5a.75.75 0 011.5 0v3.603L8.228 2A.5.5 0 019 2.42z",fill:e}))),_F=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5 2.42v2.315L.772 1.999a.5.5 0 00-.772.42v9.162a.5.5 0 00.772.42L5 9.263v2.317a.5.5 0 00.772.42L12.5 7.647v3.603a.75.75 0 001.5 0v-8.5a.75.75 0 00-1.5 0v3.603L5.772 2A.5.5 0 005 2.42z",fill:e}))),IF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11z",fill:e}))),RF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 10.5v-10h5v10H2z",fill:e}))),TF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 1.004a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11zm-10.5 1h10v5H2v-5z",fill:e}))),BF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3492)",fill:e},l.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0V2a.5.5 0 001 0V.5z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10a3 3 0 100-6 3 3 0 000 6zm0-1a2 2 0 100-4 2 2 0 000 4z"}),l.createElement("path",{d:"M7 11.5a.5.5 0 01.5.5v1.5a.5.5 0 01-1 0V12a.5.5 0 01.5-.5zM11.5 7a.5.5 0 01.5-.5h1.5a.5.5 0 010 1H12a.5.5 0 01-.5-.5zM.5 6.5a.5.5 0 000 1H2a.5.5 0 000-1H.5zM3.818 10.182a.5.5 0 010 .707l-1.06 1.06a.5.5 0 11-.708-.706l1.06-1.06a.5.5 0 01.708 0zM11.95 2.757a.5.5 0 10-.707-.707l-1.061 1.061a.5.5 0 10.707.707l1.06-1.06zM10.182 10.182a.5.5 0 01.707 0l1.06 1.06a.5.5 0 11-.706.708l-1.061-1.06a.5.5 0 010-.708zM2.757 2.05a.5.5 0 10-.707.707l1.06 1.061a.5.5 0 00.708-.707l-1.06-1.06z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3492"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),zF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3493)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.335.047l-.15-.015a7.499 7.499 0 106.14 10.577c.103-.229-.156-.447-.386-.346a5.393 5.393 0 01-.771.27A5.356 5.356 0 019.153.691C9.37.568 9.352.23 9.106.175a7.545 7.545 0 00-.77-.128zM6.977 1.092a6.427 6.427 0 005.336 10.671A6.427 6.427 0 116.977 1.092z",fill:e})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3493"},l.createElement("path",{fill:"#fff",transform:"scale(1.07124)",d:"M0 0h14.001v14.002H0z"}))))),LF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 2a2 2 0 00-2-2H1.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5H11a2 2 0 002-2V2zM3 13h8a1 1 0 001-1V2a1 1 0 00-1-1H7v6.004a.5.5 0 01-.856.352l-.002-.002L5.5 6.71l-.645.647A.5.5 0 014 7.009V1H3v12zM5 1v4.793l.146-.146a.5.5 0 01.743.039l.111.11V1H5z",fill:e}))),OF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),MF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),$F=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3 1.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM2 3.504a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v7a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-7zM2 12V6h10v6H2z",fill:e}))),PF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.586 3.504l-1.5-1.5H1v9h12v-7.5H6.586zm.414-1L5.793 1.297a1 1 0 00-.707-.293H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-8.5a.5.5 0 00-.5-.5H7z",fill:e}))),NF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4.5 8.004a.5.5 0 100 1h5a.5.5 0 000-1h-5zM4.5 10.004a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 1.504a.5.5 0 01.5-.5h8a.498.498 0 01.357.15l.993.993c.093.09.15.217.15.357v1.5h1.5a.5.5 0 01.5.5v5a.5.5 0 01-.5.5H12v2.5a.5.5 0 01-.5.5h-9a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 01-.5-.5v-5a.5.5 0 01.5-.5H2v-2.5zm11 7.5h-1v-2.5a.5.5 0 00-.5-.5h-9a.5.5 0 00-.5.5v2.5H1v-4h12v4zm-2-6v1H3v-2h7v.5a.5.5 0 00.5.5h.5zm-8 9h8v-5H3v5z",fill:e}))),HF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.146 6.15a.5.5 0 01.708 0L7 7.297 9.146 5.15a.5.5 0 01.708 0l1 1a.5.5 0 01-.708.707L9.5 6.211 7.354 8.357a.5.5 0 01-.708 0L5.5 7.211 3.854 8.857a.5.5 0 11-.708-.707l2-2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 1.004a.5.5 0 00-.5.5v11a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-11a.5.5 0 00-.5-.5h-11zm.5 1v10h10v-10H2z",fill:e}))),jF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0a.5.5 0 01.5.5V1h6V.5a.5.5 0 011 0V1h1.5a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5H3V.5a.5.5 0 01.5-.5zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 4v2.3h3V4H9zM5.5 6.3h3V4h-3v2.3z",fill:e}))),VF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M12 2.5a.5.5 0 00-1 0v10a.5.5 0 001 0v-10zM9 4.5a.5.5 0 00-1 0v8a.5.5 0 001 0v-8zM5.5 7a.5.5 0 01.5.5v5a.5.5 0 01-1 0v-5a.5.5 0 01.5-.5zM3 10.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2z",fill:e}))),UF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M13 2a.5.5 0 010 1H1a.5.5 0 010-1h12zM10 5a.5.5 0 010 1H1a.5.5 0 010-1h9zM11.5 8.5A.5.5 0 0011 8H1a.5.5 0 000 1h10a.5.5 0 00.5-.5zM7.5 11a.5.5 0 010 1H1a.5.5 0 010-1h6.5z",fill:e}))),qF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM4 5a.5.5 0 000 1h9a.5.5 0 000-1H4zM2.5 8.5A.5.5 0 013 8h10a.5.5 0 010 1H3a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1H13a.5.5 0 000-1H6.5z",fill:e}))),WF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1 2a.5.5 0 000 1h12a.5.5 0 000-1H1zM3 5a.5.5 0 000 1h8a.5.5 0 000-1H3zM4.5 8.5A.5.5 0 015 8h4a.5.5 0 010 1H5a.5.5 0 01-.5-.5zM6.5 11a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:e}))),GF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v2.3h3V4H2zm0 5.2V6.8h3v2.4H2zm0 .5V12h3V9.7H2zm3.5 0V12h3V9.7h-3zm3.5 0V12h3V9.7H9zm3-.5H9V6.8h3v2.4zm-3.5 0h-3V6.8h3v2.4zM9 6.3h3V4H9v2.3zm-3.5 0h3V4h-3v2.3z",fill:e}))),KF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.5 6.5A.5.5 0 014 6h6a.5.5 0 010 1H4a.5.5 0 01-.5-.5zM4 9a.5.5 0 000 1h6a.5.5 0 000-1H4z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zM2 4v8h10V4H2z",fill:e}))),YF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M13 4a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 9.5A.5.5 0 0013 9H1a.5.5 0 000 1h12a.5.5 0 00.5-.5z",fill:e}))),JF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M13 3.5a.5.5 0 010 1H1a.5.5 0 010-1h12zM13.5 10a.5.5 0 00-.5-.5H1a.5.5 0 000 1h12a.5.5 0 00.5-.5zM13 6.5a.5.5 0 010 1H1a.5.5 0 010-1h12z",fill:e}))),ZF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),XF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2v1.5h1v7H3V12h5a3 3 0 001.791-5.407A2.75 2.75 0 008 2.011V2H3zm5 5.5H5.5v3H8a1.5 1.5 0 100-3zm-.25-4H5.5V6h2.25a1.25 1.25 0 100-2.5z",fill:e}))),QF=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2z",fill:e}))),e_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.553 2.268a1.5 1.5 0 00-2.12 0L2.774 7.925a2.5 2.5 0 003.536 3.535l3.535-3.535a.5.5 0 11.707.707l-3.535 3.536-.002.002a3.5 3.5 0 01-4.959-4.941l.011-.011L7.725 1.56l.007-.008a2.5 2.5 0 013.53 3.541l-.002.002-5.656 5.657-.003.003a1.5 1.5 0 01-2.119-2.124l3.536-3.536a.5.5 0 11.707.707L4.189 9.34a.5.5 0 00.707.707l5.657-5.657a1.5 1.5 0 000-2.121z",fill:e}))),t_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5 2.5a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2.5 2H1v1h1v3h1V2.5a.5.5 0 00-.5-.5zM3 8.5v1a.5.5 0 01-1 0V9h-.5a.5.5 0 010-1h1a.5.5 0 01.5.5zM2 10.5a.5.5 0 00-1 0V12h2v-1H2v-.5z",fill:e}))),r_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.75 2.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM5.5 2a.5.5 0 000 1h7a.5.5 0 000-1h-7zM5.5 11a.5.5 0 000 1h7a.5.5 0 000-1h-7zM2 12.25a.75.75 0 100-1.5.75.75 0 000 1.5zM5 7a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 015 7zM2 7.75a.75.75 0 100-1.5.75.75 0 000 1.5z",fill:e}))),n_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6 7a3 3 0 110-6h5.5a.5.5 0 010 1H10v10.5a.5.5 0 01-1 0V2H7v10.5a.5.5 0 01-1 0V7z",fill:e}))),a_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2 4.5h1.5L5 6.375 6.5 4.5H8v5H6.5V7L5 8.875 3.5 7v2.5H2v-5zM9.75 4.5h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 2a.5.5 0 00-.5.5v9a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5zM1 3v8h12V3H1z",fill:e}))),o_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5 2.5a.5.5 0 11-1 0 .5.5 0 011 0zM4.5 5a.5.5 0 100-1 .5.5 0 000 1zM5 6.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0a2 2 0 012 2v10a2 2 0 01-2 2H1.5a.5.5 0 01-.5-.5V.5a.5.5 0 01.5-.5H11zm0 1H3v12h8a1 1 0 001-1V2a1 1 0 00-1-1z",fill:e}))),i_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.031 7.5a4 4 0 007.938 0H13.5a.5.5 0 000-1h-2.53a4 4 0 00-7.94 0H.501a.5.5 0 000 1h2.531zM7 10a3 3 0 100-6 3 3 0 000 6z",fill:e}))),l_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2.5a1.5 1.5 0 01-1 1.415v4.053C5.554 7.4 6.367 7 7.5 7c.89 0 1.453-.252 1.812-.557.218-.184.374-.4.482-.62a1.5 1.5 0 111.026.143c-.155.423-.425.87-.86 1.24C9.394 7.685 8.59 8 7.5 8c-1.037 0-1.637.42-1.994.917a2.81 2.81 0 00-.472 1.18A1.5 1.5 0 114 10.086v-6.17A1.5 1.5 0 116 2.5zm-2 9a.5.5 0 111 0 .5.5 0 01-1 0zm1-9a.5.5 0 11-1 0 .5.5 0 011 0zm6 2a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),s_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.354 1.354L7.707 2H8.5A2.5 2.5 0 0111 4.5v5.585a1.5 1.5 0 11-1 0V4.5A1.5 1.5 0 008.5 3h-.793l.647.646a.5.5 0 11-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708zM11 11.5a.5.5 0 11-1 0 .5.5 0 011 0zM4 3.915a1.5 1.5 0 10-1 0v6.17a1.5 1.5 0 101 0v-6.17zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zm0-8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),u_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.108 3.872A1.5 1.5 0 103 3.915v6.17a1.5 1.5 0 101 0V6.41c.263.41.573.77.926 1.083 1.108.98 2.579 1.433 4.156 1.5A1.5 1.5 0 109.09 7.99c-1.405-.065-2.62-.468-3.5-1.248-.723-.64-1.262-1.569-1.481-2.871zM3.5 11a.5.5 0 100 1 .5.5 0 000-1zM4 2.5a.5.5 0 11-1 0 .5.5 0 011 0zm7 6a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),c_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.03 8.103a3.044 3.044 0 01-.202-1.744 2.697 2.697 0 011.4-1.935c-.749-1.18-1.967-1.363-2.35-1.403-.835-.086-2.01.56-2.648.57h-.016c-.639-.01-1.814-.656-2.649-.57-.415.044-1.741.319-2.541 1.593-.281.447-.498 1.018-.586 1.744a6.361 6.361 0 00-.044.85c.005.305.028.604.07.895.09.62.259 1.207.477 1.744.242.595.543 1.13.865 1.585.712 1.008 1.517 1.59 1.971 1.6.934.021 1.746-.61 2.416-.594.006.002.014.003.02.002h.017c.007 0 .014 0 .021-.002.67-.017 1.481.615 2.416.595.453-.011 1.26-.593 1.971-1.6a7.95 7.95 0 00.97-1.856c-.697-.217-1.27-.762-1.578-1.474zm-2.168-5.97c.717-.848.69-2.07.624-2.125-.065-.055-1.25.163-1.985.984-.735.82-.69 2.071-.624 2.125.064.055 1.268-.135 1.985-.984z",fill:e}))),d_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a3 3 0 013 3v1.24c.129.132.25.27.362.415.113.111.283.247.515.433l.194.155c.325.261.711.582 1.095.966.765.765 1.545 1.806 1.823 3.186a.501.501 0 01-.338.581 3.395 3.395 0 01-1.338.134 2.886 2.886 0 01-1.049-.304 5.535 5.535 0 01-.17.519 2 2 0 11-2.892 2.55A5.507 5.507 0 017 13c-.439 0-.838-.044-1.201-.125a2 2 0 11-2.892-2.55 5.553 5.553 0 01-.171-.519c-.349.182-.714.27-1.05.304A3.395 3.395 0 01.35 9.977a.497.497 0 01-.338-.582c.278-1.38 1.058-2.42 1.823-3.186.384-.384.77-.705 1.095-.966l.194-.155c.232-.186.402-.322.515-.433.112-.145.233-.283.362-.414V3a3 3 0 013-3zm1.003 11.895a2 2 0 012.141-1.89c.246-.618.356-1.322.356-2.005 0-.514-.101-1.07-.301-1.599l-.027-.017a6.387 6.387 0 00-.857-.42 6.715 6.715 0 00-1.013-.315l-.852.638a.75.75 0 01-.9 0l-.852-.638a6.716 6.716 0 00-1.693.634 4.342 4.342 0 00-.177.101l-.027.017A4.6 4.6 0 003.501 8c0 .683.109 1.387.355 2.005a2 2 0 012.142 1.89c.295.067.627.105 1.002.105s.707-.038 1.003-.105zM5 12a1 1 0 11-2 0 1 1 0 012 0zm6 0a1 1 0 11-2 0 1 1 0 012 0zM6.1 4.3a1.5 1.5 0 011.8 0l.267.2L7 5.375 5.833 4.5l.267-.2zM8.5 2a.5.5 0 01.5.5V3a.5.5 0 01-1 0v-.5a.5.5 0 01.5-.5zM6 2.5a.5.5 0 00-1 0V3a.5.5 0 001 0v-.5z",fill:e}))),p_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3497)",fill:e},l.createElement("path",{d:"M12.261 2.067c0 1.142-.89 2.068-1.988 2.068-1.099 0-1.99-.926-1.99-2.068C8.283.926 9.174 0 10.273 0c1.098 0 1.989.926 1.989 2.067zM3.978 6.6c0 1.142-.89 2.068-1.989 2.068C.891 8.668 0 7.742 0 6.601c0-1.142.89-2.068 1.989-2.068 1.099 0 1.989.926 1.989 2.068zM6.475 11.921A4.761 4.761 0 014.539 11a4.993 4.993 0 01-1.367-1.696 2.765 2.765 0 01-1.701.217 6.725 6.725 0 001.844 2.635 6.379 6.379 0 004.23 1.577 3.033 3.033 0 01-.582-1.728 4.767 4.767 0 01-.488-.083zM11.813 11.933c0 1.141-.89 2.067-1.989 2.067-1.098 0-1.989-.926-1.989-2.067 0-1.142.891-2.068 1.99-2.068 1.098 0 1.989.926 1.989 2.068zM12.592 11.173a6.926 6.926 0 001.402-3.913 6.964 6.964 0 00-1.076-4.023A2.952 2.952 0 0111.8 4.6c.398.78.592 1.656.564 2.539a5.213 5.213 0 01-.724 2.495c.466.396.8.935.952 1.54zM1.987 3.631c-.05 0-.101.002-.151.004C3.073 1.365 5.504.024 8.005.23a3.07 3.07 0 00-.603 1.676 4.707 4.707 0 00-2.206.596 4.919 4.919 0 00-1.7 1.576 2.79 2.79 0 00-1.509-.447z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3497"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),f_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6.5 1H1v5.5h5.5V1zM13 1H7.5v5.5H13V1zM7.5 7.5H13V13H7.5V7.5zM6.5 7.5H1V13h5.5V7.5z",fill:e}))),h_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3496)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.023 3.431a.115.115 0 01-.099.174H7.296A3.408 3.408 0 003.7 6.148a.115.115 0 01-.21.028l-1.97-3.413a.115.115 0 01.01-.129A6.97 6.97 0 017 0a6.995 6.995 0 016.023 3.431zM7 9.615A2.619 2.619 0 014.384 7 2.62 2.62 0 017 4.383 2.619 2.619 0 019.616 7 2.619 2.619 0 017 9.615zm1.034.71a.115.115 0 00-.121-.041 3.4 3.4 0 01-.913.124 3.426 3.426 0 01-3.091-1.973L1.098 3.567a.115.115 0 00-.2.001 7.004 7.004 0 005.058 10.354l.017.001c.04 0 .078-.021.099-.057l1.971-3.414a.115.115 0 00-.009-.128zm1.43-5.954h3.947c.047 0 .09.028.107.072.32.815.481 1.675.481 2.557a6.957 6.957 0 01-2.024 4.923A6.957 6.957 0 017.08 14h-.001a.115.115 0 01-.1-.172L9.794 8.95A3.384 3.384 0 0010.408 7c0-.921-.364-1.785-1.024-2.433a.115.115 0 01.08-.196z",fill:e})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3496"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),m_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e}))),g_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3503)"},l.createElement("path",{d:"M0 5.176l1.31-1.73 4.902-1.994V.014l4.299 3.144-8.78 1.706v4.8L0 9.162V5.176zm14-2.595v8.548l-3.355 2.857-5.425-1.783v1.783L1.73 9.661l8.784 1.047v-7.55L14 2.581z",fill:e})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3503"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),v_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.522a.411.411 0 00-.412.476l1.746 10.597a.56.56 0 00.547.466h8.373a.411.411 0 00.412-.345l1.017-6.248h-3.87L8.35 9.18H5.677l-.724-3.781h7.904L13.412 2A.411.411 0 0013 1.524L1 1.522z",fill:e}))),y_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1014 0A7 7 0 000 7zm5.215-3.869a1.967 1.967 0 013.747.834v1.283l-3.346-1.93a2.486 2.486 0 00-.401-.187zm3.484 2.58l-3.346-1.93a1.968 1.968 0 00-2.685.72 1.954 1.954 0 00.09 2.106 2.45 2.45 0 01.362-.254l1.514-.873a.27.27 0 01.268 0l2.1 1.21 1.697-.978zm-.323 4.972L6.86 9.81a.268.268 0 01-.134-.231V7.155l-1.698-.98v3.86a1.968 1.968 0 003.747.835 2.488 2.488 0 01-.4-.187zm.268-.464a1.967 1.967 0 002.685-.719 1.952 1.952 0 00-.09-2.106c-.112.094-.233.18-.361.253L7.53 9.577l1.113.642zm-4.106.257a1.974 1.974 0 01-1.87-.975A1.95 1.95 0 012.47 8.01c.136-.507.461-.93.916-1.193L4.5 6.175v3.86c0 .148.013.295.039.44zM11.329 4.5a1.973 1.973 0 00-1.87-.976c.025.145.039.292.039.44v1.747a.268.268 0 01-.135.232l-2.1 1.211v1.96l3.346-1.931a1.966 1.966 0 00.72-2.683z",fill:e}))),b_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.847 2.181L8.867.201a.685.685 0 00-.97 0l-4.81 4.81a.685.685 0 000 .969l2.466 2.465-2.405 2.404a.685.685 0 000 .97l1.98 1.98a.685.685 0 00.97 0l4.81-4.81a.685.685 0 000-.969L8.441 5.555l2.405-2.404a.685.685 0 000-.97z",fill:e}))),w_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.852 2.885c-.893-.41-1.85-.712-2.85-.884a.043.043 0 00-.046.021c-.123.22-.26.505-.355.73a10.658 10.658 0 00-3.2 0 7.377 7.377 0 00-.36-.73.045.045 0 00-.046-.021c-1 .172-1.957.474-2.85.884a.04.04 0 00-.019.016C.311 5.612-.186 8.257.058 10.869a.048.048 0 00.018.033 11.608 11.608 0 003.496 1.767.045.045 0 00.049-.016c.27-.368.51-.755.715-1.163a.044.044 0 00-.024-.062 7.661 7.661 0 01-1.092-.52.045.045 0 01-.005-.075c.074-.055.147-.112.217-.17a.043.043 0 01.046-.006c2.29 1.046 4.771 1.046 7.035 0a.043.043 0 01.046.006c.07.057.144.115.218.17a.045.045 0 01-.004.075 7.186 7.186 0 01-1.093.52.045.045 0 00-.024.062c.21.407.45.795.715 1.162.011.016.03.023.05.017a11.57 11.57 0 003.5-1.767.045.045 0 00.019-.032c.292-3.02-.49-5.643-2.07-7.969a.036.036 0 00-.018-.016zM4.678 9.279c-.69 0-1.258-.634-1.258-1.411 0-.778.558-1.411 1.258-1.411.707 0 1.27.639 1.259 1.41 0 .778-.558 1.412-1.259 1.412zm4.652 0c-.69 0-1.258-.634-1.258-1.411 0-.778.557-1.411 1.258-1.411.707 0 1.27.639 1.258 1.41 0 .778-.551 1.412-1.258 1.412z",fill:e}))),E_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.399 14H5.06V7H3.5V4.588l1.56-.001-.002-1.421C5.058 1.197 5.533 0 7.6 0h1.721v2.413H8.246c-.805 0-.844.337-.844.966l-.003 1.208h1.934l-.228 2.412L7.401 7l-.002 7z",fill:e}))),x_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.2 0H4.803A2.603 2.603 0 003.41 4.802a2.603 2.603 0 000 4.396 2.602 2.602 0 103.998 2.199v-2.51a2.603 2.603 0 103.187-4.085A2.604 2.604 0 009.2 0zM7.407 7a1.793 1.793 0 103.586 0 1.793 1.793 0 00-3.586 0zm-.81 2.603H4.803a1.793 1.793 0 101.794 1.794V9.603zM4.803 4.397h1.794V.81H4.803a1.793 1.793 0 000 3.587zm0 .81a1.793 1.793 0 000 3.586h1.794V5.207H4.803zm4.397-.81H7.407V.81H9.2a1.794 1.794 0 010 3.587z",fill:e}))),D_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6.37 8.768l-2.042 3.537h6.755l2.042-3.537H6.37zm6.177-1.003l-3.505-6.07H4.96l3.504 6.07h4.084zM4.378 2.7L.875 8.77l2.042 3.536L6.42 6.236 4.378 2.7z",fill:e}))),C_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C3.132 0 0 3.132 0 7a6.996 6.996 0 004.786 6.641c.35.062.482-.149.482-.332 0-.166-.01-.718-.01-1.304-1.758.324-2.213-.429-2.353-.823-.079-.2-.42-.822-.717-.988-.246-.132-.596-.455-.01-.464.552-.009.946.508 1.077.717.63 1.06 1.636.762 2.039.578.061-.455.245-.761.446-.936-1.558-.175-3.185-.779-3.185-3.457 0-.76.271-1.39.717-1.88-.07-.176-.314-.893.07-1.856 0 0 .587-.183 1.925.718a6.495 6.495 0 011.75-.236c.595 0 1.19.078 1.75.236 1.34-.91 1.926-.718 1.926-.718.385.963.14 1.68.07 1.855.446.49.717 1.111.717 1.881 0 2.687-1.636 3.282-3.194 3.457.254.218.473.638.473 1.295 0 .936-.009 1.688-.009 1.925 0 .184.131.402.481.332A7.012 7.012 0 0014 7c0-3.868-3.133-7-7-7z",fill:e}))),S_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.068 5.583l1.487-4.557a.256.256 0 01.487 0L4.53 5.583H1.068L7 13.15 4.53 5.583h4.941l-2.47 7.565 5.931-7.565H9.471l1.488-4.557a.256.256 0 01.486 0l1.488 4.557.75 2.3a.508.508 0 01-.185.568L7 13.148v.001H7L.503 8.452a.508.508 0 01-.186-.57l.75-2.299z",fill:e}))),k_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.925 1.094H7.262c-1.643 0-3.189 1.244-3.189 2.685 0 1.473 1.12 2.661 2.791 2.661.116 0 .23-.002.34-.01a1.49 1.49 0 00-.186.684c0 .41.22.741.498 1.012-.21 0-.413.006-.635.006-2.034 0-3.6 1.296-3.6 2.64 0 1.323 1.717 2.15 3.75 2.15 2.32 0 3.6-1.315 3.6-2.639 0-1.06-.313-1.696-1.28-2.38-.331-.235-.965-.805-.965-1.14 0-.392.112-.586.703-1.047.606-.474 1.035-1.14 1.035-1.914 0-.92-.41-1.819-1.18-2.115h1.161l.82-.593zm-1.335 8.96c.03.124.045.25.045.378 0 1.07-.688 1.905-2.665 1.905-1.406 0-2.421-.89-2.421-1.96 0-1.047 1.259-1.92 2.665-1.904.328.004.634.057.911.146.764.531 1.311.832 1.465 1.436zM7.34 6.068c-.944-.028-1.841-1.055-2.005-2.295-.162-1.24.47-2.188 1.415-2.16.943.029 1.84 1.023 2.003 2.262.163 1.24-.47 2.222-1.414 2.193z",fill:e}))),A_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.873 11.608a1.167 1.167 0 00-1.707-.027L3.46 10.018l.01-.04h7.072l.022.076-2.69 1.554zM6.166 2.42l.031.03-3.535 6.124a1.265 1.265 0 00-.043-.012V5.438a1.166 1.166 0 00.84-1.456L6.167 2.42zm4.387 1.562a1.165 1.165 0 00.84 1.456v3.124l-.043.012-3.536-6.123a1.2 1.2 0 00.033-.032l2.706 1.563zM3.473 9.42a1.168 1.168 0 00-.327-.568L6.68 2.73a1.17 1.17 0 00.652 0l3.536 6.123a1.169 1.169 0 00-.327.567H3.473zm8.79-.736a1.169 1.169 0 00-.311-.124V5.44a1.17 1.17 0 10-1.122-1.942L8.13 1.938a1.168 1.168 0 00-1.122-1.5 1.17 1.17 0 00-1.121 1.5l-2.702 1.56a1.168 1.168 0 00-1.86.22 1.17 1.17 0 00.739 1.722v3.12a1.168 1.168 0 00-.74 1.721 1.17 1.17 0 001.861.221l2.701 1.56a1.169 1.169 0 102.233-.035l2.687-1.552a1.168 1.168 0 101.457-1.791z",fill:e}))),F_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M0 0v14h14V0H0zm11.63 3.317l-.75.72a.22.22 0 00-.083.212v-.001 5.289a.22.22 0 00.083.21l.733.72v.159H7.925v-.158l.76-.738c.074-.074.074-.096.074-.21V5.244l-2.112 5.364h-.285l-2.46-5.364V8.84a.494.494 0 00.136.413h.001l.988 1.198v.158H2.226v-.158l.988-1.198a.477.477 0 00.126-.416v.003-4.157a.363.363 0 00-.118-.307l-.878-1.058v-.158h2.727l2.107 4.622L9.031 3.16h2.6v.158z",fill:e}))),__=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.06 9.689c.016.49.423.88.912.88h.032a.911.911 0 00.88-.945.916.916 0 00-.912-.88h-.033c-.033 0-.08 0-.113.016-.669-1.108-.946-2.314-.848-3.618.065-.978.391-1.825.961-2.526.473-.603 1.386-.896 2.005-.913 1.728-.032 2.461 2.119 2.51 2.983.212.049.57.163.815.244C10.073 2.29 8.444.92 6.88.92c-1.467 0-2.82 1.06-3.357 2.625-.75 2.086-.261 4.09.651 5.671a.74.74 0 00-.114.473zm8.279-2.298c-1.239-1.45-3.064-2.249-5.15-2.249h-.261a.896.896 0 00-.798-.489h-.033A.912.912 0 006.13 6.48h.031a.919.919 0 00.8-.554h.293c1.239 0 2.412.358 3.472 1.059.814.538 1.401 1.238 1.727 2.086.277.684.261 1.353-.033 1.923-.456.864-1.222 1.337-2.232 1.337a4.16 4.16 0 01-1.597-.343 9.58 9.58 0 01-.734.587c.7.326 1.418.505 2.102.505 1.565 0 2.722-.863 3.162-1.727.473-.946.44-2.575-.782-3.961zm-7.433 5.51a4.005 4.005 0 01-.977.113c-1.206 0-2.298-.505-2.836-1.32C.376 10.603.13 8.289 2.494 6.577c.05.261.147.62.212.832-.31.228-.798.685-1.108 1.303-.44.864-.391 1.729.13 2.527.359.537.93.864 1.663.962.896.114 1.793-.05 2.657-.505 1.271-.669 2.119-1.467 2.672-2.56a.944.944 0 01-.26-.603.913.913 0 01.88-.945h.033a.915.915 0 01.098 1.825c-.897 1.842-2.478 3.08-4.565 3.488z",fill:e}))),I_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2.547a5.632 5.632 0 01-1.65.464 2.946 2.946 0 001.263-1.63 5.67 5.67 0 01-1.823.715 2.837 2.837 0 00-2.097-.93c-1.586 0-2.872 1.319-2.872 2.946 0 .23.025.456.074.67C4.508 4.66 2.392 3.488.975 1.706c-.247.435-.389.941-.389 1.481 0 1.022.507 1.923 1.278 2.452a2.806 2.806 0 01-1.3-.368l-.001.037c0 1.427.99 2.617 2.303 2.888a2.82 2.82 0 01-1.297.05c.366 1.17 1.427 2.022 2.683 2.045A5.671 5.671 0 010 11.51a7.985 7.985 0 004.403 1.323c5.283 0 8.172-4.488 8.172-8.38 0-.128-.003-.255-.009-.38A5.926 5.926 0 0014 2.546z",fill:e}))),R_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.99 8.172c.005-.281.007-.672.007-1.172 0-.5-.002-.89-.007-1.172a14.952 14.952 0 00-.066-1.066 9.638 9.638 0 00-.169-1.153c-.083-.38-.264-.7-.542-.96a1.667 1.667 0 00-.972-.454C11.084 2.065 9.337 2 6.999 2s-4.085.065-5.241.195a1.65 1.65 0 00-.969.453c-.276.26-.455.58-.539.961a8.648 8.648 0 00-.176 1.153c-.039.43-.061.785-.066 1.066C.002 6.11 0 6.5 0 7c0 .5.002.89.008 1.172.005.281.027.637.066 1.067.04.43.095.813.168 1.152.084.38.265.7.543.96.279.261.603.412.973.453 1.156.13 2.902.196 5.24.196 2.34 0 4.087-.065 5.243-.196a1.65 1.65 0 00.967-.453c.276-.26.456-.58.54-.96.077-.339.136-.722.175-1.152.04-.43.062-.786.067-1.067zM9.762 6.578A.45.45 0 019.997 7a.45.45 0 01-.235.422l-3.998 2.5a.442.442 0 01-.266.078.538.538 0 01-.242-.063.465.465 0 01-.258-.437v-5c0-.197.086-.343.258-.437a.471.471 0 01.508.016l3.998 2.5z",fill:e}))),T_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.243.04a.87.87 0 01.38.087l2.881 1.386a.874.874 0 01.496.79V11.713a.875.875 0 01-.496.775l-2.882 1.386a.872.872 0 01-.994-.17L4.11 8.674l-2.404 1.823a.583.583 0 01-.744-.034l-.771-.7a.583.583 0 010-.862L2.274 7 .19 5.1a.583.583 0 010-.862l.772-.701a.583.583 0 01.744-.033L4.11 5.327 9.628.296a.871.871 0 01.615-.255zm.259 3.784L6.315 7l4.187 3.176V3.824z",fill:e}))),B_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.667 13H2.333A1.333 1.333 0 011 11.667V2.333C1 1.597 1.597 1 2.333 1h9.334C12.403 1 13 1.597 13 2.333v9.334c0 .736-.597 1.333-1.333 1.333zm-2.114-1.667h1.78V7.675c0-1.548-.877-2.296-2.102-2.296-1.226 0-1.742.955-1.742.955v-.778H5.773v5.777h1.716V8.3c0-.812.374-1.296 1.09-1.296.658 0 .974.465.974 1.296v3.033zm-6.886-7.6c0 .589.474 1.066 1.058 1.066.585 0 1.058-.477 1.058-1.066 0-.589-.473-1.066-1.058-1.066-.584 0-1.058.477-1.058 1.066zm1.962 7.6h-1.79V5.556h1.79v5.777z",fill:e}))),z_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-8h12v8H1zm1-9.5a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0zm2 0a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}))),L_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5.004a1.5 1.5 0 00-1.5 1.5v11a1.5 1.5 0 001.5 1.5h7a1.5 1.5 0 001.5-1.5v-11a1.5 1.5 0 00-1.5-1.5h-7zm0 1h7a.5.5 0 01.5.5v9.5H3v-9.5a.5.5 0 01.5-.5zm2.5 11a.5.5 0 000 1h2a.5.5 0 000-1H6z",fill:e}))),O_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 1.504a1.5 1.5 0 011.5-1.5h5a1.5 1.5 0 011.5 1.5v11a1.5 1.5 0 01-1.5 1.5h-5a1.5 1.5 0 01-1.5-1.5v-11zm1 10.5v-10h6v10H4z",fill:e}))),M_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 .504a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zm5.5 2.5h-5a.5.5 0 00-.5.5v7a.5.5 0 00.5.5h5a.5.5 0 00.5-.5v-7a.5.5 0 00-.5-.5zm-5-1a1.5 1.5 0 00-1.5 1.5v7a1.5 1.5 0 001.5 1.5h5a1.5 1.5 0 001.5-1.5v-7a1.5 1.5 0 00-1.5-1.5h-5zm2.5 2a.5.5 0 01.5.5v2h1a.5.5 0 110 1H7a.5.5 0 01-.5-.5v-2.5a.5.5 0 01.5-.5zm-2.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5z",fill:e}))),$_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5zM3 6.004a.5.5 0 100 1h1a.5.5 0 000-1H3zM2.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H3a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h3v10H2zm4-10h6v10H6v-10z",fill:e}))),P_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM10 6.004a.5.5 0 100 1h1a.5.5 0 000-1h-1zM9.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm.5-1v-10h6v10H2zm7-10h3v10H9v-10z",fill:e}))),N_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.5 4.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5zM11 6.004a.5.5 0 010 1h-1a.5.5 0 010-1h1zM11.5 8.504a.5.5 0 00-.5-.5h-1a.5.5 0 100 1h1a.5.5 0 00.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11zm7.5-1h3v-10H9v10zm-1 0H2v-10h6v4.5H5.207l.65-.65a.5.5 0 10-.707-.708L3.646 6.65a.5.5 0 000 .707l1.497 1.497a.5.5 0 10.707-.708l-.643-.642H8v4.5z",fill:e}))),H_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 4.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5zM2 6.004a.5.5 0 100 1h1a.5.5 0 000-1H2zM1.5 8.504a.5.5 0 01.5-.5h1a.5.5 0 110 1H2a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.5 13.004a.5.5 0 01-.5-.5v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5H.5zm.5-1v-10h3v10H1zm4 0v-4.5h2.793l-.643.642a.5.5 0 10.707.708l1.497-1.497a.5.5 0 000-.707L7.85 5.146a.5.5 0 10-.707.708l.65.65H5v-4.5h6v10H5z",fill:e}))),j_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM6.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM9 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 1.504a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-11zm1 6.5v-6h10v6H2zm10 1v3H2v-3h10z",fill:e}))),V_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1zM6 10.504a.5.5 0 01.5-.5h1a.5.5 0 010 1h-1a.5.5 0 01-.5-.5zM9.5 10.004a.5.5 0 000 1h1a.5.5 0 000-1h-1z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12.504v-11a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v11a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5zm1-.5v-3h10v3H2zm4.5-4H2v-6h10v6H7.5V5.21l.646.646a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0l-1.5 1.5a.5.5 0 10.708.707l.646-.646v2.793z",fill:e}))),U_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.504a.5.5 0 01.5-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5v-3zm1 2.5v-2h2v2H6z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.004a.5.5 0 01.5.5v1.5h2v-1.5a.5.5 0 011 0v1.5h2.5a.5.5 0 01.5.5v2.5h1.5a.5.5 0 010 1H12v2h1.5a.5.5 0 010 1H12v2.5a.5.5 0 01-.5.5H9v1.5a.5.5 0 01-1 0v-1.5H6v1.5a.5.5 0 01-1 0v-1.5H2.5a.5.5 0 01-.5-.5v-2.5H.5a.5.5 0 010-1H2v-2H.5a.5.5 0 010-1H2v-2.5a.5.5 0 01.5-.5H5v-1.5a.5.5 0 01.5-.5zm5.5 3H3v8h8v-8z",fill:e}))),q_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3c0-1.105-2.239-2-5-2s-5 .895-5 2v8c0 .426.26.752.544.977.29.228.68.413 1.116.558.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.436-.145.825-.33 1.116-.558.285-.225.544-.551.544-.977V3zm-1.03 0a.787.787 0 00-.05-.052c-.13-.123-.373-.28-.756-.434C9.404 2.21 8.286 2 7 2c-1.286 0-2.404.21-3.164.514-.383.153-.625.31-.756.434A.756.756 0 003.03 3a.756.756 0 00.05.052c.13.123.373.28.756.434C4.596 3.79 5.714 4 7 4c1.286 0 2.404-.21 3.164-.514.383-.153.625-.31.756-.434A.787.787 0 0010.97 3zM11 5.75V4.2c-.912.486-2.364.8-4 .8-1.636 0-3.088-.314-4-.8v1.55l.002.008a.147.147 0 00.016.033.618.618 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.62.62 0 00.146-.15.149.149 0 00.015-.033A.03.03 0 0011 5.75zM3 7.013c.2.103.423.193.66.272.878.293 2.059.465 3.34.465 1.281 0 2.462-.172 3.34-.465.237-.079.46-.17.66-.272V8.5l-.002.008a.149.149 0 01-.015.033.62.62 0 01-.146.15c-.165.13-.435.27-.813.395-.751.25-1.82.414-3.024.414s-2.273-.163-3.024-.414c-.378-.126-.648-.265-.813-.395a.618.618 0 01-.145-.15.147.147 0 01-.016-.033A.027.027 0 013 8.5V7.013zm0 2.75V11l.002.008a.147.147 0 00.016.033.617.617 0 00.145.15c.165.13.435.27.813.395.751.25 1.82.414 3.024.414s2.273-.163 3.024-.414c.378-.126.648-.265.813-.395a.619.619 0 00.146-.15.148.148 0 00.015-.033L11 11V9.763c-.2.103-.423.193-.66.272-.878.293-2.059.465-3.34.465-1.281 0-2.462-.172-3.34-.465A4.767 4.767 0 013 9.763z",fill:e}))),W_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5 3a.5.5 0 00-1 0v3a.5.5 0 001 0V3zM7 2.5a.5.5 0 01.5.5v3a.5.5 0 01-1 0V3a.5.5 0 01.5-.5zM10 4.504a.5.5 0 10-1 0V6a.5.5 0 001 0V4.504z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.54l-.001-.002a.499.499 0 00-.145-.388l-3-3a.499.499 0 00-.388-.145L8.464.004H2.5a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h9a.5.5 0 00.5-.5V3.54zM3 1.004h5.293L11 3.71v5.293H3v-8zm0 9v3h8v-3H3z",fill:e}))),G_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.164 3.446a1.5 1.5 0 10-2.328 0L1.81 10.032A1.503 1.503 0 000 11.5a1.5 1.5 0 002.915.5h8.17a1.5 1.5 0 101.104-1.968L8.164 3.446zm-1.475.522a1.506 1.506 0 00.622 0l4.025 6.586a1.495 1.495 0 00-.25.446H2.914a1.497 1.497 0 00-.25-.446l4.024-6.586z",fill:e}))),K_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.21.046l6.485 2.994A.5.5 0 0114 3.51v6.977a.495.495 0 01-.23.432.481.481 0 01-.071.038L7.23 13.944a.499.499 0 01-.46 0L.3 10.958a.498.498 0 01-.3-.47V3.511a.497.497 0 01.308-.473L6.78.051a.499.499 0 01.43-.005zM1 4.282v5.898l5.5 2.538V6.82L1 4.282zm6.5 8.436L13 10.18V4.282L7.5 6.82v5.898zM12.307 3.5L7 5.95 1.693 3.5 7 1.05l5.307 2.45z",fill:e}))),Y_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6a.5.5 0 001 0v-6z",fill:e}),l.createElement("path",{d:"M4.273 2.808a.5.5 0 00-.546-.837 6 6 0 106.546 0 .5.5 0 00-.546.837 5 5 0 11-5.454 0z",fill:e}))),J_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),Z_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.586 5.586A2 2 0 018.862 7.73a.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 10-.365-.93 2 2 0 01-2.145-3.277z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.939 6.527c.127.128.19.297.185.464a.635.635 0 01-.185.465L0 8.395a7.099 7.099 0 001.067 2.572h1.32c.182 0 .345.076.46.197a.635.635 0 01.198.46v1.317A7.097 7.097 0 005.602 14l.94-.94a.634.634 0 01.45-.186H7.021c.163 0 .326.061.45.186l.939.938a7.098 7.098 0 002.547-1.057V11.61c0-.181.075-.344.197-.46a.634.634 0 01.46-.197h1.33c.507-.76.871-1.622 1.056-2.55l-.946-.946a.635.635 0 01-.186-.465.635.635 0 01.186-.464l.943-.944a7.099 7.099 0 00-1.044-2.522h-1.34a.635.635 0 01-.46-.197.635.635 0 01-.196-.46V1.057A7.096 7.096 0 008.413.002l-.942.942a.634.634 0 01-.45.186H6.992a.634.634 0 01-.45-.186L5.598 0a7.097 7.097 0 00-2.553 1.058v1.33c0 .182-.076.345-.197.46a.635.635 0 01-.46.198h-1.33A7.098 7.098 0 00.003 5.591l.936.936zm.707 1.636c.324-.324.482-.752.479-1.172a1.634 1.634 0 00-.48-1.171l-.538-.539c.126-.433.299-.847.513-1.235h.768c.459 0 .873-.19 1.167-.49.3-.295.49-.708.49-1.167v-.77c.39-.215.807-.388 1.243-.515l.547.547c.32.32.742.48 1.157.48l.015-.001h.014c.415 0 .836-.158 1.157-.479l.545-.544c.433.126.846.299 1.234.512v.784c0 .46.19.874.49 1.168.294.3.708.49 1.167.49h.776c.209.382.378.788.502 1.213l-.545.546a1.635 1.635 0 00-.48 1.17c-.003.421.155.849.48 1.173l.549.55c-.126.434-.3.85-.513 1.239h-.77c-.458 0-.872.19-1.166.49-.3.294-.49.708-.49 1.167v.77a6.09 6.09 0 01-1.238.514l-.54-.54a1.636 1.636 0 00-1.158-.48H6.992c-.415 0-.837.159-1.157.48l-.543.543a6.091 6.091 0 01-1.247-.516v-.756c0-.459-.19-.873-.49-1.167-.294-.3-.708-.49-1.167-.49h-.761a6.094 6.094 0 01-.523-1.262l.542-.542z",fill:e}))),X_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.585 8.414a2 2 0 113.277-.683.5.5 0 10.931.365 3 3 0 10-1.697 1.697.5.5 0 00-.365-.93 2 2 0 01-2.146-.449z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5.289a1 1 0 011 0l5.062 2.922a1 1 0 01.5.866v5.846a1 1 0 01-.5.866L7.5 13.71a1 1 0 01-1 0L1.437 10.79a1 1 0 01-.5-.866V4.077a1 1 0 01.5-.866L6.5.29zm.5.866l5.062 2.922v5.846L7 12.845 1.937 9.923V4.077L7 1.155z",fill:e}))),Q_=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 1c.441 0 .564.521.252.833l-.806.807a.51.51 0 000 .72l.694.694a.51.51 0 00.72 0l.807-.806c.312-.312.833-.19.833.252a2.5 2.5 0 01-3.414 2.328l-6.879 6.88a1 1 0 01-1.414-1.415l6.88-6.88A2.5 2.5 0 0110.5 1zM2 12.5a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),eI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13 7a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM7 8.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fill:e}))),tI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.903.112a.107.107 0 01.194 0l.233.505.552.066c.091.01.128.123.06.185l-.408.377.109.546a.107.107 0 01-.158.114L6 1.634l-.485.271a.107.107 0 01-.158-.114l.108-.546-.408-.377a.107.107 0 01.06-.185L5.67.617l.233-.505zM2.194.224a.214.214 0 00-.389 0l-.466 1.01-1.104.131a.214.214 0 00-.12.37l.816.755-.217 1.091a.214.214 0 00.315.23L2 3.266l.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37L2.66 1.234 2.194.224zM12.194 8.224a.214.214 0 00-.389 0l-.466 1.01-1.104.13a.214.214 0 00-.12.371l.816.755-.217 1.091a.214.214 0 00.315.23l.97-.544.971.543c.16.09.35-.05.315-.229l-.216-1.09.816-.756a.214.214 0 00-.12-.37l-1.105-.131-.466-1.01z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12.797l-1.293-1.293 6.758-6.758L9.258 6.04 2.5 12.797zm7.465-7.465l2.828-2.828L11.5 1.211 8.672 4.04l1.293 1.293zM.147 11.857a.5.5 0 010-.707l11-11a.5.5 0 01.706 0l2 2a.5.5 0 010 .708l-11 11a.5.5 0 01-.706 0l-2-2z",fill:e}))),rI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M13.854 3.354a.5.5 0 00-.708-.708L5 10.793.854 6.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.708 0l8.5-8.5z",fill:e}))),nI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1V6.393a.5.5 0 00-1 0v5.61H2v-10h7.5a.5.5 0 000-1H2z",fill:e}),l.createElement("path",{d:"M6.354 9.857l7.5-7.5a.5.5 0 00-.708-.707L6 8.797 3.854 6.65a.5.5 0 10-.708.707l2.5 2.5a.5.5 0 00.708 0z",fill:e}))),aI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM8.854 2.646a.5.5 0 010 .708L5.207 7l3.647 3.646a.5.5 0 01-.708.708L4.5 7.707.854 11.354a.5.5 0 01-.708-.708L3.793 7 .146 3.354a.5.5 0 11.708-.708L4.5 6.293l3.646-3.647a.5.5 0 01.708 0zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),oI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.5 2a.5.5 0 000 1h2a.5.5 0 000-1h-2zM9.3 2.6a.5.5 0 01.1.7l-5.995 7.993a.505.505 0 01-.37.206.5.5 0 01-.395-.152L.146 8.854a.5.5 0 11.708-.708l2.092 2.093L8.6 2.7a.5.5 0 01.7-.1zM11 7a.5.5 0 01.5-.5h2a.5.5 0 010 1h-2A.5.5 0 0111 7zM11.5 11a.5.5 0 000 1h2a.5.5 0 000-1h-2z",fill:e}))),iI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.5 1a.5.5 0 01.5.5V2h1.5a.5.5 0 010 1H11v.5a.5.5 0 01-1 0V3H1.5a.5.5 0 010-1H10v-.5a.5.5 0 01.5-.5zM1.5 11a.5.5 0 000 1H10v.5a.5.5 0 001 0V12h1.5a.5.5 0 000-1H11v-.5a.5.5 0 00-1 0v.5H1.5zM1 7a.5.5 0 01.5-.5H3V6a.5.5 0 011 0v.5h8.5a.5.5 0 010 1H4V8a.5.5 0 01-1 0v-.5H1.5A.5.5 0 011 7z",fill:e}))),lI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v6h-6a.5.5 0 000 1h6v6a.5.5 0 001 0v-6h6a.5.5 0 000-1h-6v-6z",fill:e}))),sI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.03.97A.75.75 0 00.97 2.03L5.94 7 .97 11.97a.75.75 0 101.06 1.06L7 8.06l4.97 4.97a.75.75 0 101.06-1.06L8.06 7l4.97-4.97A.75.75 0 0011.97.97L7 5.94 2.03.97z",fill:e}))),Y8=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),uI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.5 4.5A.5.5 0 016 5v5a.5.5 0 01-1 0V5a.5.5 0 01.5-.5zM9 5a.5.5 0 00-1 0v5a.5.5 0 001 0V5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5.5A.5.5 0 015 0h4a.5.5 0 01.5.5V2h3a.5.5 0 010 1H12v8a2 2 0 01-2 2H4a2 2 0 01-2-2V3h-.5a.5.5 0 010-1h3V.5zM3 3v8a1 1 0 001 1h6a1 1 0 001-1V3H3zm2.5-2h3v1h-3V1z",fill:e}))),cI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3502)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5 5H3.657A4 4 0 00.828 6.17l-.474.475a.5.5 0 000 .707l2.793 2.793-3 3a.5.5 0 00.707.708l3-3 2.792 2.792a.5.5 0 00.708 0l.474-.475A4 4 0 009 10.343V9l2-2a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM11 5.585l-3 3v1.757a3 3 0 01-.879 2.121L7 12.586 1.414 7l.122-.122A3 3 0 013.656 6h1.758l3-3-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586z",fill:e})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3502"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),dI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3501)",fill:e},l.createElement("path",{d:"M13.44 4.44L9.56.56a1.5 1.5 0 00-2.12 0L7 1a1.415 1.415 0 000 2L5.707 4.293 6.414 5l2-2-.707-.707a.414.414 0 010-.586l.44-.44a.5.5 0 01.707 0l3.878 3.88a.5.5 0 010 .706l-.44.44a.414.414 0 01-.585 0L11 5.586l-2 2 .707.707L11 7a1.414 1.414 0 002 0l.44-.44a1.5 1.5 0 000-2.12zM.828 6.171a4 4 0 012.758-1.17l1 .999h-.93a3 3 0 00-2.12.878L1.414 7 7 12.586l.121-.122A3 3 0 008 10.343v-.929l1 1a4 4 0 01-1.172 2.757l-.474.475a.5.5 0 01-.708 0l-2.792-2.792-3 3a.5.5 0 01-.708-.708l3-3L.355 7.353a.5.5 0 010-.707l.474-.475zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3501"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),pI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),fI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),hI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),mI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0a6 6 0 01-9.874 4.582l8.456-8.456A5.976 5.976 0 0113 7zM2.418 10.874l8.456-8.456a6 6 0 00-8.456 8.456z",fill:e}))),gI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm3.854-9.354a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),vI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}))),yI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),bI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h7a2 2 0 012 2v6a2 2 0 01-2 2H5a1.994 1.994 0 01-1.414-.586l-3-3a2 2 0 010-2.828l3-3A1.994 1.994 0 015 2zm1.146 3.146a.5.5 0 01.708 0L8 6.293l1.146-1.147a.5.5 0 11.708.708L8.707 7l1.147 1.146a.5.5 0 01-.708.708L8 7.707 6.854 8.854a.5.5 0 11-.708-.708L7.293 7 6.146 5.854a.5.5 0 010-.708z",fill:e}))),wI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.5 5.004a.5.5 0 100 1h7a.5.5 0 000-1h-7zM3 8.504a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 12.004H5.707l-1.853 1.854a.5.5 0 01-.351.146h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5zm-10.5-1v-8h10v8H2z",fill:e}))),EI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.5 5.004a.5.5 0 10-1 0v1.5H5a.5.5 0 100 1h1.5v1.5a.5.5 0 001 0v-1.5H9a.5.5 0 000-1H7.5v-1.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:e}))),xI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9.854 6.65a.5.5 0 010 .707l-2 2a.5.5 0 11-.708-.707l1.15-1.15-3.796.004a.5.5 0 010-1L8.29 6.5 7.145 5.357a.5.5 0 11.708-.707l2 2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.691 13.966a.498.498 0 01-.188.038h-.006a.499.499 0 01-.497-.5v-1.5H1.5a.5.5 0 01-.5-.5v-9a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H5.707l-1.853 1.854a.5.5 0 01-.163.108zM2 3.004v8h10v-8H2z",fill:e}))),DI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M8.5 7.004a.5.5 0 000-1h-5a.5.5 0 100 1h5zM9 8.504a.5.5 0 01-.5.5h-5a.5.5 0 010-1h5a.5.5 0 01.5.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 11.504v-1.5h1.5a.5.5 0 00.5-.5v-8a.5.5 0 00-.5-.5h-11a.5.5 0 00-.5.5v1.5H.5a.5.5 0 00-.5.5v8a.5.5 0 00.5.5H2v1.5a.499.499 0 00.497.5h.006a.498.498 0 00.35-.146l1.854-1.854H11.5a.5.5 0 00.5-.5zm-9-8.5v-1h10v7h-1v-5.5a.5.5 0 00-.5-.5H3zm-2 8v-7h10v7H1z",fill:e}))),CI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 2a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H6.986a.444.444 0 01-.124.103l-3.219 1.84A.43.43 0 013 13.569V12a2 2 0 01-2-2V2zm3.42 4.78a.921.921 0 110-1.843.921.921 0 010 1.842zm1.658-.922a.921.921 0 101.843 0 .921.921 0 00-1.843 0zm2.58 0a.921.921 0 101.842 0 .921.921 0 00-1.843 0z",fill:e}))),SI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M8 8.004a1 1 0 01-.5.866v1.634a.5.5 0 01-1 0V8.87A1 1 0 118 8.004z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.004a4 4 0 118 0v1h1.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3v-1zm7 1v-1a3 3 0 10-6 0v1h6zm2 1H2v7h10v-7z",fill:e}))),kI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3614)",fill:e},l.createElement("path",{d:"M6.5 8.87a1 1 0 111 0v1.634a.5.5 0 01-1 0V8.87z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1a3 3 0 00-3 3v1.004h8.5a.5.5 0 01.5.5v8a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5v-8a.5.5 0 01.5-.5H3V4a4 4 0 017.755-1.381.5.5 0 01-.939.345A3.001 3.001 0 007 1zM2 6.004h10v7H2v-7z"})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3614"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),AI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11 4a1 1 0 11-2 0 1 1 0 012 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5 8.532V9.5a.5.5 0 01-.5.5H5.5v1.5a.5.5 0 01-.5.5H3.5v1.5a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-2a.5.5 0 01.155-.362l5.11-5.11A4.5 4.5 0 117.5 8.532zM6 4.5a3.5 3.5 0 111.5 2.873c-.29-.203-1-.373-1 .481V9H5a.5.5 0 00-.5.5V11H3a.5.5 0 00-.5.5V13H1v-1.293l5.193-5.193a.552.552 0 00.099-.613A3.473 3.473 0 016 4.5z",fill:e}))),FI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.354.15a.5.5 0 00-.708 0l-2 2a.5.5 0 10.708.707L6.5 1.711v6.793a.5.5 0 001 0V1.71l1.146 1.146a.5.5 0 10.708-.707l-2-2z",fill:e}),l.createElement("path",{d:"M2 7.504a.5.5 0 10-1 0v5a.5.5 0 00.5.5h11a.5.5 0 00.5-.5v-5a.5.5 0 00-1 0v4.5H2v-4.5z",fill:e}))),_I=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.5 8.004a.5.5 0 100 1h3a.5.5 0 000-1h-3z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11.504a.5.5 0 00.5.5h13a.5.5 0 00.5-.5v-9a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v9zm1-8.5v1h12v-1H1zm0 8h12v-5H1v5z",fill:e}))),II=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1 3.004a1 1 0 00-1 1v5a1 1 0 001 1h3.5a.5.5 0 100-1H1v-5h12v5h-1a.5.5 0 000 1h1a1 1 0 001-1v-5a1 1 0 00-1-1H1z",fill:e}),l.createElement("path",{d:"M6.45 7.006a.498.498 0 01.31.07L10.225 9.1a.5.5 0 01-.002.873l-1.074.621.75 1.3a.75.75 0 01-1.3.75l-.75-1.3-1.074.62a.497.497 0 01-.663-.135.498.498 0 01-.095-.3L6 7.515a.497.497 0 01.45-.509z",fill:e}))),RI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 1.504a.5.5 0 01.5-.5h5a.5.5 0 110 1h-2v10h2a.5.5 0 010 1h-5a.5.5 0 010-1h2v-10h-2a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{d:"M0 4.504a.5.5 0 01.5-.5h4a.5.5 0 110 1H1v4h3.5a.5.5 0 110 1h-4a.5.5 0 01-.5-.5v-5zM9.5 4.004a.5.5 0 100 1H13v4H9.5a.5.5 0 100 1h4a.5.5 0 00.5-.5v-5a.5.5 0 00-.5-.5h-4z",fill:e}))),TI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.943 12.457a.27.27 0 00.248-.149L7.77 9.151l2.54 2.54a.257.257 0 00.188.073c.082 0 .158-.03.21-.077l.788-.79a.27.27 0 000-.392L8.891 7.9l3.416-1.708a.29.29 0 00.117-.106.222.222 0 00.033-.134.332.332 0 00-.053-.161.174.174 0 00-.092-.072l-.02-.007-10.377-4.15a.274.274 0 00-.355.354l4.15 10.372a.275.275 0 00.233.169zm-.036 1l-.02-.002c-.462-.03-.912-.31-1.106-.796L.632 2.287A1.274 1.274 0 012.286.633l10.358 4.143c.516.182.782.657.81 1.114a1.25 1.25 0 01-.7 1.197L10.58 8.174l1.624 1.624a1.27 1.27 0 010 1.807l-.8.801-.008.007c-.491.46-1.298.48-1.792-.014l-1.56-1.56-.957 1.916a1.27 1.27 0 01-1.142.702h-.037z",fill:e}))),BI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.87 6.008a.505.505 0 00-.003-.028v-.002c-.026-.27-.225-.48-.467-.498a.5.5 0 00-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47V5.17a.6.6 0 00-.002-.05c-.023-.268-.223-.49-.468-.5a.5.5 0 00-.52.5v1.65a.486.486 0 01-.47.47.48.48 0 01-.47-.47V4.62a.602.602 0 00-.002-.05v-.002c-.023-.266-.224-.48-.468-.498a.5.5 0 00-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 01-.47-.47V1.8c0-.017 0-.034-.002-.05-.022-.268-.214-.49-.468-.5a.5.5 0 00-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 01-.47-.47l.001-.1c.001-.053.002-.104 0-.155a.775.775 0 00-.06-.315.65.65 0 00-.16-.22 29.67 29.67 0 01-.21-.189c-.2-.182-.4-.365-.617-.532l-.003-.003A6.366 6.366 0 003.06 7l-.01-.007c-.433-.331-.621-.243-.69-.193-.26.14-.29.5-.13.74l1.73 2.6v.01h-.016l-.035.023.05-.023s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.039-.591.036-1.189.032-1.783l-.002-.507v-.032zm.969 2.376c-.057 1.285-.254 2.667-1.082 3.72-.88 1.118-2.283 1.646-4.227 1.646-1.574 0-2.714-.87-3.406-1.623a6.958 6.958 0 01-1.046-1.504l-.006-.012-1.674-2.516a1.593 1.593 0 01-.25-1.107 1.44 1.44 0 01.69-1.041c.195-.124.485-.232.856-.186.357.044.681.219.976.446.137.106.272.22.4.331V1.75A1.5 1.5 0 015.63.25c.93.036 1.431.856 1.431 1.55v1.335a1.5 1.5 0 01.53-.063h.017c.512.04.915.326 1.153.71a1.5 1.5 0 01.74-.161c.659.025 1.115.458 1.316.964a1.493 1.493 0 01.644-.103h.017c.856.067 1.393.814 1.393 1.558l.002.48c.004.596.007 1.237-.033 1.864z",fill:e}))),zI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 6A2.5 2.5 0 116 3.5V5h2V3.5A2.5 2.5 0 1110.5 6H9v2h1.5A2.5 2.5 0 118 10.5V9H6v1.5A2.5 2.5 0 113.5 8H5V6H3.5zM2 3.5a1.5 1.5 0 113 0V5H3.5A1.5 1.5 0 012 3.5zM6 6v2h2V6H6zm3-1h1.5A1.5 1.5 0 109 3.5V5zM3.5 9H5v1.5A1.5 1.5 0 113.5 9zM9 9v1.5A1.5 1.5 0 1010.5 9H9z",fill:e}))),LI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),OI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.25 5.25A1.75 1.75 0 117 7a.5.5 0 00-.5.5V9a.5.5 0 001 0V7.955A2.75 2.75 0 104.25 5.25a.5.5 0 001 0zM7 11.5A.75.75 0 107 10a.75.75 0 000 1.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),MI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-3.524 4.89A5.972 5.972 0 017 13a5.972 5.972 0 01-3.477-1.11l1.445-1.444C5.564 10.798 6.258 11 7 11s1.436-.202 2.032-.554l1.444 1.445zm-.03-2.858l1.445 1.444A5.972 5.972 0 0013 7c0-1.296-.41-2.496-1.11-3.477l-1.444 1.445C10.798 5.564 11 6.258 11 7s-.202 1.436-.554 2.032zM9.032 3.554l1.444-1.445A5.972 5.972 0 007 1c-1.296 0-2.496.41-3.477 1.11l1.445 1.444A3.981 3.981 0 017 3c.742 0 1.436.202 2.032.554zM3.554 4.968L2.109 3.523A5.973 5.973 0 001 7c0 1.296.41 2.496 1.11 3.476l1.444-1.444A3.981 3.981 0 013 7c0-.742.202-1.436.554-2.032zM10 7a3 3 0 11-6 0 3 3 0 016 0z",fill:e}))),$I=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 4.5a.5.5 0 01.5.5v3.5a.5.5 0 11-1 0V5a.5.5 0 01.5-.5zM7.75 10.5a.75.75 0 11-1.5 0 .75.75 0 011.5 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.206 1.045a.498.498 0 01.23.209l6.494 10.992a.5.5 0 01-.438.754H.508a.497.497 0 01-.506-.452.498.498 0 01.072-.31l6.49-10.984a.497.497 0 01.642-.21zM7 2.483L1.376 12h11.248L7 2.483z",fill:e}))),PI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM6.5 8a.5.5 0 001 0V4a.5.5 0 00-1 0v4zm-.25 2.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0z",fill:e}))),NI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.504a.5.5 0 01.5-.5h13a.5.5 0 01.5.5v9a.5.5 0 01-.5.5H.5a.5.5 0 01-.5-.5v-9zm1 1.012v7.488h12V3.519L7.313 7.894a.496.496 0 01-.526.062.497.497 0 01-.1-.062L1 3.516zm11.03-.512H1.974L7 6.874l5.03-3.87z",fill:e}))),HI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.76 8.134l-.05.05a.2.2 0 01-.28.03 6.76 6.76 0 01-1.63-1.65.21.21 0 01.04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 00-.51.13A3.23 3.23 0 00.9 3.424c-.13 1.1.26 2.37 1.17 3.78a16.679 16.679 0 004.55 4.6 6.57 6.57 0 003.53 1.32 3.2 3.2 0 002.85-1.66c.14-.24.24-.64-.07-1.18a7.803 7.803 0 00-1.73-1.81c-.64-.5-1.52-1.11-2.13-1.11a.97.97 0 00-.34.06c-.472.164-.74.458-.947.685l-.023.025zm4.32 2.678a6.801 6.801 0 00-1.482-1.54l-.007-.005-.006-.005a8.418 8.418 0 00-.957-.662 2.7 2.7 0 00-.4-.193.683.683 0 00-.157-.043l-.004.002-.009.003c-.224.078-.343.202-.56.44l-.014.016-.046.045a1.2 1.2 0 01-1.602.149A7.76 7.76 0 014.98 7.134l-.013-.019-.013-.02a1.21 1.21 0 01.195-1.522l.06-.06.026-.024c.219-.19.345-.312.422-.533l.003-.01v-.008a.518.518 0 00-.032-.142c-.06-.178-.203-.453-.502-.872l-.005-.008-.005-.007A10.18 10.18 0 004.013 2.59l-.005-.005c-.31-.314-.543-.5-.716-.605-.147-.088-.214-.096-.222-.097h-.016l-.006.003-.01.006a2.23 2.23 0 00-1.145 1.656c-.09.776.175 1.806 1.014 3.108a15.68 15.68 0 004.274 4.32l.022.014.022.016a5.57 5.57 0 002.964 1.117 2.2 2.2 0 001.935-1.141l.006-.012.004-.007a.182.182 0 00-.007-.038.574.574 0 00-.047-.114z",fill:e}))),jI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),l.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),VI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.452 7.952l1.305-1.305.708.707-1.306 1.305a2.25 2.25 0 103.182 3.182l1.306-1.305.707.707-1.306 1.305a3.25 3.25 0 01-4.596-4.596zM12.548 6.048l-1.305 1.306-.707-.708 1.305-1.305a2.25 2.25 0 10-3.182-3.182L7.354 3.464l-.708-.707 1.306-1.305a3.25 3.25 0 014.596 4.596zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.707-.707l-11-11z",fill:e}))),UI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.994 1.11a1 1 0 10-1.988 0A4.502 4.502 0 002.5 5.5v3.882l-.943 1.885a.497.497 0 00-.053.295.5.5 0 00.506.438h3.575a1.5 1.5 0 102.83 0h3.575a.5.5 0 00.453-.733L11.5 9.382V5.5a4.502 4.502 0 00-3.506-4.39zM2.81 11h8.382l-.5-1H3.31l-.5 1zM10.5 9V5.5a3.5 3.5 0 10-7 0V9h7zm-4 3.5a.5.5 0 111 0 .5.5 0 01-1 0z",fill:e}))),qI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5.5A.5.5 0 012 0c6.627 0 12 5.373 12 12a.5.5 0 01-1 0C13 5.925 8.075 1 2 1a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{d:"M1.5 4.5A.5.5 0 012 4a8 8 0 018 8 .5.5 0 01-1 0 7 7 0 00-7-7 .5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 11a2 2 0 11-4 0 2 2 0 014 0zm-1 0a1 1 0 11-2 0 1 1 0 012 0z",fill:e}))),WI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),l.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),GI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6.646.15a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.707L7.5 1.711v6.793a.5.5 0 01-1 0V1.71L5.354 2.857a.5.5 0 11-.708-.707l2-2z",fill:e}),l.createElement("path",{d:"M2 4.004a1 1 0 00-1 1v7a1 1 0 001 1h10a1 1 0 001-1v-7a1 1 0 00-1-1H9.5a.5.5 0 100 1H12v7H2v-7h2.5a.5.5 0 000-1H2z",fill:e}))),KI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M13.854 6.646a.5.5 0 010 .708l-2 2a.5.5 0 01-.708-.708L12.293 7.5H5.5a.5.5 0 010-1h6.793l-1.147-1.146a.5.5 0 01.708-.708l2 2z",fill:e}),l.createElement("path",{d:"M10 2a1 1 0 00-1-1H2a1 1 0 00-1 1v10a1 1 0 001 1h7a1 1 0 001-1V9.5a.5.5 0 00-1 0V12H2V2h7v2.5a.5.5 0 001 0V2z",fill:e}))),YI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 13A6 6 0 107 1a6 6 0 000 12zm0 1A7 7 0 107 0a7 7 0 000 14z",fill:e}))),JI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M14 7A7 7 0 110 7a7 7 0 0114 0z",fill:e}))),ZI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5zM4 12.413l2.664-2.284a.454.454 0 01.377-.128.498.498 0 01.284.12L10 12.412V1H4v11.413z",fill:e}))),XI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 0h7a.5.5 0 01.5.5v13a.5.5 0 01-.454.498.462.462 0 01-.371-.118L7 11.159l-3.175 2.72a.46.46 0 01-.379.118A.5.5 0 013 13.5V.5a.5.5 0 01.5-.5z",fill:e}))),QI=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1449_588)"},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.414 1.586a2 2 0 00-2.828 0l-4 4a2 2 0 000 2.828l4 4a2 2 0 002.828 0l4-4a2 2 0 000-2.828l-4-4zm.707-.707a3 3 0 00-4.242 0l-4 4a3 3 0 000 4.242l4 4a3 3 0 004.242 0l4-4a3 3 0 000-4.242l-4-4z",fill:e})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1449_588"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),eR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584zM1.2 3.526c.128-.333.304-.598.52-.806.218-.212.497-.389.849-.522m-1.37 1.328A3.324 3.324 0 001 4.708c0 .225.032.452.101.686.082.265.183.513.307.737.135.246.294.484.479.716.188.237.386.454.59.652l.001.002 4.514 4.355 4.519-4.344c.2-.193.398-.41.585-.648l.003-.003c.184-.23.345-.472.486-.726l.004-.007c.131-.23.232-.474.31-.732v-.002c.068-.224.101-.45.101-.686 0-.457-.07-.849-.195-1.185a2.177 2.177 0 00-.515-.802l.007-.012-.008.009a2.383 2.383 0 00-.85-.518l-.003-.001C11.1 2.072 10.692 2 10.203 2c-.21 0-.406.03-.597.09h-.001c-.22.07-.443.167-.663.289l-.007.003c-.22.12-.434.262-.647.426-.226.174-.42.341-.588.505l-.684.672-.7-.656a9.967 9.967 0 00-.615-.527 4.82 4.82 0 00-.635-.422l-.01-.005a3.289 3.289 0 00-.656-.281l-.008-.003A2.014 2.014 0 003.785 2c-.481 0-.881.071-1.217.198",fill:e}))),tR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M12.814 1.846c.06.05.116.101.171.154l.001.002a3.254 3.254 0 01.755 1.168c.171.461.259.974.259 1.538 0 .332-.046.656-.143.976a4.546 4.546 0 01-.397.937c-.169.302-.36.589-.58.864a7.627 7.627 0 01-.674.746l-4.78 4.596a.585.585 0 01-.427.173.669.669 0 01-.44-.173L1.78 8.217a7.838 7.838 0 01-.677-.748 6.124 6.124 0 01-.572-.855 4.975 4.975 0 01-.388-.931A3.432 3.432 0 010 4.708C0 4.144.09 3.63.265 3.17c.176-.459.429-.85.757-1.168a3.432 3.432 0 011.193-.74c.467-.176.99-.262 1.57-.262.304 0 .608.044.907.137.301.092.586.215.855.367.27.148.526.321.771.512.244.193.471.386.682.584.202-.198.427-.391.678-.584.248-.19.507-.364.78-.512a4.65 4.65 0 01.845-.367c.294-.093.594-.137.9-.137.585 0 1.115.086 1.585.262.392.146.734.34 1.026.584z",fill:e}))),rR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.319.783a.75.75 0 011.362 0l1.63 3.535 3.867.458a.75.75 0 01.42 1.296L10.74 8.715l.76 3.819a.75.75 0 01-1.103.8L7 11.434l-3.398 1.902a.75.75 0 01-1.101-.801l.758-3.819L.401 6.072a.75.75 0 01.42-1.296l3.867-.458L6.318.783zm.68.91l-1.461 3.17a.75.75 0 01-.593.431l-3.467.412 2.563 2.37a.75.75 0 01.226.697l-.68 3.424 3.046-1.705a.75.75 0 01.733 0l3.047 1.705-.68-3.424a.75.75 0 01.226-.697l2.563-2.37-3.467-.412a.75.75 0 01-.593-.43L7 1.694z",fill:e}))),nR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.68.783a.75.75 0 00-1.361 0l-1.63 3.535-3.867.458A.75.75 0 00.4 6.072l2.858 2.643-.758 3.819a.75.75 0 001.101.8L7 11.434l3.397 1.902a.75.75 0 001.102-.801l-.759-3.819L13.6 6.072a.75.75 0 00-.421-1.296l-3.866-.458L7.68.783z",fill:e}))),aR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7.854a4.5 4.5 0 10-6 0V13a.5.5 0 00.497.5h.006c.127 0 .254-.05.35-.146L7 11.207l2.146 2.147A.5.5 0 0010 13V7.854zM7 8a3.5 3.5 0 100-7 3.5 3.5 0 000 7zm-.354 2.146a.5.5 0 01.708 0L9 11.793v-3.26C8.398 8.831 7.718 9 7 9a4.481 4.481 0 01-2-.468v3.26l1.646-1.646z",fill:e}))),oR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.565 13.123a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97c.25.473.83.661 1.31.426l.987-.482zm4.289-8.477a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708 0l-2.5-2.5a.5.5 0 11.708-.708L6 8.793l4.146-4.147a.5.5 0 01.708 0z",fill:e}))),iR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.493 5.493 0 01-1.3-.16c-.42-.1-.91-.25-1.47-.45a5.056 5.056 0 00-.95-.27H2.88a.84.84 0 01-.62-.26.84.84 0 01-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 01.62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 01.62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7.15.31.23.73.23 1.27a3 3 0 01-.32 1.31h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98a2.05 2.05 0 01-.4 1.51 1.9 1.9 0 01-.57 1.5zm.473-5.33a.965.965 0 00.027-.25.742.742 0 00-.227-.513.683.683 0 00-.523-.227H7.927l.73-1.45a2 2 0 00.213-.867c0-.444-.068-.695-.127-.822a.53.53 0 00-.245-.244 1.296 1.296 0 00-.539-.116.989.989 0 00-.141.28 9.544 9.544 0 00-.174.755c-.069.387-.213.779-.484 1.077l-.009.01-.009.01c-.195.202-.41.46-.67.798l-.003.004c-.235.3-.44.555-.613.753-.151.173-.343.381-.54.516l-.255.176H5v4.133l.018.003c.384.07.76.176 1.122.318.532.189.98.325 1.352.413l.007.002a4.5 4.5 0 001.063.131h.878c.429 0 .683-.115.871-.285a.9.9 0 00.262-.702l-.028-.377.229-.3a1.05 1.05 0 00.205-.774l-.044-.333.165-.292a.969.969 0 00.13-.487.457.457 0 00-.019-.154l-.152-.458.263-.404a1.08 1.08 0 00.152-.325zM3.5 10.8a.5.5 0 100-1 .5.5 0 000 1z",fill:e}))),lR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.765 2.076A.5.5 0 0112 2.5v6.009a.497.497 0 01-.17.366L7.337 12.87a.497.497 0 01-.674 0L2.17 8.875l-.009-.007a.498.498 0 01-.16-.358L2 8.5v-6a.5.5 0 01.235-.424l.018-.011c.016-.01.037-.024.065-.04.056-.032.136-.077.24-.128a6.97 6.97 0 01.909-.371C4.265 1.26 5.443 1 7 1s2.735.26 3.533.526c.399.133.702.267.91.37a4.263 4.263 0 01.304.169l.018.01zM3 2.793v5.482l1.068.95 6.588-6.588a6.752 6.752 0 00-.44-.163C9.517 2.24 8.444 2 7 2c-1.443 0-2.515.24-3.217.474-.351.117-.61.233-.778.317L3 2.793zm4 9.038l-2.183-1.94L11 3.706v4.568l-4 3.556z",fill:e}))),sR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.354 2.854a.5.5 0 10-.708-.708l-3 3a.5.5 0 10.708.708l3-3z",fill:e}),l.createElement("path",{d:"M2.09 6H4.5a.5.5 0 000-1H1.795a.75.75 0 00-.74.873l.813 4.874A1.5 1.5 0 003.348 12h7.305a1.5 1.5 0 001.48-1.253l.812-4.874a.75.75 0 00-.74-.873H10a.5.5 0 000 1h1.91l-.764 4.582a.5.5 0 01-.493.418H3.347a.5.5 0 01-.493-.418L2.09 6z",fill:e}),l.createElement("path",{d:"M4.5 7a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 7.5a.5.5 0 00-1 0v2a.5.5 0 001 0v-2zM6.5 9.5v-2a.5.5 0 011 0v2a.5.5 0 01-1 0z",fill:e}))),uR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 2h.75v3.866l-3.034 5.26A1.25 1.25 0 003.299 13H10.7a1.25 1.25 0 001.083-1.875L8.75 5.866V2h.75a.5.5 0 100-1h-5a.5.5 0 000 1zm1.75 4V2h1.5v4.134l.067.116L8.827 8H5.173l1.01-1.75.067-.116V6zM4.597 9l-1.515 2.625A.25.25 0 003.3 12H10.7a.25.25 0 00.217-.375L9.404 9H4.597z",fill:e}))),cR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.5 10.5a.5.5 0 11-1 0 .5.5 0 011 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 1a.5.5 0 00-.5.5c0 1.063.137 1.892.678 2.974.346.692.858 1.489 1.598 2.526-.89 1.247-1.455 2.152-1.798 2.956-.377.886-.477 1.631-.478 2.537v.007a.5.5 0 00.5.5h7c.017 0 .034 0 .051-.003A.5.5 0 0011 12.5v-.007c0-.906-.1-1.65-.478-2.537-.343-.804-.909-1.709-1.798-2.956.74-1.037 1.252-1.834 1.598-2.526C10.863 3.392 11 2.563 11 1.5a.5.5 0 00-.5-.5h-7zm6.487 11a4.675 4.675 0 00-.385-1.652c-.277-.648-.735-1.407-1.499-2.494-.216.294-.448.606-.696.937a.497.497 0 01-.195.162.5.5 0 01-.619-.162c-.248-.331-.48-.643-.696-.937-.764 1.087-1.222 1.846-1.499 2.494A4.675 4.675 0 004.013 12h5.974zM6.304 6.716c.212.293.443.609.696.948a90.058 90.058 0 00.709-.965c.48-.664.86-1.218 1.163-1.699H5.128a32.672 32.672 0 001.176 1.716zM4.559 4h4.882c.364-.735.505-1.312.546-2H4.013c.04.688.182 1.265.546 2z",fill:e}))),dR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 1h-9a.5.5 0 00-.5.5v11a.5.5 0 001 0V8h8.5a.5.5 0 00.354-.854L9.207 4.5l2.647-2.646A.499.499 0 0011.5 1zM8.146 4.146L10.293 2H3v5h7.293L8.146 4.854a.5.5 0 010-.708z",fill:e}))),pR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 7V6a3 3 0 00-5.91-.736l-.17.676-.692.075A2.5 2.5 0 003.5 11h3c.063 0 .125-.002.187-.007l.076-.005.076.006c.053.004.106.006.161.006h4a2 2 0 100-4h-1zM3.12 5.02A3.5 3.5 0 003.5 12h3c.087 0 .174-.003.26-.01.079.007.16.01.24.01h4a3 3 0 100-6 4 4 0 00-7.88-.98z",fill:e}))),fR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 2a4 4 0 014 4 3 3 0 110 6H7c-.08 0-.161-.003-.24-.01-.086.007-.173.01-.26.01h-3a3.5 3.5 0 01-.38-6.98A4.002 4.002 0 017 2z",fill:e}))),hR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7a4 4 0 11-8 0 4 4 0 018 0zm-1 0a3 3 0 11-6 0 3 3 0 016 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.268 13.18c.25.472.83.66 1.31.425l.987-.482a.991.991 0 01.87 0l.987.482a.991.991 0 001.31-.426l.515-.97a.991.991 0 01.704-.511l1.082-.19a.99.99 0 00.81-1.115l-.154-1.087a.991.991 0 01.269-.828l.763-.789a.991.991 0 000-1.378l-.763-.79a.991.991 0 01-.27-.827l.155-1.087a.99.99 0 00-.81-1.115l-1.082-.19a.991.991 0 01-.704-.511L9.732.82a.99.99 0 00-1.31-.426l-.987.482a.991.991 0 01-.87 0L5.578.395a.99.99 0 00-1.31.426l-.515.97a.99.99 0 01-.704.511l-1.082.19a.99.99 0 00-.81 1.115l.154 1.087a.99.99 0 01-.269.828L.28 6.31a.99.99 0 000 1.378l.763.79a.99.99 0 01.27.827l-.155 1.087a.99.99 0 00.81 1.115l1.082.19a.99.99 0 01.704.511l.515.97zm5.096-1.44l-.511.963-.979-.478a1.99 1.99 0 00-1.748 0l-.979.478-.51-.962a1.991 1.991 0 00-1.415-1.028l-1.073-.188.152-1.079a1.991 1.991 0 00-.54-1.663L1.004 7l.757-.783a1.991 1.991 0 00.54-1.663L2.15 3.475l1.073-.188A1.991 1.991 0 004.636 2.26l.511-.962.979.478a1.99 1.99 0 001.748 0l.979-.478.51.962c.288.543.81.922 1.415 1.028l1.073.188-.152 1.079a1.99 1.99 0 00.54 1.663l.757.783-.757.783a1.99 1.99 0 00-.54 1.663l.152 1.079-1.073.188a1.991 1.991 0 00-1.414 1.028z",fill:e}))),mR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.354 3.896l5.5 5.5a.5.5 0 01-.708.708L7 4.957l-5.146 5.147a.5.5 0 01-.708-.708l5.5-5.5a.5.5 0 01.708 0z",fill:e}))),gR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),vR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.76 7.096a.498.498 0 00.136.258l5.5 5.5a.5.5 0 00.707-.708L3.958 7l5.147-5.146a.5.5 0 10-.708-.708l-5.5 5.5a.5.5 0 00-.137.45z",fill:e}))),J8=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),yR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),bR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),wR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),ER=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),xR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.854 4.646l-4.5-4.5a.5.5 0 00-.708 0l-4.5 4.5a.5.5 0 10.708.708L6.5 1.707V13.5a.5.5 0 001 0V1.707l3.646 3.647a.5.5 0 00.708-.708z",fill:e}))),DR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.5.5a.5.5 0 00-1 0v11.793L2.854 8.646a.5.5 0 10-.708.708l4.5 4.5a.5.5 0 00.351.146h.006c.127 0 .254-.05.35-.146l4.5-4.5a.5.5 0 00-.707-.708L7.5 12.293V.5z",fill:e}))),CR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.354 2.146a.5.5 0 010 .708L1.707 6.5H13.5a.5.5 0 010 1H1.707l3.647 3.646a.5.5 0 01-.708.708l-4.5-4.5a.5.5 0 010-.708l4.5-4.5a.5.5 0 01.708 0z",fill:e}))),SR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M8.646 2.146a.5.5 0 01.708 0l4.5 4.5a.5.5 0 010 .708l-4.5 4.5a.5.5 0 01-.708-.708L12.293 7.5H.5a.5.5 0 010-1h11.793L8.646 2.854a.5.5 0 010-.708z",fill:e}))),kR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.772 3.59c.126-.12.33-.12.456 0l5.677 5.387c.203.193.06.523-.228.523H1.323c-.287 0-.431-.33-.228-.523L6.772 3.59z",fill:e}))),AR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.228 10.41a.335.335 0 01-.456 0L1.095 5.023c-.203-.193-.06-.523.228-.523h11.354c.287 0 .431.33.228.523L7.228 10.41z",fill:e}))),FR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.712 7.212a.3.3 0 010-.424l5.276-5.276a.3.3 0 01.512.212v10.552a.3.3 0 01-.512.212L3.712 7.212z",fill:e}))),_R=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.288 7.212a.3.3 0 000-.424L5.012 1.512a.3.3 0 00-.512.212v10.552a.3.3 0 00.512.212l5.276-5.276z",fill:e}))),IR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.354.146l4 4a.5.5 0 01-.708.708L7 1.207 3.354 4.854a.5.5 0 11-.708-.708l4-4a.5.5 0 01.708 0zM11.354 9.146a.5.5 0 010 .708l-4 4a.5.5 0 01-.708 0l-4-4a.5.5 0 11.708-.708L7 12.793l3.646-3.647a.5.5 0 01.708 0z",fill:e}))),RR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.354.146a.5.5 0 10-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 00-.708-.708L7 3.793 3.354.146zM6.646 9.146a.5.5 0 01.708 0l4 4a.5.5 0 01-.708.708L7 10.207l-3.646 3.647a.5.5 0 01-.708-.708l4-4z",fill:e}))),TR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 1h2a.5.5 0 010 1h-.793l3.147 3.146a.5.5 0 11-.708.708L2 2.707V3.5a.5.5 0 01-1 0v-2a.5.5 0 01.5-.5zM10 1.5a.5.5 0 01.5-.5h2a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-.793L8.854 5.854a.5.5 0 11-.708-.708L11.293 2H10.5a.5.5 0 01-.5-.5zM12.5 10a.5.5 0 01.5.5v2a.5.5 0 01-.5.5h-2a.5.5 0 010-1h.793L8.146 8.854a.5.5 0 11.708-.708L12 11.293V10.5a.5.5 0 01.5-.5zM2 11.293V10.5a.5.5 0 00-1 0v2a.5.5 0 00.5.5h2a.5.5 0 000-1h-.793l3.147-3.146a.5.5 0 10-.708-.708L2 11.293z",fill:e}))),BR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6.646.147l-1.5 1.5a.5.5 0 10.708.707l.646-.647V5a.5.5 0 001 0V1.707l.646.647a.5.5 0 10.708-.707l-1.5-1.5a.5.5 0 00-.708 0z",fill:e}),l.createElement("path",{d:"M1.309 4.038a.498.498 0 00-.16.106l-.005.005a.498.498 0 00.002.705L3.293 7 1.146 9.146A.498.498 0 001.5 10h3a.5.5 0 000-1H2.707l1.5-1.5h5.586l2.353 2.354a.5.5 0 00.708-.708L10.707 7l2.146-2.146.11-.545-.107.542A.499.499 0 0013 4.503v-.006a.5.5 0 00-.144-.348l-.005-.005A.498.498 0 0012.5 4h-3a.5.5 0 000 1h1.793l-1.5 1.5H4.207L2.707 5H4.5a.5.5 0 000-1h-3a.498.498 0 00-.191.038z",fill:e}),l.createElement("path",{d:"M7 8.5a.5.5 0 01.5.5v3.293l.646-.647a.5.5 0 01.708.708l-1.5 1.5a.5.5 0 01-.708 0l-1.5-1.5a.5.5 0 01.708-.708l.646.647V9a.5.5 0 01.5-.5zM9 9.5a.5.5 0 01.5-.5h3a.5.5 0 010 1h-3a.5.5 0 01-.5-.5z",fill:e}))),zR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M10.646 2.646a.5.5 0 01.708 0l1.5 1.5a.5.5 0 010 .708l-1.5 1.5a.5.5 0 01-.708-.708L11.293 5H1.5a.5.5 0 010-1h9.793l-.647-.646a.5.5 0 010-.708zM3.354 8.354L2.707 9H12.5a.5.5 0 010 1H2.707l.647.646a.5.5 0 01-.708.708l-1.5-1.5a.5.5 0 010-.708l1.5-1.5a.5.5 0 11.708.708z",fill:e}))),LR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 1a.5.5 0 01.5.5V10a2 2 0 004 0V4a3 3 0 016 0v7.793l1.146-1.147a.5.5 0 01.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 01.708-.708L11 11.793V4a2 2 0 10-4 0v6.002a3 3 0 01-6 0V1.5a.5.5 0 01.5-.5z",fill:e}))),OR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),MR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4.354 2.146a.5.5 0 010 .708L1.707 5.5H9.5A4.5 4.5 0 0114 10v1.5a.5.5 0 01-1 0V10a3.5 3.5 0 00-3.5-3.5H1.707l2.647 2.646a.5.5 0 11-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 01.708 0z",fill:e}))),$R=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),PR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M8.646 5.854L7.5 4.707V10.5a.5.5 0 01-1 0V4.707L5.354 5.854a.5.5 0 11-.708-.708l2-2a.5.5 0 01.708 0l2 2a.5.5 0 11-.708.708z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),NR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.354 8.146L6.5 9.293V3.5a.5.5 0 011 0v5.793l1.146-1.147a.5.5 0 11.708.708l-2 2a.5.5 0 01-.708 0l-2-2a.5.5 0 11.708-.708z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm1 0a6 6 0 1112 0A6 6 0 011 7z",fill:e}))),HR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M5.854 5.354L4.707 6.5H10.5a.5.5 0 010 1H4.707l1.147 1.146a.5.5 0 11-.708.708l-2-2a.5.5 0 010-.708l2-2a.5.5 0 11.708.708z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0a7 7 0 110 14A7 7 0 017 0zm0 1a6 6 0 110 12A6 6 0 017 1z",fill:e}))),jR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.5 6.5h5.793L8.146 5.354a.5.5 0 11.708-.708l2 2a.5.5 0 010 .708l-2 2a.5.5 0 11-.708-.708L9.293 7.5H3.5a.5.5 0 010-1z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 117 0a7 7 0 010 14zm0-1A6 6 0 117 1a6 6 0 010 12z",fill:e}))),VR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),UR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 100 7a7 7 0 0014 0zm-6.535 5.738c-.233.23-.389.262-.465.262-.076 0-.232-.032-.465-.262-.238-.234-.497-.623-.737-1.182-.434-1.012-.738-2.433-.79-4.056h3.984c-.052 1.623-.356 3.043-.79 4.056-.24.56-.5.948-.737 1.182zM8.992 6.5H5.008c.052-1.623.356-3.044.79-4.056.24-.56.5-.948.737-1.182C6.768 1.032 6.924 1 7 1c.076 0 .232.032.465.262.238.234.497.623.737 1.182.434 1.012.738 2.433.79 4.056zm1 1c-.065 2.176-.558 4.078-1.282 5.253A6.005 6.005 0 0012.98 7.5H9.992zm2.987-1H9.992c-.065-2.176-.558-4.078-1.282-5.253A6.005 6.005 0 0112.98 6.5zm-8.971 0c.065-2.176.558-4.078 1.282-5.253A6.005 6.005 0 001.02 6.5h2.988zm-2.987 1a6.005 6.005 0 004.27 5.253C4.565 11.578 4.072 9.676 4.007 7.5H1.02z",fill:e}))),qR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.087 3.397L5.95 5.793a.374.374 0 00-.109.095.377.377 0 00-.036.052l-2.407 4.147a.374.374 0 00-.004.384c.104.179.334.24.513.136l4.142-2.404a.373.373 0 00.148-.143l2.406-4.146a.373.373 0 00-.037-.443.373.373 0 00-.478-.074zM4.75 9.25l2.847-1.652-1.195-1.195L4.75 9.25z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),WR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7a7 7 0 1114 0A7 7 0 010 7zm6.5 3.5v2.48A6.001 6.001 0 011.02 7.5H3.5a.5.5 0 000-1H1.02A6.001 6.001 0 016.5 1.02V3.5a.5.5 0 001 0V1.02a6.001 6.001 0 015.48 5.48H10.5a.5.5 0 000 1h2.48a6.002 6.002 0 01-5.48 5.48V10.5a.5.5 0 00-1 0z",fill:e}))),GR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5a2 2 0 11-4 0 2 2 0 014 0zM8 5a1 1 0 11-2 0 1 1 0 012 0z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5A5 5 0 002 5c0 2.633 2.273 6.154 4.65 8.643.192.2.508.2.7 0C9.726 11.153 12 7.633 12 5zM7 1a4 4 0 014 4c0 1.062-.471 2.42-1.303 3.88-.729 1.282-1.69 2.562-2.697 3.67-1.008-1.108-1.968-2.388-2.697-3.67C3.47 7.42 3 6.063 3 5a4 4 0 014-4z",fill:e}))),KR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 2a.5.5 0 01.5.5v4H10a.5.5 0 010 1H7a.5.5 0 01-.5-.5V2.5A.5.5 0 017 2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),YR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9.79 4.093a.5.5 0 01.117.698L7.91 7.586a1 1 0 11-.814-.581l1.997-2.796a.5.5 0 01.698-.116z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.069 12.968a7 7 0 119.863 0A12.962 12.962 0 007 12c-1.746 0-3.41.344-4.931.968zm9.582-1.177a6 6 0 10-9.301 0A13.98 13.98 0 017 11c1.629 0 3.194.279 4.65.791z",fill:e}))),JR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.5 4.5a.5.5 0 00-1 0v2.634a1 1 0 101 0V4.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5.5A.5.5 0 016 0h2a.5.5 0 010 1h-.5v1.02a5.973 5.973 0 013.374 1.398l.772-.772a.5.5 0 01.708.708l-.772.772A6 6 0 116.5 2.02V1H6a.5.5 0 01-.5-.5zM7 3a5 5 0 100 10A5 5 0 007 3z",fill:e}))),ZR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.354 1.146l5.5 5.5a.5.5 0 01-.708.708L12 7.207V12.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V9H6v3.5a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V7.207l-.146.147a.5.5 0 11-.708-.708l1-1 4.5-4.5a.5.5 0 01.708 0zM3 6.207V12h2V8.5a.5.5 0 01.5-.5h3a.5.5 0 01.5.5V12h2V6.207l-4-4-4 4z",fill:e}))),XR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.213 4.094a.5.5 0 01.056-.034l5.484-2.995a.498.498 0 01.494 0L12.73 4.06a.507.507 0 01.266.389.498.498 0 01-.507.555H1.51a.5.5 0 01-.297-.91zm2.246-.09h7.082L7 2.07 3.459 4.004z",fill:e}),l.createElement("path",{d:"M4 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM11 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM5.75 5.5a.5.5 0 01.5.5v5a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM8.75 6a.5.5 0 00-1 0v5a.5.5 0 001 0V6zM1.5 12.504a.5.5 0 01.5-.5h10a.5.5 0 010 1H2a.5.5 0 01-.5-.5z",fill:e}))),QR=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("g",{clipPath:"url(#prefix__clip0_1107_3594)"},l.createElement("path",{d:"M11.451.537l.01 12.922h0L7.61 8.946a1.077 1.077 0 00-.73-.374L.964 8.087 11.45.537h0z",stroke:e,strokeWidth:1.077})),l.createElement("defs",null,l.createElement("clipPath",{id:"prefix__clip0_1107_3594"},l.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"}))))),eT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zM2.671 11.155c.696-1.006 2.602-1.816 3.194-1.91.226-.036.232-.658.232-.658s-.665-.658-.81-1.544c-.39 0-.63-.94-.241-1.272a2.578 2.578 0 00-.012-.13c-.066-.607-.28-2.606 1.965-2.606 2.246 0 2.031 2 1.966 2.606l-.012.13c.39.331.149 1.272-.24 1.272-.146.886-.81 1.544-.81 1.544s.004.622.23.658c.593.094 2.5.904 3.195 1.91a6 6 0 10-8.657 0z",fill:e}))),tT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7.275 13.16a11.388 11.388 0 005.175-1.232v-.25c0-1.566-3.237-2.994-4.104-3.132-.27-.043-.276-.783-.276-.783s.791-.783.964-1.836c.463 0 .75-1.119.286-1.513C9.34 4 9.916 1.16 6.997 1.16c-2.92 0-2.343 2.84-2.324 3.254-.463.394-.177 1.513.287 1.513.172 1.053.963 1.836.963 1.836s-.006.74-.275.783c-.858.136-4.036 1.536-4.103 3.082a11.388 11.388 0 005.73 1.532z",fill:e}))),rT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.183 11.906a10.645 10.645 0 01-1.181-.589c.062-1.439 3.02-2.74 3.818-2.868.25-.04.256-.728.256-.728s-.736-.729-.896-1.709c-.432 0-.698-1.041-.267-1.408A2.853 2.853 0 002.9 4.46c-.072-.672-.31-2.884 2.175-2.884 2.486 0 2.248 2.212 2.176 2.884-.007.062-.012.112-.014.144.432.367.165 1.408-.266 1.408-.16.98-.896 1.709-.896 1.709s.005.688.256.728c.807.129 3.82 1.457 3.82 2.915v.233a10.598 10.598 0 01-4.816 1.146c-1.441 0-2.838-.282-4.152-.837zM11.5 2.16a.5.5 0 01.5.5v1.5h1.5a.5.5 0 010 1H12v1.5a.5.5 0 01-1 0v-1.5H9.5a.5.5 0 110-1H11v-1.5a.5.5 0 01.5-.5z",fill:e}))),nT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9.21 11.623a10.586 10.586 0 01-4.031.787A10.585 10.585 0 010 11.07c.06-1.354 2.933-2.578 3.708-2.697.243-.038.249-.685.249-.685s-.715-.685-.87-1.607c-.42 0-.679-.979-.26-1.323a2.589 2.589 0 00-.013-.136c-.07-.632-.3-2.712 2.113-2.712 2.414 0 2.183 2.08 2.113 2.712-.007.059-.012.105-.013.136.419.344.16 1.323-.259 1.323-.156.922-.87 1.607-.87 1.607s.005.647.248.685c.784.12 3.71 1.37 3.71 2.74v.22c-.212.103-.427.2-.646.29z",fill:e}),l.createElement("path",{d:"M8.81 8.417a9.643 9.643 0 00-.736-.398c.61-.42 1.396-.71 1.7-.757.167-.026.171-.471.171-.471s-.491-.471-.598-1.104c-.288 0-.466-.674-.178-.91-.001-.022-.005-.053-.01-.094-.048-.434-.206-1.864 1.453-1.864 1.66 0 1.5 1.43 1.453 1.864l-.01.094c.289.236.11.91-.178.91-.107.633-.598 1.104-.598 1.104s.004.445.171.47c.539.084 2.55.942 2.55 1.884v.628a10.604 10.604 0 01-3.302.553 2.974 2.974 0 00-.576-.879c-.375-.408-.853-.754-1.312-1.03z",fill:e}))),aT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M9.106 7.354c-.627.265-1.295.4-1.983.4a5.062 5.062 0 01-2.547-.681c.03-.688 1.443-1.31 1.824-1.37.12-.02.122-.348.122-.348s-.351-.348-.428-.816c-.206 0-.333-.498-.127-.673 0-.016-.003-.04-.007-.07C5.926 3.477 5.812 2.42 7 2.42c1.187 0 1.073 1.057 1.039 1.378l-.007.069c.207.175.08.673-.127.673-.076.468-.428.816-.428.816s.003.329.122.348c.386.06 1.825.696 1.825 1.392v.111c-.104.053-.21.102-.318.148zM3.75 11.25A.25.25 0 014 11h6a.25.25 0 110 .5H4a.25.25 0 01-.25-.25zM4 9a.25.25 0 000 .5h6a.25.25 0 100-.5H4z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 .5a.5.5 0 01.5-.5h11a.5.5 0 01.5.5v13a.5.5 0 01-.5.5h-11a.5.5 0 01-.5-.5V.5zM2 13V1h10v12H2z",fill:e}))),oT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.968 8.75a.5.5 0 00-.866.5A4.498 4.498 0 007 11.5c1.666 0 3.12-.906 3.898-2.25a.5.5 0 10-.866-.5A3.498 3.498 0 017 10.5a3.498 3.498 0 01-3.032-1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),iT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4.5 9a.5.5 0 000 1h5a.5.5 0 000-1h-5zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),lT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.968 10.25a.5.5 0 01-.866-.5A4.498 4.498 0 017 7.5c1.666 0 3.12.906 3.898 2.25a.5.5 0 11-.866.5A3.498 3.498 0 007 8.5a3.498 3.498 0 00-3.032 1.75zM5.5 5a1 1 0 11-2 0 1 1 0 012 0zM9.5 6a1 1 0 100-2 1 1 0 000 2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),sT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:e}),l.createElement("path",{d:"M7 4.5a1 1 0 100-2 1 1 0 000 2z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),uT=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zM8 3.5a1 1 0 11-2 0 1 1 0 012 0zM3.526 4.842a.5.5 0 01.632-.316l2.051.684a2.5 2.5 0 001.582 0l2.05-.684a.5.5 0 01.317.948l-2.453.818a.3.3 0 00-.205.285v.243a4.5 4.5 0 00.475 2.012l.972 1.944a.5.5 0 11-.894.448L7 9.118l-1.053 2.106a.5.5 0 11-.894-.447l.972-1.945A4.5 4.5 0 006.5 6.82v-.243a.3.3 0 00-.205-.285l-2.453-.818a.5.5 0 01-.316-.632z",fill:e}))),cT=0,dT=c(e=>e.button===cT&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,"isPlainLeftClick"),pT=c((e,t)=>{dT(e)&&(e.preventDefault(),t(e))},"cancelled"),fT=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),hT=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Vn(.07,e.color.secondary),"svg path:not([fill])":{fill:Vn(.07,e.color.secondary)}},"&:active":{color:Vn(.1,e.color.secondary),"svg path:not([fill])":{fill:Vn(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),ea=c(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:o=void 0,style:i=void 0,...s})=>v.createElement(hT,{...s,onClick:r&&e?u=>pT(u,r):r,className:o},v.createElement(fT,{withArrow:n,containsIcon:a},t,n&&v.createElement(J8,null))),"Link"),SG=F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}})),un=[],va=null,mT=l.lazy(async()=>{let{SyntaxHighlighter:e}=await Promise.resolve().then(()=>(Cs(),pp));return un.length>0&&(un.forEach(t=>{e.registerLanguage(...t)}),un=[]),va===null&&(va=e),{default:c(t=>v.createElement(e,{...t}),"default")}}),gT=l.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Promise.resolve().then(()=>(Cs(),pp)),Promise.resolve().then(()=>(Bk(),k6))]);return un.length>0&&(un.forEach(r=>{e.registerLanguage(...r)}),un=[]),va===null&&(va=e),{default:c(r=>v.createElement(e,{...r,formatter:t}),"default")}}),Ff=c(e=>v.createElement(l.Suspense,{fallback:v.createElement("div",null)},e.format!==!1?v.createElement(gT,{...e}):v.createElement(mT,{...e})),"SyntaxHighlighter");Ff.registerLanguage=(...e)=>{if(va!==null){va.registerLanguage(...e);return}un.push(e)};Cs();Wy();var Z8={};Ca(Z8,{Close:()=>YE,Content:()=>WE,Description:()=>KE,Dialog:()=>RE,DialogClose:()=>jE,DialogContent:()=>ME,DialogDescription:()=>HE,DialogOverlay:()=>OE,DialogPortal:()=>LE,DialogTitle:()=>NE,DialogTrigger:()=>TE,Overlay:()=>qE,Portal:()=>UE,Root:()=>VE,Title:()=>GE,Trigger:()=>uB,WarningProvider:()=>sB,createDialogScope:()=>XT});St();up();Sa();eb();lp();var vT=l.useId||(()=>{}),yT=0;function pl(e){let[t,r]=l.useState(vT());return Fo(()=>{e||r(n=>n??String(yT++))},[e]),e||(t?`radix-${t}`:"")}c(pl,"$1746a345f3d73bb7$export$f680877a34711e37");Zo();function X8({prop:e,defaultProp:t,onChange:r=c(()=>{},"onChange")}){let[n,a]=Q8({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:n,s=ze(r),u=l.useCallback(d=>{if(o){let p=typeof d=="function"?d(e):d;p!==e&&s(p)}else a(d)},[o,e,a,s]);return[i,u]}c(X8,"$71cd76cc60e0454e$export$6f32135080cb4c3");function Q8({defaultProp:e,onChange:t}){let r=l.useState(e),[n]=r,a=l.useRef(n),o=ze(t);return l.useEffect(()=>{a.current!==n&&(o(n),a.current=n)},[n,a,o]),r}c(Q8,"$71cd76cc60e0454e$var$useUncontrolledState");St();up();Jo();Sa();Zo();Zo();function eE(e,t=globalThis==null?void 0:globalThis.document){let r=ze(e);l.useEffect(()=>{let n=c(a=>{a.key==="Escape"&&r(a)},"handleKeyDown");return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}c(eE,"$addc16e1bbe58fd0$export$3a72a57244d6e765");var n1="dismissableLayer.update",bT="dismissableLayer.pointerDownOutside",wT="dismissableLayer.focusOutside",jv,ET=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xT=l.forwardRef((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:u,...d}=e,p=l.useContext(ET),[m,f]=l.useState(null),h=(r=m==null?void 0:m.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=l.useState({}),y=Ke(t,A=>f(A)),b=Array.from(p.layers),[D]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),w=b.indexOf(D),x=m?b.indexOf(m):-1,E=p.layersWithOutsidePointerEventsDisabled.size>0,C=x>=w,S=tE(A=>{let _=A.target,R=[...p.branches].some(T=>T.contains(_));!C||R||(o==null||o(A),s==null||s(A),A.defaultPrevented||(u==null||u()))},h),k=rE(A=>{let _=A.target;[...p.branches].some(R=>R.contains(_))||(i==null||i(A),s==null||s(A),A.defaultPrevented||(u==null||u()))},h);return eE(A=>{x===p.layers.size-1&&(a==null||a(A),!A.defaultPrevented&&u&&(A.preventDefault(),u()))},h),l.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(jv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),a1(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=jv)}},[m,h,n,p]),l.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),a1())},[m,p]),l.useEffect(()=>{let A=c(()=>g({}),"handleUpdate");return document.addEventListener(n1,A),()=>document.removeEventListener(n1,A)},[]),l.createElement($e.div,q({},d,{ref:y,style:{pointerEvents:E?C?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,S.onPointerDownCapture)}))});function tE(e,t=globalThis==null?void 0:globalThis.document){let r=ze(e),n=l.useRef(!1),a=l.useRef(()=>{});return l.useEffect(()=>{let o=c(s=>{if(s.target&&!n.current){let u=function(){_f(bT,r,d,{discrete:!0})};c(u,"handleAndDispatchPointerDownOutsideEvent");let d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=u,t.addEventListener("click",a.current,{once:!0})):u()}else t.removeEventListener("click",a.current);n.current=!1},"handlePointerDown"),i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:c(()=>n.current=!0,"onPointerDownCapture")}}c(tE,"$5cb92bef7577960e$var$usePointerDownOutside");function rE(e,t=globalThis==null?void 0:globalThis.document){let r=ze(e),n=l.useRef(!1);return l.useEffect(()=>{let a=c(o=>{o.target&&!n.current&&_f(wT,r,{originalEvent:o},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:c(()=>n.current=!0,"onFocusCapture"),onBlurCapture:c(()=>n.current=!1,"onBlurCapture")}}c(rE,"$5cb92bef7577960e$var$useFocusOutside");function a1(){let e=new CustomEvent(n1);document.dispatchEvent(e)}c(a1,"$5cb92bef7577960e$var$dispatchUpdate");function _f(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Yy(a,o):a.dispatchEvent(o)}c(_f,"$5cb92bef7577960e$var$handleAndDispatchCustomEvent");St();Sa();Jo();Zo();var v0="focusScope.autoFocusOnMount",y0="focusScope.autoFocusOnUnmount",Vv={bubbles:!1,cancelable:!0},DT=l.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...i}=e,[s,u]=l.useState(null),d=ze(a),p=ze(o),m=l.useRef(null),f=Ke(t,y=>u(y)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let y=function(x){if(h.paused||!s)return;let E=x.target;s.contains(E)?m.current=E:ur(m.current,{select:!0})},b=function(x){if(h.paused||!s)return;let E=x.relatedTarget;E!==null&&(s.contains(E)||ur(m.current,{select:!0}))},D=function(x){if(document.activeElement===document.body)for(let E of x)E.removedNodes.length>0&&ur(s)};c(y,"handleFocusIn"),c(b,"handleFocusOut"),c(D,"handleMutations"),document.addEventListener("focusin",y),document.addEventListener("focusout",b);let w=new MutationObserver(D);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",b),w.disconnect()}}},[n,s,h.paused]),l.useEffect(()=>{if(s){Uv.add(h);let y=document.activeElement;if(!s.contains(y)){let b=new CustomEvent(v0,Vv);s.addEventListener(v0,d),s.dispatchEvent(b),b.defaultPrevented||(nE(sE(If(s)),{select:!0}),document.activeElement===y&&ur(s))}return()=>{s.removeEventListener(v0,d),setTimeout(()=>{let b=new CustomEvent(y0,Vv);s.addEventListener(y0,p),s.dispatchEvent(b),b.defaultPrevented||ur(y??document.body,{select:!0}),s.removeEventListener(y0,p),Uv.remove(h)},0)}}},[s,d,p,h]);let g=l.useCallback(y=>{if(!r&&!n||h.paused)return;let b=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,D=document.activeElement;if(b&&D){let w=y.currentTarget,[x,E]=aE(w);x&&E?!y.shiftKey&&D===E?(y.preventDefault(),r&&ur(x,{select:!0})):y.shiftKey&&D===x&&(y.preventDefault(),r&&ur(E,{select:!0})):D===w&&y.preventDefault()}},[r,n,h.paused]);return l.createElement($e.div,q({tabIndex:-1},i,{ref:f,onKeyDown:g}))});function nE(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ur(n,{select:t}),document.activeElement!==r)return}c(nE,"$d3863c46a17e8a28$var$focusFirst");function aE(e){let t=If(e),r=o1(t,e),n=o1(t.reverse(),e);return[r,n]}c(aE,"$d3863c46a17e8a28$var$getTabbableEdges");function If(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:c(n=>{let a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}c(If,"$d3863c46a17e8a28$var$getTabbableCandidates");function o1(e,t){for(let r of e)if(!oE(r,{upTo:t}))return r}c(o1,"$d3863c46a17e8a28$var$findVisible");function oE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}c(oE,"$d3863c46a17e8a28$var$isHidden");function iE(e){return e instanceof HTMLInputElement&&"select"in e}c(iE,"$d3863c46a17e8a28$var$isSelectableInput");function ur(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&iE(e)&&t&&e.select()}}c(ur,"$d3863c46a17e8a28$var$focus");var Uv=lE();function lE(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=i1(e,t),e.unshift(t)},remove(t){var r;e=i1(e,t),(r=e[0])===null||r===void 0||r.resume()}}}c(lE,"$d3863c46a17e8a28$var$createFocusScopesStack");function i1(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}c(i1,"$d3863c46a17e8a28$var$arrayRemove");function sE(e){return e.filter(t=>t.tagName!=="A")}c(sE,"$d3863c46a17e8a28$var$removeLinks");St();Jo();var CT=l.forwardRef((e,t)=>{var r;let{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...a}=e;return n?j4.createPortal(l.createElement($e.div,q({},a,{ref:t})),n):null});Zy();Jo();var b0=0;function uE(){l.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:l1()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:l1()),b0++,()=>{b0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),b0--}},[])}c(uE,"$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c");function l1(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}c(l1,"$3db38b7d1fb3fe6a$var$createFocusGuard");var Nt=c(function(){return Nt=Object.assign||c(function(e){for(var t,r=1,n=arguments.length;r"u")return IT;var t=RT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},"getGapWidth"),BT=xE(),os="data-scroll-locked",zT=c(function(e,t,r,n){var a=e.left,o=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),` + .`.concat(ST,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(s,"px ").concat(n,`; + } + body[`).concat(os,`] { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(a,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(i,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(s,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat(fl,` { + right: `).concat(s,"px ").concat(n,`; + } + + .`).concat(hl,` { + margin-right: `).concat(s,"px ").concat(n,`; + } + + .`).concat(fl," .").concat(fl,` { + right: 0 `).concat(n,`; + } + + .`).concat(hl," .").concat(hl,` { + margin-right: 0 `).concat(n,`; + } + + body[`).concat(os,`] { + `).concat(kT,": ").concat(s,`px; + } +`)},"getStyles"),LT=c(function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n,o=l.useMemo(function(){return TT(a)},[a]);return l.useEffect(function(){return document.body.setAttribute(os,""),function(){document.body.removeAttribute(os)}},[]),l.createElement(BT,{styles:zT(o,!t,a,r?"":"!important")})},"RemoveScrollBar"),s1=!1;if(typeof window<"u")try{to=Object.defineProperty({},"passive",{get:c(function(){return s1=!0,!0},"get")}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{s1=!1}var to,zn=s1?{passive:!1}:!1,OT=c(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),DE=c(function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!OT(e)&&r[t]==="visible")},"elementCanBeScrolled"),MT=c(function(e){return DE(e,"overflowY")},"elementCouldBeVScrolled"),$T=c(function(e){return DE(e,"overflowX")},"elementCouldBeHScrolled"),Wv=c(function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=CE(e,r);if(n){var a=SE(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},"locationCouldBeScrolled"),PT=c(function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},"getVScrollVariables"),NT=c(function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},"getHScrollVariables"),CE=c(function(e,t){return e==="v"?MT(t):$T(t)},"elementCouldBeScrolled"),SE=c(function(e,t){return e==="v"?PT(t):NT(t)},"getScrollVariables"),HT=c(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),jT=c(function(e,t,r,n,a){var o=HT(e,window.getComputedStyle(t).direction),i=o*n,s=r.target,u=t.contains(s),d=!1,p=i>0,m=0,f=0;do{var h=SE(e,s),g=h[0],y=h[1],b=h[2],D=y-b-o*g;(g||D)&&CE(e,s)&&(m+=D,f+=g),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(p&&(a&&m===0||!a&&i>m)||!p&&(a&&f===0||!a&&-i>f))&&(d=!0),d},"handleScroll"),Ni=c(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),Gv=c(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),Kv=c(function(e){return e&&"current"in e?e.current:e},"extractRef"),VT=c(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),UT=c(function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},"generateStyle"),qT=0,Ln=[];function kE(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),a=l.useState(qT++)[0],o=l.useState(function(){return xE()})[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=cE([e.lockRef.current],(e.shards||[]).map(Kv),!0).filter(Boolean);return y.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(y,b){if("touches"in y&&y.touches.length===2)return!i.current.allowPinchZoom;var D=Ni(y),w=r.current,x="deltaX"in y?y.deltaX:w[0]-D[0],E="deltaY"in y?y.deltaY:w[1]-D[1],C,S=y.target,k=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in y&&k==="h"&&S.type==="range")return!1;var A=Wv(k,S);if(!A)return!0;if(A?C=k:(C=k==="v"?"h":"v",A=Wv(k,S)),!A)return!1;if(!n.current&&"changedTouches"in y&&(x||E)&&(n.current=C),!C)return!0;var _=n.current||C;return jT(_,b,y,_==="h"?x:E,!0)},[]),u=l.useCallback(function(y){var b=y;if(!(!Ln.length||Ln[Ln.length-1]!==o)){var D="deltaY"in b?Gv(b):Ni(b),w=t.current.filter(function(C){return C.name===b.type&&C.target===b.target&&VT(C.delta,D)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(Kv).filter(Boolean).filter(function(C){return C.contains(b.target)}),E=x.length>0?s(b,x[0]):!i.current.noIsolation;E&&b.cancelable&&b.preventDefault()}}},[]),d=l.useCallback(function(y,b,D,w){var x={name:y,delta:b,target:D,should:w};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),p=l.useCallback(function(y){r.current=Ni(y),n.current=void 0},[]),m=l.useCallback(function(y){d(y.type,Gv(y),y.target,s(y,e.lockRef.current))},[]),f=l.useCallback(function(y){d(y.type,Ni(y),y.target,s(y,e.lockRef.current))},[]);l.useEffect(function(){return Ln.push(o),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:f}),document.addEventListener("wheel",u,zn),document.addEventListener("touchmove",u,zn),document.addEventListener("touchstart",p,zn),function(){Ln=Ln.filter(function(y){return y!==o}),document.removeEventListener("wheel",u,zn),document.removeEventListener("touchmove",u,zn),document.removeEventListener("touchstart",p,zn)}},[]);var h=e.removeScrollBar,g=e.inert;return l.createElement(l.Fragment,null,g?l.createElement(o,{styles:UT(a)}):null,h?l.createElement(LT,{gapMode:"margin"}):null)}c(kE,"RemoveScrollSideCar");var WT=vE(yE,kE),AE=l.forwardRef(function(e,t){return l.createElement(tu,Nt({},e,{ref:t,sideCar:WT}))});AE.classNames=tu.classNames;var GT=AE,KT=c(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),On=new WeakMap,Hi=new WeakMap,ji={},x0=0,FE=c(function(e){return e&&(e.host||FE(e.parentNode))},"unwrapHost"),YT=c(function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=FE(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),JT=c(function(e,t,r,n){var a=YT(t,Array.isArray(e)?e:[e]);ji[r]||(ji[r]=new WeakMap);var o=ji[r],i=[],s=new Set,u=new Set(a),d=c(function(m){!m||s.has(m)||(s.add(m),d(m.parentNode))},"keep");a.forEach(d);var p=c(function(m){!m||u.has(m)||Array.prototype.forEach.call(m.children,function(f){if(s.has(f))p(f);else{var h=f.getAttribute(n),g=h!==null&&h!=="false",y=(On.get(f)||0)+1,b=(o.get(f)||0)+1;On.set(f,y),o.set(f,b),i.push(f),y===1&&g&&Hi.set(f,!0),b===1&&f.setAttribute(r,"true"),g||f.setAttribute(n,"true")}})},"deep");return p(t),s.clear(),x0++,function(){i.forEach(function(m){var f=On.get(m)-1,h=o.get(m)-1;On.set(m,f),o.set(m,h),f||(Hi.has(m)||m.removeAttribute(n),Hi.delete(m)),h||m.removeAttribute(r)}),x0--,x0||(On=new WeakMap,On=new WeakMap,Hi=new WeakMap,ji={})}},"applyAttributeToOthers"),ZT=c(function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||KT(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),JT(n,a,r,"aria-hidden")):function(){return null}},"hideOthers");ip();var _E="Dialog",[IE,XT]=sp(_E),[QT,kt]=IE(_E),RE=c(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,s=l.useRef(null),u=l.useRef(null),[d=!1,p]=X8({prop:n,defaultProp:a,onChange:o});return l.createElement(QT,{scope:t,triggerRef:s,contentRef:u,contentId:pl(),titleId:pl(),descriptionId:pl(),open:d,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(m=>!m),[p]),modal:i},r)},"$5d3850c4d0b4e6c7$export$3ddf2d174ce01153"),eB="DialogTrigger",TE=l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=kt(eB,r),o=Ke(t,a.triggerRef);return l.createElement($e.button,q({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":ru(a.open)},n,{ref:o,onClick:Ie(e.onClick,a.onOpenToggle)}))}),BE="DialogPortal",[tB,zE]=IE(BE,{forceMount:void 0}),LE=c(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=kt(BE,t);return l.createElement(tB,{scope:t,forceMount:r},l.Children.map(n,i=>l.createElement(cr,{present:r||o.open},l.createElement(CT,{asChild:!0,container:a},i))))},"$5d3850c4d0b4e6c7$export$dad7c95542bacce0"),u1="DialogOverlay",OE=l.forwardRef((e,t)=>{let r=zE(u1,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=kt(u1,e.__scopeDialog);return o.modal?l.createElement(cr,{present:n||o.open},l.createElement(rB,q({},a,{ref:t}))):null}),rB=l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=kt(u1,r);return l.createElement(GT,{as:Ao,allowPinchZoom:!0,shards:[a.contentRef]},l.createElement($e.div,q({"data-state":ru(a.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),ya="DialogContent",ME=l.forwardRef((e,t)=>{let r=zE(ya,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=kt(ya,e.__scopeDialog);return l.createElement(cr,{present:n||o.open},o.modal?l.createElement(nB,q({},a,{ref:t})):l.createElement(aB,q({},a,{ref:t})))}),nB=l.forwardRef((e,t)=>{let r=kt(ya,e.__scopeDialog),n=l.useRef(null),a=Ke(t,r.contentRef,n);return l.useEffect(()=>{let o=n.current;if(o)return ZT(o)},[]),l.createElement($E,q({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,o=>{let i=o.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&o.preventDefault()}),onFocusOutside:Ie(e.onFocusOutside,o=>o.preventDefault())}))}),aB=l.forwardRef((e,t)=>{let r=kt(ya,e.__scopeDialog),n=l.useRef(!1),a=l.useRef(!1);return l.createElement($E,q({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c(o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var s;n.current||(s=r.triggerRef.current)===null||s===void 0||s.focus(),o.preventDefault()}n.current=!1,a.current=!1},"onCloseAutoFocus"),onInteractOutside:c(o=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));let u=o.target;!((s=r.triggerRef.current)===null||s===void 0)&&s.contains(u)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()},"onInteractOutside")}))}),$E=l.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...i}=e,s=kt(ya,r),u=l.useRef(null),d=Ke(t,u);return uE(),l.createElement(l.Fragment,null,l.createElement(DT,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},l.createElement(xT,q({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ru(s.open)},i,{ref:d,onDismiss:c(()=>s.onOpenChange(!1),"onDismiss")}))),!1)}),PE="DialogTitle",NE=l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=kt(PE,r);return l.createElement($e.h2,q({id:a.titleId},n,{ref:t}))}),oB="DialogDescription",HE=l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=kt(oB,r);return l.createElement($e.p,q({id:a.descriptionId},n,{ref:t}))}),iB="DialogClose",jE=l.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=kt(iB,r);return l.createElement($e.button,q({type:"button"},n,{ref:t,onClick:Ie(e.onClick,()=>a.onOpenChange(!1))}))});function ru(e){return e?"open":"closed"}c(ru,"$5d3850c4d0b4e6c7$var$getState");var lB="DialogTitleWarning",[sB,kG]=Xy(lB,{contentName:ya,titleName:PE,docsSlug:"dialog"}),VE=RE,uB=TE,UE=LE,qE=OE,WE=ME,GE=NE,KE=HE,YE=jE,JE={};Ca(JE,{Actions:()=>yB,CloseButton:()=>e9,Col:()=>r9,Container:()=>QE,Content:()=>hB,Description:()=>vB,Error:()=>bB,ErrorWrapper:()=>n9,Header:()=>mB,Overlay:()=>XE,Row:()=>t9,Title:()=>gB});ip();const{deprecate:cB}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Sn=l.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:o=!1,active:i=!1,onClick:s,...u},d)=>{let p="button";u.isLink&&(p="a"),e&&(p=Ao);let m=n,f=r,[h,g]=l.useState(!1),y=c(b=>{s&&s(b),t!=="none"&&g(!0)},"handleClick");if(l.useEffect(()=>{let b=setTimeout(()=>{h&&g(!1)},1e3);return()=>clearTimeout(b)},[h]),u.primary&&(m="solid",f="medium"),(u.secondary||u.tertiary||u.gray||u.outline||u.inForm)&&(m="outline",f="medium"),u.small||u.isLink||u.primary||u.secondary||u.tertiary||u.gray||u.outline||u.inForm||u.containsIcon){let b=v.Children.toArray(u.children).filter(D=>typeof D=="string"&&D!=="");cB(`Use of deprecated props in the button ${b.length>0?`"${b.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return v.createElement(dB,{as:p,ref:d,variant:m,size:f,padding:a,disabled:o,active:i,animating:h,animation:t,onClick:y,...u})});Sn.displayName="Button";var dB=F("button",{shouldForwardProp:c(e=>B1(e),"shouldForwardProp")})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:o,animation:i="none",padding:s})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:s==="small"&&r==="small"?"0 7px":s==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?nt(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:nt(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:nt(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${Ho(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?nt(.86,e.color.secondary):e.base==="light"?Vn(.02,u):Hv(.03,u)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let u=e.color.secondary;return t==="solid"&&(u=e.color.secondary),t==="outline"&&(u=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Vn(.02,u):Hv(.03,u)})()},"&:focus":{boxShadow:`${Ho(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:o&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),cn=l.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>v.createElement(Sn,{padding:e,variant:t,ref:n,...r}));cn.displayName="IconButton";var ZE=mr({from:{opacity:0},to:{opacity:1}}),pB=mr({from:{maxHeight:0},to:{}}),fB=mr({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),XE=F.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${ZE} 200ms`}),QE=F.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${fB} 200ms`,"&:focus-visible":{outline:"none"}})),e9=c(e=>v.createElement(YE,{asChild:!0},v.createElement(cn,{...e},v.createElement(Y8,null))),"CloseButton"),hB=F.div({display:"flex",flexDirection:"column",margin:16,gap:16}),t9=F.div({display:"flex",justifyContent:"space-between",gap:16}),r9=F.div({display:"flex",flexDirection:"column",gap:4}),mB=c(e=>v.createElement(t9,null,v.createElement(r9,{...e}),v.createElement(e9,null)),"Header"),gB=F(GE)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),vB=F(KE)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),yB=F.div({display:"flex",flexDirection:"row-reverse",gap:8}),n9=F.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${pB} 300ms, ${ZE} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),bB=c(({children:e,...t})=>v.createElement(n9,{...t},v.createElement("div",null,e)),"Error");function a9({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=c(u=>u.preventDefault(),"onInteractOutside"),className:o,container:i,...s}){return v.createElement(VE,{...s},v.createElement(UE,{container:i},v.createElement(qE,{asChild:!0},v.createElement(XE,null)),v.createElement(WE,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},v.createElement(QE,{className:o,width:t,height:r},e))))}c(a9,"BaseModal");var AG=Object.assign(a9,JE,{Dialog:Z8}),wB=c(e=>typeof e=="number"?e:Number(e),"toNumber"),EB=F.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${N0}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${N0}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),FG=c(({col:e,row:t,outer:r,children:n,...a})=>{let o=wB(typeof r=="number"||!r?r:e||t);return v.createElement(EB,{col:e,row:t,outer:o,...a},n)},"Spaced"),xB=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),DB=F.div(),CB=F.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),_G=c(({children:e,...t})=>{let[r,n]=l.Children.toArray(e);return v.createElement(CB,{...t},v.createElement(xB,null,r),n&&v.createElement(DB,null,n))},"Placeholder");dp();function o9(e,t){var r=l.useRef(null),n=l.useRef(null);n.current=t;var a=l.useRef(null);l.useEffect(function(){o()});var o=l.useCallback(function(){var i=a.current,s=n.current,u=i||(s?s instanceof Element?s:s.current:null);r.current&&r.current.element===u&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:u,subscriber:e,cleanup:u?e(u):void 0})},[e]);return l.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),l.useCallback(function(i){a.current=i,o()},[o])}c(o9,"useResolvedElement");function c1(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}c(c1,"extractSize");function Tf(e){e===void 0&&(e={});var t=e.onResize,r=l.useRef(void 0);r.current=t;var n=e.round||Math.round,a=l.useRef(),o=l.useState({width:void 0,height:void 0}),i=o[0],s=o[1],u=l.useRef(!1);l.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);var d=l.useRef({width:void 0,height:void 0}),p=o9(l.useCallback(function(m){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(f){var h=f[0],g=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=c1(h,g,"inlineSize"),b=c1(h,g,"blockSize"),D=y?n(y):void 0,w=b?n(b):void 0;if(d.current.width!==D||d.current.height!==w){var x={width:D,height:w};d.current.width=D,d.current.height=w,r.current?r.current(x):u.current||s(x)}})}),a.current.instance.observe(m,{box:e.box}),function(){a.current&&a.current.instance.unobserve(m)}},[e.box,n]),e.ref);return l.useMemo(function(){return{ref:p,width:i.width,height:i.height}},[p,i.width,i.height])}c(Tf,"useResizeObserver");var SB=F.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function i9({scale:e,children:t}){let r=l.useRef(null),[n,a]=l.useState(0),o=l.useCallback(({height:i})=>{i&&a(i/e)},[e]);return l.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),Tf({ref:r,onResize:o}),v.createElement(SB,{scale:e,elementHeight:n},v.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}c(i9,"ZoomElement");var l9=class extends l.Component{constructor(){super(...arguments);yr(this,"iframe",null)}componentDidMount(){let{iFrameRef:r}=this.props;this.iframe=r.current}shouldComponentUpdate(r){let{scale:n,active:a}=this.props;return n!==r.scale&&this.setIframeInnerZoom(r.scale),a!==r.active&&this.iframe.setAttribute("data-is-storybook",r.active?"true":"false"),r.children.props.src!==this.props.children.props.src}setIframeInnerZoom(r){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${r*100}%`,height:`${r*100}%`,transform:`scale(${1/r})`,transformOrigin:"top left"})}catch{this.setIframeZoom(r)}}setIframeZoom(r){Object.assign(this.iframe.style,{width:`${r*100}%`,height:`${r*100}%`,transform:`scale(${1/r})`,transformOrigin:"top left"})}render(){let{children:r}=this.props;return v.createElement(v.Fragment,null,r)}};c(l9,"ZoomIFrame");var kB=l9,AB={Element:i9,IFrame:kB};Y1();var{document:FB}=ws,_B=F.strong(({theme:e})=>({color:e.color.orange})),IB=F.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Yv=F.em(({theme:e})=>({color:e.textMutedColor})),RB=/(Error): (.*)\n/,TB=/at (?:(.*) )?\(?(.+)\)?/,BB=/([^@]+)?(?:\/<)?@(.+)?/,zB=/([^@]+)?@(.+)?/,LB=c(({error:e})=>{if(!e)return v.createElement(l.Fragment,null,"This error has no stack or message");if(!e.stack)return v.createElement(l.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} + +${t}`);let r=t.match(RB);if(!r)return v.createElement(l.Fragment,null,t);let[,n,a]=r,o=t.split(/\n/).slice(1),[,...i]=o.map(s=>{let u=s.match(TB)||s.match(BB)||s.match(zB);return u?{name:(u[1]||"").replace("/<",""),location:u[2].replace(FB.location.origin,"")}:null}).filter(Boolean);return v.createElement(l.Fragment,null,v.createElement("span",null,n),": ",v.createElement(_B,null,a),v.createElement("br",null),i.map((s,u)=>s!=null&&s.name?v.createElement(l.Fragment,{key:u}," ","at ",v.createElement(IB,null,s.name)," (",v.createElement(Yv,null,s.location),")",v.createElement("br",null)):v.createElement(l.Fragment,{key:u}," ","at ",v.createElement(Yv,null,s==null?void 0:s.location),v.createElement("br",null))))},"ErrorFormatter"),OB=F.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),MB=F.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),$B=c(({label:e,children:t,...r})=>v.createElement(OB,{...r},e?v.createElement(MB,null,v.createElement("span",null,e)):null,t),"Field");St();J1();var PB=l.useLayoutEffect,NB=PB,HB=c(function(e){var t=l.useRef(e);return NB(function(){t.current=e}),t},"useLatest"),Jv=c(function(e,t){if(typeof e=="function"){e(t);return}e.current=t},"updateRef"),jB=c(function(e,t){var r=l.useRef();return l.useCallback(function(n){e.current=n,r.current&&Jv(r.current,null),r.current=t,t&&Jv(t,n)},[t])},"useComposedRef"),VB=jB,Zv={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},UB=c(function(e){Object.keys(Zv).forEach(function(t){e.style.setProperty(t,Zv[t],"important")})},"forceHiddenStyles"),Xv=UB,Te=null,Qv=c(function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize},"getHeight");function s9(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Te||(Te=document.createElement("textarea"),Te.setAttribute("tabindex","-1"),Te.setAttribute("aria-hidden","true"),Xv(Te)),Te.parentNode===null&&document.body.appendChild(Te);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,s=i.boxSizing;Object.keys(i).forEach(function(f){var h=f;Te.style[h]=i[h]}),Xv(Te),Te.value=t;var u=Qv(Te,e);Te.value=t,u=Qv(Te,e),Te.value="x";var d=Te.scrollHeight-a,p=d*r;s==="border-box"&&(p=p+a+o),u=Math.max(p,u);var m=d*n;return s==="border-box"&&(m=m+a+o),u=Math.min(m,u),[u,d]}c(s9,"calculateNodeHeight");var e4=c(function(){},"noop"),qB=c(function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},"pick"),WB=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],GB=!!document.documentElement.currentStyle,KB=c(function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=qB(WB,t),n=r.boxSizing;if(n==="")return null;GB&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:o}},"getSizingData"),YB=KB;function Bf(e,t,r){var n=HB(r);l.useLayoutEffect(function(){var a=c(function(o){return n.current(o)},"handler");if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}c(Bf,"useListener");var JB=c(function(e){Bf(window,"resize",e)},"useWindowResizeListener"),ZB=c(function(e){Bf(document.fonts,"loadingdone",e)},"useFontsLoadedListener"),XB=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],QB=c(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,o=e.onChange,i=o===void 0?e4:o,s=e.onHeightChange,u=s===void 0?e4:s,d=xs(e,XB),p=d.value!==void 0,m=l.useRef(null),f=VB(m,t),h=l.useRef(0),g=l.useRef(),y=c(function(){var D=m.current,w=r&&g.current?g.current:YB(D);if(w){g.current=w;var x=s9(w,D.value||D.placeholder||"x",a,n),E=x[0],C=x[1];h.current!==E&&(h.current=E,D.style.setProperty("height",E+"px","important"),u(E,{rowHeight:C}))}},"resizeTextarea"),b=c(function(D){p||y(),i(D)},"handleChange");return l.useLayoutEffect(y),JB(y),ZB(y),l.createElement("textarea",q({},d,{onChange:b,ref:f}))},"TextareaAutosize"),ez=l.forwardRef(QB),tz={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},zf=c(({theme:e})=>({...tz,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),"styles"),Lf=c(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},"sizes"),u9=c(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},"alignment"),Of=c(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},"validation"),rz=Object.assign(F(l.forwardRef(c(function({size:e,valid:t,align:r,...n},a){return v.createElement("input",{...n,ref:a})},"Input")))(zf,Lf,u9,Of,{minHeight:32}),{displayName:"Input"}),nz=Object.assign(F(l.forwardRef(c(function({size:e,valid:t,align:r,...n},a){return v.createElement("select",{...n,ref:a})},"Select")))(zf,Lf,Of,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),az=Object.assign(F(l.forwardRef(c(function({size:e,valid:t,align:r,...n},a){return v.createElement(ez,{...n,ref:a})},"Textarea")))(zf,Lf,u9,Of,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),mi=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:$B,Input:rz,Select:nz,Textarea:az,Button:Sn}),oz=l.lazy(()=>Promise.resolve().then(()=>(Df(),xf)).then(e=>({default:e.WithTooltip}))),RG=c(e=>v.createElement(l.Suspense,{fallback:v.createElement("div",null)},v.createElement(oz,{...e})),"WithTooltip"),iz=l.lazy(()=>Promise.resolve().then(()=>(Df(),xf)).then(e=>({default:e.WithTooltipPure}))),lz=c(e=>v.createElement(l.Suspense,{fallback:v.createElement("div",null)},v.createElement(iz,{...e})),"WithTooltipPure"),sz=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),uz=F.span(),cz=F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),dz=F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),pz=F.div({padding:15,width:280,boxSizing:"border-box"}),TG=c(({title:e,desc:t,links:r})=>v.createElement(pz,null,v.createElement(dz,null,e&&v.createElement(sz,null,e),t&&v.createElement(uz,null,t)),r&&v.createElement(cz,null,r.map(({title:n,...a})=>v.createElement(ea,{...a,key:n},n)))),"TooltipMessage"),fz=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),BG=c(({note:e,...t})=>v.createElement(fz,{...t},e),"TooltipNote"),hz=Ce(Es(),1),mz=F(({active:e,loading:t,disabled:r,...n})=>v.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:nt(.7,t.color.defaultText)}:{}),gz=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),vz=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),yz=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),bz=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),wz=F.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),Ez=(0,hz.default)(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),xz=c(({loading:e=!1,title:t=v.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:o=!1,isIndented:i,href:s=void 0,onClick:u=void 0,icon:d,LinkWrapper:p=void 0,...m})=>{let f=Ez(u,s,p),h={active:a,disabled:o};return v.createElement(wz,{...h,...m,...f},d&&v.createElement(bz,{...h},d),t||r?v.createElement(vz,{isIndented:!!(!d&&i)},t&&v.createElement(mz,{...h,loading:e},t),r&&v.createElement(yz,{...h},r)):null,n&&v.createElement(gz,{...h},n))},"ListItem"),Dz=xz,Cz=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),Sz=c(e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...o}=e,{title:i,href:s,active:u}=o,d=l.useCallback(m=>{r(m,o)},[r]),p=!!r;return v.createElement(Dz,{title:i,active:u,href:s,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...o,...p?{onClick:d}:{}})},"Item"),kz=c(({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return v.createElement(Cz,null,e.map(({isGatsby:n,...a})=>v.createElement(Sz,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},"TooltipLinkList"),Az=c(e=>typeof e.props.href=="string","isLink"),Fz=c(e=>typeof e.props.href!="string","isButton");function c9({children:e,...t},r){let n={props:t,ref:r};if(Az(n))return v.createElement("a",{ref:n.ref,...n.props},e);if(Fz(n))return v.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}c(c9,"ForwardRefFunction");var d9=l.forwardRef(c9);d9.displayName="ButtonOrLink";var nu=F(d9,{shouldForwardProp:B1})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});nu.displayName="TabButton";var _z=F.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Iz=F.div(()=>({marginTop:6,padding:7,height:28})),zG=c(()=>v.createElement(Iz,null,v.createElement(_z,null)),"IconButtonSkeleton");dp();var d1=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});d1.displayName="Side";var Rz=c(({children:e,className:t,scrollable:r})=>r?v.createElement(Fl,{vertical:!1,className:t},e):v.createElement("div",{className:t},e),"UnstyledBar"),p9=F(Rz)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});p9.displayName="Bar";var Tz=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),Mf=c(({children:e,backgroundColor:t,className:r,...n})=>{let[a,o]=l.Children.toArray(e);return v.createElement(p9,{className:`sb-bar ${r}`,...n},v.createElement(Tz,{bgColor:t},v.createElement(d1,{scrollable:n.scrollable,left:!0},a),o?v.createElement(d1,{right:!0},o):null))},"FlexBar");Mf.displayName="FlexBar";var f9=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Bz=c(e=>l.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let o=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof o=="function"?o:({active:i})=>v.createElement(f9,{active:i,role:"tabpanel"},o)}}),"childrenToList");Df();var zz=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Lz=F(nu)(({active:e,theme:t,preActive:r})=>` + color: ${r||e?t.barSelectedColor:t.barTextColor}; + .addon-collapsible-icon { + color: ${r||e?t.barSelectedColor:t.barTextColor}; + } + &:hover { + color: ${t.barHoverColor}; + .addon-collapsible-icon { + color: ${t.barHoverColor}; + } + } + `);function h9(e){let t=l.useRef(),r=l.useRef(),n=l.useRef(new Map),{width:a=1}=Tf({ref:t}),[o,i]=l.useState(e),[s,u]=l.useState([]),d=l.useRef(e),p=l.useCallback(({menuName:f,actions:h})=>{let g=s.some(({active:D})=>D),[y,b]=l.useState(!1);return v.createElement(v.Fragment,null,v.createElement(rs,{interactive:!0,visible:y,onVisibleChange:b,placement:"bottom",delayHide:100,tooltip:v.createElement(kz,{links:s.map(({title:D,id:w,color:x,active:E})=>({id:w,title:D,color:x,active:E,onClick:c(C=>{C.preventDefault(),h.onSelect(w)},"onClick")}))})},v.createElement(Lz,{ref:r,active:g,preActive:y,style:{visibility:s.length?"visible":"hidden"},"aria-hidden":!s.length,className:"tabbutton",type:"button",role:"tab"},f,v.createElement(zz,{className:"addon-collapsible-icon",isActive:g||y}))),s.map(({title:D,id:w,color:x},E)=>{let C=`index-${E}`;return v.createElement(nu,{id:`tabbutton-${V4(w)??C}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:S=>{n.current.set(w,S)},className:"tabbutton",type:"button",key:w,textColor:x,role:"tab"},D)}))},[s]),m=l.useCallback(()=>{if(!t.current||!r.current)return;let{x:f,width:h}=t.current.getBoundingClientRect(),{width:g}=r.current.getBoundingClientRect(),y=s.length?f+h-g:f+h,b=[],D=0,w=e.filter(x=>{let{id:E}=x,C=n.current.get(E),{width:S=0}=(C==null?void 0:C.getBoundingClientRect())||{},k=f+D+S>y;return(!k||!C)&&b.push(x),D+=S,k});(b.length!==o.length||d.current!==e)&&(i(b),u(w),d.current=e)},[s.length,e,o]);return l.useLayoutEffect(m,[m,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:o,invisibleList:s,AddonTab:p}}c(h9,"useList");var Oz=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Mz=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),$z=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),Pz=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),m9=c(({title:e,description:t,footer:r})=>v.createElement(Oz,null,v.createElement(Mz,null,v.createElement($z,null,e),t&&v.createElement(Pz,null,t)),r),"EmptyTabContent"),Nz="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Hz=F.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),g9=F.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});g9.displayName="TabBar";var jz=F.div({display:"block",position:"relative"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${Nz}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),LG=c(({active:e,render:t,children:r})=>v.createElement(f9,{active:e},t?t():r),"TabWrapper"),v9=l.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:a=!1,tools:o=null,backgroundColor:i,id:s=null,menuName:u="Tabs",emptyState:d,showToolsWhenEmpty:p})=>{let m=l.useMemo(()=>Bz(e).map((D,w)=>({...D,active:t?D.id===t:w===0})),[e,t]),{visibleList:f,tabBarRef:h,tabRefs:g,AddonTab:y}=h9(m),b=d??v.createElement(m9,{title:"Nothing found"});return!p&&m.length===0?b:v.createElement(Hz,{absolute:n,bordered:a,id:s},v.createElement(Mf,{scrollable:!1,border:!0,backgroundColor:i},v.createElement(g9,{style:{whiteSpace:"normal"},ref:h,role:"tablist"},f.map(({title:D,id:w,active:x,color:E},C)=>{let S=`index-${C}`;return v.createElement(nu,{id:`tabbutton-${V4(w)??S}`,ref:k=>{g.current.set(w,k)},className:`tabbutton ${x?"tabbutton-active":""}`,type:"button",key:w,active:x,textColor:E,onClick:k=>{k.preventDefault(),r.onSelect(w)},role:"tab"},typeof D=="function"?v.createElement("title",null):D)}),v.createElement(y,{menuName:u,actions:r})),o),v.createElement(jz,{id:"panel-tab-content",bordered:a,absolute:n},m.length?m.map(({id:D,active:w,render:x})=>v.createElement(x,{key:D,active:w},null)):b))});v9.displayName="Tabs";var p1=class extends l.Component{constructor(r){super(r);yr(this,"handlers",{onSelect:c(r=>this.setState({selected:r}),"onSelect")});this.state={selected:r.initial}}render(){let{bordered:r=!1,absolute:n=!1,children:a,backgroundColor:o,menuName:i}=this.props,{selected:s}=this.state;return v.createElement(v9,{bordered:r,absolute:n,selected:s,backgroundColor:o,menuName:i,actions:this.handlers},a)}};c(p1,"TabsState"),bS(p1,"defaultProps",{children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0});var Vz=p1,y9=F.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});y9.displayName="Separator";var MG=c(e=>e.reduce((t,r,n)=>r?v.createElement(l.Fragment,{key:r.id||r.key||`f-${n}`},t,n>0?v.createElement(y9,{key:`s-${n}`}):null,r.render()||r):t,null),"interleaveSeparators"),Uz=c(e=>{let t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current},"usePrevious"),qz=c((e,t)=>{let r=Uz(t);return e?t:r},"useUpdate"),$G=c(({active:e,children:t})=>v.createElement("div",{hidden:!e},qz(e,t)),"AddonPanel");const{deprecate:Wz,logger:Gz}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Kz=G8,Yz=F.svg` + display: inline-block; + shape-rendering: inherit; + vertical-align: middle; + fill: currentColor; + path { + fill: currentColor; + } +`,PG=c(({icon:e,useSymbol:t,__suppressDeprecationWarning:r=!1,...n})=>{r||Wz(`Use of the deprecated Icons ${`(${e})`||""} component detected. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`);let a=f1[e]||null;if(!a)return Gz.warn(`Use of an unknown prop ${`(${e})`||""} in the Icons component. The Icons component is deprecated. Please use the @storybook/icons component directly. For more informations, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#icons-is-deprecated`),null;let o=Kz[a];return v.createElement(o,{...n})},"Icons"),NG=l.memo(c(function({icons:e=Object.keys(f1)}){return v.createElement(Yz,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},e.map(t=>v.createElement("symbol",{id:`icon--${t}`,key:t},f1[t])))},"Symbols")),f1={user:"UserIcon",useralt:"UserAltIcon",useradd:"UserAddIcon",users:"UsersIcon",profile:"ProfileIcon",facehappy:"FaceHappyIcon",faceneutral:"FaceNeutralIcon",facesad:"FaceSadIcon",accessibility:"AccessibilityIcon",accessibilityalt:"AccessibilityAltIcon",arrowup:"ChevronUpIcon",arrowdown:"ChevronDownIcon",arrowleft:"ChevronLeftIcon",arrowright:"ChevronRightIcon",arrowupalt:"ArrowUpIcon",arrowdownalt:"ArrowDownIcon",arrowleftalt:"ArrowLeftIcon",arrowrightalt:"ArrowRightIcon",expandalt:"ExpandAltIcon",collapse:"CollapseIcon",expand:"ExpandIcon",unfold:"UnfoldIcon",transfer:"TransferIcon",redirect:"RedirectIcon",undo:"UndoIcon",reply:"ReplyIcon",sync:"SyncIcon",upload:"UploadIcon",download:"DownloadIcon",back:"BackIcon",proceed:"ProceedIcon",refresh:"RefreshIcon",globe:"GlobeIcon",compass:"CompassIcon",location:"LocationIcon",pin:"PinIcon",time:"TimeIcon",dashboard:"DashboardIcon",timer:"TimerIcon",home:"HomeIcon",admin:"AdminIcon",info:"InfoIcon",question:"QuestionIcon",support:"SupportIcon",alert:"AlertIcon",email:"EmailIcon",phone:"PhoneIcon",link:"LinkIcon",unlink:"LinkBrokenIcon",bell:"BellIcon",rss:"RSSIcon",sharealt:"ShareAltIcon",share:"ShareIcon",circle:"CircleIcon",circlehollow:"CircleHollowIcon",bookmarkhollow:"BookmarkHollowIcon",bookmark:"BookmarkIcon",hearthollow:"HeartHollowIcon",heart:"HeartIcon",starhollow:"StarHollowIcon",star:"StarIcon",certificate:"CertificateIcon",verified:"VerifiedIcon",thumbsup:"ThumbsUpIcon",shield:"ShieldIcon",basket:"BasketIcon",beaker:"BeakerIcon",hourglass:"HourglassIcon",flag:"FlagIcon",cloudhollow:"CloudHollowIcon",edit:"EditIcon",cog:"CogIcon",nut:"NutIcon",wrench:"WrenchIcon",ellipsis:"EllipsisIcon",check:"CheckIcon",form:"FormIcon",batchdeny:"BatchDenyIcon",batchaccept:"BatchAcceptIcon",controls:"ControlsIcon",plus:"PlusIcon",closeAlt:"CloseAltIcon",cross:"CrossIcon",trash:"TrashIcon",pinalt:"PinAltIcon",unpin:"UnpinIcon",add:"AddIcon",subtract:"SubtractIcon",close:"CloseIcon",delete:"DeleteIcon",passed:"PassedIcon",changed:"ChangedIcon",failed:"FailedIcon",clear:"ClearIcon",comment:"CommentIcon",commentadd:"CommentAddIcon",requestchange:"RequestChangeIcon",comments:"CommentsIcon",lock:"LockIcon",unlock:"UnlockIcon",key:"KeyIcon",outbox:"OutboxIcon",credit:"CreditIcon",button:"ButtonIcon",type:"TypeIcon",pointerdefault:"PointerDefaultIcon",pointerhand:"PointerHandIcon",browser:"BrowserIcon",tablet:"TabletIcon",mobile:"MobileIcon",watch:"WatchIcon",sidebar:"SidebarIcon",sidebaralt:"SidebarAltIcon",sidebaralttoggle:"SidebarAltToggleIcon",sidebartoggle:"SidebarToggleIcon",bottombar:"BottomBarIcon",bottombartoggle:"BottomBarToggleIcon",cpu:"CPUIcon",database:"DatabaseIcon",memory:"MemoryIcon",structure:"StructureIcon",box:"BoxIcon",power:"PowerIcon",photo:"PhotoIcon",component:"ComponentIcon",grid:"GridIcon",outline:"OutlineIcon",photodrag:"PhotoDragIcon",search:"SearchIcon",zoom:"ZoomIcon",zoomout:"ZoomOutIcon",zoomreset:"ZoomResetIcon",eye:"EyeIcon",eyeclose:"EyeCloseIcon",lightning:"LightningIcon",lightningoff:"LightningOffIcon",contrast:"ContrastIcon",switchalt:"SwitchAltIcon",mirror:"MirrorIcon",grow:"GrowIcon",paintbrush:"PaintBrushIcon",ruler:"RulerIcon",stop:"StopIcon",camera:"CameraIcon",video:"VideoIcon",speaker:"SpeakerIcon",play:"PlayIcon",playback:"PlayBackIcon",playnext:"PlayNextIcon",rewind:"RewindIcon",fastforward:"FastForwardIcon",stopalt:"StopAltIcon",sidebyside:"SideBySideIcon",stacked:"StackedIcon",sun:"SunIcon",moon:"MoonIcon",book:"BookIcon",document:"DocumentIcon",copy:"CopyIcon",category:"CategoryIcon",folder:"FolderIcon",print:"PrintIcon",graphline:"GraphLineIcon",calendar:"CalendarIcon",graphbar:"GraphBarIcon",menu:"MenuIcon",menualt:"MenuIcon",filter:"FilterIcon",docchart:"DocChartIcon",doclist:"DocListIcon",markup:"MarkupIcon",bold:"BoldIcon",paperclip:"PaperClipIcon",listordered:"ListOrderedIcon",listunordered:"ListUnorderedIcon",paragraph:"ParagraphIcon",markdown:"MarkdownIcon",repository:"RepoIcon",commit:"CommitIcon",branch:"BranchIcon",pullrequest:"PullRequestIcon",merge:"MergeIcon",apple:"AppleIcon",linux:"LinuxIcon",ubuntu:"UbuntuIcon",windows:"WindowsIcon",storybook:"StorybookIcon",azuredevops:"AzureDevOpsIcon",bitbucket:"BitbucketIcon",chrome:"ChromeIcon",chromatic:"ChromaticIcon",componentdriven:"ComponentDrivenIcon",discord:"DiscordIcon",facebook:"FacebookIcon",figma:"FigmaIcon",gdrive:"GDriveIcon",github:"GithubIcon",gitlab:"GitlabIcon",google:"GoogleIcon",graphql:"GraphqlIcon",medium:"MediumIcon",redux:"ReduxIcon",twitter:"TwitterIcon",youtube:"YoutubeIcon",vscode:"VSCodeIcon"},HG=c(({alt:e,...t})=>v.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?v.createElement("title",null,e):null,v.createElement("defs",null,v.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),v.createElement("g",{fill:"none",fillRule:"evenodd"},v.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),v.createElement("mask",{id:"b",fill:"#fff"},v.createElement("use",{xlinkHref:"#a"})),v.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),v.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),"StorybookLogo"),jG=c(e=>v.createElement("svg",{viewBox:"0 0 64 64",...e},v.createElement("title",null,"Storybook icon"),v.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),v.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),v.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),"StorybookIcon"),Jz=mr` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,Zz=F.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${Jz} 0.7s linear infinite`,mixBlendMode:"difference"})),t4=F.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),Xz=F.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:nt(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),Qz=F.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),r4=F.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.barTextColor})),eL=F(K8)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),tL=mr` + from { content: "..." } + 33% { content: "." } + 66% { content: ".." } + to { content: "..." } +`,rL=F.span({"&::after":{content:"'...'",animation:`${tL} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),nL=c(({progress:e,error:t,size:r,...n})=>{if(t)return v.createElement(t4,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},v.createElement(eL,null),v.createElement(r4,null,t.message));if(e){let{value:a,modules:o}=e,{message:i}=e;return o&&(i+=` ${o.complete} / ${o.total} modules`),v.createElement(t4,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":a*100,"aria-valuetext":i,role:"progressbar",...n},v.createElement(Xz,null,v.createElement(Qz,{style:{width:`${a*100}%`}})),v.createElement(r4,null,i,a<1&&v.createElement(rL,{key:i})))}return v.createElement(Zz,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},"Loader");function b9(e){let t={},r=e.split("&");for(let n=0;n{let[n,a]=e.split("?"),o=a?{...b9(a),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(o).map(i=>`${i[0]}=${i[1]}`).join("&")}`},"getStoryHref"),oL=F.pre` + line-height: 18px; + padding: 11px 1rem; + white-space: pre-wrap; + background: rgba(0, 0, 0, 0.05); + color: ${V.darkest}; + border-radius: 3px; + margin: 1rem 0; + width: 100%; + display: block; + overflow: hidden; + font-family: ${jt.fonts.mono}; + font-size: ${jt.size.s2-1}px; +`,VG=c(({code:e,...t})=>v.createElement(oL,{id:"clipboard-code",...t},e),"ClipboardCode"),iL=W8,lL={};Object.keys(W8).forEach(e=>{lL[e]=l.forwardRef((t,r)=>l.createElement(e,{...t,ref:r}))});function sL(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function uL(e,t,r){if(Nx())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&U4(a,r.prototype),a}function h1(e){var t=typeof Map=="function"?new Map:void 0;return h1=function(n){if(n===null||!sL(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return uL(n,arguments,Hx(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),U4(a,n)},h1(e)}var Ut=function(e){jx(t,e);function t(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this,Vx(n)}return t}(h1(Error));function D0(e){return Math.round(e*255)}function cL(e,t,r){return D0(e)+","+D0(t)+","+D0(r)}function jo(e,t,r,n){if(n===void 0&&(n=cL),t===0)return n(r,r,r);var a=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,i=o*(1-Math.abs(a%2-1)),s=0,u=0,d=0;a>=0&&a<1?(s=o,u=i):a>=1&&a<2?(s=i,u=o):a>=2&&a<3?(u=o,d=i):a>=3&&a<4?(u=i,d=o):a>=4&&a<5?(s=i,d=o):a>=5&&a<6&&(s=o,d=i);var p=r-o/2,m=s+p,f=u+p,h=d+p;return n(m,f,h)}var n4={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function dL(e){if(typeof e!="string")return e;var t=e.toLowerCase();return n4[t]?"#"+n4[t]:e}var pL=/^#[a-fA-F0-9]{6}$/,fL=/^#[a-fA-F0-9]{8}$/,hL=/^#[a-fA-F0-9]{3}$/,mL=/^#[a-fA-F0-9]{4}$/,C0=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,gL=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,vL=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,yL=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ba(e){if(typeof e!="string")throw new Ut(3);var t=dL(e);if(t.match(pL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(fL)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(hL))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(mL)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=C0.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=gL.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=vL.exec(t);if(i){var s=parseInt(""+i[1],10),u=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+jo(s,u,d)+")",m=C0.exec(p);if(!m)throw new Ut(4,t,p);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=yL.exec(t.substring(0,50));if(f){var h=parseInt(""+f[1],10),g=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,b="rgb("+jo(h,g,y)+")",D=C0.exec(b);if(!D)throw new Ut(4,t,b);return{red:parseInt(""+D[1],10),green:parseInt(""+D[2],10),blue:parseInt(""+D[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new Ut(5)}function bL(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,u=a-o,d=i>.5?u/(2-a-o):u/(a+o);switch(a){case t:s=(r-n)/u+(r=1?is(e,t,r):"rgba("+jo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?is(e.hue,e.saturation,e.lightness):"rgba("+jo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ut(2)}function g1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return m1("#"+Zr(e)+Zr(t)+Zr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return m1("#"+Zr(e.red)+Zr(e.green)+Zr(e.blue));throw new Ut(6)}function Pt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=ba(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?g1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?g1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ut(7)}var CL=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},SL=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},kL=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},AL=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function Hr(e){if(typeof e!="object")throw new Ut(8);if(SL(e))return Pt(e);if(CL(e))return g1(e);if(AL(e))return DL(e);if(kL(e))return xL(e);throw new Ut(8)}function w9(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):w9(e,t,a)}}function tt(e){return w9(e,e.length,[])}function FL(e,t){if(t==="transparent")return t;var r=Nr(t);return Hr(ot({},r,{hue:r.hue+parseFloat(e)}))}tt(FL);function Ta(e,t,r){return Math.max(e,Math.min(t,r))}function _L(e,t){if(t==="transparent")return t;var r=Nr(t);return Hr(ot({},r,{lightness:Ta(0,1,r.lightness-parseFloat(e))}))}var IL=tt(_L),Mt=IL;function RL(e,t){if(t==="transparent")return t;var r=Nr(t);return Hr(ot({},r,{saturation:Ta(0,1,r.saturation-parseFloat(e))}))}tt(RL);function TL(e,t){if(t==="transparent")return t;var r=Nr(t);return Hr(ot({},r,{lightness:Ta(0,1,r.lightness+parseFloat(e))}))}var BL=tt(TL),Xr=BL;function zL(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=ba(t),a=ot({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=ba(r),i=ot({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),s=a.alpha-i.alpha,u=parseFloat(e)*2-1,d=u*s===-1?u:u+s,p=1+u*s,m=(d/p+1)/2,f=1-m,h={red:Math.floor(a.red*m+i.red*f),green:Math.floor(a.green*m+i.green*f),blue:Math.floor(a.blue*m+i.blue*f),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Pt(h)}var LL=tt(zL),E9=LL;function OL(e,t){if(t==="transparent")return t;var r=ba(t),n=typeof r.alpha=="number"?r.alpha:1,a=ot({},r,{alpha:Ta(0,1,(n*100+parseFloat(e)*100)/100)});return Pt(a)}var ML=tt(OL),Vi=ML;function $L(e,t){if(t==="transparent")return t;var r=Nr(t);return Hr(ot({},r,{saturation:Ta(0,1,r.saturation+parseFloat(e))}))}tt($L);function PL(e,t){return t==="transparent"?t:Hr(ot({},Nr(t),{hue:parseFloat(e)}))}tt(PL);function NL(e,t){return t==="transparent"?t:Hr(ot({},Nr(t),{lightness:parseFloat(e)}))}tt(NL);function HL(e,t){return t==="transparent"?t:Hr(ot({},Nr(t),{saturation:parseFloat(e)}))}tt(HL);function jL(e,t){return t==="transparent"?t:E9(parseFloat(e),"rgb(0, 0, 0)",t)}tt(jL);function VL(e,t){return t==="transparent"?t:E9(parseFloat(e),"rgb(255, 255, 255)",t)}tt(VL);function UL(e,t){if(t==="transparent")return t;var r=ba(t),n=typeof r.alpha=="number"?r.alpha:1,a=ot({},r,{alpha:Ta(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Pt(a)}var qL=tt(UL),ie=qL,WL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),GL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),KL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),YL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),JL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),l.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),ZL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:e}))),v1=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),UG=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),XL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),QL=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),eO=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),l.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),tO=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),rO=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),nO=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),x9=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),aO=l.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>l.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},l.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),oO=q4,iO=Ux,lO=Object.prototype,sO=lO.hasOwnProperty;function uO(e,t,r){var n=e[t];(!(sO.call(e,t)&&iO(n,r))||r===void 0&&!(t in e))&&oO(e,t,r)}var $f=uO,cO=$f,dO=W4,pO=qx,a4=us,fO=Wx;function hO(e,t,r,n){if(!a4(e))return e;t=dO(t,e);for(var a=-1,o=t.length,i=o-1,s=e;s!=null&&++a(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),l4={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},XO=["style","script"],QO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,eM=/mailto:/i,tM=/\n{2,}$/,S9=/^(\s*>[\s\S]*?)(?=\n{2,})/,rM=/^ *> ?/gm,nM=/^ {2,}\n/,aM=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,k9=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,A9=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,oM=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,iM=/^(?:\n *)*\n/,lM=/\r\n?/g,sM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,uM=/^\[\^([^\]]+)]/,cM=/\f/g,dM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,pM=/^\s*?\[(x|\s)\]/,F9=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_9=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,I9=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,y1=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,fM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,R9=/^)/,hM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,b1=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,mM=/^\{.*\}$/,gM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,vM=/^<([^ >]+@[^ >]+)>/,yM=/^<([^ >]+:\/[^ >]+)>/,bM=/-([a-z])?/gi,T9=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,wM=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,EM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,DM=/(\[|\])/g,CM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,SM=/\t/g,kM=/(^ *\||\| *$)/g,AM=/^ *:-+: *$/,FM=/^ *:-+ *$/,_M=/^ *-+: *$/,au="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",IM=new RegExp(`^([*_])\\1${au}\\1\\1(?!\\1)`),RM=new RegExp(`^([*_])${au}\\1(?!\\1|\\w)`),TM=new RegExp(`^==${au}==`),BM=new RegExp(`^~~${au}~~`),zM=/^\\([^0-9A-Za-z\s])/,LM=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,OM=/^\n+/,MM=/^([ \t]*)/,$M=/\\([^\\])/g,s4=/ *\n+$/,PM=/(?:^|\n)( *)$/,Nf="(?:\\d+\\.)",Hf="(?:[*+-])";function B9(e){return"( *)("+(e===1?Nf:Hf)+") +"}const z9=B9(1),L9=B9(2);function O9(e){return new RegExp("^"+(e===1?z9:L9))}const NM=O9(1),HM=O9(2);function M9(e){return new RegExp("^"+(e===1?z9:L9)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Nf:Hf)+" )[^\\n]*)*(\\n|$)","gm")}const $9=M9(1),P9=M9(2);function N9(e){const t=e===1?Nf:Hf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const H9=N9(1),j9=N9(2);function u4(e,t){const r=t===1,n=r?H9:j9,a=r?$9:P9,o=r?NM:HM;return{match(i,s,u){const d=PM.exec(u);return d&&(s.list||!s.inline&&!s.simple)?n.exec(i=d[1]+i):null},order:1,parse(i,s,u){const d=r?+i[2]:void 0,p=i[0].replace(tM,` +`).match(a);let m=!1;return{items:p.map(function(f,h){const g=o.exec(f)[0].length,y=new RegExp("^ {1,"+g+"}","gm"),b=f.replace(y,"").replace(o,""),D=h===p.length-1,w=b.indexOf(` + +`)!==-1||D&&m;m=w;const x=u.inline,E=u.list;let C;u.list=!0,w?(u.inline=!1,C=b.replace(s4,` + +`)):(u.inline=!0,C=b.replace(s4,""));const S=s(C,u);return u.inline=x,u.list=E,S}),ordered:r,start:d}},render:(i,s,u)=>e(i.ordered?"ol":"ul",{key:u.key,start:i.type===U.orderedList?i.start:void 0},i.items.map(function(d,p){return e("li",{key:p},s(d,u))}))}}const jM=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),VM=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,V9=[S9,k9,A9,F9,I9,_9,R9,T9,$9,H9,P9,j9],UM=[...V9,/^[^\n]+(?: \n|\n{2,})/,y1,b1];function Ui(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function qM(e){return _M.test(e)?"right":AM.test(e)?"center":FM.test(e)?"left":null}function c4(e,t,r,n){const a=r.inTable;r.inTable=!0;let o=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((s,u)=>(u.trim()==="|"?s.push(n?{type:U.tableSeparator}:{type:U.text,text:u}):u!==""&&s.push.apply(s,t(u,r)),s),[]);r.inTable=a;let i=[[]];return o.forEach(function(s,u){s.type===U.tableSeparator?u!==0&&u!==o.length-1&&i.push([]):(s.type!==U.text||o[u+1]!=null&&o[u+1].type!==U.tableSeparator||(s.text=s.text.trimEnd()),i[i.length-1].push(s))}),i}function WM(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(kM,"").split("|").map(qM):[],a=e[3]?function(i,s,u){return i.trim().split(` +`).map(function(d){return c4(d,s,u,!0)})}(e[3],t,r):[],o=c4(e[1],t,r,!!a.length);return r.inline=!1,a.length?{align:n,cells:a,header:o,type:U.table}:{children:o,type:U.paragraph}}function d4(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function wr(e){return function(t,r){return r.inline?e.exec(t):null}}function Er(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function lr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function ro(e){return function(t){return e.exec(t)}}function GM(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(o=>!V9.some(i=>i.test(o))&&(n+=o+` +`,o.trim()));const a=n.trimEnd();return a==""?null:[n,a]}function KM(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function p4(e){return e.replace($M,"$1")}function gl(e,t,r){const n=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;const o=e(t,r);return r.inline=n,r.simple=a,o}function YM(e,t,r){const n=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;const o=e(t,r);return r.inline=n,r.simple=a,o}function JM(e,t,r){const n=r.inline||!1;r.inline=!1;const a=e(t,r);return r.inline=n,a}const k0=(e,t,r)=>({children:gl(t,e[1],r)});function A0(){return{}}function F0(){return null}function ZM(...e){return e.filter(Boolean).join(" ")}function _0(e,t,r){let n=e;const a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}function XM(e="",t={}){function r(f,h,...g){const y=_0(t.overrides,`${f}.props`,{});return t.createElement(function(b,D){const w=_0(D,b);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:_0(D,`${b}.component`,b):b}(f,t.overrides),Qr({},h,y,{className:ZM(h==null?void 0:h.className,y.className)||void 0}),...g)}function n(f){f=f.replace(dM,"");let h=!1;t.forceInline?h=!0:t.forceBlock||(h=CM.test(f)===!1);const g=d(u(h?f:`${f.trimEnd().replace(OM,"")} + +`,{inline:h}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;const y=t.wrapper||(h?"span":"div");let b;if(g.length>1||t.forceWrapper)b=g;else{if(g.length===1)return b=g[0],typeof b=="string"?r("span",{key:"outer"},b):b;b=null}return l.createElement(y,{key:"outer"},b)}function a(f,h){const g=h.match(QO);return g?g.reduce(function(y,b,D){const w=b.indexOf("=");if(w!==-1){const x=function(k){return k.indexOf("-")!==-1&&k.match(hM)===null&&(k=k.replace(bM,function(A,_){return _.toUpperCase()})),k}(b.slice(0,w)).trim(),E=function(k){const A=k[0];return(A==='"'||A==="'")&&k.length>=2&&k[k.length-1]===A?k.slice(1,-1):k}(b.slice(w+1).trim()),C=i4[x]||x,S=y[C]=function(k,A,_,R){return A==="style"?_.split(/;\s?/).reduce(function(T,L){const z=L.slice(0,L.indexOf(":"));return T[z.trim().replace(/(-[a-z])/g,M=>M[1].toUpperCase())]=L.slice(z.length+1).trim(),T},{}):A==="href"||A==="src"?R(_,k,A):(_.match(mM)&&(_=_.slice(1,_.length-1)),_==="true"||_!=="false"&&_)}(f,x,E,t.sanitizer);typeof S=="string"&&(y1.test(S)||b1.test(S))&&(y[C]=l.cloneElement(n(S.trim()),{key:D}))}else b!=="style"&&(y[i4[b]||b]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||KM,t.slugify=t.slugify||Ui,t.namedCodesToUnicode=t.namedCodesToUnicode?Qr({},l4,t.namedCodesToUnicode):l4,t.createElement=t.createElement||l.createElement;const o=[],i={},s={[U.blockQuote]:{match:lr(S9),order:1,parse:(f,h,g)=>({children:h(f[0].replace(rM,""),g)}),render:(f,h,g)=>r("blockquote",{key:g.key},h(f.children,g))},[U.breakLine]:{match:ro(nM),order:1,parse:A0,render:(f,h,g)=>r("br",{key:g.key})},[U.breakThematic]:{match:lr(aM),order:1,parse:A0,render:(f,h,g)=>r("hr",{key:g.key})},[U.codeBlock]:{match:lr(A9),order:0,parse:f=>({lang:void 0,text:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(f,h,g)=>r("pre",{key:g.key},r("code",Qr({},f.attrs,{className:f.lang?`lang-${f.lang}`:""}),f.text))},[U.codeFenced]:{match:lr(k9),order:0,parse:f=>({attrs:a("code",f[3]||""),lang:f[2]||void 0,text:f[4],type:U.codeBlock})},[U.codeInline]:{match:Er(oM),order:3,parse:f=>({text:f[2]}),render:(f,h,g)=>r("code",{key:g.key},f.text)},[U.footnote]:{match:lr(sM),order:0,parse:f=>(o.push({footnote:f[2],identifier:f[1]}),{}),render:F0},[U.footnoteReference]:{match:wr(uM),order:1,parse:f=>({target:`#${t.slugify(f[1],Ui)}`,text:f[1]}),render:(f,h,g)=>r("a",{key:g.key,href:t.sanitizer(f.target,"a","href")},r("sup",{key:g.key},f.text))},[U.gfmTask]:{match:wr(pM),order:1,parse:f=>({completed:f[1].toLowerCase()==="x"}),render:(f,h,g)=>r("input",{checked:f.completed,key:g.key,readOnly:!0,type:"checkbox"})},[U.heading]:{match:lr(t.enforceAtxHeadings?_9:F9),order:1,parse:(f,h,g)=>({children:gl(h,f[2],g),id:t.slugify(f[2],Ui),level:f[1].length}),render:(f,h,g)=>r(`h${f.level}`,{id:f.id,key:g.key},h(f.children,g))},[U.headingSetext]:{match:lr(I9),order:0,parse:(f,h,g)=>({children:gl(h,f[1],g),level:f[2]==="="?1:2,type:U.heading})},[U.htmlBlock]:{match:ro(y1),order:1,parse(f,h,g){const[,y]=f[3].match(MM),b=new RegExp(`^${y}`,"gm"),D=f[3].replace(b,""),w=(x=D,UM.some(A=>A.test(x))?JM:gl);var x;const E=f[1].toLowerCase(),C=XO.indexOf(E)!==-1,S=(C?E:f[1]).trim(),k={attrs:a(S,f[2]),noInnerParse:C,tag:S};return g.inAnchor=g.inAnchor||E==="a",C?k.text=f[3]:k.children=w(h,D,g),g.inAnchor=!1,k},render:(f,h,g)=>r(f.tag,Qr({key:g.key},f.attrs),f.text||h(f.children,g))},[U.htmlSelfClosing]:{match:ro(b1),order:1,parse(f){const h=f[1].trim();return{attrs:a(h,f[2]||""),tag:h}},render:(f,h,g)=>r(f.tag,Qr({},f.attrs,{key:g.key}))},[U.htmlComment]:{match:ro(R9),order:1,parse:()=>({}),render:F0},[U.image]:{match:Er(VM),order:1,parse:f=>({alt:f[1],target:p4(f[2]),title:f[3]}),render:(f,h,g)=>r("img",{key:g.key,alt:f.alt||void 0,title:f.title||void 0,src:t.sanitizer(f.target,"img","src")})},[U.link]:{match:wr(jM),order:3,parse:(f,h,g)=>({children:YM(h,f[1],g),target:p4(f[2]),title:f[3]}),render:(f,h,g)=>r("a",{key:g.key,href:t.sanitizer(f.target,"a","href"),title:f.title},h(f.children,g))},[U.linkAngleBraceStyleDetector]:{match:wr(yM),order:0,parse:f=>({children:[{text:f[1],type:U.text}],target:f[1],type:U.link})},[U.linkBareUrlDetector]:{match:(f,h)=>h.inAnchor?null:wr(gM)(f,h),order:0,parse:f=>({children:[{text:f[1],type:U.text}],target:f[1],title:void 0,type:U.link})},[U.linkMailtoDetector]:{match:wr(vM),order:0,parse(f){let h=f[1],g=f[1];return eM.test(g)||(g="mailto:"+g),{children:[{text:h.replace("mailto:",""),type:U.text}],target:g,type:U.link}}},[U.orderedList]:u4(r,1),[U.unorderedList]:u4(r,2),[U.newlineCoalescer]:{match:lr(iM),order:3,parse:A0,render:()=>` +`},[U.paragraph]:{match:GM,order:3,parse:k0,render:(f,h,g)=>r("p",{key:g.key},h(f.children,g))},[U.ref]:{match:wr(wM),order:0,parse:f=>(i[f[1]]={target:f[2],title:f[4]},{}),render:F0},[U.refImage]:{match:Er(EM),order:0,parse:f=>({alt:f[1]||void 0,ref:f[2]}),render:(f,h,g)=>i[f.ref]?r("img",{key:g.key,alt:f.alt,src:t.sanitizer(i[f.ref].target,"img","src"),title:i[f.ref].title}):null},[U.refLink]:{match:wr(xM),order:0,parse:(f,h,g)=>({children:h(f[1],g),fallbackChildren:h(f[0].replace(DM,"\\$1"),g),ref:f[2]}),render:(f,h,g)=>i[f.ref]?r("a",{key:g.key,href:t.sanitizer(i[f.ref].target,"a","href"),title:i[f.ref].title},h(f.children,g)):r("span",{key:g.key},h(f.fallbackChildren,g))},[U.table]:{match:lr(T9),order:1,parse:WM,render(f,h,g){const y=f;return r("table",{key:g.key},r("thead",null,r("tr",null,y.header.map(function(b,D){return r("th",{key:D,style:d4(y,D)},h(b,g))}))),r("tbody",null,y.cells.map(function(b,D){return r("tr",{key:D},b.map(function(w,x){return r("td",{key:x,style:d4(y,x)},h(w,g))}))})))}},[U.text]:{match:ro(LM),order:4,parse:f=>({text:f[0].replace(fM,(h,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:h)}),render:f=>f.text},[U.textBolded]:{match:Er(IM),order:2,parse:(f,h,g)=>({children:h(f[2],g)}),render:(f,h,g)=>r("strong",{key:g.key},h(f.children,g))},[U.textEmphasized]:{match:Er(RM),order:3,parse:(f,h,g)=>({children:h(f[2],g)}),render:(f,h,g)=>r("em",{key:g.key},h(f.children,g))},[U.textEscaped]:{match:Er(zM),order:1,parse:f=>({text:f[1],type:U.text})},[U.textMarked]:{match:Er(TM),order:3,parse:k0,render:(f,h,g)=>r("mark",{key:g.key},h(f.children,g))},[U.textStrikethroughed]:{match:Er(BM),order:3,parse:k0,render:(f,h,g)=>r("del",{key:g.key},h(f.children,g))}};t.disableParsingRawHTML===!0&&(delete s[U.htmlBlock],delete s[U.htmlSelfClosing]);const u=function(f){let h=Object.keys(f);function g(y,b){let D=[],w="";for(;y;){let x=0;for(;xD(g,y,b),g,y,b):D(g,y,b)}}(s,t.renderRule),function f(h,g={}){if(Array.isArray(h)){const y=g.key,b=[];let D=!1;for(let w=0;w{let{children:t="",options:r}=e,n=function(a,o){if(a==null)return{};var i,s,u={},d=Object.keys(a);for(s=0;s=0||(u[i]=a[i]);return u}(e,ZO);return l.cloneElement(XM(t,r),n)};function qi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var q9={exports:{}};(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,a,o){function i(d,p){if(!a[d]){if(!n[d]){var m=typeof qi=="function"&&qi;if(!p&&m)return m(d,!0);if(s)return s(d,!0);var f=new Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f}var h=a[d]={exports:{}};n[d][0].call(h.exports,function(g){var y=n[d][1][g];return i(y||g)},h,h.exports,r,n,a,o)}return a[d].exports}for(var s=typeof qi=="function"&&qi,u=0;u=0)return this.lastItem=this.list[s],this.list[s].val},o.prototype.set=function(i,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},o.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},o.prototype.forEach=function(i,s){var u;for(u=0;u0&&(w[D]={cacheItem:g,arg:arguments[D]},x?i(m,w):m.push(w),m.length>d&&s(m.shift())),h.wasMemoized=x,h.numArgs=D+1,b};return h.limit=d,h.wasMemoized=!1,h.cache=p,h.lru=m,h}};function i(d,p){var m=d.length,f=p.length,h,g,y;for(g=0;g=0&&(m=d[h],f=m.cacheItem.get(m.arg),!f||!f.size);h--)m.cacheItem.delete(m.arg)}function u(d,p){return d===p||d!==d&&p!==p}},{"map-or-similar":1}]},{},[3])(3)})})(q9);var QM=q9.exports;const W9=ss(QM);function e$(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o-1}var f$=p$;function h$(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=_$){var d=t?null:A$(e);if(d)return F$(d);i=!1,a=k$,u=new D$}else u=t?[]:s;e:for(;++nfunction(){return t||(0,e[Z9(e)[0]])((t={exports:{}}).exports,t),t.exports},SH=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Z9(t))!CH.call(e,a)&&a!==r&&J9(e,a,{get:()=>t[a],enumerable:!(n=xH(t,a))||n.enumerable});return e},Vf=(e,t,r)=>(r=e!=null?EH(DH(e)):{},SH(!e||!e.__esModule?J9(r,"default",{value:e,enumerable:!0}):r,e)),kH=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],AH=["detail"];function FH(e){const t=kH.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&AH.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var X9=st({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;n[a]=i;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var s=Object.getOwnPropertySymbols(n);if(s.length!==1||s[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(n,a);if(u.value!==i||u.enumerable!==!0)return!1}return!0}}}),Q9=st({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=X9();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),_H=st({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(s){var u=this;if(typeof u!="function"||a.call(u)!==o)throw new TypeError(r+u);for(var d=n.call(arguments,1),p,m=function(){if(this instanceof p){var b=u.apply(this,d.concat(n.call(arguments)));return Object(b)===b?b:this}else return u.apply(s,d.concat(n.call(arguments)))},f=Math.max(0,u.length-d.length),h=[],g=0;g"u"?r:m(Uint8Array),g={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":f,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":d,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},y=function L(z){var M;if(z==="%AsyncFunction%")M=i("async function () {}");else if(z==="%GeneratorFunction%")M=i("function* () {}");else if(z==="%AsyncGeneratorFunction%")M=i("async function* () {}");else if(z==="%AsyncGenerator%"){var O=L("%AsyncGeneratorFunction%");O&&(M=O.prototype)}else if(z==="%AsyncIteratorPrototype%"){var $=L("%AsyncGenerator%");$&&(M=m($.prototype))}return g[z]=M,M},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=Uf(),w=IH(),x=D.call(Function.call,Array.prototype.concat),E=D.call(Function.apply,Array.prototype.splice),C=D.call(Function.call,String.prototype.replace),S=D.call(Function.call,String.prototype.slice),k=D.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,R=function(z){var M=S(z,0,1),O=S(z,-1);if(M==="%"&&O!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(O==="%"&&M!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var $=[];return C(z,A,function(j,K,H,Y){$[$.length]=H?C(Y,_,"$1"):K||j}),$},T=function(z,M){var O=z,$;if(w(b,O)&&($=b[O],O="%"+$[0]+"%"),w(g,O)){var j=g[O];if(j===f&&(j=y(O)),typeof j>"u"&&!M)throw new o("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:O,value:j}}throw new n("intrinsic "+z+" does not exist!")};t.exports=function(z,M){if(typeof z!="string"||z.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof M!="boolean")throw new o('"allowMissing" argument must be a boolean');if(k(/^%?[^%]*%?$/,z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var O=R(z),$=O.length>0?O[0]:"",j=T("%"+$+"%",M),K=j.name,H=j.value,Y=!1,re=j.alias;re&&($=re[0],E(O,x([0,1],re)));for(var le=1,ee=!0;le=O.length){var Z=s(H,ne);ee=!!Z,ee&&"get"in Z&&!("originalValue"in Z.get)?H=Z.get:H=H[ne]}else ee=w(H,ne),H=H[ne];ee&&!Y&&(g[K]=H)}}return H}}}),RH=st({"node_modules/call-bind/index.js"(e,t){var r=Uf(),n=ex(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),s=n("%Object.getOwnPropertyDescriptor%",!0),u=n("%Object.defineProperty%",!0),d=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}t.exports=function(f){var h=i(r,o,arguments);if(s&&u){var g=s(h,"length");g.configurable&&u(h,"length",{value:1+d(0,f.length-(arguments.length-1))})}return h};var p=function(){return i(r,a,arguments)};u?u(t.exports,"apply",{value:p}):t.exports.apply=p}}),TH=st({"node_modules/call-bind/callBound.js"(e,t){var r=ex(),n=RH(),a=n(r("String.prototype.indexOf"));t.exports=function(i,s){var u=r(i,!!s);return typeof u=="function"&&a(i,".prototype.")>-1?n(u):u}}}),BH=st({"node_modules/has-tostringtag/shams.js"(e,t){var r=X9();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),zH=st({"node_modules/is-regex/index.js"(e,t){var r=TH(),n=BH()(),a,o,i,s;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},u=function(){throw i},s={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=u));var u,d=r("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,m="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var g=p(h,"lastIndex"),y=g&&a(g,"value");if(!y)return!1;try{o(h,s)}catch(b){return b===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:d(h)===m}}}),LH=st({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),OH=st({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Q9()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(u){return typeof u.valueOf()!="symbol"?!1:o.test(a.call(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(r.call(u)!=="[object Symbol]")return!1;try{return i(u)}catch{return!1}}):t.exports=function(u){return!1};var a,o,i}}),MH=Vf(zH()),$H=Vf(LH()),PH=Vf(OH());function NH(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var HH=typeof global=="object"&&global&&global.Object===Object&&global,jH=HH,VH=typeof self=="object"&&self&&self.Object===Object&&self,UH=jH||VH||Function("return this")(),qf=UH,qH=qf.Symbol,wa=qH,tx=Object.prototype,WH=tx.hasOwnProperty,GH=tx.toString,no=wa?wa.toStringTag:void 0;function KH(e){var t=WH.call(e,no),r=e[no];try{e[no]=void 0;var n=!0}catch{}var a=GH.call(e);return n&&(t?e[no]=r:delete e[no]),a}var YH=KH,JH=Object.prototype,ZH=JH.toString;function XH(e){return ZH.call(e)}var QH=XH,ej="[object Null]",tj="[object Undefined]",x4=wa?wa.toStringTag:void 0;function rj(e){return e==null?e===void 0?tj:ej:x4&&x4 in Object(e)?YH(e):QH(e)}var nj=rj,D4=wa?wa.prototype:void 0;D4&&D4.toString;function aj(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rx=aj,oj="[object AsyncFunction]",ij="[object Function]",lj="[object GeneratorFunction]",sj="[object Proxy]";function uj(e){if(!rx(e))return!1;var t=nj(e);return t==ij||t==lj||t==oj||t==sj}var cj=uj,dj=qf["__core-js_shared__"],R0=dj,C4=function(){var e=/[^.]+$/.exec(R0&&R0.keys&&R0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pj(e){return!!C4&&C4 in e}var fj=pj,hj=Function.prototype,mj=hj.toString;function gj(e){if(e!=null){try{return mj.call(e)}catch{}try{return e+""}catch{}}return""}var vj=gj,yj=/[\\^$.*+?()[\]{}|]/g,bj=/^\[object .+?Constructor\]$/,wj=Function.prototype,Ej=Object.prototype,xj=wj.toString,Dj=Ej.hasOwnProperty,Cj=RegExp("^"+xj.call(Dj).replace(yj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sj(e){if(!rx(e)||fj(e))return!1;var t=cj(e)?Cj:bj;return t.test(vj(e))}var kj=Sj;function Aj(e,t){return e==null?void 0:e[t]}var Fj=Aj;function _j(e,t){var r=Fj(e,t);return kj(r)?r:void 0}var nx=_j;function Ij(e,t){return e===t||e!==e&&t!==t}var Rj=Ij,Tj=nx(Object,"create"),Vo=Tj;function Bj(){this.__data__=Vo?Vo(null):{},this.size=0}var zj=Bj;function Lj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Oj=Lj,Mj="__lodash_hash_undefined__",$j=Object.prototype,Pj=$j.hasOwnProperty;function Nj(e){var t=this.__data__;if(Vo){var r=t[e];return r===Mj?void 0:r}return Pj.call(t,e)?t[e]:void 0}var Hj=Nj,jj=Object.prototype,Vj=jj.hasOwnProperty;function Uj(e){var t=this.__data__;return Vo?t[e]!==void 0:Vj.call(t,e)}var qj=Uj,Wj="__lodash_hash_undefined__";function Gj(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Vo&&t===void 0?Wj:t,this}var Kj=Gj;function Ba(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var oV=aV;function iV(e,t){var r=this.__data__,n=iu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var lV=iV;function za(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iTV(e).replace(/\n\s*/g,"").trim()),zV=function(t,r){const n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let o=n;return o=o.replace(t,"function"),o+a},LV=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function ox(e){if(!RV(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=FH(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var OV=function(t){let r,n,a,o;return function(s,u){try{if(s==="")return o=[],r=new Map([[u,"[]"]]),n=new Map,a=[],u;const d=n.get(this)||this;for(;a.length&&d!==a[0];)a.shift(),o.pop();if(typeof u=="boolean")return u;if(u===void 0)return t.allowUndefined?"_undefined_":void 0;if(u===null)return null;if(typeof u=="number")return u===-1/0?"_-Infinity_":u===1/0?"_Infinity_":Number.isNaN(u)?"_NaN_":u;if(typeof u=="bigint")return`_bigint_${u.toString()}`;if(typeof u=="string")return LV.test(u)?t.allowDate?`_date_${u}`:void 0:u;if((0,MH.default)(u))return t.allowRegExp?`_regexp_${u.flags}|${u.source}`:void 0;if((0,$H.default)(u)){if(!t.allowFunction)return;const{name:m}=u,f=u.toString();return f.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${m}|${(()=>{}).toString()}`:`_function_${m}|${BV(zV(s,f))}`}if((0,PH.default)(u)){if(!t.allowSymbol)return;const m=Symbol.keyFor(u);return m!==void 0?`_gsymbol_${m}`:`_symbol_${u.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(u)?`[Array(${u.length})]`:"[Object]";if(u===this)return`_duplicate_${JSON.stringify(o)}`;if(u instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...u.cause?{cause:u.cause}:{},...u,name:u.name,message:u.message,stack:u.stack,"_constructor-name_":u.constructor.name}};if(u.constructor&&u.constructor.name&&u.constructor.name!=="Object"&&!Array.isArray(u)&&!t.allowClass)return;const p=r.get(u);if(!p){const m=Array.isArray(u)?u:ox(u);if(u.constructor&&u.constructor.name&&u.constructor.name!=="Object"&&!Array.isArray(u)&&t.allowClass)try{Object.assign(m,{"_constructor-name_":u.constructor.name})}catch{}return o.push(s),a.unshift(m),r.set(u,JSON.stringify(o)),u!==m&&n.set(u,m),m}return`_duplicate_${p}`}catch{return}}},MV={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},$V=(e,t={})=>{const r={...MV,...t};return JSON.stringify(ox(e),OV(r),t.space)};/*! + * isobject + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + *//** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */const{global:at}=__STORYBOOK_MODULE_GLOBAL__,{deprecate:PV,once:NV,logger:Gf}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{filterArgTypes:k4,composeConfigs:qG,Preview:WG,DocsContext:GG}=__STORYBOOK_MODULE_PREVIEW_API__,{GLOBALS_UPDATED:A4,STORY_ARGS_UPDATED:F4,UPDATE_STORY_ARGS:HV,RESET_STORY_ARGS:jV,NAVIGATE_URL:VV}=__STORYBOOK_MODULE_CORE_EVENTS__;__STORYBOOK_MODULE_CHANNELS__;var UV=Ea({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),qV=Ea({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,a=[].some,o=document.body,i,s=!0,u=" ";function d(E,C){var S=C.appendChild(m(E));if(E.children.length){var k=f(E.isCollapsed);E.children.forEach(function(A){d(A,k)}),S.appendChild(k)}}function p(E,C){var S=!1,k=f(S);if(C.forEach(function(A){d(A,k)}),i=E||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),C.length===0?i:i.appendChild(k)}function m(E){var C=document.createElement("li"),S=document.createElement("a");return r.listItemClass&&C.setAttribute("class",r.listItemClass),r.onClick&&(S.onclick=r.onClick),r.includeTitleTags&&S.setAttribute("title",E.textContent),r.includeHtml&&E.childNodes.length?n.call(E.childNodes,function(k){S.appendChild(k.cloneNode(!0))}):S.textContent=E.textContent,S.setAttribute("href",r.basePath+"#"+E.id),S.setAttribute("class",r.linkClass+u+"node-name--"+E.nodeName+u+r.extraLinkClasses),C.appendChild(S),C}function f(E){var C=r.orderedList?"ol":"ul",S=document.createElement(C),k=r.listClass+u+r.extraListClasses;return E&&(k=k+u+r.collapsibleClass,k=k+u+r.isCollapsedClass),S.setAttribute("class",k),S}function h(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var E;E=document.querySelector(r.scrollContainer).scrollTop}else E=document.documentElement.scrollTop||o.scrollTop;var C=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),E>r.fixedSidebarOffset?C.className.indexOf(r.positionFixedClass)===-1&&(C.className+=u+r.positionFixedClass):C.className=C.className.replace(u+r.positionFixedClass,"")}function g(E){var C=0;return E!==null&&(C=E.offsetTop,r.hasInnerContainers&&(C+=g(E.offsetParent))),C}function y(E,C){return E&&E.className!==C&&(E.className=C),E}function b(E){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var C;C=document.querySelector(r.scrollContainer).scrollTop}else C=document.documentElement.scrollTop||o.scrollTop;r.positionFixedSelector&&h();var S=E,k;if(s&&i!==null&&S.length>0){a.call(S,function(M,O){if(g(M)>C+r.headingsOffset+10){var $=O===0?O:O-1;return k=S[$],!0}else if(O===S.length-1)return k=S[S.length-1],!0});var A=i.querySelector("."+r.activeLinkClass),_=i.querySelector("."+r.linkClass+".node-name--"+k.nodeName+'[href="'+r.basePath+"#"+k.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(A===_)return;var R=i.querySelectorAll("."+r.linkClass);n.call(R,function(M){y(M,M.className.replace(u+r.activeLinkClass,""))});var T=i.querySelectorAll("."+r.listItemClass);n.call(T,function(M){y(M,M.className.replace(u+r.activeListItemClass,""))}),_&&_.className.indexOf(r.activeLinkClass)===-1&&(_.className+=u+r.activeLinkClass);var L=_&&_.parentNode;L&&L.className.indexOf(r.activeListItemClass)===-1&&(L.className+=u+r.activeListItemClass);var z=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(z,function(M){M.className.indexOf(r.isCollapsedClass)===-1&&(M.className+=u+r.isCollapsedClass)}),_&&_.nextSibling&&_.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&y(_.nextSibling,_.nextSibling.className.replace(u+r.isCollapsedClass,"")),D(_&&_.parentNode.parentNode)}}function D(E){return E&&E.className.indexOf(r.collapsibleClass)!==-1&&E.className.indexOf(r.isCollapsedClass)!==-1?(y(E,E.className.replace(u+r.isCollapsedClass,"")),D(E.parentNode.parentNode)):E}function w(E){var C=E.target||E.srcElement;typeof C.className!="string"||C.className.indexOf(r.linkClass)===-1||(s=!1)}function x(){s=!0}return{enableTocAnimation:x,disableTocAnimation:w,render:p,updateToc:b}}}}),WV=Ea({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function a(m){return m[m.length-1]}function o(m){return+m.nodeName.toUpperCase().replace("H","")}function i(m){try{return m instanceof window.HTMLElement||m instanceof window.parent.HTMLElement}catch{return m instanceof window.HTMLElement}}function s(m){if(!i(m))return m;if(r.ignoreHiddenElements&&(!m.offsetHeight||!m.offsetParent))return null;let f=m.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(m.innerText)):(m.innerText||m.textContent).trim());var h={id:m.id,children:[],nodeName:m.nodeName,headingLevel:o(m),textContent:f};return r.includeHtml&&(h.childNodes=m.childNodes),r.headingObjectCallback?r.headingObjectCallback(h,m):h}function u(m,f){for(var h=s(m),g=h.headingLevel,y=f,b=a(y),D=b?b.headingLevel:0,w=g-D;w>0&&(b=a(y),!(b&&g===b.headingLevel));)b&&b.children!==void 0&&(y=b.children),w--;return g>=r.collapseDepth&&(h.isCollapsed=!0),y.push(h),y}function d(m,f){var h=f;r.ignoreSelector&&(h=f.split(",").map(function(g){return g.trim()+":not("+r.ignoreSelector+")"}));try{return m.querySelectorAll(h)}catch{return console.warn("Headers not found with selector: "+h),null}}function p(m){return n.call(m,function(f,h){var g=s(h);return g&&u(g,f.nest),f},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:d}}}}),GV=Ea({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var a=n.querySelector("."+r.activeListItemClass);a&&(n.scrollTop=a.offsetTop-r.tocScrollOffset)}}}}),KV=Ea({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var a=n.duration,o=n.offset,i=location.hash?d(location.href):location.href;s();function s(){document.body.addEventListener("click",m,!1);function m(f){!u(f.target)||f.target.className.indexOf("no-smooth-scroll")>-1||f.target.href.charAt(f.target.href.length-2)==="#"&&f.target.href.charAt(f.target.href.length-1)==="!"||f.target.className.indexOf(n.linkClass)===-1||r(f.target.hash,{duration:a,offset:o,callback:function(){p(f.target.hash)}})}}function u(m){return m.tagName.toLowerCase()==="a"&&(m.hash.length>0||m.href.charAt(m.href.length-1)==="#")&&(d(m.href)===i||d(m.href)+"#"===i)}function d(m){return m.slice(0,m.lastIndexOf("#"))}function p(m){var f=document.getElementById(m.substring(1));f&&(/^(?:a|select|input|button|textarea)$/i.test(f.tagName)||(f.tabIndex=-1),f.focus())}}function r(n,a){var o=window.pageYOffset,i={duration:a.duration,offset:a.offset||0,callback:a.callback,easing:a.easing||g},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),u=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,d=typeof i.duration=="function"?i.duration(u):i.duration,p,m;requestAnimationFrame(function(y){p=y,f(y)});function f(y){m=y-p,window.scrollTo(0,i.easing(m,o,u,d)),m"u"&&!m)return;var f,h=Object.prototype.hasOwnProperty;function g(){for(var w={},x=0;x({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ie(.3,e.color.defaultText),fontSize:e.typography.size.s2})),ix=e=>v.createElement(JV,{...e,className:"docblock-emptyblock sb-unstyled"}),ZV=F(Ff)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),XV=F.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Wi=F.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${N0}`]:{margin:0}})),QV=()=>v.createElement(XV,null,v.createElement(Wi,null),v.createElement(Wi,{style:{width:"80%"}}),v.createElement(Wi,{style:{width:"30%"}}),v.createElement(Wi,{style:{width:"80%"}})),lx=({isLoading:e,error:t,language:r,code:n,dark:a,format:o=!1,...i})=>{let{typography:s}=F3();if(e)return v.createElement(QV,null);if(t)return v.createElement(ix,null,t);let u=v.createElement(ZV,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let d=a?$0.dark:$0.light;return v.createElement(_3,{theme:P0({...d,fontCode:s.fonts.mono,fontBase:s.fonts.base})},u)},fe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Kf=600,eU=F.h1(ue,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Kf}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),tU=F.h2(ue,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Kf}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ie(.25,e.color.defaultText)})),rU=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ie(.1,e.color.defaultText):ie(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[fe("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[fe("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[fe("div")]:t,[fe("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[fe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[fe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[fe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[fe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[fe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[fe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[fe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[fe("img")]:{maxWidth:"100%"},[fe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[fe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[fe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[fe("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[fe("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[fe("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[fe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),nU=F.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Kf}px)`]:{}})),aU=({children:e,toc:t})=>v.createElement(nU,{className:"sbdocs sbdocs-wrapper"},v.createElement(rU,{className:"sbdocs sbdocs-content"},e),t),su=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),oU=F(Mf)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),iU=F.div({display:"flex",alignItems:"center",gap:4}),lU=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),sU=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>v.createElement(oU,{...o},v.createElement(iU,{key:"left"},e?[1,2,3].map(i=>v.createElement(lU,{key:i})):v.createElement(v.Fragment,null,v.createElement(cn,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},v.createElement(WL,null)),v.createElement(cn,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},v.createElement(GL,null)),v.createElement(cn,{key:"zoomreset",onClick:i=>{i.preventDefault(),a()},title:"Reset zoom"},v.createElement(KL,null))))),sx=l.createContext({scale:1}),{window:uU}=at,cU=class extends l.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=uU.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...o}=this.props;return v.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...o})}},{PREVIEW_URL:dU}=at,pU=dU||"iframe.html",w1=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,fU=e=>{let t=l.useRef(),[r,n]=l.useState(!0),[a,o]=l.useState(),{story:i,height:s,autoplay:u,forceInitialArgs:d,renderStoryToElement:p}=e;return l.useEffect(()=>{if(!(i&&t.current))return()=>{};let m=t.current,f=p(i,m,{showMain:()=>{},showError:({title:h,description:g})=>o(new Error(`${h} - ${g}`)),showException:h=>o(h)},{autoplay:u,forceInitialArgs:d});return n(!1),()=>{Promise.resolve().then(()=>f())}},[u,p,i]),a?v.createElement("pre",null,v.createElement(LB,{error:a})):v.createElement(v.Fragment,null,s?v.createElement("style",null,`#${w1(e)} { min-height: ${s}; transform: translateZ(0); overflow: auto }`):null,r&&v.createElement(ux,null),v.createElement("div",{ref:t,id:`${w1(e)}-inner`,"data-name":i.name}))},hU=({story:e,height:t="500px"})=>v.createElement("div",{style:{width:"100%",height:t}},v.createElement(sx.Consumer,null,({scale:r})=>v.createElement(cU,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:aL(pU,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),mU=F.strong(({theme:e})=>({color:e.color.orange})),gU=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?v.createElement(mU,null,"This story mounts inside of play. Set"," ",v.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):v.createElement("div",{id:w1(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?v.createElement(fU,{...e}):v.createElement(hU,{...e}))},ux=()=>v.createElement(nL,null),vU=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),_4=F(lx)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Mt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Mt(.05,e.background.content)}})),yU=F.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...su(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),bU=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:v.createElement(_4,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:v.createElement(_4,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function wU(e){if(l.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var EU=F(sU)({position:"absolute",top:0,left:0,right:0,height:40}),xU=F.div({overflow:"hidden",position:"relative"}),cx=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:s,className:u,layout:d="padded",...p})=>{let[m,f]=l.useState(i),{source:h,actionItem:g}=bU(a,m,f),[y,b]=l.useState(1),D=[u].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),w=a?[g]:[],[x,E]=l.useState(s?[...s]:[]),C=[...w,...x],{window:S}=at,k=l.useCallback(async _=>{let{createCopyToClipboardFunction:R}=await A1(()=>import("./index-d4yFdb60.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);R()},[]),A=_=>{let R=S.getSelection();R&&R.type==="Range"||(_.preventDefault(),x.filter(T=>T.title==="Copied").length===0&&k(h.props.code).then(()=>{E([...x,{title:"Copied",onClick:()=>{}}]),S.setTimeout(()=>E(x.filter(T=>T.title!=="Copied")),1500)}))};return v.createElement(yU,{withSource:a,withToolbar:o,...p,className:D.join(" ")},o&&v.createElement(EU,{isLoading:e,border:!0,zoom:_=>b(y*_),resetZoom:()=>b(1),storyId:wU(n),baseUrl:"./iframe.html"}),v.createElement(sx.Provider,{value:{scale:y}},v.createElement(xU,{className:"docs-story",onCopyCapture:a&&A},v.createElement(vU,{isColumn:t||!Array.isArray(n),columns:r,layout:d},v.createElement(AB.Element,{scale:y},Array.isArray(n)?n.map((_,R)=>v.createElement("div",{key:R},_)):v.createElement("div",null,n))),v.createElement(ap,{actionItems:C}))),a&&m&&h)};F(cx)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var DU=F.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Pr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),CU=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:v.createElement(v.Fragment,null,v.createElement(DU,null,v.createElement("tbody",null,n&&v.createElement("tr",{key:"deprecated"},v.createElement("td",{colSpan:2},v.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(o=>v.createElement("tr",{key:o.name},v.createElement("td",null,v.createElement("code",null,o.name)),v.createElement("td",null,o.description))),a&&v.createElement("tr",{key:"returns"},v.createElement("td",null,v.createElement("code",null,"Returns")),v.createElement("td",null,e.returns.description)))))},E1=8,I4=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),SU=F.span(Pr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),kU=F.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),AU=F.div(Pr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),FU=F.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),_U=F(nO)({marginLeft:4}),IU=F(x9)({marginLeft:4}),RU=()=>v.createElement("span",null,"-"),dx=({text:e,simple:t})=>v.createElement(SU,{simple:t},e),TU=W9(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),BU=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return L$(t)},R4=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,E1)),r.map(n=>v.createElement(dx,{key:n,text:n===""?'""':n}))},zU=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=l.useState(!1),[i,s]=l.useState(t||!1);if(r==null)return null;let u=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(u))return v.createElement(dx,{text:u});let d=BU(u),p=d.length;return p>E1?v.createElement(I4,{isExpanded:i},R4(d,i),v.createElement(kU,{onClick:()=>s(!i)},i?"Show less...":`Show ${p-E1} more...`)):v.createElement(I4,null,R4(d))}return v.createElement(lz,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:d=>{o(d)},tooltip:v.createElement(FU,{width:TU(n)},v.createElement(Ff,{language:"jsx",format:!1},n))},v.createElement(AU,{className:"sbdocs-expandable"},v.createElement("span",null,u),a?v.createElement(_U,null):v.createElement(IU,null)))},T0=({value:e,initialExpandedArgs:t})=>e==null?v.createElement(RU,null):v.createElement(zU,{value:e,initialExpandedArgs:t}),LU=F.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ie(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Vi(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Vi(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Vi(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Vi(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),OU=e=>e==="true",MU=({name:e,value:t,onChange:r,onBlur:n,onFocus:a,argType:o})=>{var p;let i=l.useCallback(()=>r(!1),[r]),s=!!((p=o==null?void 0:o.table)!=null&&p.readonly);if(t===void 0)return v.createElement(Sn,{variant:"outline",size:"medium",id:cs(e),onClick:i,disabled:s},"Set boolean");let u=Ct(e),d=typeof t=="string"?OU(t):t;return v.createElement(LU,{"aria-disabled":s,htmlFor:u,"aria-label":e},v.createElement("input",{id:u,type:"checkbox",onChange:m=>r(m.target.checked),checked:d,role:"switch",disabled:s,name:e,onBlur:n,onFocus:a}),v.createElement("span",{"aria-hidden":"true"},"False"),v.createElement("span",{"aria-hidden":"true"},"True"))},$U=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},PU=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},NU=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},HU=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},T4=F(mi.Input)(({readOnly:e})=>({opacity:e?.5:1})),jU=F.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),VU=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,argType:o})=>{var g;let[i,s]=l.useState(!0),u=l.useRef(),d=l.useRef(),p=!!((g=o==null?void 0:o.table)!=null&&g.readonly);l.useEffect(()=>{i!==!1&&(u&&u.current&&(u.current.value=t?NU(t):""),d&&d.current&&(d.current.value=t?HU(t):""))},[t]);let m=y=>{if(!y.target.value)return r();let b=$U(y.target.value),D=new Date(t);D.setFullYear(b.getFullYear(),b.getMonth(),b.getDate());let w=D.getTime();w&&r(w),s(!!w)},f=y=>{if(!y.target.value)return r();let b=PU(y.target.value),D=new Date(t);D.setHours(b.getHours()),D.setMinutes(b.getMinutes());let w=D.getTime();w&&r(w),s(!!w)},h=Ct(e);return v.createElement(jU,null,v.createElement(T4,{type:"date",max:"9999-12-31",ref:u,id:`${h}-date`,name:`${h}-date`,readOnly:p,onChange:m,onFocus:n,onBlur:a}),v.createElement(T4,{type:"time",id:`${h}-time`,name:`${h}-time`,ref:d,onChange:f,readOnly:p,onFocus:n,onBlur:a}),i?null:v.createElement("div",null,"invalid"))},UU=F.label({display:"flex"}),qU=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},WU=F(mi.Input)(({readOnly:e})=>({opacity:e?.5:1})),GU=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:s,argType:u})=>{var x;let[d,p]=l.useState(typeof t=="number"?t:""),[m,f]=l.useState(!1),[h,g]=l.useState(null),y=!!((x=u==null?void 0:u.table)!=null&&x.readonly),b=l.useCallback(E=>{p(E.target.value);let C=parseFloat(E.target.value);Number.isNaN(C)?g(new Error(`'${E.target.value}' is not a number`)):(r(C),g(null))},[r,g]),D=l.useCallback(()=>{p("0"),r(0),f(!0)},[f]),w=l.useRef(null);return l.useEffect(()=>{m&&w.current&&w.current.select()},[m]),l.useEffect(()=>{d!==(typeof t=="number"?t:"")&&p(t)},[t]),t===void 0?v.createElement(Sn,{variant:"outline",size:"medium",id:cs(e),onClick:D,disabled:y},"Set number"):v.createElement(UU,null,v.createElement(WU,{ref:w,id:Ct(e),type:"number",onChange:b,size:"flex",placeholder:"Edit number...",value:d,valid:h?"error":null,autoFocus:m,readOnly:y,name:e,min:n,max:a,step:o,onFocus:s,onBlur:i}))},px=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},x1=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],fx=(e,t)=>e&&t&&e.map(r=>t[r]),KU=F.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),YU=F.span({"[aria-readonly=true] &":{opacity:.5}}),JU=F.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),B4=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var f;if(!t)return Gf.warn(`Checkbox with no options: ${e}`),v.createElement(v.Fragment,null,"-");let i=x1(r,t),[s,u]=l.useState(i),d=!!((f=o==null?void 0:o.table)!=null&&f.readonly),p=h=>{let g=h.target.value,y=[...s];y.includes(g)?y.splice(y.indexOf(g),1):y.push(g),n(fx(y,t)),u(y)};l.useEffect(()=>{u(x1(r,t))},[r]);let m=Ct(e);return v.createElement(KU,{"aria-readonly":d,isInline:a},Object.keys(t).map((h,g)=>{let y=`${m}-${g}`;return v.createElement(JU,{key:y,htmlFor:y},v.createElement("input",{type:"checkbox",disabled:d,id:y,name:y,value:h,onChange:p,checked:s==null?void 0:s.includes(h)}),v.createElement(YU,null,h))}))},ZU=F.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),XU=F.span({"[aria-readonly=true] &":{opacity:.5}}),QU=F.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),z4=({name:e,options:t,value:r,onChange:n,isInline:a,argType:o})=>{var d;if(!t)return Gf.warn(`Radio with no options: ${e}`),v.createElement(v.Fragment,null,"-");let i=px(r,t),s=Ct(e),u=!!((d=o==null?void 0:o.table)!=null&&d.readonly);return v.createElement(ZU,{"aria-readonly":u,isInline:a},Object.keys(t).map((p,m)=>{let f=`${s}-${m}`;return v.createElement(QU,{key:f,htmlFor:f},v.createElement("input",{type:"radio",id:f,name:s,disabled:u,value:p,onChange:h=>n(t[h.currentTarget.value]),checked:p===i}),v.createElement(XU,null,p))}))},eq={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},hx=F.select(eq,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),mx=F.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),L4="Choose option...",tq=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{n(r[p.currentTarget.value])},i=px(t,r)||L4,s=Ct(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return v.createElement(mx,null,v.createElement(x9,null),v.createElement(hx,{disabled:u,id:s,value:i,onChange:o},v.createElement("option",{key:"no-selection",disabled:!0},L4),Object.keys(r).map(p=>v.createElement("option",{key:p,value:p},p))))},rq=({name:e,value:t,options:r,onChange:n,argType:a})=>{var d;let o=p=>{let m=Array.from(p.currentTarget.options).filter(f=>f.selected).map(f=>f.value);n(fx(m,r))},i=x1(t,r),s=Ct(e),u=!!((d=a==null?void 0:a.table)!=null&&d.readonly);return v.createElement(mx,null,v.createElement(hx,{disabled:u,id:s,multiple:!0,value:i,onChange:o},Object.keys(r).map(p=>v.createElement("option",{key:p,value:p},p))))},O4=e=>{let{name:t,options:r}=e;return r?e.isMulti?v.createElement(rq,{...e}):v.createElement(tq,{...e}):(Gf.warn(`Select with no options: ${t}`),v.createElement(v.Fragment,null,"-"))},nq=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,aq={check:B4,"inline-check":B4,radio:z4,"inline-radio":z4,select:O4,"multi-select":O4},Mn=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,argType:n,options:n?nq(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=aq[t];if(o)return v.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Yf="value",oq="key",iq="Error",lq="Object",sq="Array",uq="String",cq="Number",dq="Boolean",pq="Date",fq="Null",hq="Undefined",mq="Function",gq="Symbol",gx="ADD_DELTA_TYPE",vx="REMOVE_DELTA_TYPE",yx="UPDATE_DELTA_TYPE";function on(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function bx(e,t){let r=on(e),n=on(t);return(r==="Function"||n==="Function")&&n!==r}var Jf=class extends l.Component{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,s={};if(!t){if(!o.value)return;s.key=o.value}s.newValue=r(!1,n,a,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,s=l.cloneElement(r,{onClick:this.onSubmit}),u=l.cloneElement(n,{onClick:e}),d=a(Yf,o,i),p=l.cloneElement(d,{placeholder:"Value",ref:this.refInputValue}),m=null;if(!t){let f=a(oq,o,i);m=l.cloneElement(f,{placeholder:"Key",ref:this.refInputKey})}return v.createElement("span",{className:"rejt-add-value-node"},m,p,u,s)}};Jf.defaultProps={onlyValue:!1,addButtonElement:v.createElement("button",null,"+"),cancelButtonElement:v.createElement("button",null,"c")};var wx=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:vx};n.splice(e,1),this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(r[r.length-1],i),u({type:gx,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:yx,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=i(e,t,r,n,s),m=o(e,t,r,n,s),f=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return v.createElement("span",{className:"rejt-collapsed"},v.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!m&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:m,addButtonElement:f,cancelButtonElement:h,editButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:D,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:C,logger:S,onSubmitValueParser:k}=this.props,{minus:A,plus:_,delimiter:R,ul:T,addForm:L}=p(e,t,r,n,m),z=d(e,t,r,n,m),M=l.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),O=l.cloneElement(D,{onClick:s,className:"rejt-minus-menu",style:A});return v.createElement("span",{className:"rejt-not-collapsed"},v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:R},"["),!a&&M,v.createElement("ul",{className:"rejt-not-collapsed-list",style:T},t.map(($,j)=>v.createElement(uu,{key:j,name:j.toString(),data:$,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(j),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:f,cancelButtonElement:h,editButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:D,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:C,logger:S,onSubmitValueParser:k}))),!z&&a&&v.createElement("div",{className:"rejt-add-form",style:L},v.createElement(Jf,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:y,keyPath:r,deep:n,onSubmitValueParser:k})),v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:R},"]"),!z&&O)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=i(e,r,n,a,o);return v.createElement("div",{className:"rejt-array-node"},v.createElement("span",{onClick:this.handleCollapseMode},v.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};wx.defaultProps={keyPath:[],deep:0,minusMenuElement:v.createElement("span",null," - "),plusMenuElement:v.createElement("span",null," + ")};var Ex=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{bx(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:m,textareaElementGenerator:f,minusMenuElement:h,keyPath:g}=this.props,y=d(e,i,n,a,u),b=null,D=null,w=s(e,i,n,a,u);if(r&&!w){let x=f(Yf,g,a,e,i,u),E=l.cloneElement(p,{onClick:this.handleEdit}),C=l.cloneElement(m,{onClick:this.handleCancelEdit}),S=l.cloneElement(x,{ref:this.refInput,defaultValue:i});b=v.createElement("span",{className:"rejt-edit-form",style:y.editForm},S," ",C,E),D=null}else{b=v.createElement("span",{className:"rejt-value",style:y.value,onClick:w?null:this.handleEditMode},t);let x=l.cloneElement(h,{onClick:o,className:"rejt-minus-menu",style:y.minus});D=w?null:x}return v.createElement("li",{className:"rejt-function-value-node",style:y.li},v.createElement("span",{className:"rejt-name",style:y.name},e," :"," "),b,D)}};Ex.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:v.createElement("button",null,"e"),cancelButtonElement:v.createElement("button",null,"c"),minusMenuElement:v.createElement("span",null," - ")};var uu=class extends l.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:D,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:C,onSubmitValueParser:S}=this.props,k=()=>!0,A=on(e);switch(A){case iq:return v.createElement(D1,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:k,dataType:A,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:D,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:C,onSubmitValueParser:S});case lq:return v.createElement(D1,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:A,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:D,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:C,onSubmitValueParser:S});case sq:return v.createElement(wx,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:s,onDeltaUpdate:u,readOnly:d,dataType:A,getStyle:p,addButtonElement:m,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:b,plusMenuElement:D,beforeRemoveAction:w,beforeAddAction:x,beforeUpdateAction:E,logger:C,onSubmitValueParser:S});case uq:return v.createElement(xr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});case cq:return v.createElement(xr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});case dq:return v.createElement(xr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});case pq:return v.createElement(xr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:k,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});case fq:return v.createElement(xr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});case hq:return v.createElement(xr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});case mq:return v.createElement(Ex,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:d,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,textareaElementGenerator:y,minusMenuElement:b,logger:C,onSubmitValueParser:S});case gq:return v.createElement(xr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:k,dataType:A,getStyle:p,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,minusMenuElement:b,logger:C,onSubmitValueParser:S});default:return null}}};uu.defaultProps={keyPath:[],deep:0};var D1=class extends l.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:u}=this.props;s(n[n.length-1],r),u({type:gx,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let s={keyPath:a,deep:o,key:e,oldValue:i,type:vx};delete n[e],this.setState({data:n});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],n),d(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,u=o[e];a(e,i,s,u,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(i[i.length-1],o),p({type:yx,keyPath:i,deep:s,key:e,newValue:t,oldValue:u}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:s,minusMenuElement:u}=this.props,{minus:d,collapsed:p}=s(e,n,t,r,i),m=Object.getOwnPropertyNames(n),f=o(e,n,t,r,i),h=l.cloneElement(u,{onClick:a,className:"rejt-minus-menu",style:d});return v.createElement("span",{className:"rejt-collapsed"},v.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",m.length," ",m.length===1?"key":"keys"),!f&&h)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:u,readOnly:d,getStyle:p,dataType:m,addButtonElement:f,cancelButtonElement:h,editButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:D,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:C,logger:S,onSubmitValueParser:k}=this.props,{minus:A,plus:_,addForm:R,ul:T,delimiter:L}=p(e,t,r,n,m),z=Object.getOwnPropertyNames(t),M=d(e,t,r,n,m),O=l.cloneElement(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:_}),$=l.cloneElement(D,{onClick:s,className:"rejt-minus-menu",style:A}),j=z.map(K=>v.createElement(uu,{key:K,name:K,data:t[K],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(K),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:p,addButtonElement:f,cancelButtonElement:h,editButtonElement:g,inputElementGenerator:y,textareaElementGenerator:b,minusMenuElement:D,plusMenuElement:w,beforeRemoveAction:x,beforeAddAction:E,beforeUpdateAction:C,logger:S,onSubmitValueParser:k}));return v.createElement("span",{className:"rejt-not-collapsed"},v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"{"),!M&&O,v.createElement("ul",{className:"rejt-not-collapsed-list",style:T},j),!M&&o&&v.createElement("div",{className:"rejt-add-form",style:R},v.createElement(Jf,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:f,cancelButtonElement:h,inputElementGenerator:y,keyPath:r,deep:n,onSubmitValueParser:k})),v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"}"),!M&&$)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),u=o(e,r,n,a,i);return v.createElement("div",{className:"rejt-object-node"},v.createElement("span",{onClick:this.handleCollapseMode},v.createElement("span",{className:"rejt-name",style:u.name},e," :"," ")),s)}};D1.defaultProps={keyPath:[],deep:0,minusMenuElement:v.createElement("span",null," - "),plusMenuElement:v.createElement("span",null," + ")};var xr=class extends l.Component{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:s}=this.props,u=i(r,n,a,o,s);e&&!u&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:s}=this.state;if(!o)return;let u=n(!0,a,s,i,o.value);e({value:u,key:i}).then(()=>{bx(t,u)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:s,dataType:u,getStyle:d,editButtonElement:p,cancelButtonElement:m,inputElementGenerator:f,minusMenuElement:h,keyPath:g}=this.props,y=d(e,i,n,a,u),b=s(e,i,n,a,u),D=r&&!b,w=f(Yf,g,a,e,i,u),x=l.cloneElement(p,{onClick:this.handleEdit}),E=l.cloneElement(m,{onClick:this.handleCancelEdit}),C=l.cloneElement(w,{ref:this.refInput,defaultValue:JSON.stringify(i)}),S=l.cloneElement(h,{onClick:o,className:"rejt-minus-menu",style:y.minus});return v.createElement("li",{className:"rejt-value-node",style:y.li},v.createElement("span",{className:"rejt-name",style:y.name},e," : "),D?v.createElement("span",{className:"rejt-edit-form",style:y.editForm},C," ",E,x):v.createElement("span",{className:"rejt-value",style:y.value,onClick:b?null:this.handleEditMode},String(t)),!b&&!D&&S)}};xr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:v.createElement("button",null,"e"),cancelButtonElement:v.createElement("button",null,"c"),minusMenuElement:v.createElement("span",null," - ")};var vq={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},yq={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},bq={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function wq(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var xx=class extends l.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElement:d,textareaElement:p,minusMenuElement:m,plusMenuElement:f,beforeRemoveAction:h,beforeAddAction:g,beforeUpdateAction:y,logger:b,onSubmitValueParser:D,fallback:w=null}=this.props,x=on(e),E=a;on(a)==="Boolean"&&(E=()=>a);let C=d;d&&on(d)!=="Function"&&(C=()=>d);let S=p;return p&&on(p)!=="Function"&&(S=()=>p),x==="Object"||x==="Array"?v.createElement("div",{className:"rejt-tree"},v.createElement(uu,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:E,getStyle:o,addButtonElement:i,cancelButtonElement:s,editButtonElement:u,inputElementGenerator:C,textareaElementGenerator:S,minusMenuElement:m,plusMenuElement:f,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:g,beforeUpdateAction:y,logger:b,onSubmitValueParser:D})):w}};xx.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return vq;case"Array":return yq;default:return bq}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>wq(a),inputElement:()=>v.createElement("input",null),textareaElement:()=>v.createElement("textarea",null),fallback:null};var{window:Eq}=at,xq=F.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),B0=F.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),Dq=F(XL)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),Cq=F(QL)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),M4=F.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),Sq=F(cn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),kq=F(mi.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Aq={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Fq=e=>{e.currentTarget.dispatchEvent(new Eq.KeyboardEvent("keydown",Aq))},_q=e=>{e.currentTarget.select()},Iq=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),$4=({name:e,value:t,onChange:r,argType:n})=>{var x;let a=F3(),o=l.useMemo(()=>t&&wH(t),[t]),i=o!=null,[s,u]=l.useState(!i),[d,p]=l.useState(null),m=!!((x=n==null?void 0:n.table)!=null&&x.readonly),f=l.useCallback(E=>{try{E&&r(JSON.parse(E)),p(void 0)}catch(C){p(C)}},[r]),[h,g]=l.useState(!1),y=l.useCallback(()=>{r({}),g(!0)},[g]),b=l.useRef(null);if(l.useEffect(()=>{h&&b.current&&b.current.select()},[h]),!i)return v.createElement(Sn,{disabled:m,id:cs(e),onClick:y},"Set object");let D=v.createElement(kq,{ref:b,id:Ct(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:E=>f(E.target.value),placeholder:"Edit JSON string...",autoFocus:h,valid:d?"error":null,readOnly:m}),w=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return v.createElement(xq,{"aria-readonly":m},w&&v.createElement(Sq,{onClick:E=>{E.preventDefault(),u(C=>!C)}},s?v.createElement(JL,null):v.createElement(YL,null),v.createElement("span",null,"RAW")),s?D:v.createElement(xx,{readOnly:m||!w,isCollapsed:w?void 0:()=>!0,data:o,rootName:e,onFullyUpdate:r,getStyle:Iq(a),cancelButtonElement:v.createElement(B0,{type:"button"},"Cancel"),editButtonElement:v.createElement(B0,{type:"submit"},"Save"),addButtonElement:v.createElement(B0,{type:"submit",primary:!0},"Save"),plusMenuElement:v.createElement(Dq,null),minusMenuElement:v.createElement(Cq,null),inputElement:(E,C,S,k)=>k?v.createElement(M4,{onFocus:_q,onBlur:Fq}):v.createElement(M4,null),fallback:D}))},Rq=F.input(({theme:e,min:t,max:r,value:n,disabled:a})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Mt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Mt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Xr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Xr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Pt(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Mt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:a?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Pt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Mt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Mt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Xr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Xr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:a?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Pt(e.appBorderColor,.2)}`,cursor:a?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Mt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Mt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Mt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${Xr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${Xr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Dx=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Tq=F(Dx)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Bq=F.div({display:"flex",alignItems:"center",width:"100%"});function zq(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var Lq=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:s,argType:u})=>{var h;let d=g=>{r(qU(g.target.value))},p=t!==void 0,m=l.useMemo(()=>zq(o),[o]),f=!!((h=u==null?void 0:u.table)!=null&&h.readonly);return v.createElement(Bq,{"aria-readonly":f},v.createElement(Dx,null,n),v.createElement(Rq,{id:Ct(e),type:"range",disabled:f,onChange:d,name:e,value:t,min:n,max:a,step:o,onFocus:s,onBlur:i}),v.createElement(Tq,{numberOFDecimalsPlaces:m,max:a},p?t.toFixed(m):"--"," / ",a))},Oq=F.label({display:"flex"}),Mq=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),$q=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o,argType:i})=>{var h;let s=g=>{r(g.target.value)},u=!!((h=i==null?void 0:i.table)!=null&&h.readonly),[d,p]=l.useState(!1),m=l.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return v.createElement(Sn,{variant:"outline",size:"medium",disabled:u,id:cs(e),onClick:m},"Set string");let f=typeof t=="string";return v.createElement(Oq,null,v.createElement(mi.Textarea,{id:Ct(e),maxLength:o,onChange:s,disabled:u,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:f?null:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),o&&v.createElement(Mq,{isMaxed:(t==null?void 0:t.length)===o},(t==null?void 0:t.length)??0," / ",o))},Pq=F(mi.Input)({padding:10});function Nq(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Hq=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let o=l.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function s(d){if(!d.target.files)return;let p=Array.from(d.target.files).map(m=>URL.createObjectURL(m));e(p),Nq(n)}return l.useEffect(()=>{n==null&&o.current&&(o.current.value=null)},[n,t]),v.createElement(Pq,{ref:o,id:Ct(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},jq=l.lazy(()=>A1(()=>import("./Color-KGDBMAHA-20AvhpEt.js"),__vite__mapDeps([11,2,8,7,1,3,4,5,6,9,10]),import.meta.url)),Vq=e=>v.createElement(l.Suspense,{fallback:v.createElement("div",null)},v.createElement(jq,{...e})),Uq={array:$4,object:$4,boolean:MU,color:Vq,date:VU,number:GU,check:Mn,"inline-check":Mn,radio:Mn,"inline-radio":Mn,select:Mn,"multi-select":Mn,range:Lq,text:$q,file:Hq},P4=()=>v.createElement(v.Fragment,null,"-"),qq=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var y;let{key:a,control:o}=e,[i,s]=l.useState(!1),[u,d]=l.useState({value:t});l.useEffect(()=>{i||d({value:t})},[i,t]);let p=l.useCallback(b=>(d({value:b}),r({[a]:b}),b),[r,a]),m=l.useCallback(()=>s(!1),[]),f=l.useCallback(()=>s(!0),[]);if(!o||o.disable){let b=(o==null?void 0:o.disable)!==!0&&((y=e==null?void 0:e.type)==null?void 0:y.name)!=="function";return n&&b?v.createElement(ea,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):v.createElement(P4,null)}let h={name:a,argType:e,value:u.value,onChange:p,onBlur:m,onFocus:f},g=Uq[o.type]||P4;return v.createElement(g,{...h,...o,controlType:o.type})},Wq=F.span({fontWeight:"bold"}),Gq=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Kq=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Pr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Yq=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?4:0})),Jq=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ie(.1,e.color.defaultText):ie(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Zq=F.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Xq=e=>e&&{summary:typeof e=="string"?e:e.name},Gi=e=>{var y;let[t,r]=l.useState(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:s}=e,{name:u,description:d}=n,p=n.table||{},m=p.type||Xq(n.type),f=p.defaultValue||n.defaultValue,h=(y=n.type)==null?void 0:y.required,g=d!=null&&d!=="";return v.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},v.createElement(Zq,{expandable:i},v.createElement(Wq,null,u),h?v.createElement(Gq,{title:"Required"},"*"):null),o?null:v.createElement("td",null,g&&v.createElement(Kq,null,v.createElement(U9,null,d)),p.jsDocTags!=null?v.createElement(v.Fragment,null,v.createElement(Jq,{hasDescription:g},v.createElement(T0,{value:m,initialExpandedArgs:s})),v.createElement(CU,{tags:p.jsDocTags})):v.createElement(Yq,{hasDescription:g},v.createElement(T0,{value:m,initialExpandedArgs:s}))),o?null:v.createElement("td",null,v.createElement(T0,{value:f,initialExpandedArgs:s})),a?v.createElement("td",null,v.createElement(qq,{...e,isHovered:t})):null)},Qq=F(tO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),eW=F(rO)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ie(.25,e.color.defaultText):ie(.3,e.color.defaultText),border:"none",display:"inline-block"})),tW=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),rW=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),nW=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),aW=F.td(()=>({position:"relative"})),oW=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Xr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),N4=F.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),z0=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=l.useState(n),s=e==="subsection"?nW:rW,u=(r==null?void 0:r.length)||0,d=e==="subsection"?`${u} item${u!==1?"s":""}`:"",p=`${o?"Hide":"Show"} ${e==="subsection"?u:t} item${u!==1?"s":""}`;return v.createElement(v.Fragment,null,v.createElement(oW,{title:p},v.createElement(s,{colSpan:1},v.createElement(N4,{onClick:m=>i(!o),tabIndex:0},p),v.createElement(tW,null,o?v.createElement(Qq,null):v.createElement(eW,null),t)),v.createElement(aW,{colSpan:a-1},v.createElement(N4,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},p),o?null:d)),o?r:null)},Ki=F.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ae=F.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),he=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Fe=[2,4,2,2],iW=()=>v.createElement(v.Fragment,null,v.createElement(Ki,null,v.createElement(Ae,{numColumn:Fe[0]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[1]},v.createElement(he,{width:"30%"})),v.createElement(Ae,{numColumn:Fe[2]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[3]},v.createElement(he,{width:"60%"}))),v.createElement(Ki,null,v.createElement(Ae,{numColumn:Fe[0]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[1]},v.createElement(he,{width:"80%"}),v.createElement(he,{width:"30%"})),v.createElement(Ae,{numColumn:Fe[2]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[3]},v.createElement(he,{width:"60%"}))),v.createElement(Ki,null,v.createElement(Ae,{numColumn:Fe[0]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[1]},v.createElement(he,{width:"80%"}),v.createElement(he,{width:"30%"})),v.createElement(Ae,{numColumn:Fe[2]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[3]},v.createElement(he,{width:"60%"}))),v.createElement(Ki,null,v.createElement(Ae,{numColumn:Fe[0]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[1]},v.createElement(he,{width:"80%"}),v.createElement(he,{width:"30%"})),v.createElement(Ae,{numColumn:Fe[2]},v.createElement(he,{width:"60%"})),v.createElement(Ae,{numColumn:Fe[3]},v.createElement(he,{width:"60%"})))),lW=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),sW=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),uW=F.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),cW=({inAddonPanel:e})=>{let[t,r]=l.useState(!0);return l.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:v.createElement(lW,{inAddonPanel:e},v.createElement(m9,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:v.createElement(v.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:v.createElement(sW,null,e&&v.createElement(v.Fragment,null,v.createElement(ea,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},v.createElement(ZL,null)," Watch 5m video"),v.createElement(uW,null),v.createElement(ea,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},v.createElement(v1,null)," Read docs")),!e&&v.createElement(ea,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},v.createElement(v1,null)," Learn how to set that up"))}))},dW=F.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ie(.25,e.color.defaultText):ie(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),pW=F(cn)(({theme:e})=>({margin:"-4px -12px -4px 0"})),fW=F.span({display:"flex",justifyContent:"space-between"}),hW={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||e.name.localeCompare(t.name)},none:void 0},mW=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:s,subcategory:u}=(i==null?void 0:i.table)||{};if(s){let d=r.sections[s]||{ungrouped:[],subsections:{}};if(!u)d.ungrouped.push({key:o,...i});else{let p=d.subsections[u]||[];p.push({key:o,...i}),d.subsections[u]=p}r.sections[s]=d}else if(u){let d=r.ungroupedSubsections[u]||[];d.push({key:o,...i}),r.ungroupedSubsections[u]=d}else r.ungrouped.push({key:o,...i})});let n=hW[t],a=o=>n?Object.keys(o).reduce((i,s)=>({...i,[s]:o[s].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},gW=(e,t,r)=>{try{return Px(e,t,r)}catch(n){return NV.warn(n.message),!1}},C1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:s}=e;if("error"in e){let{error:w}=e;return v.createElement(ix,null,w," ",v.createElement(ea,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},v.createElement(v1,null)," Read the docs"))}if(s)return v.createElement(iW,null);let{rows:u,args:d,globals:p}="rows"in e&&e,m=mW(JO(u,w=>{var x;return!((x=w==null?void 0:w.table)!=null&&x.disable)&&gW(w,d||{},p||{})}),i),f=m.ungrouped.length===0,h=Object.entries(m.sections).length===0,g=Object.entries(m.ungroupedSubsections).length===0;if(f&&h&&g)return v.createElement(cW,{inAddonPanel:a});let y=1;t&&(y+=1),n||(y+=2);let b=Object.keys(m.sections).length>0,D={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return v.createElement(q8,null,v.createElement(dW,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},v.createElement("thead",{className:"docblock-argstable-head"},v.createElement("tr",null,v.createElement("th",null,v.createElement("span",null,"Name")),n?null:v.createElement("th",null,v.createElement("span",null,"Description")),n?null:v.createElement("th",null,v.createElement("span",null,"Default")),t?v.createElement("th",null,v.createElement(fW,null,"Control"," ",!s&&r&&v.createElement(pW,{onClick:()=>r(),title:"Reset controls"},v.createElement(aO,{"aria-hidden":!0})))):null)),v.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(w=>v.createElement(Gi,{key:w.key,row:w,arg:d&&d[w.key],...D})),Object.entries(m.ungroupedSubsections).map(([w,x])=>v.createElement(z0,{key:w,label:w,level:"subsection",colSpan:y},x.map(E=>v.createElement(Gi,{key:E.key,row:E,arg:d&&d[E.key],expandable:b,...D})))),Object.entries(m.sections).map(([w,x])=>v.createElement(z0,{key:w,label:w,level:"section",colSpan:y},x.ungrouped.map(E=>v.createElement(Gi,{key:E.key,row:E,arg:d&&d[E.key],...D})),Object.entries(x.subsections).map(([E,C])=>v.createElement(z0,{key:E,label:E,level:"subsection",colSpan:y},C.map(S=>v.createElement(Gi,{key:S.key,row:S,arg:d&&d[S.key],expandable:b,...D})))))))))},vW=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?v.createElement(C1,{...r[0][1],...t}):v.createElement(Vz,null,r.map((n,a)=>{let[o,i]=n,s=`prop_table_div_${o}`,u="div",d=a===0?t:{sort:t.sort};return v.createElement(u,{key:s,id:s,title:o},({active:p})=>p?v.createElement(C1,{key:`prop_table_${o}`,...i,...d}):null)}))};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(ue,({theme:e})=>({...su(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:e.base==="light"?ie(.2,e.color.defaultText):ie(.6,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...su(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ie(.4,e.color.defaultText):ie(.6,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));F.div(({theme:e})=>({...su(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});F.div({display:"flex",flexFlow:"row wrap"});var yW=e=>`anchor--${e}`,bW=({storyId:e,children:t})=>v.createElement("div",{id:yW(e),className:"sb-anchor"},t);at&&at.__DOCS_CONTEXT__===void 0&&(at.__DOCS_CONTEXT__=l.createContext(null),at.__DOCS_CONTEXT__.displayName="DocsContext");var rr=at?at.__DOCS_CONTEXT__:l.createContext(null),kn=(e,t)=>l.useContext(rr).resolveOf(e,t),wW=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),EW=e=>{if(e)return typeof e=="string"?e.includes("-")?wW(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function xW(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function Cx(e){return $V(e,{allowFunction:!1})}var Sx=l.createContext({sources:{}}),kx="--unknown--",DW=({children:e,channel:t})=>{let[r,n]=l.useState({});return l.useEffect(()=>{let a=(o,i=null,s=!1)=>{let{id:u,args:d=void 0,source:p,format:m}=typeof o=="string"?{id:o,source:i,format:s}:o,f=d?Cx(d):kx;n(h=>({...h,[u]:{...h[u],[f]:{code:p,format:m}}}))};return t.on(nh,a),()=>t.off(nh,a)},[]),v.createElement(Sx.Provider,{value:{sources:r}},e)},CW=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[Cx(t)])||(a==null?void 0:a[kx])||{code:""}},SW=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var u,d;let{__isArgsStory:a}=t.parameters,o=((u=t.parameters.docs)==null?void 0:u.source)||{},i=r||o.type||pu.AUTO;if(o.code!==void 0)return o.code;let s=i===pu.DYNAMIC||i===pu.AUTO&&e&&a?e:o.originalSource||"";return((d=n??o.transform)==null?void 0:d(s,t))||s},kW=(e,t,r)=>{var h,g,y,b;let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let o=((g=(h=n==null?void 0:n.parameters)==null?void 0:h.docs)==null?void 0:g.source)||{},{code:i}=e,s=e.format??o.format,u=e.language??o.language??"jsx",d=e.dark??o.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:s,language:u,dark:d};let p=t.getStoryContext(n),m=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,f=CW(n.id,m,r);return s=f.format??((b=(y=n.parameters.docs)==null?void 0:y.source)==null?void 0:b.format)??!1,{code:SW({snippet:f.code,storyContext:{...p,args:m},typeFromProps:e.type,transformFromProps:e.transform}),format:s,language:u,dark:d}};function AW(e,t){let r=FW([e],t);return r&&r[0]}function FW(e,t){let[r,n]=l.useState({});return l.useEffect(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var _W=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},IW=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,o=a.story||{};if(a.disable)return null;if(e.inline??o.inline??!1){let s=e.height??o.height,u=e.autoplay??o.autoplay??!1;return{story:t,inline:!0,height:s,autoplay:u,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??o.height??o.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},RW=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=l.useContext(rr),r=_W(e,t),n=AW(r,t);if(!n)return v.createElement(ux,null);let a=IW(e,n,t);return a?v.createElement(gU,{...a}):null},TW=e=>{var f,h,g,y,b,D,w,x,E,C;let t=l.useContext(rr),r=l.useContext(Sx),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:o}=kn(n||"story",["story"]),i=kW({...a,...n&&{of:n}},t,r),s=e.layout??o.parameters.layout??((h=(f=o.parameters.docs)==null?void 0:f.canvas)==null?void 0:h.layout)??"padded",u=e.withToolbar??((y=(g=o.parameters.docs)==null?void 0:g.canvas)==null?void 0:y.withToolbar)??!1,d=e.additionalActions??((D=(b=o.parameters.docs)==null?void 0:b.canvas)==null?void 0:D.additionalActions),p=e.sourceState??((x=(w=o.parameters.docs)==null?void 0:w.canvas)==null?void 0:x.sourceState)??"hidden",m=e.className??((C=(E=o.parameters.docs)==null?void 0:E.canvas)==null?void 0:C.className);return v.createElement(cx,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:u,additionalActions:d,className:m,layout:s},v.createElement(RW,{of:n||o.moduleExport,meta:e.meta,...e.story}))},BW=(e,t)=>{let r=t.getStoryContext(e),[n,a]=l.useState(r.globals);return l.useEffect(()=>{let o=i=>{a(i.globals)};return t.channel.on(A4,o),()=>t.channel.off(A4,o)},[t.channel]),[n]},zW=(e,t)=>{let r=LW(e,t);if(!r)throw new Error("No result when story was defined");return r},LW=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,o]=l.useState(r.args);l.useEffect(()=>{let u=d=>{d.storyId===n&&o(d.args)};return t.channel.on(F4,u),()=>t.channel.off(F4,u)},[n,t.channel]);let i=l.useCallback(u=>t.channel.emit(HV,{storyId:n,updatedArgs:u}),[n,t.channel]),s=l.useCallback(u=>t.channel.emit(jV,{storyId:n,argNames:u}),[n,t.channel]);return e&&[a,i,s]};function OW(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var MW=e=>{var E;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=l.useContext(rr),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:o,component:i,subcomponents:s}=n,u=((E=a.docs)==null?void 0:E.controls)||{},d=e.include??u.include,p=e.exclude??u.exclude,m=e.sort??u.sort,[f,h,g]=zW(n,r),[y]=BW(n,r),b=k4(o,d,p);if(!(s&&Object.keys(s).length>0))return Object.keys(b).length>0||Object.keys(f).length>0?v.createElement(C1,{rows:b,sort:m,args:f,globals:y,updateArgs:h,resetArgs:g}):null;let D=EW(i),w=Object.fromEntries(Object.entries(s).map(([C,S])=>[C,{rows:k4(OW(S,a),d,p),sort:m}])),x={[D]:{rows:b,sort:m},...w};return v.createElement(vW,{tabs:x,sort:m,args:f,globals:y,updateArgs:h,resetArgs:g})},{document:Ax}=at,Fx=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return v.createElement(j8,null,t);let n=e&&e.split("-");return v.createElement(lx,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Zf(e,t){e.channel.emit(VV,t)}var S1=iL.a,$W=({hash:e,children:t})=>{let r=l.useContext(rr);return v.createElement(S1,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);Ax.getElementById(a)&&Zf(r,e)}},t)},_x=e=>{let{href:t,target:r,children:n,...a}=e,o=l.useContext(rr);return!t||r==="_blank"||/^https?:\/\//.test(t)?v.createElement(S1,{...e}):t.startsWith("#")?v.createElement($W,{hash:t},n):v.createElement(S1,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Zf(o,i.currentTarget.getAttribute("href")))},target:r,...a},n)},Ix=["h1","h2","h3","h4","h5","h6"],PW=Ix.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),NW=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),HW=({as:e,id:t,children:r,...n})=>{let a=l.useContext(rr),o=PW[e],i=`#${t}`;return v.createElement(o,{id:t,...n},v.createElement(NW,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{Ax.getElementById(t)&&Zf(a,i)}},v.createElement(eO,null)),r)},Xf=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return v.createElement(HW,{as:t,id:r,...a},n);let o=t,{as:i,...s}=e;return v.createElement(o,{...se(s,t)})},Rx=Ix.reduce((e,t)=>({...e,[t]:r=>v.createElement(Xf,{as:t,...r})}),{}),jW=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(dD`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + This is often caused by not wrapping the child in a template string. + + This is invalid: + + # Some heading + A paragraph + + + Instead do: + + {\` + # Some heading + A paragraph + \`} + + `);return v.createElement(U9,{...e,options:{forceBlock:!0,overrides:{code:Fx,a:_x,...Rx,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},VW=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(VW||{}),UW=e=>{var t,r,n,a,o,i,s,u;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:d,component:p}=e.preparedMeta;return((a=(n=d.docs)==null?void 0:n.description)==null?void 0:a.component)||((i=(o=d.docs)==null?void 0:o.extractComponentDescription)==null?void 0:i.call(o,p,{component:p,parameters:d}))||null}case"component":{let{component:d,projectAnnotations:{parameters:p}}=e;return((u=(s=p.docs)==null?void 0:s.extractComponentDescription)==null?void 0:u.call(s,d,{component:d,parameters:p}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},k1=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=kn(t||"meta"),n=UW(r);return n?v.createElement(jW,null,n):null},H4=vD(YV()),qW=F.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),WW=F.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),GW=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),KW=({title:e})=>e===null?null:typeof e=="string"?v.createElement(GW,null,e):e,YW=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:o})=>(l.useEffect(()=>{let i={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...o},s=setTimeout(()=>H4.init(i),100);return()=>{clearTimeout(s),H4.destroy()}},[t]),v.createElement(v.Fragment,null,v.createElement(qW,null,t?null:v.createElement(WW,null,v.createElement(KW,{title:e||null}),v.createElement("div",{className:"toc-wrapper"}))))),{document:JW,window:ZW}=at,XW=({context:e,theme:t,children:r})=>{var a,o,i,s,u;let n;try{n=(o=(a=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:a.docs)==null?void 0:o.toc}catch{n=(u=(s=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:s.docs)==null?void 0:u.toc}return l.useEffect(()=>{let d;try{if(d=new URL(ZW.parent.location.toString()),d.hash){let p=JW.getElementById(d.hash.substring(1));p&&setTimeout(()=>{xW(p)},200)}}catch{}}),v.createElement(rr.Provider,{value:e},v.createElement(DW,{channel:e.channel},v.createElement(_3,{theme:dS(t)},v.createElement(aU,{toc:n?v.createElement(YW,{className:"sbdocs sbdocs-toc--custom",...n}):null},r))))},QW=/\s*\/\s*/,eG=e=>{let t=e.trim().split(QW);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},tG=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=kn(r||"meta",["meta"]).preparedMeta}catch(o){if(t&&!o.message.includes("did you forget to use ?"))throw o}let a=t||eG(n==null?void 0:n.title);return a?v.createElement(eU,{className:"sbdocs-title sb-unstyled"},a):null},rG="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",nG=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=kn(t||"meta",["meta"]).preparedMeta}catch(s){if(r&&!s.message.includes("did you forget to use ?"))throw s}let{componentSubtitle:a,docs:o}=(n==null?void 0:n.parameters)||{};a&&PV(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${rG}`);let i=r||(o==null?void 0:o.subtitle)||a;return i?v.createElement(tU,{className:"sbdocs-subtitle sb-unstyled"},i):null},aG=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return v.createElement(U8,null,e);let r=globalThis.encodeURIComponent(e.toLowerCase());return v.createElement(Xf,{as:"h3",id:r},e)},Tx=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:a=!1})=>{var s,u;let{story:o}=kn(e||"story",["story"]),i=((u=(s=o.parameters.docs)==null?void 0:s.canvas)==null?void 0:u.withToolbar)??r;return v.createElement(bW,{storyId:o.id},t&&v.createElement(v.Fragment,null,v.createElement(aG,null,o.name),v.createElement(k1,{of:e})),v.createElement(TW,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:a},source:{__forceInitialArgs:n}}))},oG=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=kn(t||"meta",["meta"]),n=l.useContext(rr).componentStoriesFromCSFFile(r)[0];return n?v.createElement(Tx,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},iG=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return v.createElement(V8,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return v.createElement(Xf,{as:"h2",id:n,...r},e)},lG=F(iG)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),sG=({title:e="Stories",includePrimary:t=!0})=>{var s;let{componentStories:r,projectAnnotations:n,getStoryContext:a}=l.useContext(rr),o=r(),{stories:{filter:i}={filter:void 0}}=((s=n.parameters)==null?void 0:s.docs)||{};return i&&(o=o.filter(u=>i(u,a(u)))),o.some(u=>{var d;return(d=u.tags)==null?void 0:d.includes("autodocs")})&&(o=o.filter(u=>{var d;return((d=u.tags)==null?void 0:d.includes("autodocs"))&&!u.usesMount})),t||(o=o.slice(1)),!o||o.length===0?null:v.createElement(v.Fragment,null,v.createElement(lG,null,e),o.map(u=>u&&v.createElement(Tx,{key:u.id,of:u.moduleExport,expanded:!0,__forceInitialArgs:!0})))},uG=()=>{let e=kn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return v.createElement(v.Fragment,null,v.createElement(tG,null),v.createElement(nG,null),v.createElement(k1,{of:"meta"}),r?v.createElement(k1,{of:"story"}):null,v.createElement(oG,null),v.createElement(MW,null),r?null:v.createElement(sG,null))};function cG({context:e,docsParameter:t}){let r=t.container||XW,n=t.page||uG;return v.createElement(r,{context:e,theme:t.theme},v.createElement(n,null))}var Bx={code:Fx,a:_x,...Rx},dG=class extends l.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:v.createElement(v.Fragment,null,t)}},pG=class{constructor(){this.render=async(e,t,r)=>{let n={...Bx,...t==null?void 0:t.components},a=cG;return new Promise((o,i)=>{A1(async()=>{const{MDXProvider:s}=await import("./index-DSkyVWTJ.js");return{MDXProvider:s}},__vite__mapDeps([12,2]),import.meta.url).then(({MDXProvider:s})=>Mx(v.createElement(dG,{showException:i,key:Math.random()},v.createElement(s,{components:n},v.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>o())})},this.unmount=e=>{$x(e)}}};const KG=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:pG,defaultComponents:Bx},Symbol.toStringTag,{value:"Module"}));export{TG as $,Sn as A,PG as B,AG as C,CG as D,Fl as E,y9 as F,FG as G,SG as H,_G as I,LB as J,YA as K,NG as L,HG as M,Ff as N,Mf as O,ZA as P,g9 as Q,nu as R,$G as S,LG as T,JA as U,v9 as V,Vz as W,ap as X,kz as Y,VG as Z,jG as _,RA as a,BG as a0,QA as a1,RG as a2,lz as a3,AB as a4,Pr as a5,iL as a6,q0 as a7,aL as a8,f1 as a9,MG as aa,se as ab,lL as ac,ue as ad,F as ae,UG as af,Ct as ag,KG as ah,m9 as b,$A as c,U8 as d,HA as e,PA as f,jA as g,NA as h,cn as i,zG as j,UA as k,j8 as l,p9 as m,ea as n,IA as o,V8 as p,Dz as q,nL as r,OA as s,WA as t,MA as u,VA as v,mi as w,KA as x,GA as y,q8 as z}; diff --git a/storybook/assets/FormControlLabel-D18ON2k4.js b/storybook/assets/FormControlLabel-D18ON2k4.js new file mode 100644 index 0000000..9406bce --- /dev/null +++ b/storybook/assets/FormControlLabel-D18ON2k4.js @@ -0,0 +1 @@ +import{b as ee,G as O,H as D,I as oe,J as se,K as te,M as re,_,j as x,c as I,N as ae,q as w,o as E,O as G,p as H,s as q,A as le,C as ne,t as U,u as W,T as z}from"./Wrapper-DXvvO_B0.js";import{_ as c}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as L}from"./index-CTjT7uj6.js";import{u as J,f as ce}from"./useFormControl-Baz_U5RD.js";import{u as ie}from"./useControlled-5JjQu8rW.js";import{c as de}from"./createStyled-D6A6HRKR.js";const ue=de(),pe=["component","direction","spacing","divider","children","className","useFlexGap"],me=ee(),fe=ue("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,o)=>o.root});function he(e){return ae({props:e,name:"MuiStack",defaultTheme:me})}function be(e,o){const t=L.Children.toArray(e).filter(Boolean);return t.reduce((r,l,s)=>(r.push(l),s({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ye=({ownerState:e,theme:o})=>{let t=c({display:"flex",flexDirection:"column"},O({theme:o},D({values:e.direction,breakpoints:o.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=oe(o),l=Object.keys(o.breakpoints.values).reduce((a,n)=>((typeof e.spacing=="object"&&e.spacing[n]!=null||typeof e.direction=="object"&&e.direction[n]!=null)&&(a[n]=!0),a),{}),s=D({values:e.direction,base:l}),u=D({values:e.spacing,base:l});typeof s=="object"&&Object.keys(s).forEach((a,n,g)=>{if(!s[a]){const C=n>0?s[g[n-1]]:"column";s[a]=C}}),t=se(t,O({theme:o},u,(a,n)=>e.useFlexGap?{gap:G(r,a)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ge(n?s[n]:e.direction)}`]:G(r,a)}}))}return t=te(o.breakpoints,t),t};function Ce(e={}){const{createStyledComponent:o=fe,useThemeProps:t=he,componentName:r="MuiStack"}=e,l=()=>w({root:["root"]},a=>E(r,a),{}),s=o(ye);return L.forwardRef(function(a,n){const g=t(a),y=re(g),{component:C="div",direction:F="column",spacing:j=0,divider:R,children:i,className:k,useFlexGap:p=!1}=y,B=_(y,pe),N={direction:F,spacing:j,useFlexGap:p},P=l();return x.jsx(s,c({as:C,ownerState:N,ref:n,className:I(P.root,k)},B,{children:R?be(i,R):i}))})}function ke(e){return E("PrivateSwitchBase",e)}H("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Pe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ve=e=>{const{classes:o,checked:t,disabled:r,edge:l}=e,s={root:["root",t&&"checked",r&&"disabled",l&&`edge${U(l)}`],input:["input"]};return w(s,ke,o)},xe=q(le)(({ownerState:e})=>c({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Fe=q("input",{shouldForwardProp:ne})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_e=L.forwardRef(function(o,t){const{autoFocus:r,checked:l,checkedIcon:s,className:u,defaultChecked:b,disabled:a,disableFocusRipple:n=!1,edge:g=!1,icon:y,id:C,inputProps:F,inputRef:j,name:R,onBlur:i,onChange:k,onFocus:p,readOnly:B,required:N=!1,tabIndex:P,type:m,value:S}=o,f=_(o,Pe),[v,K]=ie({controlled:l,default:!!b,name:"SwitchBase",state:"checked"}),h=J(),Q=d=>{p&&p(d),h&&h.onFocus&&h.onFocus(d)},X=d=>{i&&i(d),h&&h.onBlur&&h.onBlur(d)},Y=d=>{if(d.nativeEvent.defaultPrevented)return;const A=d.target.checked;K(A),k&&k(d,A)};let $=a;h&&typeof $>"u"&&($=h.disabled);const Z=m==="checkbox"||m==="radio",M=c({},o,{checked:v,disabled:$,disableFocusRipple:n,edge:g}),V=ve(M);return x.jsxs(xe,c({component:"span",className:I(V.root,u),centerRipple:!0,focusRipple:!n,disabled:$,tabIndex:null,role:void 0,onFocus:Q,onBlur:X,ownerState:M,ref:t},f,{children:[x.jsx(Fe,c({autoFocus:r,checked:l,defaultChecked:b,className:V.input,disabled:$,id:Z?C:void 0,name:R,onChange:Y,readOnly:B,ref:j,required:N,ownerState:M,tabIndex:P,type:m},m==="checkbox"&&S===void 0?{}:{value:S},F)),v?s:y]}))}),Re=Ce({createStyledComponent:q("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,o)=>o.root}),useThemeProps:e=>W({props:e,name:"MuiStack"})});function Be(e){return E("MuiFormControlLabel",e)}const T=H("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Se=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Le=e=>{const{classes:o,disabled:t,labelPlacement:r,error:l,required:s}=e,u={root:["root",t&&"disabled",`labelPlacement${U(r)}`,l&&"error",s&&"required"],label:["label",t&&"disabled"],asterisk:["asterisk",l&&"error"]};return w(u,Be,o)},je=q("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${T.label}`]:o.label},o.root,o[`labelPlacement${U(t.labelPlacement)}`]]}})(({theme:e,ownerState:o})=>c({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${T.disabled}`]:{cursor:"default"}},o.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},o.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},o.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${T.label}`]:{[`&.${T.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Ne=q("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,o)=>o.asterisk})(({theme:e})=>({[`&.${T.error}`]:{color:(e.vars||e).palette.error.main}})),we=L.forwardRef(function(o,t){var r,l;const s=W({props:o,name:"MuiFormControlLabel"}),{className:u,componentsProps:b={},control:a,disabled:n,disableTypography:g,label:y,labelPlacement:C="end",required:F,slotProps:j={}}=s,R=_(s,Se),i=J(),k=(r=n??a.props.disabled)!=null?r:i==null?void 0:i.disabled,p=F??a.props.required,B={disabled:k,required:p};["checked","name","onChange","value","inputRef"].forEach(v=>{typeof a.props[v]>"u"&&typeof s[v]<"u"&&(B[v]=s[v])});const N=ce({props:s,muiFormControl:i,states:["error"]}),P=c({},s,{disabled:k,labelPlacement:C,required:p,error:N.error}),m=Le(P),S=(l=j.typography)!=null?l:b.typography;let f=y;return f!=null&&f.type!==z&&!g&&(f=x.jsx(z,c({component:"span"},S,{className:I(m.label,S==null?void 0:S.className),children:f}))),x.jsxs(je,c({className:I(m.root,u),ownerState:P,ref:t},R,{children:[L.cloneElement(a,B),p?x.jsxs(Re,{display:"block",children:[f,x.jsxs(Ne,{ownerState:P,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]}):f]}))});export{we as F,_e as S}; diff --git a/storybook/assets/FormHelperText-h4EvFgt8.js b/storybook/assets/FormHelperText-h4EvFgt8.js new file mode 100644 index 0000000..60013d1 --- /dev/null +++ b/storybook/assets/FormHelperText-h4EvFgt8.js @@ -0,0 +1 @@ +import{p as k,o as M,s as g,C as Q,u as L,_ as q,J as Y,j as v,q as y,c as P,t as h}from"./Wrapper-DXvvO_B0.js";import{_ as i}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as m}from"./index-CTjT7uj6.js";import{i as Z,a as oo,r as ro,b as eo,c as to,I as so,d as no,e as J}from"./InputBase-DuDaiXcF.js";import{u as A,f as j,F as ao}from"./useFormControl-Baz_U5RD.js";import{i as E}from"./isMuiElement-BqzHBgRb.js";function io(o){return M("MuiInput",o)}const R=i({},Z,k("MuiInput",["root","underline","input"])),lo=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],co=o=>{const{classes:r,disableUnderline:t}=o,n=y({root:["root",!t&&"underline"],input:["input"]},io,r);return i({},r,n)},uo=g(oo,{shouldForwardProp:o=>Q(o)||o==="classes",name:"MuiInput",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[...ro(o,r),!t.disableUnderline&&r.underline]}})(({theme:o,ownerState:r})=>{let e=o.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return o.vars&&(e=`rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})`),i({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o.vars||o).palette[r.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:o.transitions.create("transform",{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${R.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${R.error}`]:{"&::before, &::after":{borderBottomColor:(o.vars||o).palette.error.main}},"&::before":{borderBottom:`1px solid ${e}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:o.transitions.create("border-bottom-color",{duration:o.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${R.disabled}, .${R.error}):before`]:{borderBottom:`2px solid ${(o.vars||o).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${e}`}},[`&.${R.disabled}:before`]:{borderBottomStyle:"dotted"}})}),po=g(eo,{name:"MuiInput",slot:"Input",overridesResolver:to})({}),mo=m.forwardRef(function(r,t){var e,n,c,l;const d=L({props:r,name:"MuiInput"}),{disableUnderline:a,components:s={},componentsProps:u,fullWidth:p=!1,inputComponent:f="input",multiline:S=!1,slotProps:b,slots:C={},type:F="text"}=d,B=q(d,lo),U=co(d),$={root:{ownerState:{disableUnderline:a}}},T=b??u?Y(b??u,$):$,W=(e=(n=C.root)!=null?n:s.Root)!=null?e:uo,N=(c=(l=C.input)!=null?l:s.Input)!=null?c:po;return v.jsx(so,i({slots:{root:W,input:N},slotProps:T,fullWidth:p,inputComponent:f,multiline:S,ref:t,type:F},B,{classes:U}))});mo.muiName="Input";function fo(o){return M("MuiFormLabel",o)}const z=k("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),bo=["children","className","color","component","disabled","error","filled","focused","required"],xo=o=>{const{classes:r,color:t,focused:e,disabled:n,error:c,filled:l,required:d}=o,a={root:["root",`color${h(t)}`,n&&"disabled",c&&"error",l&&"filled",e&&"focused",d&&"required"],asterisk:["asterisk",c&&"error"]};return y(a,fo,r)},vo=g("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:o},r)=>i({},r.root,o.color==="secondary"&&r.colorSecondary,o.filled&&r.filled)})(({theme:o,ownerState:r})=>i({color:(o.vars||o).palette.text.secondary},o.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${z.focused}`]:{color:(o.vars||o).palette[r.color].main},[`&.${z.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${z.error}`]:{color:(o.vars||o).palette.error.main}})),go=g("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(o,r)=>r.asterisk})(({theme:o})=>({[`&.${z.error}`]:{color:(o.vars||o).palette.error.main}})),Co=m.forwardRef(function(r,t){const e=L({props:r,name:"MuiFormLabel"}),{children:n,className:c,component:l="label"}=e,d=q(e,bo),a=A(),s=j({props:e,muiFormControl:a,states:["color","required","focused","disabled","error","filled"]}),u=i({},e,{color:s.color||"primary",component:l,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=xo(u);return v.jsxs(vo,i({as:l,ownerState:u,className:P(p.root,c),ref:t},d,{children:[n,s.required&&v.jsxs(go,{ownerState:u,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))});function ho(o){return M("MuiInputLabel",o)}k("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fo=["disableAnimation","margin","shrink","variant","className"],$o=o=>{const{classes:r,formControl:t,size:e,shrink:n,disableAnimation:c,variant:l,required:d}=o,a={root:["root",t&&"formControl",!c&&"animated",n&&"shrink",e&&e!=="normal"&&`size${h(e)}`,l],asterisk:[d&&"asterisk"]},s=y(a,ho,r);return i({},r,s)},Io=g(Co,{shouldForwardProp:o=>Q(o)||o==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[{[`& .${z.asterisk}`]:r.asterisk},r.root,t.formControl&&r.formControl,t.size==="small"&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,t.focused&&r.focused,r[t.variant]]}})(({theme:o,ownerState:r})=>i({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},r.size==="small"&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:o.transitions.create(["color","transform","max-width"],{duration:o.transitions.duration.shorter,easing:o.transitions.easing.easeOut})},r.variant==="filled"&&i({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},r.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&i({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},r.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),r.variant==="outlined"&&i({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},r.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),_o=m.forwardRef(function(r,t){const e=L({name:"MuiInputLabel",props:r}),{disableAnimation:n=!1,shrink:c,className:l}=e,d=q(e,Fo),a=A();let s=c;typeof s>"u"&&a&&(s=a.filled||a.focused||a.adornedStart);const u=j({props:e,muiFormControl:a,states:["size","variant","required","focused"]}),p=i({},e,{disableAnimation:n,formControl:a,shrink:s,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),f=$o(p);return v.jsx(Io,i({"data-shrink":s,ownerState:p,ref:t,className:P(f.root,l)},d,{classes:f}))});function Ro(o){return M("MuiFormControl",o)}k("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const zo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],ko=o=>{const{classes:r,margin:t,fullWidth:e}=o,n={root:["root",t!=="none"&&`margin${h(t)}`,e&&"fullWidth"]};return y(n,Ro,r)},Mo=g("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:o},r)=>i({},r.root,r[`margin${h(o.margin)}`],o.fullWidth&&r.fullWidth)})(({ownerState:o})=>i({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},o.margin==="normal"&&{marginTop:16,marginBottom:8},o.margin==="dense"&&{marginTop:8,marginBottom:4},o.fullWidth&&{width:"100%"})),Eo=m.forwardRef(function(r,t){const e=L({props:r,name:"MuiFormControl"}),{children:n,className:c,color:l="primary",component:d="div",disabled:a=!1,error:s=!1,focused:u,fullWidth:p=!1,hiddenLabel:f=!1,margin:S="none",required:b=!1,size:C="medium",variant:F="outlined"}=e,B=q(e,zo),U=i({},e,{color:l,component:d,disabled:a,error:s,fullWidth:p,hiddenLabel:f,margin:S,required:b,size:C,variant:F}),H=ko(U),[$,T]=m.useState(()=>{let I=!1;return n&&m.Children.forEach(n,x=>{if(!E(x,["Input","Select"]))return;const X=E(x,["Select"])?x.props.input:x;X&&no(X.props)&&(I=!0)}),I}),[W,N]=m.useState(()=>{let I=!1;return n&&m.Children.forEach(n,x=>{E(x,["Input","Select"])&&(J(x.props,!0)||J(x.props.inputProps,!0))&&(I=!0)}),I}),[O,_]=m.useState(!1);a&&O&&_(!1);const w=u!==void 0&&!a?u:O;let D;const V=m.useMemo(()=>({adornedStart:$,setAdornedStart:T,color:l,disabled:a,error:s,filled:W,focused:w,fullWidth:p,hiddenLabel:f,size:C,onBlur:()=>{_(!1)},onEmpty:()=>{N(!1)},onFilled:()=>{N(!0)},onFocus:()=>{_(!0)},registerEffect:D,required:b,variant:F}),[$,l,a,s,W,w,p,f,D,b,C,F]);return v.jsx(ao.Provider,{value:V,children:v.jsx(Mo,i({as:d,ownerState:U,className:P(H.root,c),ref:t},B,{children:n}))})});function Lo(o){return M("MuiFormHelperText",o)}const G=k("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var K;const qo=["children","className","component","disabled","error","filled","focused","margin","required","variant"],yo=o=>{const{classes:r,contained:t,size:e,disabled:n,error:c,filled:l,focused:d,required:a}=o,s={root:["root",n&&"disabled",c&&"error",e&&`size${h(e)}`,t&&"contained",d&&"focused",l&&"filled",a&&"required"]};return y(s,Lo,r)},Uo=g("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.size&&r[`size${h(t.size)}`],t.contained&&r.contained,t.filled&&r.filled]}})(({theme:o,ownerState:r})=>i({color:(o.vars||o).palette.text.secondary},o.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${G.disabled}`]:{color:(o.vars||o).palette.text.disabled},[`&.${G.error}`]:{color:(o.vars||o).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),Ao=m.forwardRef(function(r,t){const e=L({props:r,name:"MuiFormHelperText"}),{children:n,className:c,component:l="p"}=e,d=q(e,qo),a=A(),s=j({props:e,muiFormControl:a,states:["variant","size","disabled","error","filled","focused","required"]}),u=i({},e,{component:l,contained:s.variant==="filled"||s.variant==="outlined",variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),p=yo(u);return v.jsx(Uo,i({as:l,ownerState:u,className:P(p.root,c),ref:t},d,{children:n===" "?K||(K=v.jsx("span",{className:"notranslate",children:"​"})):n}))});export{Eo as F,_o as I,Ao as a,mo as b,R as i}; diff --git a/storybook/assets/InputBase-DuDaiXcF.js b/storybook/assets/InputBase-DuDaiXcF.js new file mode 100644 index 0000000..6002595 --- /dev/null +++ b/storybook/assets/InputBase-DuDaiXcF.js @@ -0,0 +1,2 @@ +import{P as ke,j as y,Q as Be,_ as fe,E as me,D as J,R as Fe,S as Ie,p as Ee,o as He,s as he,u as Pe,c as ue,t as X,q as We,f as Te}from"./Wrapper-DXvvO_B0.js";import{_ as d}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as i}from"./index-CTjT7uj6.js";import{u as Me,f as Le,F as Oe}from"./useFormControl-Baz_U5RD.js";import{o as de,d as Ne}from"./ownerWindow-DIR61fab.js";function $e({styles:e,themeId:t,defaultTheme:o={}}){const a=ke(o),l=typeof e=="function"?e(t&&a[t]||a):e;return y.jsx(Be,{styles:l})}function ce(e){return typeof e=="string"}const De=["onChange","maxRows","minRows","style","value"];function N(e){return parseInt(e,10)||0}const je={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _e(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Ve=i.forwardRef(function(t,o){const{onChange:a,maxRows:l,minRows:c=1,style:A,value:k}=t,H=fe(t,De),{current:R}=i.useRef(k!=null),b=i.useRef(null),B=me(o,b),g=i.useRef(null),z=i.useRef(null),w=i.useCallback(()=>{const p=b.current,u=de(p).getComputedStyle(p);if(u.width==="0px")return{outerHeightStyle:0,overflowing:!1};const f=z.current;f.style.width=u.width,f.value=p.value||t.placeholder||"x",f.value.slice(-1)===` +`&&(f.value+=" ");const F=u.boxSizing,x=N(u.paddingBottom)+N(u.paddingTop),D=N(u.borderBottomWidth)+N(u.borderTopWidth),v=f.scrollHeight;f.value="x";const I=f.scrollHeight;let h=v;c&&(h=Math.max(Number(c)*I,h)),l&&(h=Math.min(Number(l)*I,h)),h=Math.max(h,I);const T=h+(F==="border-box"?x+D:0),j=Math.abs(h-v)<=1;return{outerHeightStyle:T,overflowing:j}},[l,c,t.placeholder]),C=i.useCallback(()=>{const p=w();if(_e(p))return;const s=p.outerHeightStyle,u=b.current;g.current!==s&&(g.current=s,u.style.height=`${s}px`),u.style.overflow=p.overflowing?"hidden":""},[w]);J(()=>{const p=()=>{C()};let s;const u=Ne(p),f=b.current,F=de(f);F.addEventListener("resize",u);let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(p),x.observe(f)),()=>{u.clear(),cancelAnimationFrame(s),F.removeEventListener("resize",u),x&&x.disconnect()}},[w,C]),J(()=>{C()});const $=p=>{R||C(),a&&a(p)};return y.jsxs(i.Fragment,{children:[y.jsx("textarea",d({value:k,onChange:$,ref:B,rows:c,style:A},H)),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:z,tabIndex:-1,style:d({},je.shadow,A,{paddingTop:0,paddingBottom:0})})]})});function Ge(e){return y.jsx($e,d({},e,{defaultTheme:Fe,themeId:Ie}))}function pe(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ue(e,t=!1){return e&&(pe(e.value)&&e.value!==""||t&&pe(e.defaultValue)&&e.defaultValue!=="")}function at(e){return e.startAdornment}function qe(e){return He("MuiInputBase",e)}const Y=Ee("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ke=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Qe=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${X(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},Ze=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},Je=e=>{const{classes:t,color:o,disabled:a,error:l,endAdornment:c,focused:A,formControl:k,fullWidth:H,hiddenLabel:R,multiline:b,readOnly:B,size:g,startAdornment:z,type:w}=e,C={root:["root",`color${X(o)}`,a&&"disabled",l&&"error",H&&"fullWidth",A&&"focused",k&&"formControl",g&&g!=="medium"&&`size${X(g)}`,b&&"multiline",z&&"adornedStart",c&&"adornedEnd",R&&"hiddenLabel",B&&"readOnly"],input:["input",a&&"disabled",w==="search"&&"inputTypeSearch",b&&"inputMultiline",g==="small"&&"inputSizeSmall",R&&"inputHiddenLabel",z&&"inputAdornedStart",c&&"inputAdornedEnd",B&&"readOnly"]};return We(C,qe,t)},Xe=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qe})(({theme:e,ownerState:t})=>d({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Y.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&d({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ye=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ze})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",a=d({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),l={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return d({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Y.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Y.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),et=y.jsx(Ge,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),lt=i.forwardRef(function(t,o){var a;const l=Pe({props:t,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:A,autoFocus:k,className:H,components:R={},componentsProps:b={},defaultValue:B,disabled:g,disableInjectingGlobalStyles:z,endAdornment:w,fullWidth:C=!1,id:$,inputComponent:p="input",inputProps:s={},inputRef:u,maxRows:f,minRows:F,multiline:x=!1,name:D,onBlur:v,onChange:I,onClick:h,onFocus:T,onKeyDown:j,onKeyUp:be,placeholder:ge,readOnly:_,renderSuffix:ee,rows:M,slotProps:te={},slots:oe={},startAdornment:P,type:ne="text",value:ye}=l,xe=fe(l,Ke),L=s.value!=null?s.value:ye,{current:V}=i.useRef(L!=null),E=i.useRef(),Se=i.useCallback(n=>{},[]),we=me(E,u,s.ref,Se),[G,U]=i.useState(!1),r=Me(),m=Le({props:l,muiFormControl:r,states:["color","disabled","error","hiddenLabel","size","required","filled"]});m.focused=r?r.focused:G,i.useEffect(()=>{!r&&g&&G&&(U(!1),v&&v())},[r,g,G,v]);const q=r&&r.onFilled,K=r&&r.onEmpty,W=i.useCallback(n=>{Ue(n)?q&&q():K&&K()},[q,K]);J(()=>{V&&W({value:L})},[L,W,V]);const Ce=n=>{if(m.disabled){n.stopPropagation();return}T&&T(n),s.onFocus&&s.onFocus(n),r&&r.onFocus?r.onFocus(n):U(!0)},ve=n=>{v&&v(n),s.onBlur&&s.onBlur(n),r&&r.onBlur?r.onBlur(n):U(!1)},Re=(n,...le)=>{if(!V){const se=n.target||E.current;if(se==null)throw new Error(Te(1));W({value:se.value})}s.onChange&&s.onChange(n,...le),I&&I(n,...le)};i.useEffect(()=>{W(E.current)},[]);const ze=n=>{E.current&&n.currentTarget===n.target&&E.current.focus(),h&&h(n)};let Q=p,S=s;x&&Q==="input"&&(M?S=d({type:void 0,minRows:M,maxRows:M},S):S=d({type:void 0,maxRows:f,minRows:F},S),Q=Ve);const Ae=n=>{W(n.animationName==="mui-auto-fill-cancel"?E.current:{value:"x"})};i.useEffect(()=>{r&&r.setAdornedStart(!!P)},[r,P]);const O=d({},l,{color:m.color||"primary",disabled:m.disabled,endAdornment:w,error:m.error,focused:m.focused,formControl:r,fullWidth:C,hiddenLabel:m.hiddenLabel,multiline:x,size:m.size,startAdornment:P,type:ne}),re=Je(O),ie=oe.root||R.Root||Xe,Z=te.root||b.root||{},ae=oe.input||R.Input||Ye;return S=d({},S,(a=te.input)!=null?a:b.input),y.jsxs(i.Fragment,{children:[!z&&et,y.jsxs(ie,d({},Z,!ce(ie)&&{ownerState:d({},O,Z.ownerState)},{ref:o,onClick:ze},xe,{className:ue(re.root,Z.className,H,_&&"MuiInputBase-readOnly"),children:[P,y.jsx(Oe.Provider,{value:null,children:y.jsx(ae,d({ownerState:O,"aria-invalid":m.error,"aria-describedby":c,autoComplete:A,autoFocus:k,defaultValue:B,disabled:m.disabled,id:$,onAnimationStart:Ae,name:D,placeholder:ge,readOnly:_,required:m.required,rows:M,value:L,onKeyDown:j,onKeyUp:be,type:ne},S,!ce(ae)&&{as:Q,ownerState:d({},O,S.ownerState)},{ref:we,className:ue(re.input,S.className,_&&"MuiInputBase-readOnly"),onBlur:ve,onChange:Re,onFocus:Ce}))}),w,ee?ee(d({},m,{startAdornment:P})):null]}))]})});export{lt as I,Xe as a,Ye as b,Ze as c,at as d,Ue as e,ce as f,Y as i,Qe as r}; diff --git a/storybook/assets/InputBase.stories-CDRR5aM4.js b/storybook/assets/InputBase.stories-CDRR5aM4.js new file mode 100644 index 0000000..e5eed5c --- /dev/null +++ b/storybook/assets/InputBase.stories-CDRR5aM4.js @@ -0,0 +1,3 @@ +import{r as e}from"./index-CTjT7uj6.js";import{W as d,F as f,h as B,k as E,l as I,B as b,m as F}from"./Wrapper-DXvvO_B0.js";import{I as k}from"./InputBase-DuDaiXcF.js";import{L as y}from"./LinearProgress-CIiBqE01.js";import"./isNativeReflectConstruct-CJAgTEKr.js";import"./v4-CQkTLCs1.js";import"./useFormControl-Baz_U5RD.js";import"./ownerWindow-DIR61fab.js";import"./index-BjNUr1t6.js";function T({disabled:t,field:{onBlur:r,...a},form:{isSubmitting:i},onBlur:p,...u}){return{disabled:t??i,onBlur:p??function(c){r(c??a.name)},...a,...u}}function o(t){return e.createElement(k,{...T(t)})}o.displayName="FormikMaterialUIInputBase";o.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUIInputBase",composes:["FieldProps","Omit"]};const O={title:"Core/InputBase",component:o,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},_=()=>e.createElement(d,null,e.createElement(f,{initialValues:{inputBase:"Naked input"},onSubmit:(t,{setSubmitting:r})=>{setTimeout(()=>{r(!1),B("submit")(t)},2e3)}},({submitForm:t,isSubmitting:r,values:a})=>e.createElement(E,null,e.createElement(I,{component:o,name:"inputBase"}),e.createElement("br",null),r&&e.createElement(y,null),e.createElement("br",null),e.createElement(b,{variant:"contained",color:"primary",disabled:r,onClick:t},"Submit"),e.createElement("br",null),e.createElement(F,{values:a})))),n={render:_};var s,m,l;n.parameters={...n.parameters,docs:{...(s=n.parameters)==null?void 0:s.docs,source:{originalSource:`{ + render: Template +}`,...(l=(m=n.parameters)==null?void 0:m.docs)==null?void 0:l.source}}};const P=["Default"];export{n as Default,P as __namedExportsOrder,O as default}; diff --git a/storybook/assets/LinearProgress-CIiBqE01.js b/storybook/assets/LinearProgress-CIiBqE01.js new file mode 100644 index 0000000..2d16c7a --- /dev/null +++ b/storybook/assets/LinearProgress-CIiBqE01.js @@ -0,0 +1,54 @@ +import{o as N,p as j,r as h,s as m,t,v as C,u as M,_ as D,j as b,c as z,q as U,w as O,x as T}from"./Wrapper-DXvvO_B0.js";import{_ as s}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as A}from"./index-CTjT7uj6.js";import{u as K}from"./index-BjNUr1t6.js";function E(r){return N("MuiLinearProgress",r)}j("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const X=["className","color","value","valueBuffer","variant"];let l=r=>r,$,k,L,_,B,I;const v=4,W=h($||($=l` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),F=h(k||(k=l` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),G=h(L||(L=l` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),H=r=>{const{classes:a,variant:e,color:o}=r,p={root:["root",`color${t(o)}`,e],dashed:["dashed",`dashedColor${t(o)}`],bar1:["bar",`barColor${t(o)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar",e!=="buffer"&&`barColor${t(o)}`,e==="buffer"&&`color${t(o)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return U(p,E,a)},y=(r,a)=>a==="inherit"?"currentColor":r.vars?r.vars.palette.LinearProgress[`${a}Bg`]:r.palette.mode==="light"?O(r.palette[a].main,.62):T(r.palette[a].main,.5),J=m("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(r,a)=>{const{ownerState:e}=r;return[a.root,a[`color${t(e.color)}`],a[e.variant]]}})(({ownerState:r,theme:a})=>s({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:y(a,r.color)},r.color==="inherit"&&r.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},r.variant==="buffer"&&{backgroundColor:"transparent"},r.variant==="query"&&{transform:"rotate(180deg)"})),Q=m("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(r,a)=>{const{ownerState:e}=r;return[a.dashed,a[`dashedColor${t(e.color)}`]]}})(({ownerState:r,theme:a})=>{const e=y(a,r.color);return s({position:"absolute",marginTop:0,height:"100%",width:"100%"},r.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},C(_||(_=l` + animation: ${0} 3s infinite linear; + `),G)),V=m("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(r,a)=>{const{ownerState:e}=r;return[a.bar,a[`barColor${t(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&a.bar1Indeterminate,e.variant==="determinate"&&a.bar1Determinate,e.variant==="buffer"&&a.bar1Buffer]}})(({ownerState:r,theme:a})=>s({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:r.color==="inherit"?"currentColor":(a.vars||a).palette[r.color].main},r.variant==="determinate"&&{transition:`transform .${v}s linear`},r.variant==="buffer"&&{zIndex:1,transition:`transform .${v}s linear`}),({ownerState:r})=>(r.variant==="indeterminate"||r.variant==="query")&&C(B||(B=l` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),W)),Y=m("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(r,a)=>{const{ownerState:e}=r;return[a.bar,a[`barColor${t(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&a.bar2Indeterminate,e.variant==="buffer"&&a.bar2Buffer]}})(({ownerState:r,theme:a})=>s({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},r.variant!=="buffer"&&{backgroundColor:r.color==="inherit"?"currentColor":(a.vars||a).palette[r.color].main},r.color==="inherit"&&{opacity:.3},r.variant==="buffer"&&{backgroundColor:y(a,r.color),transition:`transform .${v}s linear`}),({ownerState:r})=>(r.variant==="indeterminate"||r.variant==="query")&&C(I||(I=l` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),F)),ar=A.forwardRef(function(a,e){const o=M({props:a,name:"MuiLinearProgress"}),{className:p,color:R="primary",value:g,valueBuffer:x,variant:i="indeterminate"}=o,q=D(o,X),c=s({},o,{color:R,variant:i}),u=H(c),P=K(),f={},d={bar1:{},bar2:{}};if((i==="determinate"||i==="buffer")&&g!==void 0){f["aria-valuenow"]=Math.round(g),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let n=g-100;P&&(n=-n),d.bar1.transform=`translateX(${n}%)`}if(i==="buffer"&&x!==void 0){let n=(x||0)-100;P&&(n=-n),d.bar2.transform=`translateX(${n}%)`}return b.jsxs(J,s({className:z(u.root,p),ownerState:c,role:"progressbar"},f,{ref:e},q,{children:[i==="buffer"?b.jsx(Q,{className:u.dashed,ownerState:c}):null,b.jsx(V,{className:u.bar1,ownerState:c,style:d.bar1}),i==="determinate"?null:b.jsx(Y,{className:u.bar2,ownerState:c,style:d.bar2})]}))});export{ar as L}; diff --git a/storybook/assets/MenuItem-BLPASM16.js b/storybook/assets/MenuItem-BLPASM16.js new file mode 100644 index 0000000..aec28e0 --- /dev/null +++ b/storybook/assets/MenuItem-BLPASM16.js @@ -0,0 +1 @@ +import{p,o as k,s as F,A as N,C as P,y as d,u as T,_,D as E,E as G,j as x,c as I,q as U}from"./Wrapper-DXvvO_B0.js";import{_ as n}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as c}from"./index-CTjT7uj6.js";import{L as $}from"./Select-DSn46qfv.js";function X(e){return k("MuiDivider",e)}const M=p("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),O=p("MuiListItemIcon",["root","alignItemsFlexStart"]),R=p("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function S(e){return k("MuiMenuItem",e)}const r=p("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),A=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],H=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.divider&&t.divider,!s.disableGutters&&t.gutters]},W=e=>{const{disabled:t,dense:s,divider:a,disableGutters:l,selected:u,classes:o}=e,i=U({root:["root",s&&"dense",t&&"disabled",!l&&"gutters",a&&"divider",u&&"selected"]},S,o);return n({},o,i)},z=F(N,{shouldForwardProp:e=>P(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:H})(({theme:e,ownerState:t})=>n({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:d(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${r.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:d(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${r.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:d(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:d(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${r.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${r.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${M.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${M.inset}`]:{marginLeft:52},[`& .${R.root}`]:{marginTop:0,marginBottom:0},[`& .${R.inset}`]:{paddingLeft:36},[`& .${O.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&n({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${O.root} svg`]:{fontSize:"1.25rem"}}))),Y=c.forwardRef(function(t,s){const a=T({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:u="li",dense:o=!1,divider:v=!1,disableGutters:i=!1,focusVisibleClassName:L,role:V="menuitem",tabIndex:b,className:w}=a,B=_(a,A),m=c.useContext($),y=c.useMemo(()=>({dense:o||m.dense||!1,disableGutters:i}),[m.dense,o,i]),g=c.useRef(null);E(()=>{l&&g.current&&g.current.focus()},[l]);const D=n({},a,{dense:y.dense,divider:v,disableGutters:i}),f=W(a),j=G(g,s);let C;return a.disabled||(C=b!==void 0?b:-1),x.jsx($.Provider,{value:y,children:x.jsx(z,n({ref:j,role:V,tabIndex:C,component:u,focusVisibleClassName:I(f.focusVisible,L),className:I(f.root,w)},B,{ownerState:D,classes:f}))})});export{Y as M,X as g}; diff --git a/storybook/assets/RadioGroup.stories-CgH6Gx-A.js b/storybook/assets/RadioGroup.stories-CgH6Gx-A.js new file mode 100644 index 0000000..f0ee66c --- /dev/null +++ b/storybook/assets/RadioGroup.stories-CgH6Gx-A.js @@ -0,0 +1,3 @@ +import{r as c,R as s}from"./index-CTjT7uj6.js";import{o as S,p as $,s as x,u as O,_ as j,j as l,c as M,q as N,E as Z,C as T,t as E,y as A,W as J,F as K,h as Q,k as X,l as Y,B as oo,m as eo}from"./Wrapper-DXvvO_B0.js";import{_ as u}from"./isNativeReflectConstruct-CJAgTEKr.js";import{u as ro}from"./useControlled-5JjQu8rW.js";import{u as to,c as ao}from"./useId-BjRAp5Eo.js";import{u as so,f as no}from"./useFormControl-Baz_U5RD.js";import{S as co,F as I}from"./FormControlLabel-D18ON2k4.js";import{c as q}from"./createSvgIcon-DLhoJ5Fi.js";import{L as lo}from"./LinearProgress-CIiBqE01.js";import"./v4-CQkTLCs1.js";import"./createStyled-D6A6HRKR.js";import"./index-BjNUr1t6.js";function io(o){return S("MuiFormGroup",o)}$("MuiFormGroup",["root","row","error"]);const uo=["className","row"],po=o=>{const{classes:e,row:r,error:t}=o;return N({root:["root",r&&"row",t&&"error"]},io,e)},mo=x("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.row&&e.row]}})(({ownerState:o})=>u({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),fo=c.forwardRef(function(e,r){const t=O({props:e,name:"MuiFormGroup"}),{className:a,row:i=!1}=t,f=j(t,uo),R=so(),d=no({props:t,muiFormControl:R,states:["error"]}),m=u({},t,{row:i,error:d.error}),C=po(m);return l.jsx(mo,u({className:M(C.root,a),ownerState:m,ref:r},f))});function Ro(o){return S("MuiRadioGroup",o)}$("MuiRadioGroup",["root","row","error"]);const L=c.createContext(void 0),Co=["actions","children","className","defaultValue","name","onChange","value"],ho=o=>{const{classes:e,row:r,error:t}=o;return N({root:["root",r&&"row",t&&"error"]},Ro,e)},vo=c.forwardRef(function(e,r){const{actions:t,children:a,className:i,defaultValue:f,name:R,onChange:d,value:m}=e,C=j(e,Co),h=c.useRef(null),v=ho(e),[k,y]=ro({controlled:m,default:f,name:"RadioGroup"});c.useImperativeHandle(t,()=>({focus:()=>{let n=h.current.querySelector("input:not(:disabled):checked");n||(n=h.current.querySelector("input:not(:disabled)")),n&&n.focus()}}),[]);const F=Z(r,h),g=to(R),p=c.useMemo(()=>({name:g,onChange(n){y(n.target.value),d&&d(n,n.target.value)},value:k}),[g,d,y,k]);return l.jsx(L.Provider,{value:p,children:l.jsx(fo,u({role:"radiogroup",ref:F,className:M(v.root,i)},C,{children:a}))})});function go(){return c.useContext(L)}function xo({field:{onBlur:o,...e},form:r,onBlur:t,...a}){return{onBlur:t??function(i){o(i??e.name)},...e,...a}}function G(o){return c.createElement(vo,{...xo(o)})}G.displayName="FormikMaterialUIRadioGroup";G.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUIRadioGroup",composes:["FieldProps","Omit"]};const ko=q(l.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),yo=q(l.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Fo=x("span",{shouldForwardProp:T})({position:"relative",display:"flex"}),bo=x(ko)({transform:"scale(1)"}),Eo=x(yo)(({theme:o,ownerState:e})=>u({left:0,position:"absolute",transform:"scale(0)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeIn,duration:o.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:o.transitions.create("transform",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.shortest})}));function W(o){const{checked:e=!1,classes:r={},fontSize:t}=o,a=u({},o,{checked:e});return l.jsxs(Fo,{className:r.root,ownerState:a,children:[l.jsx(bo,{fontSize:t,className:r.background,ownerState:a}),l.jsx(Eo,{fontSize:t,className:r.dot,ownerState:a})]})}function Go(o){return S("MuiRadio",o)}const P=$("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),wo=["checked","checkedIcon","color","icon","name","onChange","size","className"],Io=o=>{const{classes:e,color:r,size:t}=o,a={root:["root",`color${E(r)}`,t!=="medium"&&`size${E(t)}`]};return u({},e,N(a,Go,e))},zo=x(co,{shouldForwardProp:o=>T(o)||o==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.size!=="medium"&&e[`size${E(r.size)}`],e[`color${E(r.color)}`]]}})(({theme:o,ownerState:e})=>u({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:A(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${P.checked}`]:{color:(o.vars||o).palette[e.color].main}},{[`&.${P.disabled}`]:{color:(o.vars||o).palette.action.disabled}}));function So(o,e){return typeof e=="object"&&e!==null?o===e:String(o)===String(e)}const _=l.jsx(W,{checked:!0}),B=l.jsx(W,{}),z=c.forwardRef(function(e,r){var t,a;const i=O({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:R=_,color:d="primary",icon:m=B,name:C,onChange:h,size:v="medium",className:k}=i,y=j(i,wo),F=u({},i,{color:d,size:v}),g=Io(F),p=go();let n=f;const H=ao(h,p&&p.onChange);let w=C;return p&&(typeof n>"u"&&(n=So(p.value,i.value)),typeof w>"u"&&(w=p.name)),l.jsx(zo,u({type:"radio",icon:c.cloneElement(m,{fontSize:(t=B.props.fontSize)!=null?t:v}),checkedIcon:c.cloneElement(R,{fontSize:(a=_.props.fontSize)!=null?a:v}),ownerState:F,classes:g,name:w,checked:n,onChange:H,ref:r,className:M(g.root,k)},y))}),Lo={title:"Core/RadioGroup",component:G,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},$o=()=>s.createElement(J,null,s.createElement(K,{initialValues:{activity:""},onSubmit:(o,{setSubmitting:e})=>{setTimeout(()=>{e(!1),Q("submit")(o)},2e3)}},({submitForm:o,values:e,isSubmitting:r,isValid:t})=>s.createElement(X,null,s.createElement(Y,{component:G,name:"activity"},s.createElement(I,{value:"painting",control:s.createElement(z,{disabled:r}),label:"Painting",disabled:r}),s.createElement(I,{value:"drawing",control:s.createElement(z,{disabled:r}),label:"Drawing",disabled:r}),s.createElement(I,{value:"none",control:s.createElement(z,{disabled:r}),label:"None",disabled:!0})),s.createElement("br",null),r&&s.createElement(lo,null),s.createElement("br",null),s.createElement(oo,{disabled:!t,variant:"contained",color:"primary",onClick:o},"Submit"),s.createElement(eo,{values:e})))),b={render:$o};var U,D,V;b.parameters={...b.parameters,docs:{...(U=b.parameters)==null?void 0:U.docs,source:{originalSource:`{ + render: Template +}`,...(V=(D=b.parameters)==null?void 0:D.docs)==null?void 0:V.source}}};const Wo=["Default"];export{b as Default,Wo as __namedExportsOrder,Lo as default}; diff --git a/storybook/assets/Select-DSn46qfv.js b/storybook/assets/Select-DSn46qfv.js new file mode 100644 index 0000000..868b966 --- /dev/null +++ b/storybook/assets/Select-DSn46qfv.js @@ -0,0 +1 @@ +import{_ as u,a as Ut}from"./isNativeReflectConstruct-CJAgTEKr.js";import{c as Q,_ as H,E as ne,P as Ht,R as zt,S as Kt,a7 as xt,p as se,o as ie,s as j,C as Re,u as ge,J as Et,j as I,q as ae,D as qe,a8 as Vt,V as rt,U as st,X as Gt,t as We,a9 as Xt,f as qt}from"./Wrapper-DXvvO_B0.js";import{R as Be,r as l}from"./index-CTjT7uj6.js";import{u as Yt}from"./index-BjNUr1t6.js";import{a as J,o as $e,d as Zt}from"./ownerWindow-DIR61fab.js";import{c as it,u as Jt}from"./useId-BjRAp5Eo.js";import{w as _e,r as Qt}from"./index-CYM-y3Gt.js";import{f as yt,i as Pt,a as Rt,r as Ct,b as St,c as Tt,I as It,e as en}from"./InputBase-DuDaiXcF.js";import{u as at}from"./useControlled-5JjQu8rW.js";import{u as kt,f as Nt}from"./useFormControl-Baz_U5RD.js";import{c as tn}from"./createSvgIcon-DLhoJ5Fi.js";import{b as nn}from"./FormHelperText-h4EvFgt8.js";function Mt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function on(e,t,n){return e===void 0||yt(e)?t:u({},t,{ownerState:u({},t.ownerState,n)})}function wt(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function lt(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function rn(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:r}=e;if(!t){const E=Q(n==null?void 0:n.className,r,s==null?void 0:s.className,o==null?void 0:o.className),x=u({},n==null?void 0:n.style,s==null?void 0:s.style,o==null?void 0:o.style),M=u({},n,s,o);return E.length>0&&(M.className=E),Object.keys(x).length>0&&(M.style=x),{props:M,internalRef:void 0}}const i=wt(u({},s,o)),a=lt(o),c=lt(s),p=t(i),m=Q(p==null?void 0:p.className,n==null?void 0:n.className,r,s==null?void 0:s.className,o==null?void 0:o.className),h=u({},p==null?void 0:p.style,n==null?void 0:n.style,s==null?void 0:s.style,o==null?void 0:o.style),y=u({},p,n,c,a);return m.length>0&&(y.className=m),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:p.ref}}function sn(e,t,n){return typeof e=="function"?e(t,n):e}const an=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ke(e){var t;const{elementType:n,externalSlotProps:o,ownerState:s,skipResolvingSlotProps:r=!1}=e,i=H(e,an),a=r?{}:sn(o,s),{props:c,internalRef:p}=rn(u({},i,{externalSlotProps:a})),m=ne(p,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return on(n,u({},c,{ref:m}),s)}function Ot(){const e=Ht(zt);return e[Kt]||e}const ct={disabled:!1};var ln=function(t){return t.scrollTop},Oe="unmounted",ye="exited",Pe="entering",Ie="entered",Ye="exiting",oe=function(e){Ut(t,e);function t(o,s){var r;r=e.call(this,o,s)||this;var i=s,a=i&&!i.isMounting?o.enter:o.appear,c;return r.appearStatus=null,o.in?a?(c=ye,r.appearStatus=Pe):c=Ie:o.unmountOnExit||o.mountOnEnter?c=Oe:c=ye,r.state={status:c},r.nextCallback=null,r}t.getDerivedStateFromProps=function(s,r){var i=s.in;return i&&r.status===Oe?{status:ye}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var r=null;if(s!==this.props){var i=this.state.status;this.props.in?i!==Pe&&i!==Ie&&(r=Pe):(i===Pe||i===Ie)&&(r=Ye)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,r,i,a;return r=i=a=s,s!=null&&typeof s!="number"&&(r=s.exit,i=s.enter,a=s.appear!==void 0?s.appear:i),{exit:r,enter:i,appear:a}},n.updateStatus=function(s,r){if(s===void 0&&(s=!1),r!==null)if(this.cancelNextCallback(),r===Pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:_e.findDOMNode(this);i&&ln(i)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ye&&this.setState({status:Oe})},n.performEnter=function(s){var r=this,i=this.props.enter,a=this.context?this.context.isMounting:s,c=this.props.nodeRef?[a]:[_e.findDOMNode(this),a],p=c[0],m=c[1],h=this.getTimeouts(),y=a?h.appear:h.enter;if(!s&&!i||ct.disabled){this.safeSetState({status:Ie},function(){r.props.onEntered(p)});return}this.props.onEnter(p,m),this.safeSetState({status:Pe},function(){r.props.onEntering(p,m),r.onTransitionEnd(y,function(){r.safeSetState({status:Ie},function(){r.props.onEntered(p,m)})})})},n.performExit=function(){var s=this,r=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:_e.findDOMNode(this);if(!r||ct.disabled){this.safeSetState({status:ye},function(){s.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ye},function(){s.props.onExiting(a),s.onTransitionEnd(i.exit,function(){s.safeSetState({status:ye},function(){s.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,r){r=this.setNextCallback(r),this.setState(s,r)},n.setNextCallback=function(s){var r=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,r.nextCallback=null,s(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(s,r){this.setNextCallback(r);var i=this.props.nodeRef?this.props.nodeRef.current:_e.findDOMNode(this),a=s==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],p=c[0],m=c[1];this.props.addEndListener(p,m)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Oe)return null;var r=this.props,i=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var a=H(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Be.createElement(xt.Provider,{value:null},typeof i=="function"?i(s,a):Be.cloneElement(Be.Children.only(i),a))},t}(Be.Component);oe.contextType=xt;oe.propTypes={};function Te(){}oe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Te,onEntering:Te,onEntered:Te,onExit:Te,onExiting:Te,onExited:Te};oe.UNMOUNTED=Oe;oe.EXITED=ye;oe.ENTERING=Pe;oe.ENTERED=Ie;oe.EXITING=Ye;function cn(e){return ie("MuiFilledInput",e)}const Ee=u({},Pt,se("MuiFilledInput",["root","underline","input"])),dn=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],un=e=>{const{classes:t,disableUnderline:n}=e,s=ae({root:["root",!n&&"underline"],input:["input"]},cn,t);return u({},t,s)},pn=j(Rt,{shouldForwardProp:e=>Re(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ct(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const o=e.palette.mode==="light",s=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return u({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ee.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ee.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ee.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ee.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ee.disabled}, .${Ee.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ee.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&u({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),fn=j(St,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tt})(({theme:e,ownerState:t})=>u({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Ft=l.forwardRef(function(t,n){var o,s,r,i;const a=ge({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:p,fullWidth:m=!1,inputComponent:h="input",multiline:y=!1,slotProps:E,slots:x={},type:M="text"}=a,k=H(a,dn),g=u({},a,{fullWidth:m,inputComponent:h,multiline:y,type:M}),w=un(a),d={root:{ownerState:g},input:{ownerState:g}},f=E??p?Et(d,E??p):d,b=(o=(s=x.root)!=null?s:c.Root)!=null?o:pn,C=(r=(i=x.input)!=null?i:c.Input)!=null?r:fn;return I.jsx(It,u({slots:{root:b,input:C},componentsProps:f,fullWidth:m,inputComponent:h,multiline:y,ref:n,type:M},k,{classes:w}))});Ft.muiName="Input";var dt;const mn=["children","classes","className","label","notched"],hn=j("fieldset",{shouldForwardProp:Re})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),gn=j("legend",{shouldForwardProp:Re})(({ownerState:e,theme:t})=>u({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&u({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function vn(e){const{className:t,label:n,notched:o}=e,s=H(e,mn),r=n!=null&&n!=="",i=u({},e,{notched:o,withLabel:r});return I.jsx(hn,u({"aria-hidden":!0,className:t,ownerState:i},s,{children:I.jsx(gn,{ownerState:i,children:r?I.jsx("span",{children:n}):dt||(dt=I.jsx("span",{className:"notranslate",children:"​"}))})}))}function bn(e){return ie("MuiOutlinedInput",e)}const he=u({},Pt,se("MuiOutlinedInput",["root","notchedOutline","input"])),xn=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],En=e=>{const{classes:t}=e,o=ae({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bn,t);return u({},t,o)},yn=j(Rt,{shouldForwardProp:e=>Re(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ct})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return u({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${he.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${he.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${he.focused} .${he.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${he.error} .${he.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${he.disabled} .${he.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&u({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Pn=j(vn,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Rn=j(St,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tt})(({theme:e,ownerState:t})=>u({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),$t=l.forwardRef(function(t,n){var o,s,r,i,a;const c=ge({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:m=!1,inputComponent:h="input",label:y,multiline:E=!1,notched:x,slots:M={},type:k="text"}=c,g=H(c,xn),w=En(c),d=kt(),f=Nt({props:c,muiFormControl:d,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b=u({},c,{color:f.color||"primary",disabled:f.disabled,error:f.error,focused:f.focused,formControl:d,fullWidth:m,hiddenLabel:f.hiddenLabel,multiline:E,size:f.size,type:k}),C=(o=(s=M.root)!=null?s:p.Root)!=null?o:yn,v=(r=(i=M.input)!=null?i:p.Input)!=null?r:Rn;return I.jsx(It,u({slots:{root:C,input:v},renderSuffix:F=>I.jsx(Pn,{ownerState:b,className:w.notchedOutline,label:y!=null&&y!==""&&f.required?a||(a=I.jsxs(l.Fragment,{children:[y," ","*"]})):y,notched:typeof x<"u"?x:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:m,inputComponent:h,multiline:E,ref:n,type:k},g,{classes:u({},w,{notchedOutline:null})}))});$t.muiName="Input";const Cn=l.createContext({});function Sn(e){return ie("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const Tn=["children","className","component","dense","disablePadding","subheader"],In=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return ae({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},Sn,t)},kn=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>u({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Nn=l.forwardRef(function(t,n){const o=ge({props:t,name:"MuiList"}),{children:s,className:r,component:i="ul",dense:a=!1,disablePadding:c=!1,subheader:p}=o,m=H(o,Tn),h=l.useMemo(()=>({dense:a}),[a]),y=u({},o,{component:i,dense:a,disablePadding:c}),E=In(y);return I.jsx(Cn.Provider,{value:h,children:I.jsxs(kn,u({as:i,className:Q(E.root,r),ref:n,ownerState:y},m,{children:[p,s]}))})}),Mn=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ke(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ut(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Lt(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Me(e,t,n,o,s,r){let i=!1,a=s(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const c=o?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Lt(a,r)||c)a=s(e,a,n);else return a.focus(),!0}return!1}const wn=l.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:r=!1,children:i,className:a,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:m,variant:h="selectedMenu"}=t,y=H(t,Mn),E=l.useRef(null),x=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qe(()=>{s&&E.current.focus()},[s]),l.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(d,{direction:f})=>{const b=!E.current.style.width;if(d.clientHeight{const f=E.current,b=d.key,C=J(f).activeElement;if(b==="ArrowDown")d.preventDefault(),Me(f,C,p,c,Ke);else if(b==="ArrowUp")d.preventDefault(),Me(f,C,p,c,ut);else if(b==="Home")d.preventDefault(),Me(f,null,p,c,Ke);else if(b==="End")d.preventDefault(),Me(f,null,p,c,ut);else if(b.length===1){const v=x.current,F=b.toLowerCase(),B=performance.now();v.keys.length>0&&(B-v.lastTime>500?(v.keys=[],v.repeating=!0,v.previousKeyMatched=!0):v.repeating&&F!==v.keys[0]&&(v.repeating=!1)),v.lastTime=B,v.keys.push(F);const D=C&&!v.repeating&&Lt(C,v);v.previousKeyMatched&&(D||Me(f,C,!1,c,Ke,v))?d.preventDefault():v.previousKeyMatched=!1}m&&m(d)},k=ne(E,n);let g=-1;l.Children.forEach(i,(d,f)=>{if(!l.isValidElement(d)){g===f&&(g+=1,g>=i.length&&(g=-1));return}d.props.disabled||(h==="selectedMenu"&&d.props.selected||g===-1)&&(g=f),g===f&&(d.props.disabled||d.props.muiSkipListHighlight||d.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))});const w=l.Children.map(i,(d,f)=>{if(f===g){const b={};return r&&(b.autoFocus=!0),d.props.tabIndex===void 0&&h==="selectedMenu"&&(b.tabIndex=0),l.cloneElement(d,b)}return d});return I.jsx(Nn,u({role:"menu",ref:k,className:a,onKeyDown:M,tabIndex:s?0:-1},y,{children:w}))}),Dt=e=>e.scrollTop;function je(e,t){var n,o;const{timeout:s,easing:r,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof r=="object"?r[t.mode]:r,delay:i.transitionDelay}}const On=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ze(e){return`scale(${e}, ${e**2})`}const Fn={entering:{opacity:1,transform:Ze(1)},entered:{opacity:1,transform:"none"}},Ve=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),At=l.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:r,easing:i,in:a,onEnter:c,onEntered:p,onEntering:m,onExit:h,onExited:y,onExiting:E,style:x,timeout:M="auto",TransitionComponent:k=oe}=t,g=H(t,On),w=Vt(),d=l.useRef(),f=Ot(),b=l.useRef(null),C=ne(b,r.ref,n),v=S=>T=>{if(S){const N=b.current;T===void 0?S(N):S(N,T)}},F=v(m),B=v((S,T)=>{Dt(S);const{duration:N,delay:P,easing:W}=je({style:x,timeout:M,easing:i},{mode:"enter"});let Y;M==="auto"?(Y=f.transitions.getAutoHeightDuration(S.clientHeight),d.current=Y):Y=N,S.style.transition=[f.transitions.create("opacity",{duration:Y,delay:P}),f.transitions.create("transform",{duration:Ve?Y:Y*.666,delay:P,easing:W})].join(","),c&&c(S,T)}),D=v(p),z=v(E),A=v(S=>{const{duration:T,delay:N,easing:P}=je({style:x,timeout:M,easing:i},{mode:"exit"});let W;M==="auto"?(W=f.transitions.getAutoHeightDuration(S.clientHeight),d.current=W):W=T,S.style.transition=[f.transitions.create("opacity",{duration:W,delay:N}),f.transitions.create("transform",{duration:Ve?W:W*.666,delay:Ve?N:N||W*.333,easing:P})].join(","),S.style.opacity=0,S.style.transform=Ze(.75),h&&h(S)}),$=v(y),O=S=>{M==="auto"&&w.start(d.current||0,S),o&&o(b.current,S)};return I.jsx(k,u({appear:s,in:a,nodeRef:b,onEnter:B,onEntered:D,onEntering:F,onExit:A,onExited:$,onExiting:z,addEndListener:O,timeout:M==="auto"?null:M},g,{children:(S,T)=>l.cloneElement(r,u({style:u({opacity:0,transform:Ze(.75),visibility:S==="exited"&&!a?"hidden":void 0},Fn[S],x,r.props.style),ref:C},T))}))});At.muiSupportAuto=!0;function $n(e){const t=J(e);return t.body===e?$e(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fe(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function pt(e){return parseInt($e(e).getComputedStyle(e).paddingRight,10)||0}function Ln(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function ft(e,t,n,o,s){const r=[t,n,...o];[].forEach.call(e.children,i=>{const a=r.indexOf(i)===-1,c=!Ln(i);a&&c&&Fe(i,s)})}function Ge(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function Dn(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if($n(o)){const i=Mt(J(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${pt(o)+i}px`;const a=J(o).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${pt(c)+i}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=J(o).body;else{const i=o.parentElement,a=$e(o);r=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:i,property:a})=>{r?i.style.setProperty(a,r):i.style.removeProperty(a)})}}function An(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Bn{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Fe(t.modalRef,!1);const s=An(n);ft(n,t.mount,t.modalRef,s,!0);const r=Ge(this.containers,i=>i.container===n);return r!==-1?(this.containers[r].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=Ge(this.containers,r=>r.modals.indexOf(t)!==-1),s=this.containers[o];s.restore||(s.restore=Dn(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=Ge(this.containers,i=>i.modals.indexOf(t)!==-1),r=this.containers[s];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(o,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&Fe(t.modalRef,n),ft(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(s,1);else{const i=r.modals[r.modals.length-1];i.modalRef&&Fe(i.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const _n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function jn(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wn(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Un(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wn(e))}function Hn(e){const t=[],n=[];return Array.from(e.querySelectorAll(_n)).forEach((o,s)=>{const r=jn(o);r===-1||!Un(o)||(r===0?t.push(o):n.push({documentOrder:s,tabIndex:r,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function zn(){return!0}function Kn(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:r=Hn,isEnabled:i=zn,open:a}=e,c=l.useRef(!1),p=l.useRef(null),m=l.useRef(null),h=l.useRef(null),y=l.useRef(null),E=l.useRef(!1),x=l.useRef(null),M=ne(t.ref,x),k=l.useRef(null);l.useEffect(()=>{!a||!x.current||(E.current=!n)},[n,a]),l.useEffect(()=>{if(!a||!x.current)return;const d=J(x.current);return x.current.contains(d.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),E.current&&x.current.focus()),()=>{s||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),l.useEffect(()=>{if(!a||!x.current)return;const d=J(x.current),f=v=>{k.current=v,!(o||!i()||v.key!=="Tab")&&d.activeElement===x.current&&v.shiftKey&&(c.current=!0,m.current&&m.current.focus())},b=()=>{const v=x.current;if(v===null)return;if(!d.hasFocus()||!i()||c.current){c.current=!1;return}if(v.contains(d.activeElement)||o&&d.activeElement!==p.current&&d.activeElement!==m.current)return;if(d.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!E.current)return;let F=[];if((d.activeElement===p.current||d.activeElement===m.current)&&(F=r(x.current)),F.length>0){var B,D;const z=!!((B=k.current)!=null&&B.shiftKey&&((D=k.current)==null?void 0:D.key)==="Tab"),A=F[0],$=F[F.length-1];typeof A!="string"&&typeof $!="string"&&(z?$.focus():A.focus())}else v.focus()};d.addEventListener("focusin",b),d.addEventListener("keydown",f,!0);const C=setInterval(()=>{d.activeElement&&d.activeElement.tagName==="BODY"&&b()},50);return()=>{clearInterval(C),d.removeEventListener("focusin",b),d.removeEventListener("keydown",f,!0)}},[n,o,s,i,a,r]);const g=d=>{h.current===null&&(h.current=d.relatedTarget),E.current=!0,y.current=d.target;const f=t.props.onFocus;f&&f(d)},w=d=>{h.current===null&&(h.current=d.relatedTarget),E.current=!0};return I.jsxs(l.Fragment,{children:[I.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:M,onFocus:g}),I.jsx("div",{tabIndex:a?0:-1,onFocus:w,ref:m,"data-testid":"sentinelEnd"})]})}function Vn(e){return typeof e=="function"?e():e}const Gn=l.forwardRef(function(t,n){const{children:o,container:s,disablePortal:r=!1}=t,[i,a]=l.useState(null),c=ne(l.isValidElement(o)?o.ref:null,n);if(qe(()=>{r||a(Vn(s)||document.body)},[s,r]),qe(()=>{if(i&&!r)return rt(n,i),()=>{rt(n,null)}},[n,i,r]),r){if(l.isValidElement(o)){const p={ref:c};return l.cloneElement(o,p)}return I.jsx(l.Fragment,{children:o})}return I.jsx(l.Fragment,{children:i&&Qt.createPortal(o,i)})}),Xn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qn={entering:{opacity:1},entered:{opacity:1}},Yn=l.forwardRef(function(t,n){const o=Ot(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:a,easing:c,in:p,onEnter:m,onEntered:h,onEntering:y,onExit:E,onExited:x,onExiting:M,style:k,timeout:g=s,TransitionComponent:w=oe}=t,d=H(t,Xn),f=l.useRef(null),b=ne(f,a.ref,n),C=O=>S=>{if(O){const T=f.current;S===void 0?O(T):O(T,S)}},v=C(y),F=C((O,S)=>{Dt(O);const T=je({style:k,timeout:g,easing:c},{mode:"enter"});O.style.webkitTransition=o.transitions.create("opacity",T),O.style.transition=o.transitions.create("opacity",T),m&&m(O,S)}),B=C(h),D=C(M),z=C(O=>{const S=je({style:k,timeout:g,easing:c},{mode:"exit"});O.style.webkitTransition=o.transitions.create("opacity",S),O.style.transition=o.transitions.create("opacity",S),E&&E(O)}),A=C(x),$=O=>{r&&r(f.current,O)};return I.jsx(w,u({appear:i,in:p,nodeRef:f,onEnter:F,onEntered:B,onEntering:v,onExit:z,onExited:A,onExiting:D,addEndListener:$,timeout:g},d,{children:(O,S)=>l.cloneElement(a,u({style:u({opacity:0,visibility:O==="exited"&&!p?"hidden":void 0},qn[O],k,a.props.style),ref:b},S))}))});function Zn(e){return ie("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const Jn=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qn=e=>{const{classes:t,invisible:n}=e;return ae({root:["root",n&&"invisible"]},Zn,t)},eo=j("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>u({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),to=l.forwardRef(function(t,n){var o,s,r;const i=ge({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:p="div",components:m={},componentsProps:h={},invisible:y=!1,open:E,slotProps:x={},slots:M={},TransitionComponent:k=Yn,transitionDuration:g}=i,w=H(i,Jn),d=u({},i,{component:p,invisible:y}),f=Qn(d),b=(o=x.root)!=null?o:h.root;return I.jsx(k,u({in:E,timeout:g},w,{children:I.jsx(eo,u({"aria-hidden":!0},b,{as:(s=(r=M.root)!=null?r:m.Root)!=null?s:p,className:Q(f.root,c,b==null?void 0:b.className),ownerState:u({},d,b==null?void 0:b.ownerState),classes:f,ref:n,children:a}))}))});function no(e){return typeof e=="function"?e():e}function oo(e){return e?e.props.hasOwnProperty("in"):!1}const ro=new Bn;function so(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:s=ro,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:p,open:m,rootRef:h}=e,y=l.useRef({}),E=l.useRef(null),x=l.useRef(null),M=ne(x,h),[k,g]=l.useState(!m),w=oo(c);let d=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(d=!1);const f=()=>J(E.current),b=()=>(y.current.modalRef=x.current,y.current.mount=E.current,y.current),C=()=>{s.mount(b(),{disableScrollLock:o}),x.current&&(x.current.scrollTop=0)},v=st(()=>{const T=no(t)||f().body;s.add(b(),T),x.current&&C()}),F=l.useCallback(()=>s.isTopModal(b()),[s]),B=st(T=>{E.current=T,T&&(m&&F()?C():x.current&&Fe(x.current,d))}),D=l.useCallback(()=>{s.remove(b(),d)},[d,s]);l.useEffect(()=>()=>{D()},[D]),l.useEffect(()=>{m?v():(!w||!r)&&D()},[m,D,w,r,v]);const z=T=>N=>{var P;(P=T.onKeyDown)==null||P.call(T,N),!(N.key!=="Escape"||N.which===229||!F())&&(n||(N.stopPropagation(),p&&p(N,"escapeKeyDown")))},A=T=>N=>{var P;(P=T.onClick)==null||P.call(T,N),N.target===N.currentTarget&&p&&p(N,"backdropClick")};return{getRootProps:(T={})=>{const N=wt(e);delete N.onTransitionEnter,delete N.onTransitionExited;const P=u({},N,T);return u({role:"presentation"},P,{onKeyDown:z(P),ref:M})},getBackdropProps:(T={})=>{const N=T;return u({"aria-hidden":!0},N,{onClick:A(N),open:m})},getTransitionProps:()=>{const T=()=>{g(!1),i&&i()},N=()=>{g(!0),a&&a(),r&&D()};return{onEnter:it(T,c==null?void 0:c.props.onEnter),onExited:it(N,c==null?void 0:c.props.onExited)}},rootRef:M,portalRef:B,isTopModal:F,exited:k,hasTransition:w}}function io(e){return ie("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const ao=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],lo=e=>{const{open:t,exited:n,classes:o}=e;return ae({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},io,o)},co=j("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>u({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),uo=j(to,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),po=l.forwardRef(function(t,n){var o,s,r,i,a,c;const p=ge({name:"MuiModal",props:t}),{BackdropComponent:m=uo,BackdropProps:h,className:y,closeAfterTransition:E=!1,children:x,container:M,component:k,components:g={},componentsProps:w={},disableAutoFocus:d=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:v=!1,disableScrollLock:F=!1,hideBackdrop:B=!1,keepMounted:D=!1,onBackdropClick:z,open:A,slotProps:$,slots:O}=p,S=H(p,ao),T=u({},p,{closeAfterTransition:E,disableAutoFocus:d,disableEnforceFocus:f,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:v,disableScrollLock:F,hideBackdrop:B,keepMounted:D}),{getRootProps:N,getBackdropProps:P,getTransitionProps:W,portalRef:Y,isTopModal:Ce,exited:X,hasTransition:Z}=so(u({},T,{rootRef:n})),q=u({},T,{exited:X}),ee=lo(q),te={};if(x.props.tabIndex===void 0&&(te.tabIndex="-1"),Z){const{onEnter:L,onExited:U}=W();te.onEnter=L,te.onExited=U}const le=(o=(s=O==null?void 0:O.root)!=null?s:g.Root)!=null?o:co,ce=(r=(i=O==null?void 0:O.backdrop)!=null?i:g.Backdrop)!=null?r:m,ve=(a=$==null?void 0:$.root)!=null?a:w.root,de=(c=$==null?void 0:$.backdrop)!=null?c:w.backdrop,ue=ke({elementType:le,externalSlotProps:ve,externalForwardedProps:S,getSlotProps:N,additionalProps:{ref:n,as:k},ownerState:q,className:Q(y,ve==null?void 0:ve.className,ee==null?void 0:ee.root,!q.open&&q.exited&&(ee==null?void 0:ee.hidden))}),pe=ke({elementType:ce,externalSlotProps:de,additionalProps:h,getSlotProps:L=>P(u({},L,{onClick:U=>{z&&z(U),L!=null&&L.onClick&&L.onClick(U)}})),className:Q(de==null?void 0:de.className,h==null?void 0:h.className,ee==null?void 0:ee.backdrop),ownerState:q});return!D&&!A&&(!Z||X)?null:I.jsx(Gn,{ref:Y,container:M,disablePortal:C,children:I.jsxs(le,u({},ue,{children:[!B&&m?I.jsx(ce,u({},pe)):null,I.jsx(Kn,{disableEnforceFocus:f,disableAutoFocus:d,disableRestoreFocus:v,isEnabled:Ce,open:A,children:l.cloneElement(x,te)})]}))})});function fo(e){return ie("MuiPopover",e)}se("MuiPopover",["root","paper"]);const mo=["onEntering"],ho=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],go=["slotProps"];function mt(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ht(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function gt(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Xe(e){return typeof e=="function"?e():e}const vo=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"]},fo,t)},bo=j(po,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bt=j(Gt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),xo=l.forwardRef(function(t,n){var o,s,r;const i=ge({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:h="anchorEl",children:y,className:E,container:x,elevation:M=8,marginThreshold:k=16,open:g,PaperProps:w={},slots:d,slotProps:f,transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:C=At,transitionDuration:v="auto",TransitionProps:{onEntering:F}={},disableScrollLock:B=!1}=i,D=H(i.TransitionProps,mo),z=H(i,ho),A=(o=f==null?void 0:f.paper)!=null?o:w,$=l.useRef(),O=ne($,A.ref),S=u({},i,{anchorOrigin:p,anchorReference:h,elevation:M,marginThreshold:k,externalPaperSlotProps:A,transformOrigin:b,TransitionComponent:C,transitionDuration:v,TransitionProps:D}),T=vo(S),N=l.useCallback(()=>{if(h==="anchorPosition")return m;const L=Xe(c),V=(L&&L.nodeType===1?L:J($.current).body).getBoundingClientRect();return{top:V.top+mt(V,p.vertical),left:V.left+ht(V,p.horizontal)}},[c,p.horizontal,p.vertical,m,h]),P=l.useCallback(L=>({vertical:mt(L,b.vertical),horizontal:ht(L,b.horizontal)}),[b.horizontal,b.vertical]),W=l.useCallback(L=>{const U={width:L.offsetWidth,height:L.offsetHeight},V=P(U);if(h==="none")return{top:null,left:null,transformOrigin:gt(V)};const Le=N();let fe=Le.top-V.vertical,me=Le.left-V.horizontal;const be=fe+U.height,De=me+U.width,re=$e(Xe(c)),Ne=re.innerHeight-k,xe=re.innerWidth-k;if(k!==null&&feNe){const G=be-Ne;fe-=G,V.vertical+=G}if(k!==null&&mexe){const G=De-xe;me-=G,V.horizontal+=G}return{top:`${Math.round(fe)}px`,left:`${Math.round(me)}px`,transformOrigin:gt(V)}},[c,h,N,P,k]),[Y,Ce]=l.useState(g),X=l.useCallback(()=>{const L=$.current;if(!L)return;const U=W(L);U.top!==null&&(L.style.top=U.top),U.left!==null&&(L.style.left=U.left),L.style.transformOrigin=U.transformOrigin,Ce(!0)},[W]);l.useEffect(()=>(B&&window.addEventListener("scroll",X),()=>window.removeEventListener("scroll",X)),[c,B,X]);const Z=(L,U)=>{F&&F(L,U),X()},q=()=>{Ce(!1)};l.useEffect(()=>{g&&X()}),l.useImperativeHandle(a,()=>g?{updatePosition:()=>{X()}}:null,[g,X]),l.useEffect(()=>{if(!g)return;const L=Zt(()=>{X()}),U=$e(c);return U.addEventListener("resize",L),()=>{L.clear(),U.removeEventListener("resize",L)}},[c,g,X]);let ee=v;v==="auto"&&!C.muiSupportAuto&&(ee=void 0);const te=x||(c?J(Xe(c)).body:void 0),le=(s=d==null?void 0:d.root)!=null?s:bo,ce=(r=d==null?void 0:d.paper)!=null?r:Bt,ve=ke({elementType:ce,externalSlotProps:u({},A,{style:Y?A.style:u({},A.style,{opacity:0})}),additionalProps:{elevation:M,ref:O},ownerState:S,className:Q(T.paper,A==null?void 0:A.className)}),de=ke({elementType:le,externalSlotProps:(f==null?void 0:f.root)||{},externalForwardedProps:z,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:te,open:g},ownerState:S,className:Q(T.root,E)}),{slotProps:ue}=de,pe=H(de,go);return I.jsx(le,u({},pe,!yt(le)&&{slotProps:ue,disableScrollLock:B},{children:I.jsx(C,u({appear:!0,in:g,onEntering:Z,onExited:q,timeout:ee},D,{children:I.jsx(ce,u({},ve,{children:y}))}))}))});function Eo(e){return ie("MuiMenu",e)}se("MuiMenu",["root","paper","list"]);const yo=["onEntering"],Po=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ro={vertical:"top",horizontal:"right"},Co={vertical:"top",horizontal:"left"},So=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"],list:["list"]},Eo,t)},To=j(xo,{shouldForwardProp:e=>Re(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Io=j(Bt,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ko=j(wn,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),No=l.forwardRef(function(t,n){var o,s;const r=ge({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:c,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:y,PaperProps:E={},PopoverClasses:x,transitionDuration:M="auto",TransitionProps:{onEntering:k}={},variant:g="selectedMenu",slots:w={},slotProps:d={}}=r,f=H(r.TransitionProps,yo),b=H(r,Po),C=Yt(),v=u({},r,{autoFocus:i,disableAutoFocusItem:p,MenuListProps:m,onEntering:k,PaperProps:E,transitionDuration:M,TransitionProps:f,variant:g}),F=So(v),B=i&&!p&&y,D=l.useRef(null),z=(P,W)=>{D.current&&D.current.adjustStyleForScrollbar(P,{direction:C?"rtl":"ltr"}),k&&k(P,W)},A=P=>{P.key==="Tab"&&(P.preventDefault(),h&&h(P,"tabKeyDown"))};let $=-1;l.Children.map(a,(P,W)=>{l.isValidElement(P)&&(P.props.disabled||(g==="selectedMenu"&&P.props.selected||$===-1)&&($=W))});const O=(o=w.paper)!=null?o:Io,S=(s=d.paper)!=null?s:E,T=ke({elementType:w.root,externalSlotProps:d.root,ownerState:v,className:[F.root,c]}),N=ke({elementType:O,externalSlotProps:S,ownerState:v,className:F.paper});return I.jsx(To,u({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Ro:Co,slots:{paper:O,root:w.root},slotProps:{root:T,paper:N},open:y,ref:n,transitionDuration:M,TransitionProps:u({onEntering:z},f),ownerState:v},b,{classes:x,children:I.jsx(ko,u({onKeyDown:A,actions:D,autoFocus:i&&($===-1||p),autoFocusItem:B,variant:g},m,{className:Q(F.list,m.className),children:a}))}))});function Mo(e){return ie("MuiNativeSelect",e)}const Je=se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wo=["className","disabled","error","IconComponent","inputRef","variant"],Oo=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:r,error:i}=e,a={select:["select",n,o&&"disabled",s&&"multiple",i&&"error"],icon:["icon",`icon${We(n)}`,r&&"iconOpen",o&&"disabled"]};return ae(a,Mo,t)},_t=({ownerState:e,theme:t})=>u({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":u({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Je.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Fo=j("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Re,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Je.multiple}`]:t.multiple}]}})(_t),jt=({ownerState:e,theme:t})=>u({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Je.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),$o=j("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${We(n.variant)}`],n.open&&t.iconOpen]}})(jt),Lo=l.forwardRef(function(t,n){const{className:o,disabled:s,error:r,IconComponent:i,inputRef:a,variant:c="standard"}=t,p=H(t,wo),m=u({},t,{disabled:s,variant:c,error:r}),h=Oo(m);return I.jsxs(l.Fragment,{children:[I.jsx(Fo,u({ownerState:m,className:Q(h.select,o),disabled:s,ref:a||n},p)),t.multiple?null:I.jsx($o,{as:i,ownerState:m,className:h.icon})]})});function Do(e){return ie("MuiSelect",e)}const we=se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vt;const Ao=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Bo=j("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${we.select}`]:t.select},{[`&.${we.select}`]:t[n.variant]},{[`&.${we.error}`]:t.error},{[`&.${we.multiple}`]:t.multiple}]}})(_t,{[`&.${we.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_o=j("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${We(n.variant)}`],n.open&&t.iconOpen]}})(jt),jo=j("input",{shouldForwardProp:e=>Xt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function bt(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Wo(e){return e==null||typeof e=="string"&&!e.trim()}const Uo=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:r,error:i}=e,a={select:["select",n,o&&"disabled",s&&"multiple",i&&"error"],icon:["icon",`icon${We(n)}`,r&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ae(a,Do,t)},Ho=l.forwardRef(function(t,n){var o;const{"aria-describedby":s,"aria-label":r,autoFocus:i,autoWidth:a,children:c,className:p,defaultOpen:m,defaultValue:h,disabled:y,displayEmpty:E,error:x=!1,IconComponent:M,inputRef:k,labelId:g,MenuProps:w={},multiple:d,name:f,onBlur:b,onChange:C,onClose:v,onFocus:F,onOpen:B,open:D,readOnly:z,renderValue:A,SelectDisplayProps:$={},tabIndex:O,value:S,variant:T="standard"}=t,N=H(t,Ao),[P,W]=at({controlled:S,default:h,name:"Select"}),[Y,Ce]=at({controlled:D,default:m,name:"Select"}),X=l.useRef(null),Z=l.useRef(null),[q,ee]=l.useState(null),{current:te}=l.useRef(D!=null),[le,ce]=l.useState(),ve=ne(n,k),de=l.useCallback(R=>{Z.current=R,R&&ee(R)},[]),ue=q==null?void 0:q.parentNode;l.useImperativeHandle(ve,()=>({focus:()=>{Z.current.focus()},node:X.current,value:P}),[P]),l.useEffect(()=>{m&&Y&&q&&!te&&(ce(a?null:ue.clientWidth),Z.current.focus())},[q,a]),l.useEffect(()=>{i&&Z.current.focus()},[i]),l.useEffect(()=>{if(!g)return;const R=J(Z.current).getElementById(g);if(R){const _=()=>{getSelection().isCollapsed&&Z.current.focus()};return R.addEventListener("click",_),()=>{R.removeEventListener("click",_)}}},[g]);const pe=(R,_)=>{R?B&&B(_):v&&v(_),te||(ce(a?null:ue.clientWidth),Ce(R))},L=R=>{R.button===0&&(R.preventDefault(),Z.current.focus(),pe(!0,R))},U=R=>{pe(!1,R)},V=l.Children.toArray(c),Le=R=>{const _=V.find(K=>K.props.value===R.target.value);_!==void 0&&(W(_.props.value),C&&C(R,_))},fe=R=>_=>{let K;if(_.currentTarget.hasAttribute("tabindex")){if(d){K=Array.isArray(P)?P.slice():[];const Se=P.indexOf(R.props.value);Se===-1?K.push(R.props.value):K.splice(Se,1)}else K=R.props.value;if(R.props.onClick&&R.props.onClick(_),P!==K&&(W(K),C)){const Se=_.nativeEvent||_,ot=new Se.constructor(Se.type,Se);Object.defineProperty(ot,"target",{writable:!0,value:{value:K,name:f}}),C(ot,R)}d||pe(!1,_)}},me=R=>{z||[" ","ArrowUp","ArrowDown","Enter"].indexOf(R.key)!==-1&&(R.preventDefault(),pe(!0,R))},be=q!==null&&Y,De=R=>{!be&&b&&(Object.defineProperty(R,"target",{writable:!0,value:{value:P,name:f}}),b(R))};delete N["aria-invalid"];let re,Ne;const xe=[];let G=!1;(en({value:P})||E)&&(A?re=A(P):G=!0);const Wt=V.map(R=>{if(!l.isValidElement(R))return null;let _;if(d){if(!Array.isArray(P))throw new Error(qt(2));_=P.some(K=>bt(K,R.props.value)),_&&G&&xe.push(R.props.children)}else _=bt(P,R.props.value),_&&G&&(Ne=R.props.children);return l.cloneElement(R,{"aria-selected":_?"true":"false",onClick:fe(R),onKeyUp:K=>{K.key===" "&&K.preventDefault(),R.props.onKeyUp&&R.props.onKeyUp(K)},role:"option",selected:_,value:void 0,"data-value":R.props.value})});G&&(d?xe.length===0?re=null:re=xe.reduce((R,_,K)=>(R.push(_),K{const{classes:t}=e;return t},Qe={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Re(e)&&e!=="variant",slot:"Root"},Xo=j(nn,Qe)(""),qo=j($t,Qe)(""),Yo=j(Ft,Qe)(""),Zo=l.forwardRef(function(t,n){const o=ge({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:r,classes:i={},className:a,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:m=zo,id:h,input:y,inputProps:E,label:x,labelId:M,MenuProps:k,multiple:g=!1,native:w=!1,onClose:d,onOpen:f,open:b,renderValue:C,SelectDisplayProps:v,variant:F="outlined"}=o,B=H(o,Ko),D=w?Lo:Ho,z=kt(),A=Nt({props:o,muiFormControl:z,states:["variant","error"]}),$=A.variant||F,O=u({},o,{variant:$,classes:i}),S=Go(O),T=H(S,Vo),N=y||{standard:I.jsx(Xo,{ownerState:O}),outlined:I.jsx(qo,{label:x,ownerState:O}),filled:I.jsx(Yo,{ownerState:O})}[$],P=ne(n,N.ref);return I.jsx(l.Fragment,{children:l.cloneElement(N,u({inputComponent:D,inputProps:u({children:r,error:A.error,IconComponent:m,variant:$,type:void 0,multiple:g},w?{id:h}:{autoWidth:s,defaultOpen:c,displayEmpty:p,labelId:M,MenuProps:k,onClose:d,onOpen:f,open:b,renderValue:C,SelectDisplayProps:u({id:h},v)},E,{classes:E?Et(T,E.classes):T},y?y.props.inputProps:{})},(g&&w||p)&&$==="outlined"?{notched:!0}:{},{ref:P,className:Q(N.props.className,a,S.root)},!y&&{variant:$},B))})});Zo.muiName="Select";export{zo as A,to as B,Ft as F,At as G,Cn as L,wn as M,$t as O,Gn as P,Zo as S,oe as T,Ot as a,ln as b,Yn as c,Kn as d,Nn as e,Ee as f,po as g,he as o,sn as r,ke as u}; diff --git a/storybook/assets/Select.stories-BsQlsrWZ.js b/storybook/assets/Select.stories-BsQlsrWZ.js new file mode 100644 index 0000000..2c4dcee --- /dev/null +++ b/storybook/assets/Select.stories-BsQlsrWZ.js @@ -0,0 +1,3 @@ +import{n as y,W as I,F as S,h as k,k as P,l as n,B as H,m as w}from"./Wrapper-DXvvO_B0.js";import{r as e}from"./index-CTjT7uj6.js";import{F as N,I as _,a as A}from"./FormHelperText-h4EvFgt8.js";import{S as B}from"./Select-DSn46qfv.js";import{M as t}from"./MenuItem-BLPASM16.js";import"./isNativeReflectConstruct-CJAgTEKr.js";import"./v4-CQkTLCs1.js";import"./InputBase-DuDaiXcF.js";import"./useFormControl-Baz_U5RD.js";import"./ownerWindow-DIR61fab.js";import"./isMuiElement-BqzHBgRb.js";import"./index-BjNUr1t6.js";import"./useId-BjRAp5Eo.js";import"./index-CYM-y3Gt.js";import"./useControlled-5JjQu8rW.js";import"./createSvgIcon-DLhoJ5Fi.js";function D({disabled:r,field:{onBlur:m,onChange:s,...l},form:{isSubmitting:i,touched:d,errors:E,setFieldTouched:c,setFieldValue:p},onClose:v,...b}){const f=y(E,l.name),T=y(d,l.name)&&!!f;return{disabled:r??i,error:T,formError:T?f:void 0,onBlur:()=>{},onChange:s??(()=>{}),onClose:v??(async F=>{const g=F.target.dataset;g&&g.value&&await p(l.name,g.value,!1),c(l.name,!0,!0)}),...l,...b}}function a({formControl:r,inputLabel:m,formHelperText:s,...l}){const{error:i,formError:d,disabled:E,...c}=D(l),{children:p,...v}=s||{},b=i||p;return e.createElement(N,{disabled:E,error:i,...r},e.createElement(_,{id:c.labelId,...m},c.label),e.createElement(B,{...c}),b&&e.createElement(A,{...v},i?d:p))}a.displayName="FormikMaterialUISelect";a.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUISelect",props:{formControl:{required:!1,tsType:{name:"FormControlProps"},description:""},formHelperText:{required:!1,tsType:{name:"FormHelperTextProps"},description:""},inputLabel:{required:!1,tsType:{name:"InputLabelProps"},description:""}},composes:["FieldProps","Omit"]};const o={m:1,minWidth:140},Z={title:"Core/Select",component:a,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},L=()=>e.createElement(I,null,e.createElement(S,{initialValues:{age:"",pets:[]},onSubmit:(r,{setSubmitting:m})=>{setTimeout(()=>{m(!1),k("submit")(r)},2e3)}},({submitForm:r,values:m})=>e.createElement(P,null,e.createElement(n,{component:a,formControl:{sx:o},id:"age",name:"age",labelId:"age-simple",label:"Age"},e.createElement(t,{value:10},"Ten"),e.createElement(t,{value:20},"Twenty"),e.createElement(t,{value:30},"Thirty")),e.createElement("br",null),e.createElement(n,{component:a,formControl:{sx:o},formHelperText:{children:"How old are you?"},id:"age",name:"age",labelId:"age-simple",label:"Age helper"},e.createElement(t,{value:10},"Ten"),e.createElement(t,{value:20},"Twenty"),e.createElement(t,{value:30},"Thirty")),e.createElement("br",null),e.createElement(n,{component:a,formControl:{sx:o},formHelperText:{children:"How old are you?"},id:"age-validator",name:"age-validator",labelId:"age-validator",label:"Age validator",validate:s=>s?s<21?"You must be 21 or older":void 0:"Please enter your age"},e.createElement(t,{value:10},"Ten"),e.createElement(t,{value:20},"Twenty"),e.createElement(t,{value:30},"Thirty")),e.createElement("br",null),e.createElement(n,{component:a,formControl:{sx:o},id:"age",name:"age",labelId:"age-simple-empty",label:"Age (Empty)"},e.createElement(t,{value:""},e.createElement("em",null,"None")),e.createElement(t,{value:10},"Ten"),e.createElement(t,{value:20},"Twenty"),e.createElement(t,{value:30},"Thirty")),e.createElement("br",null),e.createElement(n,{component:a,formControl:{sx:o,variant:"standard"},inputLabel:{shrink:!0,variant:"standard",htmlFor:"age-native"},id:"age",name:"age",native:!0,labelId:"age-native",label:"Native Age",inputProps:{name:"age",id:"age-native"}},e.createElement("option",{value:""},"None"),e.createElement("option",{value:10},"Ten"),e.createElement("option",{value:20},"Twenty"),e.createElement("option",{value:30},"Thirty")),e.createElement("br",null),e.createElement(n,{component:a,formControl:{sx:o},id:"pets",name:"pets",multiple:!0,labelId:"pets",label:"Pets"},e.createElement(t,{value:"dogs"},"Dogs"),e.createElement(t,{value:"cats"},"Cats"),e.createElement(t,{value:"rats"},"Rats"),e.createElement(t,{value:"snakes"},"Snakes")),e.createElement("br",null),e.createElement(n,{component:a,formControl:{sx:o},inputLabel:{shrink:!0},id:"pets",name:"pets",native:!0,multiple:!0,labelId:"native-pets",label:"Native Pets",inputProps:{id:"native-pets"}},e.createElement("option",{value:"dogs"},"Dogs"),e.createElement("option",{value:"cats"},"Cats"),e.createElement("option",{value:"rats"},"Rats"),e.createElement("option",{value:"snakes"},"Snakes")),e.createElement("br",null),e.createElement(H,{variant:"contained",color:"primary",onClick:r},"Submit"),e.createElement("br",null),e.createElement(w,{values:m})))),u={render:L};var h,x,C;u.parameters={...u.parameters,docs:{...(h=u.parameters)==null?void 0:h.docs,source:{originalSource:`{ + render: Template +}`,...(C=(x=u.parameters)==null?void 0:x.docs)==null?void 0:C.source}}};const ee=["Default"];export{u as Default,ee as __namedExportsOrder,Z as default}; diff --git a/storybook/assets/SimpleFileUpload.stories-Vc4SJ6Z9.js b/storybook/assets/SimpleFileUpload.stories-Vc4SJ6Z9.js new file mode 100644 index 0000000..2644f32 --- /dev/null +++ b/storybook/assets/SimpleFileUpload.stories-Vc4SJ6Z9.js @@ -0,0 +1,3 @@ +import{n as p,W as g,F as h,h as C,k as q,l as _,B as P,m as L}from"./Wrapper-DXvvO_B0.js";import{r as o,R as r}from"./index-CTjT7uj6.js";import{c as U,a as k}from"./array-D74jl773.js";import{F as v,I as x,b as B,a as O}from"./FormHelperText-h4EvFgt8.js";import"./isNativeReflectConstruct-CJAgTEKr.js";import"./v4-CQkTLCs1.js";import"./_baseIteratee-8_jeTHtL.js";import"./_overArg-duoZdnBA.js";import"./InputBase-DuDaiXcF.js";import"./useFormControl-Baz_U5RD.js";import"./ownerWindow-DIR61fab.js";import"./isMuiElement-BqzHBgRb.js";const s=({field:e,form:{isSubmitting:t,touched:f,errors:b,setFieldValue:F},label:m,accept:E,disabled:y=!1,InputProps:a,InputLabelProps:I,FormControlProps:T})=>{const l=p(f,e.name)&&p(b,e.name);return o.createElement(v,{...T},m&&o.createElement(x,{shrink:!0,error:!!l,...I},m),o.createElement(B,{error:!!l,inputProps:{type:"file",accept:E,disabled:y||t,name:e.name,onChange:i=>{if(a!=null&&a.onChange)a.onChange(i);else{const S=i.currentTarget.files[0];F(e.name,S)}}},...a}),l&&o.createElement(O,{error:!0},l))};s.__docgenInfo={description:"",methods:[],displayName:"SimpleFileUpload",props:{label:{required:!0,tsType:{name:"string"},description:""},accept:{required:!0,tsType:{name:"string"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},InputProps:{required:!1,tsType:{name:"Omit",elements:[{name:"InputProps"},{name:"union",raw:"'name' | 'type' | 'label'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'type'"},{name:"literal",value:"'label'"}]}],raw:"Omit"},description:""},InputLabelProps:{required:!1,tsType:{name:"InputLabelProps"},description:""},FormControlProps:{required:!1,tsType:{name:"FormControlProps"},description:""}},composes:["FieldProps"]};const R=10485760,V=U().shape({file:k().required("Required").test("file","File must be less than 10MB",e=>e==null||e.sizer.createElement(g,null,r.createElement(h,{validationSchema:V,initialValues:{file:""},onSubmit:(e,{setSubmitting:t})=>{setTimeout(()=>{t(!1),C("submit")(e)},2e3)}},({submitForm:e,values:t})=>r.createElement(q,null,r.createElement(_,{component:s,name:"file",label:"Simple File Upload"}),r.createElement("br",null),r.createElement(P,{variant:"contained",color:"primary",onClick:e},"Submit"),r.createElement("br",null),r.createElement(L,{values:t})))),n={render:w};var c,u,d;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`{ + render: Template +}`,...(d=(u=n.parameters)==null?void 0:u.docs)==null?void 0:d.source}}};const K=["Default"];export{n as Default,K as __namedExportsOrder,J as default}; diff --git a/storybook/assets/Switches.stories-CuUT6Cr5.js b/storybook/assets/Switches.stories-CuUT6Cr5.js new file mode 100644 index 0000000..d869b1a --- /dev/null +++ b/storybook/assets/Switches.stories-CuUT6Cr5.js @@ -0,0 +1,3 @@ +import{r as a}from"./index-CTjT7uj6.js";import{p as z,o as B,s as k,t as c,y,w as _,x as T,u as M,_ as R,j as b,c as F,q as j,W as D,F as I,h as N,k as O,l as n,z as L,B as U,m as P}from"./Wrapper-DXvvO_B0.js";import{_ as v}from"./isNativeReflectConstruct-CJAgTEKr.js";import{S as W,F as g}from"./FormControlLabel-D18ON2k4.js";import"./v4-CQkTLCs1.js";import"./useFormControl-Baz_U5RD.js";import"./useControlled-5JjQu8rW.js";import"./createStyled-D6A6HRKR.js";function q(e){return B("MuiSwitch",e)}const o=z("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),A=["className","color","edge","size","sx"],V=e=>{const{classes:t,edge:r,size:i,color:h,checked:l,disabled:p}=e,d={root:["root",r&&`edge${c(r)}`,`size${c(i)}`],switchBase:["switchBase",`color${c(h)}`,l&&"checked",p&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=j(d,q,t);return v({},t,f)},X=k("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${c(r.edge)}`],t[`size${c(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${o.thumb}`]:{width:16,height:16},[`& .${o.switchBase}`]:{padding:4,[`&.${o.checked}`]:{transform:"translateX(16px)"}}}}]}),G=k(W,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${o.input}`]:t.input},r.color!=="default"&&t[`color${c(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${o.checked}`]:{transform:"translateX(20px)"},[`&.${o.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${o.checked} + .${o.track}`]:{opacity:.5},[`&.${o.disabled} + .${o.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${o.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:y(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${o.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:y(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${o.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?_(e.palette[t].main,.62):T(e.palette[t].main,.55)}`}},[`&.${o.checked} + .${o.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),H=k("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),J=k("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),K=a.forwardRef(function(t,r){const i=M({props:t,name:"MuiSwitch"}),{className:h,color:l="primary",edge:p=!1,size:d="medium",sx:f}=i,C=R(i,A),u=v({},i,{color:l,edge:p,size:d}),m=V(u),S=b.jsx(J,{className:m.thumb,ownerState:u});return b.jsxs(X,{className:F(m.root,h),sx:f,ownerState:u,children:[b.jsx(G,v({type:"checkbox",icon:S,checkedIcon:S,ref:r,ownerState:u},C,{classes:v({},m,{root:m.switchBase})})),b.jsx(H,{className:m.track,ownerState:u})]})});function Q({disabled:e,field:{onBlur:t,...r},form:{isSubmitting:i},type:h,onBlur:l,...p}){return{disabled:e??i,onBlur:l??function(d){t(d??r.name)},...r,...p}}function s(e){return a.createElement(K,{...Q(e)})}s.displayName="FormikMaterialUISwitch";s.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUISwitch",props:{type:{required:!1,tsType:{name:"string"},description:""}},composes:["FieldProps","Omit"]};const ne={title:"Core/Switch",component:s,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},Y=()=>a.createElement(D,null,a.createElement(I,{initialValues:{on:!0,off:!1,withLabel:!1,multiple:[]},onSubmit:(e,{setSubmitting:t})=>{setTimeout(()=>{t(!1),N("submit")(e)},2e3)}},({submitForm:e,values:t})=>a.createElement(O,null,a.createElement(n,{component:s,name:"on",type:"checkbox"}),a.createElement("br",null),a.createElement(n,{component:s,name:"off",type:"checkbox"}),a.createElement("br",null),a.createElement(g,{label:"Switch With Label",control:a.createElement(n,{component:s,name:"withLabel",type:"checkbox"})}),a.createElement("br",null),a.createElement(L,null,a.createElement(g,{label:"Designer?",control:a.createElement(n,{component:s,name:"multiple",value:"designer",type:"checkbox"})}),a.createElement(g,{label:"Developer?",control:a.createElement(n,{component:s,name:"multiple",value:"developer",type:"checkbox"})}),a.createElement(g,{label:"Product Manager?",control:a.createElement(n,{component:s,name:"multiple",value:"product",type:"checkbox"})})),a.createElement(U,{variant:"contained",color:"primary",onClick:e},"Submit"),a.createElement("br",null),a.createElement(P,{values:t})))),w={render:Y};var x,$,E;w.parameters={...w.parameters,docs:{...(x=w.parameters)==null?void 0:x.docs,source:{originalSource:`{ + render: Template +}`,...(E=($=w.parameters)==null?void 0:$.docs)==null?void 0:E.source}}};const ce=["Default"];export{w as Default,ce as __namedExportsOrder,ne as default}; diff --git a/storybook/assets/TextField-4ii8jFMh.js b/storybook/assets/TextField-4ii8jFMh.js new file mode 100644 index 0000000..e555ed4 --- /dev/null +++ b/storybook/assets/TextField-4ii8jFMh.js @@ -0,0 +1 @@ +import{_ as t}from"./isNativeReflectConstruct-CJAgTEKr.js";import{o as G,p as J,s as K,u as Q,_ as X,j as a,c as Y,q as Z}from"./Wrapper-DXvvO_B0.js";import{r as ee}from"./index-CTjT7uj6.js";import{F as te,I as oe,a as se,b as le}from"./FormHelperText-h4EvFgt8.js";import{u as re}from"./useId-BjRAp5Eo.js";import{S as ae,F as ie,O as ne}from"./Select-DSn46qfv.js";function de(o){return G("MuiTextField",o)}J("MuiTextField",["root"]);const pe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ue={standard:le,filled:ie,outlined:ne},ce=o=>{const{classes:s}=o;return Z({root:["root"]},de,s)},me=K(te,{name:"MuiTextField",slot:"Root",overridesResolver:(o,s)=>s.root})({}),Te=ee.forwardRef(function(s,x){const d=Q({props:s,name:"MuiTextField"}),{autoComplete:j,autoFocus:h=!1,children:w,className:g,color:F="primary",defaultValue:L,disabled:b=!1,error:I=!1,FormHelperTextProps:M,fullWidth:p=!1,helperText:u,id:S,InputLabelProps:i,inputProps:_,InputProps:U,inputRef:q,label:l,maxRows:E,minRows:H,multiline:T=!1,name:N,onBlur:O,onChange:W,onFocus:k,placeholder:B,required:v=!1,rows:V,select:c=!1,SelectProps:m,type:$,value:y,variant:n="outlined"}=d,D=X(d,pe),C=t({},d,{autoFocus:h,color:F,disabled:b,error:I,fullWidth:p,multiline:T,required:v,select:c,variant:n}),z=ce(C),r={};n==="outlined"&&(i&&typeof i.shrink<"u"&&(r.notched=i.shrink),r.label=l),c&&((!m||!m.native)&&(r.id=void 0),r["aria-describedby"]=void 0);const e=re(S),f=u&&e?`${e}-helper-text`:void 0,P=l&&e?`${e}-label`:void 0,A=ue[n],R=a.jsx(A,t({"aria-describedby":f,autoComplete:j,autoFocus:h,defaultValue:L,fullWidth:p,multiline:T,name:N,rows:V,maxRows:E,minRows:H,type:$,value:y,id:e,inputRef:q,onBlur:O,onChange:W,onFocus:k,placeholder:B,inputProps:_},r,U));return a.jsxs(me,t({className:Y(z.root,g),disabled:b,error:I,fullWidth:p,ref:x,required:v,color:F,variant:n,ownerState:C},D,{children:[l!=null&&l!==""&&a.jsx(oe,t({htmlFor:e,id:P},i,{children:l})),c?a.jsx(ae,t({"aria-describedby":f,id:e,labelId:P,value:y,input:R},m,{children:w})):R,u&&a.jsx(se,t({id:f},M,{children:u}))]}))});export{Te as T}; diff --git a/storybook/assets/TextField.stories-CYH177H1.js b/storybook/assets/TextField.stories-CYH177H1.js new file mode 100644 index 0000000..06873c7 --- /dev/null +++ b/storybook/assets/TextField.stories-CYH177H1.js @@ -0,0 +1,3 @@ +import{n as u,W as w,F as k,h as I,k as P,l as o,B as C,m as S}from"./Wrapper-DXvvO_B0.js";import{r as e}from"./index-CTjT7uj6.js";import{c as d,b as s,a as U}from"./array-D74jl773.js";import{T}from"./TextField-4ii8jFMh.js";import{M as _}from"./MenuItem-BLPASM16.js";import{L as q}from"./LinearProgress-CIiBqE01.js";import"./isNativeReflectConstruct-CJAgTEKr.js";import"./v4-CQkTLCs1.js";import"./_baseIteratee-8_jeTHtL.js";import"./_overArg-duoZdnBA.js";import"./FormHelperText-h4EvFgt8.js";import"./InputBase-DuDaiXcF.js";import"./useFormControl-Baz_U5RD.js";import"./ownerWindow-DIR61fab.js";import"./isMuiElement-BqzHBgRb.js";import"./useId-BjRAp5Eo.js";import"./Select-DSn46qfv.js";import"./index-BjNUr1t6.js";import"./index-CYM-y3Gt.js";import"./useControlled-5JjQu8rW.js";import"./createSvgIcon-DLhoJ5Fi.js";function f({disabled:t,field:{onBlur:r,...l},form:{isSubmitting:n,touched:i,errors:h},onBlur:F,helperText:g,...v}){const c=u(h,l.name),p=u(i,l.name)&&!!c;return{error:p,helperText:p?c:g,disabled:t??n,onBlur:F??function(y){r(y??l.name)},...l,...v}}function a({children:t,...r}){return e.createElement(T,{...f(r)},t)}a.displayName="FormikMaterialUITextField";a.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUITextField",composes:["FieldProps","Omit"]};const B=d().shape({user:d().shape({email:s().email().required()}),password:s().required(),helperText:s().required(),select:U().required()}),M=[{value:"0-20",label:"0 to 20"},{value:"21-50",label:"21 to 50"},{value:"51-100",label:"51 to 100"}],O=t=>e.createElement(T,{...f(t),onChange:r=>{const{value:l}=r.target,{form:n,field:i}=t;n.setFieldValue(i.name,l?l.toUpperCase():"")}}),ae={title:"Core/TextField",component:a,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},V=()=>e.createElement(w,null,e.createElement(k,{initialValues:{user:{email:""},password:"",helperText:"",uppercasing:"",select:"",outlined:""},validationSchema:B,onSubmit:(t,{setSubmitting:r})=>{setTimeout(()=>{r(!1),I("submit")(t)},2e3)}},({submitForm:t,isSubmitting:r,values:l})=>e.createElement(P,null,e.createElement(o,{component:a,type:"email",label:"Email",name:"user.email",helperText:"Please Enter Email"}),e.createElement("br",null),e.createElement(o,{component:a,type:"password",label:"Password",name:"password"}),e.createElement("br",null),e.createElement(o,{component:a,type:"text",label:"Field with helper text",name:"helperText",helperText:"Helper text goes here"}),e.createElement("br",null),e.createElement(o,{component:O,label:"Uppercasing",name:"uppercasing"}),e.createElement("br",null),e.createElement("br",null),e.createElement(o,{component:a,label:"Outlined",name:"outlined",variant:"outlined",InputProps:{notched:!0}}),e.createElement("br",null),e.createElement("br",null),e.createElement(o,{component:a,label:"Filled",name:"filled",variant:"filled"}),e.createElement("br",null),e.createElement("br",null),e.createElement(o,{component:a,type:"text",name:"select",label:"With Select",select:!0,helperText:"Please select Range",margin:"normal"},M.map(n=>e.createElement(_,{key:n.value,value:n.value},n.label))),e.createElement("br",null),r&&e.createElement(q,null),e.createElement("br",null),e.createElement(C,{variant:"contained",color:"primary",disabled:r,onClick:t},"Submit"),e.createElement("br",null),e.createElement(S,{values:l})))),m={render:V};var E,b,x;m.parameters={...m.parameters,docs:{...(E=m.parameters)==null?void 0:E.docs,source:{originalSource:`{ + render: Template +}`,...(x=(b=m.parameters)==null?void 0:b.docs)==null?void 0:x.source}}};const ne=["Default"];export{m as Default,ne as __namedExportsOrder,ae as default}; diff --git a/storybook/assets/TimePicker.stories-CM1J429p.js b/storybook/assets/TimePicker.stories-CM1J429p.js new file mode 100644 index 0000000..3219fe1 --- /dev/null +++ b/storybook/assets/TimePicker.stories-CM1J429p.js @@ -0,0 +1,3 @@ +import{Y as E,_ as U,j as x,p as le,o as ce,s as L,c as me,q as ue,n as D,W as pe,F as de,h as be,k as fe,l as I,B as Te,m as Pe}from"./Wrapper-DXvvO_B0.js";import{r as l}from"./index-CTjT7uj6.js";import{c as he,e as ke}from"./array-D74jl773.js";import{a as ge,s as xe,b as ve,c as _,d as Ce,e as ye,f as Me,g as Fe,h as De,i as V,j as $,k as we,l as O,m as G,n as Oe,r as te,C as Se,o as re,p as je,q as se,t as A,v as Ie,w as Re,x as Ee}from"./errorHandler-ulv3bqY5.js";import{_ as i}from"./isNativeReflectConstruct-CJAgTEKr.js";import{P as e}from"./index-BzjuzjN8.js";import{u as Le}from"./index-BjNUr1t6.js";import{v as N,P as _e,a as S,r as Ve,b as J,c as Ae,d as w}from"./timeViewRenderers-DSKlpx4k.js";import{T as Ne}from"./TextField-4ii8jFMh.js";import{u as Be,r as ne}from"./Select-DSn46qfv.js";import{u as Ue}from"./useStaticPicker-DQGfQM-K.js";import{L as $e}from"./LinearProgress-CIiBqE01.js";import"./v4-CQkTLCs1.js";import"./_baseIteratee-8_jeTHtL.js";import"./_overArg-duoZdnBA.js";import"./Chip-C6MsZLfs.js";import"./ownerWindow-DIR61fab.js";import"./createSvgIcon-DLhoJ5Fi.js";import"./useId-BjRAp5Eo.js";import"./useControlled-5JjQu8rW.js";import"./useFormControl-Baz_U5RD.js";import"./FormHelperText-h4EvFgt8.js";import"./InputBase-DuDaiXcF.js";import"./isMuiElement-BqzHBgRb.js";import"./createStyled-D6A6HRKR.js";import"./MenuItem-BLPASM16.js";import"./colorManipulator-BcfljvUw.js";import"./index-CYM-y3Gt.js";const qe=n=>{const o=ge(n),{forwardedProps:s,internalProps:t}=xe(o,"time");return ve({forwardedProps:s,internalProps:t,valueManager:_,fieldValueManager:Ce,validator:N,valueType:"time"})},ze=["slots","slotProps","InputProps","inputProps"],ae=l.forwardRef(function(o,s){const t=E({props:o,name:"MuiTimeField"}),{slots:a,slotProps:r,InputProps:u,inputProps:c}=t,d=U(t,ze),m=t,b=(a==null?void 0:a.textField)??(o.enableAccessibleFieldDOMStructure?ye:Ne),p=Be({elementType:b,externalSlotProps:r==null?void 0:r.textField,externalForwardedProps:d,ownerState:m,additionalProps:{ref:s}});p.inputProps=i({},c,p.inputProps),p.InputProps=i({},u,p.InputProps);const P=qe(p),T=Me(P),f=Fe(i({},T,{slots:a,slotProps:r}));return x.jsx(b,i({},f))});function He(n){return ce("MuiTimePickerToolbar",n)}const j=le("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),We=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly","className"],Qe=n=>{const{isLandscape:o,classes:s,isRtl:t}=n;return ue({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",o&&"hourMinuteLabelLandscape",t&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",o&&"ampmLandscape"],ampmLabel:["ampmLabel"]},He,s)},Ye=L(De,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(n,o)=>o.root})({}),Ke=L(_e,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(n,o)=>o.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Xe=L("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(n,o)=>[{[`&.${j.hourMinuteLabelLandscape}`]:o.hourMinuteLabelLandscape,[`&.${j.hourMinuteLabelReverse}`]:o.hourMinuteLabelReverse},o.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{isLandscape:!0},style:{marginTop:"auto"}}]}),Ge=L("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(n,o)=>[{[`.${j.ampmLabel}`]:o.ampmLabel},{[`&.${j.ampmLandscape}`]:o.ampmLandscape},o.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${j.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function Je(n){const o=E({props:n,name:"MuiTimePickerToolbar"}),{ampm:s,ampmInClock:t,value:a,isLandscape:r,onChange:u,view:c,onViewChange:d,views:m,disabled:b,readOnly:p,className:P}=o,T=U(o,We),f=V(),v=$(),k=Le(),h=!!(s&&!t&&m.includes("hours")),{meridiemMode:g,handleMeridiemChange:y}=we(a,s,u),M=X=>s?f.format(X,"hours12h"):f.format(X,"hours24h"),C=i({},o,{isRtl:k}),F=Qe(C),K=x.jsx(Ke,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:F.separator});return x.jsxs(Ye,i({landscapeDirection:"row",toolbarTitle:v.timePickerToolbarTitle,isLandscape:r,ownerState:C,className:me(F.root,P)},T,{children:[x.jsxs(Xe,{className:F.hourMinuteLabel,ownerState:C,children:[O(m,"hours")&&x.jsx(S,{tabIndex:-1,variant:"h3",onClick:()=>d("hours"),selected:c==="hours",value:a?M(a):"--"}),O(m,["hours","minutes"])&&K,O(m,"minutes")&&x.jsx(S,{tabIndex:-1,variant:"h3",onClick:()=>d("minutes"),selected:c==="minutes",value:a?f.format(a,"minutes"):"--"}),O(m,["minutes","seconds"])&&K,O(m,"seconds")&&x.jsx(S,{variant:"h3",onClick:()=>d("seconds"),selected:c==="seconds",value:a?f.format(a,"seconds"):"--"})]}),h&&x.jsxs(Ge,{className:F.ampmSelection,ownerState:C,children:[x.jsx(S,{disableRipple:!0,variant:"subtitle2",selected:g==="am",typographyClassName:F.ampmLabel,value:G(f,"am"),onClick:p?void 0:()=>y("am"),disabled:b}),x.jsx(S,{disableRipple:!0,variant:"subtitle2",selected:g==="pm",typographyClassName:F.ampmLabel,value:G(f,"pm"),onClick:p?void 0:()=>y("pm"),disabled:b})]})]}))}function q(n,o){var u;const s=V(),t=E({props:n,name:o}),a=t.ampm??s.is12HourCycleInCurrentLocale(),r=l.useMemo(()=>{var c;return((c=t.localeText)==null?void 0:c.toolbarTitle)==null?t.localeText:i({},t.localeText,{timePickerToolbarTitle:t.localeText.toolbarTitle})},[t.localeText]);return i({},t,{ampm:a,localeText:r},Oe({views:t.views,openTo:t.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:t.disableFuture??!1,disablePast:t.disablePast??!1,slots:i({toolbar:Je},t.slots),slotProps:i({},t.slotProps,{toolbar:i({ampm:a,ampmInClock:t.ampmInClock},(u=t.slotProps)==null?void 0:u.toolbar)})})}const z=l.forwardRef(function(o,s){var h,g,y,M;const t=$(),a=V(),r=q(o,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:u,views:c,timeSteps:d}=Ve(r),m=u?Ae:J,b=i({hours:m,minutes:m,seconds:m,meridiem:m},r.viewRenderers),p=r.ampmInClock??!0,P=u?[]:["accept"],f=((h=b.hours)==null?void 0:h.name)===J.name?c:c.filter(C=>C!=="meridiem"),v=i({},r,{ampmInClock:p,timeSteps:d,viewRenderers:b,format:te(a,r),views:u?["hours"]:f,slots:i({field:ae,openPickerIcon:Se},r.slots),slotProps:i({},r.slotProps,{field:C=>{var F;return i({},ne((F=r.slotProps)==null?void 0:F.field,C),re(r),{ref:s})},toolbar:i({hidden:!0,ampmInClock:p},(g=r.slotProps)==null?void 0:g.toolbar),actionBar:i({actions:P},(y=r.slotProps)==null?void 0:y.actionBar)})}),{renderPicker:k}=je({props:v,valueManager:_,valueType:"time",getOpenDialogAriaText:((M=v.localeText)==null?void 0:M.openTimePickerDialogue)??t.openTimePickerDialogue,validator:N});return k()});z.propTypes={ampm:e.bool,ampmInClock:e.bool,autoFocus:e.bool,className:e.string,closeOnSelect:e.bool,defaultValue:e.object,disabled:e.bool,disableFuture:e.bool,disableIgnoringDatePartForTimeValidation:e.bool,disableOpenPicker:e.bool,disablePast:e.bool,enableAccessibleFieldDOMStructure:e.any,format:e.string,formatDensity:e.oneOf(["dense","spacious"]),inputRef:se,label:e.node,localeText:e.object,maxTime:e.object,minTime:e.object,minutesStep:e.number,name:e.string,onAccept:e.func,onChange:e.func,onClose:e.func,onError:e.func,onOpen:e.func,onSelectedSectionsChange:e.func,onViewChange:e.func,open:e.bool,openTo:e.oneOf(["hours","meridiem","minutes","seconds"]),orientation:e.oneOf(["landscape","portrait"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.object,selectedSections:e.oneOfType([e.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),e.number]),shouldDisableTime:e.func,skipDisabled:e.bool,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),thresholdToRenderTimeInASingleColumn:e.number,timeSteps:e.shape({hours:e.number,minutes:e.number,seconds:e.number}),timezone:e.string,value:e.object,view:e.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:e.shape({hours:e.func,meridiem:e.func,minutes:e.func,seconds:e.func}),views:e.arrayOf(e.oneOf(["hours","minutes","seconds"]).isRequired)};function Ze({field:{onChange:n,...o},form:{isSubmitting:s,touched:t,errors:a,setFieldValue:r,setFieldError:u,setFieldTouched:c},textField:{helperText:d,onBlur:m,...b}={},disabled:p,label:P,onChange:T,onError:f,...v}){const k=D(a,o.name),h=D(t,o.name)&&!!k,g=()=>{c(o.name,!0,!0)};return{disabled:p??s,onChange:T??(M=>{c(o.name,!0,!1),r(o.name,M,!0)}),onError:f??A(k,o.name,u),slotProps:{textField:{error:h,helperText:h?k:d,label:P,onBlur:m??g,...b}},...o,...v}}function H(n){return l.createElement(z,{...Ze(n)})}H.displayName="FormikMUIDesktopTimePicker";H.__docgenInfo={description:"",methods:[],displayName:"FormikMUIDesktopTimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const W=l.forwardRef(function(o,s){var b,p;const t=$(),a=V(),r=q(o,"MuiMobileTimePicker"),u=i({hours:w,minutes:w,seconds:w},r.viewRenderers),c=r.ampmInClock??!1,d=i({},r,{ampmInClock:c,viewRenderers:u,format:te(a,r),slots:i({field:ae},r.slots),slotProps:i({},r.slotProps,{field:P=>{var T;return i({},ne((T=r.slotProps)==null?void 0:T.field,P),re(r),{ref:s})},toolbar:i({hidden:!1,ampmInClock:c},(b=r.slotProps)==null?void 0:b.toolbar)})}),{renderPicker:m}=Ie({props:d,valueManager:_,valueType:"time",getOpenDialogAriaText:((p=d.localeText)==null?void 0:p.openTimePickerDialogue)??t.openTimePickerDialogue,validator:N});return m()});W.propTypes={ampm:e.bool,ampmInClock:e.bool,autoFocus:e.bool,className:e.string,closeOnSelect:e.bool,defaultValue:e.object,disabled:e.bool,disableFuture:e.bool,disableIgnoringDatePartForTimeValidation:e.bool,disableOpenPicker:e.bool,disablePast:e.bool,enableAccessibleFieldDOMStructure:e.any,format:e.string,formatDensity:e.oneOf(["dense","spacious"]),inputRef:se,label:e.node,localeText:e.object,maxTime:e.object,minTime:e.object,minutesStep:e.number,name:e.string,onAccept:e.func,onChange:e.func,onClose:e.func,onError:e.func,onOpen:e.func,onSelectedSectionsChange:e.func,onViewChange:e.func,open:e.bool,openTo:e.oneOf(["hours","minutes","seconds"]),orientation:e.oneOf(["landscape","portrait"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.object,selectedSections:e.oneOfType([e.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),e.number]),shouldDisableTime:e.func,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),timezone:e.string,value:e.object,view:e.oneOf(["hours","minutes","seconds"]),viewRenderers:e.shape({hours:e.func,minutes:e.func,seconds:e.func}),views:e.arrayOf(e.oneOf(["hours","minutes","seconds"]).isRequired)};function eo({field:{onChange:n,...o},form:{isSubmitting:s,touched:t,errors:a,setFieldValue:r,setFieldError:u,setFieldTouched:c},textField:{helperText:d,onBlur:m,...b}={},disabled:p,label:P,onChange:T,onError:f,...v}){const k=D(a,o.name),h=D(t,o.name)&&!!k,g=()=>{c(o.name,!0,!0)};return{disabled:p??s,onChange:T??(M=>{c(o.name,!0,!1),r(o.name,M,!0)}),onError:f??A(k,o.name,u),slotProps:{textField:{error:h,helperText:h?k:d,label:P,onBlur:m??g,...b}},...o,...v}}function Q(n){return l.createElement(W,{...eo(n)})}Q.displayName="FormikMUIMobileTimePicker";Q.__docgenInfo={description:"",methods:[],displayName:"FormikMUIMobileTimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const ie=l.forwardRef(function(o,s){var m;const t=q(o,"MuiStaticTimePicker"),a=t.displayStaticWrapperAs??"mobile",r=t.ampmInClock??a==="desktop",u=i({hours:w,minutes:w,seconds:w},t.viewRenderers),c=i({},t,{viewRenderers:u,displayStaticWrapperAs:a,ampmInClock:r,slotProps:i({},t.slotProps,{toolbar:i({hidden:a==="desktop",ampmInClock:r},(m=t.slotProps)==null?void 0:m.toolbar)})}),{renderPicker:d}=Ue({props:c,valueManager:_,valueType:"time",validator:N,ref:s});return d()});ie.propTypes={ampm:e.bool,ampmInClock:e.bool,autoFocus:e.bool,className:e.string,defaultValue:e.object,disabled:e.bool,disableFuture:e.bool,disableIgnoringDatePartForTimeValidation:e.bool,disablePast:e.bool,displayStaticWrapperAs:e.oneOf(["desktop","mobile"]),localeText:e.object,maxTime:e.object,minTime:e.object,minutesStep:e.number,onAccept:e.func,onChange:e.func,onClose:e.func,onError:e.func,onViewChange:e.func,openTo:e.oneOf(["hours","minutes","seconds"]),orientation:e.oneOf(["landscape","portrait"]),readOnly:e.bool,reduceAnimations:e.bool,referenceDate:e.object,shouldDisableTime:e.func,slotProps:e.object,slots:e.object,sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object]),timezone:e.string,value:e.object,view:e.oneOf(["hours","minutes","seconds"]),viewRenderers:e.shape({hours:e.func,minutes:e.func,seconds:e.func}),views:e.arrayOf(e.oneOf(["hours","minutes","seconds"]).isRequired)};function oo({field:{onChange:n,...o},form:{isSubmitting:s,errors:t,setFieldValue:a,setFieldError:r,setFieldTouched:u},disabled:c,onChange:d,onError:m,...b}){const p=D(t,o.name);return{disabled:c??s,onChange:d??(T=>{u(o.name,!0,!1),a(o.name,T,!0)}),onError:m??A(p,o.name,r),...o,...b}}function Y(n){return l.createElement(ie,{...oo(n)})}Y.displayName="FormikMUIStaticTimePicker";Y.__docgenInfo={description:"",methods:[],displayName:"FormikMUIStaticTimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const to=["desktopModeMediaQuery"],ro=l.forwardRef(function(o,s){const t=E({props:o,name:"MuiTimePicker"}),{desktopModeMediaQuery:a=Ee}=t,r=U(t,to);return Re(a,{defaultMatches:!0})?x.jsx(z,i({ref:s},r)):x.jsx(W,i({ref:s},r))});function so({field:{onChange:n,onBlur:o,...s},form:{isSubmitting:t,touched:a,errors:r,setFieldValue:u,setFieldError:c,setFieldTouched:d},textField:{helperText:m,onBlur:b,...p}={},disabled:P,label:T,onChange:f,onError:v,...k}){const h=D(r,s.name),g=D(a,s.name)&&!!h,y=()=>{d(s.name,!0,!0)};return{disabled:P??t,onChange:f??(C=>{d(s.name,!0,!1),u(s.name,C,!0)}),onError:v??A(h,s.name,c),slotProps:{textField:{error:g,helperText:g?h:m,label:T,onBlur:b??y,...p}},...s,...k}}function B(n){return l.createElement(ro,{...so(n)})}B.displayName="FormikMUITimePicker";B.__docgenInfo={description:"",methods:[],displayName:"FormikMUITimePicker",props:{textField:{required:!1,tsType:{name:"TextFieldProps"},description:""}},composes:["FieldProps","Omit"]};const no=he().shape({time:ke().required()}),_o={title:"X-Mui/TimePicker",component:B,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},ao=()=>l.createElement(pe,null,l.createElement(de,{initialValues:{time:new Date},validationSchema:no,onSubmit:(n,{setSubmitting:o})=>{setTimeout(()=>{o(!1),be("submit")(n)},2e3)}},({submitForm:n,isSubmitting:o,values:s})=>l.createElement(fe,null,l.createElement(I,{component:B,label:"Time",name:"time",textField:{helperText:"Helper text"}}),l.createElement("br",null),l.createElement("br",null),l.createElement(I,{component:H,label:"Desktop time picker",name:"desktopTime",mask:"__:__ _M"}),l.createElement("br",null),l.createElement("br",null),l.createElement(I,{component:Q,label:"Mobile time picker",name:"mobileTime"}),l.createElement("br",null),l.createElement("br",null),l.createElement(I,{component:Y,label:"Static time picker",name:"staticTime"}),o&&l.createElement($e,null),l.createElement("br",null),l.createElement(Te,{variant:"contained",color:"primary",disabled:o,onClick:n},"Submit"),l.createElement("br",null),l.createElement(Pe,{values:s})))),R={render:ao};var Z,ee,oe;R.parameters={...R.parameters,docs:{...(Z=R.parameters)==null?void 0:Z.docs,source:{originalSource:`{ + render: Template +}`,...(oe=(ee=R.parameters)==null?void 0:ee.docs)==null?void 0:oe.source}}};const Vo=["Default"];export{R as Default,Vo as __namedExportsOrder,_o as default}; diff --git a/storybook/assets/ToggleButtonGroup.stories-BA-kIiic.js b/storybook/assets/ToggleButtonGroup.stories-BA-kIiic.js new file mode 100644 index 0000000..aafb768 --- /dev/null +++ b/storybook/assets/ToggleButtonGroup.stories-BA-kIiic.js @@ -0,0 +1,3 @@ +import{a1 as ce,t as R,V as pe,D as ge,U as me,E as fe,a2 as ve,a3 as G,a4 as N,p as re,o as ae,s as le,A as be,_ as A,a5 as he,u as ne,j as k,c as se,q as ie,W as Be,F as $e,h as Ce,k as xe,T as X,z as V,l as Y,B as ye,m as _e}from"./Wrapper-DXvvO_B0.js";import{r as o,b as Re}from"./index-CTjT7uj6.js";import{c as Te}from"./createSvgIcon-DLhoJ5Fi.js";import{d as ze,a as Ee,o as Me}from"./ownerWindow-DIR61fab.js";import{c as je,u as Fe}from"./useId-BjRAp5Eo.js";import{i as Oe}from"./isMuiElement-BqzHBgRb.js";import{u as ke}from"./useControlled-5JjQu8rW.js";import{_ as b}from"./isNativeReflectConstruct-CJAgTEKr.js";import{a as F}from"./colorManipulator-BcfljvUw.js";import"./v4-CQkTLCs1.js";function Ge(e,t){return()=>null}function Ne(e,t){return()=>null}function Pe(e,t,r,l,i){return null}function We(e){return o.Children.toArray(e).filter(t=>o.isValidElement(t))}const Ie={configure:e=>{ce.configure(e)}},He=Object.freeze(Object.defineProperty({__proto__:null,capitalize:R,createChainedFunction:je,createSvgIcon:Te,debounce:ze,deprecatedPropType:Ge,isMuiElement:Oe,ownerDocument:Ee,ownerWindow:Me,requirePropFactory:Ne,setRef:pe,unstable_ClassNameGenerator:Ie,unstable_useEnhancedEffect:ge,unstable_useId:Fe,unsupportedProp:Pe,useControlled:ke,useEventCallback:me,useForkRef:fe,useIsFocusVisible:ve},Symbol.toStringTag,{value:"Module"}));var J={},L={};const Ve=Re(He);var Z;function P(){return Z||(Z=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ve}(L)),L}var Le=N;Object.defineProperty(J,"__esModule",{value:!0});var q=J.default=void 0,Ae=Le(P()),qe=G();q=J.default=(0,Ae.default)((0,qe.jsx)("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter");var w={},De=N;Object.defineProperty(w,"__esModule",{value:!0});var D=w.default=void 0,Se=De(P()),Ue=G();D=w.default=(0,Se.default)((0,Ue.jsx)("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify");var K={},Je=N;Object.defineProperty(K,"__esModule",{value:!0});var S=K.default=void 0,we=Je(P()),Ke=G();S=K.default=(0,we.default)((0,Ke.jsx)("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft");var Q={},Qe=N;Object.defineProperty(Q,"__esModule",{value:!0});var U=Q.default=void 0,Xe=Qe(P()),Ye=G();U=Q.default=(0,Xe.default)((0,Ye.jsx)("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight");function Ze(e){return ae("MuiToggleButton",e)}const x=re("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ue=o.createContext({}),de=o.createContext(void 0);function et(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const tt=["value"],ot=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],rt=e=>{const{classes:t,fullWidth:r,selected:l,disabled:i,size:u,color:m}=e,c={root:["root",l&&"selected",i&&"disabled",r&&"fullWidth",`size${R(u)}`,m]};return ie(c,Ze,t)},at=le(be,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${R(r.size)}`]]}})(({theme:e,ownerState:t})=>{let r=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,l;return e.vars&&(r=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,l=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),b({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:F(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${l} / ${e.vars.palette.action.selectedOpacity})`:F(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${l} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:F(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${l} / ${e.vars.palette.action.selectedOpacity})`:F(r,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),v=o.forwardRef(function(t,r){const l=o.useContext(ue),{value:i}=l,u=A(l,tt),m=o.useContext(de),c=he(b({},u,{selected:et(t.value,i)}),t),h=ne({props:c,name:"MuiToggleButton"}),{children:B,className:f,color:W="standard",disabled:$=!1,disableFocusRipple:n=!1,fullWidth:I=!1,onChange:C,onClick:p,selected:T,size:z="medium",value:y}=h,E=A(h,ot),M=b({},h,{color:W,disabled:$,disableFocusRipple:n,fullWidth:I,size:z}),H=rt(M),d=g=>{p&&(p(g,y),g.defaultPrevented)||C&&C(g,y)},s=m||"";return k.jsx(at,b({className:se(u.className,H.root,f,s),disabled:$,focusRipple:!n,ref:r,onClick:d,onChange:C,value:y,ownerState:M,"aria-pressed":T},E,{children:B}))});function lt(e){return ae("MuiToggleButtonGroup",e)}const a=re("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),nt=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],st=e=>{const{classes:t,orientation:r,fullWidth:l,disabled:i}=e,u={root:["root",r==="vertical"&&"vertical",l&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return ie(u,lt,t)},it=le("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${a.grouped}`]:t.grouped},{[`& .${a.grouped}`]:t[`grouped${R(r.orientation)}`]},{[`& .${a.firstButton}`]:t.firstButton},{[`& .${a.lastButton}`]:t.lastButton},{[`& .${a.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>b({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${a.grouped}`]:b({},e.orientation==="horizontal"?{[`&.${a.selected} + .${a.grouped}.${a.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${a.selected} + .${a.grouped}.${a.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${a.firstButton},& .${a.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${a.lastButton},& .${a.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${a.firstButton},& .${a.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${a.lastButton},& .${a.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${a.lastButton}.${x.disabled},& .${a.middleButton}.${x.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${a.lastButton}.${x.disabled},& .${a.middleButton}.${x.disabled}`]:{borderTop:"1px solid transparent"}})),ut=o.forwardRef(function(t,r){const l=ne({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:u,color:m="standard",disabled:c=!1,exclusive:h=!1,fullWidth:B=!1,onChange:f,orientation:W="horizontal",size:$="medium",value:n}=l,I=A(l,nt),C=b({},l,{disabled:c,fullWidth:B,orientation:W,size:$}),p=st(C),T=o.useCallback((d,s)=>{if(!f)return;const g=n&&n.indexOf(s);let j;n&&g>=0?(j=n.slice(),j.splice(g,1)):j=n?n.concat(s):[s],f(d,j)},[f,n]),z=o.useCallback((d,s)=>{f&&f(d,n===s?null:s)},[f,n]),y=o.useMemo(()=>({className:p.grouped,onChange:h?z:T,value:n,size:$,fullWidth:B,color:m,disabled:c}),[p.grouped,h,z,T,n,$,B,m,c]),E=We(i),M=E.length,H=d=>{const s=d===0,g=d===M-1;return s&&g?"":s?p.firstButton:g?p.lastButton:p.middleButton};return k.jsx(it,b({role:"group",className:se(p.root,u),ref:r,ownerState:C},I,{children:k.jsx(ue.Provider,{value:y,children:E.map((d,s)=>k.jsx(de.Provider,{value:H(s),children:d},s))})}))});function dt({field:{onChange:e,onBlur:t,...r},type:l,onChange:i,onBlur:u,form:m,...c}){return{onBlur:u??function(){t(r.name)},onChange:i??function(h,B){m.setFieldValue(r.name,B)},...r,...c}}function _(e){return o.createElement(ut,{...dt(e)})}_.displayName="FormikMaterialUIToggleButtonGroup";_.__docgenInfo={description:"",methods:[],displayName:"FormikMaterialUIToggleButtonGroup",props:{type:{required:!1,tsType:{name:"string"},description:""}},composes:["FieldProps","Omit"]};const xt={title:"Core/ToggleButtonGroup",component:_,parameters:{layout:"fullscreen"},argTypes:{onSubmit:{action:"submit"}}},ct=()=>o.createElement(Be,null,o.createElement($e,{initialValues:{multiple:[],exclusive:""},onSubmit:(e,{setSubmitting:t})=>{setTimeout(()=>{t(!1),Ce("submit")(e)},2e3)}},({submitForm:e,values:t})=>o.createElement(xe,null,o.createElement(X,null,"Multiple"),o.createElement(V,{margin:1},o.createElement(Y,{component:_,name:"multiple",type:"checkbox"},o.createElement(v,{value:"left","aria-label":"left aligned"},o.createElement(S,null)),o.createElement(v,{value:"center","aria-label":"centered"},o.createElement(q,null)),o.createElement(v,{value:"right","aria-label":"right aligned"},o.createElement(U,null)),o.createElement(v,{value:"justify","aria-label":"justified",disabled:!0},o.createElement(D,null)))),o.createElement(X,null,"Exclusive"),o.createElement(V,{margin:1},o.createElement(Y,{component:_,name:"exclusive",exclusive:!0,type:"checkbox"},o.createElement(v,{value:"left","aria-label":"left aligned"},o.createElement(S,null)),o.createElement(v,{value:"center","aria-label":"centered"},o.createElement(q,null)),o.createElement(v,{value:"right","aria-label":"right aligned"},o.createElement(U,null)),o.createElement(v,{value:"justify","aria-label":"justified",disabled:!0},o.createElement(D,null)))),o.createElement(V,{margin:1},o.createElement(ye,{variant:"contained",color:"primary",onClick:e},"Submit")),o.createElement(_e,{values:t})))),O={render:ct};var ee,te,oe;O.parameters={...O.parameters,docs:{...(ee=O.parameters)==null?void 0:ee.docs,source:{originalSource:`{ + render: Template +}`,...(oe=(te=O.parameters)==null?void 0:te.docs)==null?void 0:oe.source}}};const yt=["Default"];export{O as Default,yt as __namedExportsOrder,xt as default}; diff --git a/storybook/assets/Wrapper-DXvvO_B0.js b/storybook/assets/Wrapper-DXvvO_B0.js new file mode 100644 index 0000000..b4b3401 --- /dev/null +++ b/storybook/assets/Wrapper-DXvvO_B0.js @@ -0,0 +1,99 @@ +import{_ as D,a as lu,e as O,c as fu,b as du,d as Xa}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as g,a as Qa,b as ft,R as Ze,g as yi}from"./index-CTjT7uj6.js";import{v as pu}from"./v4-CQkTLCs1.js";function lr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r0?Te(qt,--De):0,Yt--,ye===10&&(Yt=1,Kr--),ye}function je(){return ye=De2||dr(ye)>3?"":" "}function ku(e,t){for(;--t&&je()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return wr(e,Fr()+(t<6&&et()==32&&je()==32))}function Zn(e){for(;je();)switch(ye){case e:return De;case 34:case 39:e!==34&&e!==39&&Zn(ye);break;case 40:e===41&&Zn(e);break;case 92:je();break}return De}function Du(e,t){for(;je()&&e+ye!==57;)if(e+ye===84&&et()===47)break;return"/*"+wr(t,De-1)+"*"+Gr(e===47?e:je())}function Au(e){for(;!dr(et());)je();return wr(e,De)}function Ru(e){return _i(Nr("",null,null,null,[""],e=Oi(e),0,[0],e))}function Nr(e,t,r,n,a,o,i,s,u){for(var c=0,f=0,d=i,l=0,h=0,v=0,m=1,w=1,y=1,S=0,R="",k=a,$=o,T=n,b=R;w;)switch(v=S,S=je()){case 40:if(v!=108&&Te(b,d-1)==58){Jn(b+=q(Lr(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=Lr(S);break;case 9:case 10:case 13:case 32:b+=$u(v);break;case 92:b+=ku(Fr()-1,7);continue;case 47:switch(et()){case 42:case 47:kr(Iu(Du(je(),Fr()),t,r),u);break;default:b+="/"}break;case 123*m:s[c++]=Ke(b)*y;case 125*m:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+f:y==-1&&(b=q(b,/\f/g,"")),h>0&&Ke(b)-d&&kr(h>32?Za(b+";",n,r,d-1):Za(q(b," ","")+";",n,r,d-2),u);break;case 59:b+=";";default:if(kr(T=Ja(b,t,r,c,f,a,s,R,k=[],$=[],d),o),S===123)if(f===0)Nr(b,t,T,T,k,o,d,s,$);else switch(l===99&&Te(b,3)===110?100:l){case 100:case 108:case 109:case 115:Nr(e,T,T,n&&kr(Ja(e,T,T,0,0,a,s,R,a,k=[],d),$),a,$,d,s,n?k:$);break;default:Nr(b,T,T,T,[""],$,0,s,$)}}c=f=h=0,m=y=1,R=b="",d=i;break;case 58:d=1+Ke(b),h=v;default:if(m<1){if(S==123)--m;else if(S==125&&m++==0&&Mu()==125)continue}switch(b+=Gr(S),S*m){case 38:y=f>0?1:(b+="\f",-1);break;case 44:s[c++]=(Ke(b)-1)*y,y=1;break;case 64:et()===45&&(b+=Lr(je())),l=et(),f=d=Ke(R=b+=Au(Fr())),S++;break;case 45:v===45&&Ke(b)==2&&(m=0)}}return o}function Ja(e,t,r,n,a,o,i,s,u,c,f){for(var d=a-1,l=a===0?o:[""],h=ga(l),v=0,m=0,w=0;v0?l[y]+" "+S:q(S,/&\f/g,l[y])))&&(u[w++]=R);return Xr(e,t,r,a===0?ma:s,u,c,f)}function Iu(e,t,r){return Xr(e,t,r,wi,Gr(Pu()),fr(e,2,-2),0)}function Za(e,t,r,n){return Xr(e,t,r,va,fr(e,0,n),fr(e,n+1,-1),n)}function Wt(e,t){for(var r="",n=ga(e),a=0;a6)switch(Te(e,t+1)){case 109:if(Te(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+Br+(Te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jn(e,"stretch")?Ei(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Te(e,t+1)!==115)break;case 6444:switch(Te(e,Ke(e)-3-(~Jn(e,"!important")&&10))){case 107:return q(e,":",":"+z)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Te(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Ce+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return z+e+Ce+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+Ce+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+Ce+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+Ce+e+e}return e}var Hu=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case va:t.return=Ei(t.value,t.length);break;case Ti:return Wt([tr(t,{value:q(t.value,"@","@"+z)})],a);case ma:if(t.length)return Su(t.props,function(o){switch(Eu(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wt([tr(t,{props:[q(o,/:(read-\w+)/,":"+Br+"$1")]})],a);case"::placeholder":return Wt([tr(t,{props:[q(o,/:(plac\w+)/,":"+z+"input-$1")]}),tr(t,{props:[q(o,/:(plac\w+)/,":"+Br+"$1")]}),tr(t,{props:[q(o,/:(plac\w+)/,Ce+"input-$1")]})],a)}return""})}},zu=[Hu],Si=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var w=m.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var a=t.stylisPlugins||zu,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var w=m.getAttribute("data-emotion").split(" "),y=1;y=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var nc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ac=!1,oc=/[A-Z]|^ms/g,ic=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ri=function(t){return t.charCodeAt(1)===45},to=function(t){return t!=null&&typeof t!="boolean"},Nn=bi(function(e){return Ri(e)?e:e.replace(oc,"-$&").toLowerCase()}),ro=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ic,function(n,a,o){return Xe={name:a,styles:o,next:Xe},a})}return nc[t]!==1&&!Ri(t)&&typeof r=="number"&&r!==0?r+"px":r},sc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Xe={name:a.name,styles:a.styles,next:Xe},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Xe={name:i.name,styles:i.styles,next:Xe},i=i.next;var s=o.styles+";";return s}return uc(e,t,r)}case"function":{if(e!==void 0){var u=Xe,c=r(e);return Xe=u,pr(e,t,c)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function uc(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a96?pc:hc},so=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},mc=!1,vc=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Di(r,n,a),lc(function(){return Ai(r,n,a)}),null},gc=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=so(t,r,n),u=s||io(a),c=!u("as");return function(){var f=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{d.push(f[0][0]);for(var l=f.length,h=1;ht(xc(a)?r:a):t;return _e.jsx(dc,{styles:n})}function Ui(e,t){return ea(e,t)}const Oc=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_c=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Cc,StyledEngineProvider:Tc,ThemeContext:un,css:Ni,default:Ui,internal_processStyles:Oc,keyframes:cn},Symbol.toStringTag,{value:"Module"}));function Me(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function ct(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Wi(e){if(!ct(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Wi(e[r])}),t}function ze(e,t,r={clone:!0}){const n=r.clone?D({},e):e;return ct(e)&&ct(t)&&Object.keys(t).forEach(a=>{ct(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&ct(e[a])?n[a]=ze(e[a],t[a],r):r.clone?n[a]=ct(t[a])?Wi(t[a]):t[a]:n[a]=t[a]}),n}const Ec=Object.freeze(Object.defineProperty({__proto__:null,default:ze,isPlainObject:ct},Symbol.toStringTag,{value:"Module"})),Sc=["values","unit","step"],Pc=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>D({},r,{[n.key]:n.val}),{})};function Bi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Me(e,Sc),o=Pc(t),i=Object.keys(o);function s(l){return`@media (min-width:${typeof t[l]=="number"?t[l]:l}${r})`}function u(l){return`@media (max-width:${(typeof t[l]=="number"?t[l]:l)-n/100}${r})`}function c(l,h){const v=i.indexOf(h);return`@media (min-width:${typeof t[l]=="number"?t[l]:l}${r}) and (max-width:${(v!==-1&&typeof t[i[v]]=="number"?t[i[v]]:h)-n/100}${r})`}function f(l){return i.indexOf(l)+1`@media (min-width:${xa[e]}px)`};function ot(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||lo;return t.reduce((i,s,u)=>(i[o.up(o.keys[u])]=r(t[u]),i),{})}if(typeof t=="object"){const o=n.breakpoints||lo;return Object.keys(t).reduce((i,s)=>{if(Object.keys(o.values||xa).indexOf(s)!==-1){const u=o.up(s);i[u]=r(t[s],s)}else{const u=s;i[u]=t[u]}return i},{})}return r(t)}function Yi(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function Hi(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function mb(e,...t){const r=Yi(e),n=[r,...t].reduce((a,o)=>ze(a,o),{});return Hi(Object.keys(r),n)}function $c(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o{e[a]!=null&&(r[a]=!0)}),r}function vb({values:e,breakpoints:t,base:r}){const n=r||$c(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,s,u)=>(Array.isArray(e)?(i[s]=e[u]!=null?e[u]:e[o],o=u):typeof e=="object"?(i[s]=e[s]!=null?e[s]:e[o],o=s):i[s]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const kc=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function ln(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function Yr(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=ln(e,r)||n,t&&(a=t(a,n,e)),a}function me(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const s=i[t],u=i.theme,c=ln(u,n)||{};return ot(i,s,d=>{let l=Yr(c,a,d);return d===l&&typeof d=="string"&&(l=Yr(c,a,`${t}${d==="default"?"":Oe(d)}`,d)),r===!1?l:{[r]:l}})};return o.propTypes={},o.filterProps=[t],o}function Dc(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Ac={m:"margin",p:"padding"},Rc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ic=Dc(e=>{if(e.length>2)if(fo[e])e=fo[e];else return[e];const[t,r]=e.split(""),n=Ac[t],a=Rc[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Ca=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ca,...Oa];function Tr(e,t,r,n){var a;const o=(a=ln(e,t,!1))!=null?a:r;return typeof o=="number"?i=>typeof i=="string"?i:o*i:Array.isArray(o)?i=>typeof i=="string"?i:o[i]:typeof o=="function"?o:()=>{}}function zi(e){return Tr(e,"spacing",8)}function xr(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function jc(e,t){return r=>e.reduce((n,a)=>(n[a]=xr(t,r),n),{})}function Fc(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=Ic(r),o=jc(a,n),i=e[r];return ot(e,i,o)}function qi(e,t){const r=zi(e.theme);return Object.keys(e).map(n=>Fc(e,t,n,r)).reduce(sr,{})}function le(e){return qi(e,Ca)}le.propTypes={};le.filterProps=Ca;function fe(e){return qi(e,Oa)}fe.propTypes={};fe.filterProps=Oa;function Lc(e=8){if(e.mui)return e;const t=zi({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function fn(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?sr(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function We(e){return typeof e!="number"?e:`${e}px solid`}function Ye(e,t){return me({prop:e,themeKey:"borders",transform:t})}const Nc=Ye("border",We),Uc=Ye("borderTop",We),Wc=Ye("borderRight",We),Bc=Ye("borderBottom",We),Yc=Ye("borderLeft",We),Hc=Ye("borderColor"),zc=Ye("borderTopColor"),qc=Ye("borderRightColor"),Vc=Ye("borderBottomColor"),Gc=Ye("borderLeftColor"),Kc=Ye("outline",We),Xc=Ye("outlineColor"),dn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tr(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:xr(t,n)});return ot(e,e.borderRadius,r)}return null};dn.propTypes={};dn.filterProps=["borderRadius"];fn(Nc,Uc,Wc,Bc,Yc,Hc,zc,qc,Vc,Gc,dn,Kc,Xc);const pn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tr(e.theme,"spacing",8),r=n=>({gap:xr(t,n)});return ot(e,e.gap,r)}return null};pn.propTypes={};pn.filterProps=["gap"];const hn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tr(e.theme,"spacing",8),r=n=>({columnGap:xr(t,n)});return ot(e,e.columnGap,r)}return null};hn.propTypes={};hn.filterProps=["columnGap"];const mn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tr(e.theme,"spacing",8),r=n=>({rowGap:xr(t,n)});return ot(e,e.rowGap,r)}return null};mn.propTypes={};mn.filterProps=["rowGap"];const Qc=me({prop:"gridColumn"}),Jc=me({prop:"gridRow"}),Zc=me({prop:"gridAutoFlow"}),el=me({prop:"gridAutoColumns"}),tl=me({prop:"gridAutoRows"}),rl=me({prop:"gridTemplateColumns"}),nl=me({prop:"gridTemplateRows"}),al=me({prop:"gridTemplateAreas"}),ol=me({prop:"gridArea"});fn(pn,hn,mn,Qc,Jc,Zc,el,tl,rl,nl,al,ol);function Bt(e,t){return t==="grey"?t:e}const il=me({prop:"color",themeKey:"palette",transform:Bt}),sl=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bt}),ul=me({prop:"backgroundColor",themeKey:"palette",transform:Bt});fn(il,sl,ul);function Ie(e){return e<=1&&e!==0?`${e*100}%`:e}const cl=me({prop:"width",transform:Ie}),_a=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||xa[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ie(r)}};return ot(e,e.maxWidth,t)}return null};_a.filterProps=["maxWidth"];const ll=me({prop:"minWidth",transform:Ie}),fl=me({prop:"height",transform:Ie}),dl=me({prop:"maxHeight",transform:Ie}),pl=me({prop:"minHeight",transform:Ie});me({prop:"size",cssProperty:"width",transform:Ie});me({prop:"size",cssProperty:"height",transform:Ie});const hl=me({prop:"boxSizing"});fn(cl,_a,ll,fl,dl,pl,hl);const Cr={border:{themeKey:"borders",transform:We},borderTop:{themeKey:"borders",transform:We},borderRight:{themeKey:"borders",transform:We},borderBottom:{themeKey:"borders",transform:We},borderLeft:{themeKey:"borders",transform:We},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:We},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dn},color:{themeKey:"palette",transform:Bt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bt},backgroundColor:{themeKey:"palette",transform:Bt},p:{style:fe},pt:{style:fe},pr:{style:fe},pb:{style:fe},pl:{style:fe},px:{style:fe},py:{style:fe},padding:{style:fe},paddingTop:{style:fe},paddingRight:{style:fe},paddingBottom:{style:fe},paddingLeft:{style:fe},paddingX:{style:fe},paddingY:{style:fe},paddingInline:{style:fe},paddingInlineStart:{style:fe},paddingInlineEnd:{style:fe},paddingBlock:{style:fe},paddingBlockStart:{style:fe},paddingBlockEnd:{style:fe},m:{style:le},mt:{style:le},mr:{style:le},mb:{style:le},ml:{style:le},mx:{style:le},my:{style:le},margin:{style:le},marginTop:{style:le},marginRight:{style:le},marginBottom:{style:le},marginLeft:{style:le},marginX:{style:le},marginY:{style:le},marginInline:{style:le},marginInlineStart:{style:le},marginInlineEnd:{style:le},marginBlock:{style:le},marginBlockStart:{style:le},marginBlockEnd:{style:le},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:pn},rowGap:{style:mn},columnGap:{style:hn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ie},maxWidth:{style:_a},minWidth:{transform:Ie},height:{transform:Ie},maxHeight:{transform:Ie},minHeight:{transform:Ie},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ml(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function vl(e,t){return typeof e=="function"?e(t):e}function Vi(){function e(r,n,a,o){const i={[r]:n,theme:a},s=o[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:f,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const l=ln(a,c)||{};return d?d(i):ot(i,n,v=>{let m=Yr(l,f,v);return v===m&&typeof v=="string"&&(m=Yr(l,f,`${r}${v==="default"?"":Oe(v)}`,v)),u===!1?m:{[u]:m}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const i=(n=o.unstable_sxConfig)!=null?n:Cr;function s(u){let c=u;if(typeof u=="function")c=u(o);else if(typeof u!="object")return u;if(!c)return null;const f=Yi(o.breakpoints),d=Object.keys(f);let l=f;return Object.keys(c).forEach(h=>{const v=vl(c[h],o);if(v!=null)if(typeof v=="object")if(i[h])l=sr(l,e(h,v,o,i));else{const m=ot({theme:o},v,w=>({[h]:w}));ml(m,v)?l[h]=t({sx:v,theme:o}):l=sr(l,m)}else l=sr(l,e(h,v,o,i))}),Hi(d,l)}return Array.isArray(a)?a.map(s):s(a)}return t}const Or=Vi();Or.filterProps=["sx"];function Gi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const gl=["breakpoints","palette","spacing","shape"];function Ea(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,i=Me(e,gl),s=Bi(r),u=Lc(a);let c=ze({breakpoints:s,direction:"ltr",components:{},palette:D({mode:"light"},n),spacing:u,shape:D({},Mc,o)},i);return c.applyStyles=Gi,c=t.reduce((f,d)=>ze(f,d),c),c.unstable_sxConfig=D({},Cr,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(d){return Or({sx:d,theme:this})},c}const yl=Object.freeze(Object.defineProperty({__proto__:null,default:Ea,private_createBreakpoints:Bi,unstable_applyStyles:Gi},Symbol.toStringTag,{value:"Module"}));function bl(e){return Object.keys(e).length===0}function wl(e=null){const t=g.useContext(un);return!t||bl(t)?e:t}const Tl=Ea();function Ki(e=Tl){return wl(e)}const xl=["sx"],Cl=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Cr;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Sa(e){const{sx:t}=e,r=Me(e,xl),{systemProps:n,otherProps:a}=Cl(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const s=t(...i);return ct(s)?D({},n,s):n}:o=D({},n,t),D({},a,{sx:o})}const Ol=Object.freeze(Object.defineProperty({__proto__:null,default:Or,extendSxProp:Sa,unstable_createStyleFunctionSx:Vi,unstable_defaultSxConfig:Cr},Symbol.toStringTag,{value:"Module"})),po=e=>e,_l=()=>{let e=po;return{configure(t){e=t},generate(t){return e(t)},reset(){e=po}}},Xi=_l();function Qi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(Or);return g.forwardRef(function(u,c){const f=Ki(r),d=Sa(u),{className:l,component:h="div"}=d,v=Me(d,El);return _e.jsx(o,D({as:h,ref:c,className:Pe(l,a?a(n):n),theme:t&&f[t]||f},v))})}const Pl={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _r(e,t,r="Mui"){const n=Pl[t];return n?`${r}-${n}`:`${Xi.generate(e)}-${t}`}function Vt(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=_r(e,a,r)}),n}var Ji={exports:{}},J={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Pa=Symbol.for("react.element"),Ma=Symbol.for("react.portal"),vn=Symbol.for("react.fragment"),gn=Symbol.for("react.strict_mode"),yn=Symbol.for("react.profiler"),bn=Symbol.for("react.provider"),wn=Symbol.for("react.context"),Ml=Symbol.for("react.server_context"),Tn=Symbol.for("react.forward_ref"),xn=Symbol.for("react.suspense"),Cn=Symbol.for("react.suspense_list"),On=Symbol.for("react.memo"),_n=Symbol.for("react.lazy"),$l=Symbol.for("react.offscreen"),Zi;Zi=Symbol.for("react.module.reference");function He(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pa:switch(e=e.type,e){case vn:case yn:case gn:case xn:case Cn:return e;default:switch(e=e&&e.$$typeof,e){case Ml:case wn:case Tn:case _n:case On:case bn:return e;default:return t}}case Ma:return t}}}J.ContextConsumer=wn;J.ContextProvider=bn;J.Element=Pa;J.ForwardRef=Tn;J.Fragment=vn;J.Lazy=_n;J.Memo=On;J.Portal=Ma;J.Profiler=yn;J.StrictMode=gn;J.Suspense=xn;J.SuspenseList=Cn;J.isAsyncMode=function(){return!1};J.isConcurrentMode=function(){return!1};J.isContextConsumer=function(e){return He(e)===wn};J.isContextProvider=function(e){return He(e)===bn};J.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pa};J.isForwardRef=function(e){return He(e)===Tn};J.isFragment=function(e){return He(e)===vn};J.isLazy=function(e){return He(e)===_n};J.isMemo=function(e){return He(e)===On};J.isPortal=function(e){return He(e)===Ma};J.isProfiler=function(e){return He(e)===yn};J.isStrictMode=function(e){return He(e)===gn};J.isSuspense=function(e){return He(e)===xn};J.isSuspenseList=function(e){return He(e)===Cn};J.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vn||e===yn||e===gn||e===xn||e===Cn||e===$l||typeof e=="object"&&e!==null&&(e.$$typeof===_n||e.$$typeof===On||e.$$typeof===bn||e.$$typeof===wn||e.$$typeof===Tn||e.$$typeof===Zi||e.getModuleId!==void 0)};J.typeOf=He;Ji.exports=J;var ho=Ji.exports;const kl=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function es(e){const t=`${e}`.match(kl);return t&&t[1]||""}function ts(e,t=""){return e.displayName||e.name||es(e)||t}function mo(e,t,r){const n=ts(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Dl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ts(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ho.ForwardRef:return mo(e,e.render,"ForwardRef");case ho.Memo:return mo(e,e.type,"memo");default:return}}}const Al=Object.freeze(Object.defineProperty({__proto__:null,default:Dl,getFunctionName:es},Symbol.toStringTag,{value:"Module"}));function hr(e,t){const r=D({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=D({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=D({},o),Object.keys(a).forEach(i=>{r[n][i]=hr(a[i],o[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Rl(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:hr(t.components[r].defaultProps,n)}function Il({props:e,name:t,defaultTheme:r,themeId:n}){let a=Ki(r);return n&&(a=a[n]||a),Rl({theme:a,name:t,props:e})}const jl=typeof window<"u"?g.useLayoutEffect:g.useEffect;function Fl(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Ll=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"}));function Nl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Dr(e){const t=g.useRef(e);return jl(()=>{t.current=e}),g.useRef((...r)=>(0,t.current)(...r)).current}function vo(...e){return g.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Nl(r,t)})},e)}const go={};function Ul(e,t){const r=g.useRef(go);return r.current===go&&(r.current=e(t)),r}const Wl=[];function Bl(e){g.useEffect(e,Wl)}class En{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new En}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Yl(){const e=Ul(En.create).current;return Bl(e.disposeEffect),e}let Sn=!0,ra=!1;const Hl=new En,zl={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 ql(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&zl[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Vl(e){e.metaKey||e.altKey||e.ctrlKey||(Sn=!0)}function Bn(){Sn=!1}function Gl(){this.visibilityState==="hidden"&&ra&&(Sn=!0)}function Kl(e){e.addEventListener("keydown",Vl,!0),e.addEventListener("mousedown",Bn,!0),e.addEventListener("pointerdown",Bn,!0),e.addEventListener("touchstart",Bn,!0),e.addEventListener("visibilitychange",Gl,!0)}function Xl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Sn||ql(t)}function Ql(){const e=g.useCallback(a=>{a!=null&&Kl(a.ownerDocument)},[]),t=g.useRef(!1);function r(){return t.current?(ra=!0,Hl.start(100,()=>{ra=!1}),t.current=!1,!0):!1}function n(a){return Xl(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Pn(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,i)=>{if(i){const s=t(i);s!==""&&o.push(s),r&&r[i]&&o.push(r[i])}return o},[]).join(" ")}),n}const Jl=g.createContext(void 0);function Zl(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?hr(a.defaultProps,n):!a.styleOverrides&&!a.variants?hr(a,n):n}function ef({props:e,name:t}){const r=g.useContext(Jl);return Zl({props:e,name:t,theme:{components:r}})}function it(e){"@babel/helpers - typeof";return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},it(e)}function tf(e,t){if(it(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(it(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rs(e){var t=tf(e,"string");return it(t)=="symbol"?t:t+""}const $a="$$material";function rf(e,t){return D({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ve={},ns={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ns);var as=ns.exports;const nf=ft(hu),af=ft(Ll);var os=as;Object.defineProperty(ve,"__esModule",{value:!0});var Nt=ve.alpha=cs;ve.blend=yf;ve.colorChannel=void 0;var of=ve.darken=Da;ve.decomposeColor=Be;ve.emphasize=ls;var sf=ve.getContrastRatio=pf;ve.getLuminance=Hr;ve.hexToRgb=is;ve.hslToRgb=us;var uf=ve.lighten=Aa;ve.private_safeAlpha=hf;ve.private_safeColorChannel=void 0;ve.private_safeDarken=mf;ve.private_safeEmphasize=gf;ve.private_safeLighten=vf;ve.recomposeColor=Gt;ve.rgbToHex=df;var yo=os(nf),cf=os(af);function ka(e,t=0,r=1){return(0,cf.default)(e,t,r)}function is(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function lf(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Be(e){if(e.type)return e;if(e.charAt(0)==="#")return Be(is(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error((0,yo.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,yo.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const ss=e=>{const t=Be(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ve.colorChannel=ss;const ff=(e,t)=>{try{return ss(e)}catch{return e}};ve.private_safeColorChannel=ff;function Gt(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function df(e){if(e.indexOf("#")===0)return e;const{values:t}=Be(e);return`#${t.map((r,n)=>lf(n===3?Math.round(255*r):r)).join("")}`}function us(e){e=Be(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(c,f=(c+r/30)%12)=>a-o*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Gt({type:s,values:u})}function Hr(e){e=Be(e);let t=e.type==="hsl"||e.type==="hsla"?Be(us(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pf(e,t){const r=Hr(e),n=Hr(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function cs(e,t){return e=Be(e),t=ka(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Gt(e)}function hf(e,t,r){try{return cs(e,t)}catch{return e}}function Da(e,t){if(e=Be(e),t=ka(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Gt(e)}function mf(e,t,r){try{return Da(e,t)}catch{return e}}function Aa(e,t){if(e=Be(e),t=ka(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Gt(e)}function vf(e,t,r){try{return Aa(e,t)}catch{return e}}function ls(e,t=.15){return Hr(e)>.5?Da(e,t):Aa(e,t)}function gf(e,t,r){try{return ls(e,t)}catch{return e}}function yf(e,t,r,n=1){const a=(u,c)=>Math.round((u**(1/n)*(1-r)+c**(1/n)*r)**n),o=Be(e),i=Be(t),s=[a(o.values[0],i.values[0]),a(o.values[1],i.values[1]),a(o.values[2],i.values[2])];return Gt({type:"rgb",values:s})}const mr={black:"#000",white:"#fff"},bf={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},At={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Rt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},nr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},It={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},jt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ft={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},wf=["mode","contrastThreshold","tonalOffset"],bo={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:mr.white,default:mr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Yn={text:{primary:mr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:mr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wo(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=uf(e.main,a):t==="dark"&&(e.dark=of(e.main,o)))}function Tf(e="light"){return e==="dark"?{main:It[200],light:It[50],dark:It[400]}:{main:It[700],light:It[400],dark:It[800]}}function xf(e="light"){return e==="dark"?{main:At[200],light:At[50],dark:At[400]}:{main:At[500],light:At[300],dark:At[700]}}function Cf(e="light"){return e==="dark"?{main:Rt[500],light:Rt[300],dark:Rt[700]}:{main:Rt[700],light:Rt[400],dark:Rt[800]}}function Of(e="light"){return e==="dark"?{main:jt[400],light:jt[300],dark:jt[700]}:{main:jt[700],light:jt[500],dark:jt[900]}}function _f(e="light"){return e==="dark"?{main:Ft[400],light:Ft[300],dark:Ft[700]}:{main:Ft[800],light:Ft[500],dark:Ft[900]}}function Ef(e="light"){return e==="dark"?{main:nr[400],light:nr[300],dark:nr[700]}:{main:"#ed6c02",light:nr[500],dark:nr[900]}}function Sf(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Me(e,wf),o=e.primary||Tf(t),i=e.secondary||xf(t),s=e.error||Cf(t),u=e.info||Of(t),c=e.success||_f(t),f=e.warning||Ef(t);function d(m){return sf(m,Yn.text.primary)>=r?Yn.text.primary:bo.text.primary}const l=({color:m,name:w,mainShade:y=500,lightShade:S=300,darkShade:R=700})=>{if(m=D({},m),!m.main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(lr(11,w?` (${w})`:"",y));if(typeof m.main!="string")throw new Error(lr(12,w?` (${w})`:"",JSON.stringify(m.main)));return wo(m,"light",S,n),wo(m,"dark",R,n),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:Yn,light:bo};return ze(D({common:D({},mr),mode:t,primary:l({color:o,name:"primary"}),secondary:l({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:l({color:s,name:"error"}),warning:l({color:f,name:"warning"}),info:l({color:u,name:"info"}),success:l({color:c,name:"success"}),grey:bf,contrastThreshold:r,getContrastText:d,augmentColor:l,tonalOffset:n},h[t]),a)}const Pf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Mf(e){return Math.round(e*1e5)/1e5}const To={textTransform:"uppercase"},xo='"Roboto", "Helvetica", "Arial", sans-serif';function $f(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=xo,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:f,pxToRem:d}=r,l=Me(r,Pf),h=a/14,v=d||(y=>`${y/c*h}rem`),m=(y,S,R,k,$)=>D({fontFamily:n,fontWeight:y,fontSize:v(S),lineHeight:R},n===xo?{letterSpacing:`${Mf(k/S)}em`}:{},$,f),w={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,To),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,To),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze(D({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:u},w),l,{clone:!1})}const kf=.2,Df=.14,Af=.12;function ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Df})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Af})`].join(",")}const Rf=["none",ie(0,2,1,-1,0,1,1,0,0,1,3,0),ie(0,3,1,-2,0,2,2,0,0,1,5,0),ie(0,3,3,-2,0,3,4,0,0,1,8,0),ie(0,2,4,-1,0,4,5,0,0,1,10,0),ie(0,3,5,-1,0,5,8,0,0,1,14,0),ie(0,3,5,-1,0,6,10,0,0,1,18,0),ie(0,4,5,-2,0,7,10,1,0,2,16,1),ie(0,5,5,-3,0,8,10,1,0,3,14,2),ie(0,5,6,-3,0,9,12,1,0,3,16,2),ie(0,6,6,-3,0,10,14,1,0,4,18,3),ie(0,6,7,-4,0,11,15,1,0,4,20,3),ie(0,7,8,-4,0,12,17,2,0,5,22,4),ie(0,7,8,-4,0,13,19,2,0,5,24,4),ie(0,7,9,-4,0,14,21,2,0,5,26,4),ie(0,8,9,-5,0,15,22,2,0,6,28,5),ie(0,8,10,-5,0,16,24,2,0,6,30,5),ie(0,8,11,-5,0,17,26,2,0,6,32,5),ie(0,9,11,-5,0,18,28,2,0,7,34,6),ie(0,9,12,-6,0,19,29,2,0,7,36,6),ie(0,10,13,-6,0,20,31,3,0,8,38,7),ie(0,10,13,-6,0,21,33,3,0,8,40,7),ie(0,10,14,-6,0,22,35,3,0,8,42,7),ie(0,11,14,-7,0,23,36,3,0,9,44,8),ie(0,11,15,-7,0,24,38,3,0,9,46,8)],If=["duration","easing","delay"],jf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ff={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Co(e){return`${Math.round(e)}ms`}function Lf(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Nf(e){const t=D({},jf,e.easing),r=D({},Ff,e.duration);return D({getAutoHeightDuration:Lf,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:s=t.easeInOut,delay:u=0}=o;return Me(o,If),(Array.isArray(a)?a:[a]).map(c=>`${c} ${typeof i=="string"?i:Co(i)} ${s} ${typeof u=="string"?u:Co(u)}`).join(",")}},e,{easing:t,duration:r})}const Uf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fs(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,i=Me(e,Wf);if(e.vars)throw new Error(lr(18));const s=Sf(n),u=Ea(e);let c=ze(u,{mixins:rf(u.breakpoints,r),palette:s,shadows:Rf.slice(),typography:$f(s,o),transitions:Nf(a),zIndex:D({},Uf)});return c=ze(c,i),c=t.reduce((f,d)=>ze(f,d),c),c.unstable_sxConfig=D({},Cr,i==null?void 0:i.unstable_sxConfig),c.unstable_sx=function(d){return Or({sx:d,theme:this})},c}const ds=fs();function Bf({props:e,name:t}){return Il({props:e,name:t,defaultTheme:ds,themeId:$a})}var Er={},Hn={exports:{}},Oo;function Yf(){return Oo||(Oo=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if({}.hasOwnProperty.call(r,o)){if(n.includes(o))continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Hn)),Hn.exports}const Hf=ft(_c),zf=ft(Ec),qf=ft(kc),Vf=ft(Al),Gf=ft(yl),Kf=ft(Ol);var Kt=as;Object.defineProperty(Er,"__esModule",{value:!0});var Xf=Er.default=cd;Er.shouldForwardProp=Ur;Er.systemDefaultTheme=void 0;var Ne=Kt(Li()),na=Kt(Yf()),_o=nd(Hf),Qf=zf;Kt(qf);Kt(Vf);var Jf=Kt(Gf),Zf=Kt(Kf);const ed=["ownerState"],td=["variants"],rd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ps(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ps=function(n){return n?r:t})(e)}function nd(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ps(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function ad(e){return Object.keys(e).length===0}function od(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ur(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const id=Er.systemDefaultTheme=(0,Jf.default)(),sd=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ar({defaultTheme:e,theme:t,themeId:r}){return ad(t)?e:t[r]||t}function ud(e){return e?(t,r)=>r[e]:null}function Wr(e,t){let{ownerState:r}=t,n=(0,na.default)(t,ed);const a=typeof e=="function"?e((0,Ne.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>Wr(o,(0,Ne.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let s=(0,na.default)(a,td);return o.forEach(u=>{let c=!0;typeof u.props=="function"?c=u.props((0,Ne.default)({ownerState:r},n,r)):Object.keys(u.props).forEach(f=>{(r==null?void 0:r[f])!==u.props[f]&&n[f]!==u.props[f]&&(c=!1)}),c&&(Array.isArray(s)||(s=[s]),s.push(typeof u.style=="function"?u.style((0,Ne.default)({ownerState:r},n,r)):u.style))}),s}return a}function cd(e={}){const{themeId:t,defaultTheme:r=id,rootShouldForwardProp:n=Ur,slotShouldForwardProp:a=Ur}=e,o=i=>(0,Zf.default)((0,Ne.default)({},i,{theme:Ar((0,Ne.default)({},i,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(i,s={})=>{(0,_o.internal_processStyles)(i,$=>$.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:f,skipSx:d,overridesResolver:l=ud(sd(c))}=s,h=(0,na.default)(s,rd),v=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let w,y=Ur;c==="Root"||c==="root"?y=n:c?y=a:od(i)&&(y=void 0);const S=(0,_o.default)(i,(0,Ne.default)({shouldForwardProp:y,label:w},h)),R=$=>typeof $=="function"&&$.__emotion_real!==$||(0,Qf.isPlainObject)($)?T=>Wr($,(0,Ne.default)({},T,{theme:Ar({theme:T.theme,defaultTheme:r,themeId:t})})):$,k=($,...T)=>{let b=R($);const K=T?T.map(R):[];u&&l&&K.push(te=>{const ee=Ar((0,Ne.default)({},te,{defaultTheme:r,themeId:t}));if(!ee.components||!ee.components[u]||!ee.components[u].styleOverrides)return null;const B=ee.components[u].styleOverrides,se={};return Object.entries(B).forEach(([G,re])=>{se[G]=Wr(re,(0,Ne.default)({},te,{theme:ee}))}),l(te,se)}),u&&!v&&K.push(te=>{var ee;const B=Ar((0,Ne.default)({},te,{defaultTheme:r,themeId:t})),se=B==null||(ee=B.components)==null||(ee=ee[u])==null?void 0:ee.variants;return Wr({variants:se},(0,Ne.default)({},te,{theme:B}))}),m||K.push(o);const Z=K.length-T.length;if(Array.isArray($)&&Z>0){const te=new Array(Z).fill("");b=[...$,...te],b.raw=[...$.raw,...te]}const W=S(b,...K);return i.muiName&&(W.muiName=i.muiName),W};return S.withConfig&&(k.withConfig=S.withConfig),k}}function ld(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hs=e=>ld(e)&&e!=="classes",dt=Xf({themeId:$a,defaultTheme:ds,rootShouldForwardProp:hs}),Eo=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},fd=Vt("MuiBox",["root"]),dd=fs(),pd=Sl({themeId:$a,defaultTheme:dd,defaultClassName:fd.root,generateClassName:Xi.generate});function Sr(e){return ef(e)}const So=Ze.createContext(null);function Ra(e,t){var r=function(o){return t&&g.isValidElement(o)?t(o):o},n=Object.create(null);return e&&g.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function hd(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,s={};for(var u in t){if(n[u])for(i=0;i{if(!s&&u!=null){const m=setTimeout(u,c);return()=>{clearTimeout(m)}}},[u,s,c]),_e.jsx("span",{className:l,style:h,children:_e.jsx("span",{className:v})})}const Ue=Vt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wd=["center","classes","className"];let Mn=e=>e,Po,Mo,$o,ko;const aa=550,Td=80,xd=cn(Po||(Po=Mn` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),Cd=cn(Mo||(Mo=Mn` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Od=cn($o||($o=Mn` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),_d=dt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ed=dt(bd,{name:"MuiTouchRipple",slot:"Ripple"})(ko||(ko=Mn` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Ue.rippleVisible,xd,aa,({theme:e})=>e.transitions.easing.easeInOut,Ue.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ue.child,Ue.childLeaving,Cd,aa,({theme:e})=>e.transitions.easing.easeInOut,Ue.childPulsate,Od,({theme:e})=>e.transitions.easing.easeInOut),Sd=g.forwardRef(function(t,r){const n=Sr({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i}=n,s=Me(n,wd),[u,c]=g.useState([]),f=g.useRef(0),d=g.useRef(null);g.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const l=g.useRef(!1),h=Yl(),v=g.useRef(null),m=g.useRef(null),w=g.useCallback(k=>{const{pulsate:$,rippleX:T,rippleY:b,rippleSize:K,cb:Z}=k;c(W=>[...W,_e.jsx(Ed,{classes:{ripple:Pe(o.ripple,Ue.ripple),rippleVisible:Pe(o.rippleVisible,Ue.rippleVisible),ripplePulsate:Pe(o.ripplePulsate,Ue.ripplePulsate),child:Pe(o.child,Ue.child),childLeaving:Pe(o.childLeaving,Ue.childLeaving),childPulsate:Pe(o.childPulsate,Ue.childPulsate)},timeout:aa,pulsate:$,rippleX:T,rippleY:b,rippleSize:K},f.current)]),f.current+=1,d.current=Z},[o]),y=g.useCallback((k={},$={},T=()=>{})=>{const{pulsate:b=!1,center:K=a||$.pulsate,fakeElement:Z=!1}=$;if((k==null?void 0:k.type)==="mousedown"&&l.current){l.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(l.current=!0);const W=Z?null:m.current,te=W?W.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ee,B,se;if(K||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)ee=Math.round(te.width/2),B=Math.round(te.height/2);else{const{clientX:G,clientY:re}=k.touches&&k.touches.length>0?k.touches[0]:k;ee=Math.round(G-te.left),B=Math.round(re-te.top)}if(K)se=Math.sqrt((2*te.width**2+te.height**2)/3),se%2===0&&(se+=1);else{const G=Math.max(Math.abs((W?W.clientWidth:0)-ee),ee)*2+2,re=Math.max(Math.abs((W?W.clientHeight:0)-B),B)*2+2;se=Math.sqrt(G**2+re**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{w({pulsate:b,rippleX:ee,rippleY:B,rippleSize:se,cb:T})},h.start(Td,()=>{v.current&&(v.current(),v.current=null)})):w({pulsate:b,rippleX:ee,rippleY:B,rippleSize:se,cb:T})},[a,w,h]),S=g.useCallback(()=>{y({},{pulsate:!0})},[y]),R=g.useCallback((k,$)=>{if(h.clear(),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,h.start(0,()=>{R(k,$)});return}v.current=null,c(T=>T.length>0?T.slice(1):T),d.current=$},[h]);return g.useImperativeHandle(r,()=>({pulsate:S,start:y,stop:R}),[S,y,R]),_e.jsx(_d,D({className:Pe(Ue.root,o.root,i),ref:m},s,{children:_e.jsx(Ia,{component:null,exit:!0,children:u})}))});function Pd(e){return _r("MuiButtonBase",e)}const Md=Vt("MuiButtonBase",["root","disabled","focusVisible"]),$d=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],kd=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=Pn({root:["root",t&&"disabled",r&&"focusVisible"]},Pd,a);return r&&n&&(i.root+=` ${n}`),i},Dd=dt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Md.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ad=g.forwardRef(function(t,r){const n=Sr({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:s,component:u="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:l=!1,LinkComponent:h="a",onBlur:v,onClick:m,onContextMenu:w,onDragLeave:y,onFocus:S,onFocusVisible:R,onKeyDown:k,onKeyUp:$,onMouseDown:T,onMouseLeave:b,onMouseUp:K,onTouchEnd:Z,onTouchMove:W,onTouchStart:te,tabIndex:ee=0,TouchRippleProps:B,touchRippleRef:se,type:G}=n,re=Me(n,$d),Ee=g.useRef(null),Se=g.useRef(null),ht=vo(Se,se),{isFocusVisibleRef:mt,onFocus:qe,onBlur:$e,ref:vt}=Ql(),[xe,ke]=g.useState(!1);c&&xe&&ke(!1),g.useImperativeHandle(a,()=>({focusVisible:()=>{ke(!0),Ee.current.focus()}}),[]);const[nt,Ve]=g.useState(!1);g.useEffect(()=>{Ve(!0)},[]);const ue=nt&&!f&&!c;g.useEffect(()=>{xe&&l&&!f&&nt&&Se.current.pulsate()},[f,l,xe,nt]);function j(A,Dt,er=d){return Dr($r=>(Dt&&Dt($r),!er&&Se.current&&Se.current[A]($r),!0))}const we=j("start",T),Ge=j("stop",w),$t=j("stop",y),gt=j("stop",K),yt=j("stop",A=>{xe&&A.preventDefault(),b&&b(A)}),kt=j("start",te),jn=j("stop",Z),Fn=j("stop",W),Ln=j("stop",A=>{$e(A),mt.current===!1&&ke(!1),v&&v(A)},!1),Qt=Dr(A=>{Ee.current||(Ee.current=A.currentTarget),qe(A),mt.current===!0&&(ke(!0),R&&R(A)),S&&S(A)}),Jt=()=>{const A=Ee.current;return u&&u!=="button"&&!(A.tagName==="A"&&A.href)},Zt=g.useRef(!1),p=Dr(A=>{l&&!Zt.current&&xe&&Se.current&&A.key===" "&&(Zt.current=!0,Se.current.stop(A,()=>{Se.current.start(A)})),A.target===A.currentTarget&&Jt()&&A.key===" "&&A.preventDefault(),k&&k(A),A.target===A.currentTarget&&Jt()&&A.key==="Enter"&&!c&&(A.preventDefault(),m&&m(A))}),C=Dr(A=>{l&&A.key===" "&&Se.current&&xe&&!A.defaultPrevented&&(Zt.current=!1,Se.current.stop(A,()=>{Se.current.pulsate(A)})),$&&$(A),m&&A.target===A.currentTarget&&Jt()&&A.key===" "&&!A.defaultPrevented&&m(A)});let _=u;_==="button"&&(re.href||re.to)&&(_=h);const P={};_==="button"?(P.type=G===void 0?"button":G,P.disabled=c):(!re.href&&!re.to&&(P.role="button"),c&&(P["aria-disabled"]=c));const I=vo(r,vt,Ee),Y=D({},n,{centerRipple:o,component:u,disabled:c,disableRipple:f,disableTouchRipple:d,focusRipple:l,tabIndex:ee,focusVisible:xe}),ge=kd(Y);return _e.jsxs(Dd,D({as:_,className:Pe(ge.root,s),ownerState:Y,onBlur:Ln,onClick:m,onContextMenu:Ge,onFocus:Qt,onKeyDown:p,onKeyUp:C,onMouseDown:we,onMouseLeave:yt,onMouseUp:gt,onDragLeave:$t,onTouchEnd:jn,onTouchMove:Fn,onTouchStart:kt,ref:I,tabIndex:c?-1:ee,type:G},P,re,{children:[i,ue?_e.jsx(Sd,D({ref:ht,center:o},B)):null]}))});function Rd(e){return _r("MuiButton",e)}const Rr=Vt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Id=g.createContext({}),jd=g.createContext(void 0),Fd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ld=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:i}=e,s={root:["root",o,`${o}${Oe(t)}`,`size${Oe(a)}`,`${o}Size${Oe(a)}`,`color${Oe(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Oe(a)}`],endIcon:["icon","endIcon",`iconSize${Oe(a)}`]},u=Pn(s,Rd,i);return D({},i,u)},ms=e=>D({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Nd=dt(Ad,{shouldForwardProp:e=>hs(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Oe(r.color)}`],t[`size${Oe(r.size)}`],t[`${r.variant}Size${Oe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return D({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":D({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Nt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":D({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Rr.focusVisible}`]:D({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Rr.disabled}`]:D({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Nt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Rr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Rr.disabled}`]:{boxShadow:"none"}}),Ud=dt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Oe(r.size)}`]]}})(({ownerState:e})=>D({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},ms(e))),Wd=dt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Oe(r.size)}`]]}})(({ownerState:e})=>D({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},ms(e))),gb=g.forwardRef(function(t,r){const n=g.useContext(Id),a=g.useContext(jd),o=hr(n,t),i=Sr({props:o,name:"MuiButton"}),{children:s,color:u="primary",component:c="button",className:f,disabled:d=!1,disableElevation:l=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:m,fullWidth:w=!1,size:y="medium",startIcon:S,type:R,variant:k="text"}=i,$=Me(i,Fd),T=D({},i,{color:u,component:c,disabled:d,disableElevation:l,disableFocusRipple:h,fullWidth:w,size:y,type:R,variant:k}),b=Ld(T),K=S&&_e.jsx(Ud,{className:b.startIcon,ownerState:T,children:S}),Z=v&&_e.jsx(Wd,{className:b.endIcon,ownerState:T,children:v}),W=a||"";return _e.jsxs(Nd,D({ownerState:T,className:Pe(n.className,b.root,f,W),component:c,disabled:d,focusRipple:!h,focusVisibleClassName:Pe(b.focusVisible,m),ref:r,type:R},$,{classes:b,children:[K,s,Z]}))});function Bd(e){return _r("MuiPaper",e)}Vt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Yd=["className","component","elevation","square","variant"],Hd=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Pn(o,Bd,a)},zd=dt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return D({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&D({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Nt("#fff",Eo(t.elevation))}, ${Nt("#fff",Eo(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qd=g.forwardRef(function(t,r){const n=Sr({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:i=1,square:s=!1,variant:u="elevation"}=n,c=Me(n,Yd),f=D({},n,{component:o,elevation:i,square:s,variant:u}),d=Hd(f);return _e.jsx(zd,D({as:o,ownerState:f,className:Pe(d.root,a),ref:r},c))}),{addons:Vd}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Do}=__STORYBOOK_MODULE_GLOBAL__,{ImplicitActionsDuringRendering:Gd}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Kd="storybook/actions",Xd=`${Kd}/action-event`,Qd={depth:10,clearOnStoryChange:!0,limit:50},vs=(e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:vs(r,t)},Jd=e=>!!(typeof e=="object"&&e&&vs(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),Zd=e=>{if(Jd(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},ep=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?pu():Date.now().toString(36)+Math.random().toString(36).substring(2);function yb(e,t={}){let r={...Qd,...t},n=function(...a){var d,l;if(t.implicit){let h=(d="__STORYBOOK_PREVIEW__"in Do?Do.__STORYBOOK_PREVIEW__:void 0)==null?void 0:d.storyRenders.find(v=>v.phase==="playing"||v.phase==="rendering");if(h){let v=!((l=window==null?void 0:window.FEATURES)!=null&&l.disallowImplicitActionsInRenderV8),m=new Gd({phase:h.phase,name:e,deprecated:v});if(v)console.warn(m);else throw m}}let o=Vd.getChannel(),i=ep(),s=5,u=a.map(Zd),c=a.length>1?u:u[0],f={id:i,count:0,data:{name:e,args:c},options:{...r,maxDepth:s+(r.depth||3),allowFunction:r.allowFunction||!1}};o.emit(Xd,f)};return n.isAction=!0,n.implicit=t.implicit,n}var tp=function(t){return rp(t)&&!np(t)};function rp(e){return!!e&&typeof e=="object"}function np(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||ip(e)}var ap=typeof Symbol=="function"&&Symbol.for,op=ap?Symbol.for("react.element"):60103;function ip(e){return e.$$typeof===op}function sp(e){return Array.isArray(e)?[]:{}}function zr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vr(sp(e),e,t):e}function up(e,t,r){return e.concat(t).map(function(n){return zr(n,r)})}function cp(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(a){n[a]=zr(e[a],r)}),Object.keys(t).forEach(function(a){!r.isMergeableObject(t[a])||!e[a]?n[a]=zr(t[a],r):n[a]=vr(e[a],t[a],r)}),n}function vr(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||up,r.isMergeableObject=r.isMergeableObject||tp;var n=Array.isArray(t),a=Array.isArray(e),o=n===a;return o?n?r.arrayMerge(e,t,r):cp(e,t,r):zr(t,r)}vr.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return vr(n,a,r)},{})};var oa=vr,gs=typeof global=="object"&&global&&global.Object===Object&&global,lp=typeof self=="object"&&self&&self.Object===Object&&self,tt=gs||lp||Function("return this")(),lt=tt.Symbol,ys=Object.prototype,fp=ys.hasOwnProperty,dp=ys.toString,ar=lt?lt.toStringTag:void 0;function pp(e){var t=fp.call(e,ar),r=e[ar];try{e[ar]=void 0;var n=!0}catch{}var a=dp.call(e);return n&&(t?e[ar]=r:delete e[ar]),a}var hp=Object.prototype,mp=hp.toString;function vp(e){return mp.call(e)}var gp="[object Null]",yp="[object Undefined]",Ao=lt?lt.toStringTag:void 0;function Et(e){return e==null?e===void 0?yp:gp:Ao&&Ao in Object(e)?pp(e):vp(e)}function bs(e,t){return function(r){return e(t(r))}}var ja=bs(Object.getPrototypeOf,Object);function St(e){return e!=null&&typeof e=="object"}var bp="[object Object]",wp=Function.prototype,Tp=Object.prototype,ws=wp.toString,xp=Tp.hasOwnProperty,Cp=ws.call(Object);function Ro(e){if(!St(e)||Et(e)!=bp)return!1;var t=ja(e);if(t===null)return!0;var r=xp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ws.call(r)==Cp}function Op(){this.__data__=[],this.size=0}function Ts(e,t){return e===t||e!==e&&t!==t}function $n(e,t){for(var r=e.length;r--;)if(Ts(e[r][0],t))return r;return-1}var _p=Array.prototype,Ep=_p.splice;function Sp(e){var t=this.__data__,r=$n(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ep.call(t,r,1),--this.size,!0}function Pp(e){var t=this.__data__,r=$n(t,e);return r<0?void 0:t[r][1]}function Mp(e){return $n(this.__data__,e)>-1}function $p(e,t){var r=this.__data__,n=$n(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function st(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=$h}var kh="[object Arguments]",Dh="[object Array]",Ah="[object Boolean]",Rh="[object Date]",Ih="[object Error]",jh="[object Function]",Fh="[object Map]",Lh="[object Number]",Nh="[object Object]",Uh="[object RegExp]",Wh="[object Set]",Bh="[object String]",Yh="[object WeakMap]",Hh="[object ArrayBuffer]",zh="[object DataView]",qh="[object Float32Array]",Vh="[object Float64Array]",Gh="[object Int8Array]",Kh="[object Int16Array]",Xh="[object Int32Array]",Qh="[object Uint8Array]",Jh="[object Uint8ClampedArray]",Zh="[object Uint16Array]",em="[object Uint32Array]",ae={};ae[qh]=ae[Vh]=ae[Gh]=ae[Kh]=ae[Xh]=ae[Qh]=ae[Jh]=ae[Zh]=ae[em]=!0;ae[kh]=ae[Dh]=ae[Hh]=ae[Ah]=ae[zh]=ae[Rh]=ae[Ih]=ae[jh]=ae[Fh]=ae[Lh]=ae[Nh]=ae[Uh]=ae[Wh]=ae[Bh]=ae[Yh]=!1;function tm(e){return St(e)&&Ps(e.length)&&!!ae[Et(e)]}function Fa(e){return function(t){return e(t)}}var Ms=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ur=Ms&&typeof module=="object"&&module&&!module.nodeType&&module,rm=ur&&ur.exports===Ms,qn=rm&&gs.process,Ht=function(){try{var e=ur&&ur.require&&ur.require("util").types;return e||qn&&qn.binding&&qn.binding("util")}catch{}}(),Uo=Ht&&Ht.isTypedArray,nm=Uo?Fa(Uo):tm,am=Object.prototype,om=am.hasOwnProperty;function $s(e,t){var r=Mr(e),n=!r&&Ch(e),a=!r&&!n&&Ss(e),o=!r&&!n&&!a&&nm(e),i=r||n||a||o,s=i?bh(e.length,String):[],u=s.length;for(var c in e)(t||om.call(e,c))&&!(i&&(c=="length"||a&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Mh(c,u)))&&s.push(c);return s}var im=Object.prototype;function La(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||im;return e===r}var sm=bs(Object.keys,Object),um=Object.prototype,cm=um.hasOwnProperty;function lm(e){if(!La(e))return sm(e);var t=[];for(var r in Object(e))cm.call(e,r)&&r!="constructor"&&t.push(r);return t}function ks(e){return e!=null&&Ps(e.length)&&!xs(e)}function Na(e){return ks(e)?$s(e):lm(e)}function fm(e,t){return e&&Dn(t,Na(t),e)}function dm(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var pm=Object.prototype,hm=pm.hasOwnProperty;function mm(e){if(!Pr(e))return dm(e);var t=La(e),r=[];for(var n in e)n=="constructor"&&(t||!hm.call(e,n))||r.push(n);return r}function Ua(e){return ks(e)?$s(e,!0):mm(e)}function vm(e,t){return e&&Dn(t,Ua(t),e)}var Ds=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wo=Ds&&typeof module=="object"&&module&&!module.nodeType&&module,gm=Wo&&Wo.exports===Ds,Bo=gm?tt.Buffer:void 0,Yo=Bo?Bo.allocUnsafe:void 0;function ym(e,t){if(t)return e.slice();var r=e.length,n=Yo?Yo(r):new e.constructor(r);return e.copy(n),n}function As(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r=0)&&(r[a]=e[a]);return r}var An=g.createContext(void 0);An.displayName="FormikContext";var a0=An.Provider;An.Consumer;function Hs(){var e=g.useContext(An);return e}var Re=function(t){return typeof t=="function"},Rn=function(t){return t!==null&&typeof t=="object"},o0=function(t){return String(Math.floor(Number(t)))===t},Vn=function(t){return Object.prototype.toString.call(t)==="[object String]"},i0=function(t){return g.Children.count(t)===0},Gn=function(t){return Rn(t)&&Re(t.then)};function Ae(e,t,r,n){n===void 0&&(n=0);for(var a=Ys(t);e&&n=0?[]:{}}}return(o===0?e:a)[i[o]]===r?e:(r===void 0?delete a[i[o]]:a[i[o]]=r,o===0&&r===void 0&&delete n[i[o]],n)}function zs(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var a=0,o=Object.keys(e);a0?C.map(function(P){return W(P,Ae(p,P))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(_).then(function(P){return P.reduce(function(I,Y,ge){return Y==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Y&&(I=Ct(I,C[ge],Y)),I},{})})},[W]),ee=g.useCallback(function(p){return Promise.all([te(p),l.validationSchema?Z(p):{},l.validate?K(p):{}]).then(function(C){var _=C[0],P=C[1],I=C[2],Y=oa.all([_,P,I],{arrayMerge:f0});return Y})},[l.validate,l.validationSchema,te,K,Z]),B=Le(function(p){return p===void 0&&(p=T.values),b({type:"SET_ISVALIDATING",payload:!0}),ee(p).then(function(C){return y.current&&(b({type:"SET_ISVALIDATING",payload:!1}),b({type:"SET_ERRORS",payload:C})),C})});g.useEffect(function(){i&&y.current===!0&&wt(h.current,l.initialValues)&&B(h.current)},[i,B]);var se=g.useCallback(function(p){var C=p&&p.values?p.values:h.current,_=p&&p.errors?p.errors:v.current?v.current:l.initialErrors||{},P=p&&p.touched?p.touched:m.current?m.current:l.initialTouched||{},I=p&&p.status?p.status:w.current?w.current:l.initialStatus;h.current=C,v.current=_,m.current=P,w.current=I;var Y=function(){b({type:"RESET_FORM",payload:{isSubmitting:!!p&&!!p.isSubmitting,errors:_,touched:P,status:I,values:C,isValidating:!!p&&!!p.isValidating,submitCount:p&&p.submitCount&&typeof p.submitCount=="number"?p.submitCount:0}})};if(l.onReset){var ge=l.onReset(T.values,gt);Gn(ge)?ge.then(Y):Y()}else Y()},[l.initialErrors,l.initialStatus,l.initialTouched,l.onReset]);g.useEffect(function(){y.current===!0&&!wt(h.current,l.initialValues)&&c&&(h.current=l.initialValues,se(),i&&B(h.current))},[c,l.initialValues,se,i,B]),g.useEffect(function(){c&&y.current===!0&&!wt(v.current,l.initialErrors)&&(v.current=l.initialErrors||bt,b({type:"SET_ERRORS",payload:l.initialErrors||bt}))},[c,l.initialErrors]),g.useEffect(function(){c&&y.current===!0&&!wt(m.current,l.initialTouched)&&(m.current=l.initialTouched||jr,b({type:"SET_TOUCHED",payload:l.initialTouched||jr}))},[c,l.initialTouched]),g.useEffect(function(){c&&y.current===!0&&!wt(w.current,l.initialStatus)&&(w.current=l.initialStatus,b({type:"SET_STATUS",payload:l.initialStatus}))},[c,l.initialStatus,l.initialTouched]);var G=Le(function(p){if(S.current[p]&&Re(S.current[p].validate)){var C=Ae(T.values,p),_=S.current[p].validate(C);return Gn(_)?(b({type:"SET_ISVALIDATING",payload:!0}),_.then(function(P){return P}).then(function(P){b({type:"SET_FIELD_ERROR",payload:{field:p,value:P}}),b({type:"SET_ISVALIDATING",payload:!1})})):(b({type:"SET_FIELD_ERROR",payload:{field:p,value:_}}),Promise.resolve(_))}else if(l.validationSchema)return b({type:"SET_ISVALIDATING",payload:!0}),Z(T.values,p).then(function(P){return P}).then(function(P){b({type:"SET_FIELD_ERROR",payload:{field:p,value:Ae(P,p)}}),b({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),re=g.useCallback(function(p,C){var _=C.validate;S.current[p]={validate:_}},[]),Ee=g.useCallback(function(p){delete S.current[p]},[]),Se=Le(function(p,C){b({type:"SET_TOUCHED",payload:p});var _=C===void 0?a:C;return _?B(T.values):Promise.resolve()}),ht=g.useCallback(function(p){b({type:"SET_ERRORS",payload:p})},[]),mt=Le(function(p,C){var _=Re(p)?p(T.values):p;b({type:"SET_VALUES",payload:_});var P=C===void 0?r:C;return P?B(_):Promise.resolve()}),qe=g.useCallback(function(p,C){b({type:"SET_FIELD_ERROR",payload:{field:p,value:C}})},[]),$e=Le(function(p,C,_){b({type:"SET_FIELD_VALUE",payload:{field:p,value:C}});var P=_===void 0?r:_;return P?B(Ct(T.values,p,C)):Promise.resolve()}),vt=g.useCallback(function(p,C){var _=C,P=p,I;if(!Vn(p)){p.persist&&p.persist();var Y=p.target?p.target:p.currentTarget,ge=Y.type,A=Y.name,Dt=Y.id,er=Y.value,$r=Y.checked,uu=Y.outerHTML,Ka=Y.options,cu=Y.multiple;_=C||A||Dt,P=/number|range/.test(ge)?(I=parseFloat(er),isNaN(I)?"":I):/checkbox/.test(ge)?p0(Ae(T.values,_),$r,er):Ka&&cu?d0(Ka):er}_&&$e(_,P)},[$e,T.values]),xe=Le(function(p){if(Vn(p))return function(C){return vt(C,p)};vt(p)}),ke=Le(function(p,C,_){C===void 0&&(C=!0),b({type:"SET_FIELD_TOUCHED",payload:{field:p,value:C}});var P=_===void 0?a:_;return P?B(T.values):Promise.resolve()}),nt=g.useCallback(function(p,C){p.persist&&p.persist();var _=p.target,P=_.name,I=_.id,Y=_.outerHTML,ge=C||P||I;ke(ge,!0)},[ke]),Ve=Le(function(p){if(Vn(p))return function(C){return nt(C,p)};nt(p)}),ue=g.useCallback(function(p){Re(p)?b({type:"SET_FORMIK_STATE",payload:p}):b({type:"SET_FORMIK_STATE",payload:function(){return p}})},[]),j=g.useCallback(function(p){b({type:"SET_STATUS",payload:p})},[]),we=g.useCallback(function(p){b({type:"SET_ISSUBMITTING",payload:p})},[]),Ge=Le(function(){return b({type:"SUBMIT_ATTEMPT"}),B().then(function(p){var C=p instanceof Error,_=!C&&Object.keys(p).length===0;if(_){var P;try{if(P=yt(),P===void 0)return}catch(I){throw I}return Promise.resolve(P).then(function(I){return y.current&&b({type:"SUBMIT_SUCCESS"}),I}).catch(function(I){if(y.current)throw b({type:"SUBMIT_FAILURE"}),I})}else if(y.current&&(b({type:"SUBMIT_FAILURE"}),C))throw p})}),$t=Le(function(p){p&&p.preventDefault&&Re(p.preventDefault)&&p.preventDefault(),p&&p.stopPropagation&&Re(p.stopPropagation)&&p.stopPropagation(),Ge().catch(function(C){console.warn("Warning: An unhandled error was caught from submitForm()",C)})}),gt={resetForm:se,validateForm:B,validateField:G,setErrors:ht,setFieldError:qe,setFieldTouched:ke,setFieldValue:$e,setStatus:j,setSubmitting:we,setTouched:Se,setValues:mt,setFormikState:ue,submitForm:Ge},yt=Le(function(){return f(T.values,gt)}),kt=Le(function(p){p&&p.preventDefault&&Re(p.preventDefault)&&p.preventDefault(),p&&p.stopPropagation&&Re(p.stopPropagation)&&p.stopPropagation(),se()}),jn=g.useCallback(function(p){return{value:Ae(T.values,p),error:Ae(T.errors,p),touched:!!Ae(T.touched,p),initialValue:Ae(h.current,p),initialTouched:!!Ae(m.current,p),initialError:Ae(v.current,p)}},[T.errors,T.touched,T.values]),Fn=g.useCallback(function(p){return{setValue:function(_,P){return $e(p,_,P)},setTouched:function(_,P){return ke(p,_,P)},setError:function(_){return qe(p,_)}}},[$e,ke,qe]),Ln=g.useCallback(function(p){var C=Rn(p),_=C?p.name:p,P=Ae(T.values,_),I={name:_,value:P,onChange:xe,onBlur:Ve};if(C){var Y=p.type,ge=p.value,A=p.as,Dt=p.multiple;Y==="checkbox"?ge===void 0?I.checked=!!P:(I.checked=!!(Array.isArray(P)&&~P.indexOf(ge)),I.value=ge):Y==="radio"?(I.checked=P===ge,I.value=ge):A==="select"&&Dt&&(I.value=I.value||[],I.multiple=!0)}return I},[Ve,xe,T.values]),Qt=g.useMemo(function(){return!wt(h.current,T.values)},[h.current,T.values]),Jt=g.useMemo(function(){return typeof s<"u"?Qt?T.errors&&Object.keys(T.errors).length===0:s!==!1&&Re(s)?s(l):s:T.errors&&Object.keys(T.errors).length===0},[s,Qt,T.errors,l]),Zt=oe({},T,{initialValues:h.current,initialErrors:v.current,initialTouched:m.current,initialStatus:w.current,handleBlur:Ve,handleChange:xe,handleReset:kt,handleSubmit:$t,resetForm:se,setErrors:ht,setFormikState:ue,setFieldTouched:ke,setFieldValue:$e,setFieldError:qe,setStatus:j,setSubmitting:we,setTouched:Se,setValues:mt,submitForm:Ge,validateForm:B,validateField:G,isValid:Jt,dirty:Qt,unregisterField:Ee,registerField:re,getFieldProps:Ln,getFieldMeta:jn,getFieldHelpers:Fn,validateOnBlur:a,validateOnChange:r,validateOnMount:i});return Zt}function bb(e){var t=u0(e),r=e.component,n=e.children,a=e.render,o=e.innerRef;return g.useImperativeHandle(o,function(){return t}),g.createElement(a0,{value:t},r?g.createElement(r,t):a?a(t):n?Re(n)?n(t):i0(n)?null:g.Children.only(n):null)}function c0(e){var t={};if(e.inner){if(e.inner.length===0)return Ct(t,e.path,e.message);for(var a=e.inner,r=Array.isArray(a),n=0,a=r?a:a[Symbol.iterator]();;){var o;if(r){if(n>=a.length)break;o=a[n++]}else{if(n=a.next(),n.done)break;o=n.value}var i=o;Ae(t,i.path)||(t=Ct(t,i.path,i.message))}}return t}function l0(e,t,r,n){r===void 0&&(r=!1);var a=fa(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:a})}function fa(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(a){return Array.isArray(a)===!0||Ro(a)?fa(a):a!==""?a:void 0}):Ro(e[n])?t[n]=fa(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function f0(e,t,r){var n=e.slice();return t.forEach(function(o,i){if(typeof n[i]>"u"){var s=r.clone!==!1,u=s&&r.isMergeableObject(o);n[i]=u?oa(Array.isArray(o)?[]:{},o,r):o}else r.isMergeableObject(o)?n[i]=oa(e[i],o,r):e.indexOf(o)===-1&&n.push(o)}),n}function d0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function p0(e,t,r){if(typeof e=="boolean")return!!t;var n=[],a=!1,o=-1;if(Array.isArray(e))n=e,o=e.indexOf(r),a=o>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!a?n.concat(r):a?n.slice(0,o).concat(n.slice(o+1)):n}var h0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?g.useLayoutEffect:g.useEffect;function Le(e){var t=g.useRef(e);return h0(function(){t.current=e}),g.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,s={root:["root",o,e.align!=="inherit"&&`align${Oe(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return Pn(s,v0,i)},b0=dt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Oe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>D({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),si={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},w0={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},T0=e=>w0[e]||e,ui=g.forwardRef(function(t,r){const n=Sr({props:t,name:"MuiTypography"}),a=T0(n.color),o=Sa(D({},n,{color:a})),{align:i="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:f=!1,paragraph:d=!1,variant:l="body1",variantMapping:h=si}=o,v=Me(o,g0),m=D({},o,{align:i,color:a,className:s,component:u,gutterBottom:c,noWrap:f,paragraph:d,variant:l,variantMapping:h}),w=u||(d?"p":h[l]||si[l])||"span",y=y0(m);return _e.jsx(b0,D({as:w,ref:r,ownerState:m,className:Pe(y.root,s)},v))});function x0(e,t){return t instanceof File?{size:t.size,name:t.name,type:t.type}:t}const C0=({values:e})=>Ze.createElement(pd,{sx:{p:"5px",mt:2.5}},Ze.createElement(ui,{variant:"h4",component:"h5"},"State"),Ze.createElement(ui,{component:"pre"},JSON.stringify(e,x0,2)));C0.__docgenInfo={description:"",methods:[],displayName:"FormValues",props:{values:{required:!0,tsType:{name:"unknown"},description:""}}};function H(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function E(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function M(e){E(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||it(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function qs(e,t){E(2,arguments);var r=M(e),n=H(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function In(e,t){E(2,arguments);var r=M(e).getTime(),n=H(t);return new Date(r+n)}function O0(e,t){E(2,arguments);var r=H(t);return In(e,r*1e3)}var _0=6e4;function E0(e,t){E(2,arguments);var r=H(t);return In(e,r*_0)}var S0=36e5;function P0(e,t){E(2,arguments);var r=H(t);return In(e,r*S0)}function M0(e,t){E(2,arguments);var r=H(t),n=r*7;return qs(e,n)}function Vs(e,t){E(2,arguments);var r=M(e),n=H(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}function $0(e,t){E(2,arguments);var r=H(t);return Vs(e,r*12)}function ci(e){E(1,arguments);var t=M(e);return t.setHours(23,59,59,999),t}var k0={};function rt(){return k0}function D0(e,t){var r,n,a,o,i,s,u,c;E(1,arguments);var f=rt(),d=H((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=M(e),h=l.getDay(),v=(h=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function j0(e){E(1,arguments);var t=Xs(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=zt(r);return n}var F0=6048e5;function Qs(e){E(1,arguments);var t=M(e),r=zt(t).getTime()-j0(t).getTime();return Math.round(r/F0)+1}function _t(e,t){var r,n,a,o,i,s,u,c;E(1,arguments);var f=rt(),d=H((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=M(e),h=l.getUTCDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,h),v.setUTCHours(0,0,0,0);var m=_t(v,t),w=new Date(0);w.setUTCFullYear(d,0,h),w.setUTCHours(0,0,0,0);var y=_t(w,t);return f.getTime()>=m.getTime()?d+1:f.getTime()>=y.getTime()?d:d-1}function L0(e,t){var r,n,a,o,i,s,u,c;E(1,arguments);var f=rt(),d=H((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),l=za(e,t),h=new Date(0);h.setUTCFullYear(l,0,d),h.setUTCHours(0,0,0,0);var v=_t(h,t);return v}var N0=6048e5;function Js(e,t){E(1,arguments);var r=M(e),n=_t(r,t).getTime()-L0(r,t).getTime();return Math.round(n/N0)+1}function X(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?n:1-n;return X(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):X(n+1,2)},d:function(t,r){return X(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,r){return X(t.getUTCHours()%12||12,r.length)},H:function(t,r){return X(t.getUTCHours(),r.length)},m:function(t,r){return X(t.getUTCMinutes(),r.length)},s:function(t,r){return X(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return X(o,r.length)}},Lt={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},U0={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return ut.y(t,r)},Y:function(t,r,n,a){var o=za(t,a),i=o>0?o:1-o;if(r==="YY"){var s=i%100;return X(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):X(i,r.length)},R:function(t,r){var n=Xs(t);return X(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return X(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return X(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return X(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return ut.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return X(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var o=Js(t,a);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):X(o,r.length)},I:function(t,r,n){var a=Qs(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):X(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):ut.d(t,r)},D:function(t,r,n){var a=I0(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):X(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return X(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return X(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),o=a===0?7:a;switch(r){case"i":return String(o);case"ii":return X(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),o=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),o;switch(a===12?o=Lt.noon:a===0?o=Lt.midnight:o=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),o;switch(a>=17?o=Lt.evening:a>=12?o=Lt.afternoon:a>=4?o=Lt.morning:o=Lt.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return ut.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):ut.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):X(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):X(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):ut.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):ut.s(t,r)},S:function(t,r){return ut.S(t,r)},X:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return di(i);case"XXXX":case"XX":return Tt(i);case"XXXXX":case"XXX":default:return Tt(i,":")}},x:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"x":return di(i);case"xxxx":case"xx":return Tt(i);case"xxxxx":case"xxx":default:return Tt(i,":")}},O:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+fi(i,":");case"OOOO":default:return"GMT"+Tt(i,":")}},z:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+fi(i,":");case"zzzz":default:return"GMT"+Tt(i,":")}},t:function(t,r,n,a){var o=a._originalDate||t,i=Math.floor(o.getTime()/1e3);return X(i,r.length)},T:function(t,r,n,a){var o=a._originalDate||t,i=o.getTime();return X(i,r.length)}};function fi(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var i=t;return r+String(a)+i+X(o,2)}function di(e,t){if(e%60===0){var r=e>0?"-":"+";return r+X(Math.abs(e)/60,2)}return Tt(e,t)}function Tt(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=X(Math.floor(a/60),2),i=X(a%60,2);return n+o+r+i}var pi=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Zs=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},W0=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return pi(t,r);var i;switch(a){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",pi(a,r)).replace("{{time}}",Zs(o,r))},da={p:Zs,P:W0};function eu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var B0=["D","DD"],Y0=["YY","YYYY"];function tu(e){return B0.indexOf(e)!==-1}function ru(e){return Y0.indexOf(e)!==-1}function qr(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var H0={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},z0=function(t,r,n){var a,o=H0[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Kn(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var q0={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},V0={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},G0={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},K0={date:Kn({formats:q0,defaultWidth:"full"}),time:Kn({formats:V0,defaultWidth:"full"}),dateTime:Kn({formats:G0,defaultWidth:"full"})},X0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q0=function(t,r,n,a){return X0[t]};function or(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return a[c]}}var J0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Z0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ng={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ag=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},og={ordinalNumber:ag,era:or({values:J0,defaultWidth:"wide"}),quarter:or({values:Z0,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:or({values:eg,defaultWidth:"wide"}),day:or({values:tg,defaultWidth:"wide"}),dayPeriod:or({values:rg,defaultWidth:"wide",formattingValues:ng,defaultFormattingWidth:"wide"})};function ir(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?sg(s,function(d){return d.test(i)}):ig(s,function(d){return d.test(i)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var f=t.slice(i.length);return{value:c,rest:f}}}function ig(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function sg(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var s=t.slice(a.length);return{value:i,rest:s}}}var cg=/^(\d+)(th|st|nd|rd)?/i,lg=/\d+/i,fg={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dg={any:[/^b/i,/^(a|c)/i]},pg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hg={any:[/1/i,/2/i,/3/i,/4/i]},mg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gg={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yg={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Tg={ordinalNumber:ug({matchPattern:cg,parsePattern:lg,valueCallback:function(t){return parseInt(t,10)}}),era:ir({matchPatterns:fg,defaultMatchWidth:"wide",parsePatterns:dg,defaultParseWidth:"any"}),quarter:ir({matchPatterns:pg,defaultMatchWidth:"wide",parsePatterns:hg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ir({matchPatterns:mg,defaultMatchWidth:"wide",parsePatterns:vg,defaultParseWidth:"any"}),day:ir({matchPatterns:gg,defaultMatchWidth:"wide",parsePatterns:yg,defaultParseWidth:"any"}),dayPeriod:ir({matchPatterns:bg,defaultMatchWidth:"any",parsePatterns:wg,defaultParseWidth:"any"})},qa={code:"en-US",formatDistance:z0,formatLong:K0,formatRelative:Q0,localize:og,match:Tg,options:{weekStartsOn:0,firstWeekContainsDate:1}},xg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Og=/^'([^]*?)'?$/,_g=/''/g,Eg=/[a-zA-Z]/;function Sg(e,t,r){var n,a,o,i,s,u,c,f,d,l,h,v,m,w,y,S,R,k;E(2,arguments);var $=String(t),T=rt(),b=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:T.locale)!==null&&n!==void 0?n:qa,K=H((o=(i=(s=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(c=r.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:T.firstWeekContainsDate)!==null&&i!==void 0?i:(d=T.locale)===null||d===void 0||(l=d.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(K>=1&&K<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Z=H((h=(v=(m=(w=r==null?void 0:r.weekStartsOn)!==null&&w!==void 0?w:r==null||(y=r.locale)===null||y===void 0||(S=y.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&m!==void 0?m:T.weekStartsOn)!==null&&v!==void 0?v:(R=T.locale)===null||R===void 0||(k=R.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&h!==void 0?h:0);if(!(Z>=0&&Z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!b.localize)throw new RangeError("locale must contain localize property");if(!b.formatLong)throw new RangeError("locale must contain formatLong property");var W=M(e);if(!Gs(W))throw new RangeError("Invalid time value");var te=eu(W),ee=Ks(W,te),B={firstWeekContainsDate:K,weekStartsOn:Z,locale:b,_originalDate:W},se=$.match(Cg).map(function(G){var re=G[0];if(re==="p"||re==="P"){var Ee=da[re];return Ee(G,b.formatLong)}return G}).join("").match(xg).map(function(G){if(G==="''")return"'";var re=G[0];if(re==="'")return Pg(G);var Ee=U0[re];if(Ee)return!(r!=null&&r.useAdditionalWeekYearTokens)&&ru(G)&&qr(G,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tu(G)&&qr(G,t,String(e)),Ee(ee,G,b.localize,B);if(re.match(Eg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+re+"`");return G}).join("");return se}function Pg(e){var t=e.match(Og);return t?t[1].replace(_g,"'"):e}function Mg(e){E(1,arguments);var t=M(e),r=t.getDate();return r}function nu(e){E(1,arguments);var t=M(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function $g(e){E(1,arguments);var t=M(e),r=t.getHours();return r}function kg(e){E(1,arguments);var t=M(e),r=t.getMinutes();return r}function Dg(e){E(1,arguments);var t=M(e),r=t.getMonth();return r}function Ag(e){E(1,arguments);var t=M(e),r=t.getSeconds();return r}function Rg(e){E(1,arguments);var t=M(e),r=t.getMilliseconds();return r}function br(e,t){var r,n,a,o,i,s,u,c;E(1,arguments);var f=rt(),d=H((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=M(e),h=l.getDay(),v=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setFullYear(d+1,0,h),v.setHours(0,0,0,0);var m=br(v,t),w=new Date(0);w.setFullYear(d,0,h),w.setHours(0,0,0,0);var y=br(w,t);return f.getTime()>=m.getTime()?d+1:f.getTime()>=y.getTime()?d:d-1}function jg(e,t){var r,n,a,o,i,s,u,c;E(1,arguments);var f=rt(),d=H((r=(n=(a=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(i=t.locale)===null||i===void 0||(s=i.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),l=Ig(e,t),h=new Date(0);h.setFullYear(l,0,d),h.setHours(0,0,0,0);var v=br(h,t);return v}var Fg=6048e5;function Lg(e,t){E(1,arguments);var r=M(e),n=br(r,t).getTime()-jg(r,t).getTime();return Math.round(n/Fg)+1}function Ng(e){return E(1,arguments),M(e).getFullYear()}function Xn(e,t){E(2,arguments);var r=M(e),n=M(t);return r.getTime()>n.getTime()}function Qn(e,t){E(2,arguments);var r=M(e),n=M(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return i=c.done,c},e:function(c){s=!0,o=c},f:function(){try{i||r.return==null||r.return()}finally{if(s)throw o}}}}function qg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function N(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fu(e,t)}function Vg(e,t){if(t&&(it(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function U(e){var t=du();return function(){var r,n=Xa(e);if(t){var a=Xa(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return Vg(this,r)}}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gg(e,t){for(var r=0;r0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var o=n+50,i=Math.floor(o/100)*100,s=e>=o%100;a=e+i-(s?100:0)}return r?a:1-a}function su(e){return e%400===0||e%4===0&&e%100!==0}var ry=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i0}},{key:"set",value:function(a,o,i){var s=a.getUTCFullYear();if(i.isTwoDigitYear){var u=iu(i.year,s);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var c=!("era"in o)||o.era===1?i.year:1-i.year;return a.setUTCFullYear(c,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(V),ny=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i0}},{key:"set",value:function(a,o,i,s){var u=za(a,s);if(i.isTwoDigitYear){var c=iu(i.year,u);return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),_t(a,s)}var f=!("era"in o)||o.era===1?i.year:1-i.year;return a.setUTCFullYear(f,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),_t(a,s)}}]),r}(V),ay=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=4}},{key:"set",value:function(a,o,i){return a.setUTCMonth((i-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(V),sy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=4}},{key:"set",value:function(a,o,i){return a.setUTCMonth((i-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(V),uy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=11}},{key:"set",value:function(a,o,i){return a.setUTCMonth(i,1),a.setUTCHours(0,0,0,0),a}}]),r}(V),cy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=11}},{key:"set",value:function(a,o,i){return a.setUTCMonth(i,1),a.setUTCHours(0,0,0,0),a}}]),r}(V);function ly(e,t,r){E(2,arguments);var n=M(e),a=H(t),o=Js(n,r)-a;return n.setUTCDate(n.getUTCDate()-o*7),n}var fy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=53}},{key:"set",value:function(a,o,i,s){return _t(ly(a,i,s),s)}}]),r}(V);function dy(e,t){E(2,arguments);var r=M(e),n=H(t),a=Qs(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var py=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=53}},{key:"set",value:function(a,o,i){return zt(dy(a,i))}}]),r}(V),hy=[31,28,31,30,31,30,31,31,30,31,30,31],my=[31,29,31,30,31,30,31,31,30,31,30,31],vy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=my[u]:o>=1&&o<=hy[u]}},{key:"set",value:function(a,o,i){return a.setUTCDate(i),a.setUTCHours(0,0,0,0),a}}]),r}(V),gy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(a,o,i){return a.setUTCMonth(0,i),a.setUTCHours(0,0,0,0),a}}]),r}(V);function Ga(e,t,r){var n,a,o,i,s,u,c,f;E(2,arguments);var d=rt(),l=H((n=(a=(o=(i=r==null?void 0:r.weekStartsOn)!==null&&i!==void 0?i:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&a!==void 0?a:(c=d.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=M(e),v=H(t),m=h.getUTCDay(),w=v%7,y=(w+7)%7,S=(y=0&&o<=6}},{key:"set",value:function(a,o,i,s){return a=Ga(a,i,s),a.setUTCHours(0,0,0,0),a}}]),r}(V),by=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=6}},{key:"set",value:function(a,o,i,s){return a=Ga(a,i,s),a.setUTCHours(0,0,0,0),a}}]),r}(V),wy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=6}},{key:"set",value:function(a,o,i,s){return a=Ga(a,i,s),a.setUTCHours(0,0,0,0),a}}]),r}(V);function Ty(e,t){E(2,arguments);var r=H(t);r%7===0&&(r=r-7);var n=1,a=M(e),o=a.getUTCDay(),i=r%7,s=(i+7)%7,u=(s=1&&o<=7}},{key:"set",value:function(a,o,i){return a=Ty(a,i),a.setUTCHours(0,0,0,0),a}}]),r}(V),Cy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=12}},{key:"set",value:function(a,o,i){var s=a.getUTCHours()>=12;return s&&i<12?a.setUTCHours(i+12,0,0,0):!s&&i===12?a.setUTCHours(0,0,0,0):a.setUTCHours(i,0,0,0),a}}]),r}(V),Sy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=23}},{key:"set",value:function(a,o,i){return a.setUTCHours(i,0,0,0),a}}]),r}(V),Py=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=11}},{key:"set",value:function(a,o,i){var s=a.getUTCHours()>=12;return s&&i<12?a.setUTCHours(i+12,0,0,0):a.setUTCHours(i,0,0,0),a}}]),r}(V),My=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&o<=24}},{key:"set",value:function(a,o,i){var s=i<=24?i%24:i;return a.setUTCHours(s,0,0,0),a}}]),r}(V),$y=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=59}},{key:"set",value:function(a,o,i){return a.setUTCMinutes(i,0,0),a}}]),r}(V),ky=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=0&&o<=59}},{key:"set",value:function(a,o,i){return a.setUTCSeconds(i,0),a}}]),r}(V),Dy=function(e){N(r,e);var t=U(r);function r(){var n;F(this,r);for(var a=arguments.length,o=new Array(a),i=0;i=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=H((v=(m=(w=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(S=n.locale)===null||S===void 0||(R=S.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&w!==void 0?w:K.weekStartsOn)!==null&&m!==void 0?m:(k=K.locale)===null||k===void 0||($=k.options)===null||$===void 0?void 0:$.weekStartsOn)!==null&&v!==void 0?v:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(b==="")return T===""?M(r):new Date(NaN);var ee={firstWeekContainsDate:W,weekStartsOn:te,locale:Z},B=[new Qg],se=b.match(Ny).map(function(ue){var j=ue[0];if(j in da){var we=da[j];return we(ue,Z.formatLong)}return ue}).join("").match(Ly),G=[],re=vi(se),Ee;try{var Se=function(){var j=Ee.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&ru(j)&&qr(j,b,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&tu(j)&&qr(j,b,e);var we=j[0],Ge=Fy[we];if(Ge){var $t=Ge.incompatibleTokens;if(Array.isArray($t)){var gt=G.find(function(kt){return $t.includes(kt.token)||kt.token===we});if(gt)throw new RangeError("The format string mustn't contain `".concat(gt.fullToken,"` and `").concat(j,"` at the same time"))}else if(Ge.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(j,"` and any other token at the same time"));G.push({token:we,fullToken:j});var yt=Ge.run(T,j,Z.match,ee);if(!yt)return{v:new Date(NaN)};B.push(yt.setter),T=yt.rest}else{if(we.match(Yy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+we+"`");if(j==="''"?j="'":we==="'"&&(j=zy(j)),T.indexOf(j)===0)T=T.slice(j.length);else return{v:new Date(NaN)}}};for(re.s();!(Ee=re.n()).done;){var ht=Se();if(it(ht)==="object")return ht.v}}catch(ue){re.e(ue)}finally{re.f()}if(T.length>0&&By.test(T))return new Date(NaN);var mt=B.map(function(ue){return ue.priority}).sort(function(ue,j){return j-ue}).filter(function(ue,j,we){return we.indexOf(ue)===j}).map(function(ue){return B.filter(function(j){return j.priority===ue}).sort(function(j,we){return we.subPriority-j.subPriority})}).map(function(ue){return ue[0]}),qe=M(r);if(isNaN(qe.getTime()))return new Date(NaN);var $e=Ks(qe,eu(qe)),vt={},xe=vi(mt),ke;try{for(xe.s();!(ke=xe.n()).done;){var nt=ke.value;if(!nt.validate($e,ee))return new Date(NaN);var Ve=nt.set($e,vt,ee);Array.isArray(Ve)?($e=Ve[0],qg(vt,Ve[1])):$e=Ve}}catch(ue){xe.e(ue)}finally{xe.f()}return $e}function zy(e){return e.match(Uy)[1].replace(Wy,"'")}function qy(e,t){E(2,arguments);var r=M(e),n=H(t);return r.setDate(n),r}function Vy(e,t){E(2,arguments);var r=M(e),n=H(t);return r.setHours(n),r}function Gy(e,t){E(2,arguments);var r=M(e),n=H(t);return r.setMinutes(n),r}function Ky(e,t){E(2,arguments);var r=M(e),n=H(t),a=r.getFullYear(),o=r.getDate(),i=new Date(0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);var s=nu(i);return r.setMonth(n,Math.min(o,s)),r}function Xy(e,t){E(2,arguments);var r=M(e),n=H(t);return r.setSeconds(n),r}function Qy(e,t){E(2,arguments);var r=M(e),n=H(t);return r.setMilliseconds(n),r}function Jy(e,t){E(2,arguments);var r=M(e),n=H(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Zy(e){E(1,arguments);var t=M(e);return t.setDate(1),t.setHours(0,0,0,0),t}function eb(e){E(1,arguments);var t=M(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function tb(e){E(1,arguments);var t=M(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function rb(e,t){E(2,arguments);var r=M(e).getTime(),n=M(t.start).getTime(),a=M(t.end).getTime();if(!(n<=a))throw new RangeError("Invalid interval");return r>=n&&r<=a}var ha={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,c){switch(u){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},n=function(u,c){switch(u){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},a=function(u,c){var f=u.match(/(P+)(p+)?/)||[],d=f[1],l=f[2];if(!l)return r(u,c);var h;switch(d){case"P":h=c.dateTime({width:"short"});break;case"PP":h=c.dateTime({width:"medium"});break;case"PPP":h=c.dateTime({width:"long"});break;case"PPPP":default:h=c.dateTime({width:"full"});break}return h.replace("{{date}}",r(d,c)).replace("{{time}}",n(l,c))},o={p:n,P:a},i=o;t.default=i,e.exports=t.default})(ha,ha.exports);var nb=ha.exports;const ab=yi(nb),ob={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},ib={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class sb{constructor(t){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=ob,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=i=>i,this.toJsDate=i=>i,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=i=>{const s=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return i.match(s).map(u=>{const c=u[0];if(c==="p"||c==="P"){const f=this.longFormatters[c];return f(u,this.locale.formatLong)}return u}).join("")},this.formatNumber=i=>i,this.getDayOfWeek=i=>i.getDay()+1;const{locale:r,formats:n,longFormatters:a,lib:o}=t;this.locale=r,this.formats=D({},ib,n),this.longFormatters=a,this.lib=o||"date-fns"}}class ub extends sb{constructor({locale:t,formats:r}={}){super({locale:t??qa,formats:r,longFormatters:ab}),this.parse=(n,a)=>n===""?null:Hy(n,a,new Date,{locale:this.locale}),this.isValid=n=>n==null?!1:Gs(n),this.format=(n,a)=>this.formatByString(n,this.formats[a]),this.formatByString=(n,a)=>Sg(n,a,{locale:this.locale}),this.isEqual=(n,a)=>n===null&&a===null?!0:n===null||a===null?!1:Ug(n,a),this.isSameYear=(n,a)=>Bg(n,a),this.isSameMonth=(n,a)=>Yg(n,a),this.isSameDay=(n,a)=>Wg(n,a),this.isSameHour=(n,a)=>Hg(n,a),this.isAfter=(n,a)=>Xn(n,a),this.isAfterYear=(n,a)=>Xn(n,li(a)),this.isAfterDay=(n,a)=>Xn(n,ci(a)),this.isBefore=(n,a)=>Qn(n,a),this.isBeforeYear=(n,a)=>Qn(n,this.startOfYear(a)),this.isBeforeDay=(n,a)=>Qn(n,this.startOfDay(a)),this.isWithinRange=(n,[a,o])=>rb(n,{start:a,end:o}),this.startOfYear=n=>tb(n),this.startOfMonth=n=>Zy(n),this.startOfWeek=n=>br(n,{locale:this.locale}),this.startOfDay=n=>pa(n),this.endOfYear=n=>li(n),this.endOfMonth=n=>eb(n),this.endOfWeek=n=>D0(n,{locale:this.locale}),this.endOfDay=n=>ci(n),this.addYears=(n,a)=>$0(n,a),this.addMonths=(n,a)=>Vs(n,a),this.addWeeks=(n,a)=>M0(n,a),this.addDays=(n,a)=>qs(n,a),this.addHours=(n,a)=>P0(n,a),this.addMinutes=(n,a)=>E0(n,a),this.addSeconds=(n,a)=>O0(n,a),this.getYear=n=>Ng(n),this.getMonth=n=>Dg(n),this.getDate=n=>Mg(n),this.getHours=n=>$g(n),this.getMinutes=n=>kg(n),this.getSeconds=n=>Ag(n),this.getMilliseconds=n=>Rg(n),this.setYear=(n,a)=>Jy(n,a),this.setMonth=(n,a)=>Ky(n,a),this.setDate=(n,a)=>qy(n,a),this.setHours=(n,a)=>Vy(n,a),this.setMinutes=(n,a)=>Gy(n,a),this.setSeconds=(n,a)=>Xy(n,a),this.setMilliseconds=(n,a)=>Qy(n,a),this.getDaysInMonth=n=>nu(n),this.getWeekArray=n=>{const a=this.startOfWeek(this.startOfMonth(n)),o=this.endOfWeek(this.endOfMonth(n));let i=0,s=a;const u=[];for(;this.isBefore(s,o);){const c=Math.floor(i/7);u[c]=u[c]||[],u[c].push(s),s=this.addDays(s,1),i+=1}return u},this.getWeekNumber=n=>Lg(n,{locale:this.locale}),this.getYearRange=([n,a])=>{const o=this.startOfYear(n),i=this.endOfYear(a),s=[];let u=o;for(;this.isBefore(u,i);)s.push(u),u=this.addYears(u,1);return s}}}const cb=["localeText"],gi=g.createContext(null),lb=function(t){const{localeText:r}=t,n=Me(t,cb),{utils:a,localeText:o}=g.useContext(gi)??{utils:void 0,localeText:void 0},i=Bf({props:n,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:u,dateFormats:c,dateLibInstance:f,adapterLocale:d,localeText:l}=i,h=g.useMemo(()=>D({},l,o,r),[l,o,r]),v=g.useMemo(()=>{if(!u)return a||null;const y=new u({locale:d,formats:c,instance:f});if(!y.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return y},[u,d,c,f,a]),m=g.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),w=g.useMemo(()=>({utils:v,defaultDates:m,localeText:h}),[m,v,h]);return _e.jsx(gi.Provider,{value:w,children:s})},fb=({children:e})=>Ze.createElement(qd,{elevation:4,style:{padding:10}},Ze.createElement(lb,{dateAdapter:ub},e));fb.__docgenInfo={description:"",methods:[],displayName:"Wrapper",props:{children:{required:!0,tsType:{name:"ReactNode"},description:""}}};export{qs as $,Ad as A,gb as B,hs as C,jl as D,vo as E,bb as F,ot as G,vb as H,zi as I,ze as J,mb as K,lb as L,Sa as M,Il as N,xr as O,Ki as P,Cc as Q,ds as R,$a as S,ui as T,Dr as U,Nl as V,fb as W,qd as X,Bf as Y,E as Z,Me as _,Ui as a,H as a0,Xi as a1,Ql as a2,wc as a3,as as a4,hr as a5,Ia as a6,So as a7,Yl as a8,ld as a9,Hf as aa,wl as ab,Rl as ac,gi as ad,Ea as b,Pe as c,Or as d,ct as e,lr as f,Fl as g,yb as h,Oc as i,_e as j,m0 as k,wb as l,C0 as m,Ae as n,_r as o,Vt as p,Pn as q,cn as r,dt as s,Oe as t,Sr as u,Ni as v,uf as w,of as x,Nt as y,pd as z}; diff --git a/storybook/assets/_baseIteratee-8_jeTHtL.js b/storybook/assets/_baseIteratee-8_jeTHtL.js new file mode 100644 index 0000000..2f85f9b --- /dev/null +++ b/storybook/assets/_baseIteratee-8_jeTHtL.js @@ -0,0 +1 @@ +import{b as R,c as I,d as y,a as d,g as Er,i as Mr,f as xr,h as Vr,_ as kr}from"./_overArg-duoZdnBA.js";var re=R,ee=I,ae="[object Symbol]";function te(r){return typeof r=="symbol"||ee(r)&&re(r)==ae}var Z=te,ne=y,se=Z,ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/;function ue(r,e){if(ne(r))return!1;var a=typeof r;return a=="number"||a=="symbol"||a=="boolean"||r==null||se(r)?!0:oe.test(r)||!ie.test(r)||e!=null&&r in Object(e)}var Q=ue,fe=d,ce=fe["__core-js_shared__"],ve=ce,U=ve,tr=function(){var r=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function pe(r){return!!tr&&tr in r}var _e=pe,le=Function.prototype,he=le.toString;function $e(r){if(r!=null){try{return he.call(r)}catch{}try{return r+""}catch{}}return""}var Dr=$e,ge=Er,ye=_e,de=Mr,be=Dr,Ae=/[\\^$.*+?()[\]{}|]/g,Te=/^\[object .+?Constructor\]$/,Ce=Function.prototype,me=Object.prototype,Pe=Ce.toString,Se=me.hasOwnProperty,Oe=RegExp("^"+Pe.call(Se).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function we(r){if(!de(r)||ye(r))return!1;var e=ge(r)?Oe:Te;return e.test(be(r))}var Ie=we;function Ee(r,e){return r==null?void 0:r[e]}var Me=Ee,xe=Ie,De=Me;function Le(r,e){var a=De(r,e);return xe(a)?a:void 0}var C=Le,Ge=C,Re=Ge(Object,"create"),N=Re,nr=N;function Ne(){this.__data__=nr?nr(null):{},this.size=0}var He=Ne;function Ke(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var je=Ke,Fe=N,Ue="__lodash_hash_undefined__",ze=Object.prototype,Be=ze.hasOwnProperty;function qe(r){var e=this.__data__;if(Fe){var a=e[r];return a===Ue?void 0:a}return Be.call(e,r)?e[r]:void 0}var We=qe,Xe=N,Je=Object.prototype,Ye=Je.hasOwnProperty;function Ze(r){var e=this.__data__;return Xe?e[r]!==void 0:Ye.call(e,r)}var Qe=Ze,Ve=N,ke="__lodash_hash_undefined__";function ra(r,e){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=Ve&&e===void 0?ke:e,this}var ea=ra,aa=He,ta=je,na=We,sa=Qe,ia=ea;function m(r){var e=-1,a=r==null?0:r.length;for(this.clear();++e-1}var Ca=Ta,ma=H;function Pa(r,e){var a=this.__data__,t=ma(a,r);return t<0?(++this.size,a.push([r,e])):a[t][1]=e,this}var Sa=Pa,Oa=fa,wa=ga,Ia=ba,Ea=Ca,Ma=Sa;function P(r){var e=-1,a=r==null?0:r.length;for(this.clear();++e-1&&r%1==0&&r-1&&r%1==0&&r<=Bt}var er=qt,Wt=Z,Xt=1/0;function Jt(r){if(typeof r=="string"||Wt(r))return r;var e=r+"";return e=="0"&&1/r==-Xt?"-0":e}var F=Jt,Yt=Nr,Zt=Kr,Qt=y,Vt=jr,kt=er,rn=F;function en(r,e,a){e=Yt(e,r);for(var t=-1,s=e.length,n=!1;++to))return!1;var u=n.get(r),_=n.get(e);if(u&&_)return u==e&&_==r;var p=-1,v=!0,$=a&oi?new ti:void 0;for(n.set(r,e),n.set(e,r);++pBe(r,"name",{value:t,configurable:!0}),f=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),mn=(r,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of un(t))!dn.call(r,i)&&i!==n&&Be(r,i,{get:()=>t[i],enumerable:!(o=cn(t,i))||o.enumerable});return r},Et=(r,t,n)=>(n=r!=null?ln(yn(r)):{},mn(Be(n,"default",{value:r,enumerable:!0}),r)),St=f((r,t)=>{var n=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=n}),Z=f((r,t)=>{var n=St(),o=typeof self=="object"&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i}),Ae=f((r,t)=>{var n=Z(),o=n.Symbol;t.exports=o}),fn=f((r,t)=>{var n=Ae(),o=Object.prototype,i=o.hasOwnProperty,p=o.toString,c=n?n.toStringTag:void 0;function u(y){var m=i.call(y,c),T=y[c];try{y[c]=void 0;var v=!0}catch{}var x=p.call(y);return v&&(m?y[c]=T:delete y[c]),x}a(u,"getRawTag"),t.exports=u}),Tn=f((r,t)=>{var n=Object.prototype,o=n.toString;function i(p){return o.call(p)}a(i,"objectToString"),t.exports=i}),ve=f((r,t)=>{var n=Ae(),o=fn(),i=Tn(),p="[object Null]",c="[object Undefined]",u=n?n.toStringTag:void 0;function y(m){return m==null?m===void 0?c:p:u&&u in Object(m)?o(m):i(m)}a(y,"baseGetTag"),t.exports=y}),Ge=f((r,t)=>{function n(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}a(n,"isObject"),t.exports=n}),jt=f((r,t)=>{var n=ve(),o=Ge(),i="[object AsyncFunction]",p="[object Function]",c="[object GeneratorFunction]",u="[object Proxy]";function y(m){if(!o(m))return!1;var T=n(m);return T==p||T==c||T==i||T==u}a(y,"isFunction"),t.exports=y}),hn=f((r,t)=>{var n=Z(),o=n["__core-js_shared__"];t.exports=o}),vn=f((r,t)=>{var n=hn(),o=function(){var p=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}();function i(p){return!!o&&o in p}a(i,"isMasked"),t.exports=i}),kt=f((r,t)=>{var n=Function.prototype,o=n.toString;function i(p){if(p!=null){try{return o.call(p)}catch{}try{return p+""}catch{}}return""}a(i,"toSource"),t.exports=i}),gn=f((r,t)=>{var n=jt(),o=vn(),i=Ge(),p=kt(),c=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,y=Function.prototype,m=Object.prototype,T=y.toString,v=m.hasOwnProperty,x=RegExp("^"+T.call(v).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(w){if(!i(w)||o(w))return!1;var _=n(w)?x:u;return _.test(p(w))}a(g,"baseIsNative"),t.exports=g}),Jn=f((r,t)=>{function n(o,i){return o==null?void 0:o[i]}a(n,"getValue"),t.exports=n}),ie=f((r,t)=>{var n=gn(),o=Jn();function i(p,c){var u=o(p,c);return n(u)?u:void 0}a(i,"getNative"),t.exports=i}),bn=f((r,t)=>{var n=ie(),o=function(){try{var i=n(Object,"defineProperty");return i({},"",{}),i}catch{}}();t.exports=o}),xn=f((r,t)=>{var n=bn();function o(i,p,c){p=="__proto__"&&n?n(i,p,{configurable:!0,enumerable:!0,value:c,writable:!0}):i[p]=c}a(o,"baseAssignValue"),t.exports=o}),wn=f((r,t)=>{function n(o){return function(i,p,c){for(var u=-1,y=Object(i),m=c(i),T=m.length;T--;){var v=m[o?T:++u];if(p(y[v],v,y)===!1)break}return i}}a(n,"createBaseFor"),t.exports=n}),Pn=f((r,t)=>{var n=wn(),o=n();t.exports=o}),Nn=f((r,t)=>{function n(o,i){for(var p=-1,c=Array(o);++p{function n(o){return o!=null&&typeof o=="object"}a(n,"isObjectLike"),t.exports=n}),On=f((r,t)=>{var n=ve(),o=ge(),i="[object Arguments]";function p(c){return o(c)&&n(c)==i}a(p,"baseIsArguments"),t.exports=p}),At=f((r,t)=>{var n=On(),o=ge(),i=Object.prototype,p=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(y){return o(y)&&p.call(y,"callee")&&!c.call(y,"callee")};t.exports=u}),ne=f((r,t)=>{var n=Array.isArray;t.exports=n}),_n=f((r,t)=>{function n(){return!1}a(n,"stubFalse"),t.exports=n}),It=f((r,t)=>{var n=Z(),o=_n(),i=typeof r=="object"&&r&&!r.nodeType&&r,p=i&&typeof t=="object"&&t&&!t.nodeType&&t,c=p&&p.exports===i,u=c?n.Buffer:void 0,y=u?u.isBuffer:void 0,m=y||o;t.exports=m}),Rt=f((r,t)=>{var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function i(p,c){var u=typeof p;return c=c??n,!!c&&(u=="number"||u!="symbol"&&o.test(p))&&p>-1&&p%1==0&&p{var n=9007199254740991;function o(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=n}a(o,"isLength"),t.exports=o}),En=f((r,t)=>{var n=ve(),o=Ye(),i=ge(),p="[object Arguments]",c="[object Array]",u="[object Boolean]",y="[object Date]",m="[object Error]",T="[object Function]",v="[object Map]",x="[object Number]",g="[object Object]",w="[object RegExp]",_="[object Set]",L="[object String]",R="[object WeakMap]",P="[object ArrayBuffer]",A="[object DataView]",S="[object Float32Array]",K="[object Float64Array]",I="[object Int8Array]",V="[object Int16Array]",j="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",$="[object Uint16Array]",G="[object Uint32Array]",E={};E[S]=E[K]=E[I]=E[V]=E[j]=E[k]=E[O]=E[$]=E[G]=!0,E[p]=E[c]=E[P]=E[u]=E[A]=E[y]=E[m]=E[T]=E[v]=E[x]=E[g]=E[w]=E[_]=E[L]=E[R]=!1;function Y(C){return i(C)&&o(C.length)&&!!E[n(C)]}a(Y,"baseIsTypedArray"),t.exports=Y}),Sn=f((r,t)=>{function n(o){return function(i){return o(i)}}a(n,"baseUnary"),t.exports=n}),jn=f((r,t)=>{var n=St(),o=typeof r=="object"&&r&&!r.nodeType&&r,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,p=i&&i.exports===o,c=p&&n.process,u=function(){try{var y=i&&i.require&&i.require("util").types;return y||c&&c.binding&&c.binding("util")}catch{}}();t.exports=u}),Ft=f((r,t)=>{var n=En(),o=Sn(),i=jn(),p=i&&i.isTypedArray,c=p?o(p):n;t.exports=c}),kn=f((r,t)=>{var n=Nn(),o=At(),i=ne(),p=It(),c=Rt(),u=Ft(),y=Object.prototype,m=y.hasOwnProperty;function T(v,x){var g=i(v),w=!g&&o(v),_=!g&&!w&&p(v),L=!g&&!w&&!_&&u(v),R=g||w||_||L,P=R?n(v.length,String):[],A=P.length;for(var S in v)(x||m.call(v,S))&&!(R&&(S=="length"||_&&(S=="offset"||S=="parent")||L&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||c(S,A)))&&P.push(S);return P}a(T,"arrayLikeKeys"),t.exports=T}),An=f((r,t)=>{var n=Object.prototype;function o(i){var p=i&&i.constructor,c=typeof p=="function"&&p.prototype||n;return i===c}a(o,"isPrototype"),t.exports=o}),In=f((r,t)=>{function n(o,i){return function(p){return o(i(p))}}a(n,"overArg"),t.exports=n}),Rn=f((r,t)=>{var n=In(),o=n(Object.keys,Object);t.exports=o}),Fn=f((r,t)=>{var n=An(),o=Rn(),i=Object.prototype,p=i.hasOwnProperty;function c(u){if(!n(u))return o(u);var y=[];for(var m in Object(u))p.call(u,m)&&m!="constructor"&&y.push(m);return y}a(c,"baseKeys"),t.exports=c}),Ln=f((r,t)=>{var n=jt(),o=Ye();function i(p){return p!=null&&o(p.length)&&!n(p)}a(i,"isArrayLike"),t.exports=i}),ze=f((r,t)=>{var n=kn(),o=Fn(),i=Ln();function p(c){return i(c)?n(c):o(c)}a(p,"keys"),t.exports=p}),Un=f((r,t)=>{var n=Pn(),o=ze();function i(p,c){return p&&n(p,c,o)}a(i,"baseForOwn"),t.exports=i}),Vn=f((r,t)=>{function n(){this.__data__=[],this.size=0}a(n,"listCacheClear"),t.exports=n}),Lt=f((r,t)=>{function n(o,i){return o===i||o!==o&&i!==i}a(n,"eq"),t.exports=n}),Ie=f((r,t)=>{var n=Lt();function o(i,p){for(var c=i.length;c--;)if(n(i[c][0],p))return c;return-1}a(o,"assocIndexOf"),t.exports=o}),Dn=f((r,t)=>{var n=Ie(),o=Array.prototype,i=o.splice;function p(c){var u=this.__data__,y=n(u,c);if(y<0)return!1;var m=u.length-1;return y==m?u.pop():i.call(u,y,1),--this.size,!0}a(p,"listCacheDelete"),t.exports=p}),Kn=f((r,t)=>{var n=Ie();function o(i){var p=this.__data__,c=n(p,i);return c<0?void 0:p[c][1]}a(o,"listCacheGet"),t.exports=o}),$n=f((r,t)=>{var n=Ie();function o(i){return n(this.__data__,i)>-1}a(o,"listCacheHas"),t.exports=o}),Mn=f((r,t)=>{var n=Ie();function o(i,p){var c=this.__data__,u=n(c,i);return u<0?(++this.size,c.push([i,p])):c[u][1]=p,this}a(o,"listCacheSet"),t.exports=o}),Re=f((r,t)=>{var n=Vn(),o=Dn(),i=Kn(),p=$n(),c=Mn();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Re();function o(){this.__data__=new n,this.size=0}a(o,"stackClear"),t.exports=o}),qn=f((r,t)=>{function n(o){var i=this.__data__,p=i.delete(o);return this.size=i.size,p}a(n,"stackDelete"),t.exports=n}),Bn=f((r,t)=>{function n(o){return this.__data__.get(o)}a(n,"stackGet"),t.exports=n}),Gn=f((r,t)=>{function n(o){return this.__data__.has(o)}a(n,"stackHas"),t.exports=n}),We=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Map");t.exports=i}),Fe=f((r,t)=>{var n=ie(),o=n(Object,"create");t.exports=o}),Yn=f((r,t)=>{var n=Fe();function o(){this.__data__=n?n(null):{},this.size=0}a(o,"hashClear"),t.exports=o}),zn=f((r,t)=>{function n(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}a(n,"hashDelete"),t.exports=n}),Wn=f((r,t)=>{var n=Fe(),o="__lodash_hash_undefined__",i=Object.prototype,p=i.hasOwnProperty;function c(u){var y=this.__data__;if(n){var m=y[u];return m===o?void 0:m}return p.call(y,u)?y[u]:void 0}a(c,"hashGet"),t.exports=c}),Hn=f((r,t)=>{var n=Fe(),o=Object.prototype,i=o.hasOwnProperty;function p(c){var u=this.__data__;return n?u[c]!==void 0:i.call(u,c)}a(p,"hashHas"),t.exports=p}),Xn=f((r,t)=>{var n=Fe(),o="__lodash_hash_undefined__";function i(p,c){var u=this.__data__;return this.size+=this.has(p)?0:1,u[p]=n&&c===void 0?o:c,this}a(i,"hashSet"),t.exports=i}),Qn=f((r,t)=>{var n=Yn(),o=zn(),i=Wn(),p=Hn(),c=Xn();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Qn(),o=Re(),i=We();function p(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}a(p,"mapCacheClear"),t.exports=p}),ea=f((r,t)=>{function n(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}a(n,"isKeyable"),t.exports=n}),Le=f((r,t)=>{var n=ea();function o(i,p){var c=i.__data__;return n(p)?c[typeof p=="string"?"string":"hash"]:c.map}a(o,"getMapData"),t.exports=o}),ta=f((r,t)=>{var n=Le();function o(i){var p=n(this,i).delete(i);return this.size-=p?1:0,p}a(o,"mapCacheDelete"),t.exports=o}),ra=f((r,t)=>{var n=Le();function o(i){return n(this,i).get(i)}a(o,"mapCacheGet"),t.exports=o}),na=f((r,t)=>{var n=Le();function o(i){return n(this,i).has(i)}a(o,"mapCacheHas"),t.exports=o}),aa=f((r,t)=>{var n=Le();function o(i,p){var c=n(this,i),u=c.size;return c.set(i,p),this.size+=c.size==u?0:1,this}a(o,"mapCacheSet"),t.exports=o}),He=f((r,t)=>{var n=Zn(),o=ta(),i=ra(),p=na(),c=aa();function u(y){var m=-1,T=y==null?0:y.length;for(this.clear();++m{var n=Re(),o=We(),i=He(),p=200;function c(u,y){var m=this.__data__;if(m instanceof n){var T=m.__data__;if(!o||T.length{var n=Re(),o=Cn(),i=qn(),p=Bn(),c=Gn(),u=oa();function y(m){var T=this.__data__=new n(m);this.size=T.size}a(y,"Stack"),y.prototype.clear=o,y.prototype.delete=i,y.prototype.get=p,y.prototype.has=c,y.prototype.set=u,t.exports=y}),sa=f((r,t)=>{var n="__lodash_hash_undefined__";function o(i){return this.__data__.set(i,n),this}a(o,"setCacheAdd"),t.exports=o}),ia=f((r,t)=>{function n(o){return this.__data__.has(o)}a(n,"setCacheHas"),t.exports=n}),pa=f((r,t)=>{var n=He(),o=sa(),i=ia();function p(c){var u=-1,y=c==null?0:c.length;for(this.__data__=new n;++u{function n(o,i){for(var p=-1,c=o==null?0:o.length;++p{function n(o,i){return o.has(i)}a(n,"cacheHas"),t.exports=n}),Vt=f((r,t)=>{var n=pa(),o=la(),i=ca(),p=1,c=2;function u(y,m,T,v,x,g){var w=T&p,_=y.length,L=m.length;if(_!=L&&!(w&&L>_))return!1;var R=g.get(y),P=g.get(m);if(R&&P)return R==m&&P==y;var A=-1,S=!0,K=T&c?new n:void 0;for(g.set(y,m),g.set(m,y);++A<_;){var I=y[A],V=m[A];if(v)var j=w?v(V,I,A,m,y,g):v(I,V,A,y,m,g);if(j!==void 0){if(j)continue;S=!1;break}if(K){if(!o(m,function(k,O){if(!i(K,O)&&(I===k||x(I,k,T,v,g)))return K.push(O)})){S=!1;break}}else if(!(I===V||x(I,V,T,v,g))){S=!1;break}}return g.delete(y),g.delete(m),S}a(u,"equalArrays"),t.exports=u}),ua=f((r,t)=>{var n=Z(),o=n.Uint8Array;t.exports=o}),ya=f((r,t)=>{function n(o){var i=-1,p=Array(o.size);return o.forEach(function(c,u){p[++i]=[u,c]}),p}a(n,"mapToArray"),t.exports=n}),da=f((r,t)=>{function n(o){var i=-1,p=Array(o.size);return o.forEach(function(c){p[++i]=c}),p}a(n,"setToArray"),t.exports=n}),ma=f((r,t)=>{var n=Ae(),o=ua(),i=Lt(),p=Vt(),c=ya(),u=da(),y=1,m=2,T="[object Boolean]",v="[object Date]",x="[object Error]",g="[object Map]",w="[object Number]",_="[object RegExp]",L="[object Set]",R="[object String]",P="[object Symbol]",A="[object ArrayBuffer]",S="[object DataView]",K=n?n.prototype:void 0,I=K?K.valueOf:void 0;function V(j,k,O,$,G,E,Y){switch(O){case S:if(j.byteLength!=k.byteLength||j.byteOffset!=k.byteOffset)return!1;j=j.buffer,k=k.buffer;case A:return!(j.byteLength!=k.byteLength||!E(new o(j),new o(k)));case T:case v:case w:return i(+j,+k);case x:return j.name==k.name&&j.message==k.message;case _:case R:return j==k+"";case g:var C=c;case L:var b=$&y;if(C||(C=u),j.size!=k.size&&!b)return!1;var oe=Y.get(j);if(oe)return oe==k;$|=m,Y.set(j,k);var ee=p(C(j),C(k),$,G,E,Y);return Y.delete(j),ee;case P:if(I)return I.call(j)==I.call(k)}return!1}a(V,"equalByTag"),t.exports=V}),fa=f((r,t)=>{function n(o,i){for(var p=-1,c=i.length,u=o.length;++p{var n=fa(),o=ne();function i(p,c,u){var y=c(p);return o(p)?y:n(y,u(p))}a(i,"baseGetAllKeys"),t.exports=i}),ha=f((r,t)=>{function n(o,i){for(var p=-1,c=o==null?0:o.length,u=0,y=[];++p{function n(){return[]}a(n,"stubArray"),t.exports=n}),ga=f((r,t)=>{var n=ha(),o=va(),i=Object.prototype,p=i.propertyIsEnumerable,c=Object.getOwnPropertySymbols,u=c?function(y){return y==null?[]:(y=Object(y),n(c(y),function(m){return p.call(y,m)}))}:o;t.exports=u}),Ja=f((r,t)=>{var n=Ta(),o=ga(),i=ze();function p(c){return n(c,i,o)}a(p,"getAllKeys"),t.exports=p}),ba=f((r,t)=>{var n=Ja(),o=1,i=Object.prototype,p=i.hasOwnProperty;function c(u,y,m,T,v,x){var g=m&o,w=n(u),_=w.length,L=n(y),R=L.length;if(_!=R&&!g)return!1;for(var P=_;P--;){var A=w[P];if(!(g?A in y:p.call(y,A)))return!1}var S=x.get(u),K=x.get(y);if(S&&K)return S==y&&K==u;var I=!0;x.set(u,y),x.set(y,u);for(var V=g;++P<_;){A=w[P];var j=u[A],k=y[A];if(T)var O=g?T(k,j,A,y,u,x):T(j,k,A,u,y,x);if(!(O===void 0?j===k||v(j,k,m,T,x):O)){I=!1;break}V||(V=A=="constructor")}if(I&&!V){var $=u.constructor,G=y.constructor;$!=G&&"constructor"in u&&"constructor"in y&&!(typeof $=="function"&&$ instanceof $&&typeof G=="function"&&G instanceof G)&&(I=!1)}return x.delete(u),x.delete(y),I}a(c,"equalObjects"),t.exports=c}),xa=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"DataView");t.exports=i}),wa=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Promise");t.exports=i}),Pa=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"Set");t.exports=i}),Na=f((r,t)=>{var n=ie(),o=Z(),i=n(o,"WeakMap");t.exports=i}),Oa=f((r,t)=>{var n=xa(),o=We(),i=wa(),p=Pa(),c=Na(),u=ve(),y=kt(),m="[object Map]",T="[object Object]",v="[object Promise]",x="[object Set]",g="[object WeakMap]",w="[object DataView]",_=y(n),L=y(o),R=y(i),P=y(p),A=y(c),S=u;(n&&S(new n(new ArrayBuffer(1)))!=w||o&&S(new o)!=m||i&&S(i.resolve())!=v||p&&S(new p)!=x||c&&S(new c)!=g)&&(S=a(function(K){var I=u(K),V=I==T?K.constructor:void 0,j=V?y(V):"";if(j)switch(j){case _:return w;case L:return m;case R:return v;case P:return x;case A:return g}return I},"getTag")),t.exports=S}),_a=f((r,t)=>{var n=Ut(),o=Vt(),i=ma(),p=ba(),c=Oa(),u=ne(),y=It(),m=Ft(),T=1,v="[object Arguments]",x="[object Array]",g="[object Object]",w=Object.prototype,_=w.hasOwnProperty;function L(R,P,A,S,K,I){var V=u(R),j=u(P),k=V?x:c(R),O=j?x:c(P);k=k==v?g:k,O=O==v?g:O;var $=k==g,G=O==g,E=k==O;if(E&&y(R)){if(!y(P))return!1;V=!0,$=!1}if(E&&!$)return I||(I=new n),V||m(R)?o(R,P,A,S,K,I):i(R,P,k,A,S,K,I);if(!(A&T)){var Y=$&&_.call(R,"__wrapped__"),C=G&&_.call(P,"__wrapped__");if(Y||C){var b=Y?R.value():R,oe=C?P.value():P;return I||(I=new n),K(b,oe,A,S,I)}}return E?(I||(I=new n),p(R,P,A,S,K,I)):!1}a(L,"baseIsEqualDeep"),t.exports=L}),Dt=f((r,t)=>{var n=_a(),o=ge();function i(p,c,u,y,m){return p===c?!0:p==null||c==null||!o(p)&&!o(c)?p!==p&&c!==c:n(p,c,u,y,i,m)}a(i,"baseIsEqual"),t.exports=i}),Ea=f((r,t)=>{var n=Ut(),o=Dt(),i=1,p=2;function c(u,y,m,T){var v=m.length,x=v,g=!T;if(u==null)return!x;for(u=Object(u);v--;){var w=m[v];if(g&&w[2]?w[1]!==u[w[0]]:!(w[0]in u))return!1}for(;++v{var n=Ge();function o(i){return i===i&&!n(i)}a(o,"isStrictComparable"),t.exports=o}),Sa=f((r,t)=>{var n=Kt(),o=ze();function i(p){for(var c=o(p),u=c.length;u--;){var y=c[u],m=p[y];c[u]=[y,m,n(m)]}return c}a(i,"getMatchData"),t.exports=i}),$t=f((r,t)=>{function n(o,i){return function(p){return p==null?!1:p[o]===i&&(i!==void 0||o in Object(p))}}a(n,"matchesStrictComparable"),t.exports=n}),ja=f((r,t)=>{var n=Ea(),o=Sa(),i=$t();function p(c){var u=o(c);return u.length==1&&u[0][2]?i(u[0][0],u[0][1]):function(y){return y===c||n(y,c,u)}}a(p,"baseMatches"),t.exports=p}),Xe=f((r,t)=>{var n=ve(),o=ge(),i="[object Symbol]";function p(c){return typeof c=="symbol"||o(c)&&n(c)==i}a(p,"isSymbol"),t.exports=p}),Qe=f((r,t)=>{var n=ne(),o=Xe(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,p=/^\w*$/;function c(u,y){if(n(u))return!1;var m=typeof u;return m=="number"||m=="symbol"||m=="boolean"||u==null||o(u)?!0:p.test(u)||!i.test(u)||y!=null&&u in Object(y)}a(c,"isKey"),t.exports=c}),ka=f((r,t)=>{var n=He(),o="Expected a function";function i(p,c){if(typeof p!="function"||c!=null&&typeof c!="function")throw new TypeError(o);var u=a(function(){var y=arguments,m=c?c.apply(this,y):y[0],T=u.cache;if(T.has(m))return T.get(m);var v=p.apply(this,y);return u.cache=T.set(m,v)||T,v},"memoized");return u.cache=new(i.Cache||n),u}a(i,"memoize"),i.Cache=n,t.exports=i}),Aa=f((r,t)=>{var n=ka(),o=500;function i(p){var c=n(p,function(y){return u.size===o&&u.clear(),y}),u=c.cache;return c}a(i,"memoizeCapped"),t.exports=i}),Ia=f((r,t)=>{var n=Aa(),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,p=n(function(c){var u=[];return c.charCodeAt(0)===46&&u.push(""),c.replace(o,function(y,m,T,v){u.push(T?v.replace(i,"$1"):m||y)}),u});t.exports=p}),Ra=f((r,t)=>{function n(o,i){for(var p=-1,c=o==null?0:o.length,u=Array(c);++p{var n=Ae(),o=Ra(),i=ne(),p=Xe(),c=1/0,u=n?n.prototype:void 0,y=u?u.toString:void 0;function m(T){if(typeof T=="string")return T;if(i(T))return o(T,m)+"";if(p(T))return y?y.call(T):"";var v=T+"";return v=="0"&&1/T==-c?"-0":v}a(m,"baseToString"),t.exports=m}),La=f((r,t)=>{var n=Fa();function o(i){return i==null?"":n(i)}a(o,"toString"),t.exports=o}),Mt=f((r,t)=>{var n=ne(),o=Qe(),i=Ia(),p=La();function c(u,y){return n(u)?u:o(u,y)?[u]:i(p(u))}a(c,"castPath"),t.exports=c}),Ue=f((r,t)=>{var n=Xe(),o=1/0;function i(p){if(typeof p=="string"||n(p))return p;var c=p+"";return c=="0"&&1/p==-o?"-0":c}a(i,"toKey"),t.exports=i}),Ct=f((r,t)=>{var n=Mt(),o=Ue();function i(p,c){c=n(c,p);for(var u=0,y=c.length;p!=null&&u{var n=Ct();function o(i,p,c){var u=i==null?void 0:n(i,p);return u===void 0?c:u}a(o,"get"),t.exports=o}),Va=f((r,t)=>{function n(o,i){return o!=null&&i in Object(o)}a(n,"baseHasIn"),t.exports=n}),Da=f((r,t)=>{var n=Mt(),o=At(),i=ne(),p=Rt(),c=Ye(),u=Ue();function y(m,T,v){T=n(T,m);for(var x=-1,g=T.length,w=!1;++x{var n=Va(),o=Da();function i(p,c){return p!=null&&o(p,c,n)}a(i,"hasIn"),t.exports=i}),$a=f((r,t)=>{var n=Dt(),o=Ua(),i=Ka(),p=Qe(),c=Kt(),u=$t(),y=Ue(),m=1,T=2;function v(x,g){return p(x)&&c(g)?u(y(x),g):function(w){var _=o(w,x);return _===void 0&&_===g?i(w,x):n(g,_,m|T)}}a(v,"baseMatchesProperty"),t.exports=v}),Ma=f((r,t)=>{function n(o){return o}a(n,"identity"),t.exports=n}),Ca=f((r,t)=>{function n(o){return function(i){return i==null?void 0:i[o]}}a(n,"baseProperty"),t.exports=n}),qa=f((r,t)=>{var n=Ct();function o(i){return function(p){return n(p,i)}}a(o,"basePropertyDeep"),t.exports=o}),Ba=f((r,t)=>{var n=Ca(),o=qa(),i=Qe(),p=Ue();function c(u){return i(u)?n(p(u)):o(u)}a(c,"property"),t.exports=c}),Ga=f((r,t)=>{var n=ja(),o=$a(),i=Ma(),p=ne(),c=Ba();function u(y){return typeof y=="function"?y:y==null?i:typeof y=="object"?p(y)?o(y[0],y[1]):n(y):c(y)}a(u,"baseIteratee"),t.exports=u}),Ya=f((r,t)=>{var n=xn(),o=Un(),i=Ga();function p(c,u){var y={};return u=i(u,3),o(c,function(m,T,v){n(y,T,u(m,T,v))}),y}a(p,"mapValues"),t.exports=p}),za=f((r,t)=>{(function(n,o){typeof r=="object"&&typeof t<"u"?o(r):typeof define=="function"&&define.amd?define(["exports"],o):(n=typeof globalThis<"u"?globalThis:n||self,o(n.jtpp={}))})(r,function(n){function o(e){return e.text!==void 0&&e.text!==""?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}a(o,"tokenToString");let i=class qt extends Error{constructor(s){super(`No parslet found for token: ${o(s)}`),this.token=s,Object.setPrototypeOf(this,qt.prototype)}getToken(){return this.token}};a(i,"NoParsletFoundError");let p=i,c=class Bt extends Error{constructor(s){super(`The parsing ended early. The next token was: ${o(s)}`),this.token=s,Object.setPrototypeOf(this,Bt.prototype)}getToken(){return this.token}};a(c,"EarlyEndOfParseError");let u=c,y=class Gt extends Error{constructor(s,l){let d=`Unexpected type: '${s.type}'.`;l!==void 0&&(d+=` Message: ${l}`),super(d),Object.setPrototypeOf(this,Gt.prototype)}};a(y,"UnexpectedTypeError");let m=y;function T(e){return s=>s.startsWith(e)?{type:e,text:e}:null}a(T,"makePunctuationRule");function v(e){let s=0,l,d=e[0],h=!1;if(d!=="'"&&d!=='"')return null;for(;s{let s=w(e);return s==null?null:{type:"Identifier",text:s}},"identifierRule");function P(e){return s=>{if(!s.startsWith(e))return null;let l=s[e.length];return l!==void 0&&g.test(l)?null:{type:e,text:e}}}a(P,"makeKeyWordRule");let A=a(e=>{let s=v(e);return s==null?null:{type:"StringValue",text:s}},"stringValueRule"),S=a(e=>e.length>0?null:{type:"EOF",text:""},"eofRule"),K=a(e=>{let s=L(e);return s===null?null:{type:"Number",text:s}},"numberRule"),I=[S,T("=>"),T("("),T(")"),T("{"),T("}"),T("["),T("]"),T("|"),T("&"),T("<"),T(">"),T(","),T(";"),T("*"),T("?"),T("!"),T("="),T(":"),T("..."),T("."),T("#"),T("~"),T("/"),T("@"),P("undefined"),P("null"),P("function"),P("this"),P("new"),P("module"),P("event"),P("external"),P("typeof"),P("keyof"),P("readonly"),P("import"),P("is"),P("in"),K,R,A],V=/^\s*\n\s*/,j=class ke{static create(s){let l=this.read(s);s=l.text;let d=this.read(s);return s=d.text,new ke(s,void 0,l.token,d.token)}constructor(s,l,d,h){this.text="",this.text=s,this.previous=l,this.current=d,this.next=h}static read(s,l=!1){l=l||V.test(s),s=s.trim();for(let d of I){let h=d(s);if(h!==null){let J=Object.assign(Object.assign({},h),{startOfLine:l});return s=s.slice(J.text.length),{text:s,token:J}}}throw new Error("Unexpected Token "+s)}advance(){let s=ke.read(this.text);return new ke(s.text,this.current,this.next,s.token)}};a(j,"Lexer");let k=j;function O(e){if(e===void 0)throw new Error("Unexpected undefined");if(e.type==="JsdocTypeKeyValue"||e.type==="JsdocTypeParameterList"||e.type==="JsdocTypeProperty"||e.type==="JsdocTypeReadonlyProperty"||e.type==="JsdocTypeObjectField"||e.type==="JsdocTypeJsdocObjectField"||e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType")throw new m(e);return e}a(O,"assertRootResult");function $(e){return e.type==="JsdocTypeKeyValue"?E(e):O(e)}a($,"assertPlainKeyValueOrRootResult");function G(e){return e.type==="JsdocTypeName"?e:E(e)}a(G,"assertPlainKeyValueOrNameResult");function E(e){if(e.type!=="JsdocTypeKeyValue")throw new m(e);return e}a(E,"assertPlainKeyValueResult");function Y(e){var s;if(e.type==="JsdocTypeVariadic"){if(((s=e.element)===null||s===void 0?void 0:s.type)==="JsdocTypeName")return e;throw new m(e)}if(e.type!=="JsdocTypeNumber"&&e.type!=="JsdocTypeName")throw new m(e);return e}a(Y,"assertNumberOrVariadicNameResult");function C(e){return e.type==="JsdocTypeIndexSignature"||e.type==="JsdocTypeMappedType"}a(C,"isSquaredProperty");var b;(function(e){e[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.UNION=4]="UNION",e[e.INTERSECTION=5]="INTERSECTION",e[e.PREFIX=6]="PREFIX",e[e.INFIX=7]="INFIX",e[e.TUPLE=8]="TUPLE",e[e.SYMBOL=9]="SYMBOL",e[e.OPTIONAL=10]="OPTIONAL",e[e.NULLABLE=11]="NULLABLE",e[e.KEY_OF_TYPE_OF=12]="KEY_OF_TYPE_OF",e[e.FUNCTION=13]="FUNCTION",e[e.ARROW=14]="ARROW",e[e.ARRAY_BRACKETS=15]="ARRAY_BRACKETS",e[e.GENERIC=16]="GENERIC",e[e.NAME_PATH=17]="NAME_PATH",e[e.PARENTHESIS=18]="PARENTHESIS",e[e.SPECIAL_TYPES=19]="SPECIAL_TYPES"})(b||(b={}));let oe=class{constructor(s,l,d){this.grammar=s,typeof l=="string"?this._lexer=k.create(l):this._lexer=l,this.baseParser=d}get lexer(){return this._lexer}parse(){let s=this.parseType(b.ALL);if(this.lexer.current.type!=="EOF")throw new u(this.lexer.current);return s}parseType(s){return O(this.parseIntermediateType(s))}parseIntermediateType(s){let l=this.tryParslets(null,s);if(l===null)throw new p(this.lexer.current);return this.parseInfixIntermediateType(l,s)}parseInfixIntermediateType(s,l){let d=this.tryParslets(s,l);for(;d!==null;)s=d,d=this.tryParslets(s,l);return s}tryParslets(s,l){for(let d of this.grammar){let h=d(this,l,s);if(h!==null)return h}return null}consume(s){return Array.isArray(s)||(s=[s]),s.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(s){this._lexer=s.lexer}};a(oe,"Parser");let ee=oe;function De(e){return e==="EOF"||e==="|"||e===","||e===")"||e===">"}a(De,"isQuestionMarkUnknownType");let Ke=a((e,s,l)=>{let d=e.lexer.current.type,h=e.lexer.next.type;return l==null&&d==="?"&&!De(h)||l!=null&&d==="?"?(e.consume("?"),l==null?{type:"JsdocTypeNullable",element:e.parseType(b.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:O(l),meta:{position:"suffix"}}):null},"nullableParslet");function F(e){let s=a((l,d,h)=>{let J=l.lexer.current.type,N=l.lexer.next.type;if(h===null){if("parsePrefix"in e&&e.accept(J,N))return e.parsePrefix(l)}else if("parseInfix"in e&&e.precedence>d&&e.accept(J,N))return e.parseInfix(l,h);return null},"parslet");return Object.defineProperty(s,"name",{value:e.name}),s}a(F,"composeParslet");let be=F({name:"optionalParslet",accept:a(e=>e==="=","accept"),precedence:b.OPTIONAL,parsePrefix:a(e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(b.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((e,s)=>(e.consume("="),{type:"JsdocTypeOptional",element:O(s),meta:{position:"suffix"}}),"parseInfix")}),xe=F({name:"numberParslet",accept:a(e=>e==="Number","accept"),parsePrefix:a(e=>{let s=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:s}},"parsePrefix")}),Kr=F({name:"parenthesisParslet",accept:a(e=>e==="(","accept"),parsePrefix:a(e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let s=e.parseIntermediateType(b.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return s.type==="JsdocTypeParameterList"?s:s.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[s]}:{type:"JsdocTypeParenthesis",element:O(s)}},"parsePrefix")}),$r=F({name:"specialTypesParslet",accept:a((e,s)=>e==="?"&&De(s)||e==="null"||e==="undefined"||e==="*","accept"),parsePrefix:a(e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)},"parsePrefix")}),Mr=F({name:"notNullableParslet",accept:a(e=>e==="!","accept"),precedence:b.NULLABLE,parsePrefix:a(e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(b.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((e,s)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:O(s),meta:{position:"suffix"}}),"parseInfix")});function ut({allowTrailingComma:e}){return F({name:"parameterListParslet",accept:a(s=>s===",","accept"),precedence:b.PARAMETER_LIST,parseInfix:a((s,l)=>{let d=[$(l)];s.consume(",");do try{let h=s.parseIntermediateType(b.PARAMETER_LIST);d.push($(h))}catch(h){if(e&&h instanceof p)break;throw h}while(s.consume(","));if(d.length>0&&d.slice(0,-1).some(h=>h.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:d}},"parseInfix")})}a(ut,"createParameterListParslet");let Cr=F({name:"genericParslet",accept:a((e,s)=>e==="<"||e==="."&&s==="<","accept"),precedence:b.GENERIC,parseInfix:a((e,s)=>{let l=e.consume(".");e.consume("<");let d=[];do d.push(e.parseType(b.PARAMETER_LIST));while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:O(s),elements:d,meta:{brackets:"angle",dot:l}}},"parseInfix")}),qr=F({name:"unionParslet",accept:a(e=>e==="|","accept"),precedence:b.UNION,parseInfix:a((e,s)=>{e.consume("|");let l=[];do l.push(e.parseType(b.UNION));while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[O(s),...l]}},"parseInfix")}),$e=[Ke,be,xe,Kr,$r,Mr,ut({allowTrailingComma:!0}),Cr,qr,be];function ce({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:s,pathGrammar:l}){return a(function(d,h,J){if(J==null||h>=b.NAME_PATH)return null;let N=d.lexer.current.type,U=d.lexer.next.type;if(!(N==="."&&U!=="<"||N==="["&&(e||J.type==="JsdocTypeName")||s&&(N==="~"||N==="#")))return null;let D,q=!1;d.consume(".")?D="property":d.consume("[")?(D="property-brackets",q=!0):d.consume("~")?D="inner":(d.consume("#"),D="instance");let Q=l!==null?new ee(l,d.lexer,d):d,z=Q.parseIntermediateType(b.NAME_PATH);d.acceptLexerState(Q);let me;switch(z.type){case"JsdocTypeName":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":me={type:"JsdocTypeProperty",value:z.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":me={type:"JsdocTypeProperty",value:z.value,meta:{quote:z.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(z.specialType==="event")me=z;else throw new m(z,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new m(z,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(q&&!d.consume("]")){let _t=d.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${_t.type}' with text '${_t.text}'`)}return{type:"JsdocTypeNamePath",left:O(J),right:me,pathType:D}},"namePathParslet")}a(ce,"createNamePathParslet");function W({allowedAdditionalTokens:e}){return F({name:"nameParslet",accept:a(s=>s==="Identifier"||s==="this"||s==="new"||e.includes(s),"accept"),parsePrefix:a(s=>{let{type:l,text:d}=s.lexer.current;return s.consume(l),{type:"JsdocTypeName",value:d}},"parsePrefix")})}a(W,"createNameParslet");let ue=F({name:"stringValueParslet",accept:a(e=>e==="StringValue","accept"),parsePrefix:a(e=>{let s=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:s.slice(1,-1),meta:{quote:s[0]==="'"?"single":"double"}}},"parsePrefix")});function ye({pathGrammar:e,allowedTypes:s}){return F({name:"specialNamePathParslet",accept:a(l=>s.includes(l),"accept"),parsePrefix:a(l=>{let d=l.lexer.current.type;if(l.consume(d),!l.consume(":"))return{type:"JsdocTypeName",value:d};let h,J=l.lexer.current;if(l.consume("StringValue"))h={type:"JsdocTypeSpecialNamePath",value:J.text.slice(1,-1),specialType:d,meta:{quote:J.text[0]==="'"?"single":"double"}};else{let D="",q=["Identifier","@","/"];for(;q.some(Q=>l.consume(Q));)D+=J.text,J=l.lexer.current;h={type:"JsdocTypeSpecialNamePath",value:D,specialType:d,meta:{quote:void 0}}}let N=new ee(e,l.lexer,l),U=N.parseInfixIntermediateType(h,b.ALL);return l.acceptLexerState(N),O(U)},"parsePrefix")})}a(ye,"createSpecialNamePathParslet");let yt=[W({allowedAdditionalTokens:["external","module"]}),ue,xe,ce({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],pe=[...yt,ye({allowedTypes:["event"],pathGrammar:yt})];function we(e){let s;if(e.type==="JsdocTypeParameterList")s=e.elements;else if(e.type==="JsdocTypeParenthesis")s=[e.element];else throw new m(e);return s.map(l=>$(l))}a(we,"getParameters");function dt(e){let s=we(e);if(s.some(l=>l.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return s}a(dt,"getUnnamedParameters");function Pe({allowNamedParameters:e,allowNoReturnType:s,allowWithoutParenthesis:l,allowNewAsFunctionKeyword:d}){return F({name:"functionParslet",accept:a((h,J)=>h==="function"||d&&h==="new"&&J==="(","accept"),parsePrefix:a(h=>{let J=h.consume("new");h.consume("function");let N=h.lexer.current.type==="(";if(!N){if(!l)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let U={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:J,parenthesis:N},D=h.parseIntermediateType(b.FUNCTION);if(e===void 0)U.parameters=dt(D);else{if(J&&D.type==="JsdocTypeFunction"&&D.arrow)return U=D,U.constructor=!0,U;U.parameters=we(D);for(let q of U.parameters)if(q.type==="JsdocTypeKeyValue"&&!e.includes(q.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${q.type}`)}if(h.consume(":"))U.returnType=h.parseType(b.PREFIX);else if(!s)throw new Error("function is missing return type");return U},"parsePrefix")})}a(Pe,"createFunctionParslet");function Ne({allowPostfix:e,allowEnclosingBrackets:s}){return F({name:"variadicParslet",accept:a(l=>l==="...","accept"),precedence:b.PREFIX,parsePrefix:a(l=>{l.consume("...");let d=s&&l.consume("[");try{let h=l.parseType(b.PREFIX);if(d&&!l.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:O(h),meta:{position:"prefix",squareBrackets:d}}}catch(h){if(h instanceof p){if(d)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw h}},"parsePrefix"),parseInfix:e?(l,d)=>(l.consume("..."),{type:"JsdocTypeVariadic",element:O(d),meta:{position:"suffix",squareBrackets:!1}}):void 0})}a(Ne,"createVariadicParslet");let mt=F({name:"symbolParslet",accept:a(e=>e==="(","accept"),precedence:b.SYMBOL,parseInfix:a((e,s)=>{if(s.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let l={type:"JsdocTypeSymbol",value:s.value};if(!e.consume(")")){let d=e.parseIntermediateType(b.SYMBOL);if(l.element=Y(d),!e.consume(")"))throw new Error("Symbol does not end after value")}return l},"parseInfix")}),ft=F({name:"arrayBracketsParslet",precedence:b.ARRAY_BRACKETS,accept:a((e,s)=>e==="["&&s==="]","accept"),parseInfix:a((e,s)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[O(s)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function Oe({objectFieldGrammar:e,allowKeyTypes:s}){return F({name:"objectParslet",accept:a(l=>l==="{","accept"),parsePrefix:a(l=>{l.consume("{");let d={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!l.consume("}")){let h,J=new ee(e,l.lexer,l);for(;;){J.acceptLexerState(l);let N=J.parseIntermediateType(b.OBJECT);l.acceptLexerState(J),N===void 0&&s&&(N=l.parseIntermediateType(b.OBJECT));let U=!1;if(N.type==="JsdocTypeNullable"&&(U=!0,N=N.element),N.type==="JsdocTypeNumber"||N.type==="JsdocTypeName"||N.type==="JsdocTypeStringValue"){let D;N.type==="JsdocTypeStringValue"&&(D=N.meta.quote),d.elements.push({type:"JsdocTypeObjectField",key:N.value.toString(),right:void 0,optional:U,readonly:!1,meta:{quote:D}})}else if(N.type==="JsdocTypeObjectField"||N.type==="JsdocTypeJsdocObjectField")d.elements.push(N);else throw new m(N);if(l.lexer.current.startOfLine)h="linebreak";else if(l.consume(","))h="comma";else if(l.consume(";"))h="semicolon";else break;if(l.lexer.current.type==="}")break}if(d.meta.separator=h??"comma",!l.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return d},"parsePrefix")})}a(Oe,"createObjectParslet");function _e({allowSquaredProperties:e,allowKeyTypes:s,allowReadonly:l,allowOptional:d}){return F({name:"objectFieldParslet",precedence:b.KEY_VALUE,accept:a(h=>h===":","accept"),parseInfix:a((h,J)=>{var N;let U=!1,D=!1;d&&J.type==="JsdocTypeNullable"&&(U=!0,J=J.element),l&&J.type==="JsdocTypeReadonlyProperty"&&(D=!0,J=J.element);let q=(N=h.baseParser)!==null&&N!==void 0?N:h;if(q.acceptLexerState(h),J.type==="JsdocTypeNumber"||J.type==="JsdocTypeName"||J.type==="JsdocTypeStringValue"||C(J)){if(C(J)&&!e)throw new m(J);q.consume(":");let Q;J.type==="JsdocTypeStringValue"&&(Q=J.meta.quote);let z=q.parseType(b.KEY_VALUE);return h.acceptLexerState(q),{type:"JsdocTypeObjectField",key:C(J)?J:J.value.toString(),right:z,optional:U,readonly:D,meta:{quote:Q}}}else{if(!s)throw new m(J);q.consume(":");let Q=q.parseType(b.KEY_VALUE);return h.acceptLexerState(q),{type:"JsdocTypeJsdocObjectField",left:O(J),right:Q}}},"parseInfix")})}a(_e,"createObjectFieldParslet");function Ee({allowOptional:e,allowVariadic:s}){return F({name:"keyValueParslet",precedence:b.KEY_VALUE,accept:a(l=>l===":","accept"),parseInfix:a((l,d)=>{let h=!1,J=!1;if(e&&d.type==="JsdocTypeNullable"&&(h=!0,d=d.element),s&&d.type==="JsdocTypeVariadic"&&d.element!==void 0&&(J=!0,d=d.element),d.type!=="JsdocTypeName")throw new m(d);l.consume(":");let N=l.parseType(b.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:d.value,right:N,optional:h,variadic:J}},"parseInfix")})}a(Ee,"createKeyValueParslet");let Tt=[...$e,Pe({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ue,ye({allowedTypes:["module","external","event"],pathGrammar:pe}),Ne({allowEnclosingBrackets:!0,allowPostfix:!0}),W({allowedAdditionalTokens:["keyof"]}),mt,ft,ce({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:pe})],Br=[...Tt,Oe({objectFieldGrammar:[W({allowedAdditionalTokens:["module","in"]}),_e({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Tt],allowKeyTypes:!0}),Ee({allowOptional:!0,allowVariadic:!0})],ht=F({name:"typeOfParslet",accept:a(e=>e==="typeof","accept"),parsePrefix:a(e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:O(e.parseType(b.KEY_OF_TYPE_OF))}),"parsePrefix")}),Gr=[W({allowedAdditionalTokens:["module","keyof","event","external","in"]}),Ke,be,ue,xe,_e({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Yr=[...$e,Oe({allowKeyTypes:!1,objectFieldGrammar:Gr}),W({allowedAdditionalTokens:["event","external","in"]}),ht,Pe({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["keyof"]}),ye({allowedTypes:["module"],pathGrammar:pe}),ce({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:pe}),Ee({allowOptional:!1,allowVariadic:!1}),mt];function vt({allowQuestionMark:e}){return F({name:"tupleParslet",accept:a(s=>s==="[","accept"),parsePrefix:a(s=>{s.consume("[");let l={type:"JsdocTypeTuple",elements:[]};if(s.consume("]"))return l;let d=s.parseIntermediateType(b.ALL);if(d.type==="JsdocTypeParameterList"?d.elements[0].type==="JsdocTypeKeyValue"?l.elements=d.elements.map(E):l.elements=d.elements.map(O):d.type==="JsdocTypeKeyValue"?l.elements=[E(d)]:l.elements=[O(d)],!s.consume("]"))throw new Error("Unterminated '['");if(!e&&l.elements.some(h=>h.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return l},"parsePrefix")})}a(vt,"createTupleParslet");let zr=F({name:"keyOfParslet",accept:a(e=>e==="keyof","accept"),parsePrefix:a(e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:O(e.parseType(b.KEY_OF_TYPE_OF))}),"parsePrefix")}),Wr=F({name:"importParslet",accept:a(e=>e==="import","accept"),parsePrefix:a(e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let s=e.parseType(b.PREFIX);if(s.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:s}},"parsePrefix")}),Hr=F({name:"readonlyPropertyParslet",accept:a(e=>e==="readonly","accept"),parsePrefix:a(e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(b.KEY_VALUE)}),"parsePrefix")}),Xr=F({name:"arrowFunctionParslet",precedence:b.ARROW,accept:a(e=>e==="=>","accept"),parseInfix:a((e,s)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:we(s).map(G),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(b.OBJECT)}),"parseInfix")}),Qr=F({name:"intersectionParslet",accept:a(e=>e==="&","accept"),precedence:b.INTERSECTION,parseInfix:a((e,s)=>{e.consume("&");let l=[];do l.push(e.parseType(b.INTERSECTION));while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[O(s),...l]}},"parseInfix")}),Zr=F({name:"predicateParslet",precedence:b.INFIX,accept:a(e=>e==="is","accept"),parseInfix:a((e,s)=>{if(s.type!=="JsdocTypeName")throw new m(s,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:s,right:O(e.parseIntermediateType(b.INFIX))}},"parseInfix")}),en=F({name:"objectSquareBracketPropertyParslet",accept:a(e=>e==="[","accept"),parsePrefix:a(e=>{if(e.baseParser===void 0)throw new Error("Only allowed inside object grammar");e.consume("[");let s=e.lexer.current.text;e.consume("Identifier");let l;if(e.consume(":")){let d=e.baseParser;d.acceptLexerState(e),l={type:"JsdocTypeIndexSignature",key:s,right:d.parseType(b.ARRAY_BRACKETS)},e.acceptLexerState(d)}else if(e.consume("in")){let d=e.baseParser;d.acceptLexerState(e),l={type:"JsdocTypeMappedType",key:s,right:d.parseType(b.ARRAY_BRACKETS)},e.acceptLexerState(d)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!e.consume("]"))throw new Error("Unterminated square brackets");return l},"parsePrefix")}),tn=[Hr,W({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),Ke,be,ue,xe,_e({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),en],rn=[...$e,Oe({allowKeyTypes:!1,objectFieldGrammar:tn}),ht,zr,Wr,ue,Pe({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),vt({allowQuestionMark:!1}),Ne({allowEnclosingBrackets:!1,allowPostfix:!1}),W({allowedAdditionalTokens:["event","external","in"]}),ye({allowedTypes:["module"],pathGrammar:pe}),ft,Xr,ce({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:pe}),Qr,Zr,Ee({allowVariadic:!0,allowOptional:!0})];function Me(e,s){switch(s){case"closure":return new ee(Yr,e).parse();case"jsdoc":return new ee(Br,e).parse();case"typescript":return new ee(rn,e).parse()}}a(Me,"parse");function gt(e,s=["typescript","closure","jsdoc"]){let l;for(let d of s)try{return Me(e,d)}catch(h){l=h}throw l}a(gt,"tryParse");function le(e,s){let l=e[s.type];if(l===void 0)throw new Error(`In this set of transform rules exists no rule for type ${s.type}.`);return l(s,d=>le(e,d))}a(le,"transform");function B(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}a(B,"notAvailableTransform");function Ce(e){let s={params:[]};for(let l of e.parameters)l.type==="JsdocTypeKeyValue"?l.key==="this"?s.this=l.right:l.key==="new"?s.new=l.right:s.params.push(l):s.params.push(l);return s}a(Ce,"extractSpecialParams");function de(e,s,l){return e==="prefix"?l+s:s+l}a(de,"applyPosition");function H(e,s){switch(s){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}a(H,"quote");function qe(){return{JsdocTypeParenthesis:a((e,s)=>`(${e.element!==void 0?s(e.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:a((e,s)=>`keyof ${s(e.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:a((e,s)=>{if(e.arrow){if(e.returnType===void 0)throw new Error("Arrow function needs a return type.");let l=`(${e.parameters.map(s).join(", ")}) => ${s(e.returnType)}`;return e.constructor&&(l="new "+l),l}else{let l=e.constructor?"new":"function";return e.parenthesis&&(l+=`(${e.parameters.map(s).join(", ")})`,e.returnType!==void 0&&(l+=`: ${s(e.returnType)}`)),l}},"JsdocTypeFunction"),JsdocTypeName:a(e=>e.value,"JsdocTypeName"),JsdocTypeTuple:a((e,s)=>`[${e.elements.map(s).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:a((e,s)=>e.meta.position===void 0?"...":de(e.meta.position,s(e.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:a((e,s)=>{let l=s(e.left),d=s(e.right);switch(e.pathType){case"inner":return`${l}~${d}`;case"instance":return`${l}#${d}`;case"property":return`${l}.${d}`;case"property-brackets":return`${l}[${d}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:a(e=>H(e.value,e.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:a(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:a((e,s)=>{if(e.meta.brackets==="square"){let l=e.elements[0],d=s(l);return l.type==="JsdocTypeUnion"||l.type==="JsdocTypeIntersection"?`(${d})[]`:`${d}[]`}else return`${s(e.left)}${e.meta.dot?".":""}<${e.elements.map(s).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:a((e,s)=>`import(${s(e.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:a((e,s)=>{let l="";return e.readonly&&(l+="readonly "),typeof e.key=="string"?l+=H(e.key,e.meta.quote):l+=s(e.key),e.optional&&(l+="?"),e.right===void 0?l:l+`: ${s(e.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>`${s(e.left)}: ${s(e.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>{let l=e.key;return e.optional&&(l+="?"),e.variadic&&(l="..."+l),e.right===void 0?l:l+`: ${s(e.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:a(e=>`${e.specialType}:${H(e.value,e.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:a((e,s)=>de(e.meta.position,s(e.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:a(()=>"null","JsdocTypeNull"),JsdocTypeNullable:a((e,s)=>de(e.meta.position,s(e.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:a(e=>e.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:a((e,s)=>`{${e.elements.map(s).join((e.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:a((e,s)=>de(e.meta.position,s(e.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:a((e,s)=>`${e.value}(${e.element!==void 0?s(e.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:a((e,s)=>`typeof ${s(e.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:a(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:a((e,s)=>e.elements.map(s).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:a(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:a((e,s)=>e.elements.map(s).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:a(e=>H(e.value,e.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:a((e,s)=>`${s(e.left)} is ${s(e.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:a((e,s)=>`[${e.key}: ${s(e.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((e,s)=>`[${e.key} in ${s(e.right)}]`,"JsdocTypeMappedType")}}a(qe,"stringifyRules");let nn=qe();function Jt(e){return le(nn,e)}a(Jt,"stringify");let an=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function X(e){let s={type:"NameExpression",name:e};return an.includes(e)&&(s.reservedWord=!0),s}a(X,"makeName");let on={JsdocTypeOptional:a((e,s)=>{let l=s(e.element);return l.optional=!0,l},"JsdocTypeOptional"),JsdocTypeNullable:a((e,s)=>{let l=s(e.element);return l.nullable=!0,l},"JsdocTypeNullable"),JsdocTypeNotNullable:a((e,s)=>{let l=s(e.element);return l.nullable=!1,l},"JsdocTypeNotNullable"),JsdocTypeVariadic:a((e,s)=>{if(e.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let l=s(e.element);return l.repeatable=!0,l},"JsdocTypeVariadic"),JsdocTypeAny:a(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:a(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:a(e=>X(H(e.value,e.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:a(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:a(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:a((e,s)=>{let l=Ce(e),d={type:"FunctionType",params:l.params.map(s)};return l.this!==void 0&&(d.this=s(l.this)),l.new!==void 0&&(d.new=s(l.new)),e.returnType!==void 0&&(d.result=s(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:a((e,s)=>({type:"TypeApplication",applications:e.elements.map(l=>s(l)),expression:s(e.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:a(e=>X(e.specialType+":"+H(e.value,e.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:a(e=>e.value!=="function"?X(e.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:a(e=>X(e.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:a((e,s)=>{let l={type:"RecordType",fields:[]};for(let d of e.elements)d.type!=="JsdocTypeObjectField"&&d.type!=="JsdocTypeJsdocObjectField"?l.fields.push({type:"FieldType",key:s(d),value:void 0}):l.fields.push(s(d));return l},"JsdocTypeObject"),JsdocTypeObjectField:a((e,s)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:X(H(e.key,e.meta.quote)),value:e.right===void 0?void 0:s(e.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>({type:"FieldType",key:s(e.left),value:s(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:a((e,s)=>({type:"TypeUnion",elements:e.elements.map(l=>s(l))}),"JsdocTypeUnion"),JsdocTypeKeyValue:a((e,s)=>({type:"FieldType",key:X(e.key),value:e.right===void 0?void 0:s(e.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:a((e,s)=>{let l=s(e.left),d;e.right.type==="JsdocTypeSpecialNamePath"?d=s(e.right).name:d=H(e.right.value,e.right.meta.quote);let h=e.pathType==="inner"?"~":e.pathType==="instance"?"#":".";return X(`${l.name}${h}${d}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:a(e=>{let s="",l=e.element,d=!1;return(l==null?void 0:l.type)==="JsdocTypeVariadic"&&(l.meta.position==="prefix"?s="...":d=!0,l=l.element),(l==null?void 0:l.type)==="JsdocTypeName"?s+=l.value:(l==null?void 0:l.type)==="JsdocTypeNumber"&&(s+=l.value.toString()),d&&(s+="..."),X(`${e.value}(${s})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:a((e,s)=>s(O(e.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:B,JsdocTypeIndexSignature:B,JsdocTypeImport:B,JsdocTypeKeyof:B,JsdocTypeTuple:B,JsdocTypeTypeof:B,JsdocTypeIntersection:B,JsdocTypeProperty:B,JsdocTypePredicate:B};function bt(e){return le(on,e)}a(bt,"catharsisTransform");function te(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}a(te,"getQuoteStyle");function xt(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}a(xt,"getMemberType");function Se(e,s){return s.length===2?{type:e,left:s[0],right:s[1]}:{type:e,left:s[0],right:Se(e,s.slice(1))}}a(Se,"nestResults");let sn={JsdocTypeOptional:a((e,s)=>({type:"OPTIONAL",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:a((e,s)=>({type:"NULLABLE",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:a((e,s)=>({type:"NOT_NULLABLE",value:s(e.element),meta:{syntax:e.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:a((e,s)=>{let l={type:"VARIADIC",meta:{syntax:e.meta.position==="prefix"?"PREFIX_DOTS":e.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return e.element!==void 0&&(l.value=s(e.element)),l},"JsdocTypeVariadic"),JsdocTypeName:a(e=>({type:"NAME",name:e.value}),"JsdocTypeName"),JsdocTypeTypeof:a((e,s)=>({type:"TYPE_QUERY",name:s(e.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:a((e,s)=>({type:"TUPLE",entries:e.elements.map(s)}),"JsdocTypeTuple"),JsdocTypeKeyof:a((e,s)=>({type:"KEY_QUERY",value:s(e.element)}),"JsdocTypeKeyof"),JsdocTypeImport:a(e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:te(e.element.meta.quote),string:e.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:a(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:a(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:a((e,s)=>{let l=Ce(e),d={type:e.arrow?"ARROW":"FUNCTION",params:l.params.map(h=>{if(h.type==="JsdocTypeKeyValue"){if(h.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:h.key,typeName:s(h.right)}}else return s(h)}),new:null,returns:null};return l.this!==void 0?d.this=s(l.this):e.arrow||(d.this=null),l.new!==void 0&&(d.new=s(l.new)),e.returnType!==void 0&&(d.returns=s(e.returnType)),d},"JsdocTypeFunction"),JsdocTypeGeneric:a((e,s)=>{let l={type:"GENERIC",subject:s(e.left),objects:e.elements.map(s),meta:{syntax:e.meta.brackets==="square"?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return e.meta.brackets==="square"&&e.elements[0].type==="JsdocTypeFunction"&&!e.elements[0].parenthesis&&(l.objects[0]={type:"NAME",name:"function"}),l},"JsdocTypeGeneric"),JsdocTypeObjectField:a((e,s)=>{if(typeof e.key!="string")throw new Error("Index signatures and mapped types are not supported");if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:te(e.meta.quote),value:null,readonly:!1};let l=s(e.right);return e.optional&&(l={type:"OPTIONAL",value:l,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:te(e.meta.quote),value:l,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>{if(e.right===void 0)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let l=s(e.right);return e.optional&&(l={type:"OPTIONAL",value:l,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:l,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:a((e,s)=>{let l=[];for(let d of e.elements)(d.type==="JsdocTypeObjectField"||d.type==="JsdocTypeJsdocObjectField")&&l.push(s(d));return{type:"RECORD",entries:l}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:a(e=>{if(e.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:te(e.meta.quote),path:e.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:a((e,s)=>{let l=!1,d,h;e.right.type==="JsdocTypeSpecialNamePath"&&e.right.specialType==="event"?(l=!0,d=e.right.value,h=te(e.right.meta.quote)):(d=e.right.value,h=te(e.right.meta.quote));let J={type:xt(e.pathType),owner:s(e.left),name:d,quoteStyle:h,hasEventPrefix:l};if(J.owner.type==="MODULE"){let N=J.owner;return J.owner=J.owner.value,N.value=J,N}else return J},"JsdocTypeNamePath"),JsdocTypeUnion:a((e,s)=>Se("UNION",e.elements.map(s)),"JsdocTypeUnion"),JsdocTypeParenthesis:a((e,s)=>({type:"PARENTHESIS",value:s(O(e.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:a(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:a(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:a(e=>({type:"STRING_VALUE",quoteStyle:te(e.meta.quote),string:e.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:a((e,s)=>Se("INTERSECTION",e.elements.map(s)),"JsdocTypeIntersection"),JsdocTypeNumber:a(e=>({type:"NUMBER_VALUE",number:e.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:B,JsdocTypeProperty:B,JsdocTypePredicate:B,JsdocTypeMappedType:B,JsdocTypeIndexSignature:B};function wt(e){return le(sn,e)}a(wt,"jtpTransform");function Pt(){return{JsdocTypeIntersection:a((e,s)=>({type:"JsdocTypeIntersection",elements:e.elements.map(s)}),"JsdocTypeIntersection"),JsdocTypeGeneric:a((e,s)=>({type:"JsdocTypeGeneric",left:s(e.left),elements:e.elements.map(s),meta:{dot:e.meta.dot,brackets:e.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:a(e=>e,"JsdocTypeNullable"),JsdocTypeUnion:a((e,s)=>({type:"JsdocTypeUnion",elements:e.elements.map(s)}),"JsdocTypeUnion"),JsdocTypeUnknown:a(e=>e,"JsdocTypeUnknown"),JsdocTypeUndefined:a(e=>e,"JsdocTypeUndefined"),JsdocTypeTypeof:a((e,s)=>({type:"JsdocTypeTypeof",element:s(e.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:a((e,s)=>{let l={type:"JsdocTypeSymbol",value:e.value};return e.element!==void 0&&(l.element=s(e.element)),l},"JsdocTypeSymbol"),JsdocTypeOptional:a((e,s)=>({type:"JsdocTypeOptional",element:s(e.element),meta:{position:e.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:a((e,s)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(s)}),"JsdocTypeObject"),JsdocTypeNumber:a(e=>e,"JsdocTypeNumber"),JsdocTypeNull:a(e=>e,"JsdocTypeNull"),JsdocTypeNotNullable:a((e,s)=>({type:"JsdocTypeNotNullable",element:s(e.element),meta:{position:e.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:a(e=>e,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:a((e,s)=>({type:"JsdocTypeObjectField",key:e.key,right:e.right===void 0?void 0:s(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((e,s)=>({type:"JsdocTypeJsdocObjectField",left:s(e.left),right:s(e.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((e,s)=>({type:"JsdocTypeKeyValue",key:e.key,right:e.right===void 0?void 0:s(e.right),optional:e.optional,variadic:e.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:a((e,s)=>({type:"JsdocTypeImport",element:s(e.element)}),"JsdocTypeImport"),JsdocTypeAny:a(e=>e,"JsdocTypeAny"),JsdocTypeStringValue:a(e=>e,"JsdocTypeStringValue"),JsdocTypeNamePath:a(e=>e,"JsdocTypeNamePath"),JsdocTypeVariadic:a((e,s)=>{let l={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return e.element!==void 0&&(l.element=s(e.element)),l},"JsdocTypeVariadic"),JsdocTypeTuple:a((e,s)=>({type:"JsdocTypeTuple",elements:e.elements.map(s)}),"JsdocTypeTuple"),JsdocTypeName:a(e=>e,"JsdocTypeName"),JsdocTypeFunction:a((e,s)=>{let l={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(s),constructor:e.constructor,parenthesis:e.parenthesis};return e.returnType!==void 0&&(l.returnType=s(e.returnType)),l},"JsdocTypeFunction"),JsdocTypeKeyof:a((e,s)=>({type:"JsdocTypeKeyof",element:s(e.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:a((e,s)=>({type:"JsdocTypeParenthesis",element:s(e.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:a(e=>e,"JsdocTypeProperty"),JsdocTypePredicate:a((e,s)=>({type:"JsdocTypePredicate",left:s(e.left),right:s(e.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:a((e,s)=>({type:"JsdocTypeIndexSignature",key:e.key,right:s(e.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((e,s)=>({type:"JsdocTypeMappedType",key:e.key,right:s(e.right)}),"JsdocTypeMappedType")}}a(Pt,"identityTransformRules");let Nt={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"]};function je(e,s,l,d,h){d==null||d(e,s,l);let J=Nt[e.type];for(let N of J){let U=e[N];if(U!==void 0)if(Array.isArray(U))for(let D of U)je(D,e,N,d,h);else je(U,e,N,d,h)}h==null||h(e,s,l)}a(je,"_traverse");function Ot(e,s,l){je(e,void 0,void 0,s,l)}a(Ot,"traverse"),n.catharsisTransform=bt,n.identityTransformRules=Pt,n.jtpTransform=wt,n.parse=Me,n.stringify=Jt,n.stringifyRules=qe,n.transform=le,n.traverse=Ot,n.tryParse=gt,n.visitorKeys=Nt})});const{UnknownArgTypesError:Wa}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Yt=/^['"]|['"]$/g,Ha=a(r=>r.replace(Yt,""),"trimQuotes"),Xa=a(r=>Yt.test(r),"includesQuotes"),zt=a(r=>{let t=Ha(r);return Xa(r)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),Qa=a(r=>{switch(r.type){case"function":return{name:"function"};case"object":let t={};return r.signature.properties.forEach(n=>{t[n.key]=Te(n.value)}),{name:"object",value:t};default:throw new Wa({type:r,language:"Typescript"})}},"convertSig"),Te=a(r=>{var i,p,c,u;let{name:t,raw:n}=r,o={};switch(typeof n<"u"&&(o.raw=n),r.name){case"string":case"number":case"symbol":case"boolean":return{...o,name:t};case"Array":return{...o,name:"array",value:r.elements.map(Te)};case"signature":return{...o,...Qa(r)};case"union":let y;return(i=r.elements)!=null&&i.every(m=>m.name==="literal")?y={...o,name:"enum",value:(p=r.elements)==null?void 0:p.map(m=>zt(m.value))}:y={...o,name:t,value:(c=r.elements)==null?void 0:c.map(Te)},y;case"intersection":return{...o,name:t,value:(u=r.elements)==null?void 0:u.map(Te)};default:return{...o,name:"other",value:t}}},"convert");const{UnknownArgTypesError:Za}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var eo=a(r=>r.name==="literal","isLiteral"),to=a(r=>r.value.replace(/['|"]/g,""),"toEnumOption"),ro=a(r=>{switch(r.type){case"function":return{name:"function"};case"object":let t={};return r.signature.properties.forEach(n=>{t[n.key]=he(n.value)}),{name:"object",value:t};default:throw new Za({type:r,language:"Flow"})}},"convertSig"),he=a(r=>{var i,p,c,u;let{name:t,raw:n}=r,o={};switch(typeof n<"u"&&(o.raw=n),r.name){case"literal":return{...o,name:"other",value:r.value};case"string":case"number":case"symbol":case"boolean":return{...o,name:t};case"Array":return{...o,name:"array",value:r.elements.map(he)};case"signature":return{...o,...ro(r)};case"union":return(i=r.elements)!=null&&i.every(eo)?{...o,name:"enum",value:(p=r.elements)==null?void 0:p.map(to)}:{...o,name:t,value:(c=r.elements)==null?void 0:c.map(he)};case"intersection":return{...o,name:t,value:(u=r.elements)==null?void 0:u.map(he)};default:return{...o,name:"other",value:t}}},"convert"),no=Et(Ya()),ao=/^\(.*\) => /,fe=a(r=>{let{name:t,raw:n,computed:o,value:i}=r,p={};switch(typeof n<"u"&&(p.raw=n),t){case"enum":{let u=o?i:i.map(y=>zt(y.value));return{...p,name:t,value:u}}case"string":case"number":case"symbol":return{...p,name:t};case"func":return{...p,name:"function"};case"bool":case"boolean":return{...p,name:"boolean"};case"arrayOf":case"array":return{...p,name:"array",value:i&&fe(i)};case"object":return{...p,name:t};case"objectOf":return{...p,name:t,value:fe(i)};case"shape":case"exact":let c=(0,no.default)(i,u=>fe(u));return{...p,name:"object",value:c};case"union":return{...p,name:"union",value:i.map(u=>fe(u))};case"instanceOf":case"element":case"elementType":default:{if((t==null?void 0:t.indexOf("|"))>0)try{let m=t.split("|").map(T=>JSON.parse(T));return{...p,name:"enum",value:m}}catch{}let u=i?`${t}(${i})`:t,y=ao.test(t)?"function":"other";return{...p,name:y,value:u}}}},"convert"),Ze=a(r=>{let{type:t,tsType:n,flowType:o}=r;try{if(t!=null)return fe(t);if(n!=null)return Te(n);if(o!=null)return he(o)}catch(i){console.error(i)}return null},"convert"),oo=(r=>(r.JAVASCRIPT="JavaScript",r.FLOW="Flow",r.TYPESCRIPT="TypeScript",r.UNKNOWN="Unknown",r))(oo||{}),so=["null","undefined"];function Ve(r){return so.some(t=>t===r)}a(Ve,"isDefaultValueBlacklisted");var io=a(r=>{if(!r)return"";if(typeof r=="string")return r;throw new Error(`Description: expected string, got: ${JSON.stringify(r)}`)},"str");function et(r){return!!r.__docgenInfo}a(et,"hasDocgen");function Wt(r){return r!=null&&Object.keys(r).length>0}a(Wt,"isValidDocgenSection");function Ht(r,t){return et(r)?r.__docgenInfo[t]:null}a(Ht,"getDocgenSection");function Xt(r){return et(r)?io(r.__docgenInfo.description):""}a(Xt,"getDocgenDescription");var re;(function(r){r.start="/**",r.nostart="/***",r.delim="*",r.end="*/"})(re=re||(re={}));function Qt(r){return/^\s+$/.test(r)}a(Qt,"isSpace");function Zt(r){let t=r.match(/\r+$/);return t==null?["",r]:[r.slice(-t[0].length),r.slice(0,-t[0].length)]}a(Zt,"splitCR");function se(r){let t=r.match(/^\s+/);return t==null?["",r]:[r.slice(0,t[0].length),r.slice(t[0].length)]}a(se,"splitSpace");function er(r){return r.split(/\n/)}a(er,"splitLines");function tr(r={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},r)}a(tr,"seedSpec");function rr(r={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},r)}a(rr,"seedTokens");var po=/^@\S+/;function nr({fence:r="```"}={}){let t=ar(r),n=a((o,i)=>t(o)?!i:i,"toggleFence");return a(function(o){let i=[[]],p=!1;for(let c of o)po.test(c.tokens.description)&&!p?i.push([c]):i[i.length-1].push(c),p=n(c.tokens.description,p);return i},"parseBlock")}a(nr,"getParser");function ar(r){return typeof r=="string"?t=>t.split(r).length%2===0:r}a(ar,"getFencer");function or({startLine:r=0,markers:t=re}={}){let n=null,o=r;return a(function(i){let p=i,c=rr();if([c.lineEnd,p]=Zt(p),[c.start,p]=se(p),n===null&&p.startsWith(t.start)&&!p.startsWith(t.nostart)&&(n=[],c.delimiter=p.slice(0,t.start.length),p=p.slice(t.start.length),[c.postDelimiter,p]=se(p)),n===null)return o++,null;let u=p.trimRight().endsWith(t.end);if(c.delimiter===""&&p.startsWith(t.delim)&&!p.startsWith(t.end)&&(c.delimiter=t.delim,p=p.slice(t.delim.length),[c.postDelimiter,p]=se(p)),u){let y=p.trimRight();c.end=p.slice(y.length-t.end.length),p=y.slice(0,-t.end.length)}if(c.description=p,n.push({number:o,source:i,tokens:c}),o++,u){let y=n.slice();return n=null,y}return null},"parseSource")}a(or,"getParser");function sr({tokenizers:r}){return a(function(t){var n;let o=tr({source:t});for(let i of r)if(o=i(o),!((n=o.problems[o.problems.length-1])===null||n===void 0)&&n.critical)break;return o},"parseSpec")}a(sr,"getParser");function ir(){return r=>{let{tokens:t}=r.source[0],n=t.description.match(/\s*(@(\S+))(\s*)/);return n===null?(r.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:r.source[0].number,critical:!0}),r):(t.tag=n[1],t.postTag=n[3],t.description=t.description.slice(n[0].length),r.tag=n[2],r)}}a(ir,"tagTokenizer");function pr(r="compact"){let t=lr(r);return n=>{let o=0,i=[];for(let[u,{tokens:y}]of n.source.entries()){let m="";if(u===0&&y.description[0]!=="{")return n;for(let T of y.description)if(T==="{"&&o++,T==="}"&&o--,m+=T,o===0)break;if(i.push([y,m]),o===0)break}if(o!==0)return n.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:n.source[0].number,critical:!0}),n;let p=[],c=i[0][0].postDelimiter.length;for(let[u,[y,m]]of i.entries())y.type=m,u>0&&(y.type=y.postDelimiter.slice(c)+m,y.postDelimiter=y.postDelimiter.slice(0,c)),[y.postType,y.description]=se(y.description.slice(m.length)),p.push(y.type);return p[0]=p[0].slice(1),p[p.length-1]=p[p.length-1].slice(0,-1),n.type=t(p),n}}a(pr,"typeTokenizer");var lo=a(r=>r.trim(),"trim");function lr(r){return r==="compact"?t=>t.map(lo).join(""):r==="preserve"?t=>t.join(` +`):r}a(lr,"getJoiner");var co=a(r=>r&&r.startsWith('"')&&r.endsWith('"'),"isQuoted");function cr(){let r=a((t,{tokens:n},o)=>n.type===""?t:o,"typeEnd");return t=>{let{tokens:n}=t.source[t.source.reduce(r,0)],o=n.description.trimLeft(),i=o.split('"');if(i.length>1&&i[0]===""&&i.length%2===1)return t.name=i[1],n.name=`"${i[1]}"`,[n.postName,n.description]=se(o.slice(n.name.length)),t;let p=0,c="",u=!1,y;for(let T of o){if(p===0&&Qt(T))break;T==="["&&p++,T==="]"&&p--,c+=T}if(p!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let m=c;if(c[0]==="["&&c[c.length-1]==="]"){u=!0,c=c.slice(1,-1);let T=c.split("=");if(c=T[0].trim(),T[1]!==void 0&&(y=T.slice(1).join("=").trim()),c==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(y==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!co(y)&&/=(?!>)/.test(y))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=u,t.name=c,n.name=m,y!==void 0&&(t.default=y),[n.postName,n.description]=se(o.slice(n.name.length)),t}}a(cr,"nameTokenizer");function ur(r="compact",t=re){let n=tt(r);return o=>(o.description=n(o.source,t),o)}a(ur,"descriptionTokenizer");function tt(r){return r==="compact"?yr:r==="preserve"?dr:r}a(tt,"getJoiner");function yr(r,t=re){return r.map(({tokens:{description:n}})=>n.trim()).filter(n=>n!=="").join(" ")}a(yr,"compactJoiner");var uo=a((r,{tokens:t},n)=>t.type===""?r:n,"lineNo"),yo=a(({tokens:r})=>(r.delimiter===""?r.start:r.postDelimiter.slice(1))+r.description,"getDescription");function dr(r,t=re){if(r.length===0)return"";r[0].tokens.description===""&&r[0].tokens.delimiter===t.start&&(r=r.slice(1));let n=r[r.length-1];return n!==void 0&&n.tokens.description===""&&n.tokens.end.endsWith(t.end)&&(r=r.slice(0,-1)),r=r.slice(r.reduce(uo,0)),r.map(yo).join(` +`)}a(dr,"preserveJoiner");function mr({startLine:r=0,fence:t="```",spacing:n="compact",markers:o=re,tokenizers:i=[ir(),pr(n),cr(),ur(n)]}={}){if(r<0||r%1>0)throw new Error("Invalid startLine");let p=or({startLine:r,markers:o}),c=nr({fence:t}),u=sr({tokenizers:i}),y=tt(n);return function(m){let T=[];for(let v of er(m)){let x=p(v);if(x===null)continue;let g=c(x),w=g.slice(1).map(u);T.push({description:y(g[0],o),tags:w,source:x,problems:w.reduce((_,L)=>_.concat(L.problems),[])})}return T}}a(mr,"getParser");function fr(r){return r.start+r.delimiter+r.postDelimiter+r.tag+r.postTag+r.type+r.postType+r.name+r.postName+r.description+r.end+r.lineEnd}a(fr,"join");function mo(){return r=>r.source.map(({tokens:t})=>fr(t)).join(` +`)}a(mo,"getStringifier");function Tr(r,t={}){return mr(t)(r)}a(Tr,"parse");var rt=Et(za());function hr(r){return r!=null&&r.includes("@")}a(hr,"containsJsDoc");function vr(r){let t=`/** +`+(r??"").split(` +`).map(o=>` * ${o}`).join(` +`)+` +*/`,n=Tr(t,{spacing:"preserve"});if(!n||n.length===0)throw new Error("Cannot parse JSDoc tags.");return n[0]}a(vr,"parse");var fo={tags:["param","arg","argument","returns","ignore","deprecated"]},To=a((r,t=fo)=>{if(!hr(r))return{includesJsDoc:!1,ignore:!1};let n=vr(r),o=gr(n,t.tags);return o.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:n.description.trim(),extractedTags:o}},"parseJsDoc");function gr(r,t){let n={params:null,deprecated:null,returns:null,ignore:!1};for(let o of r.tags)if(!(t!==void 0&&!t.includes(o.tag)))if(o.tag==="ignore"){n.ignore=!0;break}else switch(o.tag){case"param":case"arg":case"argument":{let i=br(o);i!=null&&(n.params==null&&(n.params=[]),n.params.push(i));break}case"deprecated":{let i=xr(o);i!=null&&(n.deprecated=i);break}case"returns":{let i=wr(o);i!=null&&(n.returns=i);break}}return n}a(gr,"extractJsDocTags");function Jr(r){return r.replace(/[\.-]$/,"")}a(Jr,"normaliseParamName");function br(r){if(!r.name||r.name==="-")return null;let t=ot(r.type);return{name:r.name,type:t,description:at(r.description),getPrettyName:a(()=>Jr(r.name),"getPrettyName"),getTypeName:a(()=>t?st(t):null,"getTypeName")}}a(br,"extractParam");function xr(r){return r.name?nt(r.name,r.description):null}a(xr,"extractDeprecated");function nt(r,t){let n=r===""?t:`${r} ${t}`;return at(n)}a(nt,"joinNameAndDescription");function at(r){let t=r.replace(/^- /g,"").trim();return t===""?null:t}a(at,"normaliseDescription");function wr(r){let t=ot(r.type);return t?{type:t,description:nt(r.name,r.description),getTypeName:a(()=>st(t),"getTypeName")}:null}a(wr,"extractReturns");var ae=(0,rt.stringifyRules)(),ho=ae.JsdocTypeObject;ae.JsdocTypeAny=()=>"any";ae.JsdocTypeObject=(r,t)=>`(${ho(r,t)})`;ae.JsdocTypeOptional=(r,t)=>t(r.element);ae.JsdocTypeNullable=(r,t)=>t(r.element);ae.JsdocTypeNotNullable=(r,t)=>t(r.element);ae.JsdocTypeUnion=(r,t)=>r.elements.map(t).join("|");function ot(r){try{return(0,rt.parse)(r,"typescript")}catch{return null}}a(ot,"extractType");function st(r){return(0,rt.transform)(ae,r)}a(st,"extractTypeName");function it(r){return r.length>90}a(it,"isTooLongForTypeSummary");function Pr(r){return r.length>50}a(Pr,"isTooLongForDefaultValueSummary");function M(r,t){return r===t?{summary:r}:{summary:r,detail:t}}a(M,"createSummaryValue");function pt({name:r,value:t,elements:n,raw:o}){return t??(n!=null?n.map(pt).join(" | "):o??r)}a(pt,"generateUnionElement");function Nr({name:r,raw:t,elements:n}){return n!=null?M(n.map(pt).join(" | ")):t!=null?M(t.replace(/^\|\s*/,"")):M(r)}a(Nr,"generateUnion");function Or({type:r,raw:t}){return t!=null?M(t):M(r)}a(Or,"generateFuncSignature");function _r({type:r,raw:t}){return t!=null?it(t)?M(r,t):M(t):M(r)}a(_r,"generateObjectSignature");function Er(r){let{type:t}=r;return t==="object"?_r(r):Or(r)}a(Er,"generateSignature");function Sr({name:r,raw:t}){return t!=null?it(t)?M(r,t):M(t):M(r)}a(Sr,"generateDefault");function jr(r){if(r==null)return null;switch(r.name){case"union":return Nr(r);case"signature":return Er(r);default:return Sr(r)}}a(jr,"createType");function kr(r,t){if(r!=null){let{value:n}=r;if(!Ve(n))return Pr(n)?M(t==null?void 0:t.name,n):M(n)}return null}a(kr,"createDefaultValue");var vo=a((r,t)=>{let{flowType:n,description:o,required:i,defaultValue:p}=t;return{name:r,type:jr(n),required:i,description:o,defaultValue:kr(p??null,n??null)}},"createFlowPropDef");function Ar({tsType:r,required:t}){if(r==null)return null;let n=r.name;return t||(n=n.replace(" | undefined","")),M(["Array","Record","signature"].includes(r.name)?r.raw:n)}a(Ar,"createType");function Ir({defaultValue:r}){if(r!=null){let{value:t}=r;if(!Ve(t))return M(t)}return null}a(Ir,"createDefaultValue");var go=a((r,t)=>{let{description:n,required:o}=t;return{name:r,type:Ar(t),required:o,description:n,defaultValue:Ir(t)}},"createTsPropDef");function Rr(r){return r!=null?M(r.name):null}a(Rr,"createType");function Fr(r){let{computed:t,func:n}=r;return typeof t>"u"&&typeof n>"u"}a(Fr,"isReactDocgenTypescript");function Lr(r){return r?r.name==="string"?!0:r.name==="enum"?Array.isArray(r.value)&&r.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}a(Lr,"isStringValued");function Ur(r,t){if(r!=null){let{value:n}=r;if(!Ve(n))return Fr(r)&&Lr(t)?M(JSON.stringify(n)):M(n)}return null}a(Ur,"createDefaultValue");function lt(r,t,n){let{description:o,required:i,defaultValue:p}=n;return{name:r,type:Rr(t),required:i,description:o,defaultValue:Ur(p,t)}}a(lt,"createBasicPropDef");function Je(r,t){var n;if(t!=null&&t.includesJsDoc){let{description:o,extractedTags:i}=t;o!=null&&(r.description=t.description);let p={...i,params:(n=i==null?void 0:i.params)==null?void 0:n.map(c=>({name:c.getPrettyName(),description:c.description}))};Object.values(p).filter(Boolean).length>0&&(r.jsDocTags=p)}return r}a(Je,"applyJsDocResult");var Jo=a((r,t,n)=>{let o=lt(r,t.type,t);return o.sbType=Ze(t),Je(o,n)},"javaScriptFactory"),bo=a((r,t,n)=>{let o=go(r,t);return o.sbType=Ze(t),Je(o,n)},"tsFactory"),xo=a((r,t,n)=>{let o=vo(r,t);return o.sbType=Ze(t),Je(o,n)},"flowFactory"),wo=a((r,t,n)=>{let o=lt(r,{name:"unknown"},t);return Je(o,n)},"unknownFactory"),Vr=a(r=>{switch(r){case"JavaScript":return Jo;case"TypeScript":return bo;case"Flow":return xo;default:return wo}},"getPropDefFactory"),Dr=a(r=>r.type!=null?"JavaScript":r.flowType!=null?"Flow":r.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),Po=a(r=>{let t=Dr(r[0]),n=Vr(t);return r.map(o=>{var p;let i=o;return(p=o.type)!=null&&p.elements&&(i={...o,type:{...o.type,value:o.type.elements}}),ct(i.name,i,t,n)})},"extractComponentSectionArray"),No=a(r=>{let t=Object.keys(r),n=Dr(r[t[0]]),o=Vr(n);return t.map(i=>{let p=r[i];return p!=null?ct(i,p,n,o):null}).filter(Boolean)},"extractComponentSectionObject"),Ro=a((r,t)=>{let n=Ht(r,t);return Wt(n)?Array.isArray(n)?Po(n):No(n):[]},"extractComponentProps");function ct(r,t,n,o){let i=To(t.description);return i.includesJsDoc&&i.ignore?null:{propDef:o(r,t,i),jsDocTags:i.extractedTags,docgenInfo:t,typeSystem:n}}a(ct,"extractProp");function Oo(r){return r!=null?Xt(r):""}a(Oo,"extractComponentDescription");const{combineParameters:_o}=__STORYBOOK_MODULE_PREVIEW_API__;var Fo=a(r=>{let{component:t,argTypes:n,parameters:{docs:o={}}}=r,{extractArgTypes:i}=o,p=i&&t?i(t):{};return p?_o(p,n):n},"enhanceArgTypes"),Eo="storybook/docs",Lo=`${Eo}/snippet-rendered`,So=(r=>(r.AUTO="auto",r.CODE="code",r.DYNAMIC="dynamic",r))(So||{}),jo=pn,ko=jo(Object.getPrototypeOf,Object),Uo=ko;export{Oo as $,Ro as B,it as H,et as K,M as O,oo as P,Uo as _,Ht as a,Lo as e,Pr as o,So as s,Fo as z}; diff --git a/storybook/assets/_overArg-duoZdnBA.js b/storybook/assets/_overArg-duoZdnBA.js new file mode 100644 index 0000000..94fd8ff --- /dev/null +++ b/storybook/assets/_overArg-duoZdnBA.js @@ -0,0 +1 @@ +import{c as o,g as j}from"./index-CTjT7uj6.js";var u=Array.isArray,W=u,l=typeof o=="object"&&o&&o.Object===Object&&o,v=l,y=v,T=typeof self=="object"&&self&&self.Object===Object&&self,O=y||T||Function("return this")(),S=O,p=S,d=p.Symbol,s=d,a=s,b=Object.prototype,$=b.hasOwnProperty,m=b.toString,e=a?a.toStringTag:void 0;function _(t){var r=$.call(t,e),n=t[e];try{t[e]=void 0;var g=!0}catch{}var f=m.call(t);return g&&(r?t[e]=n:delete t[e]),f}var F=_,G=Object.prototype,A=G.toString;function w(t){return A.call(t)}var h=w,c=s,P=F,x=h,R="[object Null]",k="[object Undefined]",i=c?c.toStringTag:void 0;function L(t){return t==null?t===void 0?k:R:i&&i in Object(t)?P(t):x(t)}var C=L;function D(t){return t!=null&&typeof t=="object"}var X=D;function E(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}var N=E,U=C,q=N,z="[object AsyncFunction]",B="[object Function]",H="[object GeneratorFunction]",I="[object Proxy]";function J(t){if(!q(t))return!1;var r=U(t);return r==B||r==H||r==z||r==I}var K=J;const Y=j(K);function M(t,r){return function(n){return t(r(n))}}var Z=M;export{Z as _,S as a,C as b,X as c,W as d,Y as e,s as f,K as g,v as h,N as i}; diff --git a/storybook/assets/array-D74jl773.js b/storybook/assets/array-D74jl773.js new file mode 100644 index 0000000..91bdbd1 --- /dev/null +++ b/storybook/assets/array-D74jl773.js @@ -0,0 +1,4 @@ +import{g as R}from"./index-CTjT7uj6.js";import{_ as tt,k as rt,a as be,b as _e,t as q}from"./_baseIteratee-8_jeTHtL.js";var G;try{G=Map}catch{}var J;try{J=Set}catch{}function ve(n,e,t){if(!n||typeof n!="object"||typeof n=="function")return n;if(n.nodeType&&"cloneNode"in n)return n.cloneNode(!0);if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp)return new RegExp(n);if(Array.isArray(n))return n.map(K);if(G&&n instanceof G)return new Map(Array.from(n.entries()));if(J&&n instanceof J)return new Set(Array.from(n.values()));if(n instanceof Object){e.push(n);var r=Object.create(n);t.push(r);for(var s in n){var i=e.findIndex(function(u){return u===n[s]});r[s]=i>-1?t[i]:ve(n[s],e,t)}return r}return n}function K(n){return ve(n,[],[])}const nt=Object.prototype.toString,st=Error.prototype.toString,it=RegExp.prototype.toString,ut=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",at=/^Symbol\((.*)\)(.*)$/;function ot(n){return n!=+n?"NaN":n===0&&1/n<0?"-0":""+n}function le(n,e=!1){if(n==null||n===!0||n===!1)return""+n;const t=typeof n;if(t==="number")return ot(n);if(t==="string")return e?`"${n}"`:n;if(t==="function")return"[Function "+(n.name||"anonymous")+"]";if(t==="symbol")return ut.call(n).replace(at,"Symbol($1)");const r=nt.call(n).slice(8,-1);return r==="Date"?isNaN(n.getTime())?""+n:n.toISOString(n):r==="Error"||n instanceof Error?"["+st.call(n)+"]":r==="RegExp"?it.call(n):null}function T(n,e){let t=le(n,e);return t!==null?t:JSON.stringify(n,function(r,s){let i=le(this[r],e);return i!==null?i:s},2)}let D={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:n,type:e,value:t,originalValue:r})=>{let s=r!=null&&r!==t,i=`${n} must be a \`${e}\` type, but the final value was: \`${T(t,!0)}\``+(s?` (cast from the value \`${T(r,!0)}\`).`:".");return t===null&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i},defined:"${path} must be defined"},v={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},lt={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Y={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ft={isValue:"${path} field must be ${value}"},B={noUnknown:"${path} field has unspecified keys: ${unknown}"},P={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:D,string:v,number:lt,date:Y,object:B,array:P,boolean:ft});var ct=Object.prototype,ht=ct.hasOwnProperty;function dt(n,e){return n!=null&&ht.call(n,e)}var pt=dt,mt=pt,yt=tt;function xt(n,e){return n!=null&&yt(n,e,mt)}var Ft=xt;const N=R(Ft),re=n=>n&&n.__isYupSchema__;class gt{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,typeof t=="function"){this.fn=t;return}if(!N(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:s,otherwise:i}=t,u=typeof r=="function"?r:(...a)=>a.every(o=>o===r);this.fn=function(...a){let o=a.pop(),c=a.pop(),f=u(...a)?s:i;if(f)return typeof f=="function"?f(c):c.concat(f.resolve(o))}}resolve(e,t){let r=this.refs.map(i=>i.getValue(t==null?void 0:t.value,t==null?void 0:t.parent,t==null?void 0:t.context)),s=this.fn.apply(e,r.concat(e,t));if(s===void 0||s===e)return e;if(!re(s))throw new TypeError("conditions must return a schema object");return s.resolve(t)}}function Ee(n){return n==null?[]:[].concat(n)}function X(){return X=Object.assign||function(n){for(var e=1;eT(t[i])):typeof e=="function"?e(t):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,t,r,s){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=s,this.errors=[],this.inner=[],Ee(e).forEach(i=>{b.isError(i)?(this.errors.push(...i.errors),this.inner=this.inner.concat(i.inner.length?i.inner:i)):this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,b)}}const _t=n=>{let e=!1;return(...t)=>{e||(e=!0,n(...t))}};function V(n,e){let{endEarly:t,tests:r,args:s,value:i,errors:u,sort:a,path:o}=n,c=_t(e),f=r.length;const l=[];if(u=u||[],!f)return u.length?c(new b(u,i,o)):c(null,i);for(let h=0;h=this._maxSize&&this.clear(),n in this._values||this._size++,this._values[n]=e};var zt=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Oe=/^\d+$/,jt=/^\d/,Pt=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Nt=/^\s*(['"]?)(.*?)(\1)\s*$/,ne=512,fe=new C(ne),ce=new C(ne),he=new C(ne),Z={Cache:C,split:Q,normalizePath:H,setter:function(n){var e=H(n);return ce.get(n)||ce.set(n,function(r,s){for(var i=0,u=e.length,a=r;i=0)&&(t[s]=n[s]);return t}function j(n){function e(t,r){let{value:s,path:i="",label:u,options:a,originalValue:o,sync:c}=t,f=qt(t,["value","path","label","options","originalValue","sync"]);const{name:l,test:h,params:d,message:p}=n;let{parent:m,context:x}=a;function E(y){return $.isRef(y)?y.getValue(s,m,x):y}function k(y={}){const W=we(I({value:s,originalValue:o,label:u,path:y.path||i},d,y.params),E),oe=new b(b.formatError(y.message||p,W),s,W.path,y.type||l);return oe.params=W,oe}let w=I({path:i,parent:m,type:l,createError:k,resolve:E,options:a,originalValue:o},f);if(!c){try{Promise.resolve(h.call(w,s,w)).then(y=>{b.isError(y)?r(y):y?r(null,y):r(k())}).catch(r)}catch(y){r(y)}return}let O;try{var U;if(O=h.call(w,s,w),typeof((U=O)==null?void 0:U.then)=="function")throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(y){r(y);return}b.isError(O)?r(O):O?r(null,O):r(k())}return e.OPTIONS=n,e}let Zt=n=>n.substr(0,n.length-1).substr(1);function Wt(n,e,t,r=t){let s,i,u;return e?(Z.forEach(e,(a,o,c)=>{let f=o?Zt(a):a;if(n=n.resolve({context:r,parent:s,value:t}),n.innerType){let l=c?parseInt(f,10):0;if(t&&l>=t.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);s=t,t=t&&t[l],n=n.innerType}if(!c){if(!n.fields||!n.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${u} which is a type: "${n._type}")`);s=t,t=t&&t[f],n=n.fields[f]}i=f,u=o?"["+a+"]":"."+a}),{schema:n,parent:s,parentPath:i}):{parent:s,parentPath:e,schema:n}}class M{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,r)=>t.concat($.isRef(r)?e(r):r),[])}add(e){$.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){$.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new M;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const r=this.clone();return e.list.forEach(s=>r.add(s)),e.refs.forEach(s=>r.add(s)),t.list.forEach(s=>r.delete(s)),t.refs.forEach(s=>r.delete(s)),r}}function _(){return _=Object.assign||function(n){for(var e=1;e{this.typeError(D.notType)}),this.type=(e==null?void 0:e.type)||"mixed",this.spec=_({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},e==null?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=_({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=K(_({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(e.length===0)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();const s=_({},t.spec,r.spec);return r.spec=s,r._typeError||(r._typeError=t._typeError),r._whitelistError||(r._whitelistError=t._whitelistError),r._blacklistError||(r._blacklistError=t._blacklistError),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(i=>{e.tests.forEach(u=>{i.test(u.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return this.spec.nullable&&e===null?!0:this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((s,i)=>i.resolve(s,e),t),t=t.resolve(e)}return t}cast(e,t={}){let r=this.resolve(_({value:e},t)),s=r._cast(e,t);if(e!==void 0&&t.assert!==!1&&r.isType(s)!==!0){let i=T(e),u=T(s);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". + +attempted value: ${i} +`+(u!==i?`result of cast: ${u}`:""))}return s}_cast(e,t){let r=e===void 0?e:this.transforms.reduce((s,i)=>i.call(this,s,e,this),e);return r===void 0&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:s,path:i,from:u=[],originalValue:a=e,strict:o=this.spec.strict,abortEarly:c=this.spec.abortEarly}=t,f=e;o||(f=this._cast(f,_({assert:!1},t)));let l={value:f,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:s,from:u},h=[];this._typeError&&h.push(this._typeError);let d=[];this._whitelistError&&d.push(this._whitelistError),this._blacklistError&&d.push(this._blacklistError),V({args:l,value:f,path:i,sync:s,tests:h,endEarly:c},p=>{if(p)return void r(p,f);V({tests:this.tests.concat(d),args:l,path:i,sync:s,value:f,endEarly:c},r)})}validate(e,t,r){let s=this.resolve(_({},t,{value:e}));return typeof r=="function"?s._validate(e,t,r):new Promise((i,u)=>s._validate(e,t,(a,o)=>{a?u(a):i(o)}))}validateSync(e,t){let r=this.resolve(_({},t,{value:e})),s;return r._validate(e,_({},t,{sync:!0}),(i,u)=>{if(i)throw i;s=u}),s}isValid(e,t){return this.validate(e,t).then(()=>!0,r=>{if(b.isError(r))return!1;throw r})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(r){if(b.isError(r))return!1;throw r}}_getDefault(){let e=this.spec.default;return e==null?e:typeof e=="function"?e.call(this):K(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return e!=null}defined(e=D.defined){return this.test({message:e,name:"defined",exclusive:!0,test(t){return t!==void 0}})}required(e=D.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(t=>t.OPTIONS.name!=="required"),e}nullable(e=!0){return this.clone({nullable:e!==!1})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(e.length===1?typeof e[0]=="function"?t={test:e[0]}:t=e[0]:e.length===2?t={name:e[0],test:e[1]}:t={name:e[0],message:e[1],test:e[2]},t.message===void 0&&(t.message=D.default),typeof t.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),s=j(t),i=t.exclusive||t.name&&r.exclusiveTests[t.name]===!0;if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(u=>!(u.OPTIONS.name===t.name&&(i||u.OPTIONS.test===s.OPTIONS.test))),r.tests.push(s),r}when(e,t){!Array.isArray(e)&&typeof e!="string"&&(t=e,e=".");let r=this.clone(),s=Ee(e).map(i=>new $(i));return s.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(new gt(s,t)),r}typeError(e){let t=this.clone();return t._typeError=j({message:e,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),t}oneOf(e,t=D.oneOf){let r=this.clone();return e.forEach(s=>{r._whitelist.add(s),r._blacklist.delete(s)}),r._whitelistError=j({message:t,name:"oneOf",test(s){if(s===void 0)return!0;let i=this.schema._whitelist,u=i.resolveAll(this.resolve);return u.includes(s)?!0:this.createError({params:{values:i.toArray().join(", "),resolved:u}})}}),r}notOneOf(e,t=D.notOneOf){let r=this.clone();return e.forEach(s=>{r._blacklist.add(s),r._whitelist.delete(s)}),r._blacklistError=j({message:t,name:"notOneOf",test(s){let i=this.schema._blacklist,u=i.resolveAll(this.resolve);return u.includes(s)?this.createError({params:{values:i.toArray().join(", "),resolved:u}}):!0}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:r}=e.spec;return{meta:r,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(i=>({name:i.OPTIONS.name,params:i.OPTIONS.params})).filter((i,u,a)=>a.findIndex(o=>o.name===i.name)===u)}}}F.prototype.__isYupSchema__=!0;for(const n of["validate","validateSync"])F.prototype[`${n}At`]=function(e,t,r={}){const{parent:s,parentPath:i,schema:u}=Wt(this,e,t,r.context);return u[n](s&&s[i],_({},r,{parent:s,path:e}))};for(const n of["equals","is"])F.prototype[n]=F.prototype.oneOf;for(const n of["not","nope"])F.prototype[n]=F.prototype.notOneOf;F.prototype.optional=F.prototype.notRequired;const De=F;function Ht(){return new De}Ht.prototype=De.prototype;const g=n=>n==null;let Gt=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Jt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Kt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Yt=n=>g(n)||n===n.trim(),Bt={}.toString();function Xt(){return new Ce}class Ce extends F{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;const t=e!=null&&e.toString?e.toString():e;return t===Bt?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=v.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(r){return g(r)||r.length===this.resolve(e)}})}min(e,t=v.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(r){return g(r)||r.length>=this.resolve(e)}})}max(e,t=v.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(r){return g(r)||r.length<=this.resolve(e)}})}matches(e,t){let r=!1,s,i;return t&&(typeof t=="object"?{excludeEmptyString:r=!1,message:s,name:i}=t:s=t),this.test({name:i||"matches",message:s||v.matches,params:{regex:e},test:u=>g(u)||u===""&&r||u.search(e)!==-1})}email(e=v.email){return this.matches(Gt,{name:"email",message:e,excludeEmptyString:!0})}url(e=v.url){return this.matches(Jt,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=v.uuid){return this.matches(Kt,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=v.trim){return this.transform(t=>t!=null?t.trim():t).test({message:e,name:"trim",test:Yt})}lowercase(e=v.lowercase){return this.transform(t=>g(t)?t:t.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:t=>g(t)||t===t.toLowerCase()})}uppercase(e=v.uppercase){return this.transform(t=>g(t)?t:t.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:t=>g(t)||t===t.toUpperCase()})}}Xt.prototype=Ce.prototype;var Qt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function er(n){var e=[1,4,5,6,7,10,11],t=0,r,s;if(s=Qt.exec(n)){for(var i=0,u;u=e[i];++i)s[u]=+s[u]||0;s[2]=(+s[2]||1)-1,s[3]=+s[3]||1,s[7]=s[7]?String(s[7]).substr(0,3):0,(s[8]===void 0||s[8]==="")&&(s[9]===void 0||s[9]==="")?r=+new Date(s[1],s[2],s[3],s[4],s[5],s[6],s[7]):(s[8]!=="Z"&&s[9]!==void 0&&(t=s[10]*60+s[11],s[9]==="+"&&(t=0-t)),r=Date.UTC(s[1],s[2],s[3],s[4],s[5]+t,s[6],s[7]))}else r=Date.parse?Date.parse(n):NaN;return r}let ie=new Date(""),tr=n=>Object.prototype.toString.call(n)==="[object Date]";function Se(){return new ue}class ue extends F{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:(e=er(e),isNaN(e)?ie:new Date(e))})})}_typeCheck(e){return tr(e)&&!isNaN(e.getTime())}prepareParam(e,t){let r;if($.isRef(e))r=e;else{let s=this.cast(e);if(!this._typeCheck(s))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=s}return r}min(e,t=Y.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(s){return g(s)||s>=this.resolve(r)}})}max(e,t=Y.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(s){return g(s)||s<=this.resolve(r)}})}}ue.INVALID_DATE=ie;Se.prototype=ue.prototype;Se.INVALID_DATE=ie;function rr(n,e,t,r){var s=-1,i=n==null?0:n.length;for(r&&i&&(t=n[++s]);++ss?0:s+e),t=t>s?s:t,t<0&&(t+=s),s=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(s);++r=r?n:mn(n,e,t)}var xn=yn,Fn="\\ud800-\\udfff",gn="\\u0300-\\u036f",bn="\\ufe20-\\ufe2f",_n="\\u20d0-\\u20ff",vn=gn+bn+_n,En="\\ufe0e\\ufe0f",$n="\\u200d",wn=RegExp("["+$n+Fn+vn+En+"]");function On(n){return wn.test(n)}var Ze=On;function Dn(n){return n.split("")}var Cn=Dn,We="\\ud800-\\udfff",Sn="\\u0300-\\u036f",An="\\ufe20-\\ufe2f",Tn="\\u20d0-\\u20ff",Rn=Sn+An+Tn,kn="\\ufe0e\\ufe0f",Un="["+We+"]",ee="["+Rn+"]",te="\\ud83c[\\udffb-\\udfff]",zn="(?:"+ee+"|"+te+")",He="[^"+We+"]",Ge="(?:\\ud83c[\\udde6-\\uddff]){2}",Je="[\\ud800-\\udbff][\\udc00-\\udfff]",jn="\\u200d",Ke=zn+"?",Ye="["+kn+"]?",Pn="(?:"+jn+"(?:"+[He,Ge,Je].join("|")+")"+Ye+Ke+")*",Nn=Ye+Ke+Pn,Vn="(?:"+[He+ee+"?",ee,Ge,Je,Un].join("|")+")",In=RegExp(te+"(?="+te+")|"+Vn+Nn,"g");function Mn(n){return n.match(In)||[]}var Ln=Mn,qn=Cn,Zn=Ze,Wn=Ln;function Hn(n){return Zn(n)?Wn(n):qn(n)}var Gn=Hn,Jn=xn,Kn=Ze,Yn=Gn,Bn=q;function Xn(n){return function(e){e=Bn(e);var t=Kn(e)?Yn(e):void 0,r=t?t[0]:e.charAt(0),s=t?Jn(t,1).join(""):e.slice(1);return r[n]()+s}}var Qn=Xn,es=Qn,ts=es("toUpperCase"),rs=ts,ns=q,ss=rs;function is(n){return ss(ns(n).toLowerCase())}var us=is,as=us,os=qe,ls=os(function(n,e,t){return e=e.toLowerCase(),n+(t?as(e):e)}),fs=ls;const cs=R(fs);var hs=_e,ds=$e,ps=be;function ms(n,e){var t={};return e=ps(e),ds(n,function(r,s,i){hs(t,e(r,s,i),r)}),t}var ys=ms;const xs=R(ys);var ae={exports:{}};ae.exports=function(n){return Be(Fs(n),n)};ae.exports.array=Be;function Be(n,e){var t=n.length,r=new Array(t),s={},i=t,u=gs(e),a=bs(n);for(e.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)s[i]||o(n[i],i,new Set);return r;function o(c,f,l){if(l.has(c)){var h;try{h=", node was:"+JSON.stringify(c)}catch{h=""}throw new Error("Cyclic dependency"+h)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!s[f]){s[f]=!0;var d=u.get(c)||new Set;if(d=Array.from(d),f=d.length){l.add(c);do{var p=d[--f];o(p,a.get(p),l)}while(f);l.delete(c)}r[--t]=c}}}function Fs(n){for(var e=new Set,t=0,r=n.length;t`${u}-${a}`));function i(u,a){let o=Z.split(u)[0];r.add(o),s.has(`${a}-${o}`)||t.push([a,o])}for(const u in n)if(N(n,u)){let a=n[u];r.add(u),$.isRef(a)&&a.isSibling?i(a.path,u):re(a)&&"deps"in a&&a.deps.forEach(o=>i(o,u))}return vs.array(Array.from(r),t).reverse()}function Fe(n,e){let t=1/0;return n.some((r,s)=>{var i;if(((i=e.path)==null?void 0:i.indexOf(r))!==-1)return t=s,!0}),t}function Xe(n){return(e,t)=>Fe(n,e)-Fe(n,t)}function A(){return A=Object.assign||function(n){for(var e=1;eObject.prototype.toString.call(n)==="[object Object]";function $s(n,e){let t=Object.keys(n.fields);return Object.keys(e).filter(r=>t.indexOf(r)===-1)}const ws=Xe([]);class Qe extends F{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ws,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),e&&this.shape(e)})}_typeCheck(e){return ge(e)||typeof e=="function"}_cast(e,t={}){var r;let s=super._cast(e,t);if(s===void 0)return this.getDefault();if(!this._typeCheck(s))return s;let i=this.fields,u=(r=t.stripUnknown)!=null?r:this.spec.noUnknown,a=this._nodes.concat(Object.keys(s).filter(l=>this._nodes.indexOf(l)===-1)),o={},c=A({},t,{parent:o,__validating:t.__validating||!1}),f=!1;for(const l of a){let h=i[l],d=N(s,l);if(h){let p,m=s[l];c.path=(t.path?`${t.path}.`:"")+l,h=h.resolve({value:m,context:t.context,parent:o});let x="spec"in h?h.spec:void 0,E=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||l in s;continue}p=!t.__validating||!E?h.cast(s[l],c):s[l],p!==void 0&&(o[l]=p)}else d&&!u&&(o[l]=s[l]);o[l]!==s[l]&&(f=!0)}return f?o:s}_validate(e,t={},r){let s=[],{sync:i,from:u=[],originalValue:a=e,abortEarly:o=this.spec.abortEarly,recursive:c=this.spec.recursive}=t;u=[{schema:this,value:a},...u],t.__validating=!0,t.originalValue=a,t.from=u,super._validate(e,t,(f,l)=>{if(f){if(!b.isError(f)||o)return void r(f,l);s.push(f)}if(!c||!ge(l)){r(s[0]||null,l);return}a=a||l;let h=this._nodes.map(d=>(p,m)=>{let x=d.indexOf(".")===-1?(t.path?`${t.path}.`:"")+d:`${t.path||""}["${d}"]`,E=this.fields[d];if(E&&"validate"in E){E.validate(l[d],A({},t,{path:x,from:u,strict:!0,parent:l,originalValue:a[d]}),m);return}m(null)});V({sync:i,tests:h,value:l,errors:s,endEarly:o,sort:this._sortErrors,path:t.path},r)})}clone(e){const t=super.clone(e);return t.fields=A({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[s,i]of Object.entries(this.fields)){const u=r[s];u===void 0?r[s]=i:u instanceof F&&i instanceof F&&(r[s]=i.concat(u))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{const r=this.fields[t];e[t]="default"in r?r.getDefault():void 0}),e}_getDefault(){if("default"in this.spec)return super._getDefault();if(this._nodes.length)return this.getDefaultFromShape()}shape(e,t=[]){let r=this.clone(),s=Object.assign(r.fields,e);return r.fields=s,r._sortErrors=Xe(Object.keys(s)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=Es(s,r._excludedEdges),r}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(t)))}omit(e){const t=this.clone(),r=t.fields;t.fields={};for(const s of e)delete r[s];return t.withMutation(()=>t.shape(r))}from(e,t,r){let s=Z.getter(e,!0);return this.transform(i=>{if(i==null)return i;let u=i;return N(i,e)&&(u=A({},i),r||delete u[e],u[t]=s(i)),u})}noUnknown(e=!0,t=B.noUnknown){typeof e=="string"&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(s){if(s==null)return!0;const i=$s(this.schema,s);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=B.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&xs(t,(r,s)=>e(s)))}camelCase(){return this.transformKeys(cs)}snakeCase(){return this.transformKeys(xe)}constantCase(){return this.transformKeys(e=>xe(e).toUpperCase())}describe(){let e=super.describe();return e.fields=we(this.fields,t=>t.describe()),e}}function Os(n){return new Qe(n)}Os.prototype=Qe.prototype;function L(){return L=Object.assign||function(n){for(var e=1;e{this.transform(function(t){if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return this.isType(t)?t:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const r=super._cast(e,t);if(!this._typeCheck(r)||!this.innerType)return r;let s=!1;const i=r.map((u,a)=>{const o=this.innerType.cast(u,L({},t,{path:`${t.path||""}[${a}]`}));return o!==u&&(s=!0),o});return s?i:r}_validate(e,t={},r){var s,i;let u=[],a=t.sync,o=t.path,c=this.innerType,f=(s=t.abortEarly)!=null?s:this.spec.abortEarly,l=(i=t.recursive)!=null?i:this.spec.recursive,h=t.originalValue!=null?t.originalValue:e;super._validate(e,t,(d,p)=>{if(d){if(!b.isError(d)||f)return void r(d,p);u.push(d)}if(!l||!c||!this._typeCheck(p)){r(u[0]||null,p);return}h=h||p;let m=new Array(p.length);for(let x=0;xc.validate(E,w,U)}V({sync:a,path:o,value:p,errors:u,endEarly:f,tests:m},r)})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!re(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+T(e));return t.innerType=e,t}length(e,t=P.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(r){return g(r)||r.length===this.resolve(e)}})}min(e,t){return t=t||P.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(r){return g(r)||r.length>=this.resolve(e)}})}max(e,t){return t=t||P.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(r){return g(r)||r.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:t==null?[]:[].concat(t))}compact(e){let t=e?(r,s,i)=>!e(r,s,i):r=>!!r;return this.transform(r=>r!=null?r.filter(t):r)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}Ds.prototype=et.prototype;export{Ht as a,Xt as b,Os as c,Ds as d,Se as e}; diff --git a/storybook/assets/colorManipulator-BcfljvUw.js b/storybook/assets/colorManipulator-BcfljvUw.js new file mode 100644 index 0000000..b46982e --- /dev/null +++ b/storybook/assets/colorManipulator-BcfljvUw.js @@ -0,0 +1 @@ +import{f as a,g as f}from"./Wrapper-DXvvO_B0.js";function g(t,r=0,n=1){return f(t,r,n)}function h(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(r);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?"a":""}(${n.map((e,s)=>s<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function p(t){if(t.type)return t;if(t.charAt(0)==="#")return p(h(t));const r=t.indexOf("("),n=t.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(a(9,t));let e=t.substring(r+1,t.length-1),s;if(n==="color"){if(e=e.split(" "),s=e.shift(),e.length===4&&e[3].charAt(0)==="/"&&(e[3]=e[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(s)===-1)throw new Error(a(10,s))}else e=e.split(",");return e=e.map(i=>parseFloat(i)),{type:n,values:e,colorSpace:s}}function u(t){const{type:r,colorSpace:n}=t;let{values:e}=t;return r.indexOf("rgb")!==-1?e=e.map((s,i)=>i<3?parseInt(s,10):s):r.indexOf("hsl")!==-1&&(e[1]=`${e[1]}%`,e[2]=`${e[2]}%`),r.indexOf("color")!==-1?e=`${n} ${e.join(" ")}`:e=`${e.join(", ")}`,`${r}(${e})`}function m(t,r){return t=p(t),r=g(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,u(t)}export{m as a}; diff --git a/storybook/assets/createStyled-D6A6HRKR.js b/storybook/assets/createStyled-D6A6HRKR.js new file mode 100644 index 0000000..b946e1a --- /dev/null +++ b/storybook/assets/createStyled-D6A6HRKR.js @@ -0,0 +1 @@ +import{_ as n}from"./isNativeReflectConstruct-CJAgTEKr.js";import{i as W,_ as F,a as I,b as $,d as q,e as z}from"./Wrapper-DXvvO_B0.js";const B=["ownerState"],G=["variants"],H=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function J(e){return Object.keys(e).length===0}function K(e){return typeof e=="string"&&e.charCodeAt(0)>96}function A(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Q=$(),U=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function w({defaultTheme:e,theme:s,themeId:t}){return J(s)?e:s[t]||s}function X(e){return e?(s,t)=>t[e]:null}function x(e,s){let{ownerState:t}=s,d=F(s,B);const l=typeof e=="function"?e(n({ownerState:t},d)):e;if(Array.isArray(l))return l.flatMap(h=>x(h,n({ownerState:t},d)));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:h=[]}=l;let m=F(l,G);return h.forEach(o=>{let i=!0;typeof o.props=="function"?i=o.props(n({ownerState:t},d,t)):Object.keys(o.props).forEach(p=>{(t==null?void 0:t[p])!==o.props[p]&&d[p]!==o.props[p]&&(i=!1)}),i&&(Array.isArray(m)||(m=[m]),m.push(typeof o.style=="function"?o.style(n({ownerState:t},d,t)):o.style))}),m}return l}function g(e={}){const{themeId:s,defaultTheme:t=Q,rootShouldForwardProp:d=A,slotShouldForwardProp:l=A}=e,h=a=>q(n({},a,{theme:w(n({},a,{defaultTheme:t,themeId:s}))}));return h.__mui_systemSx=!0,(a,m={})=>{W(a,r=>r.filter(c=>!(c!=null&&c.__mui_systemSx)));const{name:o,slot:i,skipVariantsResolver:p,skipSx:T,overridesResolver:k=X(U(i))}=m,V=F(m,H),E=p!==void 0?p:i&&i!=="Root"&&i!=="root"||!1,N=T||!1;let L,v=A;i==="Root"||i==="root"?v=d:i?v=l:K(a)&&(v=void 0);const R=I(a,n({shouldForwardProp:v,label:L},V)),C=r=>typeof r=="function"&&r.__emotion_real!==r||z(r)?c=>x(r,n({},c,{theme:w({theme:c.theme,defaultTheme:t,themeId:s})})):r,P=(r,...c)=>{let O=C(r);const y=c?c.map(C):[];o&&k&&y.push(f=>{const u=w(n({},f,{defaultTheme:t,themeId:s}));if(!u.components||!u.components[o]||!u.components[o].styleOverrides)return null;const S=u.components[o].styleOverrides,_={};return Object.entries(S).forEach(([D,M])=>{_[D]=x(M,n({},f,{theme:u}))}),k(f,_)}),o&&!E&&y.push(f=>{var u;const S=w(n({},f,{defaultTheme:t,themeId:s})),_=S==null||(u=S.components)==null||(u=u[o])==null?void 0:u.variants;return x({variants:_},n({},f,{theme:S}))}),N||y.push(h);const b=y.length-c.length;if(Array.isArray(r)&&b>0){const f=new Array(b).fill("");O=[...r,...f],O.raw=[...r.raw,...f]}const j=R(O,...y);return a.muiName&&(j.muiName=a.muiName),j};return R.withConfig&&(P.withConfig=R.withConfig),P}}export{g as c,A as s}; diff --git a/storybook/assets/createSvgIcon-DLhoJ5Fi.js b/storybook/assets/createSvgIcon-DLhoJ5Fi.js new file mode 100644 index 0000000..4b978e8 --- /dev/null +++ b/storybook/assets/createSvgIcon-DLhoJ5Fi.js @@ -0,0 +1 @@ +import{_ as g}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as v}from"./index-CTjT7uj6.js";import{o as z,p as I,s as C,t as f,u as R,_ as w,j as S,c as b,q as j}from"./Wrapper-DXvvO_B0.js";function N(o){return z("MuiSvgIcon",o)}I("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:t,fontSize:e,classes:n}=o,i={root:["root",t!=="inherit"&&`color${f(t)}`,`fontSize${f(e)}`]};return j(i,N,n)},M=C("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,e.color!=="inherit"&&t[`color${f(e.color)}`],t[`fontSize${f(e.fontSize)}`]]}})(({theme:o,ownerState:t})=>{var e,n,i,p,m,a,h,u,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(e=o.transitions)==null||(n=e.create)==null?void 0:n.call(e,"fill",{duration:(i=o.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((p=o.typography)==null||(m=p.pxToRem)==null?void 0:m.call(p,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((u=o.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[t.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[t.color]}}),y=v.forwardRef(function(t,e){const n=R({props:t,name:"MuiSvgIcon"}),{children:i,className:p,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=n,c=w(n,A),l=v.isValidElement(i)&&i.type==="svg",x=g({},n,{color:m,component:a,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),$={};d||($.viewBox=s);const _=B(x);return S.jsxs(M,g({as:a,className:b(_.root,p),focusable:"false",color:u,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:e},$,c,l&&i.props,{ownerState:x,children:[l?i.props.children:i,r?S.jsx("title",{children:r}):null]}))});y.muiName="SvgIcon";function V(o,t){function e(n,i){return S.jsx(y,g({"data-testid":`${t}Icon`,ref:i},n,{children:o}))}return e.muiName=y.muiName,v.memo(v.forwardRef(e))}export{V as c}; diff --git a/storybook/assets/dateViewRenderers-B8uYg_Kt.js b/storybook/assets/dateViewRenderers-B8uYg_Kt.js new file mode 100644 index 0000000..e2e758d --- /dev/null +++ b/storybook/assets/dateViewRenderers-B8uYg_Kt.js @@ -0,0 +1 @@ +import{R as Je,r as p}from"./index-CTjT7uj6.js";import{A as De,a2 as bt,i as le,c as we,S as Le,a3 as Fe,a4 as Ae,N as Ee,j as et,a5 as Re,a6 as yt,D as tt,M as He,a7 as Ct,z as je,a8 as vt,a9 as wt,aa as Mt,ab as xt,L as kt,K as Pt,a1 as Rt,O as Ft,ac as Nt,ad as St,V as Ze}from"./errorHandler-ulv3bqY5.js";import{_ as re,U as G,o as ue,p as he,s as I,a6 as at,Y as fe,j as g,c as ie,q as pe,A as At,E as st,D as We,T as _e}from"./Wrapper-DXvvO_B0.js";import{a as Et,_ as M}from"./isNativeReflectConstruct-CJAgTEKr.js";import{b as Tt,T as Vt,a as nt,c as ot,u as Me}from"./Select-DSn46qfv.js";import{u as ze}from"./index-BjNUr1t6.js";import{a as xe}from"./colorManipulator-BcfljvUw.js";import{u as Ue}from"./useControlled-5JjQu8rW.js";import{u as Ot}from"./useId-BjRAp5Eo.js";import{I as $t}from"./Chip-C6MsZLfs.js";function It(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Bt(e,t){e.classList?e.classList.add(t):It(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yt(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qe(e.className,t):e.setAttribute("class",Qe(e.className&&e.className.baseVal||"",t))}var Lt=function(t,a){return t&&a&&a.split(" ").forEach(function(s){return Bt(t,s)})},Ye=function(t,a){return t&&a&&a.split(" ").forEach(function(s){return Yt(t,s)})},Ke=function(e){Et(t,e);function t(){for(var s,o=arguments.length,r=new Array(o),l=0;l{if(t===null)return null;const{shouldDisableDate:s,shouldDisableMonth:o,shouldDisableYear:r,disablePast:l,disableFuture:n,timezone:i}=e,c=a.utils.date(void 0,i),b=De(a.utils,e.minDate,a.defaultDates.minDate),D=De(a.utils,e.maxDate,a.defaultDates.maxDate);switch(!0){case!a.utils.isValid(t):return"invalidDate";case!!(s&&s(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(r&&r(t)):return"shouldDisableYear";case!!(n&&a.utils.isAfterDay(t,c)):return"disableFuture";case!!(l&&a.utils.isBeforeDay(t,c)):return"disablePast";case!!(b&&a.utils.isBeforeDay(t,b)):return"minDate";case!!(D&&a.utils.isAfterDay(t,D)):return"maxDate";default:return null}},rt=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:a,minDate:s,maxDate:o,disableFuture:r,disablePast:l,timezone:n})=>{const i=bt();return p.useCallback(c=>Ht({adapter:i,value:c,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:a,minDate:s,maxDate:o,disableFuture:r,disablePast:l,timezone:n}})!==null,[i,e,t,a,s,o,r,l,n])},jt=(e,t,a)=>(s,o)=>{switch(o.type){case"changeMonth":return M({},s,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return M({},s,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(s.focusedDay!=null&&o.focusedDay!=null&&a.isSameDay(o.focusedDay,s.focusedDay))return s;const r=o.focusedDay!=null&&!t&&!a.isSameMonth(s.currentMonth,o.focusedDay);return M({},s,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:r&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:r?a.startOfMonth(o.focusedDay):s.currentMonth,slideDirection:o.focusedDay!=null&&a.isAfterDay(o.focusedDay,s.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Wt=e=>{const{value:t,referenceDate:a,disableFuture:s,disablePast:o,disableSwitchToMonthOnDayFocus:r=!1,maxDate:l,minDate:n,onMonthChange:i,reduceAnimations:c,shouldDisableDate:b,timezone:D}=e,f=le(),E=p.useRef(jt(!!c,r,f)).current,N=p.useMemo(()=>we.getInitialReferenceValue({value:t,utils:f,timezone:D,props:e,referenceDate:a,granularity:Le.day}),[]),[R,u]=p.useReducer(E,{isMonthSwitchingAnimating:!1,focusedDay:N,currentMonth:f.startOfMonth(N),slideDirection:"left"}),F=p.useCallback(v=>{u(M({type:"changeMonth"},v)),i&&i(v.newMonth)},[i]),C=p.useCallback(v=>{const x=v;f.isSameMonth(x,R.currentMonth)||F({newMonth:f.startOfMonth(x),direction:f.isAfterDay(x,R.currentMonth)?"left":"right"})},[R.currentMonth,F,f]),S=rt({shouldDisableDate:b,minDate:n,maxDate:l,disableFuture:s,disablePast:o,timezone:D}),T=p.useCallback(()=>{u({type:"finishMonthSwitchingAnimation"})},[]),O=G((v,x)=>{S(v)||u({type:"changeFocusedDay",focusedDay:v,withoutMonthSwitchingAnimation:x})});return{referenceDate:N,calendarState:R,changeMonth:C,changeFocusedDay:O,isDateDisabled:S,onMonthSwitchingAnimationEnd:T,handleChangeMonth:F}},_t=e=>ue("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const zt=e=>{const{classes:t}=e;return pe({root:["root"]},_t,t)},Ut=I(at,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function it(e){const t=fe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:a,className:s,reduceAnimations:o,transKey:r}=t,l=zt(t),n=nt();return o?a:g.jsx(Ut,{className:ie(l.root,s),children:g.jsx(ot,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:n.transitions.duration.enteringScreen,enter:n.transitions.duration.enteringScreen,exit:0},children:a},r)})}function Kt(e){return ue("MuiPickersDay",e)}const ve=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Gt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],qt=e=>{const{selected:t,disableMargin:a,disableHighlightToday:s,today:o,disabled:r,outsideCurrentMonth:l,showDaysOutsideCurrentMonth:n,classes:i}=e,c=l&&!n;return pe({root:["root",t&&!c&&"selected",r&&"disabled",!a&&"dayWithMargin",!s&&o&&"today",l&&n&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Kt,i)},lt=({theme:e})=>M({},e.typography.caption,{width:Fe,height:Fe,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:xe(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ve.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ve.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ve.disabled}:not(.${ve.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ve.disabled}&.${ve.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ae}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ve.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ct=(e,t)=>{const{ownerState:a}=e;return[t.root,!a.disableMargin&&t.dayWithMargin,!a.disableHighlightToday&&a.today&&t.today,!a.outsideCurrentMonth&&a.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,a.outsideCurrentMonth&&!a.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Xt=I(At,{name:"MuiPickersDay",slot:"Root",overridesResolver:ct})(lt),Jt=I("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ct})(({theme:e})=>M({},lt({theme:e}),{opacity:0,pointerEvents:"none"})),Pe=()=>{},Zt=p.forwardRef(function(t,a){const s=fe({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:r,day:l,disabled:n=!1,disableHighlightToday:i=!1,disableMargin:c=!1,isAnimating:b,onClick:D,onDaySelect:f,onFocus:E=Pe,onBlur:N=Pe,onKeyDown:R=Pe,onMouseDown:u=Pe,onMouseEnter:F=Pe,outsideCurrentMonth:C,selected:S=!1,showDaysOutsideCurrentMonth:T=!1,children:O,today:v=!1}=s,x=re(s,Gt),B=M({},s,{autoFocus:o,disabled:n,disableHighlightToday:i,disableMargin:c,selected:S,showDaysOutsideCurrentMonth:T,today:v}),$=qt(B),P=le(),L=p.useRef(null),V=st(L,a);We(()=>{o&&!n&&!b&&!C&&L.current.focus()},[o,n,b,C]);const H=d=>{u(d),C&&d.preventDefault()},_=d=>{n||f(l),C&&d.currentTarget.focus(),D&&D(d)};return C&&!T?g.jsx(Jt,{className:ie($.root,$.hiddenDaySpacingFiller,r),ownerState:B,role:x.role}):g.jsx(Xt,M({className:ie($.root,r),ref:V,centerRipple:!0,disabled:n,tabIndex:S?0:-1,onKeyDown:d=>R(d,l),onFocus:d=>E(d,l),onBlur:d=>N(d,l),onMouseEnter:d=>F(d,l),onClick:_,onMouseDown:H},x,{ownerState:B,children:O||P.format(l,"dayOfMonth")}))}),Qt=p.memo(Zt),ea=e=>ue("MuiPickersSlideTransition",e),oe=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ta=["children","className","reduceAnimations","slideDirection","transKey","classes"],aa=e=>{const{classes:t,slideDirection:a}=e,s={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${a}`],exitActive:[`slideExitActiveLeft-${a}`]};return pe(s,ea,t)},sa=I(at,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${oe["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${oe["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${oe.slideEnterActive}`]:t.slideEnterActive},{[`.${oe.slideExit}`]:t.slideExit},{[`.${oe["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${oe["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${oe["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${oe["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${oe.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${oe.slideExit}`]:{transform:"translate(0%)"},[`& .${oe["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${oe["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function na(e){const t=fe({props:e,name:"MuiPickersSlideTransition"}),{children:a,className:s,reduceAnimations:o,transKey:r}=t,l=re(t,ta),n=aa(t),i=nt();if(o)return g.jsx("div",{className:ie(n.root,s),children:a});const c={exit:n.exit,enterActive:n.enterActive,enter:n.enter,exitActive:n.exitActive};return g.jsx(sa,{className:ie(n.root,s),childFactory:b=>p.cloneElement(b,{classNames:c}),role:"presentation",children:g.jsx(Ke,M({mountOnEnter:!0,unmountOnExit:!0,timeout:i.transitions.duration.complex,classNames:c},l,{children:a}),r)})}const oa=e=>ue("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const ra=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],ia=["ownerState"],la=e=>{const{classes:t}=e;return pe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},oa,t)},dt=(Fe+Ae*2)*6,ca=I("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),da=I("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ua=I(_e,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),ha=I(_e,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),fa=I(_e,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>M({},e.typography.caption,{width:Fe,height:Fe,padding:0,margin:`0 ${Ae}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),pa=I("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:dt}),ma=I(na,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:dt}),ga=I("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Da=I("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Ae}px 0`,display:"flex",justifyContent:"center"});function ba(e){let{parentProps:t,day:a,focusableDay:s,selectedDays:o,isDateDisabled:r,currentMonthNumber:l,isViewFocused:n}=e,i=re(e,ra);const{disabled:c,disableHighlightToday:b,isMonthSwitchingAnimating:D,showDaysOutsideCurrentMonth:f,slots:E,slotProps:N,timezone:R}=t,u=le(),F=Ee(R),C=s!==null&&u.isSameDay(a,s),S=o.some(V=>u.isSameDay(V,a)),T=u.isSameDay(a,F),O=(E==null?void 0:E.day)??Qt,v=Me({elementType:O,externalSlotProps:N==null?void 0:N.day,additionalProps:M({disableHighlightToday:b,showDaysOutsideCurrentMonth:f,role:"gridcell",isAnimating:D,"data-timestamp":u.toJsDate(a).valueOf()},i),ownerState:M({},t,{day:a,selected:S})}),x=re(v,ia),B=p.useMemo(()=>c||r(a),[c,r,a]),$=p.useMemo(()=>u.getMonth(a)!==l,[u,a,l]),P=p.useMemo(()=>{const V=u.startOfMonth(u.setMonth(a,l));return f?u.isSameDay(a,u.startOfWeek(V)):u.isSameDay(a,V)},[l,a,f,u]),L=p.useMemo(()=>{const V=u.endOfMonth(u.setMonth(a,l));return f?u.isSameDay(a,u.endOfWeek(V)):u.isSameDay(a,V)},[l,a,f,u]);return g.jsx(O,M({},x,{day:a,disabled:B,autoFocus:n&&C,today:T,outsideCurrentMonth:$,isFirstVisibleCell:P,isLastVisibleCell:L,selected:S,tabIndex:C?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function ya(e){const t=fe({props:e,name:"MuiDayCalendar"}),a=le(),{onFocusedDayChange:s,className:o,currentMonth:r,selectedDays:l,focusedDay:n,loading:i,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:b,readOnly:D,reduceAnimations:f,renderLoading:E=()=>g.jsx("span",{children:"..."}),slideDirection:N,TransitionProps:R,disablePast:u,disableFuture:F,minDate:C,maxDate:S,shouldDisableDate:T,shouldDisableMonth:O,shouldDisableYear:v,dayOfWeekFormatter:x=h=>a.format(h,"weekdayShort").charAt(0).toUpperCase(),hasFocus:B,onFocusedViewChange:$,gridLabelId:P,displayWeekNumber:L,fixedWeekNumber:V,autoFocus:H,timezone:_}=t,d=Ee(_),Y=la(t),K=ze(),U=rt({shouldDisableDate:T,shouldDisableMonth:O,shouldDisableYear:v,minDate:C,maxDate:S,disablePast:u,disableFuture:F,timezone:_}),q=et(),[j,ee]=Ue({name:"DayCalendar",state:"hasFocus",controlled:B,default:H??!1}),[te,be]=p.useState(()=>n||d),ye=G(h=>{D||c(h)}),Z=h=>{U(h)||(s(h),be(h),$==null||$(!0),ee(!0))},me=G((h,w)=>{switch(h.key){case"ArrowUp":Z(a.addDays(w,-7)),h.preventDefault();break;case"ArrowDown":Z(a.addDays(w,7)),h.preventDefault();break;case"ArrowLeft":{const z=a.addDays(w,K?1:-1),ne=a.addMonths(w,K?1:-1),ce=Re({utils:a,date:z,minDate:K?z:a.startOfMonth(ne),maxDate:K?a.endOfMonth(ne):z,isDateDisabled:U,timezone:_});Z(ce||z),h.preventDefault();break}case"ArrowRight":{const z=a.addDays(w,K?-1:1),ne=a.addMonths(w,K?-1:1),ce=Re({utils:a,date:z,minDate:K?a.startOfMonth(ne):z,maxDate:K?z:a.endOfMonth(ne),isDateDisabled:U,timezone:_});Z(ce||z),h.preventDefault();break}case"Home":Z(a.startOfWeek(w)),h.preventDefault();break;case"End":Z(a.endOfWeek(w)),h.preventDefault();break;case"PageUp":Z(a.addMonths(w,1)),h.preventDefault();break;case"PageDown":Z(a.addMonths(w,-1)),h.preventDefault();break}}),X=G((h,w)=>Z(w)),Q=G((h,w)=>{j&&a.isSameDay(te,w)&&($==null||$(!1))}),se=a.getMonth(r),J=a.getYear(r),Ce=p.useMemo(()=>l.filter(h=>!!h).map(h=>a.startOfDay(h)),[a,l]),y=`${J}-${se}`,A=p.useMemo(()=>p.createRef(),[y]),m=a.startOfWeek(d),k=p.useMemo(()=>{const h=a.startOfMonth(r),w=a.endOfMonth(r);return U(te)||a.isAfterDay(te,w)||a.isBeforeDay(te,h)?Re({utils:a,date:te,minDate:h,maxDate:w,disablePast:u,disableFuture:F,isDateDisabled:U,timezone:_}):te},[r,F,u,te,U,a,_]),ae=p.useMemo(()=>{const h=a.setTimezone(r,_),w=a.getWeekArray(h);let z=a.addMonths(h,1);for(;V&&w.length{w.lengthg.jsx(ua,{variant:"caption",role:"columnheader","aria-label":a.format(a.addDays(m,w),"weekday"),className:Y.weekDayLabel,children:x(h)},w.toString()))]}),i?g.jsx(pa,{className:Y.loadingContainer,children:E()}):g.jsx(ma,M({transKey:y,onExited:b,reduceAnimations:f,slideDirection:N,className:ie(o,Y.slideTransition)},R,{nodeRef:A,children:g.jsx(ga,{ref:A,role:"rowgroup",className:Y.monthContainer,children:ae.map((h,w)=>g.jsxs(Da,{role:"row",className:Y.weekContainer,"aria-rowindex":w+1,children:[L&&g.jsx(fa,{className:Y.weekNumber,role:"rowheader","aria-label":q.calendarWeekNumberAriaLabelText(a.getWeekNumber(h[0])),children:q.calendarWeekNumberText(a.getWeekNumber(h[0]))}),h.map((z,ne)=>g.jsx(ba,{parentProps:t,day:z,selectedDays:Ce,focusableDay:k,onKeyDown:me,onFocus:X,onBlur:Q,onDaySelect:ye,isDateDisabled:U,currentMonthNumber:se,isViewFocused:j,"aria-colindex":ne+1},z.toString()))]},`week-${h[0]}`))})}))]})}function Ca(e){return ue("MuiPickersMonth",e)}const Ne=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),va=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],wa=e=>{const{disabled:t,selected:a,classes:s}=e;return pe({root:["root"],monthButton:["monthButton",t&&"disabled",a&&"selected"]},Ca,s)},Ma=I("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),xa=I("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Ne.disabled}`]:t.disabled},{[`&.${Ne.selected}`]:t.selected}]})(({theme:e})=>M({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ne.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ne.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ka=p.memo(function(t){const a=fe({props:t,name:"MuiPickersMonth"}),{autoFocus:s,className:o,children:r,disabled:l,selected:n,value:i,tabIndex:c,onClick:b,onKeyDown:D,onFocus:f,onBlur:E,"aria-current":N,"aria-label":R,slots:u,slotProps:F}=a,C=re(a,va),S=p.useRef(null),T=wa(a);We(()=>{var x;s&&((x=S.current)==null||x.focus())},[s]);const O=(u==null?void 0:u.monthButton)??xa,v=Me({elementType:O,externalSlotProps:F==null?void 0:F.monthButton,additionalProps:{children:r,disabled:l,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":N,"aria-checked":n,"aria-label":R,onClick:x=>b(x,i),onKeyDown:x=>D(x,i),onFocus:x=>f(x,i),onBlur:x=>E(x,i)},ownerState:a,className:T.monthButton});return g.jsx(Ma,M({className:ie(T.root,o),ownerState:a},C,{children:g.jsx(O,M({},v))}))});function Pa(e){return ue("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const Ra=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Fa=e=>{const{classes:t}=e;return pe({root:["root"]},Pa,t)};function Na(e,t){const a=le(),s=je(),o=fe({props:e,name:t});return M({disableFuture:!1,disablePast:!1},o,{minDate:De(a,o.minDate,s.minDate),maxDate:De(a,o.maxDate,s.maxDate)})}const Sa=I("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:tt,boxSizing:"border-box"}),Aa=p.forwardRef(function(t,a){const s=Na(t,"MuiMonthCalendar"),{className:o,value:r,defaultValue:l,referenceDate:n,disabled:i,disableFuture:c,disablePast:b,maxDate:D,minDate:f,onChange:E,shouldDisableMonth:N,readOnly:R,autoFocus:u=!1,onMonthFocus:F,hasFocus:C,onFocusedViewChange:S,monthsPerRow:T=3,timezone:O,gridLabelId:v,slots:x,slotProps:B}=s,$=re(s,Ra),{value:P,handleValueChange:L,timezone:V}=He({name:"MonthCalendar",timezone:O,value:r,defaultValue:l,onChange:E,valueManager:we}),H=Ee(V),_=ze(),d=le(),Y=p.useMemo(()=>we.getInitialReferenceValue({value:P,utils:d,props:s,timezone:V,referenceDate:n,granularity:Le.month}),[]),K=s,U=Fa(K),q=p.useMemo(()=>d.getMonth(H),[d,H]),j=p.useMemo(()=>P!=null?d.getMonth(P):null,[P,d]),[ee,te]=p.useState(()=>j||d.getMonth(Y)),[be,ye]=Ue({name:"MonthCalendar",state:"hasFocus",controlled:C,default:u??!1}),Z=G(y=>{ye(y),S&&S(y)}),me=p.useCallback(y=>{const A=d.startOfMonth(b&&d.isAfter(H,f)?H:f),m=d.startOfMonth(c&&d.isBefore(H,D)?H:D),k=d.startOfMonth(y);return d.isBefore(k,A)||d.isAfter(k,m)?!0:N?N(k):!1},[c,b,D,f,H,N,d]),X=G((y,A)=>{if(R)return;const m=d.setMonth(P??Y,A);L(m)}),Q=G(y=>{me(d.setMonth(P??Y,y))||(te(y),Z(!0),F&&F(y))});p.useEffect(()=>{te(y=>j!==null&&y!==j?j:y)},[j]);const se=G((y,A)=>{switch(y.key){case"ArrowUp":Q((12+A-3)%12),y.preventDefault();break;case"ArrowDown":Q((12+A+3)%12),y.preventDefault();break;case"ArrowLeft":Q((12+A+(_?1:-1))%12),y.preventDefault();break;case"ArrowRight":Q((12+A+(_?-1:1))%12),y.preventDefault();break}}),J=G((y,A)=>{Q(A)}),Ce=G((y,A)=>{ee===A&&Z(!1)});return g.jsx(Sa,M({ref:a,className:ie(U.root,o),ownerState:K,role:"radiogroup","aria-labelledby":v},$,{children:Ct(d,P??Y).map(y=>{const A=d.getMonth(y),m=d.format(y,"monthShort"),k=d.format(y,"month"),ae=A===j,h=i||me(y);return g.jsx(ka,{selected:ae,value:A,onClick:X,onKeyDown:se,autoFocus:be&&A===ee,disabled:h,tabIndex:A===ee&&!h?0:-1,onFocus:J,onBlur:Ce,"aria-current":q===A?"date":void 0,"aria-label":k,monthsPerRow:T,slots:x,slotProps:B,children:m},m)})}))});function Ea(e){return ue("MuiPickersYear",e)}const Se=he("MuiPickersYear",["root","yearButton","selected","disabled"]),Ta=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Va=e=>{const{disabled:t,selected:a,classes:s}=e;return pe({root:["root"],yearButton:["yearButton",t&&"disabled",a&&"selected"]},Ea,s)},Oa=I("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),$a=I("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Se.disabled}`]:t.disabled},{[`&.${Se.selected}`]:t.selected}]})(({theme:e})=>M({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:xe(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:xe(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Se.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Se.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ia=p.memo(function(t){const a=fe({props:t,name:"MuiPickersYear"}),{autoFocus:s,className:o,children:r,disabled:l,selected:n,value:i,tabIndex:c,onClick:b,onKeyDown:D,onFocus:f,onBlur:E,"aria-current":N,slots:R,slotProps:u}=a,F=re(a,Ta),C=p.useRef(null),S=Va(a);We(()=>{var v;s&&((v=C.current)==null||v.focus())},[s]);const T=(R==null?void 0:R.yearButton)??$a,O=Me({elementType:T,externalSlotProps:u==null?void 0:u.yearButton,additionalProps:{children:r,disabled:l,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":N,"aria-checked":n,onClick:v=>b(v,i),onKeyDown:v=>D(v,i),onFocus:v=>f(v,i),onBlur:v=>E(v,i)},ownerState:a,className:S.yearButton});return g.jsx(Oa,M({className:ie(S.root,o),ownerState:a},F,{children:g.jsx(T,M({},O))}))});function Ba(e){return ue("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const Ya=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId","slots","slotProps"],La=e=>{const{classes:t}=e;return pe({root:["root"]},Ba,t)};function Ha(e,t){const a=le(),s=je(),o=fe({props:e,name:t});return M({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:De(a,o.minDate,s.minDate),maxDate:De(a,o.maxDate,s.maxDate)})}const ja=I("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:tt,maxHeight:vt,boxSizing:"border-box",position:"relative"}),Wa=p.forwardRef(function(t,a){const s=Ha(t,"MuiYearCalendar"),{autoFocus:o,className:r,value:l,defaultValue:n,referenceDate:i,disabled:c,disableFuture:b,disablePast:D,maxDate:f,minDate:E,onChange:N,readOnly:R,shouldDisableYear:u,onYearFocus:F,hasFocus:C,onFocusedViewChange:S,yearsPerRow:T,timezone:O,gridLabelId:v,slots:x,slotProps:B}=s,$=re(s,Ya),{value:P,handleValueChange:L,timezone:V}=He({name:"YearCalendar",timezone:O,value:l,defaultValue:n,onChange:N,valueManager:we}),H=Ee(V),_=ze(),d=le(),Y=p.useMemo(()=>we.getInitialReferenceValue({value:P,utils:d,props:s,timezone:V,referenceDate:i,granularity:Le.year}),[]),K=s,U=La(K),q=p.useMemo(()=>d.getYear(H),[d,H]),j=p.useMemo(()=>P!=null?d.getYear(P):null,[P,d]),[ee,te]=p.useState(()=>j||d.getYear(Y)),[be,ye]=Ue({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),Z=G(m=>{ye(m),S&&S(m)}),me=p.useCallback(m=>{if(D&&d.isBeforeYear(m,H)||b&&d.isAfterYear(m,H)||E&&d.isBeforeYear(m,E)||f&&d.isAfterYear(m,f))return!0;if(!u)return!1;const k=d.startOfYear(m);return u(k)},[b,D,f,E,H,u,d]),X=G((m,k)=>{if(R)return;const ae=d.setYear(P??Y,k);L(ae)}),Q=G(m=>{me(d.setYear(P??Y,m))||(te(m),Z(!0),F==null||F(m))});p.useEffect(()=>{te(m=>j!==null&&m!==j?j:m)},[j]);const se=G((m,k)=>{switch(m.key){case"ArrowUp":Q(k-T),m.preventDefault();break;case"ArrowDown":Q(k+T),m.preventDefault();break;case"ArrowLeft":Q(k+(_?1:-1)),m.preventDefault();break;case"ArrowRight":Q(k+(_?-1:1)),m.preventDefault();break}}),J=G((m,k)=>{Q(k)}),Ce=G((m,k)=>{ee===k&&Z(!1)}),y=p.useRef(null),A=st(a,y);return p.useEffect(()=>{if(o||y.current===null)return;const m=y.current.querySelector('[tabindex="0"]');if(!m)return;const k=m.offsetHeight,ae=m.offsetTop,h=y.current.clientHeight,w=y.current.scrollTop,z=ae+k;k>h||ae{const k=d.getYear(m),ae=k===j,h=c||me(m);return g.jsx(Ia,{selected:ae,value:k,onClick:X,onKeyDown:se,autoFocus:be&&k===ee,disabled:h,tabIndex:k===ee&&!h?0:-1,onFocus:J,onBlur:Ce,"aria-current":q===k?"date":void 0,yearsPerRow:T,slots:x,slotProps:B,children:d.format(m,"year")},d.format(m,"year"))})}))}),_a=e=>ue("MuiPickersCalendarHeader",e),za=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Ua=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Ka=["ownerState"],Ga=e=>{const{classes:t}=e;return pe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},_a,t)},qa=I("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Xa=I("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>M({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Ja=I("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Za=I($t,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${za.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Qa=I(wt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),es=p.forwardRef(function(t,a){const s=et(),o=le(),r=fe({props:t,name:"MuiPickersCalendarHeader"}),{slots:l,slotProps:n,currentMonth:i,disabled:c,disableFuture:b,disablePast:D,maxDate:f,minDate:E,onMonthChange:N,onViewChange:R,view:u,reduceAnimations:F,views:C,labelId:S,className:T,timezone:O,format:v=`${o.formats.month} ${o.formats.year}`}=r,x=re(r,Ua),B=r,$=Ga(r),P=(l==null?void 0:l.switchViewButton)??Za,L=Me({elementType:P,externalSlotProps:n==null?void 0:n.switchViewButton,additionalProps:{size:"small","aria-label":s.calendarViewSwitchingButtonAriaLabel(u)},ownerState:B,className:$.switchViewButton}),V=(l==null?void 0:l.switchViewIcon)??Qa,H=Me({elementType:V,externalSlotProps:n==null?void 0:n.switchViewIcon,ownerState:B,className:$.switchViewIcon}),_=re(H,Ka),d=()=>N(o.addMonths(i,1),"left"),Y=()=>N(o.addMonths(i,-1),"right"),K=Mt(i,{disableFuture:b,maxDate:f,timezone:O}),U=xt(i,{disablePast:D,minDate:E,timezone:O}),q=()=>{if(!(C.length===1||!R||c))if(C.length===2)R(C.find(ee=>ee!==u)||C[0]);else{const ee=C.indexOf(u)!==0?0:1;R(C[ee])}};if(C.length===1&&C[0]==="year")return null;const j=o.formatByString(i,v);return g.jsxs(qa,M({},x,{ownerState:B,className:ie(T,$.root),ref:a,children:[g.jsxs(Xa,{role:"presentation",onClick:q,ownerState:B,"aria-live":"polite",className:$.labelContainer,children:[g.jsx(it,{reduceAnimations:F,transKey:j,children:g.jsx(Ja,{id:S,ownerState:B,className:$.label,children:j})}),C.length>1&&!c&&g.jsx(P,M({},L,{children:g.jsx(V,M({},_))}))]}),g.jsx(ot,{in:u==="day",children:g.jsx(kt,{slots:l,slotProps:n,onGoToPrevious:Y,isPreviousDisabled:U,previousLabel:s.previousMonth,onGoToNext:d,isNextDisabled:K,nextLabel:s.nextMonth})})]}))}),ts=e=>ue("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const as=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],ss=e=>{const{classes:t}=e;return pe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},ts,t)};function ns(e,t){const a=le(),s=je(),o=St(),r=fe({props:e,name:t});return M({},r,{loading:r.loading??!1,disablePast:r.disablePast??!1,disableFuture:r.disableFuture??!1,openTo:r.openTo??"day",views:r.views??["year","day"],reduceAnimations:r.reduceAnimations??o,renderLoading:r.renderLoading??(()=>g.jsx("span",{children:"..."})),minDate:De(a,r.minDate,s.minDate),maxDate:De(a,r.maxDate,s.maxDate)})}const os=I(Pt,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Rt}),rs=I(it,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),is=p.forwardRef(function(t,a){const s=le(),o=Ot(),r=ns(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:n,value:i,defaultValue:c,referenceDate:b,disableFuture:D,disablePast:f,onChange:E,onYearChange:N,onMonthChange:R,reduceAnimations:u,shouldDisableDate:F,shouldDisableMonth:C,shouldDisableYear:S,view:T,views:O,openTo:v,className:x,disabled:B,readOnly:$,minDate:P,maxDate:L,disableHighlightToday:V,focusedView:H,onFocusedViewChange:_,showDaysOutsideCurrentMonth:d,fixedWeekNumber:Y,dayOfWeekFormatter:K,slots:U,slotProps:q,loading:j,renderLoading:ee,displayWeekNumber:te,yearsPerRow:be,monthsPerRow:ye,timezone:Z}=r,me=re(r,as),{value:X,handleValueChange:Q,timezone:se}=He({name:"DateCalendar",timezone:Z,value:i,defaultValue:c,onChange:E,valueManager:we}),{view:J,setView:Ce,focusedView:y,setFocusedView:A,goToNextView:m,setValueAndGoToNextView:k}=Ft({view:T,views:O,openTo:v,onChange:Q,onViewChange:n,autoFocus:l,focusedView:H,onFocusedViewChange:_}),{referenceDate:ae,calendarState:h,changeFocusedDay:w,changeMonth:z,handleChangeMonth:ne,isDateDisabled:ce,onMonthSwitchingAnimationEnd:Te}=Wt({value:X,referenceDate:b,reduceAnimations:u,onMonthChange:R,minDate:P,maxDate:L,shouldDisableDate:F,disablePast:f,disableFuture:D,timezone:se}),ut=B&&X||P,ht=B&&X||L,Ge=`${o}-grid-label`,Ve=y!==null,qe=(U==null?void 0:U.calendarHeader)??es,ft=Me({elementType:qe,externalSlotProps:q==null?void 0:q.calendarHeader,additionalProps:{views:O,view:J,currentMonth:h.currentMonth,onViewChange:Ce,onMonthChange:(W,de)=>ne({newMonth:W,direction:de}),minDate:ut,maxDate:ht,disabled:B,disablePast:f,disableFuture:D,reduceAnimations:u,timezone:se,labelId:Ge},ownerState:r}),pt=G(W=>{const de=s.startOfMonth(W),ke=s.endOfMonth(W),ge=ce(W)?Re({utils:s,date:W,minDate:s.isBefore(P,de)?de:P,maxDate:s.isAfter(L,ke)?ke:L,disablePast:f,disableFuture:D,isDateDisabled:ce,timezone:se}):W;ge?(k(ge,"finish"),R==null||R(de)):(m(),z(de)),w(ge,!0)}),mt=G(W=>{const de=s.startOfYear(W),ke=s.endOfYear(W),ge=ce(W)?Re({utils:s,date:W,minDate:s.isBefore(P,de)?de:P,maxDate:s.isAfter(L,ke)?ke:L,disablePast:f,disableFuture:D,isDateDisabled:ce,timezone:se}):W;ge?(k(ge,"finish"),N==null||N(ge)):(m(),z(de)),w(ge,!0)}),gt=G(W=>Q(W&&Nt(s,W,X??ae),"finish",J));p.useEffect(()=>{X!=null&&s.isValid(X)&&z(X)},[X]);const Oe=r,Xe=ss(Oe),$e={disablePast:f,disableFuture:D,maxDate:L,minDate:P},Ie={disableHighlightToday:V,readOnly:$,disabled:B,timezone:se,gridLabelId:Ge,slots:U,slotProps:q},Be=p.useRef(J);p.useEffect(()=>{Be.current!==J&&(y===Be.current&&A(J,!0),Be.current=J)},[y,A,J]);const Dt=p.useMemo(()=>[X],[X]);return g.jsxs(os,M({ref:a,className:ie(Xe.root,x),ownerState:Oe},me,{children:[g.jsx(qe,M({},ft,{slots:U,slotProps:q})),g.jsx(rs,{reduceAnimations:u,className:Xe.viewTransitionContainer,transKey:J,ownerState:Oe,children:g.jsxs("div",{children:[J==="year"&&g.jsx(Wa,M({},$e,Ie,{value:X,onChange:mt,shouldDisableYear:S,hasFocus:Ve,onFocusedViewChange:W=>A("year",W),yearsPerRow:be,referenceDate:ae})),J==="month"&&g.jsx(Aa,M({},$e,Ie,{hasFocus:Ve,className:x,value:X,onChange:pt,shouldDisableMonth:C,onFocusedViewChange:W=>A("month",W),monthsPerRow:ye,referenceDate:ae})),J==="day"&&g.jsx(ya,M({},h,$e,Ie,{onMonthSwitchingAnimationEnd:Te,onFocusedDayChange:w,reduceAnimations:u,selectedDays:Dt,onSelectedDaysChange:gt,shouldDisableDate:F,shouldDisableMonth:C,shouldDisableYear:S,hasFocus:Ve,onFocusedViewChange:W=>A("day",W),showDaysOutsideCurrentMonth:d,fixedWeekNumber:Y,dayOfWeekFormatter:K,displayWeekNumber:te,loading:j,renderLoading:ee}))]})})]}))}),bs=({view:e,onViewChange:t,views:a,focusedView:s,onFocusedViewChange:o,value:r,defaultValue:l,referenceDate:n,onChange:i,className:c,classes:b,disableFuture:D,disablePast:f,minDate:E,maxDate:N,shouldDisableDate:R,shouldDisableMonth:u,shouldDisableYear:F,reduceAnimations:C,onMonthChange:S,monthsPerRow:T,onYearChange:O,yearsPerRow:v,slots:x,slotProps:B,loading:$,renderLoading:P,disableHighlightToday:L,readOnly:V,disabled:H,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:d,sx:Y,autoFocus:K,fixedWeekNumber:U,displayWeekNumber:q,timezone:j})=>g.jsx(is,{view:e,onViewChange:t,views:a.filter(Ze),focusedView:s&&Ze(s)?s:null,onFocusedViewChange:o,value:r,defaultValue:l,referenceDate:n,onChange:i,className:c,classes:b,disableFuture:D,disablePast:f,minDate:E,maxDate:N,shouldDisableDate:R,shouldDisableMonth:u,shouldDisableYear:F,reduceAnimations:C,onMonthChange:S,monthsPerRow:T,onYearChange:O,yearsPerRow:v,slots:x,slotProps:B,loading:$,renderLoading:P,disableHighlightToday:L,readOnly:V,disabled:H,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:d,sx:Y,autoFocus:K,fixedWeekNumber:U,displayWeekNumber:q,timezone:j});export{bs as r,Ht as v}; diff --git a/storybook/assets/entry-preview-DoUV242n.js b/storybook/assets/entry-preview-DoUV242n.js new file mode 100644 index 0000000..d128135 --- /dev/null +++ b/storybook/assets/entry-preview-DoUV242n.js @@ -0,0 +1 @@ +import{R as a,r as i}from"./index-CTjT7uj6.js";import{u as l,r as E}from"./react-18-CaMpY7kV.js";import"./index-CYM-y3Gt.js";var v=Object.defineProperty,_=(r,e)=>{for(var t in e)v(r,t,{get:e[t],enumerable:!0})};const{global:f}=__STORYBOOK_MODULE_GLOBAL__;var g={};_(g,{mount:()=>M,parameters:()=>O,render:()=>w,renderToCanvas:()=>D});var w=(r,e)=>{let{id:t,component:n}=e;if(!n)throw new Error(`Unable to render story ${t} as the component annotation is missing from the default export`);return a.createElement(n,{...r})},{FRAMEWORK_OPTIONS:s}=f,b=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:r}=this.state,{showMain:e}=this.props;r||e()}componentDidCatch(r){let{showException:e}=this.props;e(r)}render(){let{hasError:r}=this.state,{children:e}=this.props;return r?null:e}},d=s!=null&&s.strictMode?i.StrictMode:i.Fragment;async function D({storyContext:r,unboundStoryFn:e,showMain:t,showException:n,forceRemount:u},o){var m,c;let p=a.createElement(b,{showMain:t,showException:n},a.createElement(e,{...r})),h=d?a.createElement(d,null,p):p;return u&&l(o),await E(h,o,(c=(m=r==null?void 0:r.parameters)==null?void 0:m.react)==null?void 0:c.rootOptions),()=>l(o)}var M=r=>async e=>(e!=null&&(r.originalStoryFn=()=>e),await r.renderToCanvas(),r.canvas),O={renderer:"react"};export{M as mount,O as parameters,w as render,D as renderToCanvas}; diff --git a/storybook/assets/entry-preview-docs-CWzFB5kA.js b/storybook/assets/entry-preview-docs-CWzFB5kA.js new file mode 100644 index 0000000..dfd9401 --- /dev/null +++ b/storybook/assets/entry-preview-docs-CWzFB5kA.js @@ -0,0 +1,54 @@ +import{_ as Ju,$ as Xu,z as Hu,e as Qu,O as te,s as Wr,K as Ku,B as Yu,P as Gr,a as zr,o as ft,H as Zu}from"./_getPrototype-C87Y6mw8.js";import{P as $r}from"./index-BzjuzjN8.js";import{g as Pt,c as lt,b as en,R as st,r as Ge}from"./index-CTjT7uj6.js";import{d as tn}from"./index-DrFu-skq.js";import{b as xi,c as Fi,d as rn,e as Jr}from"./_overArg-duoZdnBA.js";const un=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var nn=un;const sn=Pt(nn);var vi={},bi={};(function(e){(function t(r){var i,n,s,a,f,p;function D(g){var x={},F,B;for(F in g)g.hasOwnProperty(F)&&(B=g[F],typeof B=="object"&&B!==null?x[F]=D(B):x[F]=B);return x}function m(g,x){var F,B,R,N;for(B=g.length,R=0;B;)F=B>>>1,N=R+F,x(g[N])?B=F:(R=N+1,B-=F+1);return R}i={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},a={},f={},p={},n={Break:a,Skip:f,Remove:p};function y(g,x){this.parent=g,this.key=x}y.prototype.replace=function(x){this.parent[this.key]=x},y.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function A(g,x,F,B){this.node=g,this.path=x,this.wrap=F,this.ref=B}function C(){}C.prototype.path=function(){var x,F,B,R,N,W;function q(M,H){if(Array.isArray(H))for(B=0,R=H.length;B=0;--F)if(g[F].node===x)return!0;return!1}C.prototype.traverse=function(x,F){var B,R,N,W,q,M,H,ue,oe,ie,Q,Ce;for(this.__initialize(x,F),Ce={},B=this.__worklist,R=this.__leavelist,B.push(new A(x,null,null,null)),R.push(new A(null,null,null,null));B.length;){if(N=B.pop(),N===Ce){if(N=R.pop(),M=this.__execute(F.leave,N),this.__state===a||M===a)return;continue}if(N.node){if(M=this.__execute(F.enter,N),this.__state===a||M===a)return;if(B.push(Ce),R.push(N),this.__state===f||M===f)continue;if(W=N.node,q=W.type||N.wrap,ie=this.__keys[q],!ie)if(this.__fallback)ie=this.__fallback(W);else throw new Error("Unknown node type "+q+".");for(ue=ie.length;(ue-=1)>=0;)if(H=ie[ue],Q=W[H],!!Q){if(Array.isArray(Q)){for(oe=Q.length;(oe-=1)>=0;)if(Q[oe]&&!b(R,Q[oe])){if(E(q,ie[ue]))N=new A(Q[oe],[H,oe],"Property",null);else if(v(Q[oe]))N=new A(Q[oe],[H,oe],null,null);else continue;B.push(N)}}else if(v(Q)){if(b(R,Q))continue;B.push(new A(Q,H,null,null))}}}}},C.prototype.replace=function(x,F){var B,R,N,W,q,M,H,ue,oe,ie,Q,Ce,Be;function Je(O){var Ve,At,Le,ee;if(O.ref.remove()){for(At=O.ref.key,ee=O.ref.parent,Ve=B.length;Ve--;)if(Le=B[Ve],Le.ref&&Le.ref.parent===ee){if(Le.ref.key=0;)if(Be=oe[H],ie=N[Be],!!ie)if(Array.isArray(ie)){for(ue=ie.length;(ue-=1)>=0;)if(ie[ue]){if(E(W,oe[H]))M=new A(ie[ue],[Be,ue],"Property",new y(ie,ue));else if(v(ie[ue]))M=new A(ie[ue],[Be,ue],null,new y(ie,ue));else continue;B.push(M)}}else v(ie)&&B.push(new A(ie,Be,null,new y(N,Be)))}}return Ce.root};function P(g,x){var F=new C;return F.traverse(g,x)}function I(g,x){var F=new C;return F.replace(g,x)}function V(g,x){var F;return F=m(x,function(R){return R.range[0]>g.range[0]}),g.extendedRange=[g.range[0],g.range[1]],F!==x.length&&(g.extendedRange[1]=x[F].range[0]),F-=1,F>=0&&(g.extendedRange[0]=x[F].range[1]),g}function S(g,x,F){var B=[],R,N,W,q;if(!g.range)throw new Error("attachComments needs range information");if(!F.length){if(x.length){for(W=0,N=x.length;WM.range[0]));)H.extendedRange[1]===M.range[0]?(M.leadingComments||(M.leadingComments=[]),M.leadingComments.push(H),B.splice(q,1)):q+=1;if(q===B.length)return n.Break;if(B[q].extendedRange[0]>M.range[1])return n.Skip}}),q=0,P(g,{leave:function(M){for(var H;qM.range[1])return n.Skip}}),g}return r.Syntax=i,r.traverse=P,r.replace=I,r.attachComments=S,r.VisitorKeys=s,r.VisitorOption=n,r.Controller=C,r.cloneEnvironment=function(){return t({})},r})(e)})(bi);var bt={},Si={exports:{}};(function(){function e(a){if(a==null)return!1;switch(a.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(a){if(a==null)return!1;switch(a.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(a){if(a==null)return!1;switch(a.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(a){return r(a)||a!=null&&a.type==="FunctionDeclaration"}function n(a){switch(a.type){case"IfStatement":return a.alternate!=null?a.alternate:a.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return a.body}return null}function s(a){var f;if(a.type!=="IfStatement"||a.alternate==null)return!1;f=a.consequent;do{if(f.type==="IfStatement"&&f.alternate==null)return!0;f=n(f)}while(f);return!1}Si.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:i,isProblematicIfStatement:s,trailingStatement:n}})();var an=Si.exports,_i={exports:{}};(function(){var e,t,r,i,n,s;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function a(b){return 48<=b&&b<=57}function f(b){return 48<=b&&b<=57||97<=b&&b<=102||65<=b&&b<=70}function p(b){return b>=48&&b<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function D(b){return b===32||b===9||b===11||b===12||b===160||b>=5760&&r.indexOf(b)>=0}function m(b){return b===10||b===13||b===8232||b===8233}function y(b){if(b<=65535)return String.fromCharCode(b);var P=String.fromCharCode(Math.floor((b-65536)/1024)+55296),I=String.fromCharCode((b-65536)%1024+56320);return P+I}for(i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95;for(n=new Array(128),s=0;s<128;++s)n[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95;function A(b){return b<128?i[b]:t.NonAsciiIdentifierStart.test(y(b))}function C(b){return b<128?n[b]:t.NonAsciiIdentifierPart.test(y(b))}function v(b){return b<128?i[b]:e.NonAsciiIdentifierStart.test(y(b))}function E(b){return b<128?n[b]:e.NonAsciiIdentifierPart.test(y(b))}_i.exports={isDecimalDigit:a,isHexDigit:f,isOctalDigit:p,isWhiteSpace:D,isLineTerminator:m,isIdentifierStartES5:A,isIdentifierPartES5:C,isIdentifierStartES6:v,isIdentifierPartES6:E}})();var Bi=_i.exports,wi={exports:{}};(function(){var e=Bi;function t(A){switch(A){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(A,C){return!C&&A==="yield"?!1:i(A,C)}function i(A,C){if(C&&t(A))return!0;switch(A.length){case 2:return A==="if"||A==="in"||A==="do";case 3:return A==="var"||A==="for"||A==="new"||A==="try";case 4:return A==="this"||A==="else"||A==="case"||A==="void"||A==="with"||A==="enum";case 5:return A==="while"||A==="break"||A==="catch"||A==="throw"||A==="const"||A==="yield"||A==="class"||A==="super";case 6:return A==="return"||A==="typeof"||A==="delete"||A==="switch"||A==="export"||A==="import";case 7:return A==="default"||A==="finally"||A==="extends";case 8:return A==="function"||A==="continue"||A==="debugger";case 10:return A==="instanceof";default:return!1}}function n(A,C){return A==="null"||A==="true"||A==="false"||r(A,C)}function s(A,C){return A==="null"||A==="true"||A==="false"||i(A,C)}function a(A){return A==="eval"||A==="arguments"}function f(A){var C,v,E;if(A.length===0||(E=A.charCodeAt(0),!e.isIdentifierStartES5(E)))return!1;for(C=1,v=A.length;C=v||(b=A.charCodeAt(C),!(56320<=b&&b<=57343)))return!1;E=p(E,b)}if(!P(E))return!1;P=e.isIdentifierPartES6}return!0}function m(A,C){return f(A)&&!n(A,C)}function y(A,C){return D(A)&&!s(A,C)}wi.exports={isKeywordES5:r,isKeywordES6:i,isReservedWordES5:n,isReservedWordES6:s,isRestrictedWord:a,isIdentifierNameES5:f,isIdentifierNameES6:D,isIdentifierES5:m,isIdentifierES6:y}})();var on=wi.exports;(function(){bt.ast=an,bt.code=Bi,bt.keyword=on})();var it={},Zt={},xt={},Ft={},Xr;function ln(){if(Xr)return Ft;Xr=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Ft.encode=function(t){if(0<=t&&t>1;return p?-D:D}return xt.encode=function(p){var D="",m,y=s(p);do m=y&i,y>>>=t,y>0&&(m|=n),D+=e.encode(m);while(y>0);return D},xt.decode=function(p,D,m){var y=p.length,A=0,C=0,v,E;do{if(D>=y)throw new Error("Expected more digits in base 64 VLQ value.");if(E=e.decode(p.charCodeAt(D++)),E===-1)throw new Error("Invalid base64 digit: "+p.charAt(D-1));v=!!(E&n),E&=i,A=A+(E<=0;W--)R=B[W],R==="."?B.splice(W,1):R===".."?N++:N>0&&(R===""?(B.splice(W+1,N),N=0):(B.splice(W,2),N--));return g=B.join("/"),g===""&&(g=F?"/":"."),x?(x.path=g,s(x)):g}e.normalize=a;function f(S,g){S===""&&(S="."),g===""&&(g=".");var x=n(g),F=n(S);if(F&&(S=F.path||"/"),x&&!x.scheme)return F&&(x.scheme=F.scheme),s(x);if(x||g.match(i))return g;if(F&&!F.host&&!F.path)return F.host=g,s(F);var B=g.charAt(0)==="/"?g:a(S.replace(/\/+$/,"")+"/"+g);return F?(F.path=B,s(F)):B}e.join=f,e.isAbsolute=function(S){return S.charAt(0)==="/"||r.test(S)};function p(S,g){S===""&&(S="."),S=S.replace(/\/$/,"");for(var x=0;g.indexOf(S+"/")!==0;){var F=S.lastIndexOf("/");if(F<0||(S=S.slice(0,F),S.match(/^([^\/]+:\/)?\/*$/)))return g;++x}return Array(x+1).join("../")+g.substr(S.length+1)}e.relative=p;var D=function(){var S=Object.create(null);return!("__proto__"in S)}();function m(S){return S}function y(S){return C(S)?"$"+S:S}e.toSetString=D?m:y;function A(S){return C(S)?S.slice(1):S}e.fromSetString=D?m:A;function C(S){if(!S)return!1;var g=S.length;if(g<9||S.charCodeAt(g-1)!==95||S.charCodeAt(g-2)!==95||S.charCodeAt(g-3)!==111||S.charCodeAt(g-4)!==116||S.charCodeAt(g-5)!==111||S.charCodeAt(g-6)!==114||S.charCodeAt(g-7)!==112||S.charCodeAt(g-8)!==95||S.charCodeAt(g-9)!==95)return!1;for(var x=g-10;x>=0;x--)if(S.charCodeAt(x)!==36)return!1;return!0}function v(S,g,x){var F=b(S.source,g.source);return F!==0||(F=S.originalLine-g.originalLine,F!==0)||(F=S.originalColumn-g.originalColumn,F!==0||x)||(F=S.generatedColumn-g.generatedColumn,F!==0)||(F=S.generatedLine-g.generatedLine,F!==0)?F:b(S.name,g.name)}e.compareByOriginalPositions=v;function E(S,g,x){var F=S.generatedLine-g.generatedLine;return F!==0||(F=S.generatedColumn-g.generatedColumn,F!==0||x)||(F=b(S.source,g.source),F!==0)||(F=S.originalLine-g.originalLine,F!==0)||(F=S.originalColumn-g.originalColumn,F!==0)?F:b(S.name,g.name)}e.compareByGeneratedPositionsDeflated=E;function b(S,g){return S===g?0:S===null?1:g===null?-1:S>g?1:-1}function P(S,g){var x=S.generatedLine-g.generatedLine;return x!==0||(x=S.generatedColumn-g.generatedColumn,x!==0)||(x=b(S.source,g.source),x!==0)||(x=S.originalLine-g.originalLine,x!==0)||(x=S.originalColumn-g.originalColumn,x!==0)?x:b(S.name,g.name)}e.compareByGeneratedPositionsInflated=P;function I(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=I;function V(S,g,x){if(g=g||"",S&&(S[S.length-1]!=="/"&&g[0]!=="/"&&(S+="/"),g=S+g),x){var F=n(x);if(!F)throw new Error("sourceMapURL could not be parsed");if(F.path){var B=F.path.lastIndexOf("/");B>=0&&(F.path=F.path.substring(0,B+1))}g=f(s(F),g)}return a(g)}e.computeSourceURL=V}(er)),er}var tr={},Kr;function Ii(){if(Kr)return tr;Kr=1;var e=pt(),t=Object.prototype.hasOwnProperty,r=typeof Map<"u";function i(){this._array=[],this._set=r?new Map:Object.create(null)}return i.fromArray=function(s,a){for(var f=new i,p=0,D=s.length;p=0)return a}else{var f=e.toSetString(s);if(t.call(this._set,f))return this._set[f]}throw new Error('"'+s+'" is not in the set.')},i.prototype.at=function(s){if(s>=0&&ss||a==s&&p>=f||e.compareByGeneratedPositionsInflated(i,n)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return r.prototype.unsortedForEach=function(n,s){this._array.forEach(n,s)},r.prototype.add=function(n){t(this._last,n)?(this._last=n,this._array.push(n)):(this._sorted=!1,this._array.push(n))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},rr.MappingList=r,rr}var Zr;function Pi(){if(Zr)return Zt;Zr=1;var e=ki(),t=pt(),r=Ii().ArraySet,i=cn().MappingList;function n(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}return n.prototype._version=3,n.fromSourceMap=function(a){var f=a.sourceRoot,p=new n({file:a.file,sourceRoot:f});return a.eachMapping(function(D){var m={generated:{line:D.generatedLine,column:D.generatedColumn}};D.source!=null&&(m.source=D.source,f!=null&&(m.source=t.relative(f,m.source)),m.original={line:D.originalLine,column:D.originalColumn},D.name!=null&&(m.name=D.name)),p.addMapping(m)}),a.sources.forEach(function(D){var m=D;f!==null&&(m=t.relative(f,D)),p._sources.has(m)||p._sources.add(m);var y=a.sourceContentFor(D);y!=null&&p.setSourceContent(D,y)}),p},n.prototype.addMapping=function(a){var f=t.getArg(a,"generated"),p=t.getArg(a,"original",null),D=t.getArg(a,"source",null),m=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(f,p,D,m),D!=null&&(D=String(D),this._sources.has(D)||this._sources.add(D)),m!=null&&(m=String(m),this._names.has(m)||this._names.add(m)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:p!=null&&p.line,originalColumn:p!=null&&p.column,source:D,name:m})},n.prototype.setSourceContent=function(a,f){var p=a;this._sourceRoot!=null&&(p=t.relative(this._sourceRoot,p)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(p)]=f):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},n.prototype.applySourceMap=function(a,f,p){var D=f;if(f==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);D=a.file}var m=this._sourceRoot;m!=null&&(D=t.relative(m,D));var y=new r,A=new r;this._mappings.unsortedForEach(function(C){if(C.source===D&&C.originalLine!=null){var v=a.originalPositionFor({line:C.originalLine,column:C.originalColumn});v.source!=null&&(C.source=v.source,p!=null&&(C.source=t.join(p,C.source)),m!=null&&(C.source=t.relative(m,C.source)),C.originalLine=v.line,C.originalColumn=v.column,v.name!=null&&(C.name=v.name))}var E=C.source;E!=null&&!y.has(E)&&y.add(E);var b=C.name;b!=null&&!A.has(b)&&A.add(b)},this),this._sources=y,this._names=A,a.sources.forEach(function(C){var v=a.sourceContentFor(C);v!=null&&(p!=null&&(C=t.join(p,C)),m!=null&&(C=t.relative(m,C)),this.setSourceContent(C,v))},this)},n.prototype._validateMapping=function(a,f,p,D){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!f&&!p&&!D)){if(a&&"line"in a&&"column"in a&&f&&"line"in f&&"column"in f&&a.line>0&&a.column>=0&&f.line>0&&f.column>=0&&p)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:p,original:f,name:D}))}},n.prototype._serializeMappings=function(){for(var a=0,f=1,p=0,D=0,m=0,y=0,A="",C,v,E,b,P=this._mappings.toArray(),I=0,V=P.length;I0){if(!t.compareByGeneratedPositionsInflated(v,P[I-1]))continue;C+=","}C+=e.encode(v.generatedColumn-a),a=v.generatedColumn,v.source!=null&&(b=this._sources.indexOf(v.source),C+=e.encode(b-y),y=b,C+=e.encode(v.originalLine-1-D),D=v.originalLine-1,C+=e.encode(v.originalColumn-p),p=v.originalColumn,v.name!=null&&(E=this._names.indexOf(v.name),C+=e.encode(E-m),m=E)),A+=C}return A},n.prototype._generateSourcesContent=function(a,f){return a.map(function(p){if(!this._sourcesContents)return null;f!=null&&(p=t.relative(f,p));var D=t.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,D)?this._sourcesContents[D]:null},this)},n.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},n.prototype.toString=function(){return JSON.stringify(this.toJSON())},Zt.SourceMapGenerator=n,Zt}var ut={},ir={},ei;function hn(){return ei||(ei=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,i,n,s,a,f){var p=Math.floor((i-r)/2)+r,D=a(n,s[p],!0);return D===0?p:D>0?i-p>1?t(p,i,n,s,a,f):f==e.LEAST_UPPER_BOUND?i1?t(r,p,n,s,a,f):f==e.LEAST_UPPER_BOUND?p:r<0?-1:r}e.search=function(i,n,s,a){if(n.length===0)return-1;var f=t(-1,n.length,i,n,s,a||e.GREATEST_LOWER_BOUND);if(f<0)return-1;for(;f-1>=0&&s(n[f],n[f-1],!0)===0;)--f;return f}}(ir)),ir}var ur={},ti;function fn(){if(ti)return ur;ti=1;function e(i,n,s){var a=i[n];i[n]=i[s],i[s]=a}function t(i,n){return Math.round(i+Math.random()*(n-i))}function r(i,n,s,a){if(s=0){var E=this._originalMappings[v];if(m.column===void 0)for(var b=E.originalLine;E&&E.originalLine===b;)C.push({line:e.getArg(E,"generatedLine",null),column:e.getArg(E,"generatedColumn",null),lastColumn:e.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++v];else for(var P=E.originalColumn;E&&E.originalLine===y&&E.originalColumn==P;)C.push({line:e.getArg(E,"generatedLine",null),column:e.getArg(E,"generatedColumn",null),lastColumn:e.getArg(E,"lastGeneratedColumn",null)}),E=this._originalMappings[++v]}return C},ut.SourceMapConsumer=s;function a(D,m){var y=D;typeof D=="string"&&(y=e.parseSourceMapInput(D));var A=e.getArg(y,"version"),C=e.getArg(y,"sources"),v=e.getArg(y,"names",[]),E=e.getArg(y,"sourceRoot",null),b=e.getArg(y,"sourcesContent",null),P=e.getArg(y,"mappings"),I=e.getArg(y,"file",null);if(A!=this._version)throw new Error("Unsupported version: "+A);E&&(E=e.normalize(E)),C=C.map(String).map(e.normalize).map(function(V){return E&&e.isAbsolute(E)&&e.isAbsolute(V)?e.relative(E,V):V}),this._names=r.fromArray(v.map(String),!0),this._sources=r.fromArray(C,!0),this._absoluteSources=this._sources.toArray().map(function(V){return e.computeSourceURL(E,V,m)}),this.sourceRoot=E,this.sourcesContent=b,this._mappings=P,this._sourceMapURL=m,this.file=I}a.prototype=Object.create(s.prototype),a.prototype.consumer=s,a.prototype._findSourceIndex=function(D){var m=D;if(this.sourceRoot!=null&&(m=e.relative(this.sourceRoot,m)),this._sources.has(m))return this._sources.indexOf(m);var y;for(y=0;y1&&(B.source=b+N[1],b+=N[1],B.originalLine=v+N[2],v=B.originalLine,B.originalLine+=1,B.originalColumn=E+N[3],E=B.originalColumn,N.length>4&&(B.name=P+N[4],P+=N[4])),F.push(B),typeof B.originalLine=="number"&&x.push(B)}n(F,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=F,n(x,e.compareByOriginalPositions),this.__originalMappings=x},a.prototype._findMapping=function(m,y,A,C,v,E){if(m[A]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+m[A]);if(m[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+m[C]);return t.search(m,y,v,E)},a.prototype.computeColumnSpans=function(){for(var m=0;m=0){var C=this._generatedMappings[A];if(C.generatedLine===y.generatedLine){var v=e.getArg(C,"source",null);v!==null&&(v=this._sources.at(v),v=e.computeSourceURL(this.sourceRoot,v,this._sourceMapURL));var E=e.getArg(C,"name",null);return E!==null&&(E=this._names.at(E)),{source:v,line:e.getArg(C,"originalLine",null),column:e.getArg(C,"originalColumn",null),name:E}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(m){return m==null}):!1},a.prototype.sourceContentFor=function(m,y){if(!this.sourcesContent)return null;var A=this._findSourceIndex(m);if(A>=0)return this.sourcesContent[A];var C=m;this.sourceRoot!=null&&(C=e.relative(this.sourceRoot,C));var v;if(this.sourceRoot!=null&&(v=e.urlParse(this.sourceRoot))){var E=C.replace(/^file:\/\//,"");if(v.scheme=="file"&&this._sources.has(E))return this.sourcesContent[this._sources.indexOf(E)];if((!v.path||v.path=="/")&&this._sources.has("/"+C))return this.sourcesContent[this._sources.indexOf("/"+C)]}if(y)return null;throw new Error('"'+C+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(m){var y=e.getArg(m,"source");if(y=this._findSourceIndex(y),y<0)return{line:null,column:null,lastColumn:null};var A={source:y,originalLine:e.getArg(m,"line"),originalColumn:e.getArg(m,"column")},C=this._findMapping(A,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(m,"bias",s.GREATEST_LOWER_BOUND));if(C>=0){var v=this._originalMappings[C];if(v.source===A.source)return{line:e.getArg(v,"generatedLine",null),column:e.getArg(v,"generatedColumn",null),lastColumn:e.getArg(v,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},ut.BasicSourceMapConsumer=a;function p(D,m){var y=D;typeof D=="string"&&(y=e.parseSourceMapInput(D));var A=e.getArg(y,"version"),C=e.getArg(y,"sections");if(A!=this._version)throw new Error("Unsupported version: "+A);this._sources=new r,this._names=new r;var v={line:-1,column:0};this._sections=C.map(function(E){if(E.url)throw new Error("Support for url field in sections not implemented.");var b=e.getArg(E,"offset"),P=e.getArg(b,"line"),I=e.getArg(b,"column");if(P=0;p--)this.prepend(f[p]);else if(f[n]||typeof f=="string")this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this},s.prototype.walk=function(f){for(var p,D=0,m=this.children.length;D0){for(p=[],D=0;D=6.0"},vn=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],bn={type:"git",url:"http://github.com/estools/escodegen.git"},Sn={estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},_n={"source-map":"~0.6.1"},Bn={acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},wn="BSD-2-Clause",kn={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"},In={name:gn,description:Dn,homepage:An,main:Cn,bin:En,files:yn,version:xn,engines:Fn,maintainers:vn,repository:bn,dependencies:Sn,optionalDependencies:_n,devDependencies:Bn,license:wn,scripts:kn};(function(e){(function(){var t,r,i,n,s,a,f,p,D,m,y,A,C,v,E,b,P,I,V,S,g,x,F,B,R,N;s=bi,a=bt,t=s.Syntax;function W(u){return ae.Expression.hasOwnProperty(u.type)}function q(u){return ae.Statement.hasOwnProperty(u.type)}r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22},i={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var M=1,H=2,ue=4,oe=8,ie=16,Q=32,Ce=64,Be=H|ue,Je=M|H,O=M|H|ue,Ve=M,At=ue,Le=M|ue,ee=M,be=M|Q,Ct=0,Tu=M|ie,Nu=M|oe;function Nr(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:` +`,space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null}}function je(u,l){var o="";for(l|=0;l>0;l>>>=1,u+=u)l&1&&(o+=u);return o}function Lu(u){return/[\r\n]/g.test(u)}function he(u){var l=u.length;return l&&a.code.isLineTerminator(u.charCodeAt(l-1))}function Lr(u,l){var o;for(o in l)l.hasOwnProperty(o)&&(u[o]=l[o]);return u}function Et(u,l){var o,c;function d(_){return typeof _=="object"&&_ instanceof Object&&!(_ instanceof RegExp)}for(o in l)l.hasOwnProperty(o)&&(c=l[o],d(c)?d(u[o])?Et(u[o],c):u[o]=Et({},c):u[o]=c);return u}function Ou(u){var l,o,c,d,_;if(u!==u)throw new Error("Numeric literal whose value is NaN");if(u<0||u===0&&1/u<0)throw new Error("Numeric literal whose value is negative");if(u===1/0)return D?"null":m?"1e400":"1e+400";if(l=""+u,!m||l.length<3)return l;for(o=l.indexOf("."),!D&&l.charCodeAt(0)===48&&o===1&&(o=0,l=l.slice(1)),c=l,l=l.replace("e+","e"),d=0,(_=c.indexOf("e"))>0&&(d=+c.slice(_+1),c=c.slice(0,_)),o>=0&&(d-=c.length-o-1,c=+(c.slice(0,o)+c.slice(o+1))+""),_=0;c.charCodeAt(c.length+_-1)===48;)--_;return _!==0&&(d-=_,c=c.slice(0,_)),d!==0&&(c+="e"+d),(c.length1e12&&Math.floor(u)===u&&(c="0x"+u.toString(16)).length255?"\\u"+"0000".slice(o.length)+o:u===0&&!a.code.isDecimalDigit(l)?"\\0":u===11?"\\x0B":"\\x"+"00".slice(o.length)+o)}function Vu(u){if(u===92)return"\\\\";if(u===10)return"\\n";if(u===13)return"\\r";if(u===8232)return"\\u2028";if(u===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function ju(u){var l,o,c,d;for(d=A==="double"?'"':"'",l=0,o=u.length;l126))){l+=Mu(d,u.charCodeAt(o+1));continue}l+=String.fromCharCode(d)}if(k=!(A==="double"||A==="auto"&&w<_),L=k?"'":'"',!(k?_:w))return L+l+L;for(u=l,l=L,o=0,c=u.length;o=0&&!a.code.isLineTerminator(u.charCodeAt(l));--l);return u.length-1-l}function Wu(u,l){var o,c,d,_,w,k,L,J;for(o=u.split(/\r\n|[\r\n]/),k=Number.MAX_VALUE,c=1,d=o.length;cw&&(k=w)}for(typeof l<"u"?(L=f,o[1][k]==="*"&&(l+=" "),f=l):(k&1&&--k,L=f),c=1,d=o.length;c0){if(_=l,B){for(d=u.leadingComments[0],l=[],J=d.extendedRange,ce=d.range,He=F.substring(J[0],ce[0]),Se=(He.match(/\n/g)||[]).length,Se>0?(l.push(je(` +`,Se)),l.push(pe(we(d)))):(l.push(He),l.push(we(d))),qe=ce,o=1,c=u.leadingComments.length;o0?(l.push(je(` +`,Se)),l.push(pe(we(d)))):(l.push(He),l.push(we(d)));else for(w=!he(Y(l).toString()),k=je(" ",Uu(Y([f,l,p]).toString())),o=0,c=u.trailingComments.length;o")),u.expression?(l.push(E),o=this.generateExpression(u.body,r.Assignment,O),o.toString().charAt(0)==="{"&&(o=["(",o,")"]),l.push(o)):l.push(this.maybeBlock(u.body,Nu)),l},ae.prototype.generateIterationForStatement=function(u,l,o){var c=["for"+(l.await?fe()+"await":"")+E+"("],d=this;return se(function(){l.left.type===t.VariableDeclaration?se(function(){c.push(l.left.kind+fe()),c.push(d.generateStatement(l.left.declarations[0],Ct))}):c.push(d.generateExpression(l.left,r.Call,O)),c=U(c,u),c=[U(c,d.generateExpression(l.right,r.Assignment,O)),")"]}),c.push(this.maybeBlock(l.body,o)),c},ae.prototype.generatePropertyKey=function(u,l){var o=[];return l&&o.push("["),o.push(this.generateExpression(u,r.Assignment,O)),l&&o.push("]"),o},ae.prototype.generateAssignment=function(u,l,o,c,d){return r.Assignment2&&(c=F.substring(o[0]+1,o[1]-1),c[0]===` +`&&(d=["{"]),d.push(c)));var w,k,L,J;for(J=ee,l&oe&&(J|=ie),w=0,k=u.body.length;w0&&!u.body[w-1].trailingComments&&!u.body[w].leadingComments&&Xe(u.body[w-1].range[1],u.body[w].range[0],d)),w===k-1&&(J|=Q),u.body[w].leadingComments&&B?L=_.generateStatement(u.body[w],J):L=pe(_.generateStatement(u.body[w],J)),d.push(L),he(Y(L).toString())||B&&w1?se(L):L(),o.push(this.semicolon(l)),o},ThrowStatement:function(u,l){return[U("throw",this.generateExpression(u.argument,r.Sequence,O)),this.semicolon(l)]},TryStatement:function(u,l){var o,c,d,_;if(o=["try",this.maybeBlock(u.block,ee)],o=this.maybeBlockSuffix(u.block,o),u.handlers)for(c=0,d=u.handlers.length;c0?` +`:""],w=Tu,d=0;d<_;++d)!I&&d===_-1&&(w|=Q),B&&(d===0&&(u.body[0].leadingComments||Xe(u.range[0],u.body[d].range[0],o)),d>0&&!u.body[d-1].trailingComments&&!u.body[d].leadingComments&&Xe(u.body[d-1].range[1],u.body[d].range[0],o)),c=pe(this.generateStatement(u.body[d],w)),o.push(c),d+1<_&&!he(Y(c).toString())&&(B&&u.body[d+1].leadingComments||o.push(v)),B&&d===_-1&&(u.body[d].trailingComments||Xe(u.body[d].range[1],u.range[1],o));return o},FunctionDeclaration:function(u,l){return[rt(u,!0),"function",yt(u)||fe(),u.id?ge(u.id):"",this.generateFunctionBody(u)]},ReturnStatement:function(u,l){return u.argument?[U("return",this.generateExpression(u.argument,r.Sequence,O)),this.semicolon(l)]:["return"+this.semicolon(l)]},WhileStatement:function(u,l){var o,c=this;return se(function(){o=["while"+E+"(",c.generateExpression(u.test,r.Sequence,O),")"]}),o.push(this.maybeBlock(u.body,l&Q?be:ee)),o},WithStatement:function(u,l){var o,c=this;return se(function(){o=["with"+E+"(",c.generateExpression(u.object,r.Sequence,O),")"]}),o.push(this.maybeBlock(u.body,l&Q?be:ee)),o}},Lr(ae.prototype,ae.Statement),ae.Expression={SequenceExpression:function(u,l,o){var c,d,_;for(r.Sequence0){for(c.push("("),_=0,w=d;_=2&&d.charCodeAt(0)===48)&&c.push(" ")),c.push(u.optional?"?.":"."),c.push(ge(u.property))),le(c,r.Member,l)},MetaProperty:function(u,l,o){var c;return c=[],c.push(typeof u.meta=="string"?u.meta:ge(u.meta)),c.push("."),c.push(typeof u.property=="string"?u.property:ge(u.property)),le(c,r.Member,l)},UnaryExpression:function(u,l,o){var c,d,_,w,k;return d=this.generateExpression(u.argument,r.Unary,O),E===""?c=U(u.operator,d):(c=[u.operator],u.operator.length>2?c=U(c,d):(w=Y(c).toString(),k=w.charCodeAt(w.length-1),_=d.toString().charCodeAt(0),((k===43||k===45)&&k===_||a.code.isIdentifierPartES5(k)&&a.code.isIdentifierPartES5(_))&&c.push(fe()),c.push(d))),le(c,r.Unary,l)},YieldExpression:function(u,l,o){var c;return u.delegate?c="yield*":c="yield",u.argument&&(c=U(c,this.generateExpression(u.argument,r.Yield,O))),le(c,r.Yield,l)},AwaitExpression:function(u,l,o){var c=U(u.all?"await*":"await",this.generateExpression(u.argument,r.Await,O));return le(c,r.Await,l)},UpdateExpression:function(u,l,o){return u.prefix?le([u.operator,this.generateExpression(u.argument,r.Unary,O)],r.Unary,l):le([this.generateExpression(u.argument,r.Postfix,O),u.operator],r.Postfix,l)},FunctionExpression:function(u,l,o){var c=[rt(u,!0),"function"];return u.id?(c.push(yt(u)||fe()),c.push(ge(u.id))):c.push(yt(u)||E),c.push(this.generateFunctionBody(u)),c},ArrayPattern:function(u,l,o){return this.ArrayExpression(u,l,o,!0)},ArrayExpression:function(u,l,o,c){var d,_,w=this;return u.elements.length?(_=c?!1:u.elements.length>1,d=["[",_?v:""],se(function(k){var L,J;for(L=0,J=u.elements.length;L1,se(function(){_=w.generateExpression(u.properties[0],r.Sequence,O)}),!c&&!Lu(Y(_).toString())?["{",E,_,E,"}"]:(se(function(k){var L,J;if(d=["{",v,k,_],c)for(d.push(","+v),L=1,J=u.properties.length;L0||S.moz.comprehensionExpressionStartsWithAssignment?c=U(c,w):c.push(w)}),u.filter&&(c=U(c,"if"+E),w=this.generateExpression(u.filter,r.Sequence,O),c=U(c,["(",w,")"])),S.moz.comprehensionExpressionStartsWithAssignment||(w=this.generateExpression(u.body,r.Assignment,O),c=U(c,w)),c.push(u.type===t.GeneratorExpression?")":"]"),c},ComprehensionBlock:function(u,l,o){var c;return u.left.type===t.VariableDeclaration?c=[u.left.kind,fe(),this.generateStatement(u.left.declarations[0],Ct)]:c=this.generateExpression(u.left,r.Call,O),c=U(c,u.of?"of":"in"),c=U(c,this.generateExpression(u.right,r.Sequence,O)),["for"+E+"(",c,")"]},SpreadElement:function(u,l,o){return["...",this.generateExpression(u.argument,r.Assignment,O)]},TaggedTemplateExpression:function(u,l,o){var c=Je;o&H||(c=Ve);var d=[this.generateExpression(u.tag,r.Call,c),this.generateExpression(u.quasi,r.Primary,At)];return le(d,r.TaggedTemplate,l)},TemplateElement:function(u,l,o){return u.value.raw},TemplateLiteral:function(u,l,o){var c,d,_;for(c=["`"],d=0,_=u.quasis.length;d<_;++d)c.push(this.generateExpression(u.quasis[d],r.Primary,O)),d+1<_&&(c.push("${"+E),c.push(this.generateExpression(u.expressions[d],r.Sequence,O)),c.push(E+"}"));return c.push("`"),c},ModuleSpecifier:function(u,l,o){return this.Literal(u,l,o)},ImportExpression:function(u,l,o){return le(["import(",this.generateExpression(u.source,r.Assignment,O),")"],r.Call,l)}},Lr(ae.prototype,ae.Expression),ae.prototype.generateExpression=function(u,l,o){var c,d;return d=u.type||t.Property,S.verbatim&&u.hasOwnProperty(S.verbatim)?Gu(u,l):(c=this[d](u,l,o),S.comment&&(c=Mr(u,c)),Y(c,u))},ae.prototype.generateStatement=function(u,l){var o,c;return o=this[u.type](u,l),S.comment&&(o=Mr(u,o)),c=Y(o).toString(),u.type===t.Program&&!I&&v===""&&c.charAt(c.length-1)===` +`&&(o=x?Y(o).replaceRight(/\s+$/,""):c.replace(/\s+$/,"")),Y(o,u)};function zu(u){var l;if(l=new ae,q(u))return l.generateStatement(u,ee);if(W(u))return l.generateExpression(u,r.Sequence,O);throw new Error("Unknown node type: "+u.type)}function $u(u,l){var o=Nr(),c,d;return l!=null?(typeof l.indent=="string"&&(o.format.indent.style=l.indent),typeof l.base=="number"&&(o.format.indent.base=l.base),l=Et(o,l),p=l.format.indent.style,typeof l.base=="string"?f=l.base:f=je(p,l.format.indent.base)):(l=o,p=l.format.indent.style,f=je(p,l.format.indent.base)),D=l.format.json,m=l.format.renumber,y=D?!1:l.format.hexadecimal,A=D?"double":l.format.quotes,C=l.format.escapeless,v=l.format.newline,E=l.format.space,l.format.compact&&(v=E=p=f=""),b=l.format.parentheses,P=l.format.semicolons,I=l.format.safeConcatenation,V=l.directive,g=D?null:l.parse,x=l.sourceMap,F=l.sourceCode,B=l.format.preserveBlankLines&&F!==null,S=l,x&&(e.browser?n=lt.sourceMap.SourceNode:n=mn().SourceNode),c=zu(u),x?(d=c.toStringWithSourceMap({file:l.file,sourceRoot:l.sourceMapRoot}),l.sourceContent&&d.map.setSourceContent(l.sourceMap,l.sourceContent),l.sourceMapWithCode?d:d.map.toString()):(d={code:c.toString(),map:null},l.sourceMapWithCode?d:d.code)}R={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},N=Nr().format,e.version=In.version,e.generate=$u,e.attachComments=s.attachComments,e.Precedence=Et({},r),e.browser=!1,e.FORMAT_MINIFY=R,e.FORMAT_DEFAULTS=N})()})(vi);var sr={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ar="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Pn={5:ar,"5module":ar+" export import",6:ar+" const class extends export import super"},Tn=/^in(stanceof)?$/,Dr="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Ti="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Nn=new RegExp("["+Dr+"]"),Ln=new RegExp("["+Dr+Ti+"]");Dr=Ti=null;var Ni=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],On=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function lr(e,t){for(var r=65536,i=0;ie)return!1;if(r+=t[i+1],r>=e)return!0}}function Pe(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Nn.test(String.fromCharCode(e)):t===!1?!1:lr(e,Ni)}function We(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Ln.test(String.fromCharCode(e)):t===!1?!1:lr(e,Ni)||lr(e,On)}var K=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function Ee(e,t){return new K(e,{beforeExpr:!0,binop:t})}var ye={beforeExpr:!0},De={startsExpr:!0},Tt={};function X(e,t){return t===void 0&&(t={}),t.keyword=e,Tt[e]=new K(e,t)}var h={num:new K("num",De),regexp:new K("regexp",De),string:new K("string",De),name:new K("name",De),eof:new K("eof"),bracketL:new K("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new K("]"),braceL:new K("{",{beforeExpr:!0,startsExpr:!0}),braceR:new K("}"),parenL:new K("(",{beforeExpr:!0,startsExpr:!0}),parenR:new K(")"),comma:new K(",",ye),semi:new K(";",ye),colon:new K(":",ye),dot:new K("."),question:new K("?",ye),questionDot:new K("?."),arrow:new K("=>",ye),template:new K("template"),invalidTemplate:new K("invalidTemplate"),ellipsis:new K("...",ye),backQuote:new K("`",De),dollarBraceL:new K("${",{beforeExpr:!0,startsExpr:!0}),eq:new K("=",{beforeExpr:!0,isAssign:!0}),assign:new K("_=",{beforeExpr:!0,isAssign:!0}),incDec:new K("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new K("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ee("||",1),logicalAND:Ee("&&",2),bitwiseOR:Ee("|",3),bitwiseXOR:Ee("^",4),bitwiseAND:Ee("&",5),equality:Ee("==/!=/===/!==",6),relational:Ee("/<=/>=",7),bitShift:Ee("<>/>>>",8),plusMin:new K("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ee("%",10),star:Ee("*",10),slash:Ee("/",10),starstar:new K("**",{beforeExpr:!0}),coalesce:Ee("??",1),_break:X("break"),_case:X("case",ye),_catch:X("catch"),_continue:X("continue"),_debugger:X("debugger"),_default:X("default",ye),_do:X("do",{isLoop:!0,beforeExpr:!0}),_else:X("else",ye),_finally:X("finally"),_for:X("for",{isLoop:!0}),_function:X("function",De),_if:X("if"),_return:X("return",ye),_switch:X("switch"),_throw:X("throw",ye),_try:X("try"),_var:X("var"),_const:X("const"),_while:X("while",{isLoop:!0}),_with:X("with"),_new:X("new",{beforeExpr:!0,startsExpr:!0}),_this:X("this",De),_super:X("super",De),_class:X("class",De),_extends:X("extends",ye),_export:X("export"),_import:X("import",De),_null:X("null",De),_true:X("true",De),_false:X("false",De),_in:X("in",{beforeExpr:!0,binop:7}),_instanceof:X("instanceof",{beforeExpr:!0,binop:7}),_typeof:X("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:X("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:X("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ae=/\r\n?|\n|\u2028|\u2029/,Qe=new RegExp(Ae.source,"g");function et(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}var Ar=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Fe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Li=Object.prototype,Rn=Li.hasOwnProperty,Mn=Li.toString;function Nt(e,t){return Rn.call(e,t)}var ni=Array.isArray||function(e){return Mn.call(e)==="[object Array]"};function Ue(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var Ke=function(t,r){this.line=t,this.column=r};Ke.prototype.offset=function(t){return new Ke(this.line,this.column+t)};var dt=function(t,r,i){this.start=r,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};function Cr(e,t){for(var r=1,i=0;;){Qe.lastIndex=i;var n=Qe.exec(e);if(n&&n.index=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),ni(t.onToken)){var i=t.onToken;t.onToken=function(n){return i.push(n)}}return ni(t.onComment)&&(t.onComment=jn(t,t.onComment)),t}function jn(e,t){return function(r,i,n,s,a,f){var p={type:r?"Block":"Line",value:i,start:n,end:s};e.locations&&(p.loc=new dt(this,a,f)),e.ranges&&(p.range=[n,s]),t.push(p)}}var ct=1,mt=2,Er=ct|mt,Oi=4,Ri=8,Mi=16,Vi=32,ji=64,qi=128;function yr(e,t){return mt|(e?Oi:0)|(t?Ri:0)}var si=0,xr=1,Ie=2,Ui=3,Wi=4,Gi=5,re=function(t,r,i){this.options=t=Vn(t),this.sourceFile=t.sourceFile,this.keywords=Ue(Pn[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";if(t.allowReserved!==!0){for(var s=t.ecmaVersion;!(n=sr[s]);s--);t.sourceType==="module"&&(n+=" await")}this.reservedWords=Ue(n);var a=(n?n+" ":"")+sr.strict;this.reservedWordsStrict=Ue(a),this.reservedWordsStrictBind=Ue(a+" "+sr.strictBind),this.input=String(r),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(` +`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ae).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=h.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ct),this.regexpState=null},ze={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};re.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};ze.inFunction.get=function(){return(this.currentVarScope().flags&mt)>0};ze.inGenerator.get=function(){return(this.currentVarScope().flags&Ri)>0};ze.inAsync.get=function(){return(this.currentVarScope().flags&Oi)>0};ze.allowSuper.get=function(){return(this.currentThisScope().flags&ji)>0};ze.allowDirectSuper.get=function(){return(this.currentThisScope().flags&qi)>0};ze.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};re.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&mt)>0};re.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var i=this,n=0;n=,?^&]/.test(n)||n==="!"&&this.input.charAt(i+1)==="=")}e+=t[0].length,Fe.lastIndex=e,e+=Fe.exec(this.input)[0].length,this.input[e]===";"&&e++}};me.eat=function(e){return this.type===e?(this.next(),!0):!1};me.isContextual=function(e){return this.type===h.name&&this.value===e&&!this.containsEsc};me.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};me.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};me.canInsertSemicolon=function(){return this.type===h.eof||this.type===h.braceR||Ae.test(this.input.slice(this.lastTokEnd,this.start))};me.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};me.semicolon=function(){!this.eat(h.semi)&&!this.insertSemicolon()&&this.unexpected()};me.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};me.expect=function(e){this.eat(e)||this.unexpected()};me.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};function Lt(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}me.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};me.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,i=e.doubleProto;if(!t)return r>=0||i>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")};me.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!e);case h._class:return e&&this.unexpected(),this.parseClass(n,!0);case h._if:return this.parseIfStatement(n);case h._return:return this.parseReturnStatement(n);case h._switch:return this.parseSwitchStatement(n);case h._throw:return this.parseThrowStatement(n);case h._try:return this.parseTryStatement(n);case h._const:case h._var:return s=s||this.value,e&&s!=="var"&&this.unexpected(),this.parseVarStatement(n,s);case h._while:return this.parseWhileStatement(n);case h._with:return this.parseWithStatement(n);case h.braceL:return this.parseBlock(!0,n);case h.semi:return this.parseEmptyStatement(n);case h._export:case h._import:if(this.options.ecmaVersion>10&&i===h._import){Fe.lastIndex=this.pos;var a=Fe.exec(this.input),f=this.pos+a[0].length,p=this.input.charCodeAt(f);if(p===40||p===46)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===h._import?this.parseImport(n):this.parseExport(n,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!e);var D=this.value,m=this.parseExpression();return i===h.name&&m.type==="Identifier"&&this.eat(h.colon)?this.parseLabeledStatement(n,D,m,e):this.parseExpressionStatement(n,m)}};G.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(h.semi)||this.insertSemicolon()?e.label=null:this.type!==h.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i=6?this.eat(h.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};G.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Fr),this.enterScope(0),this.expect(h.parenL),this.type===h.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===h._var||this.type===h._const||r){var i=this.startNode(),n=r?"let":this.value;return this.next(),this.parseVar(i,!0,n),this.finishNode(i,"VariableDeclaration"),(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&i.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,i)):(t>-1&&this.unexpected(t),this.parseFor(e,i))}var s=new Lt,a=this.parseExpression(!0,s);return this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===h._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(e,a)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,a))};G.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,at|(r?0:cr),!1,t)};G.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};G.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(h.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};G.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(h.braceL),this.labels.push(Un),this.enterScope(0);for(var t,r=!1;this.type!==h.braceR;)if(this.type===h._case||this.type===h._default){var i=this.type===h._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),i?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(h.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};G.parseThrowStatement=function(e){return this.next(),Ae.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Wn=[];G.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===h._catch){var t=this.startNode();if(this.next(),this.eat(h.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?Vi:0),this.checkLVal(t.param,r?Wi:Ie),this.expect(h.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(h._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};G.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")};G.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Fr),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};G.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};G.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};G.parseLabeledStatement=function(e,t,r,i){for(var n=0,s=this.labels;n=0;p--){var D=this.labels[p];if(D.statementStart===e.start)D.statementStart=this.start,D.kind=f;else break}return this.labels.push({name:t,kind:f,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};G.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};G.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(h.braceL),e&&this.enterScope(0);this.type!==h.braceR;){var i=this.parseStatement(null);t.body.push(i)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};G.parseFor=function(e,t){return e.init=t,this.expect(h.semi),e.test=this.type===h.semi?null:this.parseExpression(),this.expect(h.semi),e.update=this.type===h.parenR?null:this.parseExpression(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};G.parseForIn=function(e,t){var r=this.type===h._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):t.type==="AssignmentPattern"&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(h.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};G.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(h.eq)?i.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===h._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():i.id.type!=="Identifier"&&!(t&&(this.type===h._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(h.comma))break}return e};G.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t==="var"?xr:Ie,!1)};var at=1,cr=2,zi=4;G.parseFunction=function(e,t,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===h.star&&t&cr&&this.unexpected(),e.generator=this.eat(h.star)),this.options.ecmaVersion>=8&&(e.async=!!i),t&at&&(e.id=t&zi&&this.type!==h.name?null:this.parseIdent(),e.id&&!(t&cr)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?xr:Ie:Ui));var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(yr(e.async,e.generator)),t&at||(e.id=this.type===h.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&at?"FunctionDeclaration":"FunctionExpression")};G.parseFunctionParams=function(e){this.expect(h.parenL),e.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};G.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.startNode(),n=!1;for(i.body=[],this.expect(h.braceL);this.type!==h.braceR;){var s=this.parseClassElement(e.superClass!==null);s&&(i.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"&&(n&&this.raise(s.start,"Duplicate constructor in the same class"),n=!0))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};G.parseClassElement=function(e){var t=this;if(this.eat(h.semi))return null;var r=this.startNode(),i=function(p,D){D===void 0&&(D=!1);var m=t.start,y=t.startLoc;return t.eatContextual(p)?t.type!==h.parenL&&(!D||!t.canInsertSemicolon())?!0:(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(m,y),r.key.name=p,t.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=i("static");var n=this.eat(h.star),s=!1;n||(this.options.ecmaVersion>=8&&i("async",!0)?(s=!0,n=this.options.ecmaVersion>=9&&this.eat(h.star)):i("get")?r.kind="get":i("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,f=!1;return!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")?(r.kind!=="method"&&this.raise(a.start,"Constructor can't have get/set modifier"),n&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",f=e):r.static&&a.type==="Identifier"&&a.name==="prototype"&&this.raise(a.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,n,s,f),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};G.parseClassMethod=function(e,t,r,i){return e.value=this.parseMethod(t,r,i),this.finishNode(e,"MethodDefinition")};G.parseClassId=function(e,t){this.type===h.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,Ie,!1)):(t===!0&&this.unexpected(),e.id=null)};G.parseClassSuper=function(e){e.superClass=this.eat(h._extends)?this.parseExprSubscripts():null};G.parseExport=function(e,t){if(this.next(),this.eat(h.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(h._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===h._function||(r=this.isAsyncFunction())){var i=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(i,at|zi,!1,r)}else if(this.type===h._class){var n=this.startNode();e.declaration=this.parseClass(n,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==h.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,a=e.specifiers;s=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var i=0,n=e.properties;i=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(h._function))return this.parseFunction(this.startNodeAt(i,n),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(h.arrow))return this.parseArrowExpression(this.startNodeAt(i,n),[a],!1);if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===h.name&&!s)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(h.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,n),[a],!0)}return a;case h.regexp:var f=this.value;return t=this.parseLiteral(f.value),t.regex={pattern:f.pattern,flags:f.flags},t;case h.num:case h.string:return this.parseLiteral(this.value);case h._null:case h._true:case h._false:return t=this.startNode(),t.value=this.type===h._null?null:this.type===h._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case h.parenL:var p=this.start,D=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(D)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),D;case h.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(h.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case h.braceL:return this.parseObj(!1,e);case h._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case h._class:return this.parseClass(this.startNode(),!1);case h._new:return this.parseNew();case h.backQuote:return this.parseTemplate();case h._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};z.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case h.parenL:return this.parseDynamicImport(e);case h.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}};z.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(h.parenR)){var t=this.start;this.eat(h.comma)&&this.eat(h.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};z.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};z.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};z.parseParenExpression=function(){this.expect(h.parenL);var e=this.parseExpression();return this.expect(h.parenR),e};z.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,i,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc,f=[],p=!0,D=!1,m=new Lt,y=this.yieldPos,A=this.awaitPos,C;for(this.yieldPos=0,this.awaitPos=0;this.type!==h.parenR;)if(p?p=!1:this.expect(h.comma),n&&this.afterTrailingComma(h.parenR,!0)){D=!0;break}else if(this.type===h.ellipsis){C=this.start,f.push(this.parseParenItem(this.parseRestBinding())),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else f.push(this.parseMaybeAssign(!1,m,this.parseParenItem));var v=this.start,E=this.startLoc;if(this.expect(h.parenR),e&&!this.canInsertSemicolon()&&this.eat(h.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=y,this.awaitPos=A,this.parseParenArrowList(t,r,f);(!f.length||D)&&this.unexpected(this.lastTokStart),C&&this.unexpected(C),this.checkExpressionErrors(m,!0),this.yieldPos=y||this.yieldPos,this.awaitPos=A||this.awaitPos,f.length>1?(i=this.startNodeAt(s,a),i.expressions=f,this.finishNodeAt(i,"SequenceExpression",v,E)):i=f[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(t,r);return b.expression=i,this.finishNode(b,"ParenthesizedExpression")}else return i};z.parseParenItem=function(e){return e};z.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var Gn=[];z.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(h.dot)){e.meta=t;var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var i=this.start,n=this.startLoc,s=this.type===h._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),i,n,!0),s&&e.callee.type==="ImportExpression"&&this.raise(i,"Cannot use new with import()"),this.eat(h.parenL)?e.arguments=this.parseExprList(h.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Gn,this.finishNode(e,"NewExpression")};z.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===h.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),r.tail=this.type===h.backQuote,this.finishNode(r,"TemplateElement")};z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var i=this.parseTemplateElement({isTagged:t});for(r.quasis=[i];!i.tail;)this.type===h.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(h.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(h.braceR),r.quasis.push(i=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};z.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===h.name||this.type===h.num||this.type===h.string||this.type===h.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===h.star)&&!Ae.test(this.input.slice(this.lastTokEnd,this.start))};z.parseObj=function(e,t){var r=this.startNode(),i=!0,n={};for(r.properties=[],this.next();!this.eat(h.braceR);){if(i)i=!1;else if(this.expect(h.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(h.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};z.parseProperty=function(e,t){var r=this.startNode(),i,n,s,a;if(this.options.ecmaVersion>=9&&this.eat(h.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===h.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===h.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,t),this.type===h.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(i=this.eat(h.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(r)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(h.star),this.parsePropertyName(r,t)):n=!1,this.parsePropertyValue(r,e,i,n,s,a,t,f),this.finishNode(r,"Property")};z.parsePropertyValue=function(e,t,r,i,n,s,a,f){if((r||i)&&this.type===h.colon&&this.unexpected(),this.eat(h.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===h.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,i);else if(!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==h.comma&&this.type!==h.braceR&&this.type!==h.eq){(r||i)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var p=e.kind==="get"?0:1;if(e.value.params.length!==p){var D=e.value.start;e.kind==="get"?this.raiseRecoverable(D,"getter should have no params"):this.raiseRecoverable(D,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||i)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,e.key):this.type===h.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()};z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(h.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(h.bracketR),e.key;e.computed=!1}return e.key=this.type===h.num||this.type===h.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};z.parseMethod=function(e,t,r){var i=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=e),this.options.ecmaVersion>=8&&(i.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(yr(t,i.generator)|ji|(r?qi:0)),this.expect(h.parenL),i.params=this.parseBindingList(h.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")};z.parseArrowExpression=function(e,t,r){var i=this.yieldPos,n=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(yr(r,!1)|Mi),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=i,this.awaitPos=n,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")};z.parseFunctionBody=function(e,t,r){var i=t&&this.type!==h.braceL,n=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||a)&&(s=this.strictDirective(this.end),s&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var f=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!n&&!s&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,Gi),e.body=this.parseBlock(!1,void 0,s&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=f}this.exitScope()};z.isSimpleParamList=function(e){for(var t=0,r=e;t-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&ct&&delete this.undefinedExports[e]}else if(t===Wi){var s=this.currentScope();s.lexical.push(e)}else if(t===Ui){var a=this.currentScope();this.treatFunctionsAsVar?i=a.lexical.indexOf(e)>-1:i=a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var f=this.scopeStack.length-1;f>=0;--f){var p=this.scopeStack[f];if(p.lexical.indexOf(e)>-1&&!(p.flags&Vi&&p.lexical[0]===e)||!this.treatFunctionsAsVarInScope(p)&&p.functions.indexOf(e)>-1){i=!0;break}if(p.var.push(e),this.inModule&&p.flags&ct&&delete this.undefinedExports[e],p.flags&Er)break}i&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};Me.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};Me.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};Me.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Er)return t}};Me.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Er&&!(t.flags&Mi))return t}};var Ot=function(t,r,i){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new dt(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},Rt=re.prototype;Rt.startNode=function(){return new Ot(this,this.start,this.startLoc)};Rt.startNodeAt=function(e,t){return new Ot(this,e,t)};function $i(e,t,r,i){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=i),this.options.ranges&&(e.range[1]=r),e}Rt.finishNode=function(e,t){return $i.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};Rt.finishNodeAt=function(e,t,r,i){return $i.call(this,e,t,r,i)};var xe=function(t,r,i,n,s){this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=n,this.generator=!!s},ne={b_stat:new xe("{",!1),b_expr:new xe("{",!0),b_tmpl:new xe("${",!1),p_stat:new xe("(",!1),p_expr:new xe("(",!0),q_tmpl:new xe("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new xe("function",!1),f_expr:new xe("function",!0),f_expr_gen:new xe("function",!0,!1,null,!0),f_gen:new xe("function",!1,!1,null,!0)},Mt=re.prototype;Mt.initialContext=function(){return[ne.b_stat]};Mt.braceIsBlock=function(e){var t=this.curContext();return t===ne.f_expr||t===ne.f_stat?!0:e===h.colon&&(t===ne.b_stat||t===ne.b_expr)?!t.isExpr:e===h._return||e===h.name&&this.exprAllowed?Ae.test(this.input.slice(this.lastTokEnd,this.start)):e===h._else||e===h.semi||e===h.eof||e===h.parenR||e===h.arrow?!0:e===h.braceL?t===ne.b_stat:e===h._var||e===h._const||e===h.name?!1:!this.exprAllowed};Mt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Mt.updateContext=function(e){var t,r=this.type;r.keyword&&e===h.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};h.parenR.updateContext=h.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ne.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};h.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ne.b_stat:ne.b_expr),this.exprAllowed=!0};h.dollarBraceL.updateContext=function(){this.context.push(ne.b_tmpl),this.exprAllowed=!0};h.parenL.updateContext=function(e){var t=e===h._if||e===h._for||e===h._with||e===h._while;this.context.push(t?ne.p_stat:ne.p_expr),this.exprAllowed=!0};h.incDec.updateContext=function(){};h._function.updateContext=h._class.updateContext=function(e){e.beforeExpr&&e!==h.semi&&e!==h._else&&!(e===h._return&&Ae.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===h.colon||e===h.braceL)&&this.curContext()===ne.b_stat)?this.context.push(ne.f_expr):this.context.push(ne.f_stat),this.exprAllowed=!1};h.backQuote.updateContext=function(){this.curContext()===ne.q_tmpl?this.context.pop():this.context.push(ne.q_tmpl),this.exprAllowed=!1};h.star.updateContext=function(e){if(e===h._function){var t=this.context.length-1;this.context[t]===ne.f_expr?this.context[t]=ne.f_expr_gen:this.context[t]=ne.f_gen}this.exprAllowed=!0};h.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==h.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var Ji="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Xi=Ji+" Extended_Pictographic",$n=Xi,Jn={9:Ji,10:Xi,11:$n},ai="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Hi="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Qi=Hi+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Xn=Qi+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Hn={9:Hi,10:Qi,11:Xn},Ki={};function vr(e){var t=Ki[e]={binary:Ue(Jn[e]+" "+ai),nonBinary:{General_Category:Ue(ai),Script:Ue(Hn[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}vr(9);vr(10);vr(11);var j=re.prototype,Ne=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=Ki[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ne.prototype.reset=function(t,r,i){var n=i.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=i,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9};Ne.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};Ne.prototype.at=function(t,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(t>=n)return-1;var s=i.charCodeAt(t);if(!(r||this.switchU)||s<=55295||s>=57344||t+1>=n)return s;var a=i.charCodeAt(t+1);return a>=56320&&a<=57343?(s<<10)+a-56613888:s};Ne.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var i=this.source,n=i.length;if(t>=n)return n;var s=i.charCodeAt(t),a;return!(r||this.switchU)||s<=55295||s>=57344||t+1>=n||(a=i.charCodeAt(t+1))<56320||a>57343?t+1:t+2};Ne.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};Ne.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};Ne.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};Ne.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};function wt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}j.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,i=0;i-1&&this.raise(e.start,"Duplicate regular expression flag")}};j.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};j.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};j.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};j.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};j.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var i=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return n!==-1&&n=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};j.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};j.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};j.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Yi(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Yi(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}j.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!Yi(r);)e.advance();return e.pos!==t};j.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};j.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};j.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};j.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=wt(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=wt(e.lastIntValue);return!0}return!1};j.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Qn(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Qn(e){return Pe(e,!0)||e===36||e===95}j.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return e.advance(r),i===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),Kn(i)?(e.lastIntValue=i,!0):(e.pos=t,!1)};function Kn(e){return We(e,!0)||e===36||e===95||e===8204||e===8205}j.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};j.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};j.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};j.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};j.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};j.regexp_eatZero=function(e){return e.current()===48&&!Vt(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};j.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};j.regexp_eatControlLetter=function(e){var t=e.current();return Zi(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Zi(e){return e>=65&&e<=90||e>=97&&e<=122}j.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(i&&n>=55296&&n<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=(n-55296)*1024+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=n}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Yn(e.lastIntValue))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function Yn(e){return e>=0&&e<=1114111}j.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};j.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};j.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Zn(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1};function Zn(e){return e===100||e===68||e===115||e===83||e===119||e===87}j.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,i),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n),!0}return!1};j.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){Nt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};j.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")};j.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";eu(t=e.current());)e.lastStringValue+=wt(t),e.advance();return e.lastStringValue!==""};function eu(e){return Zi(e)||e===95}j.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";es(t=e.current());)e.lastStringValue+=wt(t),e.advance();return e.lastStringValue!==""};function es(e){return eu(e)||Vt(e)}j.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};j.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1};j.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};j.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||iu(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var i=e.current();return i!==93?(e.lastIntValue=i,e.advance(),!0):!1};j.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};j.regexp_eatClassControlLetter=function(e){var t=e.current();return Vt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};j.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};j.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;Vt(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function Vt(e){return e>=48&&e<=57}j.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;tu(r=e.current());)e.lastIntValue=16*e.lastIntValue+ru(r),e.advance();return e.pos!==t};function tu(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function ru(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}j.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};j.regexp_eatOctalDigit=function(e){var t=e.current();return iu(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function iu(e){return e>=48&&e<=55}j.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var i=0;i=this.input.length)return this.finishToken(h.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};$.readToken=function(e){return Pe(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};$.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=57344)return e;var t=this.input.charCodeAt(this.pos+1);return(e<<10)+t-56613888};$.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){Qe.lastIndex=t;for(var i;(i=Qe.exec(this.input))&&i.index8&&e<14||e>=5760&&Ar.test(String.fromCharCode(e)))++this.pos;else break e}}};$.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};$.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(h.ellipsis)):(++this.pos,this.finishToken(h.dot))};$.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(h.assign,2):this.finishOp(h.slash,1)};$.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,i=e===42?h.star:h.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,i=h.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(h.assign,r+1):this.finishOp(i,r)};$.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(h.assign,3)}return this.finishOp(e===124?h.logicalOR:h.logicalAND,2)}return t===61?this.finishOp(h.assign,2):this.finishOp(e===124?h.bitwiseOR:h.bitwiseAND,1)};$.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(h.assign,2):this.finishOp(h.bitwiseXOR,1)};$.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Ae.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(h.incDec,2):t===61?this.finishOp(h.assign,2):this.finishOp(h.plusMin,1)};$.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(h.assign,r+1):this.finishOp(h.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(h.relational,r))};$.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(h.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(h.arrow)):this.finishOp(e===61?h.eq:h.prefix,1)};$.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(h.questionDot,2)}if(t===63){if(e>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(h.assign,3)}return this.finishOp(h.coalesce,2)}}return this.finishOp(h.question,1)};$.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(h.parenL);case 41:return++this.pos,this.finishToken(h.parenR);case 59:return++this.pos,this.finishToken(h.semi);case 44:return++this.pos,this.finishToken(h.comma);case 91:return++this.pos,this.finishToken(h.bracketL);case 93:return++this.pos,this.finishToken(h.bracketR);case 123:return++this.pos,this.finishToken(h.braceL);case 125:return++this.pos,this.finishToken(h.braceR);case 58:return++this.pos,this.finishToken(h.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(h.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(h.prefix,1)}this.raise(this.pos,"Unexpected character '"+br(e)+"'")};$.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};$.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(Ae.test(i)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(i==="[")t=!0;else if(i==="]"&&t)t=!1;else if(i==="/"&&!t)break;e=i==="\\"}++this.pos}var n=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var f=this.regexpState||(this.regexpState=new Ne(this));f.reset(r,n,a),this.validateRegExpFlags(f),this.validateRegExpPattern(f);var p=null;try{p=new RegExp(n,a)}catch{}return this.finishToken(h.regexp,{pattern:n,flags:a,value:p})};$.readInt=function(e,t,r){for(var i=this.options.ecmaVersion>=12&&t===void 0,n=r&&this.input.charCodeAt(this.pos)===48,s=this.pos,a=0,f=0,p=0,D=t??1/0;p=97?y=m-97+10:m>=65?y=m-65+10:m>=48&&m<=57?y=m-48:y=1/0,y>=e)break;f=m,a=a*e+y}return i&&f===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||t!=null&&this.pos-s!==t?null:a};function ts(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function uu(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}$.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=uu(this.input.slice(t,this.pos)),++this.pos):Pe(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,r)};$.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&i===110){var n=uu(this.input.slice(t,this.pos));return++this.pos,Pe(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(h.num,n)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),i===46&&!r&&(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),(i===69||i===101)&&!r&&(i=this.input.charCodeAt(++this.pos),(i===43||i===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Pe(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=ts(this.input.slice(t,this.pos),r);return this.finishToken(h.num,s)};$.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};function br(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}$.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;i===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(et(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(h.string,t)};var nu={};$.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===nu)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};$.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nu;this.raise(e,t)};$.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===h.template||this.type===h.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(h.dollarBraceL)):(++this.pos,this.finishToken(h.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(h.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(et(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=` +`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};$.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var i=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(i,8);return n>255&&(i=i.slice(0,-1),n=parseInt(i,8)),this.pos+=i.length-1,t=this.input.charCodeAt(this.pos),(i!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-i.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return et(t)?"":String.fromCharCode(t)}};$.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r};$.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,i=this.options.ecmaVersion>=6;this.pos",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const oi=en(ns);(function(e){const t=ss,r=/^[\da-fA-F]+$/,i=/^\d+$/,n=new WeakMap;function s(p){p=p.Parser.acorn||p;let D=n.get(p);if(!D){const m=p.tokTypes,y=p.TokContext,A=p.TokenType,C=new y("...",!0,!0),b={tc_oTag:C,tc_cTag:v,tc_expr:E},P={jsxName:new A("jsxName"),jsxText:new A("jsxText",{beforeExpr:!0}),jsxTagStart:new A("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new A("jsxTagEnd")};P.jsxTagStart.updateContext=function(){this.context.push(E),this.context.push(C),this.exprAllowed=!1},P.jsxTagEnd.updateContext=function(I){let V=this.context.pop();V===C&&I===m.slash||V===v?(this.context.pop(),this.exprAllowed=this.curContext()===E):this.exprAllowed=!0},D={tokContexts:b,tokTypes:P},n.set(p,D)}return D}function a(p){if(!p)return p;if(p.type==="JSXIdentifier")return p.name;if(p.type==="JSXNamespacedName")return p.namespace.name+":"+p.name.name;if(p.type==="JSXMemberExpression")return a(p.object)+"."+a(p.property)}e.exports=function(p){return p=p||{},function(D){return f({allowNamespaces:p.allowNamespaces!==!1,allowNamespacedObjects:!!p.allowNamespacedObjects},D)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(oi).tokTypes},configurable:!0,enumerable:!0});function f(p,D){const m=D.acorn||oi,y=s(m),A=m.tokTypes,C=y.tokTypes,v=m.tokContexts,E=y.tokContexts.tc_oTag,b=y.tokContexts.tc_cTag,P=y.tokContexts.tc_expr,I=m.isNewLine,V=m.isIdentifierStart,S=m.isIdentifierChar;return class extends D{static get acornJsx(){return y}jsx_readToken(){let g="",x=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let F=this.input.charCodeAt(this.pos);switch(F){case 60:case 123:return this.pos===this.start?F===60&&this.exprAllowed?(++this.pos,this.finishToken(C.jsxTagStart)):this.getTokenFromCode(F):(g+=this.input.slice(x,this.pos),this.finishToken(C.jsxText,g));case 38:g+=this.input.slice(x,this.pos),g+=this.jsx_readEntity(),x=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(F===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:I(F)?(g+=this.input.slice(x,this.pos),g+=this.jsx_readNewLine(!0),x=this.pos):++this.pos}}}jsx_readNewLine(g){let x=this.input.charCodeAt(this.pos),F;return++this.pos,x===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,F=g?` +`:`\r +`):F=String.fromCharCode(x),this.options.locations&&(++this.curLine,this.lineStart=this.pos),F}jsx_readString(g){let x="",F=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let B=this.input.charCodeAt(this.pos);if(B===g)break;B===38?(x+=this.input.slice(F,this.pos),x+=this.jsx_readEntity(),F=this.pos):I(B)?(x+=this.input.slice(F,this.pos),x+=this.jsx_readNewLine(!1),F=this.pos):++this.pos}return x+=this.input.slice(F,this.pos++),this.finishToken(A.string,x)}jsx_readEntity(){let g="",x=0,F,B=this.input[this.pos];B!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let R=++this.pos;for(;this.pos")}let W=R.name?"Element":"Fragment";return F["opening"+W]=R,F["closing"+W]=N,F.children=B,this.type===A.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(F,"JSX"+W)}jsx_parseText(){let g=this.parseLiteral(this.value);return g.type="JSXText",g}jsx_parseElement(){let g=this.start,x=this.startLoc;return this.next(),this.jsx_parseElementAt(g,x)}parseExprAtom(g){return this.type===C.jsxText?this.jsx_parseText():this.type===C.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(g)}readToken(g){let x=this.curContext();if(x===P)return this.jsx_readToken();if(x===E||x===b){if(V(g))return this.jsx_readWord();if(g==62)return++this.pos,this.finishToken(C.jsxTagEnd);if((g===34||g===39)&&x==E)return this.jsx_readString(g)}return g===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(C.jsxTagStart)):super.readToken(g)}updateContext(g){if(this.type==A.braceL){var x=this.curContext();x==E?this.context.push(v.b_expr):x==P?this.context.push(v.b_tmpl):super.updateContext(g),this.exprAllowed=!0}else if(this.type===A.slash&&g===C.jsxTagStart)this.context.length-=2,this.context.push(b),this.exprAllowed=!1;else return super.updateContext(g)}}}})(au);var as=au.exports;const os=Pt(as);function ou(e,t,r,i,n){r||(r=T),function s(a,f,p){var D=p||a.type,m=t[D];r[D](a,f,s),m&&m(a,f)}(e,i,n)}function ls(e,t,r,i,n){var s=[];r||(r=T),function a(f,p,D){var m=D||f.type,y=t[m],A=f!==s[s.length-1];A&&s.push(f),r[m](f,p,a),y&&y(f,p||s,s),A&&s.pop()}(e,i,n)}function Sr(e,t,r){r(e,t)}function $e(e,t,r){}var T={};T.Program=T.BlockStatement=function(e,t,r){for(var i=0,n=e.body;i + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function li(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bs(e){var t,r;return li(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(li(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var cu={},kt=lt&<.__assign||function(){return kt=Object.assign||function(e){for(var t,r=1,i=arguments.length;re.length)&&(t=e.length);for(var r=0,i=new Array(t);r0?e.length-1:0),i=e[e.length-1];return i&&(t.type==="string"||t.type==="number")&&(i.type==="string"||i.type==="number")?r.push(pu(String(i.value)+String(t.value))):(i&&r.push(i),r.push(t)),r},ta=function(t){return["key","ref"].includes(t)},ra=function(e){return function(t){var r=t.includes("key"),i=t.includes("ref"),n=t.filter(function(a){return!ta(a)}),s=ci(e?n.sort():n);return i&&s.unshift("ref"),r&&s.unshift("key"),s}};function ia(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var ua=function(t,r,i,n,s){var a=s.tabStop;return t.type==="string"?r.split(` +`).map(function(f,p){return p===0?f:"".concat(ke(n,a)).concat(f)}).join(` +`):r},na=function(t,r,i){return function(n){return ua(n,Kt(n,t,r,i),t,r,i)}},sa=function(t,r){return function(i){var n=Object.keys(t).includes(i);return!n||n&&t[i]!==r[i]}},gu=function(t,r,i,n,s){return s?ke(i,n).length+r.length>s:t.length>1},aa=function(t,r,i,n,s,a,f){return(gu(t,r,s,a,f)||i)&&!n},Du=function(e,t,r,i){var n=e.type,s=e.displayName,a=s===void 0?"":s,f=e.childrens,p=e.props,D=p===void 0?{}:p,m=e.defaultProps,y=m===void 0?{}:m;if(n!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(n));var A=i.filterProps,C=i.maxInlineAttributesLineLength,v=i.showDefaultProps,E=i.sortProps,b=i.tabStop,P="<".concat(a),I=P,V=P,S=!1,g=[],x=ia(D,A);Object.keys(D).filter(x).filter(sa(y,D)).forEach(function(R){return g.push(R)}),Object.keys(y).filter(x).filter(function(){return v}).filter(function(R){return!g.includes(R)}).forEach(function(R){return g.push(R)});var F=ra(E)(g);if(F.forEach(function(R){var N=Zs(R,Object.keys(D).includes(R),D[R],Object.keys(y).includes(R),y[R],t,r,i),W=N.attributeFormattedInline,q=N.attributeFormattedMultiline,M=N.isMultilineAttribute;M&&(S=!0),I+=W,V+=q}),V+=` +`.concat(ke(r,b)),aa(F,I,S,t,r,b,C)?P=V:P=I,f&&f.length>0){var B=r+1;P+=">",t||(P+=` +`,P+=ke(B,b)),P+=f.reduce(ea,[]).map(na(t,B,i)).join(t?"":` +`.concat(ke(B,b))),t||(P+=` +`,P+=ke(B-1,b)),P+="")}else gu(F,I,r,b,C)||(P+=" "),P+="/>";return P},oa="",di="React.Fragment",la=function(t,r,i){var n={};return r&&(n={key:r}),{type:"ReactElement",displayName:t,props:n,defaultProps:{},childrens:i}},ca=function(t){var r=t.key;return!!r},ha=function(t){var r=t.childrens;return r.length===0},fa=function(e,t,r,i){var n=e.type,s=e.key,a=e.childrens;if(n!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(n));var f=i.useFragmentShortSyntax,p;return f?ha(e)||ca(e)?p=di:p=oa:p=di,Du(la(p,s,a),t,r,i)},pa=["<",">","{","}"],da=function(t){return pa.some(function(r){return t.includes(r)})},ma=function(t){return da(t)?"{`".concat(t,"`}"):t},ga=function(t){var r=t;return r.endsWith(" ")&&(r=r.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),r.startsWith(" ")&&(r=r.replace(/^(\s+)(.*)$/,"{'$1'}$2")),r},Kt=function(e,t,r,i){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(ga(ma(String(e.value)))):"";if(e.type==="ReactElement")return Du(e,t,r,i);if(e.type==="ReactFragment")return fa(e,t,r,i);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},Da=function(e,t){return Kt(e,!1,0,t)},ot=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.filterProps,n=i===void 0?[]:i,s=r.showDefaultProps,a=s===void 0?!0:s,f=r.showFunctions,p=f===void 0?!1:f,D=r.functionValue,m=r.tabStop,y=m===void 0?2:m,A=r.useBooleanShorthandSyntax,C=A===void 0?!0:A,v=r.useFragmentShortSyntax,E=v===void 0?!0:v,b=r.sortProps,P=b===void 0?!0:b,I=r.maxInlineAttributesLineLength,V=r.displayName;if(!t)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var S={filterProps:n,showDefaultProps:a,showFunctions:p,functionValue:D,tabStop:y,useBooleanShorthandSyntax:C,useFragmentShortSyntax:E,sortProps:P,maxInlineAttributesLineLength:I,displayName:V};return Da(wr(t,S),S)};const{defaultDecorateStory:Aa,addons:Ca,useEffect:Ea}=__STORYBOOK_MODULE_PREVIEW_API__,{logger:vt}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function ya(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let n=[];if(r){let s=e.map(a=>{let f=a.getPrettyName(),p=a.getTypeName();return p!=null?`${f}: ${p}`:f});n.push(`(${s.join(", ")})`)}else n.push("()");return i&&n.push(`=> ${t.getTypeName()}`),n.join(" ")}function xa(e,t){let r=e!=null,i=t!=null;if(!r&&!i)return"";let n=[];return r?n.push("( ... )"):n.push("()"),i&&n.push(`=> ${t.getTypeName()}`),n.join(" ")}function Fa(e){return e.replace(/,/g,`,\r +`)}var pr="custom",gt="object",kr="array",va="class",Ye="func",tt="element";function Ir(e){return sn.includes(e.toLowerCase())}var Au={format:{indent:{style:" "},semicolons:!1}},ba={...Au,format:{newline:""}},Sa={...Au};function Oe(e,t=!1){return vi.generate(e,t?ba:Sa)}function dr(e,t=!1){return t?_a(e):Oe(e)}function _a(e){let t=Oe(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function mi(e,t=!1){return t?wa(e):Ba(e)}function Ba(e){let t=Oe(e);return t.endsWith(" }]")&&(t=tn(t)),t}function wa(e){let t=Oe(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}var Cu=e=>e.$$typeof===Symbol.for("react.memo"),ka=e=>e.$$typeof===Symbol.for("react.forward_ref"),Pr={...T,JSXElement:()=>{}},Ia=re.extend(os());function Dt(e){return e!=null?e.name:null}function gi(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function Eu(e){let t=[];return ls(e,{ObjectExpression(r,i){t.push(gi(i).length)},ArrayExpression(r,i){t.push(gi(i).length)}},Pr),Math.max(...t)}function Pa(e){return{inferredType:{type:"Identifier",identifier:Dt(e)},ast:e}}function Ta(e){return{inferredType:{type:"Literal"},ast:e}}function Na(e){let t;ou(e.body,{JSXElement(n){t=n}},Pr);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},i=Dt(e.id);return i!=null&&(r.identifier=i),{inferredType:r,ast:e}}function La(e){let t;return ou(e.body,{JSXElement(r){t=r}},Pr),{inferredType:{type:t!=null?"Element":"Class",identifier:Dt(e.id)},ast:e}}function Oa(e){let t={type:"Element"},r=Dt(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function Ra(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return Dt(t)==="shape"?yu(e.arguments[0]):null}function yu(e){return{inferredType:{type:"Object",depth:Eu(e)},ast:e}}function Ma(e){return{inferredType:{type:"Array",depth:Eu(e)},ast:e}}function Va(e){switch(e.type){case"Identifier":return Pa(e);case"Literal":return Ta(e);case"FunctionExpression":case"ArrowFunctionExpression":return Na(e);case"ClassExpression":return La(e);case"JSXElement":return Oa(e);case"CallExpression":return Ra(e);case"ObjectExpression":return yu(e);case"ArrayExpression":return Ma(e);default:return null}}function ja(e){let t=Ia.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let i=t.body[0];switch(i.type){case"ExpressionStatement":{let n=Va(i.expression);n!=null&&(r=n);break}}}return r}function Re(e){try{return{...ja(e)}}catch{}return{inferredType:{type:"Unknown"}}}var qa=150;function de({name:e,short:t,compact:r,full:i,inferredType:n}){return{name:e,short:t,compact:r,full:i??t,inferredType:n}}function xu(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function Di(e){return e.split(/\r?\n/)}function It(e,t=!1){return xu(dr(e,t))}function Ai(e,t=!1){return xu(Oe(e,t))}function Ua(e){switch(e){case"Object":return gt;case"Array":return kr;case"Class":return va;case"Function":return Ye;case"Element":return tt;default:return pr}}function Fu(e,t){let{inferredType:r,ast:i}=Re(e),{type:n}=r,s,a,f;switch(n){case"Identifier":case"Literal":s=e,a=e;break;case"Object":{let{depth:p}=r;s=gt,a=p===1?It(i,!0):null,f=It(i);break}case"Element":{let{identifier:p}=r;s=p!=null&&!Ir(p)?p:tt,a=Di(e).length===1?e:null,f=e;break}case"Array":{let{depth:p}=r;s=kr,a=p<=2?Ai(i,!0):null,f=Ai(i);break}default:s=Ua(n),a=Di(e).length===1?e:null,f=e;break}return de({name:t,short:s,compact:a,full:f,inferredType:n})}function Wa({raw:e}){return e!=null?Fu(e,"custom"):de({name:"custom",short:pr,compact:pr})}function Ga(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?de({name:"func",short:xa(t.params,t.returns),compact:null,full:ya(t.params,t.returns)}):de({name:"func",short:Ye,compact:Ye})}function za(e,t){let r=Object.keys(e.value).map(a=>`${a}: ${Ze(e.value[a],t).full}`).join(", "),{inferredType:i,ast:n}=Re(`{ ${r} }`),{depth:s}=i;return de({name:"shape",short:gt,compact:s===1&&n?It(n,!0):null,full:n?It(n):null})}function or(e){return`objectOf(${e})`}function $a(e,t){let{short:r,compact:i,full:n}=Ze(e.value,t);return de({name:"objectOf",short:or(r),compact:i!=null?or(i):null,full:n&&or(n)})}function Ja(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((i,n)=>{let{short:s,compact:a,full:f}=Ze(n,t);return i.short.push(s),i.compact.push(a),i.full.push(f),i},{short:[],compact:[],full:[]});return de({name:"union",short:r.short.join(" | "),compact:r.compact.every(i=>i!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return de({name:"union",short:e.value,compact:null})}function Xa({value:e,computed:t}){return t?Fu(e,"enumvalue"):de({name:"enumvalue",short:e,compact:e})}function Ha(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,i)=>{let{short:n,compact:s,full:a}=Xa(i);return r.short.push(n),r.compact.push(s),r.full.push(a),r},{short:[],compact:[],full:[]});return de({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return de({name:"enum",short:e.value,compact:e.value})}function mr(e){return`${e}[]`}function Ci(e){return`[${e}]`}function Ei(e,t,r){return de({name:"arrayOf",short:mr(e),compact:t!=null?Ci(t):null,full:r&&Ci(r)})}function Qa(e,t){let{name:r,short:i,compact:n,full:s,inferredType:a}=Ze(e.value,t);if(r==="custom"){if(a==="Object")return Ei(i,n,s)}else if(r==="shape")return Ei(i,n,s);return de({name:"arrayOf",short:mr(i),compact:mr(i)})}function Ze(e,t){try{switch(e.name){case"custom":return Wa(e);case"func":return Ga(t);case"shape":return za(e,t);case"instanceOf":return de({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return $a(e,t);case"union":return Ja(e,t);case"enum":return Ha(e);case"arrayOf":return Qa(e,t);default:return de({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return de({name:"unknown",short:"unknown",compact:"unknown"})}function Ka(e){let{type:t}=e.docgenInfo;if(t==null)return null;try{switch(t.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short:r,compact:i,full:n}=Ze(t,e);return i!=null&&!Zu(i)?te(i):n?te(r,n):te(r)}case"func":{let{short:r,full:i}=Ze(t,e),n=r,s;return i&&i.length`}function Su(e){let{type:t,identifier:r}=e;switch(t){case"Function":return Tr(r,e.hasParams);case"Element":return Yt(r);default:return r}}function Ya({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return te(Su(e),Oe(t));let i=Oe(t,!0);return ft(i)?te(Ye,Oe(t)):te(i)}function Za(e,t){let{inferredType:r}=t,{identifier:i}=r;if(i!=null&&!Ir(i)){let n=Su(r);return te(n,e)}return ft(e)?te(tt,e):te(e)}function _u(e){try{let t=Re(e);switch(t.inferredType.type){case"Object":return vu(t);case"Function":return Ya(t);case"Element":return Za(e,t);case"Array":return bu(t);default:return null}}catch(t){console.error(t)}return null}function Bu(e){return e.$$typeof!=null}function wu(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var eo=e=>te(JSON.stringify(e));function to(e){let{type:t}=e,{displayName:r}=t,i=ot(e,{});if(r!=null){let n=Yt(r);return te(n,i)}if(_s(t)&&Ir(t)){let n=ot(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!ft(n))return te(n)}return te(tt,i)}var ro=e=>{if(Bu(e)&&e.type!=null)return to(e);if(Es(e)){let t=Re(JSON.stringify(e));return vu(t)}if(Array.isArray(e)){let t=Re(JSON.stringify(e));return bu(t)}return te(gt)},io=(e,t)=>{let r=!1,i;if(Jr(e.render))r=!0;else if(e.prototype!=null&&Jr(e.prototype.render))r=!0;else{let s;try{i=Re(e.toString());let{hasParams:a,params:f}=i.inferredType;a?f.length===1&&f[0].type==="ObjectPattern"&&(s=e({})):s=e(),s!=null&&Bu(s)&&(r=!0)}catch{}}let n=wu(e,t.name);if(n!=null){if(r)return te(Yt(n));i!=null&&(i=Re(e.toString()));let{hasParams:s}=i.inferredType;return te(Tr(n,s))}return te(r?tt:Ye)},uo=e=>te(e.toString()),ku={string:eo,object:ro,function:io,default:uo};function no(e={}){return{...ku,...e}}function so(e,t,r=ku){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(i){console.error(i)}return null}function ao(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(i=>e.find(n=>n.name===i)).filter(Boolean):e}var oo=(e,{name:t,type:r})=>{let i=(r==null?void 0:r.summary)==="element"||(r==null?void 0:r.summary)==="elementType",n=wu(e,t);if(n!=null){if(i)return te(Yt(n));let{hasParams:s}=Re(e.toString()).inferredType;return te(Tr(n,s))}return te(i?tt:Ye)},lo=no({function:oo});function co(e,t){let{propDef:r}=e,i=Ka(e);i!=null&&(r.type=i);let{defaultValue:n}=e.docgenInfo;if(n!=null&&n.value!=null){let s=_u(n.value);s!=null&&(r.defaultValue=s)}else if(t!=null){let s=so(t,r,lo);s!=null&&(r.defaultValue=s)}return r}function ho(e,t){let r=t.defaultProps!=null?t.defaultProps:{},i=e.map(n=>co(n,r[n.propDef.name]));return ao(i,t)}function fo(e,t){let{propDef:r}=e,{defaultValue:i}=e.docgenInfo;if(i!=null&&i.value!=null){let n=_u(i.value);n!=null&&(r.defaultValue=n)}return r}function po(e){return e.map(t=>fo(t))}var yi=new Map;Object.keys($r).forEach(e=>{let t=$r[e];yi.set(t,e),yi.set(t.isRequired,e)});function mo(e,t){let r=e;!Ku(e)&&!e.propTypes&&Cu(e)&&(r=e.type);let i=Yu(r,t);if(i.length===0)return[];switch(i[0].typeSystem){case Gr.JAVASCRIPT:return ho(i,e);case Gr.TYPESCRIPT:return po(i);default:return i.map(n=>n.propDef)}}var go=e=>({rows:mo(e,"props")}),Do=e=>{if(e){let{rows:t}=go(e);if(t)return t.reduce((r,i)=>{let{name:n,description:s,type:a,sbType:f,defaultValue:p,jsDocTags:D,required:m}=i;return r[n]={name:n,description:s,type:{required:m,...f},table:{type:a??void 0,jsDocTags:D,defaultValue:p??void 0}},r},{})}return null},Ao=e=>e.charAt(0).toUpperCase()+e.slice(1),Co=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(Ao).join("")).join(".");function gr(e){if(Ge.isValidElement(e)){let t=Object.keys(e.props).reduce((r,i)=>(r[i]=gr(e.props[i]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(gr):e}var Eo=(e,t)=>{if(typeof e>"u")return vt.warn("Too many skip or undefined component"),null;let r=e,i=r.type;for(let a=0;a<(t==null?void 0:t.skip);a+=1){if(typeof r>"u")return vt.warn("Cannot skip undefined element"),null;if(st.Children.count(r)>1)return vt.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(vt.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=st.createElement(i,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let n;typeof(t==null?void 0:t.displayName)=="string"?n={showFunctions:!0,displayName:()=>t.displayName}:n={displayName:a=>{var f;return a.type.displayName?a.type.displayName:zr(a.type,"displayName")?zr(a.type,"displayName"):(f=a.type.render)!=null&&f.displayName?a.type.render.displayName:typeof a.type=="symbol"||a.type.$$typeof&&typeof a.type.$$typeof=="symbol"?Co(a.type):a.type.name&&a.type.name!=="_default"?a.type.name:typeof a.type=="function"?"No Display Name":ka(a.type)?a.type.render.name:Cu(a.type)?a.type.type.name:a.type}};let s={...n,filterProps:(a,f)=>a!==void 0,...t};return st.Children.map(e,a=>{let f=typeof a=="number"?a.toString():a,p=(typeof ot=="function"?ot:ot.default)(gr(f),s);if(p.indexOf(""")>-1){let D=p.match(/\S+=\\"([^"]*)\\"/g);D&&D.forEach(m=>{p=p.replace(m,m.replace(/"/g,"'"))})}return p}).join(` +`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},yo={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},xo=e=>{var i;let t=(i=e==null?void 0:e.parameters.docs)==null?void 0:i.source,r=e==null?void 0:e.parameters.__isArgsStory;return(t==null?void 0:t.type)===Wr.DYNAMIC?!1:!r||(t==null?void 0:t.code)||(t==null?void 0:t.type)===Wr.CODE},Fo=e=>{var t,r;return((t=e.type)==null?void 0:t.displayName)==="MDXCreateElement"&&!!((r=e.props)!=null&&r.mdxType)},Iu=e=>{if(!Fo(e))return e;let{mdxType:t,originalType:r,children:i,...n}=e.props,s=[];return i&&(s=(Array.isArray(i)?i:[i]).map(Iu)),Ge.createElement(r,n,...s)},Pu=(e,t)=>{var m,y;let r=Ca.getChannel(),i=xo(t),n="";Ea(()=>{if(!i){let{id:A,unmappedArgs:C}=t;r.emit(Qu,{id:A,source:n,args:C})}});let s=e();if(i)return s;let a={...yo,...(t==null?void 0:t.parameters.jsx)||{}},f=(y=(m=t==null?void 0:t.parameters.docs)==null?void 0:m.source)!=null&&y.excludeDecorators?t.originalStoryFn(t.args,t):s,p=Iu(f),D=Eo(p,a);return D&&(n=D),s},wo=(e,t)=>{let r=t.findIndex(n=>n.originalFn===Pu),i=r===-1?t:[...t.splice(r,1),...t];return Aa(e,i)},ko={docs:{story:{inline:!0},extractArgTypes:Do,extractComponentDescription:Xu}},Io=[Pu],Po=[Hu];export{wo as applyDecorators,Po as argTypesEnhancers,Io as decorators,ko as parameters}; diff --git a/storybook/assets/errorHandler-ulv3bqY5.js b/storybook/assets/errorHandler-ulv3bqY5.js new file mode 100644 index 0000000..380977d --- /dev/null +++ b/storybook/assets/errorHandler-ulv3bqY5.js @@ -0,0 +1,5 @@ +import{P as Qe}from"./index-BzjuzjN8.js";import{ab as en,ac as tn,D as we,_ as K,ad as nn,p as se,o as le,s as G,Y as Se,j as S,c as ie,T as et,q as ae,u as Re,t as ye,X as tt,E as me,U as z,B as je,y as We,A as on,L as Ct}from"./Wrapper-DXvvO_B0.js";import{_ as u}from"./isNativeReflectConstruct-CJAgTEKr.js";import{r as f}from"./index-CTjT7uj6.js";import{P as rn,C as sn,I as nt}from"./Chip-C6MsZLfs.js";import{c as ot,G as an,d as ln,u as re,L as Ue,e as cn,B as un,g as dn,a as pn}from"./Select-DSn46qfv.js";import{a as Ze}from"./ownerWindow-DIR61fab.js";import{u as Be}from"./useId-BjRAp5Eo.js";import{u as Ae}from"./index-BjNUr1t6.js";import{u as He}from"./useControlled-5JjQu8rW.js";import{u as Ne,F as fn}from"./useFormControl-Baz_U5RD.js";import{F as mn,I as hn,a as gn}from"./FormHelperText-h4EvFgt8.js";import{s as yn}from"./createStyled-D6A6HRKR.js";import{c as xe}from"./createSvgIcon-DLhoJ5Fi.js";import{i as Sn}from"./isMuiElement-BqzHBgRb.js";import{f as ut}from"./InputBase-DuDaiXcF.js";function bn(e,t,n,r,o){const[s,a]=f.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return we(()=>{let l=!0;if(!n)return;const i=n(e),c=()=>{l&&a(i.matches)};return c(),i.addListener(c),()=>{l=!1,i.removeListener(c)}},[e,n]),s}const kt=f.useSyncExternalStore;function xn(e,t,n,r,o){const s=f.useCallback(()=>t,[t]),a=f.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return s},[s,e,r,o,n]),[l,i]=f.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const d=n(e);return[()=>d.matches,h=>(d.addListener(h),()=>{d.removeListener(h)})]},[s,n,e]);return kt(i,l,a)}function vn(e,t={}){const n=en(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:l=!1}=tn({name:"MuiUseMediaQuery",props:t,theme:n});let i=typeof e=="function"?e(n):e;return i=i.replace(/^@media( ?)/m,""),(kt!==void 0?xn:bn)(i,o,s,a,l)}const ea=Qe.oneOfType([Qe.func,Qe.object]),Pn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},ge=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),ta=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},Ke=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r},na=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:a,timezone:l})=>{const i=Ke(a,a.date(void 0,l),e);n&&a.isBefore(o,i)&&(o=i),t&&a.isAfter(r,i)&&(r=i);let c=e,d=e;for(a.isBefore(e,o)&&(c=o,d=null),a.isAfter(e,r)&&(d&&(d=r),c=null);c||d;){if(c&&a.isAfter(c,r)&&(c=null),d&&a.isBefore(d,o)&&(d=null),c){if(!s(c))return c;c=a.addDays(c,1)}if(d){if(!s(d))return d;d=a.addDays(d,-1)}}return null},In=(e,t)=>t==null||!e.isValid(t)?null:t,_e=(e,t,n)=>t==null||!e.isValid(t)?n:t,wn=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Dt=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},Vt=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),oa=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Cn=["year","month","day"],ra=e=>Cn.includes(e),sa=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return ge(n,["year"])?o.year:ge(n,["month"])?o.month:ge(n,["day"])?o.dayOfMonth:ge(n,["month","year"])?`${o.month} ${o.year}`:ge(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},aa=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Mt=["hours","minutes","seconds"],kn=e=>Mt.includes(e),ia=e=>Mt.includes(e)||e==="meridiem",Dn=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Vn=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Mn=(e,t,n,r)=>{const o=Vn(r.getHours(e),t,n);return r.setHours(e,o)},dt=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Tn=(e,t)=>(n,r)=>e?t.isAfter(n,r):dt(n,t)>dt(r,t),la=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const o=e.formats;return ge(n,["hours"])?r?`${o.hours12h} ${o.meridiem}`:o.hours24h:ge(n,["minutes"])?o.minutes:ge(n,["seconds"])?o.seconds:ge(n,["minutes","seconds"])?`${o.minutes}:${o.seconds}`:ge(n,["hours","minutes","seconds"])?r?`${o.hours12h}:${o.minutes}:${o.seconds} ${o.meridiem}`:`${o.hours24h}:${o.minutes}:${o.seconds}`:r?`${o.hours12h}:${o.minutes} ${o.meridiem}`:`${o.hours24h}:${o.minutes}`},Ie={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Rn=e=>Math.max(...e.map(t=>Ie[t.type]??1)),Ee=(e,t,n)=>{if(t===Ie.year)return e.startOfYear(n);if(t===Ie.month)return e.startOfMonth(n);if(t===Ie.day)return e.startOfDay(n);let r=n;return t{let s=o?o():Ee(t,n,Vt(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Ee(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Ee(t,n,e.maxDate));const a=Tn(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,s)&&(s=Ee(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ke(t,s,e.minTime))),e.maxTime!=null&&a(s,e.maxTime)&&(s=Ee(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ke(t,s,e.maxTime))),s},Tt=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Fn=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},ze=(e,t,n)=>{const r=[],o=e.date(void 0,t),s=e.startOfWeek(o),a=e.endOfWeek(o);let l=s;for(;e.isBefore(l,a);)r.push(l),l=e.addDays(l,1);return r.map(i=>e.formatByString(i,n))},Rt=(e,t,n,r)=>{switch(n){case"month":return Dt(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return ze(e,t,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},pt="s",En=["0","1","2","3","4","5","6","7","8","9"],Ln=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),pt)==="0"?En:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),pt))},Ce=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o-1&&(n.push(s.toString()),r="")}return n.join("")},rt=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),ft=(e,t)=>{const n=Ce(e,t);return n!==" "&&!Number.isNaN(Number(n))},At=(e,t)=>{let n=e;for(n=Number(n).toString();n.length{if(o.type==="day"&&o.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=At(s,o.maxLength)),rt(s,r)},On=(e,t,n,r,o,s,a,l)=>{const i=Fn(r),c=r==="Home",d=r==="End",h=n.value===""||c||d,g=()=>{const p=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),y=C=>Ft(e,C,p,s,n),v=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let m=parseInt(Ce(n.value,s),10)+i*v;if(h){if(n.type==="year"&&!d&&!c)return e.formatByString(e.date(void 0,t),n.format);i>0||c?m=p.minimum:m=p.maximum}return m%v!==0&&((i<0||c)&&(m+=v-(v+m)%v),(i>0||d)&&(m-=m%v)),m>p.maximum?y(p.minimum+(m-p.maximum-1)%(p.maximum-p.minimum+1)):m{const p=Rt(e,t,n.type,n.format);if(p.length===0)return n.value;if(h)return i>0||c?p[0]:p[p.length-1];const x=((p.indexOf(n.value)+i)%p.length+p.length)%p.length;return p[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?g():b()},st=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(Ce(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},mt=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Et=(e,t,n)=>e.formatByString(e.date(void 0,t),n).length===4,Lt=(e,t,n,r,o)=>{if(n!=="digit")return!1;const s=e.date(void 0,t);switch(r){case"year":return Et(e,t,o)?e.formatByString(e.setYear(s,1),o)==="0001":e.formatByString(e.setYear(s,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error("Invalid section type")}},$n=(e,t,n)=>{const r=t.some(i=>i.type==="day"),o=[],s=[];for(let i=0;ie.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Nn=(e,t,n)=>{const o=e.map(s=>{const a=st(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${a}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},jn=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:l}=Dt(e,r).reduce((i,c)=>{const d=e.getDaysInMonth(c);return d>i.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:c}:i},{maxDaysInMonth:0,longestMonth:null});return{year:({format:i})=>({minimum:0,maximum:Et(e,n,i)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:i})=>({minimum:1,maximum:i!=null&&e.isValid(i)?e.getDaysInMonth(i):a,longestMonth:l}),weekDay:({format:i,contentType:c})=>{if(c==="digit"){const d=ze(e,n,i).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:i})=>{const c=e.getHours(s);return Ce(e.formatByString(e.endOfDay(r),i),t)!==c.toString()?{minimum:1,maximum:Number(Ce(e.formatByString(e.startOfDay(r),i),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},Wn=(e,t,n,r,o)=>{switch(n.type){case"year":return e.setYear(o,e.getYear(r));case"month":return e.setMonth(o,e.getMonth(r));case"weekDay":{const s=ze(e,t,n.format),a=e.formatByString(r,n.format),l=s.indexOf(a),c=s.indexOf(n.value)-l;return e.addDays(r,c)}case"day":return e.setDate(o,e.getDate(r));case"meridiem":{const s=e.getHours(r)<12,a=e.getHours(o);return s&&a>=12?e.addHours(o,-12):!s&&a<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(r));case"minutes":return e.setMinutes(o,e.getMinutes(r));case"seconds":return e.setSeconds(o,e.getSeconds(r));default:return o}},ht={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},gt=(e,t,n,r,o,s)=>[...r].sort((a,l)=>ht[a.type]-ht[l.type]).reduce((a,l)=>!s||l.modified?Wn(e,t,l,n,a):a,o),Un=()=>navigator.userAgent.toLowerCase().includes("android"),Hn=(e,t)=>{const n={};if(!t)return e.forEach((i,c)=>{const d=c===0?null:c-1,h=c===e.length-1?null:c+1;n[c]={leftIndex:d,rightIndex:h}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((i,c)=>{var d;return c>=s&&((d=i.endSeparator)==null?void 0:d.includes(" "))&&i.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let i=a;i>=s;i-=1)o[i]=l,r[l]=i,l-=1;s=a+1}return e.forEach((i,c)=>{const d=o[c],h=d===0?null:r[d-1],g=d===e.length-1?null:r[d+1];n[c]={leftIndex:h,rightIndex:g}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Xe=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,_n=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},zn=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},Gn=["value","referenceDate"],ca={emptyValue:null,getTodayValue:Vt,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=K(e,Gn);return t!=null&&r.utils.isValid(t)?t:n??An(r)},cleanValue:In,areValuesEqual:wn,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},ua={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:Bn,getV6InputValueFromSections:Nn,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},Yn=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:u({},e)}}}}),Ot={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Qn=Ot;Yn(Ot);const Fe=()=>{const e=f.useContext(nn);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=f.useMemo(()=>u({},Qn,e.localeText),[e.localeText]);return f.useMemo(()=>u({},e,{localeText:t}),[e,t])},ce=()=>Fe().utils,$t=()=>Fe().defaultDates,da=e=>{const t=ce(),n=f.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Zn(e){return le("MuiPickersToolbar",e)}const pa=se("MuiPickersToolbar",["root","content"]),Kn=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Xn=e=>{const{classes:t,isLandscape:n}=e;return ae({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Zn,t)},qn=G("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),Jn=G("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),fa=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:a,hidden:l,titleId:i}=r,c=K(r,Kn),d=r,h=Xn(d);return l?null:S.jsxs(qn,u({ref:n,className:ie(h.root,s),ownerState:d},c,{children:[S.jsx(et,{color:"text.secondary",variant:"overline",id:i,children:a}),S.jsx(Jn,{className:h.content,ownerState:d,children:o})]}))}),Ge=()=>Fe().localeText;function eo(e){return le("MuiInputAdornment",e)}const yt=se("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var St;const to=["children","className","component","disablePointerEvents","disableTypography","position","variant"],no=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},oo=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${ye(o)}`,a,r&&"hiddenLabel",s&&`size${ye(s)}`]};return ae(l,eo,t)},ro=G("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:no})(({theme:e,ownerState:t})=>u({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${yt.positionStart}&:not(.${yt.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Bt=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:i=!1,position:c,variant:d}=r,h=K(r,to),g=Ne()||{};let b=d;d&&g.variant,g&&!b&&(b=g.variant);const p=u({},r,{hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:c,variant:b}),y=oo(p);return S.jsx(fn.Provider,{value:null,children:S.jsx(ro,u({as:a,ownerState:p,className:ie(y.root,s),ref:n},h,{children:typeof o=="string"&&!i?S.jsx(et,{color:"text.secondary",children:o}):S.jsxs(f.Fragment,{children:[c==="start"?St||(St=S.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})});function so(e){return le("MuiPickersPopper",e)}se("MuiPickersPopper",["root","paper"]);function ao(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const io=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},pe=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?pe(t.shadowRoot):t:null},ma="@media (pointer: fine)",lo="@media (prefers-reduced-motion: reduce)",Me=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),bt=Me&&Me[1]?parseInt(Me[1],10):null,xt=Me&&Me[2]?parseInt(Me[2],10):null,co=bt&&bt<10||xt&&xt<13||!1,uo=()=>vn(lo,{defaultMatches:!1})||co,po=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],fo=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"]},so,t)},mo=G(rn,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),ho=G(tt,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function go(e,t){return t.documentElement.clientWidth{if(!e)return;function i(){s.current=!0}return document.addEventListener("mousedown",i,!0),document.addEventListener("touchstart",i,!0),()=>{document.removeEventListener("mousedown",i,!0),document.removeEventListener("touchstart",i,!0),s.current=!1}},[e]);const a=z(i=>{if(!s.current)return;const c=r.current;r.current=!1;const d=Ze(o.current);if(!o.current||"clientX"in i&&go(i,d))return;if(n.current){n.current=!1;return}let h;i.composedPath?h=i.composedPath().indexOf(o.current)>-1:h=!d.documentElement.contains(i.target)||o.current.contains(i.target),!h&&!c&&t(i)}),l=()=>{r.current=!0};return f.useEffect(()=>{if(e){const i=Ze(o.current),c=()=>{n.current=!0};return i.addEventListener("touchstart",a),i.addEventListener("touchmove",c),()=>{i.removeEventListener("touchstart",a),i.removeEventListener("touchmove",c)}}},[e,a]),f.useEffect(()=>{if(e){const i=Ze(o.current);return i.addEventListener("click",a),()=>{i.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,l,l]}const So=f.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:a,paperClasses:l,onPaperClick:i,onPaperTouchStart:c}=e,d=K(e,po),h=u({},o,{placement:r}),g=re({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:h});return S.jsx(n,u({},d,g,{onClick:b=>{var p;i(b),(p=g.onClick)==null||p.call(g,b)},onTouchStart:b=>{var p;c(b),(p=g.onTouchStart)==null||p.call(g,b)},ownerState:h,children:s}))});function bo(e){const t=Se({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:a,onDismiss:l,open:i,role:c,placement:d,slots:h,slotProps:g,reduceAnimations:b}=t;f.useEffect(()=>{function O($){i&&$.key==="Escape"&&l()}return document.addEventListener("keydown",O),()=>{document.removeEventListener("keydown",O)}},[l,i]);const p=f.useRef(null);f.useEffect(()=>{c==="tooltip"||s&&!s()||(i?p.current=pe(document):p.current&&p.current instanceof HTMLElement&&setTimeout(()=>{p.current instanceof HTMLElement&&p.current.focus()}))},[i,c,s]);const[y,v,x]=yo(i,a??l),m=f.useRef(null),C=me(m,o),P=me(C,y),k=t,R=fo(k),E=uo(),I=b??E,B=O=>{O.key==="Escape"&&(O.stopPropagation(),l())},_=(h==null?void 0:h.desktopTransition)??I?ot:an,D=(h==null?void 0:h.desktopTrapFocus)??ln,M=(h==null?void 0:h.desktopPaper)??ho,T=(h==null?void 0:h.popper)??mo,V=re({elementType:T,externalSlotProps:g==null?void 0:g.popper,additionalProps:{transition:!0,role:c,open:i,anchorEl:n,placement:d,onKeyDown:B},className:R.root,ownerState:t});return S.jsx(T,u({},V,{children:({TransitionProps:O,placement:$})=>S.jsx(D,u({open:i,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},g==null?void 0:g.desktopTrapFocus,{children:S.jsx(_,u({},O,g==null?void 0:g.desktopTransition,{children:S.jsx(So,{PaperComponent:M,ownerState:k,popperPlacement:$,ref:P,onPaperClick:v,onPaperTouchStart:x,paperClasses:R.paper,paperSlotProps:g==null?void 0:g.desktopPaper,children:r})}))}))}))}const xo=({open:e,onOpen:t,onClose:n})=>{const r=f.useRef(typeof e=="boolean").current,[o,s]=f.useState(!1);f.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const a=f.useCallback(l=>{r||s(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}};function Nt(e,t,n,r){const{value:o,onError:s}=e,a=Fe(),l=f.useRef(r),i=t({adapter:a,value:o,props:e});return f.useEffect(()=>{s&&!n(i,l.current)&&s(i,o),l.current=i},[n,s,l,i,o]),i}const at=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:o})=>{const s=ce(),a=f.useRef(n),l=t??a.current??o.emptyValue,i=f.useMemo(()=>o.getTimezone(s,l),[s,o,l]),c=z(b=>i==null?b:o.setTimezone(s,i,b)),d=e??i??"default",h=f.useMemo(()=>o.setTimezone(s,d,l),[o,s,d,l]),g=z((b,...p)=>{const y=c(b);r==null||r(y,...p)});return{value:h,handleValueChange:g,timezone:d}},ha=({name:e,timezone:t,value:n,defaultValue:r,onChange:o,valueManager:s})=>{const[a,l]=He({name:e,state:"value",controlled:n,default:r??s.emptyValue}),i=z((c,...d)=>{l(c),o==null||o(c,...d)});return at({timezone:t,value:a,defaultValue:void 0,onChange:i,valueManager:s})},vo=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},Po=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?a?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},Io=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},wo=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:a,value:l,defaultValue:i,closeOnSelect:c=r==="desktop",timezone:d}=e,{current:h}=f.useRef(i),{current:g}=f.useRef(l!==void 0),b=ce(),p=Fe(),{isOpen:y,setIsOpen:v}=xo(e),{timezone:x,value:m,handleValueChange:C}=at({timezone:d,value:l,defaultValue:h,onChange:a,valueManager:t}),[P,k]=f.useState(()=>{let N;return m!==void 0?N=m:h!==void 0?N=h:N=t.emptyValue,{draft:N,lastPublishedValue:N,lastCommittedValue:N,lastControlledValue:m,hasBeenModifiedSinceMount:!1}});Nt(u({},e,{value:P.draft,timezone:x}),o,t.isSameError,t.defaultErrorState);const R=z(N=>{const X={action:N,dateState:P,hasChanged:Y=>!t.areValuesEqual(b,N.value,Y),isControlled:g,closeOnSelect:c},F=vo(X),j=Po(X),L=Io(X);k(Y=>u({},Y,{draft:N.value,lastPublishedValue:F?N.value:Y.lastPublishedValue,lastCommittedValue:j?N.value:Y.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let A=null;const H=()=>(A||(A={validationError:N.name==="setValueFromField"?N.context.validationError:o({adapter:p,value:N.value,props:u({},e,{value:N.value,timezone:x})})},N.name==="setValueFromShortcut"&&(A.shortcut=N.shortcut)),A);F&&C(N.value,H()),j&&s&&s(N.value,H()),L&&v(!1)});if(m!==void 0&&(P.lastControlledValue===void 0||!t.areValuesEqual(b,P.lastControlledValue,m))){const N=t.areValuesEqual(b,P.draft,m);k(X=>u({},X,{lastControlledValue:m},N?{}:{lastCommittedValue:m,lastPublishedValue:m,draft:m,hasBeenModifiedSinceMount:!0}))}const E=z(()=>{R({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),I=z(()=>{R({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),B=z(()=>{R({value:P.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),_=z(()=>{R({value:P.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=z(()=>{R({value:t.getTodayValue(b,x,n),name:"setValueFromAction",pickerAction:"today"})}),M=z(N=>{N.preventDefault(),v(!0)}),T=z(N=>{N==null||N.preventDefault(),v(!1)}),V=z((N,X="partial")=>R({name:"setValueFromView",value:N,selectionState:X})),O=z((N,X,F)=>R({name:"setValueFromShortcut",value:N,changeImportance:X,shortcut:F})),$=z((N,X)=>R({name:"setValueFromField",value:N,context:X})),Q={onClear:E,onAccept:I,onDismiss:B,onCancel:_,onSetToday:D,onOpen:M,onClose:T},U={value:P.draft,onChange:$},ee=f.useMemo(()=>t.cleanValue(b,P.draft),[b,t,P.draft]),q={value:ee,onChange:V,onClose:T,open:y},ue=u({},Q,{value:ee,onChange:V,onSelectShortcut:O,isValid:N=>{const X=o({adapter:p,value:N,props:u({},e,{value:N,timezone:x})});return!t.hasError(X)}});return{open:y,fieldProps:U,viewProps:q,layoutProps:ue,actions:Q}};function Co({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:a,onFocusedViewChange:l}){const i=f.useRef(n),c=f.useRef(o),d=f.useRef(o.includes(n)?n:o[0]),[h,g]=He({name:"useViews",state:"view",controlled:r,default:d.current}),b=f.useRef(s?h:null),[p,y]=He({name:"useViews",state:"focusedView",controlled:a,default:b.current});f.useEffect(()=>{(i.current&&i.current!==n||c.current&&c.current.some(E=>!o.includes(E)))&&(g(o.includes(n)?n:o[0]),c.current=o,i.current=n)},[n,g,h,o]);const v=o.indexOf(h),x=o[v-1]??null,m=o[v+1]??null,C=z((E,I)=>{y(I?E:B=>E===B?null:B),l==null||l(E,I)}),P=z(E=>{C(E,!0),E!==h&&(g(E),t&&t(E))}),k=z(()=>{m&&P(m)}),R=z((E,I,B)=>{const _=I==="finish",D=B?o.indexOf(B){const{onChange:a,open:l,onClose:i}=t,{view:c,views:d,openTo:h,onViewChange:g,viewRenderers:b,timezone:p}=e,y=K(e,ko),{view:v,setView:x,defaultView:m,focusedView:C,setFocusedView:P,setValueAndGoToNextView:k}=Co({view:c,views:d,openTo:h,onChange:a,onViewChange:g,autoFocus:r}),{hasUIView:R,viewModeLookup:E}=f.useMemo(()=>d.reduce((V,O)=>{let $;return b[O]!=null?$="UI":$="field",V.viewModeLookup[O]=$,$==="UI"&&(V.hasUIView=!0),V},{hasUIView:!1,viewModeLookup:{}}),[b,d]),I=f.useMemo(()=>d.reduce((V,O)=>b[O]!=null&&kn(O)?V+1:V,0),[b,d]),B=E[v],_=z(()=>B==="UI"),[D,M]=f.useState(B==="UI"?v:null);return D!==v&&E[v]==="UI"&&M(v),we(()=>{B==="field"&&l&&(i(),setTimeout(()=>{var V,O;(V=s==null?void 0:s.current)==null||V.setSelectedSections(v),(O=s==null?void 0:s.current)==null||O.focusField(v)}))},[v]),we(()=>{if(!l)return;let V=v;B==="field"&&D!=null&&(V=D),V!==m&&E[V]==="UI"&&E[m]==="UI"&&(V=m),V!==v&&x(V),P(V,!0)},[l]),{hasUIView:R,shouldRestoreFocus:_,layoutProps:{views:d,view:D,onViewChange:x},renderCurrentView:()=>{if(D==null)return null;const V=b[D];if(V==null)return null;const O=u({},y,n,t,{views:d,timezone:p,onChange:k,view:D,onViewChange:x,focusedView:C,onFocusedViewChange:P,showViewSwitcher:I>1,timeViewsCount:I});return o?o(b,D,O):V(O)}}};function vt(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Vo=(e,t)=>{const[n,r]=f.useState(vt);return we(()=>{const s=()=>{r(vt())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),ao(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Mo=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=Vo(n.views,o),a=Ae();return{layoutProps:u({},n,t,{isLandscape:s,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},jt=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:a,rendererInterceptor:l,fieldRef:i})=>{const c=wo({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),d=Do({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:i,propsFromPickerValue:c.viewProps,rendererInterceptor:l}),h=Mo({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:d.layoutProps});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:h.layoutProps}};function Wt(e){return le("MuiPickersLayout",e)}const ve=se("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function To(e){return le("MuiDialogActions",e)}se("MuiDialogActions",["root","spacing"]);const Ro=["className","disableSpacing"],Ao=e=>{const{classes:t,disableSpacing:n}=e;return ae({root:["root",!n&&"spacing"]},To,t)},Fo=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>u({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Eo=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,a=K(r,Ro),l=u({},r,{disableSpacing:s}),i=Ao(l);return S.jsx(Fo,u({className:ie(i.root,o),ownerState:l,ref:n},a))}),Lo=["onAccept","onClear","onCancel","onSetToday","actions"];function Oo(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,a=K(e,Lo),l=Ge();if(s==null||s.length===0)return null;const i=s==null?void 0:s.map(c=>{switch(c){case"clear":return S.jsx(je,{onClick:n,children:l.clearButtonLabel},c);case"cancel":return S.jsx(je,{onClick:r,children:l.cancelButtonLabel},c);case"accept":return S.jsx(je,{onClick:t,children:l.okButtonLabel},c);case"today":return S.jsx(je,{onClick:o,children:l.todayButtonLabel},c);default:return null}});return S.jsx(Eo,u({},a,{children:i}))}function $o(e){return le("MuiListItem",e)}const De=se("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Bo=se("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function No(e){return le("MuiListItemSecondaryAction",e)}se("MuiListItemSecondaryAction",["root","disableGutters"]);const jo=["className"],Wo=e=>{const{disableGutters:t,classes:n}=e;return ae({root:["root",t&&"disableGutters"]},No,n)},Uo=G("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>u({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Ut=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=K(r,jo),a=f.useContext(Ue),l=u({},r,{disableGutters:a.disableGutters}),i=Wo(l);return S.jsx(Uo,u({className:ie(i.root,o),ownerState:l,ref:n},s))});Ut.muiName="ListItemSecondaryAction";const Ho=["className"],_o=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],zo=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Go=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:a,disablePadding:l,divider:i,hasSecondaryAction:c,selected:d}=e;return ae({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",i&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},$o,r)},Yo=G("div",{name:"MuiListItem",slot:"Root",overridesResolver:zo})(({theme:e,ownerState:t})=>u({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&u({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Bo.root}`]:{paddingRight:48}},{[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${De.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${De.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${De.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${De.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Qo=G("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zo=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:a=!1,children:l,className:i,component:c,components:d={},componentsProps:h={},ContainerComponent:g="li",ContainerProps:{className:b}={},dense:p=!1,disabled:y=!1,disableGutters:v=!1,disablePadding:x=!1,divider:m=!1,focusVisibleClassName:C,secondaryAction:P,selected:k=!1,slotProps:R={},slots:E={}}=r,I=K(r.ContainerProps,Ho),B=K(r,_o),_=f.useContext(Ue),D=f.useMemo(()=>({dense:p||_.dense||!1,alignItems:o,disableGutters:v}),[o,_.dense,p,v]),M=f.useRef(null);we(()=>{s&&M.current&&M.current.focus()},[s]);const T=f.Children.toArray(l),V=T.length&&Sn(T[T.length-1],["ListItemSecondaryAction"]),O=u({},r,{alignItems:o,autoFocus:s,button:a,dense:D.dense,disabled:y,disableGutters:v,disablePadding:x,divider:m,hasSecondaryAction:V,selected:k}),$=Go(O),Q=me(M,n),U=E.root||d.Root||Yo,ee=R.root||h.root||{},q=u({className:ie($.root,ee.className,i),disabled:y},B);let J=c||"li";return a&&(q.component=c||"div",q.focusVisibleClassName=ie(De.focusVisible,C),J=on),V?(J=!q.component&&!c?"div":J,g==="li"&&(J==="li"?J="div":q.component==="li"&&(q.component="div")),S.jsx(Ue.Provider,{value:D,children:S.jsxs(Qo,u({as:g,className:ie($.container,b),ref:Q,ownerState:O},I,{children:[S.jsx(U,u({},ee,!ut(U)&&{as:J,ownerState:u({},O,ee.ownerState)},q,{children:T})),T.pop()]}))})):S.jsx(Ue.Provider,{value:D,children:S.jsxs(U,u({},ee,{as:J,ref:Q},!ut(U)&&{ownerState:u({},O,ee.ownerState)},q,{children:[T,P&&S.jsx(Ut,{children:P})]}))})}),ga=36,ya=2,Ht=320,Sa=280,_t=336,ba=232,xa=48,Ko=["items","changeImportance","isLandscape","onChange","isValid"],Xo=["getValue"];function qo(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=K(e,Ko);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:i}=l,c=K(l,Xo);const d=i({isValid:o});return u({},c,{label:c.label,onClick:()=>{r(d,n,c)},disabled:!o(d)})});return S.jsx(cn,u({dense:!0,sx:[{maxHeight:_t,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:a.map(l=>S.jsx(Zo,{children:S.jsx(sn,u({},l))},l.id??l.label))}))}function Jo(e){return e.view!==null}const er=e=>{const{classes:t,isLandscape:n}=e;return ae({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Wt,t)},tr=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:a,views:l,onViewChange:i,value:c,onChange:d,onSelectShortcut:h,isValid:g,isLandscape:b,disabled:p,readOnly:y,children:v,slots:x,slotProps:m}=e,C=er(e),P=(x==null?void 0:x.actionBar)??Oo,k=re({elementType:P,externalSlotProps:m==null?void 0:m.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:C.actionBar,ownerState:u({},e,{wrapperVariant:t})}),R=S.jsx(P,u({},k)),E=x==null?void 0:x.toolbar,I=re({elementType:E,externalSlotProps:m==null?void 0:m.toolbar,additionalProps:{isLandscape:b,onChange:d,value:c,view:a,onViewChange:i,views:l,disabled:p,readOnly:y},className:C.toolbar,ownerState:u({},e,{wrapperVariant:t})}),B=Jo(I)&&E?S.jsx(E,u({},I)):null,_=v,D=x==null?void 0:x.tabs,M=a&&D?S.jsx(D,u({view:a,onViewChange:i,className:C.tabs},m==null?void 0:m.tabs)):null,T=(x==null?void 0:x.shortcuts)??qo,V=re({elementType:T,externalSlotProps:m==null?void 0:m.shortcuts,additionalProps:{isValid:g,isLandscape:b,onChange:h},className:C.shortcuts,ownerState:{isValid:g,isLandscape:b,onChange:h,wrapperVariant:t}}),O=a&&T?S.jsx(T,u({},V)):null;return{toolbar:B,content:_,tabs:M,actionBar:R,shortcuts:O}},nr=e=>{const{isLandscape:t,classes:n}=e;return ae({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Wt,n)},or=G("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${ve.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${ve.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${ve.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${ve.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${ve.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${ve.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${ve.shortcuts}`]:{gridColumn:3}}}]}),rr=G("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),zt=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:a,actionBar:l,shortcuts:i}=tr(r),{sx:c,className:d,isLandscape:h,wrapperVariant:g}=r,b=nr(r);return S.jsxs(or,{ref:n,sx:c,className:ie(d,b.root),ownerState:r,children:[h?i:o,h?o:i,S.jsx(rr,{className:b.contentWrapper,children:g==="desktop"?S.jsxs(f.Fragment,{children:[s,a]}):S.jsxs(f.Fragment,{children:[a,s]})}),l]})}),sr=["props","getOpenDialogAriaText"],ar=["ownerState"],ir=["ownerState"],va=e=>{var w;let{props:t,getOpenDialogAriaText:n}=e,r=K(e,sr);const{slots:o,slotProps:s,className:a,sx:l,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:g,timezone:b,name:p,label:y,inputRef:v,readOnly:x,disabled:m,autoFocus:C,localeText:P,reduceAnimations:k}=t,R=ce(),E=f.useRef(null),I=f.useRef(null),B=Be(),_=((w=s==null?void 0:s.toolbar)==null?void 0:w.hidden)??!1,{open:D,actions:M,hasUIView:T,layoutProps:V,renderCurrentView:O,shouldRestoreFocus:$,fieldProps:Q}=jt(u({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),U=o.inputAdornment??Bt,ee=re({elementType:U,externalSlotProps:s==null?void 0:s.inputAdornment,additionalProps:{position:"end"},ownerState:t}),q=K(ee,ar),J=o.openPickerButton??nt,ue=re({elementType:J,externalSlotProps:s==null?void 0:s.openPickerButton,additionalProps:{disabled:m||x,onClick:D?M.onClose:M.onOpen,"aria-label":n(Q.value,R),edge:q.position},ownerState:t}),N=K(ue,ir),X=o.openPickerIcon,F=o.field,j=re({elementType:F,externalSlotProps:s==null?void 0:s.field,additionalProps:u({},Q,_&&{id:B},{readOnly:x,disabled:m,className:a,sx:l,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:g,timezone:b,label:y,name:p,autoFocus:C&&!t.open,focused:D?!0:void 0},v?{inputRef:v}:{}),ownerState:t});T&&(j.InputProps=u({},j.InputProps,{ref:E},!t.disableOpenPicker&&{[`${q.position}Adornment`]:S.jsx(U,u({},q,{children:S.jsx(J,u({},N,{children:S.jsx(X,u({},s==null?void 0:s.openPickerIcon))}))}))}));const L=u({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},j.slots),A=o.layout??zt;let H=B;_&&(y?H=`${B}-label`:H=void 0);const Y=u({},s,{toolbar:u({},s==null?void 0:s.toolbar,{titleId:B}),popper:u({"aria-labelledby":H},s==null?void 0:s.popper)}),ne=me(I,j.unstableFieldRef);return{renderPicker:()=>S.jsxs(Ct,{localeText:P,children:[S.jsx(F,u({},j,{slots:L,slotProps:Y,unstableFieldRef:ne})),S.jsx(bo,u({role:"dialog",placement:"bottom-start",anchorEl:E.current},M,{open:D,slots:o,slotProps:Y,shouldRestoreFocus:$,reduceAnimations:k,children:S.jsx(A,u({},V,Y==null?void 0:Y.layout,{slots:o,slotProps:Y,children:O()}))}))]})}},Pa=xe(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),lr=xe(S.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),cr=xe(S.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Ia=xe(S.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),wa=xe(S.jsxs(f.Fragment,{children:[S.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),S.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Ca=xe(S.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),ka=xe(S.jsxs(f.Fragment,{children:[S.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),S.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),ur=xe(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),dr=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},pr=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=s.exec(t);)n.push({start:a.index,end:s.lastIndex-1});return n},fr=(e,t,n,r,o)=>{switch(r.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,t),o).length,format:o});case"month":return n.fieldMonthPlaceholder({contentType:r.contentType,format:o});case"day":return n.fieldDayPlaceholder({format:o});case"weekDay":return n.fieldWeekDayPlaceholder({contentType:r.contentType,format:o});case"hours":return n.fieldHoursPlaceholder({format:o});case"minutes":return n.fieldMinutesPlaceholder({format:o});case"seconds":return n.fieldSecondsPlaceholder({format:o});case"meridiem":return n.fieldMeridiemPlaceholder({format:o});default:return o}},mr=({utils:e,timezone:t,date:n,shouldRespectLeadingZeros:r,localeText:o,localizedDigits:s,now:a,token:l,startSeparator:i})=>{if(l==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Tt(e,l),d=Lt(e,t,c.contentType,c.type,l),h=r?d:c.contentType==="digit",g=n!=null&&e.isValid(n);let b=g?e.formatByString(n,l):"",p=null;if(h)if(d)p=b===""?e.formatByString(a,l).length:b.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${l} should have a 'maxDigitNumber' property on it's adapter`);p=c.maxLength,g&&(b=rt(At(Ce(b,s),p),s))}return u({},c,{format:l,maxLength:p,value:b,placeholder:fr(e,t,o,c,l),hasLeadingZerosInFormat:d,hasLeadingZerosInInput:h,startSeparator:i,endSeparator:"",modified:!1})},hr=e=>{var b;const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let a="";const l=Object.keys(t.formatTokenMap).sort((p,y)=>y.length-p.length),i=/^([a-zA-Z]+)/,c=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),h=p=>r.find(y=>y.start<=p&&y.end>=p);let g=0;for(;g0;){const m=d.exec(x)[1];x=x.slice(m.length),s.push(mr(u({},e,{now:o,token:m,startSeparator:a}))),a=""}g+=v.length}else{const x=n[g];y&&(p==null?void 0:p.start)===g||(p==null?void 0:p.end)===g||(s.length===0?a+=x:s[s.length-1].endSeparator+=x),g+=1}}return s.length===0&&a.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),s},gr=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let a=s;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),Pt=e=>{let t=dr(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=pr(u({},e,{expandedFormat:t})),r=hr(u({},e,{expandedFormat:t,escapedParts:n}));return gr(u({},e,{sections:r}))},yr=e=>{const t=ce(),n=Ge(),r=Fe(),o=Ae(),{valueManager:s,fieldValueManager:a,valueType:l,validator:i,internalProps:c,internalProps:{value:d,defaultValue:h,referenceDate:g,onChange:b,format:p,formatDensity:y="dense",selectedSections:v,onSelectedSectionsChange:x,shouldRespectLeadingZeros:m=!1,timezone:C,enableAccessibleFieldDOMStructure:P=!1}}=e,{timezone:k,value:R,handleValueChange:E}=at({timezone:C,value:d,defaultValue:h,onChange:b,valueManager:s}),I=f.useMemo(()=>Ln(t),[t]),B=f.useMemo(()=>jn(t,I,k),[t,I,k]),_=f.useCallback((F,j=null)=>a.getSectionsFromValue(t,F,j,L=>Pt({utils:t,timezone:k,localeText:n,localizedDigits:I,format:p,date:L,formatDensity:y,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:P,isRtl:o})),[a,p,n,I,o,m,t,y,k,P]),[D,M]=f.useState(()=>{const F=_(R),j={sections:F,value:R,referenceValue:s.emptyValue,tempValueStrAndroid:null},L=Rn(F),A=s.getInitialReferenceValue({referenceDate:g,value:R,utils:t,props:c,granularity:L,timezone:k});return u({},j,{referenceValue:A})}),[T,V]=He({controlled:v,default:null,name:"useField",state:"selectedSections"}),O=F=>{V(F),x==null||x(F)},$=f.useMemo(()=>Xe(T,D.sections),[T,D.sections]),Q=$==="all"?0:$,U=({value:F,referenceValue:j,sections:L})=>{if(M(H=>u({},H,{sections:L,value:F,referenceValue:j,tempValueStrAndroid:null})),s.areValuesEqual(t,D.value,F))return;const A={validationError:i({adapter:r,value:F,props:u({},c,{value:F,timezone:k})})};E(F,A)},ee=(F,j)=>{const L=[...D.sections];return L[F]=u({},L[F],{value:j,modified:!0}),L},q=()=>{U({value:s.emptyValue,referenceValue:D.referenceValue,sections:_(s.emptyValue)})},J=()=>{if(Q==null)return;const F=D.sections[Q],j=a.getActiveDateManager(t,D,F),A=j.getSections(D.sections).filter(oe=>oe.value!=="").length===(F.value===""?0:1),H=ee(Q,""),Y=A?null:t.getInvalidDate(),ne=j.getNewValuesFromNewActiveDate(Y);U(u({},ne,{sections:H}))},ue=F=>{const j=(H,Y)=>{const ne=t.parse(H,p);if(ne==null||!t.isValid(ne))return null;const oe=Pt({utils:t,timezone:k,localeText:n,localizedDigits:I,format:p,date:ne,formatDensity:y,shouldRespectLeadingZeros:m,enableAccessibleFieldDOMStructure:P,isRtl:o});return gt(t,k,ne,oe,Y,!1)},L=a.parseValueStr(F,D.referenceValue,j),A=a.updateReferenceValue(t,L,D.referenceValue);U({value:L,referenceValue:A,sections:_(L,D.sections)})},N=({activeSection:F,newSectionValue:j,shouldGoToNextSection:L})=>{L&&Qu({},W,oe,{sections:H,tempValueStrAndroid:null}))},X=F=>M(j=>u({},j,{tempValueStrAndroid:F}));return f.useEffect(()=>{const F=_(D.value);M(j=>u({},j,{sections:F}))},[p,t.locale,o]),f.useEffect(()=>{let F;s.areValuesEqual(t,D.value,R)?F=s.getTimezone(t,D.value)!==s.getTimezone(t,R):F=!0,F&&M(j=>u({},j,{value:R,referenceValue:a.updateReferenceValue(t,R,j.referenceValue),sections:_(R)}))},[R]),{state:D,activeSectionIndex:Q,parsedSelectedSections:$,setSelectedSections:O,clearValue:q,clearActiveSection:J,updateSectionValue:N,updateValueFromValueStr:ue,setTempAndroidValueStr:X,getSectionsFromValue:_,sectionsValueBoundaries:B,localizedDigits:I,timezone:k}},Sr=5e3,ke=e=>e.saveQuery!=null,br=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const a=ce(),[l,i]=f.useState(null),c=z(()=>i(null));f.useEffect(()=>{var p;l!=null&&((p=e[l.sectionIndex])==null?void 0:p.type)!==l.sectionType&&c()},[e,l,c]),f.useEffect(()=>{if(l!=null){const p=setTimeout(()=>c(),Sr);return()=>{clearTimeout(p)}}return()=>{}},[l,c]);const d=({keyPressed:p,sectionIndex:y},v,x)=>{const m=p.toLowerCase(),C=e[y];if(l!=null&&(!x||x(l.value))&&l.sectionIndex===y){const k=`${l.value}${m}`,R=v(k,C);if(!ke(R))return i({sectionIndex:y,value:k,sectionType:C.type}),R}const P=v(m,C);return ke(P)&&!P.saveQuery?(c(),null):(i({sectionIndex:y,value:m,sectionType:C.type}),ke(P)?null:P)},h=p=>{const y=(m,C,P)=>{const k=C.filter(R=>R.toLowerCase().startsWith(P));return k.length===0?{saveQuery:!1}:{sectionValue:k[0],shouldGoToNextSection:k.length===1}},v=(m,C,P,k)=>{const R=E=>Rt(a,s,C.type,E);if(C.contentType==="letter")return y(C.format,R(C.format),m);if(P&&k!=null&&Tt(a,P).contentType==="letter"){const E=R(P),I=y(P,E,m);return ke(I)?{saveQuery:!1}:u({},I,{sectionValue:k(I.sectionValue,E)})}return{saveQuery:!1}};return d(p,(m,C)=>{switch(C.type){case"month":{const P=k=>mt(a,k,a.formats.month,C.format);return v(m,C,a.formats.month,P)}case"weekDay":{const P=(k,R)=>R.indexOf(k).toString();return v(m,C,a.formats.weekday,P)}case"meridiem":return v(m,C);default:return{saveQuery:!1}}})},g=p=>{const y=(x,m)=>{const C=Ce(x,r),P=Number(C),k=n[m.type]({currentDate:null,format:m.format,contentType:m.contentType});if(P>k.maximum)return{saveQuery:!1};if(Pk.maximum||C.length===k.maximum.toString().length;return{sectionValue:Ft(a,P,k,r,m),shouldGoToNextSection:R}};return d(p,(x,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return y(x,m);if(m.type==="month"){const C=Lt(a,s,"digit","month","MM"),P=y(x,{type:m.type,format:"MM",hasLeadingZerosInFormat:C,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ke(P))return P;const k=mt(a,P.sectionValue,"MM",m.format);return u({},P,{sectionValue:k})}if(m.type==="weekDay"){const C=y(x,m);if(ke(C))return C;const P=ze(a,s,m.format)[Number(C.sectionValue)-1];return u({},C,{sectionValue:P})}return{saveQuery:!1}},x=>ft(x,r))};return{applyCharacterEditing:z(p=>{const y=e[p.sectionIndex],x=ft(p.keyPressed,r)?g(u({},p,{keyPressed:rt(p.keyPressed,r)})):h(p);if(x==null){o(null);return}t({activeSection:y,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:c}},xr=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:a,onInput:l,onPaste:i,focused:c,autoFocus:d=!1},fieldValueManager:h,applyCharacterEditing:g,resetCharacterQuery:b,setSelectedSections:p,parsedSelectedSections:y,state:v,clearActiveSection:x,clearValue:m,updateSectionValue:C,updateValueFromValueStr:P,sectionOrder:k,areAllSectionsEmpty:R,sectionsValueBoundaries:E}=e,I=f.useRef(null),B=me(r,I),_=Ge(),D=ce(),M=Be(),[T,V]=f.useState(!1),O=f.useMemo(()=>({syncSelectionToDOM:()=>{if(!I.current)return;const w=document.getSelection();if(!w)return;if(y==null){w.rangeCount>0&&I.current.getRoot().contains(w.getRangeAt(0).startContainer)&&w.removeAllRanges(),T&&I.current.getRoot().blur();return}if(!I.current.getRoot().contains(pe(document)))return;const W=new window.Range;let Z;y==="all"?Z=I.current.getRoot():v.sections[y].type==="empty"?Z=I.current.getSectionContainer(y):Z=I.current.getSectionContent(y),W.selectNodeContents(Z),Z.focus(),w.removeAllRanges(),w.addRange(W)},getActiveSectionIndexFromDOM:()=>{const w=pe(document);return!w||!I.current||!I.current.getRoot().contains(w)?null:I.current.getSectionIndexFromDOMElement(w)},focusField:(w=0)=>{if(!I.current)return;const W=Xe(w,v.sections);V(!0),I.current.getSectionContent(W).focus()},setSelectedSections:w=>{if(!I.current)return;const W=Xe(w,v.sections);V((W==="all"?0:W)!==null),p(w)},isFieldFocused:()=>{const w=pe(document);return!!I.current&&I.current.getRoot().contains(w)}}),[y,p,v.sections,T]),$=z(w=>{if(!I.current)return;const W=v.sections[w];I.current.getSectionContent(w).innerHTML=W.value||W.placeholder,O.syncSelectionToDOM()}),Q=z((w,...W)=>{w.isDefaultPrevented()||!I.current||(V(!0),s==null||s(w,...W),y==="all"?setTimeout(()=>{const Z=document.getSelection().getRangeAt(0).startOffset;if(Z===0){p(k.startIndex);return}let te=0,de=0;for(;de{if(l==null||l(w),!I.current||y!=="all")return;const Z=w.target.textContent??"";I.current.getRoot().innerHTML=v.sections.map(te=>`${te.startSeparator}${te.value||te.placeholder}${te.endSeparator}`).join(""),O.syncSelectionToDOM(),Z.length===0||Z.charCodeAt(0)===10?(b(),m(),p("all")):Z.length>1?P(Z):g({keyPressed:Z,sectionIndex:0})}),ee=z(w=>{if(i==null||i(w),n||y!=="all"){w.preventDefault();return}const W=w.clipboardData.getData("text");w.preventDefault(),b(),P(W)}),q=z((...w)=>{if(a==null||a(...w),T||!I.current)return;V(!0),I.current.getSectionIndexFromDOMElement(pe(document))!=null||p(k.startIndex)}),J=z((...w)=>{o==null||o(...w),setTimeout(()=>{if(!I.current)return;const W=pe(document);!I.current.getRoot().contains(W)&&(V(!1),p(null))})}),ue=z(w=>W=>{W.isDefaultPrevented()||p(w)}),N=z(w=>{w.preventDefault()}),X=z(w=>()=>{p(w)}),F=z(w=>{if(w.preventDefault(),n||t||typeof y!="number")return;const W=v.sections[y],Z=w.clipboardData.getData("text"),te=/^[a-zA-Z]+$/.test(Z),de=/^[0-9]+$/.test(Z),he=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Z);W.contentType==="letter"&&te||W.contentType==="digit"&&de||W.contentType==="digit-with-letter"&&he?(b(),C({activeSection:W,newSectionValue:Z,shouldGoToNextSection:!0})):!te&&!de&&(b(),P(Z))}),j=z(w=>{w.preventDefault(),w.dataTransfer.dropEffect="none"}),L=z(w=>{if(!I.current)return;const W=w.target,Z=W.textContent??"",te=I.current.getSectionIndexFromDOMElement(W),de=v.sections[te];if(n||!I.current){$(te);return}if(Z.length===0){if(de.value===""){$(te);return}const he=w.nativeEvent.inputType;if(he==="insertParagraph"||he==="insertLineBreak"){$(te);return}b(),x();return}g({keyPressed:Z,sectionIndex:te}),$(te)});we(()=>{if(!(!T||!I.current)){if(y==="all")I.current.getRoot().focus();else if(typeof y=="number"){const w=I.current.getSectionContent(y);w&&w.focus()}}},[y,T]);const A=f.useMemo(()=>v.sections.reduce((w,W)=>(w[W.type]=E[W.type]({currentDate:null,contentType:W.contentType,format:W.format}),w),{}),[E,v.sections]),H=y==="all",Y=f.useMemo(()=>v.sections.map((w,W)=>{const Z=!H&&!t&&!n;return{container:{"data-sectionindex":W,onClick:ue(W)},content:{tabIndex:H||W>0?-1:0,contentEditable:!H&&!t&&!n,role:"spinbutton",id:`${M}-${w.type}`,"aria-labelledby":`${M}-${w.type}`,"aria-readonly":n,"aria-valuenow":zn(w,D),"aria-valuemin":A[w.type].minimum,"aria-valuemax":A[w.type].maximum,"aria-valuetext":w.value?_n(w,D):_.empty,"aria-label":_[w.type],"aria-disabled":t,spellCheck:Z?!1:void 0,autoCapitalize:Z?"off":void 0,autoCorrect:Z?"off":void 0,[parseInt(f.version,10)>=17?"enterKeyHint":"enterkeyhint"]:Z?"next":void 0,children:w.value||w.placeholder,onInput:L,onPaste:F,onFocus:X(W),onDragOver:j,onMouseUp:N,inputMode:w.contentType==="letter"?"text":"numeric"},before:{children:w.startSeparator},after:{children:w.endSeparator}}}),[v.sections,X,F,j,L,ue,N,t,n,H,_,D,A,M]),ne=z(w=>{P(w.target.value)}),oe=f.useMemo(()=>R?"":h.getV7HiddenInputValueFromSections(v.sections),[R,v.sections,h]);return f.useEffect(()=>{if(I.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.","","If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(` +`));d&&I.current&&I.current.getSectionContent(k.startIndex).focus()},[]),{interactions:O,returnedValue:{autoFocus:d,readOnly:n,focused:c??T,sectionListRef:B,onBlur:J,onClick:Q,onFocus:q,onInput:U,onPaste:ee,enableAccessibleFieldDOMStructure:!0,elements:Y,tabIndex:y===0?-1:0,contentEditable:H,value:oe,onChange:ne,areAllSectionsEmpty:R}}},Ve=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),vr=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let a=0;a{const t=Ae(),n=f.useRef(),r=f.useRef(),{forwardedProps:{onFocus:o,onClick:s,onPaste:a,onBlur:l,inputRef:i,placeholder:c},internalProps:{readOnly:d=!1,disabled:h=!1},parsedSelectedSections:g,activeSectionIndex:b,state:p,fieldValueManager:y,valueManager:v,applyCharacterEditing:x,resetCharacterQuery:m,updateSectionValue:C,updateValueFromValueStr:P,clearActiveSection:k,clearValue:R,setTempAndroidValueStr:E,setSelectedSections:I,getSectionsFromValue:B,areAllSectionsEmpty:_,localizedDigits:D}=e,M=f.useRef(null),T=me(i,M),V=f.useMemo(()=>vr(p.sections,D,t),[p.sections,D,t]),O=f.useMemo(()=>({syncSelectionToDOM:()=>{if(!M.current)return;if(g==null){M.current.scrollLeft&&(M.current.scrollLeft=0);return}if(M.current!==pe(document))return;const L=M.current.scrollTop;if(g==="all")M.current.select();else{const A=V[g],H=A.type==="empty"?A.startInInput-A.startSeparator.length:A.startInInput,Y=A.type==="empty"?A.endInInput+A.endSeparator.length:A.endInInput;(H!==M.current.selectionStart||Y!==M.current.selectionEnd)&&M.current===pe(document)&&M.current.setSelectionRange(H,Y),clearTimeout(r.current),r.current=setTimeout(()=>{M.current&&M.current===pe(document)&&M.current.selectionStart===M.current.selectionEnd&&(M.current.selectionStart!==H||M.current.selectionEnd!==Y)&&O.syncSelectionToDOM()})}M.current.scrollTop=L},getActiveSectionIndexFromDOM:()=>{const L=M.current.selectionStart??0,A=M.current.selectionEnd??0;if(L===0&&A===0)return null;const H=L<=V[0].startInInput?1:V.findIndex(Y=>Y.startInInput-Y.startSeparator.length>L);return H===-1?V.length-1:H-1},focusField:(L=0)=>{var A;(A=M.current)==null||A.focus(),I(L)},setSelectedSections:L=>I(L),isFieldFocused:()=>M.current===pe(document)}),[M,g,V,I]),$=()=>{const L=M.current.selectionStart??0;let A;L<=V[0].startInInput||L>=V[V.length-1].endInInput?A=1:A=V.findIndex(Y=>Y.startInInput-Y.startSeparator.length>L);const H=A===-1?V.length-1:A-1;I(H)},Q=z((...L)=>{o==null||o(...L);const A=M.current;clearTimeout(n.current),n.current=setTimeout(()=>{!A||A!==M.current||b==null&&(A.value.length&&Number(A.selectionEnd)-Number(A.selectionStart)===A.value.length?I("all"):$())})}),U=z((L,...A)=>{L.isDefaultPrevented()||(s==null||s(L,...A),$())}),ee=z(L=>{if(a==null||a(L),L.preventDefault(),d||h)return;const A=L.clipboardData.getData("text");if(typeof g=="number"){const H=p.sections[g],Y=/^[a-zA-Z]+$/.test(A),ne=/^[0-9]+$/.test(A),oe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(A);if(H.contentType==="letter"&&Y||H.contentType==="digit"&&ne||H.contentType==="digit-with-letter"&&oe){m(),C({activeSection:H,newSectionValue:A,shouldGoToNextSection:!0});return}if(Y||ne)return}m(),P(A)}),q=z((...L)=>{l==null||l(...L),I(null)}),J=z(L=>{if(d)return;const A=L.target.value;if(A===""){m(),R();return}const H=L.nativeEvent.data,Y=H&&H.length>1,ne=Y?H:A,oe=Ve(ne);if(b==null||Y){P(Y?H:oe);return}let w;if(g==="all"&&oe.length===1)w=oe;else{const W=Ve(y.getV6InputValueFromSections(V,D,t));let Z=-1,te=-1;for(let be=0;bede.end)return;const ct=oe.length-W.length+de.end-Ve(de.endSeparator||"").length;w=oe.slice(de.start+Ve(de.startSeparator||"").length,ct)}if(w.length===0){Un()&&E(ne),m(),k();return}x({keyPressed:w,sectionIndex:b})}),ue=f.useMemo(()=>c!==void 0?c:y.getV6InputValueFromSections(B(v.emptyValue),D,t),[c,y,B,v.emptyValue,D,t]),N=f.useMemo(()=>p.tempValueStrAndroid??y.getV6InputValueFromSections(p.sections,D,t),[p.sections,y,p.tempValueStrAndroid,D,t]);f.useEffect(()=>(M.current&&M.current===pe(document)&&I("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const X=f.useMemo(()=>b==null||p.sections[b].contentType==="letter"?"text":"numeric",[b,p.sections]),j=!(M.current&&M.current===pe(document))&&_;return{interactions:O,returnedValue:{readOnly:d,onBlur:q,onClick:U,onFocus:Q,onPaste:ee,inputRef:T,enableAccessibleFieldDOMStructure:!1,placeholder:ue,inputMode:X,autoComplete:"off",value:j?"":N,onChange:J}}},Da=e=>{const t=ce(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:i,error:c,clearable:d,onClear:h},fieldValueManager:g,valueManager:b,validator:p}=e,y=Ae(),v=yr(e),{state:x,activeSectionIndex:m,parsedSelectedSections:C,setSelectedSections:P,clearValue:k,clearActiveSection:R,updateSectionValue:E,setTempAndroidValueStr:I,sectionsValueBoundaries:B,localizedDigits:_,timezone:D}=v,M=br({sections:x.sections,updateSectionValue:E,sectionsValueBoundaries:B,localizedDigits:_,setTempAndroidValueStr:I,timezone:D}),{resetCharacterQuery:T}=M,V=b.areValuesEqual(t,x.value,b.emptyValue),O=s?xr:Pr,$=f.useMemo(()=>Hn(x.sections,y&&!s),[x.sections,y,s]),{returnedValue:Q,interactions:U}=O(u({},e,v,M,{areAllSectionsEmpty:V,sectionOrder:$})),ee=z(F=>{if(i==null||i(F),!a)switch(!0){case((F.ctrlKey||F.metaKey)&&F.key.toLowerCase()==="a"&&!F.shiftKey&&!F.altKey):{F.preventDefault(),P("all");break}case F.key==="ArrowRight":{if(F.preventDefault(),C==null)P($.startIndex);else if(C==="all")P($.endIndex);else{const j=$.neighbors[C].rightIndex;j!==null&&P(j)}break}case F.key==="ArrowLeft":{if(F.preventDefault(),C==null)P($.endIndex);else if(C==="all")P($.startIndex);else{const j=$.neighbors[C].leftIndex;j!==null&&P(j)}break}case F.key==="Delete":{if(F.preventDefault(),l)break;C==null||C==="all"?k():R(),T();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(F.key):{if(F.preventDefault(),l||m==null)break;const j=x.sections[m],L=g.getActiveDateManager(t,x,j),A=On(t,D,j,F.key,B,_,L.date,{minutesStep:o});E({activeSection:j,newSectionValue:A,shouldGoToNextSection:!1});break}}});we(()=>{U.syncSelectionToDOM()});const q=Nt(u({},n,{value:x.value,timezone:D}),p,b.isSameError,b.defaultErrorState),J=f.useMemo(()=>c!==void 0?c:b.hasError(q),[b,q,c]);f.useEffect(()=>{!J&&m==null&&T()},[x.referenceValue,m,J]),f.useEffect(()=>{x.tempValueStrAndroid!=null&&m!=null&&(T(),R())},[x.sections]),f.useImperativeHandle(r,()=>({getSections:()=>x.sections,getActiveSectionIndex:U.getActiveSectionIndexFromDOM,setSelectedSections:U.setSelectedSections,focusField:U.focusField,isFieldFocused:U.isFieldFocused}));const ue=z((F,...j)=>{F.preventDefault(),h==null||h(F,...j),k(),U.isFieldFocused()?P($.startIndex):U.focusField(0)}),N={onKeyDown:ee,onClear:ue,error:J,clearable:!!(d&&!V&&!l&&!a)},X={disabled:a,readOnly:l};return u({},e.forwardedProps,N,X,Q)},qe=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Je=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Gt=["minDateTime","maxDateTime"],Ir=[...qe,...Je,...Gt],Va=e=>Ir.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),wr=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],Ma=(e,t)=>{const n=u({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return wr.forEach(o),t==="date"?qe.forEach(o):t==="time"?Je.forEach(o):t==="date-time"&&(qe.forEach(o),Je.forEach(o),Gt.forEach(o)),{forwardedProps:n,internalProps:r}},Ta=e=>{const t=ce(),n=$t();return u({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:_e(t,e.minDate,n.minDate),maxDate:_e(t,e.maxDate,n.maxDate)})},Ra=e=>{const t=ce(),r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.fullTime12h:t.formats.fullTime24h;return u({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r})},Aa=e=>{const t=ce(),n=$t(),o=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h;return u({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??o,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:_e(t,e.minDateTime??e.minDate,n.minDate),maxDate:_e(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime})},Cr=["clearable","onClear","InputProps","sx","slots","slotProps"],kr=["ownerState"],Fa=e=>{const t=Ge(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:a,slotProps:l}=e,i=K(e,Cr),c=(a==null?void 0:a.clearButton)??nt,d=re({elementType:c,externalSlotProps:l==null?void 0:l.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),h=K(d,kr),g=(a==null?void 0:a.clearIcon)??ur,b=re({elementType:g,externalSlotProps:l==null?void 0:l.clearIcon,ownerState:{}});return u({},i,{InputProps:u({},o,{endAdornment:S.jsxs(f.Fragment,{children:[n&&S.jsx(Bt,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:S.jsx(c,u({},h,{onClick:r,children:S.jsx(g,u({fontSize:"small"},b))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})};function Dr(e){return le("MuiPickersTextField",e)}se("MuiPickersTextField",["root","focused","disabled","error","required"]);function Vr(e){return le("MuiPickersInputBase",e)}const Te=se("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function Mr(e){return le("MuiPickersSectionList",e)}const Le=se("MuiPickersSectionList",["root","section","sectionContent"]),Tr=["slots","slotProps","elements","sectionListRef"],Yt=G("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Qt=G("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Zt=G("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Kt=G("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),Rr=e=>{const{classes:t}=e;return ae({root:["root"],section:["section"],sectionContent:["sectionContent"]},Mr,t)};function Ar(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=(t==null?void 0:t.section)??Qt,a=re({elementType:s,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),l=(t==null?void 0:t.sectionContent)??Kt,i=re({elementType:l,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=(t==null?void 0:t.sectionSeparator)??Zt,d=re({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),h=re({elementType:c,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return S.jsxs(s,u({},a,{children:[S.jsx(c,u({},d)),S.jsx(l,u({},i)),S.jsx(c,u({},h))]}))}const Fr=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:a,sectionListRef:l}=r,i=K(r,Tr),c=Rr(r),d=f.useRef(null),h=me(n,d),g=y=>{if(!d.current)throw new Error(`MUI X: Cannot call sectionListRef.${y} before the mount of the component.`);return d.current};f.useImperativeHandle(l,()=>({getRoot(){return g("getRoot")},getSectionContainer(y){return g("getSectionContainer").querySelector(`.${Le.section}[data-sectionindex="${y}"]`)},getSectionContent(y){return g("getSectionContent").querySelector(`.${Le.section}[data-sectionindex="${y}"] .${Le.sectionContent}`)},getSectionIndexFromDOMElement(y){const v=g("getSectionIndexFromDOMElement");if(y==null||!v.contains(y))return null;let x=null;return y.classList.contains(Le.section)?x=y:y.classList.contains(Le.sectionContent)&&(x=y.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const b=(o==null?void 0:o.root)??Yt,p=re({elementType:b,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:i,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return S.jsx(b,u({},p,{children:p.contentEditable?a.map(({content:y,before:v,after:x})=>`${v.children}${y.children}${x.children}`).join(""):S.jsx(f.Fragment,{children:a.map((y,v)=>S.jsx(Ar,{slots:o,slotProps:s,element:y,classes:c},v))})}))}),Er=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],Lr=e=>Math.round(e*1e5)/1e5,Ye=G("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>u({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${Lr(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),it=G(Yt,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),Or=G(Qt,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),$r=G(Kt,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Br=G(Zt,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Nr=G("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(u({},Pn)),jr=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:a,color:l,size:i,endAdornment:c,startAdornment:d}=e,h={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",s&&"fullWidth",`color${ye(l)}`,i==="small"&&"inputSizeSmall",!!d&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return ae(h,Vr,o)},lt=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:a,onChange:l,id:i,endAdornment:c,startAdornment:d,renderSuffix:h,slots:g,slotProps:b,contentEditable:p,tabIndex:y,onInput:v,onPaste:x,onKeyDown:m,name:C,readOnly:P,inputProps:k,inputRef:R,sectionListRef:E}=r,I=K(r,Er),B=f.useRef(null),_=me(n,B),D=me(k==null?void 0:k.ref,R),M=Ae(),T=Ne();if(!T)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const V=q=>{var J;if(T.disabled){q.stopPropagation();return}(J=T.onFocus)==null||J.call(T,q)};f.useEffect(()=>{T&&T.setAdornedStart(!!d)},[T,d]),f.useEffect(()=>{T&&(s?T.onEmpty():T.onFilled())},[T,s]);const O=u({},r,T,{isRtl:M}),$=jr(O),Q=(g==null?void 0:g.root)||Ye,U=re({elementType:Q,externalSlotProps:b==null?void 0:b.root,externalForwardedProps:I,additionalProps:{"aria-invalid":T.error,ref:_},className:$.root,ownerState:O}),ee=(g==null?void 0:g.input)||it;return S.jsxs(Q,u({},U,{children:[d,S.jsx(Fr,{sectionListRef:E,elements:o,contentEditable:p,tabIndex:y,className:$.sectionsContainer,onFocus:V,onBlur:T.onBlur,onInput:v,onPaste:x,onKeyDown:m,slots:{root:ee,section:Or,sectionContent:$r,sectionSeparator:Br},slotProps:{root:{ownerState:O},sectionContent:{className:Te.sectionContent},sectionSeparator:({position:q})=>({className:q==="before"?Te.sectionBefore:Te.sectionAfter})}}),c,h?h(u({},T)):null,S.jsx(Nr,u({name:C,className:$.input,value:a,onChange:l,id:i,"aria-hidden":"true",tabIndex:-1,readOnly:P,required:T.required,disabled:T.disabled},k,{ref:D}))]}))});function Wr(e){return le("MuiPickersOutlinedInput",e)}const fe=u({},Te,se("MuiPickersOutlinedInput",["root","notchedOutline","input"])),Ur=["children","className","label","notched","shrink"],Hr=G("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),It=G("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),_r=G("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function zr(e){const{className:t,label:n}=e,r=K(e,Ur),o=n!=null&&n!=="",s=u({},e,{withLabel:o});return S.jsx(Hr,u({"aria-hidden":!0,className:t},r,{ownerState:s,children:S.jsx(_r,{ownerState:s,children:o?S.jsx(It,{children:n}):S.jsx(It,{className:"notranslate",children:"​"})})}))}const Gr=["label","autoFocus","ownerState","notched"],Yr=G(Ye,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${fe.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${fe.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${fe.focused} .${fe.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${fe.disabled}`]:{[`& .${fe.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${fe.error} .${fe.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${fe.focused}:not(.${fe.error}) .${fe.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Qr=G(it,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Zr=e=>{const{classes:t}=e,r=ae({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wr,t);return u({},t,r)},Xt=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:a}=r,l=K(r,Gr),i=Ne(),c=u({},r,s,i,{color:(i==null?void 0:i.color)||"primary"}),d=Zr(c);return S.jsx(lt,u({slots:{root:Yr,input:Qr},renderSuffix:h=>S.jsx(zr,{shrink:!!(a||h.adornedStart||h.focused||h.filled),notched:!!(a||h.adornedStart||h.focused||h.filled),className:d.notchedOutline,label:o!=null&&o!==""&&(i!=null&&i.required)?S.jsxs(f.Fragment,{children:[o," ","*"]}):o,ownerState:c})},l,{label:o,classes:d,ref:n}))});Xt.muiName="Input";function Kr(e){return le("MuiPickersFilledInput",e)}const Pe=u({},Te,se("MuiPickersFilledInput",["root","underline","input"])),Xr=["label","autoFocus","disableUnderline","ownerState"],qr=G(Ye,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yn(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Pe.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Pe.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Pe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Pe.disabled}, .${Pe.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pe.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),Jr=G(it,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),es=e=>{const{classes:t,disableUnderline:n}=e,o=ae({root:["root",!n&&"underline"],input:["input"]},Kr,t);return u({},t,o)},qt=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:a}=r,l=K(r,Xr),i=Ne(),c=u({},r,a,i,{color:(i==null?void 0:i.color)||"primary"}),d=es(c);return S.jsx(lt,u({slots:{root:qr,input:Jr},slotProps:{root:{disableUnderline:s}}},l,{label:o,classes:d,ref:n}))});qt.muiName="Input";function ts(e){return le("MuiPickersFilledInput",e)}const Oe=u({},Te,se("MuiPickersInput",["root","input"])),ns=["label","autoFocus","disableUnderline","ownerState"],os=G(Ye,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Oe.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Oe.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Oe.disabled}, .${Oe.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Oe.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),rs=e=>{const{classes:t,disableUnderline:n}=e,o=ae({root:["root",!n&&"underline"],input:["input"]},ts,t);return u({},t,o)},Jt=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:a}=r,l=K(r,ns),i=Ne(),c=u({},r,a,i,{disableUnderline:s,color:(i==null?void 0:i.color)||"primary"}),d=rs(c);return S.jsx(lt,u({slots:{root:os}},l,{label:o,classes:d,ref:n}))});Jt.muiName="Input";const ss=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],as={standard:Jt,filled:qt,outlined:Xt},is=G(mn,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ls=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return ae({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},Dr,r)},Ea=f.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:a,color:l="primary",disabled:i=!1,error:c=!1,variant:d="outlined",required:h=!1,InputProps:g,inputProps:b,inputRef:p,sectionListRef:y,elements:v,areAllSectionsEmpty:x,onClick:m,onKeyDown:C,onKeyUp:P,onPaste:k,onInput:R,endAdornment:E,startAdornment:I,tabIndex:B,contentEditable:_,focused:D,value:M,onChange:T,fullWidth:V,id:O,name:$,helperText:Q,FormHelperTextProps:U,label:ee,InputLabelProps:q}=r,J=K(r,ss),ue=f.useRef(null),N=me(n,ue),X=Be(O),F=Q&&X?`${X}-helper-text`:void 0,j=ee&&X?`${X}-label`:void 0,L=u({},r,{color:l,disabled:i,error:c,focused:D,required:h,variant:d}),A=ls(L),H=as[d];return S.jsxs(is,u({className:ie(A.root,a),ref:N,focused:D,onFocus:o,onBlur:s,disabled:i,variant:d,error:c,color:l,fullWidth:V,required:h,ownerState:L},J,{children:[S.jsx(hn,u({htmlFor:X,id:j},q,{children:ee})),S.jsx(H,u({elements:v,areAllSectionsEmpty:x,onClick:m,onKeyDown:C,onKeyUp:P,onInput:R,onPaste:k,endAdornment:E,startAdornment:I,tabIndex:B,contentEditable:_,value:M,onChange:T,id:X,fullWidth:V,inputProps:b,inputRef:p,sectionListRef:y,label:ee,name:$,role:"group","aria-labelledby":j},g)),Q&&S.jsx(gn,u({id:F},U,{children:Q}))]}))}),cs=["enableAccessibleFieldDOMStructure"],us=["InputProps","readOnly"],ds=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],La=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=K(e,cs);if(t){const{InputProps:h,readOnly:g}=n,b=K(n,us);return u({},b,{InputProps:u({},h??{},{readOnly:g})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:a,InputProps:l,inputProps:i,inputRef:c}=n,d=K(n,ds);return u({},d,{InputProps:u({},l??{},{readOnly:a}),inputProps:u({},i??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})};function ps(e){return le("MuiPickersArrowSwitcher",e)}se("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const fs=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],ms=["ownerState"],hs=["ownerState"],gs=G("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ys=G("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),wt=G(nt,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Ss=e=>{const{classes:t}=e;return ae({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},ps,t)},Oa=f.forwardRef(function(t,n){const r=Ae(),o=Se({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:a,slots:l,slotProps:i,isNextDisabled:c,isNextHidden:d,onGoToNext:h,nextLabel:g,isPreviousDisabled:b,isPreviousHidden:p,onGoToPrevious:y,previousLabel:v,labelId:x}=o,m=K(o,fs),C=o,P=Ss(C),k={isDisabled:c,isHidden:d,goTo:h,label:g},R={isDisabled:b,isHidden:p,goTo:y,label:v},E=(l==null?void 0:l.previousIconButton)??wt,I=re({elementType:E,externalSlotProps:i==null?void 0:i.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:u({},C,{hidden:R.isHidden}),className:ie(P.button,P.previousIconButton)}),B=(l==null?void 0:l.nextIconButton)??wt,_=re({elementType:B,externalSlotProps:i==null?void 0:i.nextIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"start",onClick:k.goTo},ownerState:u({},C,{hidden:k.isHidden}),className:ie(P.button,P.nextIconButton)}),D=(l==null?void 0:l.leftArrowIcon)??lr,M=re({elementType:D,externalSlotProps:i==null?void 0:i.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:P.leftArrowIcon}),T=K(M,ms),V=(l==null?void 0:l.rightArrowIcon)??cr,O=re({elementType:V,externalSlotProps:i==null?void 0:i.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:C,className:P.rightArrowIcon}),$=K(O,hs);return S.jsxs(gs,u({ref:n,className:ie(P.root,a),ownerState:C},m,{children:[S.jsx(E,u({},I,{children:r?S.jsx(V,u({},$)):S.jsx(D,u({},T))})),s?S.jsx(et,{variant:"subtitle1",component:"span",id:x,children:s}):S.jsx(ys,{className:P.spacer,ownerState:C}),S.jsx(B,u({},_,{children:r?S.jsx(D,u({},T)):S.jsx(V,u({},$))}))]}))});function $a(e,{disableFuture:t,maxDate:n,timezone:r}){const o=ce();return f.useMemo(()=>{const s=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(a,e)},[t,n,e,o,r])}function Ba(e,{disablePast:t,minDate:n,timezone:r}){const o=ce();return f.useMemo(()=>{const s=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(a,e)},[t,n,e,o,r])}function Na(e,t,n,r){const o=ce(),s=Dn(e,o),a=f.useCallback(l=>{const i=e==null?null:Mn(e,l,!!t,o);n(i,r??"partial")},[t,e,n,r,o]);return{meridiemMode:s,handleMeridiemChange:a}}const ja=G("div")({overflow:"hidden",width:Ht,maxHeight:_t,display:"flex",flexDirection:"column",margin:"0 auto"});function bs(e){return le("MuiDialogContent",e)}se("MuiDialogContent",["root","dividers"]);const xs=se("MuiDialogTitle",["root"]),vs=["className","dividers"],Ps=e=>{const{classes:t,dividers:n}=e;return ae({root:["root",n&&"dividers"]},bs,t)},Is=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>u({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${xs.root} + &`]:{paddingTop:0}})),ws=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,a=K(r,vs),l=u({},r,{dividers:s}),i=Ps(l);return S.jsx(Is,u({className:ie(i.root,o),ownerState:l,ref:n},a))});function Cs(e){return le("MuiDialog",e)}const $e=se("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ks=f.createContext({}),Ds=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Vs=G(un,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Ms=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ye(n)}`],paper:["paper",`paperScroll${ye(n)}`,`paperWidth${ye(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return ae(a,Cs,t)},Ts=G(dn,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Rs=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ye(n.scroll)}`]]}})(({ownerState:e})=>u({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),As=G(tt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ye(n.scroll)}`],t[`paperWidth${ye(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>u({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${$e.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${$e.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${$e.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Fs=f.forwardRef(function(t,n){const r=Re({props:t,name:"MuiDialog"}),o=pn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:i,BackdropProps:c,children:d,className:h,disableEscapeKeyDown:g=!1,fullScreen:b=!1,fullWidth:p=!1,maxWidth:y="sm",onBackdropClick:v,onClick:x,onClose:m,open:C,PaperComponent:P=tt,PaperProps:k={},scroll:R="paper",TransitionComponent:E=ot,transitionDuration:I=s,TransitionProps:B}=r,_=K(r,Ds),D=u({},r,{disableEscapeKeyDown:g,fullScreen:b,fullWidth:p,maxWidth:y,scroll:R}),M=Ms(D),T=f.useRef(),V=U=>{T.current=U.target===U.currentTarget},O=U=>{x&&x(U),T.current&&(T.current=null,v&&v(U),m&&m(U,"backdropClick"))},$=Be(l),Q=f.useMemo(()=>({titleId:$}),[$]);return S.jsx(Ts,u({className:ie(M.root,h),closeAfterTransition:!0,components:{Backdrop:Vs},componentsProps:{backdrop:u({transitionDuration:I,as:i},c)},disableEscapeKeyDown:g,onClose:m,open:C,ref:n,onClick:O,ownerState:D},_,{children:S.jsx(E,u({appear:!0,in:C,timeout:I,role:"presentation"},B,{children:S.jsx(Rs,{className:ie(M.container),onMouseDown:V,ownerState:D,children:S.jsx(As,u({as:P,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":$},k,{className:ie(M.paper,k.className),ownerState:D,children:S.jsx(ks.Provider,{value:Q,children:d})}))})}))}))}),Es=G(Fs)({[`& .${$e.container}`]:{outline:0},[`& .${$e.paper}`]:{outline:0,minWidth:Ht}}),Ls=G(ws)({"&:first-of-type":{padding:0}});function Os(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,a=(o==null?void 0:o.dialog)??Es,l=(o==null?void 0:o.mobileTransition)??ot;return S.jsx(a,u({open:r,onClose:n},s==null?void 0:s.dialog,{TransitionComponent:l,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:S.jsx(Ls,{children:t})}))}const $s=["props","getOpenDialogAriaText"],Wa=e=>{var J;let{props:t,getOpenDialogAriaText:n}=e,r=K(e,$s);const{slots:o,slotProps:s,className:a,sx:l,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:g,timezone:b,name:p,label:y,inputRef:v,readOnly:x,disabled:m,localeText:C}=t,P=ce(),k=f.useRef(null),R=Be(),E=((J=s==null?void 0:s.toolbar)==null?void 0:J.hidden)??!1,{open:I,actions:B,layoutProps:_,renderCurrentView:D,fieldProps:M}=jt(u({},r,{props:t,fieldRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),T=o.field,V=re({elementType:T,externalSlotProps:s==null?void 0:s.field,additionalProps:u({},M,E&&{id:R},!(m||x)&&{onClick:B.onOpen,onKeyDown:io(B.onOpen)},{readOnly:x??!0,disabled:m,className:a,sx:l,format:i,formatDensity:c,enableAccessibleFieldDOMStructure:d,selectedSections:h,onSelectedSectionsChange:g,timezone:b,label:y,name:p},v?{inputRef:v}:{}),ownerState:t});V.inputProps=u({},V.inputProps,{"aria-label":n(M.value,P)});const O=u({textField:o.textField},V.slots),$=o.layout??zt;let Q=R;E&&(y?Q=`${R}-label`:Q=void 0);const U=u({},s,{toolbar:u({},s==null?void 0:s.toolbar,{titleId:R}),mobilePaper:u({"aria-labelledby":Q},s==null?void 0:s.mobilePaper)}),ee=me(k,V.unstableFieldRef);return{renderPicker:()=>S.jsxs(Ct,{localeText:C,children:[S.jsx(T,u({},V,{slots:O,slotProps:U,unstableFieldRef:ee})),S.jsx(Os,u({},B,{open:I,slots:o,slotProps:U,children:S.jsx($,u({},_,U==null?void 0:U.layout,{slots:o,slotProps:U,children:D()}))}))]})}};function Ua(e,t,n){return r=>{r!==e&&r!==""&&n(t,r?String(r):void 0)}}export{ve as $,_e as A,Ta as B,wa as C,Ht as D,Ia as E,Tn as F,Zn as G,kn as H,ia as I,Vt as J,ja as K,Oa as L,ha as M,da as N,Co as O,zt as P,Vn as Q,ba as R,Ie as S,xa as T,Aa as U,ra as V,Ca as W,ka as X,pa as Y,tr as Z,or as _,Ra as a,rr as a0,_t as a1,Fe as a2,ga as a3,ya as a4,na as a5,aa as a6,Dt as a7,Sa as a8,Pa as a9,$a as aa,Ba as ab,Ke as ac,uo as ad,Da as b,ca as c,ua as d,Ea as e,La as f,Fa as g,fa as h,ce as i,Ge as j,Na as k,ao as l,oa as m,ta as n,Va as o,va as p,ea as q,la as r,Ma as s,Ua as t,jt as u,Wa as v,vn as w,ma as x,sa as y,$t as z}; diff --git a/storybook/assets/iframe-BOnrVhc9.js b/storybook/assets/iframe-BOnrVhc9.js new file mode 100644 index 0000000..d53804c --- /dev/null +++ b/storybook/assets/iframe-BOnrVhc9.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Autocomplete.stories-CCFkWnCt.js","./Wrapper-DXvvO_B0.js","./isNativeReflectConstruct-CJAgTEKr.js","./index-CTjT7uj6.js","./v4-CQkTLCs1.js","./array-D74jl773.js","./_baseIteratee-8_jeTHtL.js","./_overArg-duoZdnBA.js","./FormHelperText-h4EvFgt8.js","./InputBase-DuDaiXcF.js","./useFormControl-Baz_U5RD.js","./ownerWindow-DIR61fab.js","./isMuiElement-BqzHBgRb.js","./Select-DSn46qfv.js","./index-BjNUr1t6.js","./useId-BjRAp5Eo.js","./index-CYM-y3Gt.js","./useControlled-5JjQu8rW.js","./createSvgIcon-DLhoJ5Fi.js","./Chip-C6MsZLfs.js","./TextField-4ii8jFMh.js","./Checkbox.stories-BcL-IxSz.js","./FormControlLabel-D18ON2k4.js","./createStyled-D6A6HRKR.js","./DatePicker.stories-RHnsKfw2.js","./errorHandler-ulv3bqY5.js","./index-BzjuzjN8.js","./dateViewRenderers-B8uYg_Kt.js","./colorManipulator-BcfljvUw.js","./useStaticPicker-DQGfQM-K.js","./LinearProgress-CIiBqE01.js","./DateTimePicker.stories-Cu1X5d-B.js","./timeViewRenderers-DSKlpx4k.js","./MenuItem-BLPASM16.js","./InputBase.stories-CDRR5aM4.js","./RadioGroup.stories-CgH6Gx-A.js","./Select.stories-BsQlsrWZ.js","./SimpleFileUpload.stories-Vc4SJ6Z9.js","./Switches.stories-CuUT6Cr5.js","./TextField.stories-CYH177H1.js","./TimePicker.stories-CM1J429p.js","./ToggleButtonGroup.stories-BA-kIiic.js","./entry-preview-DoUV242n.js","./react-18-CaMpY7kV.js","./entry-preview-docs-CWzFB5kA.js","./_getPrototype-C87Y6mw8.js","./index-DrFu-skq.js","./preview-BJPLiuSt.js","./index-D-8MO0q_.js","./preview-CVycp9di.js","./preview-9hFJSo5S.js","./preview-DB9FwMii.js"])))=>i.map(i=>d[i]); +import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function c(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(r){if(r.ep)return;r.ep=!0;const o=c(r);fetch(r.href,o)}})();const R="modulepreload",f=function(e,_){return new URL(e,_).href},O={},t=function(_,c,a){let r=Promise.resolve();if(c&&c.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),p=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.all(c.map(s=>{if(s=f(s,a),s in O)return;O[s]=!0;const m=s.endsWith(".css"),d=m?'[rel="stylesheet"]':"";if(!!a)for(let u=o.length-1;u>=0;u--){const l=o[u];if(l.href===s&&(!m||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${d}`))return;const n=document.createElement("link");if(n.rel=m?"stylesheet":R,m||(n.as="script",n.crossOrigin=""),n.href=s,p&&n.setAttribute("nonce",p),document.head.appendChild(n),m)return new Promise((u,l)=>{n.addEventListener("load",u),n.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${s}`)))})}))}return r.then(()=>_()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},{createBrowserChannel:T}=__STORYBOOK_MODULE_CHANNELS__,{addons:L}=__STORYBOOK_MODULE_PREVIEW_API__,E=T({page:"preview"});L.setChannel(E);window.__STORYBOOK_ADDONS_CHANNEL__=E;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=E);const P={"./src/stories/Autocomplete.stories.tsx":async()=>t(()=>import("./Autocomplete.stories-CCFkWnCt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),"./src/stories/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-BcL-IxSz.js"),__vite__mapDeps([21,3,1,2,4,22,10,17,23,18]),import.meta.url),"./src/stories/DatePicker.stories.tsx":async()=>t(()=>import("./DatePicker.stories-RHnsKfw2.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,25,26,19,11,13,14,15,16,9,10,17,18,8,12,23,27,28,20,29,30]),import.meta.url),"./src/stories/DateTimePicker.stories.tsx":async()=>t(()=>import("./DateTimePicker.stories-Cu1X5d-B.js"),__vite__mapDeps([31,1,2,3,4,5,6,7,25,26,19,11,13,14,15,16,9,10,17,18,8,12,23,32,33,28,27,20,30]),import.meta.url),"./src/stories/InputBase.stories.tsx":async()=>t(()=>import("./InputBase.stories-CDRR5aM4.js"),__vite__mapDeps([34,3,1,2,4,9,10,11,30,14]),import.meta.url),"./src/stories/RadioGroup.stories.tsx":async()=>t(()=>import("./RadioGroup.stories-CgH6Gx-A.js"),__vite__mapDeps([35,3,1,2,4,17,15,10,22,23,18,30,14]),import.meta.url),"./src/stories/Select.stories.tsx":async()=>t(()=>import("./Select.stories-BsQlsrWZ.js"),__vite__mapDeps([36,1,2,3,4,8,9,10,11,12,13,14,15,16,17,18,33]),import.meta.url),"./src/stories/SimpleFileUpload.stories.tsx":async()=>t(()=>import("./SimpleFileUpload.stories-Vc4SJ6Z9.js"),__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),"./src/stories/Switches.stories.tsx":async()=>t(()=>import("./Switches.stories-CuUT6Cr5.js"),__vite__mapDeps([38,3,1,2,4,22,10,17,23]),import.meta.url),"./src/stories/TextField.stories.tsx":async()=>t(()=>import("./TextField.stories-CYH177H1.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,20,8,9,10,11,12,15,13,14,16,17,18,33,30]),import.meta.url),"./src/stories/TimePicker.stories.tsx":async()=>t(()=>import("./TimePicker.stories-CM1J429p.js"),__vite__mapDeps([40,1,2,3,4,5,6,7,25,26,19,11,13,14,15,16,9,10,17,18,8,12,23,32,33,28,20,29,30]),import.meta.url),"./src/stories/ToggleButtonGroup.stories.tsx":async()=>t(()=>import("./ToggleButtonGroup.stories-BA-kIiic.js"),__vite__mapDeps([41,1,2,3,4,18,11,15,12,17,28]),import.meta.url)};async function I(e){return P[e]()}const{composeConfigs:y,PreviewWeb:D,ClientApi:A}=__STORYBOOK_MODULE_PREVIEW_API__,V=async(e=[])=>{const _=await Promise.all([e.at(0)??t(()=>import("./entry-preview-DoUV242n.js"),__vite__mapDeps([42,3,43,16]),import.meta.url),e.at(1)??t(()=>import("./entry-preview-docs-CWzFB5kA.js"),__vite__mapDeps([44,45,7,3,26,46]),import.meta.url),e.at(2)??t(()=>import("./preview-BJPLiuSt.js"),__vite__mapDeps([47,48]),import.meta.url),e.at(3)??t(()=>import("./preview-ChUqEom5.js"),[],import.meta.url),e.at(4)??t(()=>import("./preview-CVycp9di.js"),__vite__mapDeps([49,4]),import.meta.url),e.at(5)??t(()=>import("./preview-9hFJSo5S.js"),__vite__mapDeps([50,46]),import.meta.url),e.at(6)??t(()=>import("./preview-BnWGZYux.js"),[],import.meta.url),e.at(7)??t(()=>import("./preview-Cdum89jS.js"),[],import.meta.url),e.at(8)??t(()=>import("./preview-DB9FwMii.js"),__vite__mapDeps([51,46]),import.meta.url),e.at(9)??t(()=>import("./preview-BpcF_O6y.js"),[],import.meta.url),e.at(10)??t(()=>import("./preview-gLmJTRpJ.js"),[],import.meta.url),e.at(11)??t(()=>import("./preview-B_49MJ5s.js"),[],import.meta.url)]);return y(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,V);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/storybook/assets/index-BjNUr1t6.js b/storybook/assets/index-BjNUr1t6.js new file mode 100644 index 0000000..4d87256 --- /dev/null +++ b/storybook/assets/index-BjNUr1t6.js @@ -0,0 +1 @@ +import{r as e}from"./index-CTjT7uj6.js";import"./Wrapper-DXvvO_B0.js";const o=e.createContext(),n=()=>{const t=e.useContext(o);return t??!1};export{n as u}; diff --git a/storybook/assets/index-BzjuzjN8.js b/storybook/assets/index-BzjuzjN8.js new file mode 100644 index 0000000..2ae35b0 --- /dev/null +++ b/storybook/assets/index-BzjuzjN8.js @@ -0,0 +1 @@ +import{g as c}from"./index-CTjT7uj6.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function n(){}function a(){}a.resetWarningCache=n;var T=function(){function e(f,h,l,P,g,s){if(s!==m){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:n};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const R=c(u);export{R as P}; diff --git a/storybook/assets/index-CTjT7uj6.js b/storybook/assets/index-CTjT7uj6.js new file mode 100644 index 0000000..6c6fae1 --- /dev/null +++ b/storybook/assets/index-CTjT7uj6.js @@ -0,0 +1,9 @@ +function D(e,t){for(var r=0;rn[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ee(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),r}var R={exports:{}},o={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var y=Symbol.for("react.element"),V=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),H=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),w=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=w&&e[w]||e["@@iterator"],typeof e=="function"?e:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,$={};function p(e,t,r){this.props=e,this.context=t,this.refs=$,this.updater=r||O}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function C(){}C.prototype=p.prototype;function v(e,t,r){this.props=e,this.context=t,this.refs=$,this.updater=r||O}var b=v.prototype=new C;b.constructor=v;k(b,p.prototype);b.isPureReactComponent=!0;var E=Array.isArray,P=Object.prototype.hasOwnProperty,S={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var n,u={},c=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(c=""+t.key),t)P.call(t,n)&&!x.hasOwnProperty(n)&&(u[n]=t[n]);var f=arguments.length-2;if(f===1)u.children=r;else if(1>>1,Y=C[H];if(0>>1;Hl(sl,P))mnl(Xt,sl)?(C[H]=Xt,C[mn]=P,H=mn):(C[H]=sl,C[pn]=P,H=pn);else if(mnl(Xt,P))C[H]=Xt,C[mn]=P,H=mn;else break e}}return z}function l(C,z){var P=C.sortIndex-z.sortIndex;return P!==0?P:C.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,o=u.now();e.unstable_now=function(){return u.now()-o}}var s=[],d=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(C){for(var z=t(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=C)r(d),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(d)}}function h(C){if(k=!1,f(C),!w)if(t(s)!==null)w=!0,ul(E);else{var z=t(d);z!==null&&ol(h,z.startTime-C)}}function E(C,z){w=!1,k&&(k=!1,c(N),N=-1),g=!0;var P=p;try{for(f(z),m=t(s);m!==null&&(!(m.expirationTime>z)||C&&!Ce());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var Y=H(m.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===t(s)&&r(s),f(z)}else r(s);m=t(s)}if(m!==null)var Yt=!0;else{var pn=t(d);pn!==null&&ol(h,pn.startTime-z),Yt=!1}return Yt}finally{m=null,p=P,g=!1}}var x=!1,_=null,N=-1,B=5,T=-1;function Ce(){return!(e.unstable_now()-TC||125H?(C.sortIndex=P,n(d,C),t(s)===null&&C===t(d)&&(k?(c(N),N=-1):k=!0,ol(h,P-H))):(C.sortIndex=Y,n(s,C),w||g||(w=!0,ul(E))),C},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(C){var z=p;return function(){var P=p;p=z;try{return C.apply(this,arguments)}finally{p=P}}}})(_o);xo.exports=_o;var za=xo.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Pa=_a,me=za;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fl=Object.prototype.hasOwnProperty,Ta=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yu={},gu={};function La(e){return Fl.call(gu,e)?!0:Fl.call(yu,e)?!1:Ta.test(e)?gu[e]=!0:(yu[e]=!0,!1)}function Ma(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Da(e,n,t,r){if(n===null||typeof n>"u"||Ma(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ie(e,n,t,r,l,i,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=u}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];q[n]=new ie(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){q[e]=new ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){q[e]=new ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){q[e]=new ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){q[e]=new ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){q[e]=new ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ni=/[\-:]([a-z])/g;function zi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!1,!1)});q.xlinkHref=new ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pi(e,n,t,r){var l=q.hasOwnProperty(n)?q[n]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{cl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?pt(e):""}function Ra(e){switch(e.tag){case 5:return pt(e.type);case 16:return pt("Lazy");case 13:return pt("Suspense");case 19:return pt("SuspenseList");case 0:case 2:case 15:return e=fl(e.type,!1),e;case 11:return e=fl(e.type.render,!1),e;case 1:return e=fl(e.type,!0),e;default:return""}}function Ul(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mn:return"Fragment";case Ln:return"Portal";case Ol:return"Profiler";case Ti:return"StrictMode";case Il:return"Suspense";case jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Po:return(e.displayName||"Context")+".Consumer";case zo:return(e._context.displayName||"Context")+".Provider";case Li:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mi:return n=e.displayName||null,n!==null?n:Ul(e.type)||"Memo";case Ye:n=e._payload,e=e._init;try{return Ul(e(n))}catch{}}return null}function Fa(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ul(n);case 8:return n===Ti?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lo(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Oa(e){var n=Lo(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Zt(e){e._valueTracker||(e._valueTracker=Oa(e))}function Mo(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Lo(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function ku(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=sn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Do(e,n){n=n.checked,n!=null&&Pi(e,"checked",n,!1)}function Al(e,n){Do(e,n);var t=sn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Bl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Bl(e,n.type,sn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Su(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Bl(e,n,t){(n!=="number"||Sr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var mt=Array.isArray;function Hn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=Jt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var yt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ia=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(e){Ia.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),yt[n]=yt[e]})});function Io(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||yt.hasOwnProperty(e)&&yt[e]?(""+n).trim():n+"px"}function jo(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=Io(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var ja=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wl(e,n){if(n){if(ja[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function $l(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kl=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Qn=null,Wn=null;function xu(e){if(e=$t(e)){if(typeof Yl!="function")throw Error(y(280));var n=e.stateNode;n&&(n=Gr(n),Yl(e.stateNode,e.type,n))}}function Uo(e){Qn?Wn?Wn.push(e):Wn=[e]:Qn=e}function Vo(){if(Qn){var e=Qn,n=Wn;if(Wn=Qn=null,xu(e),n)for(e=0;e>>=0,e===0?32:31-(Xa(e)/Ga|0)|0}var qt=64,bt=4194304;function vt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _r(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=vt(o):(i&=u,i!==0&&(r=vt(i)))}else u=t&~l,u!==0?r=vt(u):i!==0&&(r=vt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Qt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Pe(n),e[n]=t}function ba(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wt),Ru=" ",Fu=!1;function is(e,n){switch(e){case"keyup":return zc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function us(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Tc(e,n){switch(e){case"compositionend":return us(n);case"keypress":return n.which!==32?null:(Fu=!0,Ru);case"textInput":return e=n.data,e===Ru&&Fu?null:e;default:return null}}function Lc(e,n){if(Dn)return e==="compositionend"||!Ai&&is(e,n)?(e=rs(),dr=ji=Je=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Uu(t)}}function cs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?cs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function fs(){for(var e=window,n=Sr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Sr(e.document)}return n}function Bi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Vc(e){var n=fs(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&cs(t.ownerDocument.documentElement,t)){if(r!==null&&Bi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Vu(t,i);var u=Vu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Rn=null,bl=null,St=null,ei=!1;function Au(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ei||Rn==null||Rn!==Sr(r)||(r=Rn,"selectionStart"in r&&Bi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),St&&Rt(St,r)||(St=r,r=Pr(bl,"onSelect"),0In||(e.current=ui[In],ui[In]=null,In--)}function D(e,n){In++,ui[In]=e.current,e.current=n}var an={},te=fn(an),se=fn(!1),En=an;function Gn(e,n){var t=e.type.contextTypes;if(!t)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function ae(e){return e=e.childContextTypes,e!=null}function Lr(){F(se),F(te)}function Yu(e,n,t){if(te.current!==an)throw Error(y(168));D(te,n),D(se,t)}function ks(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Fa(e)||"Unknown",l));return V({},t,r)}function Mr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,En=te.current,D(te,e),D(se,se.current),!0}function Xu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=ks(e,n,En),r.__reactInternalMemoizedMergedChildContext=e,F(se),F(te),D(te,e)):F(se),D(se,t)}var je=null,Zr=!1,_l=!1;function Ss(e){je===null?je=[e]:je.push(e)}function Jc(e){Zr=!0,Ss(e)}function dn(){if(!_l&&je!==null){_l=!0;var e=0,n=M;try{var t=je;for(M=1;e>=u,l-=u,Ue=1<<32-Pe(n)+l|t<N?(B=_,_=null):B=_.sibling;var T=p(c,_,f[N],h);if(T===null){_===null&&(_=B);break}e&&_&&T.alternate===null&&n(c,_),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T,_=B}if(N===f.length)return t(c,_),I&&vn(c,N),E;if(_===null){for(;NN?(B=_,_=null):B=_.sibling;var Ce=p(c,_,T.value,h);if(Ce===null){_===null&&(_=B);break}e&&_&&Ce.alternate===null&&n(c,_),a=i(Ce,a,N),x===null?E=Ce:x.sibling=Ce,x=Ce,_=B}if(T.done)return t(c,_),I&&vn(c,N),E;if(_===null){for(;!T.done;N++,T=f.next())T=m(c,T.value,h),T!==null&&(a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return I&&vn(c,N),E}for(_=r(c,_);!T.done;N++,T=f.next())T=g(_,c,N,T.value,h),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?N:T.key),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return e&&_.forEach(function(rt){return n(c,rt)}),I&&vn(c,N),E}function O(c,a,f,h){if(typeof f=="object"&&f!==null&&f.type===Mn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Gt:e:{for(var E=f.key,x=a;x!==null;){if(x.key===E){if(E=f.type,E===Mn){if(x.tag===7){t(c,x.sibling),a=l(x,f.props.children),a.return=c,c=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ye&&Ju(E)===x.type){t(c,x.sibling),a=l(x,f.props),a.ref=ct(c,x,f),a.return=c,c=a;break e}t(c,x);break}else n(c,x);x=x.sibling}f.type===Mn?(a=Sn(f.props.children,c.mode,h,f.key),a.return=c,c=a):(h=kr(f.type,f.key,f.props,null,c.mode,h),h.ref=ct(c,a,f),h.return=c,c=h)}return u(c);case Ln:e:{for(x=f.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Rl(f,c.mode,h),a.return=c,c=a}return u(c);case Ye:return x=f._init,O(c,a,x(f._payload),h)}if(mt(f))return w(c,a,f,h);if(it(f))return k(c,a,f,h);ur(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=Dl(f,c.mode,h),a.return=c,c=a),u(c)):t(c,a)}return O}var Jn=_s(!0),Ns=_s(!1),Fr=fn(null),Or=null,Vn=null,$i=null;function Ki(){$i=Vn=Or=null}function Yi(e){var n=Fr.current;F(Fr),e._currentValue=n}function ai(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Kn(e,n){Or=e,$i=Vn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(oe=!0),e.firstContext=null)}function Se(e){var n=e._currentValue;if($i!==e)if(e={context:e,memoizedValue:n,next:null},Vn===null){if(Or===null)throw Error(y(308));Vn=e,Or.dependencies={lanes:0,firstContext:e}}else Vn=Vn.next=e;return n}var gn=null;function Xi(e){gn===null?gn=[e]:gn.push(e)}function zs(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,Xi(n)):(t.next=l.next,l.next=t),n.interleaved=t,Qe(e,r)}function Qe(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Xe=!1;function Gi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ps(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ae(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function rn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,L&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Qe(e,t)}return l=r.interleaved,l===null?(n.next=n,Xi(r)):(n.next=l.next,l.next=n),r.interleaved=n,Qe(e,t)}function mr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Fi(e,t)}}function qu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};i===null?l=i=u:i=i.next=u,t=t.next}while(t!==null);i===null?l=i=n:i=i.next=n}else l=i=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Ir(e,n,t,r){var l=e.updateQueue;Xe=!1;var i=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var s=o,d=s.next;s.next=null,u===null?i=d:u.next=d,u=s;var v=e.alternate;v!==null&&(v=v.updateQueue,o=v.lastBaseUpdate,o!==u&&(o===null?v.firstBaseUpdate=d:o.next=d,v.lastBaseUpdate=s))}if(i!==null){var m=l.baseState;u=0,v=d=s=null,o=i;do{var p=o.lane,g=o.eventTime;if((r&p)===p){v!==null&&(v=v.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var w=e,k=o;switch(p=n,g=t,k.tag){case 1:if(w=k.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=V({},m,p);break e;case 2:Xe=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},v===null?(d=v=g,s=m):v=v.next=g,u|=p;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;p=o,o=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(v===null&&(s=m),l.baseState=s,l.firstBaseUpdate=d,l.lastBaseUpdate=v,n=l.shared.interleaved,n!==null){l=n;do u|=l.lane,l=l.next;while(l!==n)}else i===null&&(l.shared.lanes=0);_n|=u,e.lanes=u,e.memoizedState=m}}function bu(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),n()}finally{M=t,zl.transition=r}}function $s(){return Ee().memoizedState}function nf(e,n,t){var r=un(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ks(e))Ys(n,t);else if(t=zs(e,n,t,r),t!==null){var l=le();Te(t,e,r,l),Xs(t,n,r)}}function tf(e,n,t){var r=un(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ks(e))Ys(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,Le(o,u)){var s=n.interleaved;s===null?(l.next=l,Xi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=zs(e,n,l,r),t!==null&&(l=le(),Te(t,e,r,l),Xs(t,n,r))}}function Ks(e){var n=e.alternate;return e===U||n!==null&&n===U}function Ys(e,n){Et=Ur=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Xs(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Fi(e,t)}}var Vr={readContext:Se,useCallback:b,useContext:b,useEffect:b,useImperativeHandle:b,useInsertionEffect:b,useLayoutEffect:b,useMemo:b,useReducer:b,useRef:b,useState:b,useDebugValue:b,useDeferredValue:b,useTransition:b,useMutableSource:b,useSyncExternalStore:b,useId:b,unstable_isNewReconciler:!1},rf={readContext:Se,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Se,useEffect:no,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,hr(4194308,4,As.bind(null,n,e),t)},useLayoutEffect:function(e,n){return hr(4194308,4,e,n)},useInsertionEffect:function(e,n){return hr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=nf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:eo,useDebugValue:ru,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=eo(!1),n=e[0];return e=ef.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=U,l=De();if(I){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),G===null)throw Error(y(349));xn&30||Ds(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,no(Fs.bind(null,r,i,e),[e]),r.flags|=2048,Bt(9,Rs.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=De(),n=G.identifierPrefix;if(I){var t=Ve,r=Ue;t=(r&~(1<<32-Pe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Vt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Re]=n,e[It]=r,la(e,n,!1,!1),n.stateNode=e;e:{switch(u=$l(t,r),t){case"dialog":R("cancel",e),R("close",e),l=r;break;case"iframe":case"object":case"embed":R("load",e),l=r;break;case"video":case"audio":for(l=0;let&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304)}else{if(!r)if(e=jr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),ft(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!I)return ee(n),null}else 2*Q()-i.renderingStartTime>et&&t!==1073741824&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=Q(),n.sibling=null,t=j.current,D(j,r?t&1|2:t&1),n):(ee(n),null);case 22:case 23:return au(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?fe&1073741824&&(ee(n),n.subtreeFlags&6&&(n.flags|=8192)):ee(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function df(e,n){switch(Qi(n),n.tag){case 1:return ae(n.type)&&Lr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qn(),F(se),F(te),qi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Ji(n),null;case 13:if(F(j),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));Zn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(j),null;case 4:return qn(),null;case 10:return Yi(n.type._context),null;case 22:case 23:return au(),null;case 24:return null;default:return null}}var sr=!1,ne=!1,pf=typeof WeakSet=="function"?WeakSet:Set,S=null;function An(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){A(e,n,r)}else t.current=null}function gi(e,n,t){try{t()}catch(r){A(e,n,r)}}var po=!1;function mf(e,n){if(ni=Nr,e=fs(),Bi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(o=u+l),m!==i||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++v===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ti={focusedElem:e,selectionRange:t},Nr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:_e(n.type,k),O);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){A(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=po,po=!1,w}function Ct(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&gi(n,t,i)}l=l.next}while(l!==r)}}function br(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function wi(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function oa(e){var n=e.alternate;n!==null&&(e.alternate=null,oa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Re],delete n[It],delete n[ii],delete n[Gc],delete n[Zc])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sa(e){return e.tag===5||e.tag===3||e.tag===4}function mo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sa(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ki(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Tr));else if(r!==4&&(e=e.child,e!==null))for(ki(e,n,t),e=e.sibling;e!==null;)ki(e,n,t),e=e.sibling}function Si(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Si(e,n,t),e=e.sibling;e!==null;)Si(e,n,t),e=e.sibling}var Z=null,Ne=!1;function Ke(e,n,t){for(t=t.child;t!==null;)aa(e,n,t),t=t.sibling}function aa(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount($r,t)}catch{}switch(t.tag){case 5:ne||An(t,n);case 6:var r=Z,l=Ne;Z=null,Ke(e,n,t),Z=r,Ne=l,Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Z.removeChild(t.stateNode));break;case 18:Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?xl(e.parentNode,t):e.nodeType===1&&xl(e,t),Mt(e)):xl(Z,t.stateNode));break;case 4:r=Z,l=Ne,Z=t.stateNode.containerInfo,Ne=!0,Ke(e,n,t),Z=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&gi(t,n,u),l=l.next}while(l!==r)}Ke(e,n,t);break;case 1:if(!ne&&(An(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){A(t,n,o)}Ke(e,n,t);break;case 21:Ke(e,n,t);break;case 22:t.mode&1?(ne=(r=ne)||t.memoizedState!==null,Ke(e,n,t),ne=r):Ke(e,n,t);break;default:Ke(e,n,t)}}function vo(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new pf),n.forEach(function(r){var l=Cf.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function xe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hf(r/1960))-r,10e?16:e,qe===null)var r=!1;else{if(e=qe,qe=null,Hr=0,L&6)throw Error(y(331));var l=L;for(L|=4,S=e.current;S!==null;){var i=S,u=i.child;if(S.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sQ()-ou?kn(e,0):uu|=t),ce(e,n)}function ya(e,n){n===0&&(e.mode&1?(n=bt,bt<<=1,!(bt&130023424)&&(bt=4194304)):n=1);var t=le();e=Qe(e,n),e!==null&&(Qt(e,n,t),ce(e,t))}function Ef(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),ya(e,t)}function Cf(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),ya(e,t)}var ga;ga=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||se.current)oe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return oe=!1,cf(e,n,t);oe=!!(e.flags&131072)}else oe=!1,I&&n.flags&1048576&&Es(n,Rr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;yr(e,n),e=n.pendingProps;var l=Gn(n,te.current);Kn(n,t),l=eu(null,n,r,e,l,t);var i=nu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ae(r)?(i=!0,Mr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Gi(n),l.updater=qr,n.stateNode=l,l._reactInternals=n,fi(n,r,e,t),n=mi(null,n,r,!0,i,t)):(n.tag=0,I&&i&&Hi(n),re(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(yr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=_f(r),e=_e(r,e),l){case 0:n=pi(null,n,r,e,t);break e;case 1:n=ao(null,n,r,e,t);break e;case 11:n=oo(null,n,r,e,t);break e;case 14:n=so(null,n,r,_e(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),pi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),ao(e,n,r,l,t);case 3:e:{if(na(n),e===null)throw Error(y(387));r=n.pendingProps,i=n.memoizedState,l=i.element,Ps(e,n),Ir(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=bn(Error(y(423)),n),n=co(e,n,r,t,l);break e}else if(r!==l){l=bn(Error(y(424)),n),n=co(e,n,r,t,l);break e}else for(de=tn(n.stateNode.containerInfo.firstChild),pe=n,I=!0,ze=null,t=Ns(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zn(),r===l){n=We(e,n,t);break e}re(e,n,r,t)}n=n.child}return n;case 5:return Ts(n),e===null&&si(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,ri(r,l)?u=null:i!==null&&ri(r,i)&&(n.flags|=32),ea(e,n),re(e,n,u,t),n.child;case 6:return e===null&&si(n),null;case 13:return ta(e,n,t);case 4:return Zi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jn(n,null,r,t):re(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),oo(e,n,r,l,t);case 7:return re(e,n,n.pendingProps,t),n.child;case 8:return re(e,n,n.pendingProps.children,t),n.child;case 12:return re(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,D(Fr,r._currentValue),r._currentValue=u,i!==null)if(Le(i.value,u)){if(i.children===l.children&&!se.current){n=We(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ae(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),ai(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(y(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),ai(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}re(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Kn(n,t),l=Se(l),r=r(l),n.flags|=1,re(e,n,r,t),n.child;case 14:return r=n.type,l=_e(r,n.pendingProps),l=_e(r.type,l),so(e,n,r,l,t);case 15:return qs(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),yr(e,n),n.tag=1,ae(r)?(e=!0,Mr(n)):e=!1,Kn(n,t),Gs(n,r,l),fi(n,r,l,t),mi(null,n,r,!0,e,t);case 19:return ra(e,n,t);case 22:return bs(e,n,t)}throw Error(y(156,n.tag))};function wa(e,n){return Ko(e,n)}function xf(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,n,t,r){return new xf(e,n,t,r)}function fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _f(e){if(typeof e=="function")return fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Li)return 11;if(e===Mi)return 14}return 2}function on(e,n){var t=e.alternate;return t===null?(t=we(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function kr(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")fu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Mn:return Sn(t.children,l,i,n);case Ti:u=8,l|=8;break;case Ol:return e=we(12,t,n,l|2),e.elementType=Ol,e.lanes=i,e;case Il:return e=we(13,t,n,l),e.elementType=Il,e.lanes=i,e;case jl:return e=we(19,t,n,l),e.elementType=jl,e.lanes=i,e;case To:return nl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zo:u=10;break e;case Po:u=9;break e;case Li:u=11;break e;case Mi:u=14;break e;case Ye:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=we(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Sn(e,n,t,r){return e=we(7,e,r,n),e.lanes=t,e}function nl(e,n,t,r){return e=we(22,e,r,n),e.elementType=To,e.lanes=t,e.stateNode={isHidden:!1},e}function Dl(e,n,t){return e=we(6,e,null,n),e.lanes=t,e}function Rl(e,n,t){return n=we(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Nf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pl(0),this.expirationTimes=pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function du(e,n,t,r,l,i,u,o,s){return e=new Nf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=we(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gi(i),e}function zf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ca)}catch(e){console.error(e)}}Ca(),Co.exports=ve;var Df=Co.exports;const Ff=Na(Df);export{Df as r,Ff as w}; diff --git a/storybook/assets/index-D-8MO0q_.js b/storybook/assets/index-D-8MO0q_.js new file mode 100644 index 0000000..c9b06b4 --- /dev/null +++ b/storybook/assets/index-D-8MO0q_.js @@ -0,0 +1 @@ +var d=Object.create,g=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,x=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),P=(e,r,i,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of A(r))!m.call(e,a)&&a!==i&&g(e,a,{get:()=>r[a],enumerable:!(u=j(r,a))||u.enumerable});return e},S=(e,r,i)=>(i=e!=null?d(h(e)):{},P(!e||!e.__esModule?g(i,"default",{value:e,enumerable:!0}):i,e)),U=x(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var r=Object.prototype.toString,i=Object.getPrototypeOf,u=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,c){return function f(t,n,o){var y,s,l,p=r.call(t),w=r.call(n);if(t===n)return!0;if(t==null||n==null)return!1;if(o.indexOf(t)>-1&&o.indexOf(n)>-1)return!0;if(o.push(t,n),p!=w||(y=u(t),s=u(n),y.length!=s.length||y.some(function(O){return!f(t[O],n[O],o)})))return!1;switch(p.slice(8,-1)){case"Symbol":return t.valueOf()==n.valueOf();case"Date":case"Number":return+t==+n||+t!=+t&&+n!=+n;case"RegExp":case"Function":case"String":case"Boolean":return""+t==""+n;case"Set":case"Map":y=t.entries(),s=n.entries();do if(!f((l=y.next()).value,s.next().value,o))return!1;while(!l.done);return!0;case"ArrayBuffer":t=new Uint8Array(t),n=new Uint8Array(n);case"DataView":t=new Uint8Array(t.buffer),n=new Uint8Array(n.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(t.length!=n.length)return!1;for(l=0;le.map(r=>typeof r<"u").filter(Boolean).length,q=(e,r)=>{let{exists:i,eq:u,neq:a,truthy:c}=e;if(v([i,u,a,c])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:i,eq:u,neq:a})}`);if(typeof u<"u")return(0,b.isEqual)(r,u);if(typeof a<"u")return!(0,b.isEqual)(r,a);if(typeof i<"u"){let f=typeof r<"u";return i?f:!f}return typeof c>"u"||c?!!r:!r},E=(e,r,i)=>{if(!e.if)return!0;let{arg:u,global:a}=e.if;if(v([u,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:u,global:a})}`);let c=u?r[u]:i[a];return q(e.if,c)},I=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");export{I as O,E as P}; diff --git a/storybook/assets/index-DSkyVWTJ.js b/storybook/assets/index-DSkyVWTJ.js new file mode 100644 index 0000000..085110b --- /dev/null +++ b/storybook/assets/index-DSkyVWTJ.js @@ -0,0 +1 @@ +import{R as e}from"./index-CTjT7uj6.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function m(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{m as MDXProvider,u as useMDXComponents}; diff --git a/storybook/assets/index-DrFu-skq.js b/storybook/assets/index-DrFu-skq.js new file mode 100644 index 0000000..37c96b4 --- /dev/null +++ b/storybook/assets/index-DrFu-skq.js @@ -0,0 +1,6 @@ +function l(o){for(var f=[],i=1;i{e.apply(this,u)};clearTimeout(o),o=setTimeout(c,t)}return n.clear=()=>{clearTimeout(o)},n}function r(e){return e&&e.ownerDocument||document}function a(e){return r(e).defaultView||window}export{r as a,i as d,a as o}; diff --git a/storybook/assets/preview-9hFJSo5S.js b/storybook/assets/preview-9hFJSo5S.js new file mode 100644 index 0000000..243cb4c --- /dev/null +++ b/storybook/assets/preview-9hFJSo5S.js @@ -0,0 +1,20 @@ +import{d as E}from"./index-DrFu-skq.js";const{useMemo:b,useEffect:v}=__STORYBOOK_MODULE_PREVIEW_API__,{global:M}=__STORYBOOK_MODULE_GLOBAL__,{logger:h}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var p="backgrounds",{document:l,window:B}=M,x=()=>B.matchMedia("(prefers-reduced-motion: reduce)").matches,O=(r,e=[],a)=>{if(r==="transparent")return"transparent";if(e.find(d=>d.value===r))return r;let n=e.find(d=>d.name===a);if(n)return n.value;if(a){let d=e.map(i=>i.name).join(", ");h.warn(E` + Backgrounds Addon: could not find the default color "${a}". + These are the available colors for your story based on your configuration: + ${d}. + `)}return"transparent"},k=r=>{(Array.isArray(r)?r:[r]).forEach(S)},S=r=>{var a;let e=l.getElementById(r);e&&((a=e.parentElement)==null||a.removeChild(e))},w=(r,e)=>{let a=l.getElementById(r);if(a)a.innerHTML!==e&&(a.innerHTML=e);else{let n=l.createElement("style");n.setAttribute("id",r),n.innerHTML=e,l.head.appendChild(n)}},A=(r,e,a)=>{var d;let n=l.getElementById(r);if(n)n.innerHTML!==e&&(n.innerHTML=e);else{let i=l.createElement("style");i.setAttribute("id",r),i.innerHTML=e;let o=`addon-backgrounds-grid${a?`-docs-${a}`:""}`,t=l.getElementById(o);t?(d=t.parentElement)==null||d.insertBefore(i,t):l.head.appendChild(i)}},L=(r,e)=>{var c;let{globals:a,parameters:n}=e,d=(c=a[p])==null?void 0:c.value,i=n[p],o=b(()=>i.disable?"transparent":O(d,i.values,i.default),[i,d]),t=b(()=>o&&o!=="transparent",[o]),s=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",u=b(()=>` + ${s} { + background: ${o} !important; + ${x()?"":"transition: background-color 0.3s;"} + } + `,[o,s]);return v(()=>{let g=e.viewMode==="docs"?`addon-backgrounds-docs-${e.id}`:"addon-backgrounds-color";if(!t){k(g);return}A(g,u,e.viewMode==="docs"?e.id:null)},[t,u,e]),r()},T=(r,e)=>{var y;let{globals:a,parameters:n}=e,d=n[p].grid,i=((y=a[p])==null?void 0:y.grid)===!0&&d.disable!==!0,{cellAmount:o,cellSize:t,opacity:s}=d,u=e.viewMode==="docs",c=n.layout===void 0||n.layout==="padded"?16:0,g=d.offsetX??(u?20:c),m=d.offsetY??(u?20:c),$=b(()=>{let f=e.viewMode==="docs"?`#anchor--${e.id} .docs-story`:".sb-show-main",_=[`${t*o}px ${t*o}px`,`${t*o}px ${t*o}px`,`${t}px ${t}px`,`${t}px ${t}px`].join(", ");return` + ${f} { + background-size: ${_} !important; + background-position: ${g}px ${m}px, ${g}px ${m}px, ${g}px ${m}px, ${g}px ${m}px !important; + background-blend-mode: difference !important; + background-image: linear-gradient(rgba(130, 130, 130, ${s}) 1px, transparent 1px), + linear-gradient(90deg, rgba(130, 130, 130, ${s}) 1px, transparent 1px), + linear-gradient(rgba(130, 130, 130, ${s/2}) 1px, transparent 1px), + linear-gradient(90deg, rgba(130, 130, 130, ${s/2}) 1px, transparent 1px) !important; + } + `},[t]);return v(()=>{let f=e.viewMode==="docs"?`addon-backgrounds-grid-docs-${e.id}`:"addon-backgrounds-grid";if(!i){k(f);return}w(f,$)},[i,$,e]),r()},I=[T,L],G={[p]:{grid:{cellSize:20,opacity:.5,cellAmount:5},values:[{name:"light",value:"#F8F8F8"},{name:"dark",value:"#333333"}]}},R={[p]:null};export{I as decorators,R as initialGlobals,G as parameters}; diff --git a/storybook/assets/preview-BJPLiuSt.js b/storybook/assets/preview-BJPLiuSt.js new file mode 100644 index 0000000..be79eb7 --- /dev/null +++ b/storybook/assets/preview-BJPLiuSt.js @@ -0,0 +1 @@ +import"./index-D-8MO0q_.js";const{global:O}=__STORYBOOK_MODULE_GLOBAL__,{makeDecorator:E,addons:_}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:l,SELECT_STORY:L}=__STORYBOOK_MODULE_CORE_EVENTS__;var c="links",{document:i,HTMLElement:m}=O,v=e=>_.getChannel().emit(L,e),o=e=>{let{target:t}=e;if(!(t instanceof m))return;let s=t,{sbKind:a,sbStory:r}=s.dataset;(a||r)&&(e.preventDefault(),v({kind:a,story:r}))},n=!1,d=()=>{n||(n=!0,i.addEventListener("click",o))},k=()=>{n&&(n=!1,i.removeEventListener("click",o))},R=E({name:"withLinks",parameterName:c,wrapper:(e,t)=>(d(),_.getChannel().once(l,k),e(t))}),T=[R];export{T as decorators}; diff --git a/storybook/assets/preview-B_49MJ5s.js b/storybook/assets/preview-B_49MJ5s.js new file mode 100644 index 0000000..2bb5326 --- /dev/null +++ b/storybook/assets/preview-B_49MJ5s.js @@ -0,0 +1 @@ +const e={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/}}}};export{e as default}; diff --git a/storybook/assets/preview-BnWGZYux.js b/storybook/assets/preview-BnWGZYux.js new file mode 100644 index 0000000..06c9298 --- /dev/null +++ b/storybook/assets/preview-BnWGZYux.js @@ -0,0 +1 @@ +var t={viewport:"reset",viewportRotated:!1};export{t as initialGlobals}; diff --git a/storybook/assets/preview-BpcF_O6y.js b/storybook/assets/preview-BpcF_O6y.js new file mode 100644 index 0000000..c48ec79 --- /dev/null +++ b/storybook/assets/preview-BpcF_O6y.js @@ -0,0 +1,7 @@ +const{global:r}=__STORYBOOK_MODULE_GLOBAL__,{addons:s}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_CHANGED:O}=__STORYBOOK_MODULE_CORE_EVENTS__;var d="storybook/highlight",i="storybookHighlight",g=`${d}/add`,E=`${d}/reset`,{document:l}=r,H=(e="#FF4785",t="dashed")=>` + outline: 2px ${t} ${e}; + outline-offset: 2px; + box-shadow: 0 0 0 6px rgba(255,255,255,0.6); +`,h=s.getChannel(),T=e=>{let t=i;n();let o=Array.from(new Set(e.elements)),_=l.createElement("style");_.setAttribute("id",t),_.innerHTML=o.map(a=>`${a}{ + ${H(e.color,e.style)} + }`).join(" "),l.head.appendChild(_)},n=()=>{var o;let e=i,t=l.getElementById(e);t&&((o=t.parentNode)==null||o.removeChild(t))};h.on(O,n);h.on(E,n);h.on(g,T); diff --git a/storybook/assets/preview-CVycp9di.js b/storybook/assets/preview-CVycp9di.js new file mode 100644 index 0000000..1bebb40 --- /dev/null +++ b/storybook/assets/preview-CVycp9di.js @@ -0,0 +1 @@ +import{v as T}from"./v4-CQkTLCs1.js";const{addons:m}=__STORYBOOK_MODULE_PREVIEW_API__,{global:_}=__STORYBOOK_MODULE_GLOBAL__,{ImplicitActionsDuringRendering:A}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var S="storybook/actions",b=`${S}/action-event`,v={depth:10,clearOnStoryChange:!0,limit:50},R=(t,e)=>{let r=Object.getPrototypeOf(t);return!r||e(r)?r:R(r,e)},x=t=>!!(typeof t=="object"&&t&&R(t,e=>/^Synthetic(?:Base)?Event$/.test(e.constructor.name))&&typeof t.persist=="function"),w=t=>{if(x(t)){let e=Object.create(t.constructor.prototype,Object.getOwnPropertyDescriptors(t));e.persist();let r=Object.getOwnPropertyDescriptor(e,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(e,"view",{...r,value:Object.create(n.constructor.prototype)}),e}return t},D=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?T():Date.now().toString(36)+Math.random().toString(36).substring(2);function p(t,e={}){let r={...v,...e},n=function(...o){var O,d;if(e.implicit){let g=(O="__STORYBOOK_PREVIEW__"in _?_.__STORYBOOK_PREVIEW__:void 0)==null?void 0:O.storyRenders.find(c=>c.phase==="playing"||c.phase==="rendering");if(g){let c=!((d=window==null?void 0:window.FEATURES)!=null&&d.disallowImplicitActionsInRenderV8),u=new A({phase:g.phase,name:t,deprecated:c});if(c)console.warn(u);else throw u}}let i=m.getChannel(),s=D(),a=5,l=o.map(w),h=o.length>1?l:l[0],E={id:s,count:0,data:{name:t,args:h},options:{...r,maxDepth:a+(r.depth||3),allowFunction:r.allowFunction||!1}};i.emit(b,E)};return n.isAction=!0,n.implicit=e.implicit,n}var f=(t,e)=>typeof e[t]>"u"&&!(t in e),I=t=>{let{initialArgs:e,argTypes:r,id:n,parameters:{actions:o}}=t;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([s])=>!!i.test(s)).reduce((s,[a,l])=>(f(a,e)&&(s[a]=p(a,{implicit:!0,id:n})),s),{})},j=t=>{let{initialArgs:e,argTypes:r,parameters:{actions:n}}=t;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,s])=>(f(i,e)&&(o[i]=p(typeof s.action=="string"?s.action:i)),o),{})},L=[j,I],y=!1,C=t=>{let{parameters:{actions:e}}=t;if(!(e!=null&&e.disable)&&!y&&"__STORYBOOK_TEST_ON_MOCK_CALL__"in _&&typeof _.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let r=_.__STORYBOOK_TEST_ON_MOCK_CALL__;r((n,o)=>{let i=n.getMockName();i!=="spy"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>i.startsWith(s)))&&p(i)(o)}),y=!0}},B=[C];export{L as argsEnhancers,B as loaders}; diff --git a/storybook/assets/preview-Cdum89jS.js b/storybook/assets/preview-Cdum89jS.js new file mode 100644 index 0000000..74df95d --- /dev/null +++ b/storybook/assets/preview-Cdum89jS.js @@ -0,0 +1 @@ +var j="Invariant failed";function S(e,t){if(!e)throw new Error(j)}const{useEffect:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:d}=__STORYBOOK_MODULE_GLOBAL__;function Y(){let e=d.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function K(){let e=d.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");S(t!=null);let{width:o,height:l}=Y();return A(e,t,{width:o,height:l}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",d.document.body.appendChild(e),{canvas:e,context:t,width:o,height:l}}function A(e,t,{width:o,height:l}){e.style.width=`${o}px`,e.style.height=`${l}px`;let i=d.window.devicePixelRatio;e.width=Math.floor(o*i),e.height=Math.floor(l*i),t.scale(i,i)}var h={};function G(){h.canvas||(h=K())}function H(){h.context&&h.context.clearRect(0,0,h.width??0,h.height??0)}function U(e){H(),e(h.context)}function V(){S(h.canvas),S(h.context),A(h.canvas,h.context,{width:0,height:0});let{width:e,height:t}=Y();A(h.canvas,h.context,{width:e,height:t}),h.width=e,h.height=t}function Z(){var e;h.canvas&&(H(),(e=h.canvas.parentNode)==null||e.removeChild(h.canvas),h={})}var w={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},c=6;function W(e,{x:t,y:o,w:l,h:i,r:n}){t=t-l/2,o=o-i/2,l<2*n&&(n=l/2),i<2*n&&(n=i/2),e.beginPath(),e.moveTo(t+n,o),e.arcTo(t+l,o,t+l,o+i,n),e.arcTo(t+l,o+i,t,o+i,n),e.arcTo(t,o+i,t,o,n),e.arcTo(t,o,t+l,o,n),e.closePath()}function J(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom,s=r+o.left+t.left,u=n+o.top+t.top;return e==="top"?s+=f/2:e==="right"?(s+=f,u+=a/2):e==="bottom"?(s+=f/2,u+=a):e==="left"?u+=a/2:e==="center"&&(s+=f/2,u+=a/2),{x:s,y:u}}function Q(e,t,{margin:o,border:l,padding:i},n,r){let f=m=>0,a=0,s=0,u=r?1:.5,g=r?n*2:0;return e==="padding"?f=m=>i[m]*u+g:e==="border"?f=m=>i[m]+l[m]*u+g:e==="margin"&&(f=m=>i[m]+l[m]+o[m]*u+g),t==="top"?s=-f("top"):t==="right"?a=f("right"):t==="bottom"?s=f("bottom"):t==="left"&&(a=-f("left")),{offsetX:a,offsetY:s}}function x(e,t){return Math.abs(e.x-t.x){let f=l&&n.position==="center"?it(e,t,n):et(e,t,n,i[r-1],l);i[r]=f})}function lt(e,t,o,l){let i=o.reduce((n,r)=>{var f;return Object.prototype.hasOwnProperty.call(n,r.position)||(n[r.position]=[]),(f=n[r.position])==null||f.push(r),n},{});i.top&&E(e,t,i.top,l),i.right&&E(e,t,i.right,l),i.bottom&&E(e,t,i.bottom,l),i.left&&E(e,t,i.left,l),i.center&&E(e,t,i.center,l)}var L={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},B=30;function p(e){return parseInt(e.replace("px",""),10)}function b(e){return Number.isInteger(e)?e:e.toFixed(2)}function P(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function nt(e){let t={top:d.window.scrollY,bottom:d.window.scrollY+d.window.innerHeight,left:d.window.scrollX,right:d.window.scrollX+d.window.innerWidth},o={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:o.left>o.right?"left":"right",y:o.top>o.bottom?"top":"bottom"}}function ft(e){let t=d.getComputedStyle(e),{top:o,left:l,right:i,bottom:n,width:r,height:f}=e.getBoundingClientRect(),{marginTop:a,marginBottom:s,marginLeft:u,marginRight:g,paddingTop:m,paddingBottom:v,paddingLeft:k,paddingRight:F,borderBottomWidth:I,borderTopWidth:D,borderLeftWidth:$,borderRightWidth:N}=t;o=o+d.window.scrollY,l=l+d.window.scrollX,n=n+d.window.scrollY,i=i+d.window.scrollX;let y={top:p(a),bottom:p(s),left:p(u),right:p(g)},q={top:p(m),bottom:p(v),left:p(k),right:p(F)},z={top:p(D),bottom:p(I),left:p($),right:p(N)},_={top:o-y.top,bottom:n+y.bottom,left:l-y.left,right:i+y.right};return{margin:y,padding:q,border:z,top:o,left:l,bottom:n,right:i,width:r,height:f,extremities:_,floatingAlignment:nt(_)}}function rt(e,{margin:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l+t.bottom+t.top;e.fillStyle=L.margin,e.fillRect(n,i-t.top,o,t.top),e.fillRect(f,i-t.top,t.right,a),e.fillRect(n,r,o,t.bottom),e.fillRect(n-t.left,i-t.top,t.left,a);let s=[{type:"margin",text:b(t.top),position:"top"},{type:"margin",text:b(t.right),position:"right"},{type:"margin",text:b(t.bottom),position:"bottom"},{type:"margin",text:b(t.left),position:"left"}];return P(s)}function at(e,{padding:t,border:o,width:l,height:i,top:n,left:r,bottom:f,right:a}){let s=l-o.left-o.right,u=i-t.top-t.bottom-o.top-o.bottom;e.fillStyle=L.padding,e.fillRect(r+o.left,n+o.top,s,t.top),e.fillRect(a-t.right-o.right,n+t.top+o.top,t.right,u),e.fillRect(r+o.left,f-t.bottom-o.bottom,s,t.bottom),e.fillRect(r+o.left,n+t.top+o.top,t.left,u);let g=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return P(g)}function st(e,{border:t,width:o,height:l,top:i,left:n,bottom:r,right:f}){let a=l-t.top-t.bottom;e.fillStyle=L.border,e.fillRect(n,i,o,t.top),e.fillRect(n,r-t.bottom,o,t.bottom),e.fillRect(n,i+t.top,t.left,a),e.fillRect(f-t.right,i+t.top,t.right,a);let s=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return P(s)}function ht(e,{padding:t,border:o,width:l,height:i,top:n,left:r}){let f=l-o.left-o.right-t.left-t.right,a=i-t.top-t.bottom-o.top-o.bottom;return e.fillStyle=L.content,e.fillRect(r+o.left+t.left,n+o.top+t.top,f,a),[{type:"content",position:"center",text:`${b(f)} x ${b(a)}`}]}function ut(e){return t=>{if(e&&t){let o=ft(e),l=rt(t,o),i=at(t,o),n=st(t,o),r=ht(t,o),f=o.width<=B*3||o.height<=B;lt(t,o,[...r,...i,...n,...l],f)}}}function dt(e){U(ut(e))}var mt=(e,t)=>{let o=d.document.elementFromPoint(e,t),l=i=>{if(i&&i.shadowRoot){let n=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(n)?i:n.shadowRoot?l(n):n}return i};return l(o)||o},O,M={x:0,y:0};function R(e,t){O=mt(e,t),dt(O)}var gt=(e,t)=>{let{measureEnabled:o}=t.globals;return T(()=>{let l=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),M.x=i.clientX,M.y=i.clientY})};return document.addEventListener("pointermove",l),()=>{document.removeEventListener("pointermove",l)}},[]),T(()=>{let l=n=>{window.requestAnimationFrame(()=>{n.stopPropagation(),R(n.clientX,n.clientY)})},i=()=>{window.requestAnimationFrame(()=>{V()})};return t.viewMode==="story"&&o&&(document.addEventListener("pointerover",l),G(),window.addEventListener("resize",i),R(M.x,M.y)),()=>{window.removeEventListener("resize",i),Z()}},[o,t.viewMode]),e()},pt="measureEnabled",ct=[gt],wt={[pt]:!1};export{ct as decorators,wt as initialGlobals}; diff --git a/storybook/assets/preview-ChUqEom5.js b/storybook/assets/preview-ChUqEom5.js new file mode 100644 index 0000000..62acf8d --- /dev/null +++ b/storybook/assets/preview-ChUqEom5.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-rcj42PMV.js","./iframe-BOnrVhc9.js","./index-CTjT7uj6.js","./react-18-CaMpY7kV.js","./index-CYM-y3Gt.js","./index-D-8MO0q_.js","./isNativeReflectConstruct-CJAgTEKr.js","./_baseIteratee-8_jeTHtL.js","./_overArg-duoZdnBA.js","./_getPrototype-C87Y6mw8.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]); +import{_ as a}from"./iframe-BOnrVhc9.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-rcj42PMV.js").then(r=>r.ah),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{n as parameters}; diff --git a/storybook/assets/preview-DB9FwMii.js b/storybook/assets/preview-DB9FwMii.js new file mode 100644 index 0000000..f910e73 --- /dev/null +++ b/storybook/assets/preview-DB9FwMii.js @@ -0,0 +1,396 @@ +import{d as $}from"./index-DrFu-skq.js";const{useMemo:x,useEffect:f}=__STORYBOOK_MODULE_PREVIEW_API__,{global:p}=__STORYBOOK_MODULE_GLOBAL__;var u=i=>{(Array.isArray(i)?i:[i]).forEach(r)},r=i=>{let t=typeof i=="string"?i:i.join(""),o=p.document.getElementById(t);o&&o.parentElement&&o.parentElement.removeChild(o)},b=(i,t)=>{let o=p.document.getElementById(i);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let n=p.document.createElement("style");n.setAttribute("id",i),n.innerHTML=t,p.document.head.appendChild(n)}},m="outline";function s(i){return $` + ${i} body { + outline: 1px solid #2980b9 !important; + } + + ${i} article { + outline: 1px solid #3498db !important; + } + + ${i} nav { + outline: 1px solid #0088c3 !important; + } + + ${i} aside { + outline: 1px solid #33a0ce !important; + } + + ${i} section { + outline: 1px solid #66b8da !important; + } + + ${i} header { + outline: 1px solid #99cfe7 !important; + } + + ${i} footer { + outline: 1px solid #cce7f3 !important; + } + + ${i} h1 { + outline: 1px solid #162544 !important; + } + + ${i} h2 { + outline: 1px solid #314e6e !important; + } + + ${i} h3 { + outline: 1px solid #3e5e85 !important; + } + + ${i} h4 { + outline: 1px solid #449baf !important; + } + + ${i} h5 { + outline: 1px solid #c7d1cb !important; + } + + ${i} h6 { + outline: 1px solid #4371d0 !important; + } + + ${i} main { + outline: 1px solid #2f4f90 !important; + } + + ${i} address { + outline: 1px solid #1a2c51 !important; + } + + ${i} div { + outline: 1px solid #036cdb !important; + } + + ${i} p { + outline: 1px solid #ac050b !important; + } + + ${i} hr { + outline: 1px solid #ff063f !important; + } + + ${i} pre { + outline: 1px solid #850440 !important; + } + + ${i} blockquote { + outline: 1px solid #f1b8e7 !important; + } + + ${i} ol { + outline: 1px solid #ff050c !important; + } + + ${i} ul { + outline: 1px solid #d90416 !important; + } + + ${i} li { + outline: 1px solid #d90416 !important; + } + + ${i} dl { + outline: 1px solid #fd3427 !important; + } + + ${i} dt { + outline: 1px solid #ff0043 !important; + } + + ${i} dd { + outline: 1px solid #e80174 !important; + } + + ${i} figure { + outline: 1px solid #ff00bb !important; + } + + ${i} figcaption { + outline: 1px solid #bf0032 !important; + } + + ${i} table { + outline: 1px solid #00cc99 !important; + } + + ${i} caption { + outline: 1px solid #37ffc4 !important; + } + + ${i} thead { + outline: 1px solid #98daca !important; + } + + ${i} tbody { + outline: 1px solid #64a7a0 !important; + } + + ${i} tfoot { + outline: 1px solid #22746b !important; + } + + ${i} tr { + outline: 1px solid #86c0b2 !important; + } + + ${i} th { + outline: 1px solid #a1e7d6 !important; + } + + ${i} td { + outline: 1px solid #3f5a54 !important; + } + + ${i} col { + outline: 1px solid #6c9a8f !important; + } + + ${i} colgroup { + outline: 1px solid #6c9a9d !important; + } + + ${i} button { + outline: 1px solid #da8301 !important; + } + + ${i} datalist { + outline: 1px solid #c06000 !important; + } + + ${i} fieldset { + outline: 1px solid #d95100 !important; + } + + ${i} form { + outline: 1px solid #d23600 !important; + } + + ${i} input { + outline: 1px solid #fca600 !important; + } + + ${i} keygen { + outline: 1px solid #b31e00 !important; + } + + ${i} label { + outline: 1px solid #ee8900 !important; + } + + ${i} legend { + outline: 1px solid #de6d00 !important; + } + + ${i} meter { + outline: 1px solid #e8630c !important; + } + + ${i} optgroup { + outline: 1px solid #b33600 !important; + } + + ${i} option { + outline: 1px solid #ff8a00 !important; + } + + ${i} output { + outline: 1px solid #ff9619 !important; + } + + ${i} progress { + outline: 1px solid #e57c00 !important; + } + + ${i} select { + outline: 1px solid #e26e0f !important; + } + + ${i} textarea { + outline: 1px solid #cc5400 !important; + } + + ${i} details { + outline: 1px solid #33848f !important; + } + + ${i} summary { + outline: 1px solid #60a1a6 !important; + } + + ${i} command { + outline: 1px solid #438da1 !important; + } + + ${i} menu { + outline: 1px solid #449da6 !important; + } + + ${i} del { + outline: 1px solid #bf0000 !important; + } + + ${i} ins { + outline: 1px solid #400000 !important; + } + + ${i} img { + outline: 1px solid #22746b !important; + } + + ${i} iframe { + outline: 1px solid #64a7a0 !important; + } + + ${i} embed { + outline: 1px solid #98daca !important; + } + + ${i} object { + outline: 1px solid #00cc99 !important; + } + + ${i} param { + outline: 1px solid #37ffc4 !important; + } + + ${i} video { + outline: 1px solid #6ee866 !important; + } + + ${i} audio { + outline: 1px solid #027353 !important; + } + + ${i} source { + outline: 1px solid #012426 !important; + } + + ${i} canvas { + outline: 1px solid #a2f570 !important; + } + + ${i} track { + outline: 1px solid #59a600 !important; + } + + ${i} map { + outline: 1px solid #7be500 !important; + } + + ${i} area { + outline: 1px solid #305900 !important; + } + + ${i} a { + outline: 1px solid #ff62ab !important; + } + + ${i} em { + outline: 1px solid #800b41 !important; + } + + ${i} strong { + outline: 1px solid #ff1583 !important; + } + + ${i} i { + outline: 1px solid #803156 !important; + } + + ${i} b { + outline: 1px solid #cc1169 !important; + } + + ${i} u { + outline: 1px solid #ff0430 !important; + } + + ${i} s { + outline: 1px solid #f805e3 !important; + } + + ${i} small { + outline: 1px solid #d107b2 !important; + } + + ${i} abbr { + outline: 1px solid #4a0263 !important; + } + + ${i} q { + outline: 1px solid #240018 !important; + } + + ${i} cite { + outline: 1px solid #64003c !important; + } + + ${i} dfn { + outline: 1px solid #b4005a !important; + } + + ${i} sub { + outline: 1px solid #dba0c8 !important; + } + + ${i} sup { + outline: 1px solid #cc0256 !important; + } + + ${i} time { + outline: 1px solid #d6606d !important; + } + + ${i} code { + outline: 1px solid #e04251 !important; + } + + ${i} kbd { + outline: 1px solid #5e001f !important; + } + + ${i} samp { + outline: 1px solid #9c0033 !important; + } + + ${i} var { + outline: 1px solid #d90047 !important; + } + + ${i} mark { + outline: 1px solid #ff0053 !important; + } + + ${i} bdi { + outline: 1px solid #bf3668 !important; + } + + ${i} bdo { + outline: 1px solid #6f1400 !important; + } + + ${i} ruby { + outline: 1px solid #ff7b93 !important; + } + + ${i} rt { + outline: 1px solid #ff2f54 !important; + } + + ${i} rp { + outline: 1px solid #803e49 !important; + } + + ${i} span { + outline: 1px solid #cc2643 !important; + } + + ${i} br { + outline: 1px solid #db687d !important; + } + + ${i} wbr { + outline: 1px solid #db175b !important; + }`}var e=(i,t)=>{let{globals:o}=t,n=[!0,"true"].includes(o[m]),d=t.viewMode==="docs",l=x(()=>s(d?'[data-story-block="true"]':".sb-show-main"),[t]);return f(()=>{let a=d?`addon-outline-docs-${t.id}`:"addon-outline";return n?b(a,l):u(a),()=>{u(a)}},[n,l,t]),i()},h=[e],g={[m]:!1};export{h as decorators,g as initialGlobals}; diff --git a/storybook/assets/preview-gLmJTRpJ.js b/storybook/assets/preview-gLmJTRpJ.js new file mode 100644 index 0000000..d4dd0da --- /dev/null +++ b/storybook/assets/preview-gLmJTRpJ.js @@ -0,0 +1,28 @@ +var Jt=Object.defineProperty;var Xt=(e,r,t)=>r in e?Jt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var xe=(e,r,t)=>Xt(e,typeof r!="symbol"?r+"":r,t);const{addons:Zt}=__STORYBOOK_MODULE_PREVIEW_API__,{once:Qt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:ot,STORY_RENDER_PHASE_CHANGED:er,SET_CURRENT_STORY:tr}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:ce}=__STORYBOOK_MODULE_GLOBAL__;var rr=Object.create,Et=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,Tt=Object.getOwnPropertyNames,ir=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty,or=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ue=(e,r)=>function(){return r||(0,e[Tt(e)[0]])((r={exports:{}}).exports,r),r.exports},cr=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of Tt(r))!ar.call(e,s)&&s!==t&&Et(e,s,{get:()=>r[s],enumerable:!(l=nr(r,s))||l.enumerable});return e},de=(e,r,t)=>(t=e!=null?rr(ir(e)):{},cr(Et(t,"default",{value:e,enumerable:!0}),e)),ur=ue({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,r){var t=(_=0)=>o=>`\x1B[${38+_};5;${o}m`,l=(_=0)=>(o,u,y)=>`\x1B[${38+_};2;${o};${u};${y}m`;function s(){let _=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.gray=o.color.blackBright,o.bgColor.bgGray=o.bgColor.bgBlackBright,o.color.grey=o.color.blackBright,o.bgColor.bgGrey=o.bgColor.bgBlackBright;for(let[u,y]of Object.entries(o)){for(let[g,i]of Object.entries(y))o[g]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},y[g]=o[g],_.set(i[0],i[1]);Object.defineProperty(o,u,{value:y,enumerable:!1})}return Object.defineProperty(o,"codes",{value:_,enumerable:!1}),o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi256=t(),o.color.ansi16m=l(),o.bgColor.ansi256=t(10),o.bgColor.ansi16m=l(10),Object.defineProperties(o,{rgbToAnsi256:{value:(u,y,g)=>u===y&&y===g?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(y/255*5)+Math.round(g/255*5),enumerable:!1},hexToRgb:{value:u=>{let y=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!y)return[0,0,0];let{colorString:g}=y.groups;g.length===3&&(g=g.split("").map(p=>p+p).join(""));let i=Number.parseInt(g,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:u=>o.rgbToAnsi256(...o.hexToRgb(u)),enumerable:!1}}),o}Object.defineProperty(r,"exports",{enumerable:!0,get:s})}}),Be=ue({"../../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=t,e.printIteratorValues=l,e.printListItems=s,e.printObjectProperties=_;var r=(o,u)=>{let y=Object.keys(o),g=u!==null?y.sort(u):y;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(o).forEach(i=>{Object.getOwnPropertyDescriptor(o,i).enumerable&&g.push(i)}),g};function t(o,u,y,g,i,p,f=": "){let b="",m=0,h=o.next();if(!h.done){b+=u.spacingOuter;let d=y+u.indent;for(;!h.done;){if(b+=d,m++===u.maxWidth){b+="…";break}let S=p(h.value[0],u,d,g,i),E=p(h.value[1],u,d,g,i);b+=S+f+E,h=o.next(),h.done?u.min||(b+=","):b+=`,${u.spacingInner}`}b+=u.spacingOuter+y}return b}function l(o,u,y,g,i,p){let f="",b=0,m=o.next();if(!m.done){f+=u.spacingOuter;let h=y+u.indent;for(;!m.done;){if(f+=h,b++===u.maxWidth){f+="…";break}f+=p(m.value,u,h,g,i),m=o.next(),m.done?u.min||(f+=","):f+=`,${u.spacingInner}`}f+=u.spacingOuter+y}return f}function s(o,u,y,g,i,p){let f="";if(o.length){f+=u.spacingOuter;let b=y+u.indent;for(let m=0;m{let h=g.toString();if(h==="ArrayContaining"||h==="ArrayNotContaining")return++f>i.maxDepth?`[${h}]`:`${h+s}[${(0,r.printListItems)(g.sample,i,p,f,b,m)}]`;if(h==="ObjectContaining"||h==="ObjectNotContaining")return++f>i.maxDepth?`[${h}]`:`${h+s}{${(0,r.printObjectProperties)(g.sample,i,p,f,b,m)}}`;if(h==="StringMatching"||h==="StringNotMatching"||h==="StringContaining"||h==="StringNotContaining")return h+s+m(g.sample,i,p,f,b);if(typeof g.toAsymmetricMatcher!="function")throw new Error(`Asymmetric matcher ${g.constructor.name} does not implement toAsymmetricMatcher()`);return g.toAsymmetricMatcher()};e.serialize=_;var o=g=>g&&g.$$typeof===l;e.test=o;var u={serialize:_,test:o},y=u;e.default=y}}),sr=ue({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Be(),t=" ",l=["DOMStringMap","NamedNodeMap"],s=/^(HTML\w*Collection|NodeList)$/,_=p=>l.indexOf(p)!==-1||s.test(p),o=p=>p&&p.constructor&&!!p.constructor.name&&_(p.constructor.name);e.test=o;var u=p=>p.constructor.name==="NamedNodeMap",y=(p,f,b,m,h,d)=>{let S=p.constructor.name;return++m>f.maxDepth?`[${S}]`:(f.min?"":S+t)+(l.indexOf(S)!==-1?`{${(0,r.printObjectProperties)(u(p)?Array.from(p).reduce((E,A)=>(E[A.name]=A.value,E),{}):{...p},f,b,m,h,d)}}`:`[${(0,r.printListItems)(Array.from(p),f,b,m,h,d)}]`)};e.serialize=y;var g={serialize:y,test:o},i=g;e.default=i}}),mr=ue({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(t){return t.replace(//g,">")}}}),Ge=ue({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var r=t(mr());function t(g){return g&&g.__esModule?g:{default:g}}var l=(g,i,p,f,b,m,h)=>{let d=f+p.indent,S=p.colors;return g.map(E=>{let A=i[E],w=h(A,p,d,b,m);return typeof A!="string"&&(w.indexOf(` +`)!==-1&&(w=p.spacingOuter+d+w+p.spacingOuter+f),w=`{${w}}`),`${p.spacingInner+f+S.prop.open+E+S.prop.close}=${S.value.open}${w}${S.value.close}`}).join("")};e.printProps=l;var s=(g,i,p,f,b,m)=>g.map(h=>i.spacingOuter+p+(typeof h=="string"?_(h,i):m(h,i,p,f,b))).join("");e.printChildren=s;var _=(g,i)=>{let p=i.colors.content;return p.open+(0,r.default)(g)+p.close};e.printText=_;var o=(g,i)=>{let p=i.colors.comment;return`${p.open}${p.close}`};e.printComment=o;var u=(g,i,p,f,b)=>{let m=f.colors.tag;return`${m.open}<${g}${i&&m.close+i+f.spacingOuter+b+m.open}${p?`>${m.close}${p}${f.spacingOuter}${b}${m.open}${m.close}`};e.printElement=u;var y=(g,i)=>{let p=i.colors.tag;return`${p.open}<${g}${p.close} …${p.open} />${p.close}`};e.printElementAsLeaf=y}}),fr=ue({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Ge(),t=1,l=3,s=8,_=11,o=/^((HTML|SVG)\w*)?Element$/,u=d=>{try{return typeof d.hasAttribute=="function"&&d.hasAttribute("is")}catch{return!1}},y=d=>{let S=d.constructor.name,{nodeType:E,tagName:A}=d,w=typeof A=="string"&&A.includes("-")||u(d);return E===t&&(o.test(S)||w)||E===l&&S==="Text"||E===s&&S==="Comment"||E===_&&S==="DocumentFragment"},g=d=>{var S;return((S=d==null?void 0:d.constructor)==null?void 0:S.name)&&y(d)};e.test=g;function i(d){return d.nodeType===l}function p(d){return d.nodeType===s}function f(d){return d.nodeType===_}var b=(d,S,E,A,w,C)=>{if(i(d))return(0,r.printText)(d.data,S);if(p(d))return(0,r.printComment)(d.data,S);let N=f(d)?"DocumentFragment":d.tagName.toLowerCase();return++A>S.maxDepth?(0,r.printElementAsLeaf)(N,S):(0,r.printElement)(N,(0,r.printProps)(f(d)?[]:Array.from(d.attributes,I=>I.name).sort(),f(d)?{}:Array.from(d.attributes).reduce((I,O)=>(I[O.name]=O.value,I),{}),S,E+S.indent,A,w,C),(0,r.printChildren)(Array.prototype.slice.call(d.childNodes||d.children),S,E+S.indent,A,w,C),S,E)};e.serialize=b;var m={serialize:b,test:g},h=m;e.default=h}}),gr=ue({"../../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Be(),t="@@__IMMUTABLE_ITERABLE__@@",l="@@__IMMUTABLE_LIST__@@",s="@@__IMMUTABLE_KEYED__@@",_="@@__IMMUTABLE_MAP__@@",o="@@__IMMUTABLE_ORDERED__@@",u="@@__IMMUTABLE_RECORD__@@",y="@@__IMMUTABLE_SEQ__@@",g="@@__IMMUTABLE_SET__@@",i="@@__IMMUTABLE_STACK__@@",p=O=>`Immutable.${O}`,f=O=>`[${O}]`,b=" ",m="…",h=(O,j,B,F,x,v,k)=>++F>j.maxDepth?f(p(k)):`${p(k)+b}{${(0,r.printIteratorEntries)(O.entries(),j,B,F,x,v)}}`;function d(O){let j=0;return{next(){if(j{let k=p(O._name||"Record");return++F>j.maxDepth?f(k):`${k+b}{${(0,r.printIteratorEntries)(d(O),j,B,F,x,v)}}`},E=(O,j,B,F,x,v)=>{let k=p("Seq");return++F>j.maxDepth?f(k):O[s]?`${k+b}{${O._iter||O._object?(0,r.printIteratorEntries)(O.entries(),j,B,F,x,v):m}}`:`${k+b}[${O._iter||O._array||O._collection||O._iterable?(0,r.printIteratorValues)(O.values(),j,B,F,x,v):m}]`},A=(O,j,B,F,x,v,k)=>++F>j.maxDepth?f(p(k)):`${p(k)+b}[${(0,r.printIteratorValues)(O.values(),j,B,F,x,v)}]`,w=(O,j,B,F,x,v)=>O[_]?h(O,j,B,F,x,v,O[o]?"OrderedMap":"Map"):O[l]?A(O,j,B,F,x,v,"List"):O[g]?A(O,j,B,F,x,v,O[o]?"OrderedSet":"Set"):O[i]?A(O,j,B,F,x,v,"Stack"):O[y]?E(O,j,B,F,x,v):S(O,j,B,F,x,v);e.serialize=w;var C=O=>O&&(O[t]===!0||O[u]===!0);e.test=C;var N={serialize:w,test:C},I=N;e.default=I}}),yr=ue({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var r=Symbol.for("react.element"),t=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),u=Symbol.for("react.context"),y=Symbol.for("react.server_context"),g=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h=!1,d=!1,S=!1,E=!1,A=!1,w;w=Symbol.for("react.module.reference");function C(P){return!!(typeof P=="string"||typeof P=="function"||P===l||P===_||A||P===s||P===i||P===p||E||P===m||h||d||S||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===f||P.$$typeof===o||P.$$typeof===u||P.$$typeof===g||P.$$typeof===w||P.getModuleId!==void 0))}function N(P){if(typeof P=="object"&&P!==null){var V=P.$$typeof;switch(V){case r:var J=P.type;switch(J){case l:case _:case s:case i:case p:return J;default:var fe=J&&J.$$typeof;switch(fe){case y:case u:case g:case b:case f:case o:return fe;default:return V}}case t:return V}}}var I=u,O=o,j=r,B=g,F=l,x=b,v=f,k=t,re=_,D=s,H=i,W=p,G=!1,Z=!1;function ie(P){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(P){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(P){return N(P)===u}function le(P){return N(P)===o}function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function ee(P){return N(P)===g}function te(P){return N(P)===l}function se(P){return N(P)===b}function me(P){return N(P)===f}function a(P){return N(P)===t}function R(P){return N(P)===_}function L(P){return N(P)===s}function Y(P){return N(P)===i}function U(P){return N(P)===p}e.ContextConsumer=I,e.ContextProvider=O,e.Element=j,e.ForwardRef=B,e.Fragment=F,e.Lazy=x,e.Memo=v,e.Portal=k,e.Profiler=re,e.StrictMode=D,e.Suspense=H,e.SuspenseList=W,e.isAsyncMode=ie,e.isConcurrentMode=X,e.isContextConsumer=Q,e.isContextProvider=le,e.isElement=ae,e.isForwardRef=ee,e.isFragment=te,e.isLazy=se,e.isMemo=me,e.isPortal=a,e.isProfiler=R,e.isStrictMode=L,e.isSuspense=Y,e.isSuspenseList=U,e.isValidElementType=C,e.typeOf=N})()}}),hr=ue({"../../node_modules/pretty-format/node_modules/react-is/index.js"(e,r){r.exports=yr()}}),pr=ue({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=s(hr()),t=Ge();function l(f){if(typeof WeakMap!="function")return null;var b=new WeakMap,m=new WeakMap;return(l=function(h){return h?m:b})(f)}function s(f,b){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var m=l(b);if(m&&m.has(f))return m.get(f);var h={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in f)if(S!=="default"&&Object.prototype.hasOwnProperty.call(f,S)){var E=d?Object.getOwnPropertyDescriptor(f,S):null;E&&(E.get||E.set)?Object.defineProperty(h,S,E):h[S]=f[S]}return h.default=f,m&&m.set(f,h),h}var _=(f,b=[])=>(Array.isArray(f)?f.forEach(m=>{_(m,b)}):f!=null&&f!==!1&&b.push(f),b),o=f=>{let b=f.type;if(typeof b=="string")return b;if(typeof b=="function")return b.displayName||b.name||"Unknown";if(r.isFragment(f))return"React.Fragment";if(r.isSuspense(f))return"React.Suspense";if(typeof b=="object"&&b!==null){if(r.isContextProvider(f))return"Context.Provider";if(r.isContextConsumer(f))return"Context.Consumer";if(r.isForwardRef(f)){if(b.displayName)return b.displayName;let m=b.render.displayName||b.render.name||"";return m!==""?`ForwardRef(${m})`:"ForwardRef"}if(r.isMemo(f)){let m=b.displayName||b.type.displayName||b.type.name||"";return m!==""?`Memo(${m})`:"Memo"}}return"UNDEFINED"},u=f=>{let{props:b}=f;return Object.keys(b).filter(m=>m!=="children"&&b[m]!==void 0).sort()},y=(f,b,m,h,d,S)=>++h>b.maxDepth?(0,t.printElementAsLeaf)(o(f),b):(0,t.printElement)(o(f),(0,t.printProps)(u(f),f.props,b,m+b.indent,h,d,S),(0,t.printChildren)(_(f.props.children),b,m+b.indent,h,d,S),b,m);e.serialize=y;var g=f=>f!=null&&r.isElement(f);e.test=g;var i={serialize:y,test:g},p=i;e.default=p}}),dr=ue({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var r=Ge(),t=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,l=typeof t=="function"&&t.for?t.for("react.test.json"):245830487,s=g=>{let{props:i}=g;return i?Object.keys(i).filter(p=>i[p]!==void 0).sort():[]},_=(g,i,p,f,b,m)=>++f>i.maxDepth?(0,r.printElementAsLeaf)(g.type,i):(0,r.printElement)(g.type,g.props?(0,r.printProps)(s(g),g.props,i,p+i.indent,f,b,m):"",g.children?(0,r.printChildren)(g.children,i,p+i.indent,f,b,m):"",i,p);e.serialize=_;var o=g=>g&&g.$$typeof===l;e.test=o;var u={serialize:_,test:o},y=u;e.default=y}}),Je=ue({"../../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=te,e.plugins=void 0;var r=g(ur()),t=Be(),l=g(lr()),s=g(sr()),_=g(fr()),o=g(gr()),u=g(pr()),y=g(dr());function g(a){return a&&a.__esModule?a:{default:a}}var i=Object.prototype.toString,p=Date.prototype.toISOString,f=Error.prototype.toString,b=RegExp.prototype.toString,m=a=>typeof a.constructor=="function"&&a.constructor.name||"Object",h=a=>typeof window<"u"&&a===window,d=/^Symbol\((.*)\)(.*)$/,S=/\n/gi,E=class extends Error{constructor(a,R){super(a),this.stack=R,this.name=this.constructor.name}};function A(a){return a==="[object Array]"||a==="[object ArrayBuffer]"||a==="[object DataView]"||a==="[object Float32Array]"||a==="[object Float64Array]"||a==="[object Int8Array]"||a==="[object Int16Array]"||a==="[object Int32Array]"||a==="[object Uint8Array]"||a==="[object Uint8ClampedArray]"||a==="[object Uint16Array]"||a==="[object Uint32Array]"}function w(a){return Object.is(a,-0)?"-0":String(a)}function C(a){return`${a}n`}function N(a,R){return R?`[Function ${a.name||"anonymous"}]`:"[Function]"}function I(a){return String(a).replace(d,"Symbol($1)")}function O(a){return`[${f.call(a)}]`}function j(a,R,L,Y){if(a===!0||a===!1)return`${a}`;if(a===void 0)return"undefined";if(a===null)return"null";let U=typeof a;if(U==="number")return w(a);if(U==="bigint")return C(a);if(U==="string")return Y?`"${a.replace(/"|\\/g,"\\$&")}"`:`"${a}"`;if(U==="function")return N(a,R);if(U==="symbol")return I(a);let P=i.call(a);return P==="[object WeakMap]"?"WeakMap {}":P==="[object WeakSet]"?"WeakSet {}":P==="[object Function]"||P==="[object GeneratorFunction]"?N(a,R):P==="[object Symbol]"?I(a):P==="[object Date]"?isNaN(+a)?"Date { NaN }":p.call(a):P==="[object Error]"?O(a):P==="[object RegExp]"?L?b.call(a).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):b.call(a):a instanceof Error?O(a):null}function B(a,R,L,Y,U,P){if(U.indexOf(a)!==-1)return"[Circular]";U=U.slice(),U.push(a);let V=++Y>R.maxDepth,J=R.min;if(R.callToJSON&&!V&&a.toJSON&&typeof a.toJSON=="function"&&!P)return k(a.toJSON(),R,L,Y,U,!0);let fe=i.call(a);return fe==="[object Arguments]"?V?"[Arguments]":`${J?"":"Arguments "}[${(0,t.printListItems)(a,R,L,Y,U,k)}]`:A(fe)?V?`[${a.constructor.name}]`:`${J||!R.printBasicPrototype&&a.constructor.name==="Array"?"":`${a.constructor.name} `}[${(0,t.printListItems)(a,R,L,Y,U,k)}]`:fe==="[object Map]"?V?"[Map]":`Map {${(0,t.printIteratorEntries)(a.entries(),R,L,Y,U,k," => ")}}`:fe==="[object Set]"?V?"[Set]":`Set {${(0,t.printIteratorValues)(a.values(),R,L,Y,U,k)}}`:V||h(a)?`[${m(a)}]`:`${J||!R.printBasicPrototype&&m(a)==="Object"?"":`${m(a)} `}{${(0,t.printObjectProperties)(a,R,L,Y,U,k)}}`}function F(a){return a.serialize!=null}function x(a,R,L,Y,U,P){let V;try{V=F(a)?a.serialize(R,L,Y,U,P,k):a.print(R,J=>k(J,L,Y,U,P),J=>{let fe=Y+L.indent;return fe+J.replace(S,` +${fe}`)},{edgeSpacing:L.spacingOuter,min:L.min,spacing:L.spacingInner},L.colors)}catch(J){throw new E(J.message,J.stack)}if(typeof V!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof V}".`);return V}function v(a,R){for(let L=0;La,W=H({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:re});e.DEFAULT_OPTIONS=W;function G(a){if(Object.keys(a).forEach(R=>{if(!Object.prototype.hasOwnProperty.call(W,R))throw new Error(`pretty-format: Unknown option "${R}".`)}),a.min&&a.indent!==void 0&&a.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(a.theme!==void 0){if(a.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof a.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof a.theme}".`)}}var Z=a=>D.reduce((R,L)=>{let Y=a.theme&&a.theme[L]!==void 0?a.theme[L]:re[L],U=Y&&r.default[Y];if(U&&typeof U.close=="string"&&typeof U.open=="string")R[L]=U;else throw new Error(`pretty-format: Option "theme" has a key "${L}" whose value "${Y}" is undefined in ansi-styles.`);return R},Object.create(null)),ie=()=>D.reduce((a,R)=>(a[R]={close:"",open:""},a),Object.create(null)),X=a=>(a==null?void 0:a.printFunctionName)??W.printFunctionName,Q=a=>(a==null?void 0:a.escapeRegex)??W.escapeRegex,le=a=>(a==null?void 0:a.escapeString)??W.escapeString,ae=a=>({callToJSON:(a==null?void 0:a.callToJSON)??W.callToJSON,colors:a!=null&&a.highlight?Z(a):ie(),compareKeys:typeof(a==null?void 0:a.compareKeys)=="function"||(a==null?void 0:a.compareKeys)===null?a.compareKeys:W.compareKeys,escapeRegex:Q(a),escapeString:le(a),indent:a!=null&&a.min?"":ee((a==null?void 0:a.indent)??W.indent),maxDepth:(a==null?void 0:a.maxDepth)??W.maxDepth,maxWidth:(a==null?void 0:a.maxWidth)??W.maxWidth,min:(a==null?void 0:a.min)??W.min,plugins:(a==null?void 0:a.plugins)??W.plugins,printBasicPrototype:(a==null?void 0:a.printBasicPrototype)??!0,printFunctionName:X(a),spacingInner:a!=null&&a.min?" ":` +`,spacingOuter:a!=null&&a.min?"":` +`});function ee(a){return new Array(a+1).join(" ")}function te(a,R){if(R&&(G(R),R.plugins)){let Y=v(R.plugins,a);if(Y!==null)return x(Y,a,ae(R),"",0,[])}let L=j(a,X(R),Q(R),le(R));return L!==null?L:B(a,ae(R),"",0,[])}var se={AsymmetricMatcher:l.default,DOMCollection:s.default,DOMElement:_.default,Immutable:o.default,ReactElement:u.default,ReactTestComponent:y.default};e.plugins=se;var me=te;e.default=me}}),wt=ue({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=b;var r="diff-sequences",t=0,l=(m,h,d,S,E)=>{let A=0;for(;m{let A=0;for(;m<=h&&d<=S&&E(h,S);)h-=1,S-=1,A+=1;return A},_=(m,h,d,S,E,A,w)=>{let C=0,N=-m,I=A[C],O=I;A[C]+=l(I+1,h,S+I-N+1,d,E);let j=m{let C=0,N=m,I=A[C],O=I;A[C]-=s(h,I-1,d,S+I-N-1,E);let j=m{let j=S-h,B=d-h,F=E-S-B,x=-F-(m-1),v=-F+(m-1),k=t,re=m{let j=E-d,B=d-h,F=E-S-B,x=F-m,v=F+m,k=t,re=m{let I=S-h,O=E-d,j=d-h,B=E-S,F=B-j,x=j,v=j;if(w[0]=h-1,C[0]=d,F%2===0){let k=(m||F)/2,re=(j+B)/2;for(let D=1;D<=re;D+=1)if(x=_(D,d,E,I,A,w,x),D{if(E-S{le(ee,se,te)},isCommon:(ee,te)=>ae(te,ee)}}let X=h,Q=d;h=S,d=E,S=X,E=Q}let{foundSubsequence:O,isCommon:j}=w[A?1:0];g(m,h,d,S,E,j,C,N,I);let{nChangePreceding:B,aEndPreceding:F,bEndPreceding:x,nCommonPreceding:v,aCommonPreceding:k,bCommonPreceding:re,nCommonFollowing:D,aCommonFollowing:H,bCommonFollowing:W,nChangeFollowing:G,aStartFollowing:Z,bStartFollowing:ie}=I;h{if(typeof h!="number")throw new TypeError(`${r}: ${m} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${r}: ${m} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${r}: ${m} value ${h} is a negative integer`)},f=(m,h)=>{let d=typeof h;if(d!=="function")throw new TypeError(`${r}: ${m} typeof ${d} is not a function`)};function b(m,h,d,S){p("aLength",m),p("bLength",h),f("isCommon",d),f("foundSubsequence",S);let E=l(0,m,0,h,d);if(E!==0&&S(E,0,0),m!==E||h!==E){let A=E,w=E,C=s(A,m-1,w,h-1,d),N=m-C,I=h-C,O=E+C;m!==O&&h!==O&&i(0,A,N,w,I,!1,[{foundSubsequence:S,isCommon:d}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),C!==0&&S(C,N,I)}}}}),Ct=ue({"../../node_modules/loupe/loupe.js"(e,r){(function(t,l){typeof e=="object"&&typeof r<"u"?l(e):typeof define=="function"&&define.amd?define(["exports"],l):(t=typeof globalThis<"u"?globalThis:t||self,l(t.loupe={}))})(e,function(t){function l(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(c){return typeof c}:l=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l(n)}function s(n,c){return _(n)||o(n,c)||u(n,c)||g()}function _(n){if(Array.isArray(n))return n}function o(n,c){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var T=[],M=!0,$=!1,z=void 0;try{for(var q=n[Symbol.iterator](),K;!(M=(K=q.next()).done)&&(T.push(K.value),!(c&&T.length===c));M=!0);}catch(oe){$=!0,z=oe}finally{try{!M&&q.return!=null&&q.return()}finally{if($)throw z}}return T}}function u(n,c){if(n){if(typeof n=="string")return y(n,c);var T=Object.prototype.toString.call(n).slice(8,-1);if(T==="Object"&&n.constructor&&(T=n.constructor.name),T==="Map"||T==="Set")return Array.from(n);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return y(n,c)}}function y(n,c){(c==null||c>n.length)&&(c=n.length);for(var T=0,M=new Array(c);T0&&arguments[0]!==void 0?arguments[0]:{},c=n.showHidden,T=c===void 0?!1:c,M=n.depth,$=M===void 0?2:M,z=n.colors,q=z===void 0?!1:z,K=n.customInspect,oe=K===void 0?!0:K,ne=n.showProxy,ge=ne===void 0?!1:ne,pe=n.maxArrayLength,Fe=pe===void 0?1/0:pe,Te=n.breakLength,be=Te===void 0?1/0:Te,we=n.seen,Ht=we===void 0?[]:we,it=n.truncate,Vt=it===void 0?1/0:it,at=n.stylize,Gt=at===void 0?String:at,Le={showHidden:!!T,depth:Number($),colors:!!q,customInspect:!!oe,showProxy:!!ge,maxArrayLength:Number(Fe),breakLength:Number(be),truncate:Number(Vt),seen:Ht,stylize:Gt};return Le.colors&&(Le.stylize=b),Le}function h(n,c){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:f;n=String(n);var M=T.length,$=n.length;return M>c&&$>M?T:$>c&&$>M?"".concat(n.slice(0,c-M)).concat(T):n}function d(n,c,T){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";T=T||c.inspect;var $=n.length;if($===0)return"";for(var z=c.truncate,q="",K="",oe="",ne=0;ne<$;ne+=1){var ge=ne+1===n.length,pe=ne+2===n.length;oe="".concat(f,"(").concat(n.length-ne,")");var Fe=n[ne];c.truncate=z-q.length-(ge?0:M.length);var Te=K||T(Fe,c)+(ge?"":M),be=q.length+Te.length,we=be+oe.length;if(ge&&be>z&&q.length+oe.length<=z||!ge&&!pe&&we>z||(K=ge?"":T(n[ne+1],c)+(pe?"":M),!ge&&pe&&we>z&&be+K.length>z))break;if(q+=Te,!ge&&!pe&&be+K.length>=z){oe="".concat(f,"(").concat(n.length-ne-1,")");break}oe=""}return"".concat(q).concat(oe)}function S(n){return n.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?n:JSON.stringify(n).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function E(n,c){var T=s(n,2),M=T[0],$=T[1];return c.truncate-=2,typeof M=="string"?M=S(M):typeof M!="number"&&(M="[".concat(c.inspect(M,c),"]")),c.truncate-=M.length,$=c.inspect($,c),"".concat(M,": ").concat($)}function A(n,c){var T=Object.keys(n).slice(n.length);if(!n.length&&!T.length)return"[]";c.truncate-=4;var M=d(n,c);c.truncate-=M.length;var $="";return T.length&&($=d(T.map(function(z){return[z,n[z]]}),c,E)),"[ ".concat(M).concat($?", ".concat($):""," ]")}var w=Function.prototype.toString,C=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,N=512;function I(n){if(typeof n!="function")return null;var c="";if(typeof Function.prototype.name>"u"&&typeof n.name>"u"){var T=w.call(n);if(T.indexOf("(")>N)return c;var M=T.match(C);M&&(c=M[1])}else c=n.name;return c}var O=I,j=function(n){return typeof Buffer=="function"&&n instanceof Buffer?"Buffer":n[Symbol.toStringTag]?n[Symbol.toStringTag]:O(n.constructor)};function B(n,c){var T=j(n);c.truncate-=T.length+4;var M=Object.keys(n).slice(n.length);if(!n.length&&!M.length)return"".concat(T,"[]");for(var $="",z=0;z ").concat($)}function k(n){var c=[];return n.forEach(function(T,M){c.push([M,T])}),c}function re(n,c){var T=n.size-1;return T<=0?"Map{}":(c.truncate-=7,"Map{ ".concat(d(k(n),c,v)," }"))}var D=Number.isNaN||function(n){return n!==n};function H(n,c){return D(n)?c.stylize("NaN","number"):n===1/0?c.stylize("Infinity","number"):n===-1/0?c.stylize("-Infinity","number"):n===0?c.stylize(1/n===1/0?"+0":"-0","number"):c.stylize(h(n,c.truncate),"number")}function W(n,c){var T=h(n.toString(),c.truncate-1);return T!==f&&(T+="n"),c.stylize(T,"bigint")}function G(n,c){var T=n.toString().split("/")[2],M=c.truncate-(2+T.length),$=n.source;return c.stylize("/".concat(h($,M),"/").concat(T),"regexp")}function Z(n){var c=[];return n.forEach(function(T){c.push(T)}),c}function ie(n,c){return n.size===0?"Set{}":(c.truncate-=7,"Set{ ".concat(d(Z(n),c)," }"))}var X=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Q={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},le=16,ae=4;function ee(n){return Q[n]||"\\u".concat("0000".concat(n.charCodeAt(0).toString(le)).slice(-ae))}function te(n,c){return X.test(n)&&(n=n.replace(X,ee)),c.stylize("'".concat(h(n,c.truncate-2),"'"),"string")}function se(n){return"description"in Symbol.prototype?n.description?"Symbol(".concat(n.description,")"):"Symbol()":n.toString()}var me=function(){return"Promise{…}"};try{var a=process.binding("util"),R=a.getPromiseDetails,L=a.kPending,Y=a.kRejected;Array.isArray(R(Promise.resolve()))&&(me=function(n,c){var T=R(n),M=s(T,2),$=M[0],z=M[1];return $===L?"Promise{}":"Promise".concat($===Y?"!":"","{").concat(c.inspect(z,c),"}")})}catch{}var U=me;function P(n,c){var T=Object.getOwnPropertyNames(n),M=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[];if(T.length===0&&M.length===0)return"{}";if(c.truncate-=4,c.seen=c.seen||[],c.seen.indexOf(n)>=0)return"[Circular]";c.seen.push(n);var $=d(T.map(function(K){return[K,n[K]]}),c,E),z=d(M.map(function(K){return[K,n[K]]}),c,E);c.seen.pop();var q="";return $&&z&&(q=", "),"{ ".concat($).concat(q).concat(z," }")}var V=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function J(n,c){var T="";return V&&V in n&&(T=n[V]),T=T||O(n.constructor),(!T||T==="_class")&&(T=""),c.truncate-=T.length,"".concat(T).concat(P(n,c))}function fe(n,c){return n.length===0?"Arguments[]":(c.truncate-=13,"Arguments[ ".concat(d(n,c)," ]"))}var xt=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function kt(n,c){var T=Object.getOwnPropertyNames(n).filter(function(q){return xt.indexOf(q)===-1}),M=n.name;c.truncate-=M.length;var $="";typeof n.message=="string"?$=h(n.message,c.truncate):T.unshift("message"),$=$?": ".concat($):"",c.truncate-=$.length+5;var z=d(T.map(function(q){return[q,n[q]]}),c,E);return"".concat(M).concat($).concat(z?" { ".concat(z," }"):"")}function zt(n,c){var T=s(n,2),M=T[0],$=T[1];return c.truncate-=3,$?"".concat(c.stylize(M,"yellow"),"=").concat(c.stylize('"'.concat($,'"'),"string")):"".concat(c.stylize(M,"yellow"))}function De(n,c){return d(n,c,et,` +`)}function et(n,c){var T=n.getAttributeNames(),M=n.tagName.toLowerCase(),$=c.stylize("<".concat(M),"special"),z=c.stylize(">","special"),q=c.stylize(""),"special");c.truncate-=M.length*2+5;var K="";T.length>0&&(K+=" ",K+=d(T.map(function(ge){return[ge,n.getAttribute(ge)]}),c,zt," ")),c.truncate-=K.length;var oe=c.truncate,ne=De(n.children,c);return ne&&ne.length>oe&&(ne="".concat(f,"(").concat(n.children.length,")")),"".concat($).concat(K).concat(z).concat(ne).concat(q)}var vt=typeof Symbol=="function"&&typeof Symbol.for=="function",Ne=vt?Symbol.for("chai/inspect"):"@@chai/inspect",_e=!1;try{var tt=or("util");_e=tt.inspect?tt.inspect.custom:!1}catch{_e=!1}function rt(){this.key="chai/loupe__"+Math.random()+Date.now()}rt.prototype={get:function(n){return n[this.key]},has:function(n){return this.key in n},set:function(n,c){Object.isExtensible(n)&&Object.defineProperty(n,this.key,{value:c,configurable:!0})}};var $e=new(typeof WeakMap=="function"?WeakMap:rt),Re={},nt={undefined:function(n,c){return c.stylize("undefined","undefined")},null:function(n,c){return c.stylize(null,"null")},boolean:function(n,c){return c.stylize(n,"boolean")},Boolean:function(n,c){return c.stylize(n,"boolean")},number:H,Number:H,bigint:W,BigInt:W,string:te,String:te,function:x,Function:x,symbol:se,Symbol:se,Array:A,Date:F,Map:re,Set:ie,RegExp:G,Promise:U,WeakSet:function(n,c){return c.stylize("WeakSet{…}","special")},WeakMap:function(n,c){return c.stylize("WeakMap{…}","special")},Arguments:fe,Int8Array:B,Uint8Array:B,Uint8ClampedArray:B,Int16Array:B,Uint16Array:B,Int32Array:B,Uint32Array:B,Float32Array:B,Float64Array:B,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:kt,HTMLCollection:De,NodeList:De},Ut=function(n,c,T){return Ne in n&&typeof n[Ne]=="function"?n[Ne](c):_e&&_e in n&&typeof n[_e]=="function"?n[_e](c.depth,c):"inspect"in n&&typeof n.inspect=="function"?n.inspect(c.depth,c):"constructor"in n&&$e.has(n.constructor)?$e.get(n.constructor)(n,c):Re[T]?Re[T](n,c):""},Yt=Object.prototype.toString;function Ie(n,c){c=m(c),c.inspect=Ie;var T=c,M=T.customInspect,$=n===null?"null":l(n);if($==="object"&&($=Yt.call(n).slice(8,-1)),nt[$])return nt[$](n,c);if(M&&n){var z=Ut(n,c,$);if(z)return typeof z=="string"?z:Ie(z,c)}var q=n?Object.getPrototypeOf(n):!1;return q===Object.prototype||q===null?P(n,c):n&&typeof HTMLElement=="function"&&n instanceof HTMLElement?et(n,c):"constructor"in n?n.constructor!==Object?J(n,c):P(n,c):n===Object(n)?P(n,c):c.stylize(String(n),$)}function Wt(n,c){return $e.has(n)?!1:($e.set(n,c),!0)}function qt(n,c){return n in Re?!1:(Re[n]=c,!0)}var Kt=Ne;t.custom=Kt,t.default=Ie,t.inspect=Ie,t.registerConstructor=Wt,t.registerStringTag=qt,Object.defineProperty(t,"__esModule",{value:!0})})}}),he=de(Je()),ct=de(wt()),_r=Symbol("vitest:SAFE_COLORS"),br={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},Or=Object.entries(br);function Xe(e){return String(e)}Xe.open="";Xe.close="";var Sr=Or.reduce((e,[r])=>(e[r]=Xe,e),{isColorSupported:!1});function Er(){return globalThis[_r]||Sr}function ut(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}var Se=-1,Ee=1,je=0,Ce=class{constructor(e,r){xe(this,0);xe(this,1);this[0]=e,this[1]=r}},At="Compared values have no visual difference.",Tr="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";function wr(e,r){return e.replace(/\s+$/,t=>r(t))}function Ze(e,r,t,l,s,_){return e.length!==0?t(`${l} ${wr(e,s)}`):l!==" "?t(l):r&&_.length!==0?t(`${l} ${_}`):""}function Pt(e,r,{aColor:t,aIndicator:l,changeLineTrailingSpaceColor:s,emptyFirstOrLastLinePlaceholder:_}){return Ze(e,r,t,l,s,_)}function Mt(e,r,{bColor:t,bIndicator:l,changeLineTrailingSpaceColor:s,emptyFirstOrLastLinePlaceholder:_}){return Ze(e,r,t,l,s,_)}function Nt(e,r,{commonColor:t,commonIndicator:l,commonLineTrailingSpaceColor:s,emptyFirstOrLastLinePlaceholder:_}){return Ze(e,r,t,l,s,_)}function lt(e,r,t,l,{patchColor:s}){return s(`@@ -${e+1},${r-e} +${t+1},${l-t} @@`)}function Cr(e,r){let t=e.length,l=r.contextLines,s=l+l,_=t,o=!1,u=0,y=0;for(;y!==t;){let w=y;for(;y!==t&&e[y][0]===je;)y+=1;if(w!==y)if(w===0)y>l&&(_-=y-l,o=!0);else if(y===t){let C=y-w;C>l&&(_-=C-l,o=!0)}else{let C=y-w;C>s&&(_-=C-s,u+=1)}for(;y!==t&&e[y][0]!==je;)y+=1}let g=u!==0||o;u!==0?_+=u+1:o&&(_+=1);let i=_-1,p=[],f=0;g&&p.push("");let b=0,m=0,h=0,d=0,S=w=>{let C=p.length;p.push(Nt(w,C===0||C===i,r)),h+=1,d+=1},E=w=>{let C=p.length;p.push(Pt(w,C===0||C===i,r)),h+=1},A=w=>{let C=p.length;p.push(Mt(w,C===0||C===i,r)),d+=1};for(y=0;y!==t;){let w=y;for(;y!==t&&e[y][0]===je;)y+=1;if(w!==y)if(w===0){y>l&&(w=y-l,b=w,m=w,h=b,d=m);for(let C=w;C!==y;C+=1)S(e[C][1])}else if(y===t){let C=y-w>l?w+l:y;for(let N=w;N!==C;N+=1)S(e[N][1])}else{let C=y-w;if(C>s){let N=w+l;for(let O=w;O!==N;O+=1)S(e[O][1]);p[f]=lt(b,h,m,d,r),f=p.length,p.push("");let I=C-s;b=h+I,m=d+I,h=b,d=m;for(let O=y-l;O!==y;O+=1)S(e[O][1])}else for(let N=w;N!==y;N+=1)S(e[N][1])}for(;y!==t&&e[y][0]===Se;)E(e[y][1]),y+=1;for(;y!==t&&e[y][0]===Ee;)A(e[y][1]),y+=1}return g&&(p[f]=lt(b,h,m,d,r)),p.join(` +`)}function Ar(e,r){return e.map((t,l,s)=>{let _=t[1],o=l===0||l===s.length-1;switch(t[0]){case Se:return Pt(_,o,r);case Ee:return Mt(_,o,r);default:return Nt(_,o,r)}}).join(` +`)}var ke=e=>e,$t=5,Pr=0;function Mr(){let e=Er();return{aAnnotation:"Expected",aColor:e.green,aIndicator:"-",bAnnotation:"Received",bColor:e.red,bIndicator:"+",changeColor:e.inverse,changeLineTrailingSpaceColor:ke,commonColor:e.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ke,compareKeys:void 0,contextLines:$t,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:e.yellow,truncateThreshold:Pr,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ke}}function Nr(e){return e&&typeof e=="function"?e:void 0}function $r(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:$t}function Me(e={}){return{...Mr(),...e,compareKeys:Nr(e.compareKeys),contextLines:$r(e.contextLines)}}function Oe(e){return e.length===1&&e[0].length===0}function Rr(e){let r=0,t=0;return e.forEach(l=>{switch(l[0]){case Se:r+=1;break;case Ee:t+=1;break}}),{a:r,b:t}}function Ir({aAnnotation:e,aColor:r,aIndicator:t,bAnnotation:l,bColor:s,bIndicator:_,includeChangeCounts:o,omitAnnotationLines:u},y){if(u)return"";let g="",i="";if(o){let b=String(y.a),m=String(y.b),h=l.length-e.length,d=" ".repeat(Math.max(0,h)),S=" ".repeat(Math.max(0,-h)),E=m.length-b.length,A=" ".repeat(Math.max(0,E)),w=" ".repeat(Math.max(0,-E));g=`${d} ${t} ${A}${b}`,i=`${S} ${_} ${w}${m}`}let p=`${t} ${e}${g}`,f=`${_} ${l}${i}`;return`${r(p)} +${s(f)} + +`}function Rt(e,r,t){return Ir(t,Rr(e))+(t.expand?Ar(e,t):Cr(e,t))+(r?t.truncateAnnotationColor(` +${t.truncateAnnotation}`):"")}function Qe(e,r,t){let l=Me(t),[s,_]=It(Oe(e)?[]:e,Oe(r)?[]:r,l);return Rt(s,_,l)}function jr(e,r,t,l,s){if(Oe(e)&&Oe(t)&&(e=[],t=[]),Oe(r)&&Oe(l)&&(r=[],l=[]),e.length!==t.length||r.length!==l.length)return Qe(e,r,s);let[_,o]=It(t,l,s),u=0,y=0;return _.forEach(g=>{switch(g[0]){case Se:g[1]=e[u],u+=1;break;case Ee:g[1]=r[y],y+=1;break;default:g[1]=r[y],u+=1,y+=1}}),Rt(_,o,Me(s))}function It(e,r,t){let l=(t==null?void 0:t.truncateThreshold)??!1,s=Math.max(Math.floor((t==null?void 0:t.truncateThreshold)??0),0),_=l?Math.min(e.length,s):e.length,o=l?Math.min(r.length,s):r.length,u=_!==e.length||o!==r.length,y=(b,m)=>e[b]===r[m],g=[],i=0,p=0,f=(b,m,h)=>{for(;i!==m;i+=1)g.push(new Ce(Se,e[i]));for(;p!==h;p+=1)g.push(new Ce(Ee,r[p]));for(;b!==0;b-=1,i+=1,p+=1)g.push(new Ce(je,r[p]))};for((ct.default.default||ct.default)(_,o,y,f);i!==_;i+=1)g.push(new Ce(Se,e[i]));for(;p!==o;p+=1)g.push(new Ce(Ee,r[p]));return[g,u]}function Ue(e,r){let{commonColor:t}=Me(r);return t(e)}var{AsymmetricMatcher:Br,DOMCollection:Dr,DOMElement:Fr,Immutable:Lr,ReactElement:xr,ReactTestComponent:kr}=he.plugins,jt=[kr,xr,Fr,Dr,Lr,Br],Ye={plugins:jt},Bt={callToJSON:!1,maxDepth:10,plugins:jt};function zr(e,r,t){if(Object.is(e,r))return"";let l=ut(e),s=l,_=!1;if(l==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return null;s=e.getExpectedType(),_=s==="string"}if(s!==ut(r)){let{aAnnotation:o,aColor:u,aIndicator:y,bAnnotation:g,bColor:i,bIndicator:p}=Me(t),f=We(Bt,t),b=(0,he.format)(e,f),m=(0,he.format)(r,f),h=`${u(`${y} ${o}:`)} +${b}`,d=`${i(`${p} ${g}:`)} +${m}`;return`${h} + +${d}`}if(_)return null;switch(l){case"string":return Qe(e.split(` +`),r.split(` +`),t);case"boolean":case"number":return vr(e,r,t);case"map":return ze(st(e),st(r),t);case"set":return ze(mt(e),mt(r),t);default:return ze(e,r,t)}}function vr(e,r,t){let l=(0,he.format)(e,Ye),s=(0,he.format)(r,Ye);return l===s?"":Qe(l.split(` +`),s.split(` +`),t)}function st(e){return new Map(Array.from(e.entries()).sort())}function mt(e){return new Set(Array.from(e.values()).sort())}function ze(e,r,t){let l,s=!1;try{let o=We(Ye,t);l=ft(e,r,o,t)}catch{s=!0}let _=Ue(At,t);if(l===void 0||l===_){let o=We(Bt,t);l=ft(e,r,o,t),l!==_&&!s&&(l=`${Ue(Tr,t)} + +${l}`)}return l}function We(e,r){let{compareKeys:t}=Me(r);return{...e,compareKeys:t}}function ft(e,r,t,l){let s={...t,indent:0},_=(0,he.format)(e,s),o=(0,he.format)(r,s);if(_===o)return Ue(At,l);{let u=(0,he.format)(e,t),y=(0,he.format)(r,t);return jr(u.split(` +`),y.split(` +`),_.split(` +`),o.split(` +`),l)}}var qe=de(Je()),Ur=de(Ct()),{AsymmetricMatcher:Yr,DOMCollection:Wr,DOMElement:qr,Immutable:Kr,ReactElement:Hr,ReactTestComponent:Vr}=qe.plugins,gt=[Vr,Hr,qr,Wr,Kr,Yr];function Ke(e,r=10,{maxLength:t,...l}={}){let s=t??1e4,_;try{_=(0,qe.format)(e,{maxDepth:r,escapeString:!1,plugins:gt,...l})}catch{_=(0,qe.format)(e,{callToJSON:!1,maxDepth:r,escapeString:!1,plugins:gt,...l})}return _.length>=s&&r>1?Ke(e,Math.floor(r/2)):_}var Gr=/%[sdjifoOcj%]/g;function Jr(...e){if(typeof e[0]!="string"){let _=[];for(let o=0;o{if(_==="%%")return"%";if(t>=r)return _;switch(_){case"%s":{let o=e[t++];return typeof o=="bigint"?`${o.toString()}n`:typeof o=="number"&&o===0&&1/o<0?"-0":typeof o=="object"&&o!==null?Ae(o,{depth:0,colors:!1,compact:3}):String(o)}case"%d":{let o=e[t++];return typeof o=="bigint"?`${o.toString()}n`:Number(o).toString()}case"%i":{let o=e[t++];return typeof o=="bigint"?`${o.toString()}n`:Number.parseInt(String(o)).toString()}case"%f":return Number.parseFloat(String(e[t++])).toString();case"%o":return Ae(e[t++],{showHidden:!0,showProxy:!0});case"%O":return Ae(e[t++]);case"%c":return t++,"";case"%j":try{return JSON.stringify(e[t++])}catch(o){let u=o.message;if(u.includes("circular structure")||u.includes("cyclic structures")||u.includes("cyclic object"))return"[Circular]";throw o}default:return _}});for(let _=e[t];tr.add(l);Object.getOwnPropertyNames(e).forEach(t),Object.getOwnPropertySymbols(e).forEach(t)}function Dt(e){let r=new Set;return Xr(e)?[]:(Zr(e,r),Array.from(r))}var Ft={forceWritable:!1};function yt(e,r=Ft){return Ve(e,new WeakMap,r)}function Ve(e,r,t=Ft){let l,s;if(r.has(e))return r.get(e);if(Array.isArray(e)){for(s=Array(l=e.length),r.set(e,s);l--;)s[l]=Ve(e[l],r,t);return s}if(Object.prototype.toString.call(e)==="[object Object]"){s=Object.create(Object.getPrototypeOf(e)),r.set(e,s);let _=Dt(e);for(let o of _){let u=Object.getOwnPropertyDescriptor(e,o);if(!u)continue;let y=Ve(e[o],r,t);t.forceWritable?Object.defineProperty(s,o,{enumerable:u.enumerable,configurable:!0,writable:!0,value:y}):"get"in u?Object.defineProperty(s,o,{...u,get(){return y}}):Object.defineProperty(s,o,{...u,value:y})}return s}return e}de(Je());de(wt());de(Ct());var Qr="@@__IMMUTABLE_RECORD__@@",en="@@__IMMUTABLE_ITERABLE__@@";function tn(e){return e&&(e[en]||e[Qr])}var rn=Object.getPrototypeOf({});function ht(e){return e instanceof Error?`: ${e.message}`:typeof e=="string"?`: ${e}`:""}function Pe(e,r=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(tn(e))return Pe(e.toJSON(),r);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Jr(e.sample)}`;if(typeof e.toJSON=="function")return e.toJSON();if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=new Array(e.length);return r.set(e,t),e.forEach((l,s)=>{try{t[s]=Pe(l,r)}catch(_){t[s]=ht(_)}}),t}else{let t=Object.create(null);r.set(e,t);let l=e;for(;l&&l!==rn;)Object.getOwnPropertyNames(l).forEach(s=>{if(!(s in t))try{t[s]=Pe(e[s],r)}catch(_){delete t[s],t[s]=ht(_)}}),l=Object.getPrototypeOf(l);return t}}function pt(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function nn(e,r){if(!e||typeof e!="object")return{message:e};if(e.stack&&(e.stackStr=String(e.stack)),e.name&&(e.nameStr=String(e.name)),e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0){let t=yt(e.actual,{forceWritable:!0}),l=yt(e.expected,{forceWritable:!0}),{replacedActual:s,replacedExpected:_}=Lt(t,l);e.diff=zr(_,s,{...r,...e.diffOptions})}typeof e.expected!="string"&&(e.expected=Ke(e.expected,10)),typeof e.actual!="string"&&(e.actual=Ke(e.actual,10));try{typeof e.message=="string"&&(e.message=pt(e.message)),typeof e.cause=="object"&&typeof e.cause.message=="string"&&(e.cause.message=pt(e.cause.message))}catch{}try{return Pe(e)}catch(t){return Pe(new Error(`Failed to fully serialize error: ${t==null?void 0:t.message} +Inner error message: ${e==null?void 0:e.message}`))}}function dt(e){return He(e)==="Object"&&typeof e.asymmetricMatch=="function"}function _t(e,r){let t=He(e),l=He(r);return t===l&&(t==="Object"||t==="Array")}function Lt(e,r,t=new WeakSet,l=new WeakSet){return _t(e,r)?t.has(e)||l.has(r)?{replacedActual:e,replacedExpected:r}:(t.add(e),l.add(r),Dt(r).forEach(s=>{let _=r[s],o=e[s];if(dt(_))_.asymmetricMatch(o)&&(e[s]=_);else if(dt(o))o.asymmetricMatch(_)&&(r[s]=o);else if(_t(o,_)){let u=Lt(o,_,t,l);e[s]=u.replacedActual,r[s]=u.replacedExpected}}),{replacedActual:e,replacedExpected:r}):{replacedActual:e,replacedExpected:r}}var an=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(an||{}),ye={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},bt={start:!1,back:!1,goto:!1,next:!1,end:!1},on=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Ot=e=>Object.prototype.toString.call(e)==="[object Object]",cn=e=>Object.prototype.toString.call(e)==="[object Module]",un=e=>{if(!Ot(e)&&!cn(e))return!1;if(e.constructor===void 0)return!0;let r=e.constructor.prototype;return!!Ot(r)},ln=e=>{try{return new e.constructor}catch{return{}}},ve=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),St=(e,r=!1)=>{let t=(r?e.shadowCalls:e.calls).filter(s=>s.retain);if(!t.length)return;let l=new Map(Array.from(e.callRefsByResult.entries()).filter(([,s])=>s.retain));return{cursor:t.length,calls:t,callRefsByResult:l}},sn=class{constructor(){var o;this.initialized=!1,this.channel=Zt.getChannel(),this.state=((o=ce.window)==null?void 0:o.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{};let e=({storyId:u,isPlaying:y=!0,isDebugging:g=!1})=>{let i=this.getState(u);this.setState(u,{...ve(),...St(i,g),shadowCalls:g?i.shadowCalls:[],chainedCallIds:g?i.chainedCallIds:new Set,playUntil:g?i.playUntil:void 0,isPlaying:y,isDebugging:g}),this.sync(u)};this.channel.on(ot,e),this.channel.on(er,({storyId:u,newPhase:y})=>{let{isDebugging:g}=this.getState(u);this.setState(u,{renderPhase:y}),y==="preparing"&&g&&e({storyId:u}),y==="playing"&&e({storyId:u,isDebugging:g}),y==="played"&&this.setState(u,{isLocked:!1,isPlaying:!1,isDebugging:!1}),y==="errored"&&this.setState(u,{isLocked:!1,isPlaying:!1})}),this.channel.on(tr,()=>{this.initialized?this.cleanup():this.initialized=!0});let r=({storyId:u,playUntil:y})=>{this.getState(u).isDebugging||this.setState(u,({calls:i})=>({calls:[],shadowCalls:i.map(p=>({...p,status:"waiting"})),isDebugging:!0}));let g=this.getLog(u);this.setState(u,({shadowCalls:i})=>{var f;if(y||!g.length)return{playUntil:y};let p=i.findIndex(b=>b.id===g[0].callId);return{playUntil:(f=i.slice(0,p).filter(b=>b.interceptable&&!b.ancestors.length).slice(-1)[0])==null?void 0:f.id}}),this.channel.emit(ot,{storyId:u,isDebugging:!0})},t=({storyId:u})=>{var i;let y=this.getLog(u).filter(p=>!p.ancestors.length),g=y.reduceRight((p,f,b)=>p>=0||f.status==="waiting"?p:b,-1);r({storyId:u,playUntil:(i=y[g-1])==null?void 0:i.callId})},l=({storyId:u,callId:y})=>{var m;let{calls:g,shadowCalls:i,resolvers:p}=this.getState(u),f=g.find(({id:h})=>h===y),b=i.find(({id:h})=>h===y);if(!f&&b&&Object.values(p).length>0){let h=(m=this.getLog(u).find(d=>d.status==="waiting"))==null?void 0:m.callId;b.id!==h&&this.setState(u,{playUntil:b.id}),Object.values(p).forEach(d=>d())}else r({storyId:u,playUntil:y})},s=({storyId:u})=>{var g;let{resolvers:y}=this.getState(u);if(Object.values(y).length>0)Object.values(y).forEach(i=>i());else{let i=(g=this.getLog(u).find(p=>p.status==="waiting"))==null?void 0:g.callId;i?r({storyId:u,playUntil:i}):_({storyId:u})}},_=({storyId:u})=>{this.setState(u,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(u).resolvers).forEach(y=>y())};this.channel.on(ye.START,r),this.channel.on(ye.BACK,t),this.channel.on(ye.GOTO,l),this.channel.on(ye.NEXT,s),this.channel.on(ye.END,_)}getState(e){return this.state[e]||ve()}setState(e,r){var s;let t=this.getState(e),l=typeof r=="function"?r(t):r;this.state={...this.state,[e]:{...t,...l}},(s=ce.window)!=null&&s.parent&&(ce.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}cleanup(){var r;this.state=Object.entries(this.state).reduce((t,[l,s])=>{let _=St(s);return _&&(t[l]=Object.assign(ve(),_)),t},{});let e={controlStates:bt,logItems:[]};this.channel.emit(ye.SYNC,e),(r=ce.window)!=null&&r.parent&&(ce.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state)}getLog(e){let{calls:r,shadowCalls:t}=this.getState(e),l=[...t];r.forEach((_,o)=>{l[o]=_});let s=new Set;return l.reduceRight((_,o)=>(o.args.forEach(u=>{u!=null&&u.__callId__&&s.add(u.__callId__)}),o.path.forEach(u=>{u.__callId__&&s.add(u.__callId__)}),(o.interceptable||o.exception)&&!s.has(o.id)&&(_.unshift({callId:o.id,status:o.status,ancestors:o.ancestors}),s.add(o.id)),_),[])}instrument(e,r,t=0){if(!un(e))return e;let{mutate:l=!1,path:s=[]}=r,_=r.getKeys?r.getKeys(e,t):Object.keys(e);return t+=1,_.reduce((o,u)=>{let y=fn(e,u);if(typeof(y==null?void 0:y.get)=="function"){let i=()=>{var p,f;return(f=(p=y==null?void 0:y.get)==null?void 0:p.bind(e))==null?void 0:f()};return Object.defineProperty(o,u,{get:()=>this.instrument(i(),{...r,path:s.concat(u)},t)}),o}let g=e[u];return typeof g!="function"?(o[u]=this.instrument(g,{...r,path:s.concat(u)},t),o):"__originalFn__"in g&&typeof g.__originalFn__=="function"?(o[u]=g,o):(o[u]=(...i)=>this.track(u,g,e,i,r),o[u].__originalFn__=g,Object.defineProperty(o[u],"name",{value:u,writable:!1}),Object.keys(g).length>0&&Object.assign(o[u],this.instrument({...g},{...r,path:s.concat(u)},t)),o)},l?e:ln(e))}track(e,r,t,l,s){var h,d,S,E;let _=((h=l==null?void 0:l[0])==null?void 0:h.__storyId__)||((E=(S=(d=ce.__STORYBOOK_PREVIEW__)==null?void 0:d.selectionStore)==null?void 0:S.selection)==null?void 0:E.storyId),{cursor:o,ancestors:u}=this.getState(_);this.setState(_,{cursor:o+1});let y=`${u.slice(-1)[0]||_} [${o}] ${e}`,{path:g=[],intercept:i=!1,retain:p=!1}=s,f=typeof i=="function"?i(e,g):i,b={id:y,cursor:o,storyId:_,ancestors:u,path:g,method:e,args:l,interceptable:f,retain:p},m=(f&&!u.length?this.intercept:this.invoke).call(this,r,t,b,s);return this.instrument(m,{...s,mutate:!0,path:[{__callId__:b.id}]})}intercept(e,r,t,l){let{chainedCallIds:s,isDebugging:_,playUntil:o}=this.getState(t.storyId),u=s.has(t.id);return!_||u||o?(o===t.id&&this.setState(t.storyId,{playUntil:void 0}),this.invoke(e,r,t,l)):new Promise(y=>{this.setState(t.storyId,({resolvers:g})=>({isLocked:!1,resolvers:{...g,[t.id]:y}}))}).then(()=>(this.setState(t.storyId,y=>{let{[t.id]:g,...i}=y.resolvers;return{isLocked:!0,resolvers:i}}),this.invoke(e,r,t,l)))}invoke(e,r,t,l){let{callRefsByResult:s,renderPhase:_}=this.getState(t.storyId),o=25,u=(i,p,f)=>{var b,m,h;if(f.includes(i))return"[Circular]";if(f=[...f,i],p>o)return"...";if(s.has(i))return s.get(i);if(i instanceof Array)return i.map(d=>u(d,++p,f));if(i instanceof Date)return{__date__:{value:i.toISOString()}};if(i instanceof Error){let{name:d,message:S,stack:E}=i;return{__error__:{name:d,message:S,stack:E}}}if(i instanceof RegExp){let{flags:d,source:S}=i;return{__regexp__:{flags:d,source:S}}}if(i instanceof((b=ce.window)==null?void 0:b.HTMLElement)){let{prefix:d,localName:S,id:E,classList:A,innerText:w}=i,C=Array.from(A);return{__element__:{prefix:d,localName:S,id:E,classNames:C,innerText:w}}}return typeof i=="function"?{__function__:{name:"getMockName"in i?i.getMockName():i.name}}:typeof i=="symbol"?{__symbol__:{description:i.description}}:typeof i=="object"&&((m=i==null?void 0:i.constructor)!=null&&m.name)&&((h=i==null?void 0:i.constructor)==null?void 0:h.name)!=="Object"?{__class__:{name:i.constructor.name}}:Object.prototype.toString.call(i)==="[object Object]"?Object.fromEntries(Object.entries(i).map(([d,S])=>[d,u(S,++p,f)])):i},y={...t,args:t.args.map(i=>u(i,0,[]))};t.path.forEach(i=>{i!=null&&i.__callId__&&this.setState(t.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(i.__callId__))}))});let g=i=>{if(i instanceof Error){let{name:p,message:f,stack:b,callId:m=t.id}=i,{showDiff:h=void 0,diff:d=void 0,actual:S=void 0,expected:E=void 0}=i.name==="AssertionError"?nn(i):i,A={name:p,message:f,stack:b,callId:m,showDiff:h,diff:d,actual:S,expected:E};if(this.update({...y,status:"error",exception:A}),this.setState(t.storyId,w=>({callRefsByResult:new Map([...Array.from(w.callRefsByResult.entries()),[i,{__callId__:t.id,retain:t.retain}]])})),t.ancestors.length)throw Object.prototype.hasOwnProperty.call(i,"callId")||Object.defineProperty(i,"callId",{value:t.id}),i}throw i};try{if(_==="played"&&!t.retain)throw on;let i=(l.getArgs?l.getArgs(t,this.getState(t.storyId)):t.args).map(f=>typeof f!="function"||Object.keys(f).length?f:(...b)=>{let{cursor:m,ancestors:h}=this.getState(t.storyId);this.setState(t.storyId,{cursor:0,ancestors:[...h,t.id]});let d=()=>this.setState(t.storyId,{cursor:m,ancestors:h}),S=!1;try{let E=f(...b);return E instanceof Promise?(S=!0,E.finally(d)):E}finally{S||d()}}),p=e.apply(r,i);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(t.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[p,{__callId__:t.id,retain:t.retain}]])})),this.update({...y,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(f=>(this.update({...y,status:"done"}),f),g):p}catch(i){return g(i)}}update(e){this.channel.emit(ye.CALL,e),this.setState(e.storyId,({calls:r})=>{let t=r.concat(e).reduce((l,s)=>Object.assign(l,{[s.id]:s}),{});return{calls:Object.values(t).sort((l,s)=>l.id.localeCompare(s.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let r=()=>{var g;let{isLocked:t,isPlaying:l}=this.getState(e),s=this.getLog(e),_=(g=s.filter(({ancestors:i})=>!i.length).find(i=>i.status==="waiting"))==null?void 0:g.callId,o=s.some(i=>i.status==="active");if(t||o||s.length===0){let i={controlStates:bt,logItems:s};this.channel.emit(ye.SYNC,i);return}let u=s.some(i=>i.status==="done"||i.status==="error"),y={controlStates:{start:u,back:u,goto:!0,next:l,end:l},logItems:s,pausedAt:_};this.channel.emit(ye.SYNC,y)};this.setState(e,({syncTimeout:t})=>(clearTimeout(t),{syncTimeout:setTimeout(r,0)}))}};function mn(e,r={}){var t,l,s,_,o,u,y,g;try{let i=!1,p=!1;return(s=(l=(t=ce.window)==null?void 0:t.location)==null?void 0:l.search)!=null&&s.includes("instrument=true")?i=!0:(u=(o=(_=ce.window)==null?void 0:_.location)==null?void 0:o.search)!=null&&u.includes("instrument=false")&&(p=!0),((y=ce.window)==null?void 0:y.parent)===ce.window&&!i||p?e:(ce.window&&!ce.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(ce.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new sn),((g=ce.window)==null?void 0:g.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,r))}catch(i){return Qt.warn(i),e}}function fn(e,r){let t=e;for(;t!=null;){let l=Object.getOwnPropertyDescriptor(t,r);if(l)return l;t=Object.getPrototypeOf(t)}}var{step:yn}=mn({step:(e,r,t)=>r(t)},{intercept:!0}),hn={throwPlayFunctionExceptions:!1};export{hn as parameters,yn as runStep}; diff --git a/storybook/assets/react-18-CaMpY7kV.js b/storybook/assets/react-18-CaMpY7kV.js new file mode 100644 index 0000000..2ce3166 --- /dev/null +++ b/storybook/assets/react-18-CaMpY7kV.js @@ -0,0 +1 @@ +import{R as m,r as n}from"./index-CTjT7uj6.js";import{r as R}from"./index-CYM-y3Gt.js";var a={},s=R;a.createRoot=s.createRoot,a.hydrateRoot=s.hydrateRoot;var o=new Map,d=({callback:e,children:r})=>{let t=n.useRef();return n.useLayoutEffect(()=>{t.current!==e&&(t.current=e,e())},[e]),r},E=async(e,r,t)=>{let u=await i(r,t);return new Promise(c=>{u.render(m.createElement(d,{callback:()=>c(null)},e))})},f=(e,r)=>{let t=o.get(e);t&&(t.unmount(),o.delete(e))},i=async(e,r)=>{let t=o.get(e);return t||(t=a.createRoot(e,r),o.set(e,t)),t};export{E as r,f as u}; diff --git a/storybook/assets/timeViewRenderers-DSKlpx4k.js b/storybook/assets/timeViewRenderers-DSKlpx4k.js new file mode 100644 index 0000000..97b90a8 --- /dev/null +++ b/storybook/assets/timeViewRenderers-DSKlpx4k.js @@ -0,0 +1 @@ +import{F as Ne,G as st,y as Be,r as He,H as Te,I as ot,i as Re,j as Pe,m as ge,c as Ie,S as nt,J as rt,K as Fe,L as it,M as _e,N as Oe,O as $e,k as ze,Q as ye,R as We,T as at}from"./errorHandler-ulv3bqY5.js";import{_ as P}from"./isNativeReflectConstruct-CJAgTEKr.js";import{p as fe,o as he,s as j,T as qe,Y as ie,_ as ae,j as v,c as le,q as ce,B as lt,D as ct,E as Ge,U as De}from"./Wrapper-DXvvO_B0.js";import{r as w}from"./index-CTjT7uj6.js";import{I as Ye}from"./Chip-C6MsZLfs.js";import{u as ut}from"./useId-BjRAp5Eo.js";import{u as dt}from"./index-BjNUr1t6.js";import{M as Ke,u as mt}from"./Select-DSn46qfv.js";import{M as Xe}from"./MenuItem-BLPASM16.js";import{a as Ve}from"./colorManipulator-BcfljvUw.js";const Is=({adapter:e,value:t,props:r})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:o,shouldDisableTime:n,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:p,disableFuture:l,timezone:b}=r,a=e.utils.date(void 0,b),h=Ne(c,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(s&&h(s,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(l&&e.utils.isAfter(t,a)):return"disableFuture";case!!(p&&e.utils.isBefore(t,a)):return"disablePast";case!!(n&&n(t,"hours")):return"shouldDisableTime-hours";case!!(n&&n(t,"minutes")):return"shouldDisableTime-minutes";case!!(n&&n(t,"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(t)%o!==0):return"minutesStep";default:return null}};function pt(e){return he("MuiPickersToolbarText",e)}const Ae=fe("MuiPickersToolbarText",["root","selected"]),ft=["className","selected","value"],ht=e=>{const{classes:t,selected:r}=e;return ce({root:["root",r&&"selected"]},pt,t)},Ct=j(qe,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Ae.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${Ae.selected}`]:{color:(e.vars||e).palette.text.primary}})),bt=w.forwardRef(function(t,r){const s=ie({props:t,name:"MuiPickersToolbarText"}),{className:i,value:o}=s,n=ae(s,ft),c=ht(s);return v.jsx(Ct,P({ref:r,className:le(i,c.root),component:"span"},n,{children:o}))}),gt=["align","className","selected","typographyClassName","value","variant","width"],vt=e=>{const{classes:t}=e;return ce({root:["root"]},st,t)},kt=j(lt,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Fs=w.forwardRef(function(t,r){const s=ie({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:o,selected:n,typographyClassName:c,value:p,variant:l,width:b}=s,a=ae(s,gt),h=vt(s);return v.jsx(kt,P({variant:"text",ref:r,className:le(o,h.root)},b?{sx:{width:b}}:{},a,{children:v.jsx(bt,{align:i,className:c,variant:l,value:p,selected:n})}))}),wt=["views","format"],_s=(e,t)=>{let{views:r,format:s}=t,i=ae(t,wt);if(s)return s;const o=[],n=[];if(r.forEach(l=>{Te(l)?n.push(l):o.push(l)}),n.length===0)return Be(e,P({views:o},i),!1);if(o.length===0)return He(e,P({views:n},i));const c=He(e,P({views:n},i));return`${Be(e,P({views:o},i),!1)} ${c}`},Tt=(e,t,r)=>r?t.filter(s=>!ot(s)||s==="hours"):e?[...t,"meridiem"]:t,xt=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function Os({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:r,views:s}){const i=e??24,o=P({hours:1,minutes:5,seconds:5},r),n=xt(o,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:o,shouldRenderTimeInASingleColumn:n,views:Tt(t,s,n)}}function Mt(e){return he("MuiTimeClock",e)}fe("MuiTimeClock",["root","arrowSwitcher"]);const ve=220,re=36,xe={x:ve/2,y:ve/2},Je={x:xe.x,y:0},St=Je.x-xe.x,yt=Je.y-xe.y,Dt=e=>e*(180/Math.PI),Qe=(e,t,r)=>{const s=t-xe.x,i=r-xe.y,o=Math.atan2(St,yt)-Math.atan2(s,i);let n=Dt(o);n=Math.round(n/e)*e,n%=360;const c=Math.floor(n/e)||0,p=s**2+i**2,l=Math.sqrt(p);return{value:c,distance:l}},Vt=(e,t,r=1)=>{const s=r*6;let{value:i}=Qe(s,e,t);return i=i*r%60,i},Nt=(e,t,r)=>{const{value:s,distance:i}=Qe(30,e,t);let o=s||12;return r?o%=12:i{const{classes:t}=e;return ce({root:["root"],thumb:["thumb"]},Rt,t)},Ft=j("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),_t=j("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${re/2}px)`,border:`${(re-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function Ot(e){const t=ie({props:e,name:"MuiClockPointer"}),{className:r,isInner:s,type:i,viewValue:o}=t,n=ae(t,Pt),c=w.useRef(i);w.useEffect(()=>{c.current=i},[i]);const p=P({},t,{shouldAnimate:c.current!==i}),l=It(p),b=()=>{let h=360/(i==="hours"?12:60)*o;return i==="hours"&&o>12&&(h-=360),{height:Math.round((s?.26:.4)*ve),transform:`rotateZ(${h}deg)`}};return v.jsx(Ft,P({style:b(),className:le(r,l.root),ownerState:p},n,{children:v.jsx(_t,{ownerState:p,className:l.thumb})}))}function $t(e){return he("MuiClock",e)}fe("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const jt=e=>{const{classes:t,meridiemMode:r}=e;return ce({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",r==="am"&&"selected"],pmButton:["pmButton",r==="pm"&&"selected"],meridiemText:["meridiemText"]},$t,t)},Bt=j("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Ht=j("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),At=j("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Et=j("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Lt=j("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Ze=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:re,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),Ut=j(Ye,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>P({},Ze(e,"am"),{position:"absolute",left:8})),zt=j(Ye,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>P({},Ze(e,"pm"),{position:"absolute",right:8})),Ee=j(qe,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Wt(e){const t=ie({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:s,autoFocus:i,children:o,value:n,handleMeridiemChange:c,isTimeDisabled:p,meridiemMode:l,minutesStep:b=1,onChange:a,selectedId:h,type:u,viewValue:f,disabled:g=!1,readOnly:_,className:H}=t,O=t,S=Re(),B=Pe(),I=w.useRef(!1),d=jt(O),y=p(f,u),z=!r&&u==="hours"&&(f<1||f>12),F=(T,V)=>{g||_||p(T,u)||a(T,V)},$=(T,V)=>{let{offsetX:N,offsetY:A}=T;if(N===void 0){const D=T.target.getBoundingClientRect();N=T.changedTouches[0].clientX-D.left,A=T.changedTouches[0].clientY-D.top}const L=u==="seconds"||u==="minutes"?Vt(N,A,b):Nt(N,A,!!r);F(L,V)},W=T=>{I.current=!0,$(T,"shallow")},ee=T=>{I.current&&($(T,"finish"),I.current=!1)},J=T=>{T.buttons>0&&$(T.nativeEvent,"shallow")},se=T=>{I.current&&(I.current=!1),$(T.nativeEvent,"finish")},Ce=w.useMemo(()=>u==="hours"?!0:f%5===0,[u,f]),ue=u==="minutes"?b:1,Q=w.useRef(null);ct(()=>{i&&Q.current.focus()},[i]);const K=T=>{if(!I.current)switch(T.key){case"Home":F(0,"partial"),T.preventDefault();break;case"End":F(u==="minutes"?59:23,"partial"),T.preventDefault();break;case"ArrowUp":F(f+ue,"partial"),T.preventDefault();break;case"ArrowDown":F(f-ue,"partial"),T.preventDefault();break}};return v.jsxs(Bt,{className:le(H,d.root),children:[v.jsxs(Ht,{className:d.clock,children:[v.jsx(Et,{onTouchMove:W,onTouchEnd:ee,onMouseUp:se,onMouseMove:J,ownerState:{disabled:g},className:d.squareMask}),!y&&v.jsxs(w.Fragment,{children:[v.jsx(Lt,{className:d.pin}),n!=null&&v.jsx(Ot,{type:u,viewValue:f,isInner:z,hasSelected:Ce})]}),v.jsx(At,{"aria-activedescendant":h,"aria-label":B.clockLabelText(u,n,S),ref:Q,role:"listbox",onKeyDown:K,tabIndex:0,className:d.wrapper,children:o})]}),r&&s&&v.jsxs(w.Fragment,{children:[v.jsx(Ut,{onClick:_?void 0:()=>c("am"),disabled:g||l===null,ownerState:O,className:d.amButton,title:ge(S,"am"),children:v.jsx(Ee,{variant:"caption",className:d.meridiemText,children:ge(S,"am")})}),v.jsx(zt,{disabled:g||l===null,onClick:_?void 0:()=>c("pm"),ownerState:O,className:d.pmButton,title:ge(S,"pm"),children:v.jsx(Ee,{variant:"caption",className:d.meridiemText,children:ge(S,"pm")})})]})]})}function qt(e){return he("MuiClockNumber",e)}const Se=fe("MuiClockNumber",["root","selected","disabled"]),Gt=["className","disabled","index","inner","label","selected"],Yt=e=>{const{classes:t,selected:r,disabled:s}=e;return ce({root:["root",r&&"selected",s&&"disabled"]},qt,t)},Kt=j("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Se.disabled}`]:t.disabled},{[`&.${Se.selected}`]:t.selected}]})(({theme:e})=>({height:re,width:re,position:"absolute",left:`calc((100% - ${re}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Se.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Se.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:P({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function et(e){const t=ie({props:e,name:"MuiClockNumber"}),{className:r,disabled:s,index:i,inner:o,label:n,selected:c}=t,p=ae(t,Gt),l=t,b=Yt(l),a=i%12/12*Math.PI*2-Math.PI/2,h=(ve-re-2)/2*(o?.65:1),u=Math.round(Math.cos(a)*h),f=Math.round(Math.sin(a)*h);return v.jsx(Kt,P({className:le(r,b.root),"aria-disabled":s?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${u}px, ${f+(ve-re)/2}px`},ownerState:l},p,{children:n}))}const Xt=({ampm:e,value:t,getClockNumberText:r,isDisabled:s,selectedId:i,utils:o})=>{const n=t?o.getHours(t):null,c=[],p=e?1:0,l=e?12:23,b=a=>n===null?!1:e?a===12?n===12||n===0:n===a||n-12===a:n===a;for(let a=p;a<=l;a+=1){let h=a.toString();a===0&&(h="00");const u=!e&&(a===0||a>12);h=o.formatNumber(h);const f=b(a);c.push(v.jsx(et,{id:f?i:void 0,index:a,inner:u,selected:f,disabled:s(a),label:h,"aria-label":r(h)},a))}return c},Le=({utils:e,value:t,isDisabled:r,getClockNumberText:s,selectedId:i})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([n,c],p)=>{const l=n===t;return v.jsx(et,{label:c,id:l?i:void 0,index:p+1,inner:!1,disabled:r(n),selected:l,"aria-label":s(c)},n)})},je=({value:e,referenceDate:t,utils:r,props:s,timezone:i})=>{const o=w.useMemo(()=>Ie.getInitialReferenceValue({value:e,utils:r,props:s,referenceDate:t,granularity:nt.day,timezone:i,getTodayDate:()=>rt(r,i,"date")}),[]);return e??o},Jt=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],Qt=e=>{const{classes:t}=e;return ce({root:["root"],arrowSwitcher:["arrowSwitcher"]},Mt,t)},Zt=j(Fe,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),es=j(it,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),ts=["hours","minutes"],ss=w.forwardRef(function(t,r){const s=Re(),i=ie({props:t,name:"MuiTimeClock"}),{ampm:o=s.is12HourCycleInCurrentLocale(),ampmInClock:n=!1,autoFocus:c,slots:p,slotProps:l,value:b,defaultValue:a,referenceDate:h,disableIgnoringDatePartForTimeValidation:u=!1,maxTime:f,minTime:g,disableFuture:_,disablePast:H,minutesStep:O=1,shouldDisableTime:S,showViewSwitcher:B,onChange:I,view:d,views:y=ts,openTo:z,onViewChange:F,focusedView:$,onFocusedViewChange:W,className:ee,disabled:J,readOnly:se,timezone:Ce}=i,ue=ae(i,Jt),{value:Q,handleValueChange:K,timezone:T}=_e({name:"TimeClock",timezone:Ce,value:b,defaultValue:a,onChange:I,valueManager:Ie}),V=je({value:Q,referenceDate:h,utils:s,props:i,timezone:T}),N=Pe(),A=Oe(T),{view:L,setView:D,previousView:de,nextView:q,setValueAndGoToNextView:oe}=$e({view:d,views:y,openTo:z,onViewChange:F,onChange:K,focusedView:$,onFocusedViewChange:W}),{meridiemMode:G,handleMeridiemChange:ke}=ze(V,o,oe),ne=w.useCallback((m,x)=>{const R=Ne(u,s),Y=x==="hours"||x==="minutes"&&y.includes("seconds"),M=({start:k,end:X})=>!(g&&R(g,X)||f&&R(k,f)||_&&R(k,A)||H&&R(A,Y?X:k)),C=(k,X=1)=>{if(k%X!==0)return!1;if(S)switch(x){case"hours":return!S(s.setHours(V,k),"hours");case"minutes":return!S(s.setMinutes(V,k),"minutes");case"seconds":return!S(s.setSeconds(V,k),"seconds");default:return!1}return!0};switch(x){case"hours":{const k=ye(m,G,o),X=s.setHours(V,k),pe=s.setSeconds(s.setMinutes(X,0),0),we=s.setSeconds(s.setMinutes(X,59),59);return!M({start:pe,end:we})||!C(k)}case"minutes":{const k=s.setMinutes(V,m),X=s.setSeconds(k,0),pe=s.setSeconds(k,59);return!M({start:X,end:pe})||!C(m,O)}case"seconds":{const k=s.setSeconds(V,m);return!M({start:k,end:k})||!C(m)}default:throw new Error("not supported")}},[o,V,u,f,G,g,O,S,s,_,H,A,y]),U=ut(),be=w.useMemo(()=>{switch(L){case"hours":{const m=(x,R)=>{const Y=ye(x,G,o);oe(s.setHours(V,Y),R,"hours")};return{onChange:m,viewValue:s.getHours(V),children:Xt({value:Q,utils:s,ampm:o,onChange:m,getClockNumberText:N.hoursClockNumberText,isDisabled:x=>J||ne(x,"hours"),selectedId:U})}}case"minutes":{const m=s.getMinutes(V),x=(R,Y)=>{oe(s.setMinutes(V,R),Y,"minutes")};return{viewValue:m,onChange:x,children:Le({utils:s,value:m,onChange:x,getClockNumberText:N.minutesClockNumberText,isDisabled:R=>J||ne(R,"minutes"),selectedId:U})}}case"seconds":{const m=s.getSeconds(V),x=(R,Y)=>{oe(s.setSeconds(V,R),Y,"seconds")};return{viewValue:m,onChange:x,children:Le({utils:s,value:m,onChange:x,getClockNumberText:N.secondsClockNumberText,isDisabled:R=>J||ne(R,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[L,s,Q,o,N.hoursClockNumberText,N.minutesClockNumberText,N.secondsClockNumberText,G,oe,V,ne,U,J]),Z=i,me=Qt(Z);return v.jsxs(Zt,P({ref:r,className:le(me.root,ee),ownerState:Z},ue,{children:[v.jsx(Wt,P({autoFocus:c??!!$,ampmInClock:n&&y.includes("hours"),value:Q,type:L,ampm:o,minutesStep:O,isTimeDisabled:ne,meridiemMode:G,handleMeridiemChange:ke,selectedId:U,disabled:J,readOnly:se},be)),B&&v.jsx(es,{className:me.arrowSwitcher,slots:p,slotProps:l,onGoToPrevious:()=>D(de),isPreviousDisabled:!de,previousLabel:N.openPreviousView,onGoToNext:()=>D(q),isNextDisabled:!q,nextLabel:N.openNextView,ownerState:Z})]}))});function os(e){return he("MuiDigitalClock",e)}const $s=fe("MuiDigitalClock",["root","list","item"]),ns=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],rs=e=>{const{classes:t}=e;return ce({root:["root"],list:["list"],item:["item"]},os,t)},is=j(Fe,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:We,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),as=j(Ke,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),ls=j(Xe,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ve(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ve(e.palette.primary.main,e.palette.action.focusOpacity)}})),cs=w.forwardRef(function(t,r){const s=Re(),i=w.useRef(null),o=Ge(r,i),n=ie({props:t,name:"MuiDigitalClock"}),{ampm:c=s.is12HourCycleInCurrentLocale(),timeStep:p=30,autoFocus:l,slots:b,slotProps:a,value:h,defaultValue:u,referenceDate:f,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:_,minTime:H,disableFuture:O,disablePast:S,minutesStep:B=1,shouldDisableTime:I,onChange:d,view:y,openTo:z,onViewChange:F,focusedView:$,onFocusedViewChange:W,className:ee,disabled:J,readOnly:se,views:Ce=["hours"],skipDisabled:ue=!1,timezone:Q}=n,K=ae(n,ns),{value:T,handleValueChange:V,timezone:N}=_e({name:"DigitalClock",timezone:Q,value:h,defaultValue:u,onChange:d,valueManager:Ie}),A=Pe(),L=Oe(N),D=w.useMemo(()=>P({},n,{alreadyRendered:!!i.current}),[n]),de=rs(D),q=(b==null?void 0:b.digitalClockItem)??ls,oe=mt({elementType:q,externalSlotProps:a==null?void 0:a.digitalClockItem,ownerState:{},className:de.item}),G=je({value:T,referenceDate:f,utils:s,props:n,timezone:N}),ke=De(m=>V(m,"finish","hours")),{setValueAndGoToNextView:ne}=$e({view:y,views:Ce,openTo:z,onViewChange:F,onChange:ke,focusedView:$,onFocusedViewChange:W}),U=De(m=>{ne(m,"finish")});w.useEffect(()=>{if(i.current===null)return;const m=i.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!m)return;const x=m.offsetTop;(l||$)&&m.focus(),i.current.scrollTop=x-4});const be=w.useCallback(m=>{const x=Ne(g,s),R=()=>!(H&&x(H,m)||_&&x(m,_)||O&&x(m,L)||S&&x(L,m)),Y=()=>s.getMinutes(m)%B!==0?!1:I?!I(m,"hours"):!0;return!R()||!Y()},[g,s,H,_,O,L,S,B,I]),Z=w.useMemo(()=>{const m=s.startOfDay(G);return[m,...Array.from({length:Math.ceil(24*60/p)-1},(x,R)=>s.addMinutes(m,p*(R+1)))]},[G,p,s]),me=Z.findIndex(m=>s.isEqual(m,G));return v.jsx(is,P({ref:o,className:le(de.root,ee),ownerState:D},K,{children:v.jsx(as,{role:"listbox","aria-label":A.timePickerToolbarTitle,className:de.list,children:Z.map((m,x)=>{if(ue&&be(m))return null;const R=s.isEqual(m,T),Y=s.format(m,c?"fullTime12h":"fullTime24h"),M=me===x||me===-1&&x===0?0:-1;return v.jsx(q,P({onClick:()=>!se&&U(m),selected:R,disabled:J||be(m),disableRipple:se,role:"option","aria-disabled":se,"aria-selected":R,tabIndex:M},oe,{children:Y}),Y)})})}))});function us(e){return he("MuiMultiSectionDigitalClock",e)}const js=fe("MuiMultiSectionDigitalClock",["root"]);function ds(e){return he("MuiMultiSectionDigitalClockSection",e)}const Bs=fe("MuiMultiSectionDigitalClockSection",["root","item"]),ms=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],ps=e=>{const{classes:t}=e;return ce({root:["root"],item:["item"]},ds,t)},fs=j(Ke,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:We,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),hs=j(Xe,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:at,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ve(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ve(e.palette.primary.main,e.palette.action.focusOpacity)}})),Cs=w.forwardRef(function(t,r){const s=w.useRef(null),i=Ge(r,s),o=w.useRef(null),n=ie({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:p,className:l,disabled:b,readOnly:a,items:h,active:u,slots:f,slotProps:g,skipDisabled:_}=n,H=ae(n,ms),O=w.useMemo(()=>P({},n,{alreadyRendered:!!s.current}),[n]),S=ps(O),B=(f==null?void 0:f.digitalClockSectionItem)??hs;w.useEffect(()=>{if(s.current===null)return;const d=s.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(u&&c&&d&&d.focus(),!d||o.current===d)return;o.current=d;const y=d.offsetTop;s.current.scrollTop=y-4});const I=h.findIndex(d=>d.isFocused(d.value));return v.jsx(fs,P({ref:i,className:le(S.root,l),ownerState:O,autoFocusItem:c&&u,role:"listbox"},H,{children:h.map((d,y)=>{var ee;const z=(ee=d.isDisabled)==null?void 0:ee.call(d,d.value),F=b||z;if(_&&F)return null;const $=d.isSelected(d.value),W=I===y||I===-1&&y===0?0:-1;return v.jsx(B,P({onClick:()=>!a&&p(d.value),selected:$,disabled:F,disableRipple:a,role:"option","aria-disabled":a||F||void 0,"aria-label":d.ariaLabel,"aria-selected":$,tabIndex:W,className:S.item},g==null?void 0:g.digitalClockSectionItem,{children:d.label}),d.label)})}))}),bs=({now:e,value:t,utils:r,ampm:s,isDisabled:i,resolveAriaLabel:o,timeStep:n,valueOrReferenceDate:c})=>{const p=t?r.getHours(t):null,l=[],b=(u,f)=>{const g=f??p;return g===null?!1:s?u===12?g===12||g===0:g===u||g-12===u:g===u},a=u=>b(u,r.getHours(c)),h=s?11:23;for(let u=0;u<=h;u+=n){let f=r.format(r.setHours(e,u),s?"hours12h":"hours24h");const g=o(parseInt(f,10).toString());f=r.formatNumber(f),l.push({value:u,label:f,isSelected:b,isDisabled:i,isFocused:a,ariaLabel:g})}return l},Ue=({value:e,utils:t,isDisabled:r,timeStep:s,resolveLabel:i,resolveAriaLabel:o,hasValue:n=!0})=>{const c=l=>e===null?!1:n&&e===l,p=l=>e===l;return[...Array.from({length:Math.ceil(60/s)},(l,b)=>{const a=s*b;return{value:a,label:t.formatNumber(i(a)),isDisabled:r,isSelected:c,isFocused:p,ariaLabel:o(a.toString())}})]},gs=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],vs=e=>{const{classes:t}=e;return ce({root:["root"]},us,t)},ks=j(Fe,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),ws=w.forwardRef(function(t,r){const s=Re(),i=dt(),o=ie({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:n=s.is12HourCycleInCurrentLocale(),timeSteps:c,autoFocus:p,slots:l,slotProps:b,value:a,defaultValue:h,referenceDate:u,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:g,minTime:_,disableFuture:H,disablePast:O,minutesStep:S=1,shouldDisableTime:B,onChange:I,view:d,views:y=["hours","minutes"],openTo:z,onViewChange:F,focusedView:$,onFocusedViewChange:W,className:ee,disabled:J,readOnly:se,skipDisabled:Ce=!1,timezone:ue}=o,Q=ae(o,gs),{value:K,handleValueChange:T,timezone:V}=_e({name:"MultiSectionDigitalClock",timezone:ue,value:a,defaultValue:h,onChange:I,valueManager:Ie}),N=Pe(),A=Oe(V),L=w.useMemo(()=>P({hours:1,minutes:5,seconds:5},c),[c]),D=je({value:K,referenceDate:u,utils:s,props:o,timezone:V}),de=De((M,C,k)=>T(M,C,k)),q=w.useMemo(()=>!n||!y.includes("hours")||y.includes("meridiem")?y:[...y,"meridiem"],[n,y]),{view:oe,setValueAndGoToNextView:G,focusedView:ke}=$e({view:d,views:q,openTo:z,onViewChange:F,onChange:de,focusedView:$,onFocusedViewChange:W}),ne=De(M=>{G(M,"finish","meridiem")}),{meridiemMode:U,handleMeridiemChange:be}=ze(D,n,ne,"finish"),Z=w.useCallback((M,C)=>{const k=Ne(f,s),X=C==="hours"||C==="minutes"&&q.includes("seconds"),pe=({start:E,end:te})=>!(_&&k(_,te)||g&&k(E,g)||H&&k(E,A)||O&&k(A,X?te:E)),we=(E,te=1)=>{if(E%te!==0)return!1;if(B)switch(C){case"hours":return!B(s.setHours(D,E),"hours");case"minutes":return!B(s.setMinutes(D,E),"minutes");case"seconds":return!B(s.setSeconds(D,E),"seconds");default:return!1}return!0};switch(C){case"hours":{const E=ye(M,U,n),te=s.setHours(D,E),Me=s.setSeconds(s.setMinutes(te,0),0),tt=s.setSeconds(s.setMinutes(te,59),59);return!pe({start:Me,end:tt})||!we(E)}case"minutes":{const E=s.setMinutes(D,M),te=s.setSeconds(E,0),Me=s.setSeconds(E,59);return!pe({start:te,end:Me})||!we(M,S)}case"seconds":{const E=s.setSeconds(D,M);return!pe({start:E,end:E})||!we(M)}default:throw new Error("not supported")}},[n,D,f,g,U,_,S,B,s,H,O,A,q]),me=w.useCallback(M=>{switch(M){case"hours":return{onChange:C=>{const k=ye(C,U,n);G(s.setHours(D,k),"finish","hours")},items:bs({now:A,value:K,ampm:n,utils:s,isDisabled:C=>Z(C,"hours"),timeStep:L.hours,resolveAriaLabel:N.hoursClockNumberText,valueOrReferenceDate:D})};case"minutes":return{onChange:C=>{G(s.setMinutes(D,C),"finish","minutes")},items:Ue({value:s.getMinutes(D),utils:s,isDisabled:C=>Z(C,"minutes"),resolveLabel:C=>s.format(s.setMinutes(A,C),"minutes"),timeStep:L.minutes,hasValue:!!K,resolveAriaLabel:N.minutesClockNumberText})};case"seconds":return{onChange:C=>{G(s.setSeconds(D,C),"finish","seconds")},items:Ue({value:s.getSeconds(D),utils:s,isDisabled:C=>Z(C,"seconds"),resolveLabel:C=>s.format(s.setSeconds(A,C),"seconds"),timeStep:L.seconds,hasValue:!!K,resolveAriaLabel:N.secondsClockNumberText})};case"meridiem":{const C=ge(s,"am"),k=ge(s,"pm");return{onChange:be,items:[{value:"am",label:C,isSelected:()=>!!K&&U==="am",isFocused:()=>!!D&&U==="am",ariaLabel:C},{value:"pm",label:k,isSelected:()=>!!K&&U==="pm",isFocused:()=>!!D&&U==="pm",ariaLabel:k}]}}default:throw new Error(`Unknown view: ${M} found.`)}},[A,K,n,s,L.hours,L.minutes,L.seconds,N.hoursClockNumberText,N.minutesClockNumberText,N.secondsClockNumberText,U,G,D,Z,be]),m=w.useMemo(()=>{if(!i)return q;const C=q.filter(k=>k!=="meridiem").toReversed();return q.includes("meridiem")&&C.push("meridiem"),C},[i,q]),x=w.useMemo(()=>q.reduce((M,C)=>P({},M,{[C]:me(C)}),{}),[q,me]),R=o,Y=vs(R);return v.jsx(ks,P({ref:r,className:le(Y.root,ee),ownerState:R,role:"group"},Q,{children:m.map(M=>v.jsx(Cs,{items:x[M].items,onChange:x[M].onChange,active:oe===M,autoFocus:p??ke===M,disabled:J,readOnly:se,slots:l,slotProps:b,skipDisabled:Ce,"aria-label":N.selectViewText(M)},M))}))}),Hs=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:s,views:i,value:o,defaultValue:n,referenceDate:c,onChange:p,className:l,classes:b,disableFuture:a,disablePast:h,minTime:u,maxTime:f,shouldDisableTime:g,minutesStep:_,ampm:H,ampmInClock:O,slots:S,slotProps:B,readOnly:I,disabled:d,sx:y,autoFocus:z,showViewSwitcher:F,disableIgnoringDatePartForTimeValidation:$,timezone:W})=>v.jsx(ss,{view:e,onViewChange:t,focusedView:r&&Te(r)?r:null,onFocusedViewChange:s,views:i.filter(Te),value:o,defaultValue:n,referenceDate:c,onChange:p,className:l,classes:b,disableFuture:a,disablePast:h,minTime:u,maxTime:f,shouldDisableTime:g,minutesStep:_,ampm:H,ampmInClock:O,slots:S,slotProps:B,readOnly:I,disabled:d,sx:y,autoFocus:z,showViewSwitcher:F,disableIgnoringDatePartForTimeValidation:$,timezone:W}),As=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:s,views:i,value:o,defaultValue:n,referenceDate:c,onChange:p,className:l,classes:b,disableFuture:a,disablePast:h,minTime:u,maxTime:f,shouldDisableTime:g,minutesStep:_,ampm:H,slots:O,slotProps:S,readOnly:B,disabled:I,sx:d,autoFocus:y,disableIgnoringDatePartForTimeValidation:z,timeSteps:F,skipDisabled:$,timezone:W})=>v.jsx(cs,{view:e,onViewChange:t,focusedView:r,onFocusedViewChange:s,views:i.filter(Te),value:o,defaultValue:n,referenceDate:c,onChange:p,className:l,classes:b,disableFuture:a,disablePast:h,minTime:u,maxTime:f,shouldDisableTime:g,minutesStep:_,ampm:H,slots:O,slotProps:S,readOnly:B,disabled:I,sx:d,autoFocus:y,disableIgnoringDatePartForTimeValidation:z,timeStep:F==null?void 0:F.minutes,skipDisabled:$,timezone:W}),Es=({view:e,onViewChange:t,focusedView:r,onFocusedViewChange:s,views:i,value:o,defaultValue:n,referenceDate:c,onChange:p,className:l,classes:b,disableFuture:a,disablePast:h,minTime:u,maxTime:f,shouldDisableTime:g,minutesStep:_,ampm:H,slots:O,slotProps:S,readOnly:B,disabled:I,sx:d,autoFocus:y,disableIgnoringDatePartForTimeValidation:z,timeSteps:F,skipDisabled:$,timezone:W})=>v.jsx(ws,{view:e,onViewChange:t,focusedView:r,onFocusedViewChange:s,views:i.filter(Te),value:o,defaultValue:n,referenceDate:c,onChange:p,className:l,classes:b,disableFuture:a,disablePast:h,minTime:u,maxTime:f,shouldDisableTime:g,minutesStep:_,ampm:H,slots:O,slotProps:S,readOnly:B,disabled:I,sx:d,autoFocus:y,disableIgnoringDatePartForTimeValidation:z,timeSteps:F,skipDisabled:$,timezone:W});export{bt as P,Fs as a,Es as b,As as c,Hs as d,_s as e,Bs as f,$s as g,js as m,Ae as p,Os as r,Is as v}; diff --git a/storybook/assets/useControlled-5JjQu8rW.js b/storybook/assets/useControlled-5JjQu8rW.js new file mode 100644 index 0000000..1de15d1 --- /dev/null +++ b/storybook/assets/useControlled-5JjQu8rW.js @@ -0,0 +1 @@ +import{r as e}from"./index-CTjT7uj6.js";function d({controlled:t,default:s,name:c,state:f="value"}){const{current:a}=e.useRef(t!==void 0),[o,u]=e.useState(s),l=a?t:o,n=e.useCallback(r=>{a||u(r)},[]);return[l,n]}export{d as u}; diff --git a/storybook/assets/useFormControl-Baz_U5RD.js b/storybook/assets/useFormControl-Baz_U5RD.js new file mode 100644 index 0000000..5f11438 --- /dev/null +++ b/storybook/assets/useFormControl-Baz_U5RD.js @@ -0,0 +1 @@ +import{r as t}from"./index-CTjT7uj6.js";function x({props:n,states:f,muiFormControl:e}){return f.reduce((r,o)=>(r[o]=n[o],e&&typeof n[o]>"u"&&(r[o]=e[o]),r),{})}const u=t.createContext(void 0);function C(){return t.useContext(u)}export{u as F,x as f,C as u}; diff --git a/storybook/assets/useId-BjRAp5Eo.js b/storybook/assets/useId-BjRAp5Eo.js new file mode 100644 index 0000000..8af9fb1 --- /dev/null +++ b/storybook/assets/useId-BjRAp5Eo.js @@ -0,0 +1 @@ +import{r as o,a as l}from"./index-CTjT7uj6.js";function i(...t){return t.reduce((n,e)=>e==null?n:function(...a){n.apply(this,a),e.apply(this,a)},()=>{})}let s=0;function r(t){const[n,e]=o.useState(t),u=t||n;return o.useEffect(()=>{n==null&&(s+=1,e(`mui-${s}`))},[n]),u}const c=l.useId;function d(t){if(c!==void 0){const n=c();return t??n}return r(t)}export{i as c,d as u}; diff --git a/storybook/assets/useStaticPicker-DQGfQM-K.js b/storybook/assets/useStaticPicker-DQGfQM-K.js new file mode 100644 index 0000000..4d665fe --- /dev/null +++ b/storybook/assets/useStaticPicker-DQGfQM-K.js @@ -0,0 +1 @@ +import{_ as u}from"./isNativeReflectConstruct-CJAgTEKr.js";import{s as A,_ as P,j as n,L as j,c as w}from"./Wrapper-DXvvO_B0.js";import"./index-CTjT7uj6.js";import{P as _,D as h,u as V}from"./errorHandler-ulv3bqY5.js";const W=["props","ref"],b=A(_)(({theme:e})=>({overflow:"hidden",minWidth:h,backgroundColor:(e.vars||e).palette.background.paper})),g=e=>{let{props:t,ref:l}=e,d=P(e,W);const{localeText:p,slots:r,slotProps:a,className:y,sx:s,displayStaticWrapperAs:x,autoFocus:m}=t,{layoutProps:f,renderCurrentView:k}=V(u({},d,{props:t,autoFocusView:m??!1,fieldRef:void 0,additionalViewProps:{},wrapperVariant:x})),L=(r==null?void 0:r.layout)??b;return{renderPicker:()=>{var o,i,c;return n.jsx(j,{localeText:p,children:n.jsx(L,u({},f,a==null?void 0:a.layout,{slots:r,slotProps:a,sx:[...Array.isArray(s)?s:[s],...Array.isArray((o=a==null?void 0:a.layout)==null?void 0:o.sx)?a.layout.sx:[(i=a==null?void 0:a.layout)==null?void 0:i.sx]],className:w(y,(c=a==null?void 0:a.layout)==null?void 0:c.className),ref:l,children:k()}))})}}};export{g as u}; diff --git a/storybook/assets/v4-CQkTLCs1.js b/storybook/assets/v4-CQkTLCs1.js new file mode 100644 index 0000000..3267bda --- /dev/null +++ b/storybook/assets/v4-CQkTLCs1.js @@ -0,0 +1 @@ +let e;const o=new Uint8Array(16);function i(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}const d=[];for(let n=0;n<256;++n)d.push((n+256).toString(16).slice(1));function p(n,t=0){return d[n[t+0]]+d[n[t+1]]+d[n[t+2]]+d[n[t+3]]+"-"+d[n[t+4]]+d[n[t+5]]+"-"+d[n[t+6]]+d[n[t+7]]+"-"+d[n[t+8]]+d[n[t+9]]+"-"+d[n[t+10]]+d[n[t+11]]+d[n[t+12]]+d[n[t+13]]+d[n[t+14]]+d[n[t+15]]}const y=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),c={randomUUID:y};function U(n,t,m){if(c.randomUUID&&!t&&!n)return c.randomUUID();n=n||{};const u=n.random||(n.rng||i)();return u[6]=u[6]&15|64,u[8]=u[8]&63|128,p(u)}export{U as v}; diff --git a/storybook/favicon.svg b/storybook/favicon.svg new file mode 100644 index 0000000..571f90f --- /dev/null +++ b/storybook/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/storybook/iframe.html b/storybook/iframe.html new file mode 100644 index 0000000..dbaa5f4 --- /dev/null +++ b/storybook/iframe.html @@ -0,0 +1,641 @@ + + + + + + Storybook + + + + + + + + + + + + + + + +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+

No Preview

+

Sorry, but you either have no stories or none are selected somehow.

+
    +
  • Please check the Storybook config.
  • +
  • Try reloading the page.
  • +
+

+ If the problem persists, check the browser console, or the terminal you've run Storybook from. +

+
+
+ +
+
+

+

+ The component failed to render properly, likely due to a configuration issue in Storybook. + Here are some common causes and how you can address them: +

+
    +
  1. + Missing Context/Providers: You can use decorators to supply specific + contexts or providers, which are sometimes necessary for components to render correctly. For + detailed instructions on using decorators, please visit the + Decorators documentation. +
  2. +
  3. + Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary + settings for loaders, plugins, and other relevant parameters. You can find step-by-step + guides for configuring + Webpack or + Vite + with Storybook. +
  4. +
  5. + Missing Environment Variables: Your Storybook may require specific + environment variables to function as intended. You can set up custom environment variables + as outlined in the + Environment Variables documentation. +
  6. +
+
+
+
+ +
+
+ + diff --git a/storybook/index.html b/storybook/index.html new file mode 100644 index 0000000..cf9af19 --- /dev/null +++ b/storybook/index.html @@ -0,0 +1,177 @@ + + + + + + storybook - Storybook + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + diff --git a/storybook/index.json b/storybook/index.json new file mode 100644 index 0000000..0c1cdf6 --- /dev/null +++ b/storybook/index.json @@ -0,0 +1 @@ +{"v":5,"entries":{"core-autocomplete--default":{"type":"story","id":"core-autocomplete--default","name":"Default","title":"Core/Autocomplete","importPath":"./src/stories/Autocomplete.stories.tsx","componentPath":"./packages/formik-mui/src/Autocomplete.tsx","tags":["dev","test"]},"core-checkbox--default":{"type":"story","id":"core-checkbox--default","name":"Default","title":"Core/Checkbox","importPath":"./src/stories/Checkbox.stories.tsx","componentPath":"./packages/formik-mui/src/Checkbox.tsx","tags":["dev","test"]},"x-mui-datepicker--default":{"type":"story","id":"x-mui-datepicker--default","name":"Default","title":"X-Mui/DatePicker","importPath":"./src/stories/DatePicker.stories.tsx","componentPath":"./packages/formik-mui-x-date-pickers/src/DatePicker.tsx","tags":["dev","test"]},"x-mui-datetimepicker--default":{"type":"story","id":"x-mui-datetimepicker--default","name":"Default","title":"X-Mui/DateTimePicker","importPath":"./src/stories/DateTimePicker.stories.tsx","componentPath":"./packages/formik-mui-x-date-pickers/src/DateTimePicker.tsx","tags":["dev","test"]},"core-inputbase--default":{"type":"story","id":"core-inputbase--default","name":"Default","title":"Core/InputBase","importPath":"./src/stories/InputBase.stories.tsx","componentPath":"./packages/formik-mui/src/InputBase.tsx","tags":["dev","test"]},"core-radiogroup--default":{"type":"story","id":"core-radiogroup--default","name":"Default","title":"Core/RadioGroup","importPath":"./src/stories/RadioGroup.stories.tsx","componentPath":"./packages/formik-mui/src/RadioGroup.tsx","tags":["dev","test"]},"core-select--default":{"type":"story","id":"core-select--default","name":"Default","title":"Core/Select","importPath":"./src/stories/Select.stories.tsx","componentPath":"./packages/formik-mui/src/Select.tsx","tags":["dev","test"]},"core-simplefileupload--default":{"type":"story","id":"core-simplefileupload--default","name":"Default","title":"Core/SimpleFileUpload","importPath":"./src/stories/SimpleFileUpload.stories.tsx","componentPath":"./packages/formik-mui/src/SimpleFileUpload.tsx","tags":["dev","test"]},"core-switch--default":{"type":"story","id":"core-switch--default","name":"Default","title":"Core/Switch","importPath":"./src/stories/Switches.stories.tsx","componentPath":"./packages/formik-mui/src/Switch.tsx","tags":["dev","test"]},"core-textfield--default":{"type":"story","id":"core-textfield--default","name":"Default","title":"Core/TextField","importPath":"./src/stories/TextField.stories.tsx","componentPath":"./packages/formik-mui/src/TextField.tsx","tags":["dev","test"]},"x-mui-timepicker--default":{"type":"story","id":"x-mui-timepicker--default","name":"Default","title":"X-Mui/TimePicker","importPath":"./src/stories/TimePicker.stories.tsx","componentPath":"./packages/formik-mui-x-date-pickers/src/TimePicker.tsx","tags":["dev","test"]},"core-togglebuttongroup--default":{"type":"story","id":"core-togglebuttongroup--default","name":"Default","title":"Core/ToggleButtonGroup","importPath":"./src/stories/ToggleButtonGroup.stories.tsx","componentPath":"./packages/formik-mui/src/ToggleButtonGroup.tsx","tags":["dev","test"]}}} diff --git a/storybook/nunito-sans-bold-italic.woff2 b/storybook/nunito-sans-bold-italic.woff2 new file mode 100644 index 0000000..33563d8 Binary files /dev/null and b/storybook/nunito-sans-bold-italic.woff2 differ diff --git a/storybook/nunito-sans-bold.woff2 b/storybook/nunito-sans-bold.woff2 new file mode 100644 index 0000000..19fcc94 Binary files /dev/null and b/storybook/nunito-sans-bold.woff2 differ diff --git a/storybook/nunito-sans-italic.woff2 b/storybook/nunito-sans-italic.woff2 new file mode 100644 index 0000000..827096d Binary files /dev/null and b/storybook/nunito-sans-italic.woff2 differ diff --git a/storybook/nunito-sans-regular.woff2 b/storybook/nunito-sans-regular.woff2 new file mode 100644 index 0000000..c527ba4 Binary files /dev/null and b/storybook/nunito-sans-regular.woff2 differ diff --git a/storybook/project.json b/storybook/project.json new file mode 100644 index 0000000..94afb2b --- /dev/null +++ b/storybook/project.json @@ -0,0 +1 @@ +{"generatedAt":1724916983528,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/jest-dom":"6.5.0","@testing-library/react":"16.0.0","eslint-plugin-jest":"28.8.0","vitest":"2.0.5"},"monorepo":"Lerna","packageManager":{"type":"npm","version":"10.7.0"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.9","storybookVersionSpecifier":"^8.2.9","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"8.2.9"},"@storybook/builder-vite":{"version":"8.2.9"},"@storybook/react":{"version":"8.2.9"},"@storybook/react-vite":{"version":"8.2.9"}},"addons":{"@storybook/addon-links":{"version":"8.2.9"},"@storybook/addon-essentials":{"version":"8.2.9"},"@storybook/addon-interactions":{"version":"8.2.9"}}} diff --git a/storybook/sb-addons/essentials-actions-3/manager-bundle.js b/storybook/sb-addons/essentials-actions-3/manager-bundle.js new file mode 100644 index 0000000..de07a69 --- /dev/null +++ b/storybook/sb-addons/essentials-actions-3/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var o=__REACT__,{Children:Te,Component:_e,Fragment:ve,Profiler:Jr,PureComponent:qr,StrictMode:Xr,Suspense:Zr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Kr,cloneElement:Qr,createContext:Z,createElement:en,createFactory:tn,createRef:rn,forwardRef:Se,isValidElement:nn,lazy:an,memo:j,startTransition:on,unstable_act:sn,useCallback:x,useContext:K,useDebugValue:ln,useDeferredValue:un,useEffect:Re,useId:cn,useImperativeHandle:pn,useInsertionEffect:fn,useLayoutEffect:Ae,useMemo:Ce,useReducer:dn,useRef:we,useState:U,useSyncExternalStore:mn,useTransition:gn,version:bn}=__REACT__;var Tn=__STORYBOOK_API__,{ActiveTabs:_n,Consumer:vn,ManagerContext:Sn,Provider:Rn,RequestResponseError:An,addons:Q,combineParameters:Cn,controlOrMetaKey:wn,controlOrMetaSymbol:Nn,eventMatchesShortcut:xn,eventToShortcut:Ln,experimental_requestResponse:In,isMacLike:Dn,isShortcutTaken:Mn,keyToSymbol:Pn,merge:Bn,mockChannel:Fn,optionOrAltSymbol:zn,shortcutMatchesShortcut:Hn,shortcutToHumanString:jn,types:Ne,useAddonState:xe,useArgTypes:Un,useArgs:kn,useChannel:Le,useGlobalTypes:Gn,useGlobals:Wn,useParameter:Vn,useSharedState:$n,useStoryPrepared:Yn,useStorybookApi:Jn,useStorybookState:qn}=__STORYBOOK_API__;var ea=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:ta,ARGTYPES_INFO_RESPONSE:ra,CHANNEL_CREATED:na,CHANNEL_WS_DISCONNECT:aa,CONFIG_ERROR:oa,CREATE_NEW_STORYFILE_REQUEST:ia,CREATE_NEW_STORYFILE_RESPONSE:sa,CURRENT_STORY_WAS_SET:la,DOCS_PREPARED:ua,DOCS_RENDERED:ca,FILE_COMPONENT_SEARCH_REQUEST:pa,FILE_COMPONENT_SEARCH_RESPONSE:fa,FORCE_REMOUNT:da,FORCE_RE_RENDER:ma,GLOBALS_UPDATED:ga,NAVIGATE_URL:ba,PLAY_FUNCTION_THREW_EXCEPTION:ha,PRELOAD_ENTRIES:Ea,PREVIEW_BUILDER_PROGRESS:ya,PREVIEW_KEYDOWN:Oa,REGISTER_SUBSCRIPTION:Ta,REQUEST_WHATS_NEW_DATA:_a,RESET_STORY_ARGS:va,RESULT_WHATS_NEW_DATA:Sa,SAVE_STORY_REQUEST:Ra,SAVE_STORY_RESPONSE:Aa,SELECT_STORY:Ca,SET_CONFIG:wa,SET_CURRENT_STORY:Na,SET_GLOBALS:xa,SET_INDEX:La,SET_STORIES:Ia,SET_WHATS_NEW_CACHE:Da,SHARED_STATE_CHANGED:Ma,SHARED_STATE_SET:Pa,STORIES_COLLAPSE_ALL:Ba,STORIES_EXPAND_ALL:Fa,STORY_ARGS_UPDATED:za,STORY_CHANGED:k,STORY_ERRORED:Ha,STORY_INDEX_INVALIDATED:ja,STORY_MISSING:Ua,STORY_PREPARED:ka,STORY_RENDERED:Ga,STORY_RENDER_PHASE_CHANGED:Wa,STORY_SPECIFIED:Va,STORY_THREW_EXCEPTION:$a,STORY_UNCHANGED:Ya,TELEMETRY_ERROR:Ja,TOGGLE_WHATS_NEW_NOTIFICATIONS:qa,UNHANDLED_ERRORS_WHILE_PLAYING:Xa,UPDATE_GLOBALS:Za,UPDATE_QUERY_PARAMS:Ka,UPDATE_STORY_ARGS:Qa}=__STORYBOOK_CORE_EVENTS__;var uo=__STORYBOOK_COMPONENTS__,{A:co,ActionBar:Ie,AddonPanel:po,Badge:De,Bar:fo,Blockquote:mo,Button:go,ClipboardCode:bo,Code:ho,DL:Eo,Div:yo,DocumentWrapper:Oo,EmptyTabContent:To,ErrorFormatter:_o,FlexBar:vo,Form:So,H1:Ro,H2:Ao,H3:Co,H4:wo,H5:No,H6:xo,HR:Lo,IconButton:Io,IconButtonSkeleton:Do,Icons:Mo,Img:Po,LI:Bo,Link:Fo,ListItem:zo,Loader:Ho,Modal:jo,OL:Uo,P:ko,Placeholder:Go,Pre:Wo,ResetWrapper:Vo,ScrollArea:Me,Separator:$o,Spaced:Pe,Span:Yo,StorybookIcon:Jo,StorybookLogo:qo,Symbols:Xo,SyntaxHighlighter:Zo,TT:Ko,TabBar:Qo,TabButton:ei,TabWrapper:ti,Table:ri,Tabs:ni,TabsState:ai,TooltipLinkList:oi,TooltipMessage:ii,TooltipNote:si,UL:li,WithTooltip:ui,WithTooltipPure:ci,Zoom:pi,codeCommon:fi,components:di,createCopyToClipboardFunction:mi,getStoryHref:gi,icons:bi,interleaveSeparators:hi,nameSpaceClassNames:Ei,resetComponents:yi,withReset:Oi}=__STORYBOOK_COMPONENTS__;var Be=Object.prototype.hasOwnProperty;function Fe(e,t,r){for(r of e.keys())if(L(r,t))return r}function L(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&L(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(a=n,a&&typeof a=="object"&&(a=Fe(t,a),!a)||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(a=n[0],a&&typeof a=="object"&&(a=Fe(t,a),!a)||!L(n[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Be.call(e,r)&&++n&&!Be.call(t,r)||!(r in t)||!L(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var Ni=__STORYBOOK_THEMING__,{CacheProvider:xi,ClassNames:Li,Global:Ii,ThemeProvider:Di,background:Mi,color:Pi,convert:Bi,create:Fi,createCache:zi,createGlobal:Hi,createReset:ji,css:Ui,darken:ki,ensure:Gi,ignoreSsrWarning:Wi,isPropValid:Vi,jsx:$i,keyframes:Yi,lighten:Ji,styled:B,themes:qi,typography:Xi,useTheme:Zi,withTheme:ze}=__STORYBOOK_THEMING__;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&a<1?(l=i,u=s):a>=1&&a<2?(l=s,u=i):a>=2&&a<3?(u=i,c=s):a>=3&&a<4?(u=s,c=i):a>=4&&a<5?(l=s,c=i):a>=5&&a<6&&(l=i,c=s);var p=r-i/2,d=l+p,f=u+p,E=c+p;return n(d,f,E)}var Ve={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function mt(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Ve[t]?"#"+Ve[t]:e}var gt=/^#[a-fA-F0-9]{6}$/,bt=/^#[a-fA-F0-9]{8}$/,ht=/^#[a-fA-F0-9]{3}$/,Et=/^#[a-fA-F0-9]{4}$/,re=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,yt=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ot=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Tt=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function I(e){if(typeof e!="string")throw new _(3);var t=mt(e);if(t.match(gt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(bt)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ht))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Et)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=re.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=yt.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=Ot.exec(t);if(s){var l=parseInt(""+s[1],10),u=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+F(l,u,c)+")",d=re.exec(p);if(!d)throw new _(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=Tt.exec(t.substring(0,50));if(f){var E=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,O="rgb("+F(E,m,y)+")",N=re.exec(O);if(!N)throw new _(4,t,O);return{red:parseInt(""+N[1],10),green:parseInt(""+N[2],10),blue:parseInt(""+N[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new _(5)}function _t(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=(a+i)/2;if(a===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l,u=a-i,c=s>.5?u/(2-a-i):u/(a+i);switch(a){case t:l=(r-n)/u+(r=1?V(e,t,r):"rgba("+F(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?V(e.hue,e.saturation,e.lightness):"rgba("+F(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new _(2)}function oe(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ae("#"+w(e)+w(t)+w(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ae("#"+w(e.red)+w(e.green)+w(e.blue));throw new _(6)}function $(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=I(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?oe(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?oe(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new _(7)}var Ct=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},wt=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},Nt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},xt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function C(e){if(typeof e!="object")throw new _(8);if(wt(e))return $(e);if(Ct(e))return oe(e);if(xt(e))return At(e);if(Nt(e))return Rt(e);throw new _(8)}function Ye(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ye(e,t,a)}}function v(e){return Ye(e,e.length,[])}function Lt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{hue:r.hue+parseFloat(e)}))}var nl=v(Lt);function D(e,t,r){return Math.max(e,Math.min(t,r))}function It(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{lightness:D(0,1,r.lightness-parseFloat(e))}))}var al=v(It);function Dt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{saturation:D(0,1,r.saturation-parseFloat(e))}))}var ol=v(Dt);function Mt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{lightness:D(0,1,r.lightness+parseFloat(e))}))}var il=v(Mt);function Pt(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=I(t),a=T({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=I(r),s=T({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=a.alpha-s.alpha,u=parseFloat(e)*2-1,c=u*l===-1?u:u+l,p=1+u*l,d=(c/p+1)/2,f=1-d,E={red:Math.floor(a.red*d+s.red*f),green:Math.floor(a.green*d+s.green*f),blue:Math.floor(a.blue*d+s.blue*f),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return $(E)}var Bt=v(Pt),Je=Bt;function Ft(e,t){if(t==="transparent")return t;var r=I(t),n=typeof r.alpha=="number"?r.alpha:1,a=T({},r,{alpha:D(0,1,(n*100+parseFloat(e)*100)/100)});return $(a)}var zt=v(Ft),qe=zt;function Ht(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{saturation:D(0,1,r.saturation+parseFloat(e))}))}var sl=v(Ht);function jt(e,t){return t==="transparent"?t:C(T({},A(t),{hue:parseFloat(e)}))}var ll=v(jt);function Ut(e,t){return t==="transparent"?t:C(T({},A(t),{lightness:parseFloat(e)}))}var ul=v(Ut);function kt(e,t){return t==="transparent"?t:C(T({},A(t),{saturation:parseFloat(e)}))}var cl=v(kt);function Gt(e,t){return t==="transparent"?t:Je(parseFloat(e),"rgb(0, 0, 0)",t)}var pl=v(Gt);function Wt(e,t){return t==="transparent"?t:Je(parseFloat(e),"rgb(255, 255, 255)",t)}var fl=v(Wt);function Vt(e,t){if(t==="transparent")return t;var r=I(t),n=typeof r.alpha=="number"?r.alpha:1,a=T({},r,{alpha:D(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return $(a)}var dl=v(Vt);var $t=Object.create,pe=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,Jt=Object.getPrototypeOf,qt=Object.prototype.hasOwnProperty,fe=(e,t)=>function(){return t||(0,e[et(e)[0]])((t={exports:{}}).exports,t),t.exports},Xt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Zt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of et(t))!qt.call(e,a)&&a!==r&&pe(e,a,{get:()=>t[a],enumerable:!(n=Yt(t,a))||n.enumerable});return e},Kt=(e,t,r)=>(r=e!=null?$t(Jt(e)):{},Zt(t||!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),Qt=fe({"node_modules/is-object/index.js"(e,t){t.exports=function(r){return typeof r=="object"&&r!==null}}}),er=fe({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),tr=fe({"node_modules/is-dom/index.js"(e,t){var r=Qt(),n=er();function a(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=a}}),q={};Xt(q,{chromeDark:()=>rr,chromeLight:()=>nr});var rr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},nr={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},tt=Z([{},()=>{}]),ie={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Y=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...ie},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...ie},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...ie}}),se="chromeLight",rt=Z(Y(q[se])),S=e=>K(rt)[e],de=e=>({theme:t=se,...r})=>{let n=Ce(()=>{switch(Object.prototype.toString.call(t)){case"[object String]":return Y(q[t]);case"[object Object]":return Y(t);default:return Y(q[se])}},[t]);return o.createElement(rt.Provider,{value:n},o.createElement(e,{...r}))},ar=({expanded:e,styles:t})=>o.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"\u25B6"),or=j(e=>{e={expanded:!0,nodeRenderer:({name:p})=>o.createElement("span",null,p),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};let{expanded:t,onClick:r,children:n,nodeRenderer:a,title:i,shouldShowArrow:s,shouldShowPlaceholder:l}=e,u=S("TreeNode"),c=a;return o.createElement("li",{"aria-expanded":t,role:"treeitem",style:u.treeNodeBase,title:i},o.createElement("div",{style:u.treeNodePreviewContainer,onClick:r},s||Te.count(n)>0?o.createElement(ar,{expanded:t,styles:u.treeNodeArrow}):l&&o.createElement("span",{style:u.treeNodePlaceholder},"\xA0"),o.createElement(c,{...e})),o.createElement("ol",{role:"group",style:u.treeNodeChildNodesContainer},t?n:void 0))}),X="$",Xe="*";function J(e,t){return!t(e).next().done}var ir=e=>Array.from({length:e},(t,r)=>[X].concat(Array.from({length:r},()=>"*")).join(".")),sr=(e,t,r,n,a)=>{let i=[].concat(ir(n)).concat(r).filter(l=>typeof l=="string"),s=[];return i.forEach(l=>{let u=l.split("."),c=(p,d,f)=>{if(f===u.length){s.push(d);return}let E=u[f];if(f===0)J(p,t)&&(E===X||E===Xe)&&c(p,X,f+1);else if(E===Xe)for(let{name:m,data:y}of t(p))J(y,t)&&c(y,`${d}.${m}`,f+1);else{let m=p[E];J(m,t)&&c(m,`${d}.${E}`,f+1)}};c(e,"",0)}),s.reduce((l,u)=>(l[u]=!0,l),{...a})},nt=j(e=>{let{data:t,dataIterator:r,path:n,depth:a,nodeRenderer:i}=e,[s,l]=K(tt),u=J(t,r),c=!!s[n],p=x(()=>u&&l(d=>({...d,[n]:!c})),[u,l,n,c]);return o.createElement(or,{expanded:c,onClick:p,shouldShowArrow:u,shouldShowPlaceholder:a>0,nodeRenderer:i,...e},c?[...r(t)].map(({name:d,data:f,...E})=>o.createElement(nt,{name:d,data:f,depth:a+1,path:`${n}.${d}`,key:d,dataIterator:r,nodeRenderer:i,...E})):null)}),at=j(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:a,expandLevel:i})=>{let s=S("TreeView"),l=U({}),[,u]=l;return Ae(()=>u(c=>sr(t,r,a,i,c)),[t,r,a,i]),o.createElement(tt.Provider,{value:l},o.createElement("ol",{role:"tree",style:s.treeViewOutline},o.createElement(nt,{name:e,data:t,dataIterator:r,depth:0,path:X,nodeRenderer:n})))}),me=({name:e,dimmed:t=!1,styles:r={}})=>{let n=S("ObjectName"),a={...n.base,...t?n.dimmed:{},...r};return o.createElement("span",{style:a},e)},z=({object:e,styles:t})=>{let r=S("ObjectValue"),n=a=>({...r[a],...t});switch(typeof e){case"bigint":return o.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return o.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return o.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return o.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return o.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?o.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?o.createElement("span",null,e.toString()):e instanceof RegExp?o.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?o.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?o.createElement("span",null,`Buffer[${e.length}]`):o.createElement("span",null,e.constructor.name):o.createElement("span",null,"Object");case"function":return o.createElement("span",null,o.createElement("span",{style:n("objectValueFunctionPrefix")},"\u0192\xA0"),o.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return o.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return o.createElement("span",null)}},ot=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;function le(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function Ze(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var ue=({data:e})=>{let t=S("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return o.createElement(z,{object:r});if(Array.isArray(r)){let n=t.arrayMaxProperties,a=r.slice(0,n).map((s,l)=>o.createElement(z,{key:l,object:s}));r.length>n&&a.push(o.createElement("span",{key:"ellipsis"},"\u2026"));let i=r.length;return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i===0?"":`(${i})\xA0`),o.createElement("span",{style:t.preview},"[",Ze(a,", "),"]"))}else{let n=t.objectMaxProperties,a=[];for(let s in r)if(ot.call(r,s)){let l;a.length===n-1&&Object.keys(r).length>n&&(l=o.createElement("span",{key:"ellipsis"},"\u2026"));let u=le(r,s);if(a.push(o.createElement("span",{key:s},o.createElement(me,{name:s||'""'}),":\xA0",o.createElement(z,{object:u}),l)),l)break}let i=r.constructor?r.constructor.name:"Object";return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),o.createElement("span",{style:t.preview},"{",Ze(a,", "),"}"))}},ur=({name:e,data:t})=>typeof e=="string"?o.createElement("span",null,o.createElement(me,{name:e}),o.createElement("span",null,": "),o.createElement(ue,{data:t})):o.createElement(ue,{data:t}),cr=({name:e,data:t,isNonenumerable:r=!1})=>{let n=t;return o.createElement("span",null,typeof e=="string"?o.createElement(me,{name:e,dimmed:r}):o.createElement(ue,{data:e}),o.createElement("span",null,": "),o.createElement(z,{object:n}))},pr=(e,t)=>function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;let n=Array.isArray(r);if(!n&&r[Symbol.iterator]){let a=0;for(let i of r){if(Array.isArray(i)&&i.length===2){let[s,l]=i;yield{name:s,data:l}}else yield{name:a.toString(),data:i};a++}}else{let a=Object.getOwnPropertyNames(r);t===!0&&!n?a.sort():typeof t=="function"&&a.sort(t);for(let i of a)if(lr.call(r,i)){let s=le(r,i);yield{name:i||'""',data:s}}else if(e){let s;try{s=le(r,i)}catch{}s!==void 0&&(yield{name:i,data:s,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},fr=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?o.createElement(ur,{name:t,data:r}):o.createElement(cr,{name:t,data:r,isNonenumerable:n}),dr=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{let a=pr(e,t),i=r||fr;return o.createElement(at,{nodeRenderer:i,dataIterator:a,...n})},mr=de(dr);function gr(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){let n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));let r=t.reduce((n,a)=>{let i=e[a];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((s,l)=>(s.includes(l)||s.push(l),s),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var br=({rows:e,columns:t,rowsData:r})=>{let n=S("TableInspectorDataContainer"),a=S("TableInspectorLeftBorder");return o.createElement("div",{style:n.div},o.createElement("table",{style:n.table},o.createElement("colgroup",null),o.createElement("tbody",null,e.map((i,s)=>o.createElement("tr",{key:i,style:n.tr},o.createElement("td",{style:{...n.td,...a.none}},i),t.map(l=>{let u=r[s];return typeof u=="object"&&u!==null&&ot.call(u,l)?o.createElement("td",{key:l,style:{...n.td,...a.solid}},o.createElement(z,{object:u[l]})):o.createElement("td",{key:l,style:{...n.td,...a.solid}})}))))))},hr=e=>o.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),Er=({sortAscending:e})=>{let t=S("TableInspectorSortIcon"),r=e?"\u25B2":"\u25BC";return o.createElement("div",{style:t},r)},Ke=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:a,...i})=>{let s=S("TableInspectorTH"),[l,u]=U(!1),c=x(()=>u(!0),[]),p=x(()=>u(!1),[]);return o.createElement("th",{...i,style:{...s.base,...n,...l?s.base[":hover"]:{}},onMouseEnter:c,onMouseLeave:p,onClick:r},o.createElement("div",{style:s.div},a),t&&o.createElement(hr,null,o.createElement(Er,{sortAscending:e})))},yr=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:a,sortAscending:i,onTHClick:s,onIndexTHClick:l})=>{let u=S("TableInspectorHeaderContainer"),c=S("TableInspectorLeftBorder");return o.createElement("div",{style:u.base},o.createElement("table",{style:u.table},o.createElement("tbody",null,o.createElement("tr",null,o.createElement(Ke,{borderStyle:c.none,sorted:r&&n,sortAscending:i,onClick:l},e),t.map(p=>o.createElement(Ke,{borderStyle:c.solid,key:p,sorted:r&&a===p,sortAscending:i,onClick:s.bind(null,p)},p))))))},Or=({data:e,columns:t})=>{let r=S("TableInspector"),[{sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s},l]=U({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),u=x(()=>{l(({sortIndexColumn:m,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:m?!y:!0}))},[]),c=x(m=>{l(({sortColumn:y,sortAscending:O})=>({sorted:!0,sortIndexColumn:!1,sortColumn:m,sortAscending:m===y?!O:!0}))},[]);if(typeof e!="object"||e===null)return o.createElement("div",null);let{rowHeaders:p,colHeaders:d}=gr(e);t!==void 0&&(d=t);let f=p.map(m=>e[m]),E;if(i!==void 0?E=f.map((m,y)=>typeof m=="object"&&m!==null?[m[i],y]:[void 0,y]):a&&(E=p.map((m,y)=>[p[y],y])),E!==void 0){let m=(O,N)=>(ut,ct)=>{let ge=O(ut),be=O(ct),he=typeof ge,Ee=typeof be,ye=(P,Oe)=>POe?1:0,M;if(he===Ee)M=ye(ge,be);else{let P={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};M=ye(P[he],P[Ee])}return N||(M=-M),M},y=E.sort(m(O=>O[0],s)).map(O=>O[1]);p=y.map(O=>p[O]),f=y.map(O=>f[O])}return o.createElement("div",{style:r.base},o.createElement(yr,{columns:d,sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s,onTHClick:c,onIndexTHClick:u}),o.createElement(br,{rows:p,columns:d,rowsData:f}))},Tr=de(Or),_r=80,it=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<_r,vr=({tagName:e,attributes:t,styles:r})=>o.createElement("span",{style:r.base},"<",o.createElement("span",{style:r.tagName},e),(()=>{if(t){let n=[];for(let a=0;a"),Qe=({tagName:e,isChildNode:t=!1,styles:r})=>o.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},""),Sr={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Rr=({isCloseTag:e,data:t,expanded:r})=>{let n=S("DOMNodePreview");if(e)return o.createElement(Qe,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return o.createElement("span",null,o.createElement(vr,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),it(t)?t.textContent:!r&&"\u2026",!r&&o.createElement(Qe,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return o.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return o.createElement("span",null,"");case Node.COMMENT_NODE:return o.createElement("span",{style:n.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return o.createElement("span",{style:n.htmlDoctype},"");case Node.DOCUMENT_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return o.createElement("span",null,t.nodeName);default:return o.createElement("span",null,Sr[t.nodeType])}},Ar=function*(e){if(e&&e.childNodes){if(it(e))return;for(let t=0;to.createElement(at,{nodeRenderer:Rr,dataIterator:Ar,...e}),wr=de(Cr),Nr=Kt(tr()),xr=({table:e=!1,data:t,...r})=>e?o.createElement(Tr,{data:t,...r}):(0,Nr.default)(t)?o.createElement(wr,{data:t,...r}):o.createElement(mr,{data:t,...r}),Lr=B.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),Ir=B.div(({theme:e})=>({backgroundColor:qe(.5,e.appBorderColor),color:e.color.inverseText,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"})),Dr=B.div({flex:1,padding:"0 0 0 5px"}),st=Se(({children:e,className:t},r)=>o.createElement(Me,{ref:r,horizontal:!0,vertical:!0,className:t},e));st.displayName="UnstyledWrapped";var Mr=B(st)({margin:0,padding:"10px 5px 20px"}),Pr=ze(({theme:e,...t})=>o.createElement(xr,{theme:e.addonActionsTheme||"chromeLight",table:!1,...t})),Br=({actions:e,onClear:t})=>{let r=we(null),n=r.current,a=n&&n.scrollHeight-n.scrollTop===n.clientHeight;return Re(()=>{a&&(r.current.scrollTop=r.current.scrollHeight)},[a,e.length]),o.createElement(ve,null,o.createElement(Mr,{ref:r},e.map(i=>o.createElement(Lr,{key:i.id},i.count>1&&o.createElement(Ir,null,i.count),o.createElement(Dr,null,o.createElement(Pr,{sortObjectKeys:!0,showNonenumerable:!1,name:i.data.name,data:i.data.args??i.data}))))),o.createElement(Ie,{actionItems:[{title:"Clear",onClick:t}]}))},Fr="actions",H="storybook/actions",zr=`${H}/panel`,ce=`${H}/action-event`,lt=`${H}/action-clear`,Hr=(e,t)=>{try{return L(e,t)}catch{return!1}},jr=class extends _e{constructor(e){super(e),this.handleStoryChange=()=>{let{actions:t}=this.state;t.length>0&&t[0].options.clearOnStoryChange&&this.clearActions()},this.addAction=t=>{this.setState(r=>{let n=[...r.actions],a=n.length&&n[n.length-1];return a&&Hr(a.data,t.data)?a.count++:(t.count=1,n.push(t)),{actions:n.slice(0,t.options.limit)}})},this.clearActions=()=>{let{api:t}=this.props;t.emit(lt),this.setState({actions:[]})},this.mounted=!1,this.state={actions:[]}}componentDidMount(){this.mounted=!0;let{api:e}=this.props;e.on(ce,this.addAction),e.on(k,this.handleStoryChange)}componentWillUnmount(){this.mounted=!1;let{api:e}=this.props;e.off(k,this.handleStoryChange),e.off(ce,this.addAction)}render(){let{actions:e=[]}=this.state,{active:t}=this.props,r={actions:e,onClear:this.clearActions};return t?o.createElement(Br,{...r}):null}};function Ur(){let[{count:e},t]=xe(H,{count:0});return Le({[ce]:()=>{t(r=>({...r,count:r.count+1}))},[k]:()=>{t(r=>({...r,count:0}))},[lt]:()=>{t(r=>({...r,count:0}))}}),o.createElement("div",null,o.createElement(Pe,{col:1},o.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Actions"),e===0?"":o.createElement(De,{status:"neutral"},e)))}Q.register(H,e=>{Q.add(zr,{title:Ur,type:Ne.PANEL,render:({active:t})=>o.createElement(jr,{api:e,active:!!t}),paramKey:Fr})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js b/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js new file mode 100644 index 0000000..5b0b898 --- /dev/null +++ b/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js @@ -0,0 +1,12 @@ +try{ +(()=>{var ne=Object.create;var F=Object.defineProperty;var te=Object.getOwnPropertyDescriptor;var re=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,ie=Object.prototype.hasOwnProperty;var E=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,a)=>(typeof require<"u"?require:o)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var x=(e,o)=>()=>(e&&(o=e(e=0)),o);var ae=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var se=(e,o,a,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of re(o))!ie.call(e,c)&&c!==a&&F(e,c,{get:()=>o[c],enumerable:!(r=te(o,c))||r.enumerable});return e};var le=(e,o,a)=>(a=e!=null?ne(ce(e)):{},se(o||!e||!e.__esModule?F(a,"default",{value:e,enumerable:!0}):a,e));var I=x(()=>{});var d=x(()=>{});var m=x(()=>{});var V=ae((W,G)=>{I();d();m();(function(e){if(typeof W=="object"&&typeof G<"u")G.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var o;typeof window<"u"||typeof window<"u"?o=window:typeof self<"u"?o=self:o=this,o.memoizerific=e()}})(function(){var e,o,a;return function r(c,h,s){function t(i,f){if(!h[i]){if(!c[i]){var u=typeof E=="function"&&E;if(!f&&u)return u(i,!0);if(n)return n(i,!0);var b=new Error("Cannot find module '"+i+"'");throw b.code="MODULE_NOT_FOUND",b}var p=h[i]={exports:{}};c[i][0].call(p.exports,function(g){var S=c[i][1][g];return t(S||g)},p,p.exports,r,c,h,s)}return h[i].exports}for(var n=typeof E=="function"&&E,l=0;l=0)return this.lastItem=this.list[n],this.list[n].val},s.prototype.set=function(t,n){var l;return this.lastItem&&this.isEqual(this.lastItem.key,t)?(this.lastItem.val=n,this):(l=this.indexOf(t),l>=0?(this.lastItem=this.list[l],this.list[l].val=n,this):(this.lastItem={key:t,val:n},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(t){var n;if(this.lastItem&&this.isEqual(this.lastItem.key,t)&&(this.lastItem=void 0),n=this.indexOf(t),n>=0)return this.size--,this.list.splice(n,1)[0]},s.prototype.has=function(t){var n;return this.lastItem&&this.isEqual(this.lastItem.key,t)?!0:(n=this.indexOf(t),n>=0?(this.lastItem=this.list[n],!0):!1)},s.prototype.forEach=function(t,n){var l;for(l=0;l0&&(B[T]={cacheItem:g,arg:arguments[T]},A?t(u,B):u.push(B),u.length>i&&n(u.shift())),p.wasMemoized=A,p.numArgs=T+1,w};return p.limit=i,p.wasMemoized=!1,p.cache=f,p.lru=u,p}};function t(i,f){var u=i.length,b=f.length,p,g,S;for(g=0;g=0&&(u=i[p],b=u.cacheItem.get(u.arg),!b||!b.size);p--)u.cacheItem.delete(u.arg)}function l(i,f){return i===f||i!==i&&f!==f}},{"map-or-similar":1}]},{},[3])(3)})});I();d();m();I();d();m();I();d();m();I();d();m();var C=__REACT__,{Children:ke,Component:Te,Fragment:R,Profiler:Oe,PureComponent:ve,StrictMode:Ae,Suspense:Ee,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:we,cloneElement:Be,createContext:xe,createElement:Re,createFactory:Le,createRef:Pe,forwardRef:Me,isValidElement:De,lazy:Ge,memo:L,startTransition:He,unstable_act:Ne,useCallback:q,useContext:Ue,useDebugValue:Fe,useDeferredValue:qe,useEffect:ze,useId:Ke,useImperativeHandle:Ye,useInsertionEffect:We,useLayoutEffect:Ve,useMemo:z,useReducer:$e,useRef:je,useState:K,useSyncExternalStore:Ze,useTransition:Je,version:Qe}=__REACT__;I();d();m();var to=__STORYBOOK_API__,{ActiveTabs:ro,Consumer:co,ManagerContext:io,Provider:ao,RequestResponseError:so,addons:P,combineParameters:lo,controlOrMetaKey:uo,controlOrMetaSymbol:Io,eventMatchesShortcut:mo,eventToShortcut:po,experimental_requestResponse:fo,isMacLike:ho,isShortcutTaken:go,keyToSymbol:bo,merge:So,mockChannel:Co,optionOrAltSymbol:yo,shortcutMatchesShortcut:_o,shortcutToHumanString:ko,types:Y,useAddonState:To,useArgTypes:Oo,useArgs:vo,useChannel:Ao,useGlobalTypes:Eo,useGlobals:M,useParameter:D,useSharedState:wo,useStoryPrepared:Bo,useStorybookApi:xo,useStorybookState:Ro}=__STORYBOOK_API__;var U=le(V());I();d();m();var Fo=__STORYBOOK_CLIENT_LOGGER__,{deprecate:qo,logger:H,once:zo,pretty:Ko}=__STORYBOOK_CLIENT_LOGGER__;I();d();m();var jo=__STORYBOOK_COMPONENTS__,{A:Zo,ActionBar:Jo,AddonPanel:Qo,Badge:Xo,Bar:en,Blockquote:on,Button:nn,ClipboardCode:tn,Code:rn,DL:cn,Div:an,DocumentWrapper:sn,EmptyTabContent:ln,ErrorFormatter:un,FlexBar:In,Form:dn,H1:mn,H2:pn,H3:fn,H4:hn,H5:gn,H6:bn,HR:Sn,IconButton:N,IconButtonSkeleton:Cn,Icons:yn,Img:_n,LI:kn,Link:Tn,ListItem:On,Loader:vn,Modal:An,OL:En,P:wn,Placeholder:Bn,Pre:xn,ResetWrapper:Rn,ScrollArea:Ln,Separator:Pn,Spaced:Mn,Span:Dn,StorybookIcon:Gn,StorybookLogo:Hn,Symbols:Nn,SyntaxHighlighter:Un,TT:Fn,TabBar:qn,TabButton:zn,TabWrapper:Kn,Table:Yn,Tabs:Wn,TabsState:Vn,TooltipLinkList:$,TooltipMessage:$n,TooltipNote:jn,UL:Zn,WithTooltip:j,WithTooltipPure:Jn,Zoom:Qn,codeCommon:Xn,components:et,createCopyToClipboardFunction:ot,getStoryHref:nt,icons:tt,interleaveSeparators:rt,nameSpaceClassNames:ct,resetComponents:it,withReset:at}=__STORYBOOK_COMPONENTS__;I();d();m();var dt=__STORYBOOK_ICONS__,{AccessibilityAltIcon:mt,AccessibilityIcon:pt,AddIcon:ft,AdminIcon:ht,AlertAltIcon:gt,AlertIcon:bt,AlignLeftIcon:St,AlignRightIcon:Ct,AppleIcon:yt,ArrowDownIcon:_t,ArrowLeftIcon:kt,ArrowRightIcon:Tt,ArrowSolidDownIcon:Ot,ArrowSolidLeftIcon:vt,ArrowSolidRightIcon:At,ArrowSolidUpIcon:Et,ArrowUpIcon:wt,AzureDevOpsIcon:Bt,BackIcon:xt,BasketIcon:Rt,BatchAcceptIcon:Lt,BatchDenyIcon:Pt,BeakerIcon:Mt,BellIcon:Dt,BitbucketIcon:Gt,BoldIcon:Ht,BookIcon:Nt,BookmarkHollowIcon:Ut,BookmarkIcon:Ft,BottomBarIcon:qt,BottomBarToggleIcon:zt,BoxIcon:Kt,BranchIcon:Yt,BrowserIcon:Wt,ButtonIcon:Vt,CPUIcon:$t,CalendarIcon:jt,CameraIcon:Zt,CategoryIcon:Jt,CertificateIcon:Qt,ChangedIcon:Xt,ChatIcon:er,CheckIcon:or,ChevronDownIcon:nr,ChevronLeftIcon:tr,ChevronRightIcon:rr,ChevronSmallDownIcon:cr,ChevronSmallLeftIcon:ir,ChevronSmallRightIcon:ar,ChevronSmallUpIcon:sr,ChevronUpIcon:lr,ChromaticIcon:ur,ChromeIcon:Ir,CircleHollowIcon:dr,CircleIcon:mr,ClearIcon:pr,CloseAltIcon:fr,CloseIcon:hr,CloudHollowIcon:gr,CloudIcon:br,CogIcon:Sr,CollapseIcon:Cr,CommandIcon:yr,CommentAddIcon:_r,CommentIcon:kr,CommentsIcon:Tr,CommitIcon:Or,CompassIcon:vr,ComponentDrivenIcon:Ar,ComponentIcon:Er,ContrastIcon:wr,ControlsIcon:Br,CopyIcon:xr,CreditIcon:Rr,CrossIcon:Lr,DashboardIcon:Pr,DatabaseIcon:Mr,DeleteIcon:Dr,DiamondIcon:Gr,DirectionIcon:Hr,DiscordIcon:Nr,DocChartIcon:Ur,DocListIcon:Fr,DocumentIcon:qr,DownloadIcon:zr,DragIcon:Kr,EditIcon:Yr,EllipsisIcon:Wr,EmailIcon:Vr,ExpandAltIcon:$r,ExpandIcon:jr,EyeCloseIcon:Zr,EyeIcon:Jr,FaceHappyIcon:Qr,FaceNeutralIcon:Xr,FaceSadIcon:ec,FacebookIcon:oc,FailedIcon:nc,FastForwardIcon:tc,FigmaIcon:rc,FilterIcon:cc,FlagIcon:ic,FolderIcon:ac,FormIcon:sc,GDriveIcon:lc,GithubIcon:uc,GitlabIcon:Ic,GlobeIcon:dc,GoogleIcon:mc,GraphBarIcon:pc,GraphLineIcon:fc,GraphqlIcon:hc,GridAltIcon:gc,GridIcon:Z,GrowIcon:bc,HeartHollowIcon:Sc,HeartIcon:Cc,HomeIcon:yc,HourglassIcon:_c,InfoIcon:kc,ItalicIcon:Tc,JumpToIcon:Oc,KeyIcon:vc,LightningIcon:Ac,LightningOffIcon:Ec,LinkBrokenIcon:wc,LinkIcon:Bc,LinkedinIcon:xc,LinuxIcon:Rc,ListOrderedIcon:Lc,ListUnorderedIcon:Pc,LocationIcon:Mc,LockIcon:Dc,MarkdownIcon:Gc,MarkupIcon:Hc,MediumIcon:Nc,MemoryIcon:Uc,MenuIcon:Fc,MergeIcon:qc,MirrorIcon:zc,MobileIcon:Kc,MoonIcon:Yc,NutIcon:Wc,OutboxIcon:Vc,OutlineIcon:$c,PaintBrushIcon:jc,PaperClipIcon:Zc,ParagraphIcon:Jc,PassedIcon:Qc,PhoneIcon:Xc,PhotoDragIcon:ei,PhotoIcon:J,PinAltIcon:oi,PinIcon:ni,PlayBackIcon:ti,PlayIcon:ri,PlayNextIcon:ci,PlusIcon:ii,PointerDefaultIcon:ai,PointerHandIcon:si,PowerIcon:li,PrintIcon:ui,ProceedIcon:Ii,ProfileIcon:di,PullRequestIcon:mi,QuestionIcon:pi,RSSIcon:fi,RedirectIcon:hi,ReduxIcon:gi,RefreshIcon:bi,ReplyIcon:Si,RepoIcon:Ci,RequestChangeIcon:yi,RewindIcon:_i,RulerIcon:ki,SearchIcon:Ti,ShareAltIcon:Oi,ShareIcon:vi,ShieldIcon:Ai,SideBySideIcon:Ei,SidebarAltIcon:wi,SidebarAltToggleIcon:Bi,SidebarIcon:xi,SidebarToggleIcon:Ri,SpeakerIcon:Li,StackedIcon:Pi,StarHollowIcon:Mi,StarIcon:Di,StickerIcon:Gi,StopAltIcon:Hi,StopIcon:Ni,StorybookIcon:Ui,StructureIcon:Fi,SubtractIcon:qi,SunIcon:zi,SupportIcon:Ki,SwitchAltIcon:Yi,SyncIcon:Wi,TabletIcon:Vi,ThumbsUpIcon:$i,TimeIcon:ji,TimerIcon:Zi,TransferIcon:Ji,TrashIcon:Qi,TwitterIcon:Xi,TypeIcon:ea,UbuntuIcon:oa,UndoIcon:na,UnfoldIcon:ta,UnlockIcon:ra,UnpinIcon:ca,UploadIcon:ia,UserAddIcon:aa,UserAltIcon:sa,UserIcon:la,UsersIcon:ua,VSCodeIcon:Ia,VerifiedIcon:da,VideoIcon:ma,WandIcon:pa,WatchIcon:fa,WindowsIcon:ha,WrenchIcon:ga,YoutubeIcon:ba,ZoomIcon:Sa,ZoomOutIcon:Ca,ZoomResetIcon:ya,iconList:_a}=__STORYBOOK_ICONS__;I();d();m();var Aa=__STORYBOOK_THEMING__,{CacheProvider:Ea,ClassNames:wa,Global:Ba,ThemeProvider:xa,background:Ra,color:La,convert:Pa,create:Ma,createCache:Da,createGlobal:Ga,createReset:Ha,css:Na,darken:Ua,ensure:Fa,ignoreSsrWarning:qa,isPropValid:za,jsx:Ka,keyframes:Ya,lighten:Wa,styled:Q,themes:Va,typography:$a,useTheme:ja,withTheme:Za}=__STORYBOOK_THEMING__;I();d();m();var os=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();I();d();m();function X(e){for(var o=[],a=1;a({borderRadius:"1rem",display:"block",height:"1rem",width:"1rem",background:e}),({theme:e})=>({boxShadow:`${e.appBorderColor} 0 0 0 1px inset`})),Ie=(e,o=[],a)=>{if(e==="transparent")return"transparent";if(o.find(c=>c.value===e))return e;let r=o.find(c=>c.name===a);if(r)return r.value;if(a){let c=o.map(h=>h.name).join(", ");H.warn(X` + Backgrounds Addon: could not find the default color "${a}". + These are the available colors for your story based on your configuration: + ${c}. + `)}return"transparent"},oe=(0,U.default)(1e3)((e,o,a,r,c,h)=>({id:e||o,title:o,onClick:()=>{c({selected:a,name:o})},value:a,right:r?C.createElement(ue,{background:a}):void 0,active:h})),de=(0,U.default)(10)((e,o,a)=>{let r=e.map(({name:c,value:h})=>oe(null,c,h,!0,a,h===o));return o!=="transparent"?[oe("reset","Clear background","transparent",null,a,!1),...r]:r}),me={default:null,disable:!0,values:[]},pe=L(function(){let e=D(v,me),[o,a]=K(!1),[r,c]=M(),h=r[v]?.value,s=z(()=>Ie(h,e.values,e.default),[e,h]);Array.isArray(e)&&H.warn("Addon Backgrounds api has changed in Storybook 6.0. Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md");let t=q(n=>{c({[v]:{...r[v],value:n}})},[e,r,c]);return e.disable?null:C.createElement(R,null,C.createElement(j,{placement:"top",closeOnOutsideClick:!0,tooltip:({onHide:n})=>C.createElement($,{links:de(e.values,s,({selected:l})=>{s!==l&&t(l),n()})}),onVisibleChange:a},C.createElement(N,{key:"background",title:"Change the background of the preview",active:s!=="transparent"||o},C.createElement(J,null))))}),fe=L(function(){let[e,o]=M(),{grid:a}=D(v,{grid:{disable:!1}});if(a?.disable)return null;let r=e[v]?.grid||!1;return C.createElement(N,{key:"background",active:r,title:"Apply a grid to the preview",onClick:()=>o({[v]:{...e[v],grid:!r}})},C.createElement(Z,null))});P.register(ee,()=>{P.add(ee,{title:"Backgrounds",type:Y.TOOL,match:({viewMode:e,tabId:o})=>!!(e&&e.match(/^(story|docs)$/))&&!o,render:()=>C.createElement(R,null,C.createElement(pe,null),C.createElement(fe,null))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-controls-2/manager-bundle.js b/storybook/sb-addons/essentials-controls-2/manager-bundle.js new file mode 100644 index 0000000..67e3b4c --- /dev/null +++ b/storybook/sb-addons/essentials-controls-2/manager-bundle.js @@ -0,0 +1,412 @@ +try{ +(()=>{var B2=Object.create;var Ra=Object.defineProperty;var L2=Object.getOwnPropertyDescriptor;var q2=Object.getOwnPropertyNames;var M2=Object.getPrototypeOf,U2=Object.prototype.hasOwnProperty;var et=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Tt=(e,t)=>()=>(e&&(t=e(e=0)),t);var J=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hl=(e,t)=>{for(var r in t)Ra(e,r,{get:t[r],enumerable:!0})},J2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of q2(t))!U2.call(e,o)&&o!==r&&Ra(e,o,{get:()=>t[o],enumerable:!(n=L2(t,o))||n.enumerable});return e};var ao=(e,t,r)=>(r=e!=null?B2(M2(e)):{},J2(t||!e||!e.__esModule?Ra(r,"default",{value:e,enumerable:!0}):r,e));var S=Tt(()=>{});var A=Tt(()=>{});var T=Tt(()=>{});var $2,Gl,z2,Wl,V2,H2,mn,nr,G2,gn,W2,Kl,K2,Yl,Y2,X2,or,Q2,Xl,tt,bn,Da=Tt(()=>{S();A();T();$2=Object.create,Gl=Object.defineProperty,z2=Object.getOwnPropertyDescriptor,Wl=Object.getOwnPropertyNames,V2=Object.getPrototypeOf,H2=Object.prototype.hasOwnProperty,mn=(e=>typeof et<"u"?et:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof et<"u"?et:t)[r]}):e)(function(e){if(typeof et<"u")return et.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),nr=(e,t)=>function(){return t||(0,e[Wl(e)[0]])((t={exports:{}}).exports,t),t.exports},G2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wl(t))!H2.call(e,o)&&o!==r&&Gl(e,o,{get:()=>t[o],enumerable:!(n=z2(t,o))||n.enumerable});return e},gn=(e,t,r)=>(r=e!=null?$2(V2(e)):{},G2(t||!e||!e.__esModule?Gl(r,"default",{value:e,enumerable:!0}):r,e)),W2=Object.create,Kl=Object.defineProperty,K2=Object.getOwnPropertyDescriptor,Yl=Object.getOwnPropertyNames,Y2=Object.getPrototypeOf,X2=Object.prototype.hasOwnProperty,or=(e,t)=>function(){return t||(0,e[Yl(e)[0]])((t={exports:{}}).exports,t),t.exports},Q2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yl(t))!X2.call(e,o)&&o!==r&&Kl(e,o,{get:()=>t[o],enumerable:!(n=K2(t,o))||n.enumerable});return e},Xl=(e,t,r)=>(r=e!=null?W2(Y2(e)):{},Q2(t||!e||!e.__esModule?Kl(r,"default",{value:e,enumerable:!0}):r,e)),tt=e=>`control-${e.replace(/\s+/g,"-")}`,bn=e=>`set-${e.replace(/\s+/g,"-")}`});var E,Ql,jt,F6,j6,N6,B6,Zl,L6,Oe,vn,Fa,q6,M6,U6,J6,eu,$6,z6,V6,$e,tu,H6,G6,ze,W6,K6,Y6,ru,Nt,X6,Xe,he,Q6,Z6,e8,io=Tt(()=>{S();A();T();E=__REACT__,{Children:Ql,Component:jt,Fragment:F6,Profiler:j6,PureComponent:N6,StrictMode:B6,Suspense:Zl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:L6,cloneElement:Oe,createContext:vn,createElement:Fa,createFactory:q6,createRef:M6,forwardRef:U6,isValidElement:J6,lazy:eu,memo:$6,startTransition:z6,unstable_act:V6,useCallback:$e,useContext:tu,useDebugValue:H6,useDeferredValue:G6,useEffect:ze,useId:W6,useImperativeHandle:K6,useInsertionEffect:Y6,useLayoutEffect:ru,useMemo:Nt,useReducer:X6,useRef:Xe,useState:he,useSyncExternalStore:Q6,useTransition:Z6,version:e8}=__REACT__});var au={};Hl(au,{A:()=>t1,ActionBar:()=>ja,AddonPanel:()=>Na,Badge:()=>Ba,Bar:()=>La,Blockquote:()=>r1,Button:()=>Bt,ClipboardCode:()=>n1,Code:()=>o1,DL:()=>a1,Div:()=>i1,DocumentWrapper:()=>s1,EmptyTabContent:()=>qa,ErrorFormatter:()=>l1,FlexBar:()=>Ma,Form:()=>dt,H1:()=>u1,H2:()=>Ua,H3:()=>c1,H4:()=>p1,H5:()=>d1,H6:()=>f1,HR:()=>y1,IconButton:()=>ht,IconButtonSkeleton:()=>h1,Icons:()=>m1,Img:()=>g1,LI:()=>b1,Link:()=>ir,ListItem:()=>v1,Loader:()=>x1,Modal:()=>mt,OL:()=>E1,P:()=>w1,Placeholder:()=>S1,Pre:()=>A1,ResetWrapper:()=>Ja,ScrollArea:()=>T1,Separator:()=>C1,Spaced:()=>$a,Span:()=>_1,StorybookIcon:()=>O1,StorybookLogo:()=>I1,Symbols:()=>P1,SyntaxHighlighter:()=>so,TT:()=>k1,TabBar:()=>R1,TabButton:()=>D1,TabWrapper:()=>F1,Table:()=>j1,Tabs:()=>N1,TabsState:()=>B1,TooltipLinkList:()=>L1,TooltipMessage:()=>q1,TooltipNote:()=>sr,UL:()=>M1,WithTooltip:()=>Lt,WithTooltipPure:()=>za,Zoom:()=>Va,codeCommon:()=>Ir,components:()=>Ha,createCopyToClipboardFunction:()=>U1,default:()=>e1,getStoryHref:()=>J1,icons:()=>$1,interleaveSeparators:()=>z1,nameSpaceClassNames:()=>Ga,resetComponents:()=>V1,withReset:()=>Pr});var e1,t1,ja,Na,Ba,La,r1,Bt,n1,o1,a1,i1,s1,qa,l1,Ma,dt,u1,Ua,c1,p1,d1,f1,y1,ht,h1,m1,g1,b1,ir,v1,x1,mt,E1,w1,S1,A1,Ja,T1,C1,$a,_1,O1,I1,P1,so,k1,R1,D1,F1,j1,N1,B1,L1,q1,sr,M1,Lt,za,Va,Ir,Ha,U1,J1,$1,z1,Ga,V1,Pr,lo=Tt(()=>{S();A();T();e1=__STORYBOOK_COMPONENTS__,{A:t1,ActionBar:ja,AddonPanel:Na,Badge:Ba,Bar:La,Blockquote:r1,Button:Bt,ClipboardCode:n1,Code:o1,DL:a1,Div:i1,DocumentWrapper:s1,EmptyTabContent:qa,ErrorFormatter:l1,FlexBar:Ma,Form:dt,H1:u1,H2:Ua,H3:c1,H4:p1,H5:d1,H6:f1,HR:y1,IconButton:ht,IconButtonSkeleton:h1,Icons:m1,Img:g1,LI:b1,Link:ir,ListItem:v1,Loader:x1,Modal:mt,OL:E1,P:w1,Placeholder:S1,Pre:A1,ResetWrapper:Ja,ScrollArea:T1,Separator:C1,Spaced:$a,Span:_1,StorybookIcon:O1,StorybookLogo:I1,Symbols:P1,SyntaxHighlighter:so,TT:k1,TabBar:R1,TabButton:D1,TabWrapper:F1,Table:j1,Tabs:N1,TabsState:B1,TooltipLinkList:L1,TooltipMessage:q1,TooltipNote:sr,UL:M1,WithTooltip:Lt,WithTooltipPure:za,Zoom:Va,codeCommon:Ir,components:Ha,createCopyToClipboardFunction:U1,getStoryHref:J1,icons:$1,interleaveSeparators:z1,nameSpaceClassNames:Ga,resetComponents:V1,withReset:Pr}=__STORYBOOK_COMPONENTS__});var g9,b9,v9,x9,Ru,E9,go,Du,w9,S9,A9,T9,C9,_9,O9,Fu,I9,P9,ei,k9,W,ti,R9,ri,D9,ni=Tt(()=>{S();A();T();g9=__STORYBOOK_THEMING__,{CacheProvider:b9,ClassNames:v9,Global:x9,ThemeProvider:Ru,background:E9,color:go,convert:Du,create:w9,createCache:S9,createGlobal:A9,createReset:T9,css:C9,darken:_9,ensure:O9,ignoreSsrWarning:Fu,isPropValid:I9,jsx:P9,keyframes:ei,lighten:k9,styled:W,themes:ti,typography:R9,useTheme:ri,withTheme:D9}=__STORYBOOK_THEMING__});var L9,q9,M9,oi,U9,J9,$9,z9,V9,H9,G9,W9,K9,Y9,X9,Q9,Z9,eU,tU,rU,nU,oU,aU,iU,sU,lU,uU,cU,pU,dU,fU,yU,hU,mU,gU,bU,vU,xU,EU,wU,SU,AU,TU,ju,Nu,CU,Bu,ai,_U,OU,Lu,IU,PU,kU,RU,DU,FU,jU,NU,BU,LU,qU,MU,UU,JU,$U,zU,VU,HU,GU,WU,KU,YU,XU,QU,ZU,eJ,tJ,rJ,nJ,oJ,aJ,iJ,sJ,bo,lJ,uJ,cJ,pJ,dJ,fJ,yJ,qu,Mu,hJ,mJ,gJ,bJ,vJ,xJ,EJ,wJ,SJ,AJ,TJ,CJ,_J,OJ,IJ,PJ,kJ,RJ,DJ,FJ,jJ,NJ,BJ,LJ,qJ,MJ,UJ,JJ,$J,zJ,VJ,HJ,GJ,Uu,WJ,KJ,YJ,XJ,QJ,ZJ,e$,Ju,t$,r$,n$,o$,a$,i$,s$,l$,u$,c$,p$,d$,f$,y$,h$,m$,g$,b$,v$,x$,E$,w$,S$,A$,T$,C$,_$,O$,I$,P$,k$,R$,D$,F$,j$,N$,B$,L$,q$,M$,U$,J$,$$,z$,V$,H$,G$,W$,K$,Y$,X$,Q$,Z$,ez,tz,rz,nz,oz,$u,az,iz,sz,lz,uz,cz,pz,dz,fz,yz,hz,mz,gz,ii,bz,vz,xz,Ez,wz,Sz,Az,Tz,Cz,_z,zu,Oz,Iz,Pz,kz,Rz,Vu,Hu,Gu,Dz,si=Tt(()=>{S();A();T();L9=__STORYBOOK_ICONS__,{AccessibilityAltIcon:q9,AccessibilityIcon:M9,AddIcon:oi,AdminIcon:U9,AlertAltIcon:J9,AlertIcon:$9,AlignLeftIcon:z9,AlignRightIcon:V9,AppleIcon:H9,ArrowDownIcon:G9,ArrowLeftIcon:W9,ArrowRightIcon:K9,ArrowSolidDownIcon:Y9,ArrowSolidLeftIcon:X9,ArrowSolidRightIcon:Q9,ArrowSolidUpIcon:Z9,ArrowUpIcon:eU,AzureDevOpsIcon:tU,BackIcon:rU,BasketIcon:nU,BatchAcceptIcon:oU,BatchDenyIcon:aU,BeakerIcon:iU,BellIcon:sU,BitbucketIcon:lU,BoldIcon:uU,BookIcon:cU,BookmarkHollowIcon:pU,BookmarkIcon:dU,BottomBarIcon:fU,BottomBarToggleIcon:yU,BoxIcon:hU,BranchIcon:mU,BrowserIcon:gU,ButtonIcon:bU,CPUIcon:vU,CalendarIcon:xU,CameraIcon:EU,CategoryIcon:wU,CertificateIcon:SU,ChangedIcon:AU,ChatIcon:TU,CheckIcon:ju,ChevronDownIcon:Nu,ChevronLeftIcon:CU,ChevronRightIcon:Bu,ChevronSmallDownIcon:ai,ChevronSmallLeftIcon:_U,ChevronSmallRightIcon:OU,ChevronSmallUpIcon:Lu,ChevronUpIcon:IU,ChromaticIcon:PU,ChromeIcon:kU,CircleHollowIcon:RU,CircleIcon:DU,ClearIcon:FU,CloseAltIcon:jU,CloseIcon:NU,CloudHollowIcon:BU,CloudIcon:LU,CogIcon:qU,CollapseIcon:MU,CommandIcon:UU,CommentAddIcon:JU,CommentIcon:$U,CommentsIcon:zU,CommitIcon:VU,CompassIcon:HU,ComponentDrivenIcon:GU,ComponentIcon:WU,ContrastIcon:KU,ControlsIcon:YU,CopyIcon:XU,CreditIcon:QU,CrossIcon:ZU,DashboardIcon:eJ,DatabaseIcon:tJ,DeleteIcon:rJ,DiamondIcon:nJ,DirectionIcon:oJ,DiscordIcon:aJ,DocChartIcon:iJ,DocListIcon:sJ,DocumentIcon:bo,DownloadIcon:lJ,DragIcon:uJ,EditIcon:cJ,EllipsisIcon:pJ,EmailIcon:dJ,ExpandAltIcon:fJ,ExpandIcon:yJ,EyeCloseIcon:qu,EyeIcon:Mu,FaceHappyIcon:hJ,FaceNeutralIcon:mJ,FaceSadIcon:gJ,FacebookIcon:bJ,FailedIcon:vJ,FastForwardIcon:xJ,FigmaIcon:EJ,FilterIcon:wJ,FlagIcon:SJ,FolderIcon:AJ,FormIcon:TJ,GDriveIcon:CJ,GithubIcon:_J,GitlabIcon:OJ,GlobeIcon:IJ,GoogleIcon:PJ,GraphBarIcon:kJ,GraphLineIcon:RJ,GraphqlIcon:DJ,GridAltIcon:FJ,GridIcon:jJ,GrowIcon:NJ,HeartHollowIcon:BJ,HeartIcon:LJ,HomeIcon:qJ,HourglassIcon:MJ,InfoIcon:UJ,ItalicIcon:JJ,JumpToIcon:$J,KeyIcon:zJ,LightningIcon:VJ,LightningOffIcon:HJ,LinkBrokenIcon:GJ,LinkIcon:Uu,LinkedinIcon:WJ,LinuxIcon:KJ,ListOrderedIcon:YJ,ListUnorderedIcon:XJ,LocationIcon:QJ,LockIcon:ZJ,MarkdownIcon:e$,MarkupIcon:Ju,MediumIcon:t$,MemoryIcon:r$,MenuIcon:n$,MergeIcon:o$,MirrorIcon:a$,MobileIcon:i$,MoonIcon:s$,NutIcon:l$,OutboxIcon:u$,OutlineIcon:c$,PaintBrushIcon:p$,PaperClipIcon:d$,ParagraphIcon:f$,PassedIcon:y$,PhoneIcon:h$,PhotoDragIcon:m$,PhotoIcon:g$,PinAltIcon:b$,PinIcon:v$,PlayBackIcon:x$,PlayIcon:E$,PlayNextIcon:w$,PlusIcon:S$,PointerDefaultIcon:A$,PointerHandIcon:T$,PowerIcon:C$,PrintIcon:_$,ProceedIcon:O$,ProfileIcon:I$,PullRequestIcon:P$,QuestionIcon:k$,RSSIcon:R$,RedirectIcon:D$,ReduxIcon:F$,RefreshIcon:j$,ReplyIcon:N$,RepoIcon:B$,RequestChangeIcon:L$,RewindIcon:q$,RulerIcon:M$,SearchIcon:U$,ShareAltIcon:J$,ShareIcon:$$,ShieldIcon:z$,SideBySideIcon:V$,SidebarAltIcon:H$,SidebarAltToggleIcon:G$,SidebarIcon:W$,SidebarToggleIcon:K$,SpeakerIcon:Y$,StackedIcon:X$,StarHollowIcon:Q$,StarIcon:Z$,StickerIcon:ez,StopAltIcon:tz,StopIcon:rz,StorybookIcon:nz,StructureIcon:oz,SubtractIcon:$u,SunIcon:az,SupportIcon:iz,SwitchAltIcon:sz,SyncIcon:lz,TabletIcon:uz,ThumbsUpIcon:cz,TimeIcon:pz,TimerIcon:dz,TransferIcon:fz,TrashIcon:yz,TwitterIcon:hz,TypeIcon:mz,UbuntuIcon:gz,UndoIcon:ii,UnfoldIcon:bz,UnlockIcon:vz,UnpinIcon:xz,UploadIcon:Ez,UserAddIcon:wz,UserAltIcon:Sz,UserIcon:Az,UsersIcon:Tz,VSCodeIcon:Cz,VerifiedIcon:_z,VideoIcon:zu,WandIcon:Oz,WatchIcon:Iz,WindowsIcon:Pz,WrenchIcon:kz,YoutubeIcon:Rz,ZoomIcon:Vu,ZoomOutIcon:Hu,ZoomResetIcon:Gu,iconList:Dz}=__STORYBOOK_ICONS__});var li=J((Lz,Wu)=>{S();A();T();function H1(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r{S();A();T();function G1(){this.__data__=[],this.size=0}Ku.exports=G1});var vo=J((Hz,Xu)=>{S();A();T();function W1(e,t){return e===t||e!==e&&t!==t}Xu.exports=W1});var En=J((Yz,Qu)=>{S();A();T();var K1=vo();function Y1(e,t){for(var r=e.length;r--;)if(K1(e[r][0],t))return r;return-1}Qu.exports=Y1});var ec=J((e7,Zu)=>{S();A();T();var X1=En(),Q1=Array.prototype,Z1=Q1.splice;function ex(e){var t=this.__data__,r=X1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Z1.call(t,r,1),--this.size,!0}Zu.exports=ex});var rc=J((o7,tc)=>{S();A();T();var tx=En();function rx(e){var t=this.__data__,r=tx(t,e);return r<0?void 0:t[r][1]}tc.exports=rx});var oc=J((l7,nc)=>{S();A();T();var nx=En();function ox(e){return nx(this.__data__,e)>-1}nc.exports=ox});var ic=J((d7,ac)=>{S();A();T();var ax=En();function ix(e,t){var r=this.__data__,n=ax(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}ac.exports=ix});var wn=J((m7,sc)=>{S();A();T();var sx=Yu(),lx=ec(),ux=rc(),cx=oc(),px=ic();function Rr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{S();A();T();var dx=wn();function fx(){this.__data__=new dx,this.size=0}lc.exports=fx});var pc=J((A7,cc)=>{S();A();T();function yx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}cc.exports=yx});var fc=J((O7,dc)=>{S();A();T();function hx(e){return this.__data__.get(e)}dc.exports=hx});var hc=J((R7,yc)=>{S();A();T();function mx(e){return this.__data__.has(e)}yc.exports=mx});var ui=J((N7,mc)=>{S();A();T();var gx=typeof window=="object"&&window&&window.Object===Object&&window;mc.exports=gx});var st=J((M7,gc)=>{S();A();T();var bx=ui(),vx=typeof self=="object"&&self&&self.Object===Object&&self,xx=bx||vx||Function("return this")();gc.exports=xx});var Dr=J((z7,bc)=>{S();A();T();var Ex=st(),wx=Ex.Symbol;bc.exports=wx});var wc=J((W7,Ec)=>{S();A();T();var vc=Dr(),xc=Object.prototype,Sx=xc.hasOwnProperty,Ax=xc.toString,Sn=vc?vc.toStringTag:void 0;function Tx(e){var t=Sx.call(e,Sn),r=e[Sn];try{e[Sn]=void 0;var n=!0}catch{}var o=Ax.call(e);return n&&(t?e[Sn]=r:delete e[Sn]),o}Ec.exports=Tx});var Ac=J((Q7,Sc)=>{S();A();T();var Cx=Object.prototype,_x=Cx.toString;function Ox(e){return _x.call(e)}Sc.exports=Ox});var Fr=J((rV,_c)=>{S();A();T();var Tc=Dr(),Ix=wc(),Px=Ac(),kx="[object Null]",Rx="[object Undefined]",Cc=Tc?Tc.toStringTag:void 0;function Dx(e){return e==null?e===void 0?Rx:kx:Cc&&Cc in Object(e)?Ix(e):Px(e)}_c.exports=Dx});var gt=J((iV,Oc)=>{S();A();T();function Fx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Oc.exports=Fx});var ci=J((cV,Ic)=>{S();A();T();var jx=Fr(),Nx=gt(),Bx="[object AsyncFunction]",Lx="[object Function]",qx="[object GeneratorFunction]",Mx="[object Proxy]";function Ux(e){if(!Nx(e))return!1;var t=jx(e);return t==Lx||t==qx||t==Bx||t==Mx}Ic.exports=Ux});var kc=J((yV,Pc)=>{S();A();T();var Jx=st(),$x=Jx["__core-js_shared__"];Pc.exports=$x});var Fc=J((bV,Dc)=>{S();A();T();var pi=kc(),Rc=function(){var e=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zx(e){return!!Rc&&Rc in e}Dc.exports=zx});var di=J((wV,jc)=>{S();A();T();var Vx=Function.prototype,Hx=Vx.toString;function Gx(e){if(e!=null){try{return Hx.call(e)}catch{}try{return e+""}catch{}}return""}jc.exports=Gx});var Bc=J((CV,Nc)=>{S();A();T();var Wx=ci(),Kx=Fc(),Yx=gt(),Xx=di(),Qx=/[\\^$.*+?()[\]{}|]/g,Zx=/^\[object .+?Constructor\]$/,eE=Function.prototype,tE=Object.prototype,rE=eE.toString,nE=tE.hasOwnProperty,oE=RegExp("^"+rE.call(nE).replace(Qx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aE(e){if(!Yx(e)||Kx(e))return!1;var t=Wx(e)?oE:Zx;return t.test(Xx(e))}Nc.exports=aE});var qc=J((PV,Lc)=>{S();A();T();function iE(e,t){return e?.[t]}Lc.exports=iE});var qt=J((FV,Mc)=>{S();A();T();var sE=Bc(),lE=qc();function uE(e,t){var r=lE(e,t);return sE(r)?r:void 0}Mc.exports=uE});var xo=J((LV,Uc)=>{S();A();T();var cE=qt(),pE=st(),dE=cE(pE,"Map");Uc.exports=dE});var An=J((JV,Jc)=>{S();A();T();var fE=qt(),yE=fE(Object,"create");Jc.exports=yE});var Vc=J((HV,zc)=>{S();A();T();var $c=An();function hE(){this.__data__=$c?$c(null):{},this.size=0}zc.exports=hE});var Gc=J((YV,Hc)=>{S();A();T();function mE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Hc.exports=mE});var Kc=J((eH,Wc)=>{S();A();T();var gE=An(),bE="__lodash_hash_undefined__",vE=Object.prototype,xE=vE.hasOwnProperty;function EE(e){var t=this.__data__;if(gE){var r=t[e];return r===bE?void 0:r}return xE.call(t,e)?t[e]:void 0}Wc.exports=EE});var Xc=J((oH,Yc)=>{S();A();T();var wE=An(),SE=Object.prototype,AE=SE.hasOwnProperty;function TE(e){var t=this.__data__;return wE?t[e]!==void 0:AE.call(t,e)}Yc.exports=TE});var Zc=J((lH,Qc)=>{S();A();T();var CE=An(),_E="__lodash_hash_undefined__";function OE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=CE&&t===void 0?_E:t,this}Qc.exports=OE});var tp=J((dH,ep)=>{S();A();T();var IE=Vc(),PE=Gc(),kE=Kc(),RE=Xc(),DE=Zc();function jr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{S();A();T();var rp=tp(),FE=wn(),jE=xo();function NE(){this.size=0,this.__data__={hash:new rp,map:new(jE||FE),string:new rp}}np.exports=NE});var ip=J((xH,ap)=>{S();A();T();function BE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}ap.exports=BE});var Tn=J((AH,sp)=>{S();A();T();var LE=ip();function qE(e,t){var r=e.__data__;return LE(t)?r[typeof t=="string"?"string":"hash"]:r.map}sp.exports=qE});var up=J((OH,lp)=>{S();A();T();var ME=Tn();function UE(e){var t=ME(this,e).delete(e);return this.size-=t?1:0,t}lp.exports=UE});var pp=J((RH,cp)=>{S();A();T();var JE=Tn();function $E(e){return JE(this,e).get(e)}cp.exports=$E});var fp=J((NH,dp)=>{S();A();T();var zE=Tn();function VE(e){return zE(this,e).has(e)}dp.exports=VE});var hp=J((MH,yp)=>{S();A();T();var HE=Tn();function GE(e,t){var r=HE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}yp.exports=GE});var Eo=J((zH,mp)=>{S();A();T();var WE=op(),KE=up(),YE=pp(),XE=fp(),QE=hp();function Nr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{S();A();T();var ZE=wn(),ew=xo(),tw=Eo(),rw=200;function nw(e,t){var r=this.__data__;if(r instanceof ZE){var n=r.__data__;if(!ew||n.length{S();A();T();var ow=wn(),aw=uc(),iw=pc(),sw=fc(),lw=hc(),uw=bp();function Br(e){var t=this.__data__=new ow(e);this.size=t.size}Br.prototype.clear=aw;Br.prototype.delete=iw;Br.prototype.get=sw;Br.prototype.has=lw;Br.prototype.set=uw;vp.exports=Br});var Ep=J((rG,xp)=>{S();A();T();var cw="__lodash_hash_undefined__";function pw(e){return this.__data__.set(e,cw),this}xp.exports=pw});var Sp=J((iG,wp)=>{S();A();T();function dw(e){return this.__data__.has(e)}wp.exports=dw});var fi=J((cG,Ap)=>{S();A();T();var fw=Eo(),yw=Ep(),hw=Sp();function So(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new fw;++t{S();A();T();function mw(e,t){for(var r=-1,n=e==null?0:e.length;++r{S();A();T();function gw(e,t){return e.has(t)}_p.exports=gw});var hi=J((wG,Op)=>{S();A();T();var bw=fi(),vw=Cp(),xw=yi(),Ew=1,ww=2;function Sw(e,t,r,n,o,a){var i=r&Ew,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,y=!0,f=r&ww?new bw:void 0;for(a.set(e,t),a.set(t,e);++d{S();A();T();var Aw=st(),Tw=Aw.Uint8Array;Ip.exports=Tw});var kp=J((PG,Pp)=>{S();A();T();function Cw(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}Pp.exports=Cw});var Ao=J((FG,Rp)=>{S();A();T();function _w(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}Rp.exports=_w});var Bp=J((LG,Np)=>{S();A();T();var Dp=Dr(),Fp=mi(),Ow=vo(),Iw=hi(),Pw=kp(),kw=Ao(),Rw=1,Dw=2,Fw="[object Boolean]",jw="[object Date]",Nw="[object Error]",Bw="[object Map]",Lw="[object Number]",qw="[object RegExp]",Mw="[object Set]",Uw="[object String]",Jw="[object Symbol]",$w="[object ArrayBuffer]",zw="[object DataView]",jp=Dp?Dp.prototype:void 0,gi=jp?jp.valueOf:void 0;function Vw(e,t,r,n,o,a,i){switch(r){case zw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $w:return!(e.byteLength!=t.byteLength||!a(new Fp(e),new Fp(t)));case Fw:case jw:case Lw:return Ow(+e,+t);case Nw:return e.name==t.name&&e.message==t.message;case qw:case Uw:return e==t+"";case Bw:var s=Pw;case Mw:var l=n&Rw;if(s||(s=kw),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=Dw,i.set(e,t);var c=Iw(s(e),s(t),n,o,a,i);return i.delete(e),c;case Jw:if(gi)return gi.call(e)==gi.call(t)}return!1}Np.exports=Vw});var bi=J((JG,Lp)=>{S();A();T();function Hw(e,t){for(var r=-1,n=t.length,o=e.length;++r{S();A();T();var Gw=Array.isArray;qp.exports=Gw});var vi=J((YG,Mp)=>{S();A();T();var Ww=bi(),Kw=bt();function Yw(e,t,r){var n=t(e);return Kw(e)?n:Ww(n,r(e))}Mp.exports=Yw});var Jp=J((eW,Up)=>{S();A();T();function Xw(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r{S();A();T();function Qw(){return[]}$p.exports=Qw});var To=J((lW,Vp)=>{S();A();T();var Zw=Jp(),eS=xi(),tS=Object.prototype,rS=tS.propertyIsEnumerable,zp=Object.getOwnPropertySymbols,nS=zp?function(e){return e==null?[]:(e=Object(e),Zw(zp(e),function(t){return rS.call(e,t)}))}:eS;Vp.exports=nS});var Gp=J((dW,Hp)=>{S();A();T();function oS(e,t){for(var r=-1,n=Array(e);++r{S();A();T();function aS(e){return e!=null&&typeof e=="object"}Wp.exports=aS});var Yp=J((xW,Kp)=>{S();A();T();var iS=Fr(),sS=Mt(),lS="[object Arguments]";function uS(e){return sS(e)&&iS(e)==lS}Kp.exports=uS});var Ei=J((AW,Zp)=>{S();A();T();var Xp=Yp(),cS=Mt(),Qp=Object.prototype,pS=Qp.hasOwnProperty,dS=Qp.propertyIsEnumerable,fS=Xp(function(){return arguments}())?Xp:function(e){return cS(e)&&pS.call(e,"callee")&&!dS.call(e,"callee")};Zp.exports=fS});var td=J((OW,ed)=>{S();A();T();function yS(){return!1}ed.exports=yS});var Co=J((Cn,Lr)=>{S();A();T();var hS=st(),mS=td(),od=typeof Cn=="object"&&Cn&&!Cn.nodeType&&Cn,rd=od&&typeof Lr=="object"&&Lr&&!Lr.nodeType&&Lr,gS=rd&&rd.exports===od,nd=gS?hS.Buffer:void 0,bS=nd?nd.isBuffer:void 0,vS=bS||mS;Lr.exports=vS});var _o=J((jW,ad)=>{S();A();T();var xS=9007199254740991,ES=/^(?:0|[1-9]\d*)$/;function wS(e,t){var r=typeof e;return t=t??xS,!!t&&(r=="number"||r!="symbol"&&ES.test(e))&&e>-1&&e%1==0&&e{S();A();T();var SS=9007199254740991;function AS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SS}id.exports=AS});var ld=J(($W,sd)=>{S();A();T();var TS=Fr(),CS=Oo(),_S=Mt(),OS="[object Arguments]",IS="[object Array]",PS="[object Boolean]",kS="[object Date]",RS="[object Error]",DS="[object Function]",FS="[object Map]",jS="[object Number]",NS="[object Object]",BS="[object RegExp]",LS="[object Set]",qS="[object String]",MS="[object WeakMap]",US="[object ArrayBuffer]",JS="[object DataView]",$S="[object Float32Array]",zS="[object Float64Array]",VS="[object Int8Array]",HS="[object Int16Array]",GS="[object Int32Array]",WS="[object Uint8Array]",KS="[object Uint8ClampedArray]",YS="[object Uint16Array]",XS="[object Uint32Array]",be={};be[$S]=be[zS]=be[VS]=be[HS]=be[GS]=be[WS]=be[KS]=be[YS]=be[XS]=!0;be[OS]=be[IS]=be[US]=be[PS]=be[JS]=be[kS]=be[RS]=be[DS]=be[FS]=be[jS]=be[NS]=be[BS]=be[LS]=be[qS]=be[MS]=!1;function QS(e){return _S(e)&&CS(e.length)&&!!be[TS(e)]}sd.exports=QS});var Io=J((GW,ud)=>{S();A();T();function ZS(e){return function(t){return e(t)}}ud.exports=ZS});var Po=J((_n,qr)=>{S();A();T();var eA=ui(),cd=typeof _n=="object"&&_n&&!_n.nodeType&&_n,On=cd&&typeof qr=="object"&&qr&&!qr.nodeType&&qr,tA=On&&On.exports===cd,wi=tA&&eA.process,rA=function(){try{var e=On&&On.require&&On.require("util").types;return e||wi&&wi.binding&&wi.binding("util")}catch{}}();qr.exports=rA});var Si=J((eK,fd)=>{S();A();T();var nA=ld(),oA=Io(),pd=Po(),dd=pd&&pd.isTypedArray,aA=dd?oA(dd):nA;fd.exports=aA});var Ai=J((oK,yd)=>{S();A();T();var iA=Gp(),sA=Ei(),lA=bt(),uA=Co(),cA=_o(),pA=Si(),dA=Object.prototype,fA=dA.hasOwnProperty;function yA(e,t){var r=lA(e),n=!r&&sA(e),o=!r&&!n&&uA(e),a=!r&&!n&&!o&&pA(e),i=r||n||o||a,s=i?iA(e.length,String):[],l=s.length;for(var u in e)(t||fA.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||cA(u,l)))&&s.push(u);return s}yd.exports=yA});var ko=J((lK,hd)=>{S();A();T();var hA=Object.prototype;function mA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||hA;return e===r}hd.exports=mA});var Ti=J((dK,md)=>{S();A();T();function gA(e,t){return function(r){return e(t(r))}}md.exports=gA});var bd=J((mK,gd)=>{S();A();T();var bA=Ti(),vA=bA(Object.keys,Object);gd.exports=vA});var xd=J((xK,vd)=>{S();A();T();var xA=ko(),EA=bd(),wA=Object.prototype,SA=wA.hasOwnProperty;function AA(e){if(!xA(e))return EA(e);var t=[];for(var r in Object(e))SA.call(e,r)&&r!="constructor"&&t.push(r);return t}vd.exports=AA});var Ci=J((AK,Ed)=>{S();A();T();var TA=ci(),CA=Oo();function _A(e){return e!=null&&CA(e.length)&&!TA(e)}Ed.exports=_A});var In=J((OK,wd)=>{S();A();T();var OA=Ai(),IA=xd(),PA=Ci();function kA(e){return PA(e)?OA(e):IA(e)}wd.exports=kA});var _i=J((RK,Sd)=>{S();A();T();var RA=vi(),DA=To(),FA=In();function jA(e){return RA(e,FA,DA)}Sd.exports=jA});var Cd=J((NK,Td)=>{S();A();T();var Ad=_i(),NA=1,BA=Object.prototype,LA=BA.hasOwnProperty;function qA(e,t,r,n,o,a){var i=r&NA,s=Ad(e),l=s.length,u=Ad(t),c=u.length;if(l!=c&&!i)return!1;for(var d=l;d--;){var y=s[d];if(!(i?y in t:LA.call(t,y)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);for(var _=i;++d{S();A();T();var MA=qt(),UA=st(),JA=MA(UA,"DataView");_d.exports=JA});var Pd=J((zK,Id)=>{S();A();T();var $A=qt(),zA=st(),VA=$A(zA,"Promise");Id.exports=VA});var Oi=J((WK,kd)=>{S();A();T();var HA=qt(),GA=st(),WA=HA(GA,"Set");kd.exports=WA});var Dd=J((QK,Rd)=>{S();A();T();var KA=qt(),YA=st(),XA=KA(YA,"WeakMap");Rd.exports=XA});var Pn=J((rY,Md)=>{S();A();T();var Ii=Od(),Pi=xo(),ki=Pd(),Ri=Oi(),Di=Dd(),qd=Fr(),Mr=di(),Fd="[object Map]",QA="[object Object]",jd="[object Promise]",Nd="[object Set]",Bd="[object WeakMap]",Ld="[object DataView]",ZA=Mr(Ii),eT=Mr(Pi),tT=Mr(ki),rT=Mr(Ri),nT=Mr(Di),lr=qd;(Ii&&lr(new Ii(new ArrayBuffer(1)))!=Ld||Pi&&lr(new Pi)!=Fd||ki&&lr(ki.resolve())!=jd||Ri&&lr(new Ri)!=Nd||Di&&lr(new Di)!=Bd)&&(lr=function(e){var t=qd(e),r=t==QA?e.constructor:void 0,n=r?Mr(r):"";if(n)switch(n){case ZA:return Ld;case eT:return Fd;case tT:return jd;case rT:return Nd;case nT:return Bd}return t});Md.exports=lr});var Wd=J((iY,Gd)=>{S();A();T();var Fi=wo(),oT=hi(),aT=Bp(),iT=Cd(),Ud=Pn(),Jd=bt(),$d=Co(),sT=Si(),lT=1,zd="[object Arguments]",Vd="[object Array]",Ro="[object Object]",uT=Object.prototype,Hd=uT.hasOwnProperty;function cT(e,t,r,n,o,a){var i=Jd(e),s=Jd(t),l=i?Vd:Ud(e),u=s?Vd:Ud(t);l=l==zd?Ro:l,u=u==zd?Ro:u;var c=l==Ro,d=u==Ro,y=l==u;if(y&&$d(e)){if(!$d(t))return!1;i=!0,c=!1}if(y&&!c)return a||(a=new Fi),i||sT(e)?oT(e,t,r,n,o,a):aT(e,t,l,r,n,o,a);if(!(r&lT)){var f=c&&Hd.call(e,"__wrapped__"),h=d&&Hd.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,_=h?t.value():t;return a||(a=new Fi),o(g,_,r,n,a)}}return y?(a||(a=new Fi),iT(e,t,r,n,o,a)):!1}Gd.exports=cT});var ji=J((cY,Xd)=>{S();A();T();var pT=Wd(),Kd=Mt();function Yd(e,t,r,n,o){return e===t?!0:e==null||t==null||!Kd(e)&&!Kd(t)?e!==e&&t!==t:pT(e,t,r,n,Yd,o)}Xd.exports=Yd});var Zd=J((yY,Qd)=>{S();A();T();var dT=wo(),fT=ji(),yT=1,hT=2;function mT(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o{S();A();T();var gT=gt();function bT(e){return e===e&&!gT(e)}ef.exports=bT});var rf=J((wY,tf)=>{S();A();T();var vT=Ni(),xT=In();function ET(e){for(var t=xT(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,vT(o)]}return t}tf.exports=ET});var Bi=J((CY,nf)=>{S();A();T();function wT(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}nf.exports=wT});var af=J((PY,of)=>{S();A();T();var ST=Zd(),AT=rf(),TT=Bi();function CT(e){var t=AT(e);return t.length==1&&t[0][2]?TT(t[0][0],t[0][1]):function(r){return r===e||ST(r,e,t)}}of.exports=CT});var kn=J((FY,sf)=>{S();A();T();var _T=Fr(),OT=Mt(),IT="[object Symbol]";function PT(e){return typeof e=="symbol"||OT(e)&&_T(e)==IT}sf.exports=PT});var Do=J((LY,lf)=>{S();A();T();var kT=bt(),RT=kn(),DT=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FT=/^\w*$/;function jT(e,t){if(kT(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||RT(e)?!0:FT.test(e)||!DT.test(e)||t!=null&&e in Object(t)}lf.exports=jT});var pf=J((JY,cf)=>{S();A();T();var uf=Eo(),NT="Expected a function";function Li(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(NT);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Li.Cache||uf),r}Li.Cache=uf;cf.exports=Li});var ff=J((HY,df)=>{S();A();T();var BT=pf(),LT=500;function qT(e){var t=BT(e,function(n){return r.size===LT&&r.clear(),n}),r=t.cache;return t}df.exports=qT});var hf=J((YY,yf)=>{S();A();T();var MT=ff(),UT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,JT=/\\(\\)?/g,$T=MT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(UT,function(r,n,o,a){t.push(o?a.replace(JT,"$1"):n||r)}),t});yf.exports=$T});var Ef=J((eX,xf)=>{S();A();T();var mf=Dr(),zT=li(),VT=bt(),HT=kn(),GT=1/0,gf=mf?mf.prototype:void 0,bf=gf?gf.toString:void 0;function vf(e){if(typeof e=="string")return e;if(VT(e))return zT(e,vf)+"";if(HT(e))return bf?bf.call(e):"";var t=e+"";return t=="0"&&1/e==-GT?"-0":t}xf.exports=vf});var Sf=J((oX,wf)=>{S();A();T();var WT=Ef();function KT(e){return e==null?"":WT(e)}wf.exports=KT});var Rn=J((lX,Af)=>{S();A();T();var YT=bt(),XT=Do(),QT=hf(),ZT=Sf();function eC(e,t){return YT(e)?e:XT(e,t)?[e]:QT(ZT(e))}Af.exports=eC});var Ur=J((dX,Tf)=>{S();A();T();var tC=kn(),rC=1/0;function nC(e){if(typeof e=="string"||tC(e))return e;var t=e+"";return t=="0"&&1/e==-rC?"-0":t}Tf.exports=nC});var Fo=J((mX,Cf)=>{S();A();T();var oC=Rn(),aC=Ur();function iC(e,t){t=oC(t,e);for(var r=0,n=t.length;e!=null&&r{S();A();T();var sC=Fo();function lC(e,t,r){var n=e==null?void 0:sC(e,t);return n===void 0?r:n}_f.exports=lC});var Pf=J((AX,If)=>{S();A();T();function uC(e,t){return e!=null&&t in Object(e)}If.exports=uC});var Rf=J((OX,kf)=>{S();A();T();var cC=Rn(),pC=Ei(),dC=bt(),fC=_o(),yC=Oo(),hC=Ur();function mC(e,t,r){t=cC(t,e);for(var n=-1,o=t.length,a=!1;++n{S();A();T();var gC=Pf(),bC=Rf();function vC(e,t){return e!=null&&bC(e,t,gC)}Df.exports=vC});var Nf=J((NX,jf)=>{S();A();T();var xC=ji(),EC=Of(),wC=Ff(),SC=Do(),AC=Ni(),TC=Bi(),CC=Ur(),_C=1,OC=2;function IC(e,t){return SC(e)&&AC(t)?TC(CC(e),t):function(r){var n=EC(r,e);return n===void 0&&n===t?wC(r,e):xC(t,n,_C|OC)}}jf.exports=IC});var Lf=J((MX,Bf)=>{S();A();T();function PC(e){return e}Bf.exports=PC});var Mf=J((zX,qf)=>{S();A();T();function kC(e){return function(t){return t?.[e]}}qf.exports=kC});var Jf=J((WX,Uf)=>{S();A();T();var RC=Fo();function DC(e){return function(t){return RC(t,e)}}Uf.exports=DC});var zf=J((QX,$f)=>{S();A();T();var FC=Mf(),jC=Jf(),NC=Do(),BC=Ur();function LC(e){return NC(e)?FC(BC(e)):jC(e)}$f.exports=LC});var Hf=J((rQ,Vf)=>{S();A();T();var qC=af(),MC=Nf(),UC=Lf(),JC=bt(),$C=zf();function zC(e){return typeof e=="function"?e:e==null?UC:typeof e=="object"?JC(e)?MC(e[0],e[1]):qC(e):$C(e)}Vf.exports=zC});var Wf=J((iQ,Gf)=>{S();A();T();var VC=qt(),HC=function(){try{var e=VC(Object,"defineProperty");return e({},"",{}),e}catch{}}();Gf.exports=HC});var qi=J((cQ,Yf)=>{S();A();T();var Kf=Wf();function GC(e,t,r){t=="__proto__"&&Kf?Kf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Yf.exports=GC});var jo=J((yQ,Xf)=>{S();A();T();var WC=qi(),KC=vo(),YC=Object.prototype,XC=YC.hasOwnProperty;function QC(e,t,r){var n=e[t];(!(XC.call(e,t)&&KC(n,r))||r===void 0&&!(t in e))&&WC(e,t,r)}Xf.exports=QC});var ey=J((bQ,Zf)=>{S();A();T();var ZC=jo(),e_=Rn(),t_=_o(),Qf=gt(),r_=Ur();function n_(e,t,r,n){if(!Qf(e))return e;t=e_(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o{S();A();T();var o_=Fo(),a_=ey(),i_=Rn();function s_(e,t,r){for(var n=-1,o=t.length,a={};++n{S();A();T();var l_=Ti(),u_=l_(Object.getPrototypeOf,Object);ny.exports=u_});var Ui=J((PQ,oy)=>{S();A();T();var c_=bi(),p_=Mi(),d_=To(),f_=xi(),y_=Object.getOwnPropertySymbols,h_=y_?function(e){for(var t=[];e;)c_(t,d_(e)),e=p_(e);return t}:f_;oy.exports=h_});var iy=J((FQ,ay)=>{S();A();T();function m_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}ay.exports=m_});var ly=J((LQ,sy)=>{S();A();T();var g_=gt(),b_=ko(),v_=iy(),x_=Object.prototype,E_=x_.hasOwnProperty;function w_(e){if(!g_(e))return v_(e);var t=b_(e),r=[];for(var n in e)n=="constructor"&&(t||!E_.call(e,n))||r.push(n);return r}sy.exports=w_});var No=J((JQ,uy)=>{S();A();T();var S_=Ai(),A_=ly(),T_=Ci();function C_(e){return T_(e)?S_(e,!0):A_(e)}uy.exports=C_});var Ji=J((HQ,cy)=>{S();A();T();var __=vi(),O_=Ui(),I_=No();function P_(e){return __(e,I_,O_)}cy.exports=P_});var dy=J((YQ,py)=>{S();A();T();var k_=li(),R_=Hf(),D_=ry(),F_=Ji();function j_(e,t){if(e==null)return{};var r=k_(F_(e),function(n){return[n]});return t=R_(t),D_(e,r,function(n,o){return t(n,o[0])})}py.exports=j_});var hy=J((sZ,yy)=>{S();A();T();function N_(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a{S();A();T();function B_(e){return e!==e}my.exports=B_});var vy=J((hZ,by)=>{S();A();T();function L_(e,t,r){for(var n=r-1,o=e.length;++n{S();A();T();var q_=hy(),M_=gy(),U_=vy();function J_(e,t,r){return t===t?U_(e,t,r):q_(e,M_,r)}xy.exports=J_});var Sy=J((SZ,wy)=>{S();A();T();var $_=Ey();function z_(e,t){var r=e==null?0:e.length;return!!r&&$_(e,t,0)>-1}wy.exports=z_});var Ty=J((_Z,Ay)=>{S();A();T();function V_(e,t,r){for(var n=-1,o=e==null?0:e.length;++n{S();A();T();function H_(){}Cy.exports=H_});var Iy=J((jZ,Oy)=>{S();A();T();var $i=Oi(),G_=_y(),W_=Ao(),K_=1/0,Y_=$i&&1/W_(new $i([,-0]))[1]==K_?function(e){return new $i(e)}:G_;Oy.exports=Y_});var ky=J((qZ,Py)=>{S();A();T();var X_=fi(),Q_=Sy(),Z_=Ty(),eO=yi(),tO=Iy(),rO=Ao(),nO=200;function oO(e,t,r){var n=-1,o=Q_,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Z_;else if(a>=nO){var u=t?null:tO(e);if(u)return rO(u);i=!1,o=eO,l=new X_}else l=t?[]:s;e:for(;++n{S();A();T();var aO=ky();function iO(e){return e&&e.length?aO(e):[]}Ry.exports=iO});var jy=J((GZ,Fy)=>{S();A();T();function sO(e,t){for(var r=-1,n=e==null?0:e.length;++r{S();A();T();var lO=jo(),uO=qi();function cO(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a{S();A();T();var pO=Dn(),dO=In();function fO(e,t){return e&&pO(t,dO(t),e)}By.exports=fO});var My=J((aee,qy)=>{S();A();T();var yO=Dn(),hO=No();function mO(e,t){return e&&yO(t,hO(t),e)}qy.exports=mO});var Vy=J((Fn,Jr)=>{S();A();T();var gO=st(),zy=typeof Fn=="object"&&Fn&&!Fn.nodeType&&Fn,Uy=zy&&typeof Jr=="object"&&Jr&&!Jr.nodeType&&Jr,bO=Uy&&Uy.exports===zy,Jy=bO?gO.Buffer:void 0,$y=Jy?Jy.allocUnsafe:void 0;function vO(e,t){if(t)return e.slice();var r=e.length,n=$y?$y(r):new e.constructor(r);return e.copy(n),n}Jr.exports=vO});var Gy=J((dee,Hy)=>{S();A();T();function xO(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{S();A();T();var EO=Dn(),wO=To();function SO(e,t){return EO(e,wO(e),t)}Wy.exports=SO});var Xy=J((xee,Yy)=>{S();A();T();var AO=Dn(),TO=Ui();function CO(e,t){return AO(e,TO(e),t)}Yy.exports=CO});var Zy=J((Aee,Qy)=>{S();A();T();var _O=Object.prototype,OO=_O.hasOwnProperty;function IO(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&OO.call(e,"index")&&(r.index=e.index,r.input=e.input),r}Qy.exports=IO});var Lo=J((Oee,th)=>{S();A();T();var eh=mi();function PO(e){var t=new e.constructor(e.byteLength);return new eh(t).set(new eh(e)),t}th.exports=PO});var nh=J((Ree,rh)=>{S();A();T();var kO=Lo();function RO(e,t){var r=t?kO(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}rh.exports=RO});var ah=J((Nee,oh)=>{S();A();T();var DO=/\w*$/;function FO(e){var t=new e.constructor(e.source,DO.exec(e));return t.lastIndex=e.lastIndex,t}oh.exports=FO});var ch=J((Mee,uh)=>{S();A();T();var ih=Dr(),sh=ih?ih.prototype:void 0,lh=sh?sh.valueOf:void 0;function jO(e){return lh?Object(lh.call(e)):{}}uh.exports=jO});var dh=J((zee,ph)=>{S();A();T();var NO=Lo();function BO(e,t){var r=t?NO(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}ph.exports=BO});var yh=J((Wee,fh)=>{S();A();T();var LO=Lo(),qO=nh(),MO=ah(),UO=ch(),JO=dh(),$O="[object Boolean]",zO="[object Date]",VO="[object Map]",HO="[object Number]",GO="[object RegExp]",WO="[object Set]",KO="[object String]",YO="[object Symbol]",XO="[object ArrayBuffer]",QO="[object DataView]",ZO="[object Float32Array]",eI="[object Float64Array]",tI="[object Int8Array]",rI="[object Int16Array]",nI="[object Int32Array]",oI="[object Uint8Array]",aI="[object Uint8ClampedArray]",iI="[object Uint16Array]",sI="[object Uint32Array]";function lI(e,t,r){var n=e.constructor;switch(t){case XO:return LO(e);case $O:case zO:return new n(+e);case QO:return qO(e,r);case ZO:case eI:case tI:case rI:case nI:case oI:case aI:case iI:case sI:return JO(e,r);case VO:return new n;case HO:case KO:return new n(e);case GO:return MO(e);case WO:return new n;case YO:return UO(e)}}fh.exports=lI});var gh=J((Qee,mh)=>{S();A();T();var uI=gt(),hh=Object.create,cI=function(){function e(){}return function(t){if(!uI(t))return{};if(hh)return hh(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();mh.exports=cI});var vh=J((rte,bh)=>{S();A();T();var pI=gh(),dI=Mi(),fI=ko();function yI(e){return typeof e.constructor=="function"&&!fI(e)?pI(dI(e)):{}}bh.exports=yI});var Eh=J((ite,xh)=>{S();A();T();var hI=Pn(),mI=Mt(),gI="[object Map]";function bI(e){return mI(e)&&hI(e)==gI}xh.exports=bI});var Th=J((cte,Ah)=>{S();A();T();var vI=Eh(),xI=Io(),wh=Po(),Sh=wh&&wh.isMap,EI=Sh?xI(Sh):vI;Ah.exports=EI});var _h=J((yte,Ch)=>{S();A();T();var wI=Pn(),SI=Mt(),AI="[object Set]";function TI(e){return SI(e)&&wI(e)==AI}Ch.exports=TI});var kh=J((bte,Ph)=>{S();A();T();var CI=_h(),_I=Io(),Oh=Po(),Ih=Oh&&Oh.isSet,OI=Ih?_I(Ih):CI;Ph.exports=OI});var Nh=J((wte,jh)=>{S();A();T();var II=wo(),PI=jy(),kI=jo(),RI=Ly(),DI=My(),FI=Vy(),jI=Gy(),NI=Ky(),BI=Xy(),LI=_i(),qI=Ji(),MI=Pn(),UI=Zy(),JI=yh(),$I=vh(),zI=bt(),VI=Co(),HI=Th(),GI=gt(),WI=kh(),KI=In(),YI=No(),XI=1,QI=2,ZI=4,Rh="[object Arguments]",eP="[object Array]",tP="[object Boolean]",rP="[object Date]",nP="[object Error]",Dh="[object Function]",oP="[object GeneratorFunction]",aP="[object Map]",iP="[object Number]",Fh="[object Object]",sP="[object RegExp]",lP="[object Set]",uP="[object String]",cP="[object Symbol]",pP="[object WeakMap]",dP="[object ArrayBuffer]",fP="[object DataView]",yP="[object Float32Array]",hP="[object Float64Array]",mP="[object Int8Array]",gP="[object Int16Array]",bP="[object Int32Array]",vP="[object Uint8Array]",xP="[object Uint8ClampedArray]",EP="[object Uint16Array]",wP="[object Uint32Array]",ge={};ge[Rh]=ge[eP]=ge[dP]=ge[fP]=ge[tP]=ge[rP]=ge[yP]=ge[hP]=ge[mP]=ge[gP]=ge[bP]=ge[aP]=ge[iP]=ge[Fh]=ge[sP]=ge[lP]=ge[uP]=ge[cP]=ge[vP]=ge[xP]=ge[EP]=ge[wP]=!0;ge[nP]=ge[Dh]=ge[pP]=!1;function qo(e,t,r,n,o,a){var i,s=t&XI,l=t&QI,u=t&ZI;if(r&&(i=o?r(e,n,o,a):r(e)),i!==void 0)return i;if(!GI(e))return e;var c=zI(e);if(c){if(i=UI(e),!s)return jI(e,i)}else{var d=MI(e),y=d==Dh||d==oP;if(VI(e))return FI(e,s);if(d==Fh||d==Rh||y&&!o){if(i=l||y?{}:$I(e),!s)return l?BI(e,DI(i,e)):NI(e,RI(i,e))}else{if(!ge[d])return o?e:{};i=JI(e,d,s)}}a||(a=new II);var f=a.get(e);if(f)return f;a.set(e,i),WI(e)?e.forEach(function(_){i.add(qo(_,t,r,_,e,a))}):HI(e)&&e.forEach(function(_,v){i.set(v,qo(_,t,r,v,e,a))});var h=u?l?qI:LI:l?YI:KI,g=c?void 0:h(e);return PI(g||e,function(_,v){g&&(v=_,_=e[v]),kI(i,v,qo(_,t,r,v,e,a))}),i}jh.exports=qo});var Lh=J((Cte,Bh)=>{S();A();T();var SP=Nh(),AP=1,TP=4;function CP(e){return SP(e,AP|TP)}Bh.exports=CP});var _0=J((noe,C0)=>{S();A();T();var Fj=st(),jj=function(){return Fj.Date.now()};C0.exports=jj});var I0=J((soe,O0)=>{S();A();T();var Nj=/\s/;function Bj(e){for(var t=e.length;t--&&Nj.test(e.charAt(t)););return t}O0.exports=Bj});var k0=J((poe,P0)=>{S();A();T();var Lj=I0(),qj=/^\s+/;function Mj(e){return e&&e.slice(0,Lj(e)+1).replace(qj,"")}P0.exports=Mj});var j0=J((hoe,F0)=>{S();A();T();var Uj=k0(),R0=gt(),Jj=kn(),D0=NaN,$j=/^[-+]0x[0-9a-f]+$/i,zj=/^0b[01]+$/i,Vj=/^0o[0-7]+$/i,Hj=parseInt;function Gj(e){if(typeof e=="number")return e;if(Jj(e))return D0;if(R0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=R0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Uj(e);var r=zj.test(e);return r||Vj.test(e)?Hj(e.slice(2),r?2:8):$j.test(e)?D0:+e}F0.exports=Gj});var L0=J((voe,B0)=>{S();A();T();var Wj=gt(),il=_0(),N0=j0(),Kj="Expected a function",Yj=Math.max,Xj=Math.min;function Qj(e,t,r){var n,o,a,i,s,l,u=0,c=!1,d=!1,y=!0;if(typeof e!="function")throw new TypeError(Kj);t=N0(t)||0,Wj(r)&&(c=!!r.leading,d="maxWait"in r,a=d?Yj(N0(r.maxWait)||0,t):a,y="trailing"in r?!!r.trailing:y);function f(P){var F=n,D=o;return n=o=void 0,u=P,i=e.apply(D,F),i}function h(P){return u=P,s=setTimeout(v,t),c?f(P):i}function g(P){var F=P-l,D=P-u,U=t-F;return d?Xj(U,a-D):U}function _(P){var F=P-l,D=P-u;return l===void 0||F>=t||F<0||d&&D>=a}function v(){var P=il();if(_(P))return x(P);s=setTimeout(v,g(P))}function x(P){return s=void 0,y&&n?f(P):(n=o=void 0,i)}function O(){s!==void 0&&clearTimeout(s),u=0,n=l=o=s=void 0}function C(){return s===void 0?i:x(il())}function I(){var P=il(),F=_(P);if(n=arguments,o=this,l=P,F){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(v,t),f(l)}return s===void 0&&(s=setTimeout(v,t)),i}return I.cancel=O,I.flush=C,I}B0.exports=Qj});var ov={};Hl(ov,{ColorControl:()=>nv,default:()=>LN});function hr(){return(hr=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}function sl(e){var t=Xe(e),r=Xe(function(n){t.current&&t.current(n)});return t.current=e,r.current}function Z0(e,t,r){var n=sl(r),o=he(function(){return e.toHsva(t)}),a=o[0],i=o[1],s=Xe({color:t,hsva:a});ze(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},i(u)}},[t,e]),ze(function(){var u;X0(a,s.current.hsva)||e.equal(u=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:u},n(u))},[a,e,n]);var l=$e(function(u){i(function(c){return Object.assign({},c,u)})},[]);return[a,l]}var z0,Zj,V0,eN,tN,Xr,Kn,ll,q0,M0,fl,Yn,yl,Je,rN,nN,ul,oN,aN,iN,sN,H0,cl,ma,G0,lN,fa,uN,W0,K0,Y0,X0,Q0,cN,pN,dN,U0,ev,fN,yN,hN,mN,tv,gN,bN,vN,xN,ut,EN,wN,SN,AN,TN,CN,_N,J0,ON,IN,rv,ya,PN,kN,RN,pl,DN,FN,ha,$0,Yr,jN,NN,ga,BN,nv,LN,av=Tt(()=>{S();A();T();Da();io();z0=ao(L0());ni();lo();si();Zj=nr({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),V0=nr({"../../node_modules/color-convert/conversions.js"(e,t){var r=Zj(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:s,labels:l}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:s}),Object.defineProperty(o[i],"labels",{value:l})}o.rgb.hsl=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,c=Math.min(s,l,u),d=Math.max(s,l,u),y=d-c,f,h;d===c?f=0:s===d?f=(l-u)/y:l===d?f=2+(u-s)/y:u===d&&(f=4+(s-l)/y),f=Math.min(f*60,360),f<0&&(f+=360);let g=(c+d)/2;return d===c?h=0:g<=.5?h=y/(d+c):h=y/(2-d-c),[f,h*100,g*100]},o.rgb.hsv=function(i){let s,l,u,c,d,y=i[0]/255,f=i[1]/255,h=i[2]/255,g=Math.max(y,f,h),_=g-Math.min(y,f,h),v=function(x){return(g-x)/6/_+1/2};return _===0?(c=0,d=0):(d=_/g,s=v(y),l=v(f),u=v(h),y===g?c=u-l:f===g?c=1/3+s-u:h===g&&(c=2/3+l-s),c<0?c+=1:c>1&&(c-=1)),[c*360,d*100,g*100]},o.rgb.hwb=function(i){let s=i[0],l=i[1],u=i[2],c=o.rgb.hsl(i)[0],d=1/255*Math.min(s,Math.min(l,u));return u=1-1/255*Math.max(s,Math.max(l,u)),[c,d*100,u*100]},o.rgb.cmyk=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,c=Math.min(1-s,1-l,1-u),d=(1-s-c)/(1-c)||0,y=(1-l-c)/(1-c)||0,f=(1-u-c)/(1-c)||0;return[d*100,y*100,f*100,c*100]};function a(i,s){return(i[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2}o.rgb.keyword=function(i){let s=n[i];if(s)return s;let l=1/0,u;for(let c of Object.keys(r)){let d=r[c],y=a(i,d);y.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;let c=s*.4124+l*.3576+u*.1805,d=s*.2126+l*.7152+u*.0722,y=s*.0193+l*.1192+u*.9505;return[c*100,d*100,y*100]},o.rgb.lab=function(i){let s=o.rgb.xyz(i),l=s[0],u=s[1],c=s[2];l/=95.047,u/=100,c/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let d=116*u-16,y=500*(l-u),f=200*(u-c);return[d,y,f]},o.hsl.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100,c,d,y;if(l===0)return y=u*255,[y,y,y];u<.5?c=u*(1+l):c=u+l-u*l;let f=2*u-c,h=[0,0,0];for(let g=0;g<3;g++)d=s+1/3*-(g-1),d<0&&d++,d>1&&d--,6*d<1?y=f+(c-f)*6*d:2*d<1?y=c:3*d<2?y=f+(c-f)*(2/3-d)*6:y=f,h[g]=y*255;return h},o.hsl.hsv=function(i){let s=i[0],l=i[1]/100,u=i[2]/100,c=l,d=Math.max(u,.01);u*=2,l*=u<=1?u:2-u,c*=d<=1?d:2-d;let y=(u+l)/2,f=u===0?2*c/(d+c):2*l/(u+l);return[s,f*100,y*100]},o.hsv.rgb=function(i){let s=i[0]/60,l=i[1]/100,u=i[2]/100,c=Math.floor(s)%6,d=s-Math.floor(s),y=255*u*(1-l),f=255*u*(1-l*d),h=255*u*(1-l*(1-d));switch(u*=255,c){case 0:return[u,h,y];case 1:return[f,u,y];case 2:return[y,u,h];case 3:return[y,f,u];case 4:return[h,y,u];case 5:return[u,y,f]}},o.hsv.hsl=function(i){let s=i[0],l=i[1]/100,u=i[2]/100,c=Math.max(u,.01),d,y;y=(2-l)*u;let f=(2-l)*c;return d=l*c,d/=f<=1?f:2-f,d=d||0,y/=2,[s,d*100,y*100]},o.hwb.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100,c=l+u,d;c>1&&(l/=c,u/=c);let y=Math.floor(6*s),f=1-u;d=6*s-y,y&1&&(d=1-d);let h=l+d*(f-l),g,_,v;switch(y){default:case 6:case 0:g=f,_=h,v=l;break;case 1:g=h,_=f,v=l;break;case 2:g=l,_=f,v=h;break;case 3:g=l,_=h,v=f;break;case 4:g=h,_=l,v=f;break;case 5:g=f,_=l,v=h;break}return[g*255,_*255,v*255]},o.cmyk.rgb=function(i){let s=i[0]/100,l=i[1]/100,u=i[2]/100,c=i[3]/100,d=1-Math.min(1,s*(1-c)+c),y=1-Math.min(1,l*(1-c)+c),f=1-Math.min(1,u*(1-c)+c);return[d*255,y*255,f*255]},o.xyz.rgb=function(i){let s=i[0]/100,l=i[1]/100,u=i[2]/100,c,d,y;return c=s*3.2406+l*-1.5372+u*-.4986,d=s*-.9689+l*1.8758+u*.0415,y=s*.0557+l*-.204+u*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,y=y>.0031308?1.055*y**(1/2.4)-.055:y*12.92,c=Math.min(Math.max(0,c),1),d=Math.min(Math.max(0,d),1),y=Math.min(Math.max(0,y),1),[c*255,d*255,y*255]},o.xyz.lab=function(i){let s=i[0],l=i[1],u=i[2];s/=95.047,l/=100,u/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let c=116*l-16,d=500*(s-l),y=200*(l-u);return[c,d,y]},o.lab.xyz=function(i){let s=i[0],l=i[1],u=i[2],c,d,y;d=(s+16)/116,c=l/500+d,y=d-u/200;let f=d**3,h=c**3,g=y**3;return d=f>.008856?f:(d-16/116)/7.787,c=h>.008856?h:(c-16/116)/7.787,y=g>.008856?g:(y-16/116)/7.787,c*=95.047,d*=100,y*=108.883,[c,d,y]},o.lab.lch=function(i){let s=i[0],l=i[1],u=i[2],c;c=Math.atan2(u,l)*360/2/Math.PI,c<0&&(c+=360);let d=Math.sqrt(l*l+u*u);return[s,d,c]},o.lch.lab=function(i){let s=i[0],l=i[1],u=i[2]/360*2*Math.PI,c=l*Math.cos(u),d=l*Math.sin(u);return[s,c,d]},o.rgb.ansi16=function(i,s=null){let[l,u,c]=i,d=s===null?o.rgb.hsv(i)[2]:s;if(d=Math.round(d/50),d===0)return 30;let y=30+(Math.round(c/255)<<2|Math.round(u/255)<<1|Math.round(l/255));return d===2&&(y+=60),y},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let s=i[0],l=i[1],u=i[2];return s===l&&l===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5)},o.ansi16.rgb=function(i){let s=i%10;if(s===0||s===7)return i>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let l=(~~(i>50)+1)*.5,u=(s&1)*l*255,c=(s>>1&1)*l*255,d=(s>>2&1)*l*255;return[u,c,d]},o.ansi256.rgb=function(i){if(i>=232){let d=(i-232)*10+8;return[d,d,d]}i-=16;let s,l=Math.floor(i/36)/5*255,u=Math.floor((s=i%36)/6)/5*255,c=s%6/5*255;return[l,u,c]},o.rgb.hex=function(i){let s=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(i){let s=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let l=s[0];s[0].length===3&&(l=l.split("").map(f=>f+f).join(""));let u=parseInt(l,16),c=u>>16&255,d=u>>8&255,y=u&255;return[c,d,y]},o.rgb.hcg=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,c=Math.max(Math.max(s,l),u),d=Math.min(Math.min(s,l),u),y=c-d,f,h;return y<1?f=d/(1-y):f=0,y<=0?h=0:c===s?h=(l-u)/y%6:c===l?h=2+(u-s)/y:h=4+(s-l)/y,h/=6,h%=1,[h*360,y*100,f*100]},o.hsl.hcg=function(i){let s=i[1]/100,l=i[2]/100,u=l<.5?2*s*l:2*s*(1-l),c=0;return u<1&&(c=(l-.5*u)/(1-u)),[i[0],u*100,c*100]},o.hsv.hcg=function(i){let s=i[1]/100,l=i[2]/100,u=s*l,c=0;return u<1&&(c=(l-u)/(1-u)),[i[0],u*100,c*100]},o.hcg.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100;if(l===0)return[u*255,u*255,u*255];let c=[0,0,0],d=s%1*6,y=d%1,f=1-y,h=0;switch(Math.floor(d)){case 0:c[0]=1,c[1]=y,c[2]=0;break;case 1:c[0]=f,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=y;break;case 3:c[0]=0,c[1]=f,c[2]=1;break;case 4:c[0]=y,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=f}return h=(1-l)*u,[(l*c[0]+h)*255,(l*c[1]+h)*255,(l*c[2]+h)*255]},o.hcg.hsv=function(i){let s=i[1]/100,l=i[2]/100,u=s+l*(1-s),c=0;return u>0&&(c=s/u),[i[0],c*100,u*100]},o.hcg.hsl=function(i){let s=i[1]/100,l=i[2]/100*(1-s)+.5*s,u=0;return l>0&&l<.5?u=s/(2*l):l>=.5&&l<1&&(u=s/(2*(1-l))),[i[0],u*100,l*100]},o.hcg.hwb=function(i){let s=i[1]/100,l=i[2]/100,u=s+l*(1-s);return[i[0],(u-s)*100,(1-u)*100]},o.hwb.hcg=function(i){let s=i[1]/100,l=1-i[2]/100,u=l-s,c=0;return u<1&&(c=(l-u)/(1-u)),[i[0],u*100,c*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let s=Math.round(i[0]/100*255)&255,l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}}),eN=nr({"../../node_modules/color-convert/route.js"(e,t){var r=V0();function n(){let s={},l=Object.keys(r);for(let u=l.length,c=0;c1&&(c=d),l(c))};return"conversion"in l&&(u.conversion=l.conversion),u}function s(l){let u=function(...c){let d=c[0];if(d==null)return d;d.length>1&&(c=d);let y=l(c);if(typeof y=="object")for(let f=y.length,h=0;h{o[l]={},Object.defineProperty(o[l],"channels",{value:r[l].channels}),Object.defineProperty(o[l],"labels",{value:r[l].labels});let u=n(l);Object.keys(u).forEach(c=>{let d=u[c];o[l][c]=s(d),o[l][c].raw=i(d)})}),t.exports=o}});Xr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:_.buttons>0)&&o.current?a(q0(o.current,_,s.current)):g(!1)},h=function(){return g(!1)};function g(_){var v=l.current,x=ll(o.current),O=_?x.addEventListener:x.removeEventListener;O(v?"touchmove":"mousemove",f),O(v?"touchend":"mouseup",h)}return[function(_){var v=_.nativeEvent,x=o.current;if(x&&(M0(v),!function(C,I){return I&&!Kn(C)}(v,l.current)&&x)){if(Kn(v)){l.current=!0;var O=v.changedTouches||[];O.length&&(s.current=O[0].identifier)}x.focus(),a(q0(x,v,s.current)),g(!0)}},function(_){var v=_.which||_.keyCode;v<37||v>40||(_.preventDefault(),i({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},g]},[i,a]),c=u[0],d=u[1],y=u[2];return ze(function(){return y},[y]),E.createElement("div",hr({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Yn=function(e){return e.filter(Boolean).join(" ")},yl=function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,a=Yn(["react-colorful__pointer",e.className]);return E.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},E.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Je=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},rN={grad:.9,turn:360,rad:360/(2*Math.PI)},nN=function(e){return W0(ul(e))},ul=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Je(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Je(parseInt(e.substring(6,8),16)/255,2):1}},oN=function(e,t){return t===void 0&&(t="deg"),Number(e)*(rN[t]||1)},aN=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?iN({h:oN(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},iN=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},sN=function(e){return uN(G0(e))},H0=function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:Je(e.h),s:Je(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:Je(o/2),a:Je(n,2)}},cl=function(e){var t=H0(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ma=function(e){var t=H0(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},G0=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),l=n*(1-(1-t+a)*r),u=a%6;return{r:Je(255*[n,s,i,i,l,n][u]),g:Je(255*[l,n,n,s,i,i][u]),b:Je(255*[i,i,l,n,n,s][u]),a:Je(o,2)}},lN=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?W0({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},fa=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},uN=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?fa(Je(255*o)):"";return"#"+fa(t)+fa(r)+fa(n)+a},W0=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:Je(60*(s<0?s+6:s)),s:Je(a?i/a*100:0),v:Je(a/255*100),a:o}},K0=E.memo(function(e){var t=e.hue,r=e.onChange,n=Yn(["react-colorful__hue",e.className]);return E.createElement("div",{className:n},E.createElement(fl,{onMove:function(o){r({h:360*o.left})},onKey:function(o){r({h:Xr(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Je(t),"aria-valuemax":"360","aria-valuemin":"0"},E.createElement(yl,{className:"react-colorful__hue-pointer",left:t/360,color:cl({h:t,s:100,v:100,a:1})})))}),Y0=E.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:cl({h:t.h,s:100,v:100,a:1})};return E.createElement("div",{className:"react-colorful__saturation",style:n},E.createElement(fl,{onMove:function(o){r({s:100*o.left,v:100-100*o.top})},onKey:function(o){r({s:Xr(t.s+100*o.left,0,100),v:Xr(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Je(t.s)+"%, Brightness "+Je(t.v)+"%"},E.createElement(yl,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:cl(t)})))}),X0=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},Q0=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},cN=function(e,t){return e.toLowerCase()===t.toLowerCase()||X0(ul(e),ul(t))};pN=typeof window<"u"?ru:ze,dN=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},U0=new Map,ev=function(e){pN(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!U0.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,U0.set(t,r);var n=dN();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},fN=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=dl(e,["className","colorModel","color","onChange"]),s=Xe(null);ev(s);var l=Z0(r,o,a),u=l[0],c=l[1],d=Yn(["react-colorful",t]);return E.createElement("div",hr({},i,{ref:s,className:d}),E.createElement(Y0,{hsva:u,onChange:c}),E.createElement(K0,{hue:u.h,onChange:c,className:"react-colorful__last-control"}))},yN={defaultColor:"000",toHsva:nN,fromHsva:function(e){return sN({h:e.h,s:e.s,v:e.v,a:1})},equal:cN},hN=function(e){return E.createElement(fN,hr({},e,{colorModel:yN}))},mN=function(e){var t=e.className,r=e.hsva,n=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ma(Object.assign({},r,{a:0}))+", "+ma(Object.assign({},r,{a:1}))+")"},a=Yn(["react-colorful__alpha",t]),i=Je(100*r.a);return E.createElement("div",{className:a},E.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),E.createElement(fl,{onMove:function(s){n({a:s.left})},onKey:function(s){n({a:Xr(r.a+s.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},E.createElement(yl,{className:"react-colorful__alpha-pointer",left:r.a,color:ma(r)})))},tv=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=dl(e,["className","colorModel","color","onChange"]),s=Xe(null);ev(s);var l=Z0(r,o,a),u=l[0],c=l[1],d=Yn(["react-colorful",t]);return E.createElement("div",hr({},i,{ref:s,className:d}),E.createElement(Y0,{hsva:u,onChange:c}),E.createElement(K0,{hue:u.h,onChange:c}),E.createElement(mN,{hsva:u,onChange:c,className:"react-colorful__last-control"}))},gN={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:aN,fromHsva:ma,equal:Q0},bN=function(e){return E.createElement(tv,hr({},e,{colorModel:gN}))},vN={defaultColor:"rgba(0, 0, 0, 1)",toHsva:lN,fromHsva:function(e){var t=G0(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:Q0},xN=function(e){return E.createElement(tv,hr({},e,{colorModel:vN}))},ut=gn(tN(),1),EN=W.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),wN=W(Lt)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),SN=W.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),AN=W(sr)(({theme:e})=>({fontFamily:e.typography.fonts.base})),TN=W.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),CN=W.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),_N=`url('data:image/svg+xml;charset=utf-8,')`,J0=({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${_N}, linear-gradient(#fff, #fff)`;return E.createElement(CN,{...r,style:{...t,backgroundImage:n}})},ON=W(dt.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),IN=W(Ju)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),rv=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(rv||{}),ya=Object.values(rv),PN=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,kN=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,RN=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,pl=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,DN=/^\s*#?([0-9a-f]{3})\s*$/i,FN={hex:hN,rgb:xN,hsl:bN},ha={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},$0=e=>{let t=e?.match(PN);if(!t)return[0,0,0,1];let[,r,n,o,a=1]=t;return[r,n,o,a].map(Number)},Yr=e=>{if(!e)return;let t=!0;if(kN.test(e)){let[i,s,l,u]=$0(e),[c,d,y]=ut.default.rgb.hsl([i,s,l])||[0,0,0];return{valid:t,value:e,keyword:ut.default.rgb.keyword([i,s,l]),colorSpace:"rgb",rgb:e,hsl:`hsla(${c}, ${d}%, ${y}%, ${u})`,hex:`#${ut.default.rgb.hex([i,s,l]).toLowerCase()}`}}if(RN.test(e)){let[i,s,l,u]=$0(e),[c,d,y]=ut.default.hsl.rgb([i,s,l])||[0,0,0];return{valid:t,value:e,keyword:ut.default.hsl.keyword([i,s,l]),colorSpace:"hsl",rgb:`rgba(${c}, ${d}, ${y}, ${u})`,hsl:e,hex:`#${ut.default.hsl.hex([i,s,l]).toLowerCase()}`}}let r=e.replace("#",""),n=ut.default.keyword.rgb(r)||ut.default.hex.rgb(r),o=ut.default.rgb.hsl(n),a=e;if(/[^#a-f0-9]/i.test(e)?a=r:pl.test(e)&&(a=`#${r}`),a.startsWith("#"))t=pl.test(a);else try{ut.default.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:ut.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},jN=(e,t,r)=>{if(!e||!t?.valid)return ha[r];if(r!=="hex")return t?.[r]||ha[r];if(!t.hex.startsWith("#"))try{return`#${ut.default.keyword.hex(t.hex)}`}catch{return ha.hex}let n=t.hex.match(DN);if(!n)return pl.test(t.hex)?t.hex:ha.hex;let[o,a,i]=n[1].split("");return`#${o}${o}${a}${a}${i}${i}`},NN=(e,t)=>{let[r,n]=he(e||""),[o,a]=he(()=>Yr(r)),[i,s]=he(o?.colorSpace||"hex");ze(()=>{let d=e||"",y=Yr(d);n(d),a(y),s(y?.colorSpace||"hex")},[e]);let l=Nt(()=>jN(r,o,i).toLowerCase(),[r,o,i]),u=$e(d=>{let y=Yr(d),f=y?.value||d||"";n(f),f===""&&(a(void 0),t(void 0)),y&&(a(y),s(y.colorSpace),t(y.value))},[t]),c=$e(()=>{let d=ya.indexOf(i)+1;d>=ya.length&&(d=0),s(ya[d]);let y=o?.[ya[d]]||"";n(y),t(y)},[o,i,t]);return{value:r,realValue:l,updateValue:u,color:o,colorSpace:i,cycleColorSpace:c}},ga=e=>e.replace(/\s*/,"").toLowerCase(),BN=(e,t,r)=>{let[n,o]=he(t?.valid?[t]:[]);ze(()=>{t===void 0&&o([])},[t]);let a=Nt(()=>(e||[]).map(s=>typeof s=="string"?Yr(s):s.title?{...Yr(s.color),keyword:s.title}:Yr(s.color)).concat(n).filter(Boolean).slice(-27),[e,n]),i=$e(s=>{s?.valid&&(a.some(l=>ga(l[r])===ga(s[r]))||o(l=>l.concat(s)))},[r,a]);return{presets:a,addPreset:i}},nv=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,presetColors:a,startOpen:i=!1,argType:s})=>{let l=$e((0,z0.default)(r,200),[r]),{value:u,realValue:c,updateValue:d,color:y,colorSpace:f,cycleColorSpace:h}=NN(t,l),{presets:g,addPreset:_}=BN(a,y,f),v=FN[f],x=!!s?.table?.readonly;return E.createElement(EN,{"aria-readonly":x},E.createElement(wN,{startOpen:i,trigger:x?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>_(y),tooltip:E.createElement(SN,null,E.createElement(v,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:n,onBlur:o}),g.length>0&&E.createElement(TN,null,g.map((O,C)=>E.createElement(Lt,{key:`${O.value}-${C}`,hasChrome:!1,tooltip:E.createElement(AN,{note:O.keyword||O.value})},E.createElement(J0,{value:O[f],active:y&&ga(O[f])===ga(y[f]),onClick:()=>d(O.value)})))))},E.createElement(J0,{value:c,style:{margin:4}})),E.createElement(ON,{id:tt(e),value:u,onChange:O=>d(O.target.value),onFocus:O=>O.target.select(),readOnly:x,placeholder:"Choose color..."}),u?E.createElement(IN,{onClick:h}):null)},LN=nv});S();A();T();S();A();T();S();A();T();Da();io();io();S();A();T();var nu=Object.prototype.hasOwnProperty;function ou(e,t,r){for(r of e.keys())if(ar(r,t))return r}function ar(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&ar(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=ou(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=ou(t,o),!o)||!ar(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(nu.call(e,r)&&++n&&!nu.call(t,r)||!(r in t)||!ar(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}lo();S();A();T();S();A();T();var p8=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:iu,ARGTYPES_INFO_RESPONSE:Wa,CHANNEL_CREATED:d8,CHANNEL_WS_DISCONNECT:f8,CONFIG_ERROR:su,CREATE_NEW_STORYFILE_REQUEST:y8,CREATE_NEW_STORYFILE_RESPONSE:h8,CURRENT_STORY_WAS_SET:Ka,DOCS_PREPARED:lu,DOCS_RENDERED:uo,FILE_COMPONENT_SEARCH_REQUEST:m8,FILE_COMPONENT_SEARCH_RESPONSE:g8,FORCE_REMOUNT:uu,FORCE_RE_RENDER:co,GLOBALS_UPDATED:cu,NAVIGATE_URL:pu,PLAY_FUNCTION_THREW_EXCEPTION:du,PRELOAD_ENTRIES:fu,PREVIEW_BUILDER_PROGRESS:b8,PREVIEW_KEYDOWN:yu,REGISTER_SUBSCRIPTION:v8,REQUEST_WHATS_NEW_DATA:x8,RESET_STORY_ARGS:po,RESULT_WHATS_NEW_DATA:E8,SAVE_STORY_REQUEST:Ya,SAVE_STORY_RESPONSE:fo,SELECT_STORY:w8,SET_CONFIG:S8,SET_CURRENT_STORY:hu,SET_GLOBALS:mu,SET_INDEX:A8,SET_STORIES:T8,SET_WHATS_NEW_CACHE:C8,SHARED_STATE_CHANGED:_8,SHARED_STATE_SET:O8,STORIES_COLLAPSE_ALL:I8,STORIES_EXPAND_ALL:P8,STORY_ARGS_UPDATED:gu,STORY_CHANGED:bu,STORY_ERRORED:vu,STORY_INDEX_INVALIDATED:xu,STORY_MISSING:Xa,STORY_PREPARED:Eu,STORY_RENDERED:xn,STORY_RENDER_PHASE_CHANGED:kr,STORY_SPECIFIED:wu,STORY_THREW_EXCEPTION:Su,STORY_UNCHANGED:Au,TELEMETRY_ERROR:k8,TOGGLE_WHATS_NEW_NOTIFICATIONS:R8,UNHANDLED_ERRORS_WHILE_PLAYING:Tu,UPDATE_GLOBALS:yo,UPDATE_QUERY_PARAMS:Cu,UPDATE_STORY_ARGS:ho}=__STORYBOOK_CORE_EVENTS__;S();A();T();var J8=__STORYBOOK_API__,{ActiveTabs:$8,Consumer:z8,ManagerContext:V8,Provider:H8,RequestResponseError:G8,addons:mo,combineParameters:W8,controlOrMetaKey:K8,controlOrMetaSymbol:Y8,eventMatchesShortcut:X8,eventToShortcut:Q8,experimental_requestResponse:Qa,isMacLike:Z8,isShortcutTaken:e9,keyToSymbol:t9,merge:r9,mockChannel:n9,optionOrAltSymbol:o9,shortcutMatchesShortcut:a9,shortcutToHumanString:i9,types:_u,useAddonState:s9,useArgTypes:Za,useArgs:Ou,useChannel:l9,useGlobalTypes:u9,useGlobals:Iu,useParameter:Pu,useSharedState:c9,useStoryPrepared:p9,useStorybookApi:d9,useStorybookState:ku}=__STORYBOOK_API__;ni();si();var Nv=ao(dy());S();A();T();var eZ=__STORYBOOK_CLIENT_LOGGER__,{deprecate:tZ,logger:Bo,once:fy,pretty:rZ}=__STORYBOOK_CLIENT_LOGGER__;var Bv=ao(Dy()),Lv=ao(Lh());S();A();T();S();A();T();S();A();T();var Pte=__STORYBOOK_CHANNELS__,{Channel:qh,PostMessageTransport:kte,WebsocketTransport:Rte,createBrowserChannel:Dte}=__STORYBOOK_CHANNELS__;S();A();T();var Lte=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Ct,logger:me,once:Ut,pretty:qte}=__STORYBOOK_CLIENT_LOGGER__;S();A();T();var _P=Object.defineProperty,Pe=(e,t)=>_P(e,"name",{value:t,configurable:!0});function De(e){for(var t=[],r=1;r` - ${i}`).join(` +`)}`),`${o}${a!=null?` + +More info: ${a} +`:""}`}};Pe(Mh,"StorybookError");var Me=Mh,OP=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e))(OP||{}),Jh=class extends Me{constructor(t){super({category:"PREVIEW_API",code:1,message:De` + Couldn't find story matching id '${t.storyId}' after HMR. + - Did you just rename a story? + - Did you remove it from your CSF file? + - Are you sure a story with the id '${t.storyId}' exists? + - Please check the values in the stories field of your main.js config and see if they would match your CSF File. + - Also check the browser console and terminal for potential error messages.`}),this.data=t}};Pe(Jh,"MissingStoryAfterHmrError");var $h=Jh,IP=class extends Me{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:De` + We detected that you use an implicit action arg while ${t.phase} of your story. + ${t.deprecated?` +This is deprecated and won't work in Storybook 8 anymore. +`:""} + Please provide an explicit spy to your args like this: + import { fn } from '@storybook/test'; + ... + args: { + ${t.name}: fn() + }`}),this.data=t}};Pe(IP,"ImplicitActionsDuringRendering");var zh=class extends Me{constructor(){super({category:"PREVIEW_API",code:3,message:De` + Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first. + + You probably meant to call \`await preview.extract()\` which does the above for you.`})}};Pe(zh,"CalledExtractOnStoreError");var Vh=zh,Hh=class extends Me{constructor(){super({category:"PREVIEW_API",code:4,message:De` + Expected your framework's preset to export a \`renderToCanvas\` field. + + Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};Pe(Hh,"MissingRenderToCanvasError");var Gh=Hh,Wh=class extends Me{constructor(t){super({category:"PREVIEW_API",code:5,message:De` + Called \`Preview.${t.methodName}()\` before initialization. + + The preview needs to load the story index before most methods can be called. If you want + to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first. + + If you didn't call the above code, then likely it was called by an addon that needs to + do the above.`}),this.data=t}};Pe(Wh,"CalledPreviewMethodBeforeInitializationError");var rt=Wh,Kh=class extends Me{constructor(t){super({category:"PREVIEW_API",code:6,message:De` + Error fetching \`/index.json\`: + + ${t.text} + + If you are in development, this likely indicates a problem with your Storybook process, + check the terminal for errors. + + If you are in a deployed Storybook, there may have been an issue deploying the full Storybook + build.`}),this.data=t}};Pe(Kh,"StoryIndexFetchError");var Yh=Kh,Xh=class extends Me{constructor(t){super({category:"PREVIEW_API",code:7,message:De` + Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF + references, or autodocs for a CSF file that some doesn't refer to itself. + + This likely is an internal error in Storybook's indexing, or you've attached the + \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};Pe(Xh,"MdxFileWithNoCsfReferencesError");var Qh=Xh,Zh=class extends Me{constructor(){super({category:"PREVIEW_API",code:8,message:De` + Couldn't find any stories in your Storybook. + + - Please check your stories field of your main.js config: does it match correctly? + - Also check the browser console and terminal for error messages.`})}};Pe(Zh,"EmptyIndexError");var em=Zh,tm=class extends Me{constructor(t){super({category:"PREVIEW_API",code:9,message:De` + Couldn't find story matching '${t.storySpecifier}'. + + - Are you sure a story with that id exists? + - Please check your stories field of your main.js config. + - Also check the browser console and terminal for error messages.`}),this.data=t}};Pe(tm,"NoStoryMatchError");var rm=tm,nm=class extends Me{constructor(t){super({category:"PREVIEW_API",code:10,message:De` + Couldn't find story matching id '${t.storyId}' after importing a CSF file. + + The file was indexed as if the story was there, but then after importing the file in the browser + we didn't find the story. Possible reasons: + - You are using a custom story indexer that is misbehaving. + - You have a custom file loader that is removing or renaming exports. + + Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};Pe(nm,"MissingStoryFromCsfFileError");var om=nm,am=class extends Me{constructor(){super({category:"PREVIEW_API",code:11,message:De` + Cannot access the Story Store until the index is ready. + + It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will + remove access to the store entirely`})}};Pe(am,"StoryStoreAccessedBeforeInitializationError");var im=am,sm=class extends Me{constructor(t){super({category:"PREVIEW_API",code:12,message:De` + Incorrect use of mount in the play function. + + To use mount in the play function, you must satisfy the following two requirements: + + 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function). + This makes sure that Storybook does not start rendering the story before the play function begins. + + 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer. + This is because destructuring statements and async/await usages are otherwise transpiled away, + which prevents Storybook from recognizing your usage of \`mount\`. + + Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. + + More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered + + Received the following play function: + ${t.playFunction}`}),this.data=t}};Pe(sm,"MountMustBeDestructuredError");var Mo=sm,PP=class extends Me{constructor(){super({category:"PREVIEW_API",code:13,message:De` + You must configure testingLibraryRender to use play in portable stories. + + import { render } from '@testing-library/[renderer]'; + + setProjectAnnotations({ + testingLibraryRender: render, + }); + + For other testing renderers, you can configure \`renderToCanvas\` like so: + + import { render } from 'your-test-renderer'; + + setProjectAnnotations({ + renderToCanvas: ({ storyFn }) => { + const Story = storyFn(); + + // Svelte + render(Story.Component, Story.props); + + // Vue + render(Story); + + // or for React + render(); + }, + });`})}};Pe(PP,"TestingLibraryMustBeConfiguredError");var lm=class extends Me{constructor(t){super({category:"PREVIEW_API",code:14,message:De` + No render function available for storyId '${t.id}' + `}),this.data=t}};Pe(lm,"NoRenderFunctionError");var um=lm,cm=class extends Me{constructor(){super({category:"PREVIEW_API",code:15,message:De` + No component is mounted in your story. + + This usually occurs when you destructure mount in the play function, but forget to call it. + + For example: + + async play({ mount, canvasElement }) { + // 👈 mount should be called: await mount(); + const canvas = within(canvasElement); + const button = await canvas.findByRole('button'); + await userEvent.click(button); + }; + + Make sure to either remove it or call mount in your play function. + `})}};Pe(cm,"NoStoryMountedError");var pm=cm,kP=class extends Me{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:De` + You are importing avif images, but you don't have sharp installed. + + You have to install sharp in order to use image optimization features in Next.js. + `})}};Pe(kP,"NextJsSharpError");var RP=class extends Me{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:De` + Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment. + `}),this.data=t}};Pe(RP,"NextjsRouterMocksNotAvailable");var dm=class extends Me{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:De` + There was a failure when generating detailed ArgTypes in ${t.language} for: + ${JSON.stringify(t.type,null,2)} + + Storybook will fall back to use a generic type description instead. + + This type is either not supported or it is a bug in the docgen generation in Storybook. + If you think this is a bug, please detail it as much as possible in the Github issue. + `}),this.data=t}};Pe(dm,"UnknownArgTypesError");var Uo=dm;S();A();T();var DP=Object.create,mm=Object.defineProperty,FP=Object.getOwnPropertyDescriptor,jP=Object.getOwnPropertyNames,NP=Object.getPrototypeOf,BP=Object.prototype.hasOwnProperty,LP=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jP(t))!BP.call(e,o)&&o!==r&&mm(e,o,{get:()=>t[o],enumerable:!(n=FP(t,o))||n.enumerable});return e},MP=(e,t,r)=>(r=e!=null?DP(NP(e)):{},qP(t||!e||!e.__esModule?mm(r,"default",{value:e,enumerable:!0}):r,e)),UP=LP(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(s,l,u){var c,d,y,f=t.call(s),h=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(u.indexOf(s)>-1&&u.indexOf(l)>-1)return!0;if(u.push(s,l),f!=h||(c=n(s),d=n(l),c.length!=d.length||c.some(function(g){return!i(s[g],l[g],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":c=s.entries(),d=l.entries();do if(!i((y=c.next()).value,d.next().value,u))return!1;while(!y.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(y=0;y`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var fm=MP(UP()),gm=e=>e.map(t=>typeof t<"u").filter(Boolean).length,$P=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(gm([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,fm.isEqual)(t,n);if(typeof o<"u")return!(0,fm.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},bm=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(gm([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return $P(e.if,a)},Vi=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),ym=(e,t)=>{let r=Vi(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},vm=(e,t)=>`${ym(e,"kind")}${t?`--${ym(t,"name")}`:""}`,xm=e=>JP(e);function hm(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Jo(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||hm(e,t))&&(!r||!hm(e,r))}var Em=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};var zP=Object.create,ds=Object.defineProperty,VP=Object.getOwnPropertyDescriptor,HP=Object.getOwnPropertyNames,GP=Object.getPrototypeOf,WP=Object.prototype.hasOwnProperty,m=(e,t)=>ds(e,"name",{value:t,configurable:!0}),$o=(e=>typeof et<"u"?et:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof et<"u"?et:t)[r]}):e)(function(e){if(typeof et<"u")return et.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),KP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HP(t))!WP.call(e,o)&&o!==r&&ds(e,o,{get:()=>t[o],enumerable:!(n=VP(t,o))||n.enumerable});return e},Qe=(e,t,r)=>(r=e!=null?zP(GP(e)):{},KP(t||!e||!e.__esModule?ds(r,"default",{value:e,enumerable:!0}):r,e)),Lm=L((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return m(function a(i,s,l){function u(y,f){if(!s[y]){if(!i[y]){var h=typeof $o=="function"&&$o;if(!f&&h)return h(y,!0);if(c)return c(y,!0);var g=new Error("Cannot find module '"+y+"'");throw g.code="MODULE_NOT_FOUND",g}var _=s[y]={exports:{}};i[y][0].call(_.exports,function(v){var x=i[y][1][v];return u(x||v)},_,_.exports,a,i,s,l)}return s[y].exports}m(u,"s");for(var c=typeof $o=="function"&&$o,d=0;d=0)return this.lastItem=this.list[c],this.list[c].val},l.prototype.set=function(u,c){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(d=this.indexOf(u),d>=0?(this.lastItem=this.list[d],this.list[d].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),c=this.indexOf(u),c>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(u){var c;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(c=this.indexOf(u),c>=0?(this.lastItem=this.list[c],!0):!1)},l.prototype.forEach=function(u,c){var d;for(d=0;d0&&(I[C]={cacheItem:v,arg:arguments[C]},P?u(h,I):h.push(I),h.length>y&&c(h.shift())),_.wasMemoized=P,_.numArgs=C+1,O},"memoizerific");return _.limit=y,_.wasMemoized=!1,_.cache=f,_.lru=h,_}};function u(y,f){var h=y.length,g=f.length,_,v,x;for(v=0;v=0&&(h=y[_],g=h.cacheItem.get(h.arg),!g||!g.size);_--)h.cacheItem.delete(h.arg)}m(c,"removeCachedResult");function d(y,f){return y===f||y!==y&&f!==f}m(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),qm=L((e,t)=>{var r=typeof window=="object"&&window&&window.Object===Object&&window;t.exports=r}),It=L((e,t)=>{var r=qm(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}),Ln=L((e,t)=>{var r=It(),n=r.Symbol;t.exports=n}),YP=L((e,t)=>{var r=Ln(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(l){var u=o.call(l,i),c=l[i];try{l[i]=void 0;var d=!0}catch{}var y=a.call(l);return d&&(u?l[i]=c:delete l[i]),y}m(s,"getRawTag"),t.exports=s}),XP=L((e,t)=>{var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}m(o,"objectToString"),t.exports=o}),Gr=L((e,t)=>{var r=Ln(),n=YP(),o=XP(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function l(u){return u==null?u===void 0?i:a:s&&s in Object(u)?n(u):o(u)}m(l,"baseGetTag"),t.exports=l}),qn=L((e,t)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}m(r,"isObject"),t.exports=r}),Mm=L((e,t)=>{var r=Gr(),n=qn(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(u){if(!n(u))return!1;var c=r(u);return c==a||c==i||c==o||c==s}m(l,"isFunction"),t.exports=l}),QP=L((e,t)=>{var r=It(),n=r["__core-js_shared__"];t.exports=n}),ZP=L((e,t)=>{var r=QP(),n=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function o(a){return!!n&&n in a}m(o,"isMasked"),t.exports=o}),Um=L((e,t)=>{var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}m(o,"toSource"),t.exports=o}),ek=L((e,t)=>{var r=Mm(),n=ZP(),o=qn(),a=Um(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,y=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!o(h)||n(h))return!1;var g=r(h)?y:s;return g.test(a(h))}m(f,"baseIsNative"),t.exports=f}),tk=L((e,t)=>{function r(n,o){return n?.[o]}m(r,"getValue"),t.exports=r}),dr=L((e,t)=>{var r=ek(),n=tk();function o(a,i){var s=n(a,i);return r(s)?s:void 0}m(o,"getNative"),t.exports=o}),Jm=L((e,t)=>{var r=dr(),n=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();t.exports=n}),$m=L((e,t)=>{var r=Jm();function n(o,a,i){a=="__proto__"&&r?r(o,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[a]=i}m(n,"baseAssignValue"),t.exports=n}),rk=L((e,t)=>{function r(n){return function(o,a,i){for(var s=-1,l=Object(o),u=i(o),c=u.length;c--;){var d=u[n?c:++s];if(a(l[d],d,l)===!1)break}return o}}m(r,"createBaseFor"),t.exports=r}),nk=L((e,t)=>{var r=rk(),n=r();t.exports=n}),ok=L((e,t)=>{function r(n,o){for(var a=-1,i=Array(n);++a{function r(n){return n!=null&&typeof n=="object"}m(r,"isObjectLike"),t.exports=r}),ak=L((e,t)=>{var r=Gr(),n=Wr(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}m(a,"baseIsArguments"),t.exports=a}),fs=L((e,t)=>{var r=ak(),n=Wr(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(l){return n(l)&&a.call(l,"callee")&&!i.call(l,"callee")};t.exports=s}),Pt=L((e,t)=>{var r=Array.isArray;t.exports=r}),ik=L((e,t)=>{function r(){return!1}m(r,"stubFalse"),t.exports=r}),zm=L((e,t)=>{var r=It(),n=ik(),o=typeof e=="object"&&e&&!e.nodeType&&e,a=o&&typeof t=="object"&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;t.exports=u}),ys=L((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}m(n,"isLength"),t.exports=n}),sk=L((e,t)=>{var r=Gr(),n=hs(),o=Wr(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",y="[object Number]",f="[object Object]",h="[object RegExp]",g="[object Set]",_="[object String]",v="[object WeakMap]",x="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",I="[object Float64Array]",P="[object Int8Array]",F="[object Int16Array]",D="[object Int32Array]",U="[object Uint8Array]",G="[object Uint8ClampedArray]",X="[object Uint16Array]",Q="[object Uint32Array]",V={};V[C]=V[I]=V[P]=V[F]=V[D]=V[U]=V[G]=V[X]=V[Q]=!0,V[a]=V[i]=V[x]=V[s]=V[O]=V[l]=V[u]=V[c]=V[d]=V[y]=V[f]=V[h]=V[g]=V[_]=V[v]=!1;function R(q){return o(q)&&n(q.length)&&!!V[r(q)]}m(R,"baseIsTypedArray"),t.exports=R}),lk=L((e,t)=>{function r(n){return function(o){return n(o)}}m(r,"baseUnary"),t.exports=r}),uk=L((e,t)=>{var r=qm(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}),Vm=L((e,t)=>{var r=sk(),n=lk(),o=uk(),a=o&&o.isTypedArray,i=a?n(a):r;t.exports=i}),Hm=L((e,t)=>{var r=ok(),n=fs(),o=Pt(),a=zm(),i=ys(),s=Vm(),l=Object.prototype,u=l.hasOwnProperty;function c(d,y){var f=o(d),h=!f&&n(d),g=!f&&!h&&a(d),_=!f&&!h&&!g&&s(d),v=f||h||g||_,x=v?r(d.length,String):[],O=x.length;for(var C in d)(y||u.call(d,C))&&!(v&&(C=="length"||g&&(C=="offset"||C=="parent")||_&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,O)))&&x.push(C);return x}m(c,"arrayLikeKeys"),t.exports=c}),Gm=L((e,t)=>{var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}m(n,"isPrototype"),t.exports=n}),Wm=L((e,t)=>{function r(n,o){return function(a){return n(o(a))}}m(r,"overArg"),t.exports=r}),ck=L((e,t)=>{var r=Wm(),n=r(Object.keys,Object);t.exports=n}),pk=L((e,t)=>{var r=Gm(),n=ck(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var l=[];for(var u in Object(s))a.call(s,u)&&u!="constructor"&&l.push(u);return l}m(i,"baseKeys"),t.exports=i}),Km=L((e,t)=>{var r=Mm(),n=hs();function o(a){return a!=null&&n(a.length)&&!r(a)}m(o,"isArrayLike"),t.exports=o}),ms=L((e,t)=>{var r=Hm(),n=pk(),o=Km();function a(i){return o(i)?r(i):n(i)}m(a,"keys"),t.exports=a}),dk=L((e,t)=>{var r=nk(),n=ms();function o(a,i){return a&&r(a,i,n)}m(o,"baseForOwn"),t.exports=o}),fk=L((e,t)=>{function r(){this.__data__=[],this.size=0}m(r,"listCacheClear"),t.exports=r}),gs=L((e,t)=>{function r(n,o){return n===o||n!==n&&o!==o}m(r,"eq"),t.exports=r}),Yo=L((e,t)=>{var r=gs();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}m(n,"assocIndexOf"),t.exports=n}),yk=L((e,t)=>{var r=Yo(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,l=r(s,i);if(l<0)return!1;var u=s.length-1;return l==u?s.pop():o.call(s,l,1),--this.size,!0}m(a,"listCacheDelete"),t.exports=a}),hk=L((e,t)=>{var r=Yo();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}m(n,"listCacheGet"),t.exports=n}),mk=L((e,t)=>{var r=Yo();function n(o){return r(this.__data__,o)>-1}m(n,"listCacheHas"),t.exports=n}),gk=L((e,t)=>{var r=Yo();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}m(n,"listCacheSet"),t.exports=n}),Xo=L((e,t)=>{var r=fk(),n=yk(),o=hk(),a=mk(),i=gk();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=Xo();function n(){this.__data__=new r,this.size=0}m(n,"stackClear"),t.exports=n}),vk=L((e,t)=>{function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}m(r,"stackDelete"),t.exports=r}),xk=L((e,t)=>{function r(n){return this.__data__.get(n)}m(r,"stackGet"),t.exports=r}),Ek=L((e,t)=>{function r(n){return this.__data__.has(n)}m(r,"stackHas"),t.exports=r}),bs=L((e,t)=>{var r=dr(),n=It(),o=r(n,"Map");t.exports=o}),Qo=L((e,t)=>{var r=dr(),n=r(Object,"create");t.exports=n}),wk=L((e,t)=>{var r=Qo();function n(){this.__data__=r?r(null):{},this.size=0}m(n,"hashClear"),t.exports=n}),Sk=L((e,t)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}m(r,"hashDelete"),t.exports=r}),Ak=L((e,t)=>{var r=Qo(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var l=this.__data__;if(r){var u=l[s];return u===n?void 0:u}return a.call(l,s)?l[s]:void 0}m(i,"hashGet"),t.exports=i}),Tk=L((e,t)=>{var r=Qo(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}m(a,"hashHas"),t.exports=a}),Ck=L((e,t)=>{var r=Qo(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}m(o,"hashSet"),t.exports=o}),_k=L((e,t)=>{var r=wk(),n=Sk(),o=Ak(),a=Tk(),i=Ck();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=_k(),n=Xo(),o=bs();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}m(a,"mapCacheClear"),t.exports=a}),Ik=L((e,t)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}m(r,"isKeyable"),t.exports=r}),Zo=L((e,t)=>{var r=Ik();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}m(n,"getMapData"),t.exports=n}),Pk=L((e,t)=>{var r=Zo();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}m(n,"mapCacheDelete"),t.exports=n}),kk=L((e,t)=>{var r=Zo();function n(o){return r(this,o).get(o)}m(n,"mapCacheGet"),t.exports=n}),Rk=L((e,t)=>{var r=Zo();function n(o){return r(this,o).has(o)}m(n,"mapCacheHas"),t.exports=n}),Dk=L((e,t)=>{var r=Zo();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}m(n,"mapCacheSet"),t.exports=n}),vs=L((e,t)=>{var r=Ok(),n=Pk(),o=kk(),a=Rk(),i=Dk();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=Xo(),n=bs(),o=vs(),a=200;function i(s,l){var u=this.__data__;if(u instanceof r){var c=u.__data__;if(!n||c.length{var r=Xo(),n=bk(),o=vk(),a=xk(),i=Ek(),s=Fk();function l(u){var c=this.__data__=new r(u);this.size=c.size}m(l,"Stack"),l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,t.exports=l}),jk=L((e,t)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}m(n,"setCacheAdd"),t.exports=n}),Nk=L((e,t)=>{function r(n){return this.__data__.has(n)}m(r,"setCacheHas"),t.exports=r}),Bk=L((e,t)=>{var r=vs(),n=jk(),o=Nk();function a(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new r;++s{function r(n,o){for(var a=-1,i=n==null?0:n.length;++a{function r(n,o){return n.has(o)}m(r,"cacheHas"),t.exports=r}),Xm=L((e,t)=>{var r=Bk(),n=Lk(),o=qk(),a=1,i=2;function s(l,u,c,d,y,f){var h=c&a,g=l.length,_=u.length;if(g!=_&&!(h&&_>g))return!1;var v=f.get(l),x=f.get(u);if(v&&x)return v==u&&x==l;var O=-1,C=!0,I=c&i?new r:void 0;for(f.set(l,u),f.set(u,l);++O{var r=It(),n=r.Uint8Array;t.exports=n}),Uk=L((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}m(r,"mapToArray"),t.exports=r}),Jk=L((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}m(r,"setToArray"),t.exports=r}),$k=L((e,t)=>{var r=Ln(),n=Mk(),o=gs(),a=Xm(),i=Uk(),s=Jk(),l=1,u=2,c="[object Boolean]",d="[object Date]",y="[object Error]",f="[object Map]",h="[object Number]",g="[object RegExp]",_="[object Set]",v="[object String]",x="[object Symbol]",O="[object ArrayBuffer]",C="[object DataView]",I=r?r.prototype:void 0,P=I?I.valueOf:void 0;function F(D,U,G,X,Q,V,R){switch(G){case C:if(D.byteLength!=U.byteLength||D.byteOffset!=U.byteOffset)return!1;D=D.buffer,U=U.buffer;case O:return!(D.byteLength!=U.byteLength||!V(new n(D),new n(U)));case c:case d:case h:return o(+D,+U);case y:return D.name==U.name&&D.message==U.message;case g:case v:return D==U+"";case f:var q=i;case _:var M=X&l;if(q||(q=s),D.size!=U.size&&!M)return!1;var Y=R.get(D);if(Y)return Y==U;X|=u,R.set(D,U);var te=a(q(D),q(U),X,Q,V,R);return R.delete(D),te;case x:if(P)return P.call(D)==P.call(U)}return!1}m(F,"equalByTag"),t.exports=F}),xs=L((e,t)=>{function r(n,o){for(var a=-1,i=o.length,s=n.length;++a{var r=xs(),n=Pt();function o(a,i,s){var l=i(a);return n(a)?l:r(l,s(a))}m(o,"baseGetAllKeys"),t.exports=o}),zk=L((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,l=[];++a{function r(){return[]}m(r,"stubArray"),t.exports=r}),eg=L((e,t)=>{var r=zk(),n=Zm(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(u){return a.call(l,u)}))}:n;t.exports=s}),Vk=L((e,t)=>{var r=Qm(),n=eg(),o=ms();function a(i){return r(i,o,n)}m(a,"getAllKeys"),t.exports=a}),Hk=L((e,t)=>{var r=Vk(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,l,u,c,d,y){var f=u&n,h=r(s),g=h.length,_=r(l),v=_.length;if(g!=v&&!f)return!1;for(var x=g;x--;){var O=h[x];if(!(f?O in l:a.call(l,O)))return!1}var C=y.get(s),I=y.get(l);if(C&&I)return C==l&&I==s;var P=!0;y.set(s,l),y.set(l,s);for(var F=f;++x{var r=dr(),n=It(),o=r(n,"DataView");t.exports=o}),Wk=L((e,t)=>{var r=dr(),n=It(),o=r(n,"Promise");t.exports=o}),Kk=L((e,t)=>{var r=dr(),n=It(),o=r(n,"Set");t.exports=o}),Yk=L((e,t)=>{var r=dr(),n=It(),o=r(n,"WeakMap");t.exports=o}),Xk=L((e,t)=>{var r=Gk(),n=bs(),o=Wk(),a=Kk(),i=Yk(),s=Gr(),l=Um(),u="[object Map]",c="[object Object]",d="[object Promise]",y="[object Set]",f="[object WeakMap]",h="[object DataView]",g=l(r),_=l(n),v=l(o),x=l(a),O=l(i),C=s;(r&&C(new r(new ArrayBuffer(1)))!=h||n&&C(new n)!=u||o&&C(o.resolve())!=d||a&&C(new a)!=y||i&&C(new i)!=f)&&(C=m(function(I){var P=s(I),F=P==c?I.constructor:void 0,D=F?l(F):"";if(D)switch(D){case g:return h;case _:return u;case v:return d;case x:return y;case O:return f}return P},"getTag")),t.exports=C}),Qk=L((e,t)=>{var r=Ym(),n=Xm(),o=$k(),a=Hk(),i=Xk(),s=Pt(),l=zm(),u=Vm(),c=1,d="[object Arguments]",y="[object Array]",f="[object Object]",h=Object.prototype,g=h.hasOwnProperty;function _(v,x,O,C,I,P){var F=s(v),D=s(x),U=F?y:i(v),G=D?y:i(x);U=U==d?f:U,G=G==d?f:G;var X=U==f,Q=G==f,V=U==G;if(V&&l(v)){if(!l(x))return!1;F=!0,X=!1}if(V&&!X)return P||(P=new r),F||u(v)?n(v,x,O,C,I,P):o(v,x,U,O,C,I,P);if(!(O&c)){var R=X&&g.call(v,"__wrapped__"),q=Q&&g.call(x,"__wrapped__");if(R||q){var M=R?v.value():v,Y=q?x.value():x;return P||(P=new r),I(M,Y,O,C,P)}}return V?(P||(P=new r),a(v,x,O,C,I,P)):!1}m(_,"baseIsEqualDeep"),t.exports=_}),tg=L((e,t)=>{var r=Qk(),n=Wr();function o(a,i,s,l,u){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,l,o,u)}m(o,"baseIsEqual"),t.exports=o}),Zk=L((e,t)=>{var r=Ym(),n=tg(),o=1,a=2;function i(s,l,u,c){var d=u.length,y=d,f=!c;if(s==null)return!y;for(s=Object(s);d--;){var h=u[d];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++d{var r=qn();function n(o){return o===o&&!r(o)}m(n,"isStrictComparable"),t.exports=n}),eR=L((e,t)=>{var r=rg(),n=ms();function o(a){for(var i=n(a),s=i.length;s--;){var l=i[s],u=a[l];i[s]=[l,u,r(u)]}return i}m(o,"getMatchData"),t.exports=o}),ng=L((e,t)=>{function r(n,o){return function(a){return a==null?!1:a[n]===o&&(o!==void 0||n in Object(a))}}m(r,"matchesStrictComparable"),t.exports=r}),tR=L((e,t)=>{var r=Zk(),n=eR(),o=ng();function a(i){var s=n(i);return s.length==1&&s[0][2]?o(s[0][0],s[0][1]):function(l){return l===i||r(l,i,s)}}m(a,"baseMatches"),t.exports=a}),Es=L((e,t)=>{var r=Gr(),n=Wr(),o="[object Symbol]";function a(i){return typeof i=="symbol"||n(i)&&r(i)==o}m(a,"isSymbol"),t.exports=a}),ws=L((e,t)=>{var r=Pt(),n=Es(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function i(s,l){if(r(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||n(s)?!0:a.test(s)||!o.test(s)||l!=null&&s in Object(l)}m(i,"isKey"),t.exports=i}),rR=L((e,t)=>{var r=vs(),n="Expected a function";function o(a,i){if(typeof a!="function"||i!=null&&typeof i!="function")throw new TypeError(n);var s=m(function(){var l=arguments,u=i?i.apply(this,l):l[0],c=s.cache;if(c.has(u))return c.get(u);var d=a.apply(this,l);return s.cache=c.set(u,d)||c,d},"memoized");return s.cache=new(o.Cache||r),s}m(o,"memoize"),o.Cache=r,t.exports=o}),nR=L((e,t)=>{var r=rR(),n=500;function o(a){var i=r(a,function(l){return s.size===n&&s.clear(),l}),s=i.cache;return i}m(o,"memoizeCapped"),t.exports=o}),oR=L((e,t)=>{var r=nR(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(n,function(l,u,c,d){s.push(c?d.replace(o,"$1"):u||l)}),s});t.exports=a}),og=L((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=Array(i);++a{var r=Ln(),n=og(),o=Pt(),a=Es(),i=1/0,s=r?r.prototype:void 0,l=s?s.toString:void 0;function u(c){if(typeof c=="string")return c;if(o(c))return n(c,u)+"";if(a(c))return l?l.call(c):"";var d=c+"";return d=="0"&&1/c==-i?"-0":d}m(u,"baseToString"),t.exports=u}),iR=L((e,t)=>{var r=aR();function n(o){return o==null?"":r(o)}m(n,"toString"),t.exports=n}),ea=L((e,t)=>{var r=Pt(),n=ws(),o=oR(),a=iR();function i(s,l){return r(s)?s:n(s,l)?[s]:o(a(s))}m(i,"castPath"),t.exports=i}),Mn=L((e,t)=>{var r=Es(),n=1/0;function o(a){if(typeof a=="string"||r(a))return a;var i=a+"";return i=="0"&&1/a==-n?"-0":i}m(o,"toKey"),t.exports=o}),Ss=L((e,t)=>{var r=ea(),n=Mn();function o(a,i){i=r(i,a);for(var s=0,l=i.length;a!=null&&s{var r=Ss();function n(o,a,i){var s=o==null?void 0:r(o,a);return s===void 0?i:s}m(n,"get"),t.exports=n}),lR=L((e,t)=>{function r(n,o){return n!=null&&o in Object(n)}m(r,"baseHasIn"),t.exports=r}),uR=L((e,t)=>{var r=ea(),n=fs(),o=Pt(),a=ys(),i=hs(),s=Mn();function l(u,c,d){c=r(c,u);for(var y=-1,f=c.length,h=!1;++y{var r=lR(),n=uR();function o(a,i){return a!=null&&n(a,i,r)}m(o,"hasIn"),t.exports=o}),cR=L((e,t)=>{var r=tg(),n=sR(),o=ag(),a=ws(),i=rg(),s=ng(),l=Mn(),u=1,c=2;function d(y,f){return a(y)&&i(f)?s(l(y),f):function(h){var g=n(h,y);return g===void 0&&g===f?o(h,y):r(f,g,u|c)}}m(d,"baseMatchesProperty"),t.exports=d}),ig=L((e,t)=>{function r(n){return n}m(r,"identity"),t.exports=r}),pR=L((e,t)=>{function r(n){return function(o){return o?.[n]}}m(r,"baseProperty"),t.exports=r}),dR=L((e,t)=>{var r=Ss();function n(o){return function(a){return r(a,o)}}m(n,"basePropertyDeep"),t.exports=n}),fR=L((e,t)=>{var r=pR(),n=dR(),o=ws(),a=Mn();function i(s){return o(s)?r(a(s)):n(s)}m(i,"property"),t.exports=i}),sg=L((e,t)=>{var r=tR(),n=cR(),o=ig(),a=Pt(),i=fR();function s(l){return typeof l=="function"?l:l==null?o:typeof l=="object"?a(l)?n(l[0],l[1]):r(l):i(l)}m(s,"baseIteratee"),t.exports=s}),ta=L((e,t)=>{var r=$m(),n=dk(),o=sg();function a(i,s){var l={};return s=o(s,3),n(i,function(u,c,d){r(l,c,s(u,c,d))}),l}m(a,"mapValues"),t.exports=a}),yR=L((e,t)=>{var r=$m(),n=gs(),o=Object.prototype,a=o.hasOwnProperty;function i(s,l,u){var c=s[l];(!(a.call(s,l)&&n(c,u))||u===void 0&&!(l in s))&&r(s,l,u)}m(i,"assignValue"),t.exports=i}),hR=L((e,t)=>{var r=yR(),n=ea(),o=ys(),a=qn(),i=Mn();function s(l,u,c,d){if(!a(l))return l;u=n(u,l);for(var y=-1,f=u.length,h=f-1,g=l;g!=null&&++y{var r=Ss(),n=hR(),o=ea();function a(i,s,l){for(var u=-1,c=s.length,d={};++u{var r=lg(),n=ag();function o(a,i){return r(a,i,function(s,l){return n(a,l)})}m(o,"basePick"),t.exports=o}),gR=L((e,t)=>{var r=Ln(),n=fs(),o=Pt(),a=r?r.isConcatSpreadable:void 0;function i(s){return o(s)||n(s)||!!(a&&s&&s[a])}m(i,"isFlattenable"),t.exports=i}),bR=L((e,t)=>{var r=xs(),n=gR();function o(a,i,s,l,u){var c=-1,d=a.length;for(s||(s=n),u||(u=[]);++c0&&s(y)?i>1?o(y,i-1,s,l,u):r(u,y):l||(u[u.length]=y)}return u}m(o,"baseFlatten"),t.exports=o}),vR=L((e,t)=>{var r=bR();function n(o){var a=o==null?0:o.length;return a?r(o,1):[]}m(n,"flatten"),t.exports=n}),xR=L((e,t)=>{function r(n,o,a){switch(a.length){case 0:return n.call(o);case 1:return n.call(o,a[0]);case 2:return n.call(o,a[0],a[1]);case 3:return n.call(o,a[0],a[1],a[2])}return n.apply(o,a)}m(r,"apply"),t.exports=r}),ER=L((e,t)=>{var r=xR(),n=Math.max;function o(a,i,s){return i=n(i===void 0?a.length-1:i,0),function(){for(var l=arguments,u=-1,c=n(l.length-i,0),d=Array(c);++u{function r(n){return function(){return n}}m(r,"constant"),t.exports=r}),SR=L((e,t)=>{var r=wR(),n=Jm(),o=ig(),a=n?function(i,s){return n(i,"toString",{configurable:!0,enumerable:!1,value:r(s),writable:!0})}:o;t.exports=a}),AR=L((e,t)=>{var r=800,n=16,o=Date.now;function a(i){var s=0,l=0;return function(){var u=o(),c=n-(u-l);if(l=u,c>0){if(++s>=r)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}m(a,"shortOut"),t.exports=a}),TR=L((e,t)=>{var r=SR(),n=AR(),o=n(r);t.exports=o}),CR=L((e,t)=>{var r=vR(),n=ER(),o=TR();function a(i){return o(n(i,void 0,r),i+"")}m(a,"flatRest"),t.exports=a}),_R=L((e,t)=>{var r=mR(),n=CR(),o=n(function(a,i){return a==null?{}:r(a,i)});t.exports=o}),ug=L((e,t)=>{var r=Wm(),n=r(Object.getPrototypeOf,Object);t.exports=n}),As=L((e,t)=>{var r=Gr(),n=ug(),o=Wr(),a="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,u=s.hasOwnProperty,c=l.call(Object);function d(y){if(!o(y)||r(y)!=a)return!1;var f=n(y);if(f===null)return!0;var h=u.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}m(d,"isPlainObject"),t.exports=d}),OR=L((e,t)=>{var r=xs(),n=ug(),o=eg(),a=Zm(),i=Object.getOwnPropertySymbols,s=i?function(l){for(var u=[];l;)r(u,o(l)),l=n(l);return u}:a;t.exports=s}),IR=L((e,t)=>{function r(n){var o=[];if(n!=null)for(var a in Object(n))o.push(a);return o}m(r,"nativeKeysIn"),t.exports=r}),PR=L((e,t)=>{var r=qn(),n=Gm(),o=IR(),a=Object.prototype,i=a.hasOwnProperty;function s(l){if(!r(l))return o(l);var u=n(l),c=[];for(var d in l)d=="constructor"&&(u||!i.call(l,d))||c.push(d);return c}m(s,"baseKeysIn"),t.exports=s}),kR=L((e,t)=>{var r=Hm(),n=PR(),o=Km();function a(i){return o(i)?r(i,!0):n(i)}m(a,"keysIn"),t.exports=a}),RR=L((e,t)=>{var r=Qm(),n=OR(),o=kR();function a(i){return r(i,o,n)}m(a,"getAllKeysIn"),t.exports=a}),DR=L((e,t)=>{var r=og(),n=sg(),o=lg(),a=RR();function i(s,l){if(s==null)return{};var u=r(a(s),function(c){return[c]});return l=n(l),o(s,u,function(c,d){return l(c,d[0])})}m(i,"pickBy"),t.exports=i}),FR=L((e,t)=>{"use strict";t.exports=Error}),jR=L((e,t)=>{"use strict";t.exports=EvalError}),NR=L((e,t)=>{"use strict";t.exports=RangeError}),BR=L((e,t)=>{"use strict";t.exports=ReferenceError}),cg=L((e,t)=>{"use strict";t.exports=SyntaxError}),Un=L((e,t)=>{"use strict";t.exports=TypeError}),LR=L((e,t)=>{"use strict";t.exports=URIError}),qR=L((e,t)=>{"use strict";t.exports=m(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},"hasSymbols")}),MR=L((e,t)=>{"use strict";var r=typeof Symbol<"u"&&Symbol,n=qR();t.exports=m(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}),UR=L((e,t)=>{"use strict";var r={__proto__:null,foo:{}},n=Object;t.exports=m(function(){return{__proto__:r}.foo===r.foo&&!(r instanceof n)},"hasProto")}),JR=L((e,t)=>{"use strict";var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=m(function(u,c){for(var d=[],y=0;y{"use strict";var r=JR();t.exports=Function.prototype.bind||r}),$R=L((e,t)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Ts();t.exports=o.call(r,n)}),Kr=L((e,t)=>{"use strict";var r,n=FR(),o=jR(),a=NR(),i=BR(),s=cg(),l=Un(),u=LR(),c=Function,d=m(function(ne){try{return c('"use strict"; return ('+ne+").constructor;")()}catch{}},"getEvalledConstructor"),y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch{y=null}var f=m(function(){throw new l},"throwTypeError"),h=y?function(){try{return arguments.callee,f}catch{try{return y(arguments,"callee").get}catch{return f}}}():f,g=MR()(),_=UR()(),v=Object.getPrototypeOf||(_?function(ne){return ne.__proto__}:null),x={},O=typeof Uint8Array>"u"||!v?r:v(Uint8Array),C={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g||!v?r:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g||!v?r:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":h,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(v)try{null.error}catch(ne){I=v(v(ne)),C["%Error.prototype%"]=I}var I,P=m(function ne(re){var Z;if(re==="%AsyncFunction%")Z=d("async function () {}");else if(re==="%GeneratorFunction%")Z=d("function* () {}");else if(re==="%AsyncGeneratorFunction%")Z=d("async function* () {}");else if(re==="%AsyncGenerator%"){var ae=ne("%AsyncGeneratorFunction%");ae&&(Z=ae.prototype)}else if(re==="%AsyncIteratorPrototype%"){var le=ne("%AsyncGenerator%");le&&v&&(Z=v(le.prototype))}return C[re]=Z,Z},"doEval"),F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=Ts(),U=$R(),G=D.call(Function.call,Array.prototype.concat),X=D.call(Function.apply,Array.prototype.splice),Q=D.call(Function.call,String.prototype.replace),V=D.call(Function.call,String.prototype.slice),R=D.call(Function.call,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,Y=m(function(ne){var re=V(ne,0,1),Z=V(ne,-1);if(re==="%"&&Z!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&re!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ae=[];return Q(ne,q,function(le,Ee,pe,we){ae[ae.length]=pe?Q(we,M,"$1"):Ee||le}),ae},"stringToPath"),te=m(function(ne,re){var Z=ne,ae;if(U(F,Z)&&(ae=F[Z],Z="%"+ae[0]+"%"),U(C,Z)){var le=C[Z];if(le===x&&(le=P(Z)),typeof le>"u"&&!re)throw new l("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:ae,name:Z,value:le}}throw new s("intrinsic "+ne+" does not exist!")},"getBaseIntrinsic");t.exports=m(function(ne,re){if(typeof ne!="string"||ne.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new l('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,ne)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Z=Y(ne),ae=Z.length>0?Z[0]:"",le=te("%"+ae+"%",re),Ee=le.name,pe=le.value,we=!1,Le=le.alias;Le&&(ae=Le[0],X(Z,G([0,1],Le)));for(var Ve=1,Ye=!0;Ve=Z.length){var Re=y(pe,fe);Ye=!!Re,Ye&&"get"in Re&&!("originalValue"in Re.get)?pe=Re.get:pe=pe[fe]}else Ye=U(pe,fe),pe=pe[fe];Ye&&!we&&(C[Ee]=pe)}}return pe},"GetIntrinsic")}),Cs=L((e,t)=>{"use strict";var r=Kr(),n=r("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}t.exports=n}),pg=L((e,t)=>{"use strict";var r=Kr(),n=r("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch{n=null}t.exports=n}),zR=L((e,t)=>{"use strict";var r=Cs(),n=cg(),o=Un(),a=pg();t.exports=m(function(i,s,l){if(!i||typeof i!="object"&&typeof i!="function")throw new o("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,f=!!a&&a(i,s);if(r)r(i,s,{configurable:d===null&&f?f.configurable:!d,enumerable:u===null&&f?f.enumerable:!u,value:l,writable:c===null&&f?f.writable:!c});else if(y||!u&&!c&&!d)i[s]=l;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty")}),VR=L((e,t)=>{"use strict";var r=Cs(),n=m(function(){return!!r},"hasPropertyDescriptors");n.hasArrayLengthDefineBug=m(function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),t.exports=n}),HR=L((e,t)=>{"use strict";var r=Kr(),n=zR(),o=VR()(),a=pg(),i=Un(),s=r("%Math.floor%");t.exports=m(function(l,u){if(typeof l!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||s(u)!==u)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],d=!0,y=!0;if("length"in l&&a){var f=a(l,"length");f&&!f.configurable&&(d=!1),f&&!f.writable&&(y=!1)}return(d||y||!c)&&(o?n(l,"length",u,!0,!0):n(l,"length",u)),l},"setFunctionLength")}),GR=L((e,t)=>{"use strict";var r=Ts(),n=Kr(),o=HR(),a=Un(),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||r.call(s,i),u=Cs(),c=n("%Math.max%");t.exports=m(function(y){if(typeof y!="function")throw new a("a function is required");var f=l(r,s,arguments);return o(f,1+c(0,y.length-(arguments.length-1)),!0)},"callBind");var d=m(function(){return l(r,i,arguments)},"applyBind");u?u(t.exports,"apply",{value:d}):t.exports.apply=d}),WR=L((e,t)=>{"use strict";var r=Kr(),n=GR(),o=n(r("String.prototype.indexOf"));t.exports=m(function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s},"callBoundIntrinsic")}),KR=L(()=>{}),YR=L((e,t)=>{var r=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&typeof n.get=="function"?n.get:null,a=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&s&&typeof s.get=="function"?s.get:null,u=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,d=c?WeakMap.prototype.has:null,y=typeof WeakSet=="function"&&WeakSet.prototype,f=y?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,g=h?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,v=Object.prototype.toString,x=Function.prototype.toString,O=String.prototype.match,C=String.prototype.slice,I=String.prototype.replace,P=String.prototype.toUpperCase,F=String.prototype.toLowerCase,D=RegExp.prototype.test,U=Array.prototype.concat,G=Array.prototype.join,X=Array.prototype.slice,Q=Math.floor,V=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,M=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Y=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||!0)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,ne=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($){return $.__proto__}:null);function re($,H){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||D.call(/e/,H))return H;var ue=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var de=$<0?-Q(-$):Q($);if(de!==$){var Ae=String(de),se=C.call(H,Ae.length+1);return I.call(Ae,ue,"$&_")+"."+I.call(I.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return I.call(H,ue,"$&_")}m(re,"addNumericSeparator");var Z=KR(),ae=Z.custom,le=Re(ae)?ae:null;t.exports=m(function $(H,ue,de,Ae){var se=ue||{};if(ce(se,"quoteStyle")&&se.quoteStyle!=="single"&&se.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ce(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ot=ce(se,"customInspect")?se.customInspect:!0;if(typeof ot!="boolean"&&ot!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ce(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ce(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var yt=se.numericSeparator;if(typeof H>"u")return"undefined";if(H===null)return"null";if(typeof H=="boolean")return H?"true":"false";if(typeof H=="string")return xr(H,se);if(typeof H=="number"){if(H===0)return 1/0/H>0?"0":"-0";var ke=String(H);return yt?re(H,ke):ke}if(typeof H=="bigint"){var xe=String(H)+"n";return yt?re(H,xe):xe}var er=typeof se.depth>"u"?5:se.depth;if(typeof de>"u"&&(de=0),de>=er&&er>0&&typeof H=="object")return we(H)?"[Array]":"[Object]";var at=no(se,de);if(typeof Ae>"u")Ae=[];else if(ft(Ae,H)>=0)return"[Circular]";function Ce(p,w,k){if(w&&(Ae=X.call(Ae),Ae.push(w)),k){var z={depth:se.depth};return ce(se,"quoteStyle")&&(z.quoteStyle=se.quoteStyle),$(p,z,de+1,Ae)}return $(p,se,de+1,Ae)}if(m(Ce,"inspect"),typeof H=="function"&&!Ve(H)){var Sr=Ft(H),oo=Zt(H,Ce);return"[Function"+(Sr?": "+Sr:" (anonymous)")+"]"+(oo.length>0?" { "+G.call(oo,", ")+" }":"")}if(Re(H)){var cn=M?I.call(String(H),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(H);return typeof H=="object"&&!M?St(cn):cn}if(Qt(H)){for(var tr="<"+F.call(String(H.nodeName)),nt=H.attributes||[],Ar=0;Ar",tr}if(we(H)){if(H.length===0)return"[]";var Tr=Zt(H,Ce);return at&&!un(Tr)?"["+wr(Tr,at)+"]":"[ "+G.call(Tr,", ")+" ]"}if(Ye(H)){var it=Zt(H,Ce);return!("cause"in Error.prototype)&&"cause"in H&&!te.call(H,"cause")?"{ ["+String(H)+"] "+G.call(U.call("[cause]: "+Ce(H.cause),it),", ")+" }":it.length===0?"["+String(H)+"]":"{ ["+String(H)+"] "+G.call(it,", ")+" }"}if(typeof H=="object"&&ot){if(le&&typeof H[le]=="function"&&Z)return Z(H,{depth:er-de});if(ot!=="symbol"&&typeof H.inspect=="function")return H.inspect()}if(wt(H)){var pn=[];return a&&a.call(H,function(p,w){pn.push(Ce(w,H,!0)+" => "+Ce(p,H))}),ln("Map",o.call(H),pn,at)}if(Yt(H)){var rr=[];return u&&u.call(H,function(p){rr.push(Ce(p,H))}),ln("Set",l.call(H),rr,at)}if(an(H))return Er("WeakMap");if(Xt(H))return Er("WeakSet");if(sn(H))return Er("WeakRef");if(Ie(H))return St(Ce(Number(H)));if(Ze(H))return St(Ce(V.call(H)));if(ye(H))return St(_.call(H));if(fe(H))return St(Ce(String(H)));if(typeof window<"u"&&H===window)return"{ [object Window] }";if(H===window)return"{ [object globalThis] }";if(!Le(H)&&!Ve(H)){var dn=Zt(H,Ce),fn=ne?ne(H)===Object.prototype:H instanceof Object||H.constructor===Object,Cr=H instanceof Object?"":"null prototype",yn=!fn&&Y&&Object(H)===H&&Y in H?C.call(Se(H),8,-1):Cr?"Object":"",_r=fn||typeof H.constructor!="function"?"":H.constructor.name?H.constructor.name+" ":"",Or=_r+(yn||Cr?"["+G.call(U.call([],yn||[],Cr||[]),": ")+"] ":"");return dn.length===0?Or+"{}":at?Or+"{"+wr(dn,at)+"}":Or+"{ "+G.call(dn,", ")+" }"}return String(H)},"inspect_");function Ee($,H,ue){var de=(ue.quoteStyle||H)==="double"?'"':"'";return de+$+de}m(Ee,"wrapQuotes");function pe($){return I.call(String($),/"/g,""")}m(pe,"quote");function we($){return Se($)==="[object Array]"&&(!Y||!(typeof $=="object"&&Y in $))}m(we,"isArray");function Le($){return Se($)==="[object Date]"&&(!Y||!(typeof $=="object"&&Y in $))}m(Le,"isDate");function Ve($){return Se($)==="[object RegExp]"&&(!Y||!(typeof $=="object"&&Y in $))}m(Ve,"isRegExp");function Ye($){return Se($)==="[object Error]"&&(!Y||!(typeof $=="object"&&Y in $))}m(Ye,"isError");function fe($){return Se($)==="[object String]"&&(!Y||!(typeof $=="object"&&Y in $))}m(fe,"isString");function Ie($){return Se($)==="[object Number]"&&(!Y||!(typeof $=="object"&&Y in $))}m(Ie,"isNumber");function ye($){return Se($)==="[object Boolean]"&&(!Y||!(typeof $=="object"&&Y in $))}m(ye,"isBoolean");function Re($){if(M)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!q)return!1;try{return q.call($),!0}catch{}return!1}m(Re,"isSymbol");function Ze($){if(!$||typeof $!="object"||!V)return!1;try{return V.call($),!0}catch{}return!1}m(Ze,"isBigInt");var qe=Object.prototype.hasOwnProperty||function($){return $ in this};function ce($,H){return qe.call($,H)}m(ce,"has");function Se($){return v.call($)}m(Se,"toStr");function Ft($){if($.name)return $.name;var H=O.call(x.call($),/^function\s*([\w$]+)/);return H?H[1]:null}m(Ft,"nameOf");function ft($,H){if($.indexOf)return $.indexOf(H);for(var ue=0,de=$.length;ueH.maxStringLength){var ue=$.length-H.maxStringLength,de="... "+ue+" more character"+(ue>1?"s":"");return xr(C.call($,0,H.maxStringLength),H)+de}var Ae=I.call(I.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ro);return Ee(Ae,"single",H)}m(xr,"inspectString");function ro($){var H=$.charCodeAt(0),ue={8:"b",9:"t",10:"n",12:"f",13:"r"}[H];return ue?"\\"+ue:"\\x"+(H<16?"0":"")+P.call(H.toString(16))}m(ro,"lowbyte");function St($){return"Object("+$+")"}m(St,"markBoxed");function Er($){return $+" { ? }"}m(Er,"weakCollectionOf");function ln($,H,ue,de){var Ae=de?wr(ue,de):G.call(ue,", ");return $+" ("+H+") {"+Ae+"}"}m(ln,"collectionOf");function un($){for(var H=0;H<$.length;H++)if(ft($[H],` +`)>=0)return!1;return!0}m(un,"singleLineValues");function no($,H){var ue;if($.indent===" ")ue=" ";else if(typeof $.indent=="number"&&$.indent>0)ue=G.call(Array($.indent+1)," ");else return null;return{base:ue,prev:G.call(Array(H+1),ue)}}m(no,"getIndent");function wr($,H){if($.length===0)return"";var ue=` +`+H.prev+H.base;return ue+G.call($,","+ue)+` +`+H.prev}m(wr,"indentedJoin");function Zt($,H){var ue=we($),de=[];if(ue){de.length=$.length;for(var Ae=0;Ae<$.length;Ae++)de[Ae]=ce($,Ae)?H($[Ae],$):""}var se=typeof R=="function"?R($):[],ot;if(M){ot={};for(var yt=0;yt{"use strict";var r=Kr(),n=WR(),o=YR(),a=Un(),i=r("%WeakMap%",!0),s=r("%Map%",!0),l=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),h=m(function(x,O){for(var C=x,I;(I=C.next)!==null;C=I)if(I.key===O)return C.next=I.next,I.next=x.next,x.next=I,I},"listGetNode"),g=m(function(x,O){var C=h(x,O);return C&&C.value},"listGet"),_=m(function(x,O,C){var I=h(x,O);I?I.value=C:x.next={key:O,next:x.next,value:C}},"listSet"),v=m(function(x,O){return!!h(x,O)},"listHas");t.exports=m(function(){var x,O,C,I={assert:m(function(P){if(!I.has(P))throw new a("Side channel does not contain "+o(P))},"assert"),get:m(function(P){if(i&&P&&(typeof P=="object"||typeof P=="function")){if(x)return l(x,P)}else if(s){if(O)return d(O,P)}else if(C)return g(C,P)},"get"),has:m(function(P){if(i&&P&&(typeof P=="object"||typeof P=="function")){if(x)return c(x,P)}else if(s){if(O)return f(O,P)}else if(C)return v(C,P);return!1},"has"),set:m(function(P,F){i&&P&&(typeof P=="object"||typeof P=="function")?(x||(x=new i),u(x,P,F)):s?(O||(O=new s),y(O,P,F)):(C||(C={key:{},next:null}),_(C,P,F))},"set")};return I},"getSideChannel")}),_s=L((e,t)=>{"use strict";var r=String.prototype.replace,n=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:o.RFC3986,formatters:{RFC1738:m(function(a){return r.call(a,n,"+")},"RFC1738"),RFC3986:m(function(a){return String(a)},"RFC3986")},RFC1738:o.RFC1738,RFC3986:o.RFC3986}}),dg=L((e,t)=>{"use strict";var r=_s(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var x=[],O=0;O<256;++O)x.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return x}(),i=m(function(x){for(;x.length>1;){var O=x.pop(),C=O.obj[O.prop];if(o(C)){for(var I=[],P=0;P=d?F.slice(U,U+d):F,X=[],Q=0;Q=48&&V<=57||V>=65&&V<=90||V>=97&&V<=122||P===r.RFC1738&&(V===40||V===41)){X[X.length]=G.charAt(Q);continue}if(V<128){X[X.length]=a[V];continue}if(V<2048){X[X.length]=a[192|V>>6]+a[128|V&63];continue}if(V<55296||V>=57344){X[X.length]=a[224|V>>12]+a[128|V>>6&63]+a[128|V&63];continue}Q+=1,V=65536+((V&1023)<<10|G.charCodeAt(Q)&1023),X[X.length]=a[240|V>>18]+a[128|V>>12&63]+a[128|V>>6&63]+a[128|V&63]}D+=X.join("")}return D},"encode"),f=m(function(x){for(var O=[{obj:{o:x},prop:"o"}],C=[],I=0;I{"use strict";var r=XR(),n=dg(),o=_s(),a=Object.prototype.hasOwnProperty,i={brackets:m(function(v){return v+"[]"},"brackets"),comma:"comma",indices:m(function(v,x){return v+"["+x+"]"},"indices"),repeat:m(function(v){return v},"repeat")},s=Array.isArray,l=Array.prototype.push,u=m(function(v,x){l.apply(v,s(x)?x:[x])},"pushToArray"),c=Date.prototype.toISOString,d=o.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:m(function(v){return c.call(v)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},f=m(function(v){return typeof v=="string"||typeof v=="number"||typeof v=="boolean"||typeof v=="symbol"||typeof v=="bigint"},"isNonNullishPrimitive"),h={},g=m(function v(x,O,C,I,P,F,D,U,G,X,Q,V,R,q,M,Y,te,ne){for(var re=x,Z=ne,ae=0,le=!1;(Z=Z.get(h))!==void 0&&!le;){var Ee=Z.get(x);if(ae+=1,typeof Ee<"u"){if(Ee===ae)throw new RangeError("Cyclic object value");le=!0}typeof Z.get(h)>"u"&&(ae=0)}if(typeof X=="function"?re=X(O,re):re instanceof Date?re=R(re):C==="comma"&&s(re)&&(re=n.maybeMap(re,function(Se){return Se instanceof Date?R(Se):Se})),re===null){if(F)return G&&!Y?G(O,y.encoder,te,"key",q):O;re=""}if(f(re)||n.isBuffer(re)){if(G){var pe=Y?O:G(O,y.encoder,te,"key",q);return[M(pe)+"="+M(G(re,y.encoder,te,"value",q))]}return[M(O)+"="+M(String(re))]}var we=[];if(typeof re>"u")return we;var Le;if(C==="comma"&&s(re))Y&&G&&(re=n.maybeMap(re,G)),Le=[{value:re.length>0?re.join(",")||null:void 0}];else if(s(X))Le=X;else{var Ve=Object.keys(re);Le=Q?Ve.sort(Q):Ve}var Ye=U?O.replace(/\./g,"%2E"):O,fe=I&&s(re)&&re.length===1?Ye+"[]":Ye;if(P&&s(re)&&re.length===0)return fe+"[]";for(var Ie=0;Ie"u"?v.encodeDotInKeys===!0?!0:y.allowDots:!!v.allowDots;return{addQueryPrefix:typeof v.addQueryPrefix=="boolean"?v.addQueryPrefix:y.addQueryPrefix,allowDots:F,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:P,charset:x,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:y.charsetSentinel,commaRoundTrip:v.commaRoundTrip,delimiter:typeof v.delimiter>"u"?y.delimiter:v.delimiter,encode:typeof v.encode=="boolean"?v.encode:y.encode,encodeDotInKeys:typeof v.encodeDotInKeys=="boolean"?v.encodeDotInKeys:y.encodeDotInKeys,encoder:typeof v.encoder=="function"?v.encoder:y.encoder,encodeValuesOnly:typeof v.encodeValuesOnly=="boolean"?v.encodeValuesOnly:y.encodeValuesOnly,filter:I,format:O,formatter:C,serializeDate:typeof v.serializeDate=="function"?v.serializeDate:y.serializeDate,skipNulls:typeof v.skipNulls=="boolean"?v.skipNulls:y.skipNulls,sort:typeof v.sort=="function"?v.sort:null,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:y.strictNullHandling}},"normalizeStringifyOptions");t.exports=function(v,x){var O=v,C=_(x),I,P;typeof C.filter=="function"?(P=C.filter,O=P("",O)):s(C.filter)&&(P=C.filter,I=P);var F=[];if(typeof O!="object"||O===null)return"";var D=i[C.arrayFormat],U=D==="comma"&&C.commaRoundTrip;I||(I=Object.keys(O)),C.sort&&I.sort(C.sort);for(var G=r(),X=0;X0?R+V:""}}),ZR=L((e,t)=>{"use strict";var r=dg(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=m(function(h){return h.replace(/&#(\d+);/g,function(g,_){return String.fromCharCode(parseInt(_,10))})},"interpretNumericEntities"),s=m(function(h,g){return h&&typeof h=="string"&&g.comma&&h.indexOf(",")>-1?h.split(","):h},"parseArrayValue"),l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=m(function(h,g){var _={__proto__:null},v=g.ignoreQueryPrefix?h.replace(/^\?/,""):h;v=v.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var x=g.parameterLimit===1/0?void 0:g.parameterLimit,O=v.split(g.delimiter,x),C=-1,I,P=g.charset;if(g.charsetSentinel)for(I=0;I-1&&(X=o(X)?[X]:X);var Q=n.call(_,G);Q&&g.duplicates==="combine"?_[G]=r.combine(_[G],X):(!Q||g.duplicates==="last")&&(_[G]=X)}return _},"parseQueryStringValues"),d=m(function(h,g,_,v){for(var x=v?g:s(g,_),O=h.length-1;O>=0;--O){var C,I=h[O];if(I==="[]"&&_.parseArrays)C=_.allowEmptyArrays&&(x===""||_.strictNullHandling&&x===null)?[]:[].concat(x);else{C=_.plainObjects?Object.create(null):{};var P=I.charAt(0)==="["&&I.charAt(I.length-1)==="]"?I.slice(1,-1):I,F=_.decodeDotInKeys?P.replace(/%2E/g,"."):P,D=parseInt(F,10);!_.parseArrays&&F===""?C={0:x}:!isNaN(D)&&I!==F&&String(D)===F&&D>=0&&_.parseArrays&&D<=_.arrayLimit?(C=[],C[D]=x):F!=="__proto__"&&(C[F]=x)}x=C}return x},"parseObject"),y=m(function(h,g,_,v){if(h){var x=_.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,O=/(\[[^[\]]*])/,C=/(\[[^[\]]*])/g,I=_.depth>0&&O.exec(x),P=I?x.slice(0,I.index):x,F=[];if(P){if(!_.plainObjects&&n.call(Object.prototype,P)&&!_.allowPrototypes)return;F.push(P)}for(var D=0;_.depth>0&&(I=C.exec(x))!==null&&D<_.depth;){if(D+=1,!_.plainObjects&&n.call(Object.prototype,I[1].slice(1,-1))&&!_.allowPrototypes)return;F.push(I[1])}return I&&F.push("["+x.slice(I.index)+"]"),d(F,g,_,v)}},"parseQueryStringKeys"),f=m(function(h){if(!h)return a;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var g=typeof h.charset>"u"?a.charset:h.charset,_=typeof h.duplicates>"u"?a.duplicates:h.duplicates;if(_!=="combine"&&_!=="first"&&_!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var v=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:a.allowDots:!!h.allowDots;return{allowDots:v,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:a.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:a.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:a.arrayLimit,charset:g,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:a.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:a.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:a.decoder,delimiter:typeof h.delimiter=="string"||r.isRegExp(h.delimiter)?h.delimiter:a.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:a.depth,duplicates:_,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:a.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:a.plainObjects,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:a.strictNullHandling}},"normalizeParseOptions");t.exports=function(h,g){var _=f(g);if(h===""||h===null||typeof h>"u")return _.plainObjects?Object.create(null):{};for(var v=typeof h=="string"?c(h,_):h,x=_.plainObjects?Object.create(null):{},O=Object.keys(v),C=0;C{"use strict";var r=QR(),n=ZR(),o=_s();t.exports={formats:o,parse:n,stringify:r}}),fg=L((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),e5=L((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),yg=L((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),t5=L((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),r5=L(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(t5()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}m(o,"decodeCodePoint"),e.default=o}),wm=L(e=>{"use strict";var t=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(fg()),n=t(e5()),o=t(yg()),a=t(r5()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(c){var d=u(c);return function(y){return String(y).replace(i,d)}}m(s,"getStrictDecoder");var l=m(function(c,d){return c{"use strict";var t=e&&e.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(yg()),n=l(r.default),o=u(n);e.encodeXML=v(n);var a=t(fg()),i=l(a.default),s=u(i);e.encodeHTML=f(i,s),e.encodeNonAsciiHTML=v(i);function l(x){return Object.keys(x).sort().reduce(function(O,C){return O[x[C]]="&"+C+";",O},{})}m(l,"getInverseObj");function u(x){for(var O=[],C=[],I=0,P=Object.keys(x);I1?d(x):x.charCodeAt(0)).toString(16).toUpperCase()+";"}m(y,"singleCharReplacer");function f(x,O){return function(C){return C.replace(O,function(I){return x[I]}).replace(c,y)}}m(f,"getInverse");var h=new RegExp(o.source+"|"+c.source,"g");function g(x){return x.replace(h,y)}m(g,"escape"),e.escape=g;function _(x){return x.replace(o,y)}m(_,"escapeUTF8"),e.escapeUTF8=_;function v(x){return function(O){return O.replace(h,function(C){return x[C]||y(C)})}}m(v,"getASCIIEncoder")}),n5=L(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=wm(),r=Sm();function n(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}m(n,"decode"),e.decode=n;function o(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}m(o,"decodeStrict"),e.decodeStrict=o;function a(l,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(l)}m(a,"encode"),e.encode=a;var i=Sm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:m(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:m(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:m(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:m(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:m(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:m(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:m(function(){return i.encodeHTML},"get")});var s=wm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:m(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:m(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:m(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:m(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:m(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:m(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:m(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:m(function(){return s.decodeXML},"get")})}),o5=L((e,t)=>{"use strict";function r(R,q){if(!(R instanceof q))throw new TypeError("Cannot call a class as a function")}m(r,"_classCallCheck");function n(R,q){for(var M=0;M=R.length?{done:!0}:{done:!1,value:R[Y++]}},"n"),e:m(function(ae){throw ae},"e"),f:te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne=!0,re=!1,Z;return{s:m(function(){M=M.call(R)},"s"),n:m(function(){var ae=M.next();return ne=ae.done,ae},"n"),e:m(function(ae){re=!0,Z=ae},"e"),f:m(function(){try{!ne&&M.return!=null&&M.return()}finally{if(re)throw Z}},"f")}}m(a,"_createForOfIteratorHelper");function i(R,q){if(R){if(typeof R=="string")return s(R,q);var M=Object.prototype.toString.call(R).slice(8,-1);if(M==="Object"&&R.constructor&&(M=R.constructor.name),M==="Map"||M==="Set")return Array.from(R);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return s(R,q)}}m(i,"_unsupportedIterableToArray");function s(R,q){(q==null||q>R.length)&&(q=R.length);for(var M=0,Y=new Array(q);M0?R*40+55:0,re=q>0?q*40+55:0,Z=M>0?M*40+55:0;Y[te]=f([ne,re,Z])}m(d,"setStyleColor");function y(R){for(var q=R.toString(16);q.length<2;)q="0"+q;return q}m(y,"toHexString");function f(R){var q=[],M=a(R),Y;try{for(M.s();!(Y=M.n()).done;){var te=Y.value;q.push(y(te))}}catch(ne){M.e(ne)}finally{M.f()}return"#"+q.join("")}m(f,"toColorHexString");function h(R,q,M,Y){var te;return q==="text"?te=I(M,Y):q==="display"?te=_(R,M,Y):q==="xterm256Foreground"?te=D(R,Y.colors[M]):q==="xterm256Background"?te=U(R,Y.colors[M]):q==="rgb"&&(te=g(R,M)),te}m(h,"generateOutput");function g(R,q){q=q.substring(2).slice(0,-1);var M=+q.substr(0,2),Y=q.substring(5).split(";"),te=Y.map(function(ne){return("0"+Number(ne).toString(16)).substr(-2)}).join("");return F(R,(M===38?"color:#":"background-color:#")+te)}m(g,"handleRgb");function _(R,q,M){q=parseInt(q,10);var Y={"-1":m(function(){return"
"},"_"),0:m(function(){return R.length&&v(R)},"_"),1:m(function(){return P(R,"b")},"_"),3:m(function(){return P(R,"i")},"_"),4:m(function(){return P(R,"u")},"_"),8:m(function(){return F(R,"display:none")},"_"),9:m(function(){return P(R,"strike")},"_"),22:m(function(){return F(R,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:m(function(){return G(R,"i")},"_"),24:m(function(){return G(R,"u")},"_"),39:m(function(){return D(R,M.fg)},"_"),49:m(function(){return U(R,M.bg)},"_"),53:m(function(){return F(R,"text-decoration:overline")},"_")},te;return Y[q]?te=Y[q]():4"}).join("")}m(v,"resetStyles");function x(R,q){for(var M=[],Y=R;Y<=q;Y++)M.push(Y);return M}m(x,"range");function O(R){return function(q){return(R===null||q.category!==R)&&R!=="all"}}m(O,"notCategory");function C(R){R=parseInt(R,10);var q=null;return R===0?q="all":R===1?q="bold":2")}m(P,"pushTag");function F(R,q){return P(R,"span",q)}m(F,"pushStyle");function D(R,q){return P(R,"span","color:"+q)}m(D,"pushForegroundColor");function U(R,q){return P(R,"span","background-color:"+q)}m(U,"pushBackgroundColor");function G(R,q){var M;if(R.slice(-1)[0]===q&&(M=R.pop()),M)return""}m(G,"closeTag");function X(R,q,M){var Y=!1,te=3;function ne(){return""}m(ne,"remove");function re(qe,ce){return M("xterm256Foreground",ce),""}m(re,"removeXterm256Foreground");function Z(qe,ce){return M("xterm256Background",ce),""}m(Z,"removeXterm256Background");function ae(qe){return q.newline?M("display",-1):M("text",qe),""}m(ae,"newline");function le(qe,ce){Y=!0,ce.trim().length===0&&(ce="0"),ce=ce.trimRight(";").split(";");var Se=a(ce),Ft;try{for(Se.s();!(Ft=Se.n()).done;){var ft=Ft.value;M("display",ft)}}catch(wt){Se.e(wt)}finally{Se.f()}return""}m(le,"ansiMess");function Ee(qe){return M("text",qe),""}m(Ee,"realText");function pe(qe){return M("rgb",qe),""}m(pe,"rgb");var we=[{pattern:/^\x08+/,sub:ne},{pattern:/^\x1b\[[012]?K/,sub:ne},{pattern:/^\x1b\[\(B/,sub:ne},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:pe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:Z},{pattern:/^\n/,sub:ae},{pattern:/^\r+\n/,sub:ae},{pattern:/^\r/,sub:ae},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:le},{pattern:/^\x1b\[\d?J/,sub:ne},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ne},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ne},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function Le(qe,ce){ce>te&&Y||(Y=!1,R=R.replace(qe.pattern,qe.sub))}m(Le,"process");var Ve=[],Ye=R,fe=Ye.length;e:for(;fe>0;){for(var Ie=0,ye=0,Re=we.length;ye{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();function hg(){let e={setHandler:m(()=>{},"setHandler"),send:m(()=>{},"send")};return new qh({transport:e})}m(hg,"mockChannel");var mg=class{constructor(){this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}channel;promise;resolve;getChannel=m(()=>{if(!this.channel){let t=hg();return this.setChannel(t),t}return this.channel},"getChannel");ready=m(()=>this.promise,"ready");hasChannel=m(()=>!!this.channel,"hasChannel");setChannel=m(t=>{this.channel=t,this.resolve()},"setChannel")};m(mg,"AddonStore");var a5=mg,Hi="__STORYBOOK_ADDONS_PREVIEW";function gg(){return Ue[Hi]||(Ue[Hi]=new a5),Ue[Hi]}m(gg,"getAddonsStore");var pr=gg(),bg=class{hookListsMap=void 0;mountedDecorators=void 0;prevMountedDecorators=void 0;currentHooks=void 0;nextHookIndex=void 0;currentPhase=void 0;currentEffects=void 0;prevEffects=void 0;currentDecoratorName=void 0;hasUpdates=void 0;currentContext=void 0;renderListener=m(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener");constructor(){this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),pr.getChannel().on(xn,this.renderListener)}removeRenderListeners(){pr.getChannel().removeListener(xn,this.renderListener)}};m(bg,"HooksContext");var vg=bg;function Zi(e){let t=m((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let l=Ue.STORYBOOK_HOOKS_CONTEXT;Ue.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(Ue.STORYBOOK_HOOKS_CONTEXT=l,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,u},"hookified");return t.originalFn=e,t}m(Zi,"hookify");var Gi=0,i5=25,s5=m(e=>(t,r)=>{let n=e(Zi(t),r.map(o=>Zi(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(Gi=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),Gi+=1,Gi>i5)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),l5=m((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Is=m(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Ps(){return Ue.STORYBOOK_HOOKS_CONTEXT||null}m(Ps,"getHooksContextOrNull");function ra(){let e=Ps();if(e==null)throw Is();return e}m(ra,"getHooksContextOrThrow");function xg(e,t,r){let n=ra();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&me.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&me.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&me.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&me.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant. +Previous: ${o.deps} +Incoming: ${r}`),(r==null||o.deps==null||!l5(r,o.deps))&&(t(o),o.deps=r),o}throw Is()}m(xg,"useHook");function Jn(e,t,r){let{memoizedState:n}=xg(e,o=>{o.memoizedState=t()},r);return n}m(Jn,"useMemoLike");function u5(e,t){return Jn("useMemo",e,t)}m(u5,"useMemo");function Bn(e,t){return Jn("useCallback",()=>e,t)}m(Bn,"useCallback");function ks(e,t){return Jn(e,()=>({current:t}),[])}m(ks,"useRefLike");function c5(e){return ks("useRef",e)}m(c5,"useRef");function Eg(){let e=Ps();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{pr.getChannel().emit(co)}catch{me.warn("State updates of Storybook preview hooks work only in browser")}}m(Eg,"triggerUpdate");function Rs(e,t){let r=ks(e,typeof t=="function"?t():t),n=m(o=>{r.current=typeof o=="function"?o(r.current):o,Eg()},"setState");return[r.current,n]}m(Rs,"useStateLike");function p5(e){return Rs("useState",e)}m(p5,"useState");function d5(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=Rs("useReducer",n);return[o,m(i=>a(s=>e(s,i)),"dispatch")]}m(d5,"useReducer");function wg(e,t){let r=ra(),n=Jn("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}m(wg,"useEffect");function f5(e,t=[]){let r=pr.getChannel();return wg(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),Bn(r.emit.bind(r),[r])}m(f5,"useChannel");function na(){let{currentContext:e}=ra();if(e==null)throw Is();return e}m(na,"useStoryContext");function y5(e,t){let{parameters:r}=na();if(e)return r[e]??t}m(y5,"useParameter");function h5(){let e=pr.getChannel(),{id:t,args:r}=na(),n=Bn(a=>e.emit(ho,{storyId:t,updatedArgs:a}),[e,t]),o=Bn(a=>e.emit(po,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}m(h5,"useArgs");function m5(){let e=pr.getChannel(),{globals:t}=na(),r=Bn(n=>e.emit(yo,{globals:n}),[e]);return[t,r]}m(m5,"useGlobals");var Ere=m(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=m(a=>(i,s)=>{let l=s.parameters&&s.parameters[t];return l&&l.disable||n&&!a&&!l?i(s):r(i,s,{options:a,parameters:l})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed, + instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator"),Wi=Qe(Lm(),1),g5=Qe(ta(),1),Am=Qe(_R(),1),b5=Qe(Lm(),1),v5=(0,b5.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),Sg=class{entries;constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new $h({storyId:t});return r}importPathToEntry(t){return v5(this.entries)[t]}};m(Sg,"StoryIndexStore");var x5=Sg,Tm=Object.prototype.hasOwnProperty;function es(e,t,r){for(r of e.keys())if(Vr(r,t))return r}m(es,"find");function Vr(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Vr(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=es(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=es(t,o),!o)||!Vr(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Tm.call(e,r)&&++n&&!Tm.call(t,r)||!(r in t)||!Vr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}m(Vr,"dequal");var Ho=Qe(As(),1);function lt(e){for(var t=[],r=1;r{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?$r:e.reduce((n,o,a)=>{let i=ts(o,{type:r.value});return i!==$r&&(n[a]=i),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?$r:Object.entries(e).reduce((n,[o,a])=>{let i=ts(a,{type:r.value[o]});return i===$r?n:Object.assign(n,{[o]:i})},{});default:return $r}},"map"),E5=m((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let a=ts(o,t[n]);return a===$r?r:Object.assign(r,{[n]:a})},{}),"mapArgsToTypes"),rs=m((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=rs(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!(0,Ho.default)(e)||!(0,Ho.default)(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=rs(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),w5=m((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function a(){return n in e&&(r[n]=e[n]),r}if(m(a,"allowArg"),!o)return a();if(!Array.isArray(o))return Ut.error(lt` + Invalid argType: '${n}.options' should be an array. + + More info: https://storybook.js.org/docs/react/api/argtypes + `),a();if(o.some(d=>d&&["object","function"].includes(typeof d)))return Ut.error(lt` + Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values. + + More info: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + `),a();let i=Array.isArray(e[n]),s=i&&e[n].findIndex(d=>!o.includes(d)),l=i&&s===-1;if(e[n]===void 0||o.includes(e[n])||l)return a();let u=i?`${n}[${s}]`:n,c=o.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return Ut.warn(`Received illegal value for '${u}'. Supported options: ${c}`),r},{}),"validateOptions"),jn=Symbol("Deeply equal"),Go=m((e,t)=>{if(typeof e!=typeof t)return t;if(Vr(e,t))return jn;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Go(e[a],o);return i!==jn&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return(0,Ho.default)(e)&&(0,Ho.default)(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Go(e?.[n],t?.[n]);return o===jn?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),Ag="UNTARGETED";function Tg({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=Ag}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}m(Tg,"groupArgsByTarget");function Cg(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}m(Cg,"deleteUndefined");var _g=class{initialArgsByStoryId={};argsByStoryId={};get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Go(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==jn&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=w5(r,t.argTypes);this.argsByStoryId[t.id]=rs(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=E5(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Cg({...this.argsByStoryId[t],...r})}};m(_g,"ArgsStore");var S5=_g,Og=m((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),Ig=class{allowedGlobalNames;initialGlobals;globals;constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Go(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=Og(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==jn&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:me.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}};m(Ig,"GlobalsStore");var A5=Ig,T5=Qe(ta(),1),C5=m(e=>typeof e=="string"?{name:e}:e,"normalizeType"),_5=m(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),O5=m((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=C5(r)),n?a.control=_5(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Wo=m(e=>(0,T5.default)(e,O5),"normalizeInputTypes"),Fe=m(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),I5=lt` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`;function Ds(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(me.debug("deprecated story",a),Ct(I5));let i=xm(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...Fe(n.decorators),...Fe(a?.decorators)],u={...a?.parameters,...n.parameters},c={...a?.args,...n.args},d={...a?.argTypes,...n.argTypes},y=[...Fe(n.loaders),...Fe(a?.loaders)],f=[...Fe(n.beforeEach),...Fe(a?.beforeEach)],{render:h,play:g,tags:_=[]}=n,v=u.__id||vm(r.id,i);return{moduleExport:t,id:v,name:s,tags:_,decorators:l,parameters:u,args:c,argTypes:Wo(d),loaders:y,beforeEach:f,...h&&{render:h},...o&&{userStoryFn:o},...g&&{play:g}}}m(Ds,"normalizeStory");function Fs(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:Vi(n||t),...e,title:t,...o&&{argTypes:Wo(o)},parameters:{fileName:r,...e.parameters}}}m(Fs,"normalizeComponentAnnotations");var P5=m(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&me.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),k5=m(e=>{let{options:t}=e;t?.storySort&&me.error("The storySort option parameter can only be set globally")},"checkStorySort"),Cm=m(e=>{e&&(P5(e),k5(e))},"checkDisallowedParameters");function Pg(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=Fs(n,r,t);Cm(i.parameters);let s={meta:i,stories:{},moduleExports:e};return Object.keys(a).forEach(l=>{if(Jo(l,i)){let u=Ds(l,a[l],i);Cm(u.parameters),s.stories[u.id]=u}}),s}m(Pg,"processCSFFile");var Ki=Qe(As(),1),Ot=m((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:(0,Ki.default)(s)&&(0,Ki.default)(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>(0,Ki.default)(i))?n[o]=Ot(...a):n[o]=a[a.length-1]}),n},"combineParameters");function kg(e,t,r){let n=r(e);return o=>t(n,o)}m(kg,"decorateStory");function Rg({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...u}={}){return u}m(Rg,"sanitizeStoryContextUpdate");function Dg(e,t){let r={},n=m(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Rg(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>kg(a,i,n),e);return a=>(r.value=a,o(a))}m(Dg,"defaultDecorateStory");function Fg(e){return e!=null&&jg(e).includes("mount")}m(Fg,"mountDestructured");function jg(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=ns(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?ns(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}m(jg,"getUsedProps");function ns(e){let t=[],r=[],n=0;for(let a=0;a{let P={};for(let F of[..."__STORYBOOK_TEST_LOADERS__"in Ue&&Array.isArray(Ue.__STORYBOOK_TEST_LOADERS__)?[Ue.__STORYBOOK_TEST_LOADERS__]:[],Fe(r.loaders),Fe(t.loaders),Fe(e.loaders)]){if(I.abortSignal.aborted)return P;let D=await Promise.all(F.map(U=>U(I)));Object.assign(P,...D)}return P},"applyLoaders"),l=m(async I=>{let P=new Array;for(let F of[...Fe(r.beforeEach),...Fe(t.beforeEach),...Fe(e.beforeEach)]){if(I.abortSignal.aborted)return P;let D=await F(I);D&&P.push(D)}return P},"applyBeforeEach"),u=m(I=>I.originalStoryFn(I.args,I),"undecoratedStoryFn"),{applyDecorators:c=Dg,runStep:d}=r,y=[...Fe(e?.decorators),...Fe(t?.decorators),...Fe(r?.decorators)],f=e?.userStoryFn||e?.render||t.render||r.render,h=s5(c)(u,y),g=m(I=>h(I),"unboundStoryFn"),_=e?.play??t?.play,v=Fg(_);if(!f&&!v)throw new um({id:o});let x=m(I=>async()=>(await I.renderToCanvas(),I.canvas),"defaultMount"),O=e.mount??t.mount??r.mount??x,C=r.testingLibraryRender;return{...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:f,undecoratedStoryFn:u,unboundStoryFn:g,applyLoaders:s,applyBeforeEach:l,playFunction:_,runStep:d,mount:O,testingLibraryRender:C,renderToCanvas:r.renderToCanvas,usesMount:v}}m(js,"prepareStory");function Ng(e,t,r){return{...Ns(void 0,e,t),moduleExport:r}}m(Ng,"prepareMeta");function Ns(e,t,r){let n=["dev","test"],o=Ue.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=Em(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Ot(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,u=Ot(r.argTypes,t.argTypes,e?.argTypes);if(e){let _=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=_&&_.length>0}let c={...r.args,...t.args,...e?.args},d={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:c,argTypes:u};d.argTypes=s.reduce((_,v)=>v({...d,argTypes:_}),d.argTypes);let y={...c};d.initialArgs=l.reduce((_,v)=>({..._,...v({...d,initialArgs:_})}),y);let{name:f,story:h,...g}=d;return g}m(Ns,"preparePartialAnnotations");function Bs(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(Ue.FEATURES?.argTypeTargetsV7){let a=Tg(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[Ag]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let l=m(u=>{let c=r.argTypes[i].mapping;return c&&u in c?c[u]:u},"mappingFn");return a[i]=Array.isArray(s)?s.map(l):l(s),a},{}),o=Object.entries(n).reduce((a,[i,s])=>{let l=r.argTypes[i]||{};return bm(l,n,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:t,args:o}}m(Bs,"prepareContext");var os=Qe(ta(),1),as=m((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(me.warn(lt` + We've detected a cycle in arg '${t}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?as(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,os.default)(e,o=>as(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Bg=m(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=(0,os.default)(n,(i,s)=>({name:s,type:as(i,`${t}.${s}`,new Set)})),a=(0,os.default)(r,(i,s)=>({name:s}));return Ot(o,a,r)},"inferArgTypes");Bg.secondPass=!0;var R5=Qe(ta(),1),D5=Qe(DR(),1),_m=m((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),F5=m((e,t,r)=>!t&&!r?e:e&&(0,D5.default)(e,(n,o)=>{let a=n.name||o;return(!t||_m(a,t))&&(!r||!_m(a,r))}),"filterArgTypes"),j5=m((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&me.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Lg=m(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=F5(t,n,o),s=(0,R5.default)(i,(l,u)=>l?.type&&j5(l,u,a));return Ot(s,i)},"inferControls");Lg.secondPass=!0;function Ko({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,globals:i,initialGlobals:s,...l}){return i&&Object.keys(i).length>0&&Ct(lt` + The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0. + Please use 'initialGlobals' instead. Learn more: + + https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals + `),{...e&&{argTypes:Wo(e)},...t&&{globalTypes:Wo(t)},decorators:Fe(n),loaders:Fe(o),beforeEach:Fe(a),argTypesEnhancers:[...r||[],Bg,Lg],initialGlobals:Ot(s,i),...l}}m(Ko,"normalizeProjectAnnotations");function qg(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}m(qg,"composeStepRunners");var N5=m(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function Hr(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}m(Hr,"getField");function Jt(e,t,r={}){return Hr(e,t).reduce((n,o)=>{let a=Fe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}m(Jt,"getArrayField");function zr(e,t){return Object.assign({},...Hr(e,t))}m(zr,"getObjectField");function ur(e,t){return Hr(e,t).pop()}m(ur,"getSingletonField");function Ls(e){let t=Jt(e,"argTypesEnhancers"),r=Hr(e,"runStep"),n=Jt(e,"beforeAll");return{parameters:Ot(...Hr(e,"parameters")),decorators:Jt(e,"decorators",{reverseFileOrder:!(Ue.FEATURES?.legacyDecoratorFileOrder??!1)}),args:zr(e,"args"),argsEnhancers:Jt(e,"argsEnhancers"),argTypes:zr(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],globals:zr(e,"globals"),initialGlobals:zr(e,"initialGlobals"),globalTypes:zr(e,"globalTypes"),loaders:Jt(e,"loaders"),beforeAll:N5(n),beforeEach:Jt(e,"beforeEach"),render:ur(e,"render"),renderToCanvas:ur(e,"renderToCanvas"),renderToDOM:ur(e,"renderToDOM"),applyDecorators:ur(e,"applyDecorators"),runStep:qg(r),tags:Jt(e,"tags"),mount:ur(e,"mount"),testingLibraryRender:ur(e,"testingLibraryRender")}}m(Ls,"composeConfigs");var is={},B5="ComposedStory",L5="Unnamed Story";function Mg(e){return e?"default"in e?e.default:e:{}}m(Mg,"extractAnnotation");function q5(e){let t=Array.isArray(e)?e:[e];return is=Ls(t.map(Mg)),is}m(q5,"setProjectAnnotations");var $t=[];function M5(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??B5;let a=Fs(t),i=o||e.storyName||e.story?.name||e.name||L5,s=Ds(i,e,a),l=Ko(Ls([n??{},is,r??{}])),u=js(s,a,l),c=Og(l.globalTypes),d=m(()=>{let _=Bs({hooks:new vg,globals:{...c,...l.initialGlobals},args:{...u.initialArgs},viewMode:"story",loaded:{},abortSignal:new AbortController().signal,step:m((v,x)=>u.runStep(v,x,_),"step"),canvasElement:null,canvas:{},...u,context:null,mount:null});return _.context=_,u.renderToCanvas&&(_.renderToCanvas=async()=>{let v=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:m(()=>{},"showMain"),showError:m(x=>{},"showError"),showException:m(x=>{},"showException"),forceRemount:!0,storyContext:_,storyFn:m(()=>u.unboundStoryFn(_),"storyFn"),unboundStoryFn:u.unboundStoryFn},_.canvasElement);v&&$t.push(v)}),_.mount=u.mount(_),_},"initializeContext"),y,f=m(async _=>{let v=d();return v.canvasElement??=globalThis?.document?.body,y&&(v.loaded=y.loaded),Object.assign(v,_),u.playFunction(v)},"play"),h=m(_=>{let v=d();return Object.assign(v,_),Ug(u,v)},"run"),g=u.playFunction?f:void 0;return Object.assign(m(function(_){let v=d();return y&&(v.loaded=y.loaded),v.args={...v.initialArgs,..._},u.unboundStoryFn(v)},"storyFn"),{id:u.id,storyName:i,load:m(async()=>{for(let v of[...$t].reverse())await v();$t.length=0;let _=d();_.loaded=await u.applyLoaders(_),$t.push(...(await u.applyBeforeEach(_)).filter(Boolean)),y=_},"load"),args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:g,run:h,tags:u.tags})}m(M5,"composeStory");function U5(e,t,r){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e;return Object.entries(i).reduce((s,[l,u])=>Jo(l,n)?Object.assign(s,{[l]:r(u,n,t,l)}):s,{})}m(U5,"composeStories");function J5(e){return e.extend({mount:m(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(lt` + Portable stories in Playwright CT only work when referencing JSX elements. + Please use JSX format for your components such as: + + instead of: + await mount(MyComponent, { props: { foo: 'bar' } }) + + do: + await mount() + + More info: https://storybook.js.org/docs/api/portable-stories-playwright + `);await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s);return("__pw_type"in l?l.type:l)?.load?.()},o);let i=await t(o,...a);return await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s),u="__pw_type"in l?l.type:l,c=document.querySelector("#root");return u?.play?.({canvasElement:c})},o),i})},"mount")})}m(J5,"createPlaywrightTest");async function Ug(e,t){for(let o of[...$t].reverse())await o();if($t.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,$t.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;$t.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;n||await t.mount(),!t.abortSignal.aborted&&r&&(n||(t.mount=async()=>{throw new Mo({playFunction:r.toString()})}),await r(t))}m(Ug,"runStory");var Om=1e3,$5=1e4,Jg=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new x5(t),this.projectAnnotations=Ko(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new S5,this.globals=new A5({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Wi.default)(Om)(Pg),this.prepareMetaWithCache=(0,Wi.default)(Om)(Ng),this.prepareStoryWithCache=(0,Wi.default)($5)(js)}storyIndex;projectAnnotations;globals;args;hooks;cleanupCallbacks;cachedCSFFiles;processCSFFileWithCache;prepareMetaWithCache;prepareStoryWithCache;setProjectAnnotations(t){this.projectAnnotations=Ko(t);let{initialGlobals:r,globalTypes:n}=t;this.globals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new om({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new vg,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){return Bs({...t,args:r?t.initialArgs:this.args.get(t.id),globals:this.globals.get(),hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Vh;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],l=this.storyFromCSFFile({storyId:o,csfFile:s});return!t.includeDocsOnly&&l.parameters.docsOnly||(n[o]=Object.entries(l).reduce((u,[c,d])=>c==="moduleExport"||typeof d=="function"?u:Array.isArray(d)?Object.assign(u,{[c]:d.slice().sort()}):Object.assign(u,{[c]:d}),{args:l.initialArgs})),n},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters:r,stories:t}}getStoriesJsonData=m(()=>{let t=this.getSetStoriesPayload(),r=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:(0,g5.default)(t.stories,n=>{let{importPath:o}=this.storyIndex.entries[n.id];return{...(0,Am.default)(n,["id","name","title"]),importPath:o,kind:n.title,story:n.name,parameters:{...(0,Am.default)(n.parameters,r),fileName:o}}})}},"getStoriesJsonData");raw(){return Ct("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if(Ct("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:n});return{...o,storyFn:m(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:m((s,l)=>o.runStep(s,l,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};m(Jg,"StoryStore");var z5=Jg;function $g(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}m($g,"slash");var V5=m(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function ss(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}m(ss,"pathJoin");var H5=m((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:a=""}=t||{};typeof e=="number"&&Ut.warn(lt` + CSF Auto-title received a numeric fileName. This typically happens when + webpack is mis-configured in production mode. To force webpack to produce + filenames, set optimization.moduleIds = "named" in your webpack config. + `);let i=$g(String(e));if(o.exec(i)){if(!r){let s=i.replace(n,""),l=ss([a,s]).split("/");return l=V5(l),l.join("/")}return a?ss([a,r]):r}},"userOrAutoTitleFromSpecifier"),zre=m((e,t,r)=>{for(let n=0;n(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],a=t.title.trim().split(Im),i=r.title.trim().split(Im);e.includeNames&&(a.push(t.name),i.push(r.name));let s=0;for(;a[s]||i[s];){if(!a[s])return-1;if(!i[s])return 1;let l=a[s],u=i[s];if(l!==u){let d=o.indexOf(l),y=o.indexOf(u),f=o.indexOf("*");return d!==-1||y!==-1?(d===-1&&(f!==-1?d=f:d=o.length),y===-1&&(f!==-1?y=f:y=o.length),d-y):n==="configure"?0:l.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let c=o.indexOf(l);c===-1&&(c=o.indexOf("*")),o=c!==-1&&Array.isArray(o[c+1])?o[c+1]:[],s+=1}return 0},"storySort"),W5=m((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=G5(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),Vre=m((e,t,r)=>{try{return W5(e,t,r)}catch(n){throw new Error(lt` + Error sorting stories with sort parameter ${t}: + + > ${n.message} + + Are you using a V6-style sort function in V7 mode? + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort + `)}},"sortStoriesV7"),oa=new Error("prepareAborted"),{AbortController:Pm}=globalThis;function ls(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}m(ls,"serializeError");var zg=class{constructor(t,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},l){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.abortController=new Pm,l&&(this.story=l,this.phase="preparing")}type="story";story;phase;abortController;canvasElement;notYetRendered=!0;rerenderEnqueued=!1;disableKeyListeners=!1;teardownRender=m(()=>{},"teardownRender");torndown=!1;async runPhase(t,r,n){this.phase=r,this.channel.emit(kr,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(kr,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),oa}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:l,tags:u,applyLoaders:c,applyBeforeEach:d,unboundStoryFn:y,playFunction:f,runStep:h}=o;r&&!t&&(this.cancelRender(),this.abortController=new Pm);let g=this.abortController.signal,_=!1,v=o.usesMount;try{let x={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:n,loaded:{},step:m((D,U)=>h(D,U,x),"step"),context:null,canvas:{},renderToCanvas:m(async()=>{let D=await this.renderToScreen(O,n);this.teardownRender=D||(()=>{}),_=!0},"renderToCanvas"),mount:m(async(...D)=>{this.callbacks.showStoryDuringRender?.();let U=null;return await this.runPhase(g,"rendering",async()=>{U=await o.mount(x)(...D)}),v&&await this.runPhase(g,"playing"),U},"mount")};x.context=x;let O={componentId:i,title:s,kind:s,id:a,name:l,story:l,tags:u,...this.callbacks,showError:m(D=>(this.phase="errored",this.callbacks.showError(D)),"showError"),showException:m(D=>(this.phase="errored",this.callbacks.showException(D)),"showException"),forceRemount:r||this.notYetRendered,storyContext:x,storyFn:m(()=>y(x),"storyFn"),unboundStoryFn:y};if(await this.runPhase(g,"loading",async()=>{x.loaded=await c(x)}),g.aborted)return;let C=await d(x);if(this.store.addCleanupCallbacks(o,C),this.checkIfAborted(g)||(!_&&!v&&await x.mount(),this.notYetRendered=!1,g.aborted))return;let I=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,P=new Set,F=m(D=>P.add("error"in D?D.error:D.reason),"onError");if(this.renderOptions.autoplay&&r&&f&&this.phase!=="errored"){window.addEventListener("error",F),window.addEventListener("unhandledrejection",F),this.disableKeyListeners=!0;try{if(v?await f(x):(x.mount=async()=>{throw new Mo({playFunction:f.toString()})},await this.runPhase(g,"playing",async()=>f(x))),!_)throw new pm;this.checkIfAborted(g),!I&&P.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(D){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(du,ls(D))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw D;console.error(D)}if(!I&&P.size>0&&this.channel.emit(Tu,Array.from(P).map(ls)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",F),window.removeEventListener("error",F),g.aborted)return}await this.runPhase(g,"completed",async()=>this.channel.emit(xn,a))}catch(x){this.phase="errored",this.callbacks.showException(x)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};m(zg,"StoryRender");var Vg=zg,{fetch:K5}=Ue,Y5="./index.json",Hg=class{constructor(t,r,n=pr.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}serverChannel;storyStoreValue;renderToCanvas;storyRenders=[];previewEntryError;projectAnnotationsBeforeInitialization;beforeAllCleanup;storeInitializationPromise;resolveStoreInitializationPromise;rejectStoreInitializationPromise;get storyStore(){return new Proxy({},{get:m((t,r)=>{if(this.storyStoreValue)return Ct("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new im},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(xu,this.onStoryIndexChanged.bind(this)),this.channel.on(yo,this.onUpdateGlobals.bind(this)),this.channel.on(ho,this.onUpdateArgs.bind(this)),this.channel.on(iu,this.onRequestArgTypesInfo.bind(this)),this.channel.on(po,this.onResetArgs.bind(this)),this.channel.on(co,this.onForceReRender.bind(this)),this.channel.on(uu,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new Gh;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await K5(Y5);if(t.status===200)return t.json();throw new Yh({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new z5(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.globals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(mu,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new rt({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t}){if(!this.storyStoreValue)throw new rt({methodName:"onUpdateGlobals"});this.storyStoreValue.globals.update(t),await Promise.all(this.storyRenders.map(r=>r.rerender())),this.channel.emit(cu,{globals:this.storyStoreValue.globals.get(),initialGlobals:this.storyStoreValue.globals.initialGlobals})}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new rt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(gu,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(Wa,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Wa,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new rt({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new rt({methodName:"renderStoryToElement"});let a=new Vg(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new rt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new rt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new rt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,me.error(t),me.error(r),this.channel.emit(su,r)}};m(Hg,"Preview");var X5=Hg,Q5=!1,Yi="Invariant failed";function zo(e,t){if(!e){if(Q5)throw new Error(Yi);var r=typeof t=="function"?t():t,n=r?"".concat(Yi,": ").concat(r):Yi;throw new Error(n)}}m(zo,"invariant");var Gg=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}componentStoriesValue;storyIdToCSFFile;exportToStory;exportsToCSFFile;nameToStoryId;attachedCSFFiles;primaryStory;referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(lt`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}. + - Did you pass a component to the 'of' prop when the block only supports a story or a meta? + - ... or vice versa? + - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}storyIdByName=m(t=>{let r=this.nameToStoryId.get(t);if(r)return r;throw new Error(`No story found with that name: ${t}`)},"storyIdByName");componentStories=m(()=>this.componentStoriesValue,"componentStories");componentStoriesFromCSFFile=m(t=>this.store.componentStoriesFromCSFFile({csfFile:t}),"componentStoriesFromCSFFile");storyById=m(t=>{if(!t){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let r=this.storyIdToCSFFile.get(t);if(!r)throw new Error(`Called \`storyById\` for story that was never loaded: ${t}`);return this.store.storyFromCSFFile({storyId:t,csfFile:r})},"storyById");getStoryContext=m(t=>({...this.store.getStoryContext(t),loaded:{},viewMode:"docs"}),"getStoryContext");loadStory=m(t=>this.store.loadStory({storyId:t}),"loadStory")};m(Gg,"DocsContext");var Wg=Gg,Kg=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.id=n.id}type="docs";subtype="csf";id;story;rerender;teardownRender;torndown=!1;disableKeyListeners=!1;preparing=!1;csfFiles;isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw oa;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Wg(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=m(async()=>{try{await i(n,o,t),this.channel.emit(uo,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:l})=>{!l||!t||a.unmount(t)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};m(Kg,"CsfDocsRender");var km=Kg,Yg=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.id=n.id}type="docs";subtype="mdx";id;exports;rerender;teardownRender;torndown=!1;disableKeyListeners=!1;preparing=!1;csfFiles;isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw oa;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Wg(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,l=m(async()=>{try{await s(n,a,t),this.channel.emit(uo,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!t||(i.unmount(t),this.torndown=!0)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};m(Yg,"MdxDocsRender");var Rm=Yg,Z5=globalThis;function Xg(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}m(Xg,"focusInInput");var Qg="attached-mdx",eD="unattached-mdx";function Zg({tags:e}){return e?.includes(eD)||e?.includes(Qg)}m(Zg,"isMdxEntry");function Vo(e){return e.type==="story"}m(Vo,"isStoryRender");function eb(e){return e.type==="docs"}m(eb,"isDocsRender");function tb(e){return eb(e)&&e.subtype==="csf"}m(tb,"isCsfDocsRender");var rb=class extends X5{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}currentSelection;currentRender;setupListeners(){super.setupListeners(),Z5.onkeydown=this.onKeydown.bind(this),this.channel.on(hu,this.onSetCurrentStory.bind(this)),this.channel.on(Cu,this.onUpdateQueryParams.bind(this)),this.channel.on(fu,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.globals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new rt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new em):this.renderStoryLoadingException(t,new rm({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(wu,this.selectionStore.selection),this.channel.emit(Ka,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!Xg(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}=t;this.channel.emit(yu,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(Ka,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){super.onUpdateGlobals({globals:t}),(this.currentRender instanceof Rm||this.currentRender instanceof km)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new rt({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(y){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,y);return}let i=this.currentSelection?.storyId!==o,s=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let l;a.type==="story"?l=new Vg(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):Zg(a)?l=new Rm(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):l=new km(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let u=this.currentSelection;this.currentSelection=n;let c=this.currentRender;this.currentRender=l;try{await l.prepare()}catch(y){c&&await this.teardownRender(c),y!==oa&&this.renderStoryLoadingException(o,y);return}let d=!i&&c&&!l.isEqual(c);if(t&&Vo(l)&&(zo(!!l.story),this.storyStoreValue.args.updateFromPersisted(l.story,t)),c&&!c.torndown&&!i&&!d&&!s){this.currentRender=c,this.channel.emit(Au,o),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:s}),u&&(i||s)&&this.channel.emit(bu,o),Vo(l)){zo(!!l.story);let{parameters:y,initialArgs:f,argTypes:h,unmappedArgs:g}=this.storyStoreValue.getStoryContext(l.story);this.channel.emit(Eu,{id:o,parameters:y,initialArgs:f,argTypes:h,args:g})}else{let{parameters:y}=this.storyStoreValue.projectAnnotations;if(tb(l)||l.entry.tags?.includes(Qg)){if(!l.csfFiles)throw new Qh({storyId:o});({parameters:y}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:l.csfFiles[0]}))}this.channel.emit(lu,{id:o,parameters:y})}Vo(l)?(zo(!!l.story),this.storyRenders.push(l),this.currentRender.renderToElement(this.view.prepareForStory(l.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:m(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:m(()=>this.view.showMain(),"showMain"),showError:m(r=>this.renderError(t,r),"showError"),showException:m(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Xa)}renderStoryLoadingException(t,r){me.error(r),this.view.showErrorDisplay(r),this.channel.emit(Xa,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(Su,{name:n,message:o,stack:a}),this.channel.emit(kr,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),me.error(`Error rendering story '${t}':`),me.error(r)}renderError(t,{title:r,description:n}){me.error(`Error rendering story ${r}: ${n}`),this.channel.emit(vu,{title:r,description:n}),this.channel.emit(kr,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:n})}};m(rb,"PreviewWithSelection");var tD=rb,us=Qe(Os(),1),rD=Qe(Os(),1),nD=Qe(As(),1),Dm=/^[a-zA-Z0-9 _-]*$/,nb=/^-?[0-9]+(\.[0-9]+)?$/,oD=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,ob=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,cs=m((e="",t)=>e===null||e===""||!Dm.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Dm.test(t)||nb.test(t)||oD.test(t)||ob.test(t):Array.isArray(t)?t.every(r=>cs(e,r)):(0,nD.default)(t)?Object.entries(t).every(([r,n])=>cs(r,n)):!1,"validateArgs"),aD={delimiter:";",allowDots:!0,allowSparse:!0,decoder(e,t,r,n){if(n==="value"&&e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let o=e.slice(1).match(ob);if(o)return e.startsWith("!rgba")?`${o[1]}(${o[2]}, ${o[3]}, ${o[4]}, ${o[5]})`:e.startsWith("!hsla")?`${o[1]}(${o[2]}, ${o[3]}%, ${o[4]}%, ${o[5]})`:e.startsWith("!rgb")?`${o[1]}(${o[2]}, ${o[3]}, ${o[4]})`:`${o[1]}(${o[2]}, ${o[3]}%, ${o[4]}%)`}return n==="value"&&nb.test(e)?Number(e):t(e,t,r)}},Fm=m(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries(rD.default.parse(t.join(";"),aD)).reduce((r,[n,o])=>cs(n,o)?Object.assign(r,{[n]:o}):(Ut.warn(lt` + Omitted potentially unsafe URL args. + + More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url + `),r),{})},"parseArgsParam"),{history:ab,document:_t}=Ue;function ib(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}m(ib,"pathToId");var sb=m(({selection:e,extraParams:t})=>{let r=typeof _t<"u"?_t.location.search:"",{path:n,selectedKind:o,selectedStory:a,...i}=us.default.parse(r,{ignoreQueryPrefix:!0});return us.default.stringify({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}},{encode:!1,addQueryPrefix:!0})},"getQueryString"),iD=m(e=>{if(!e)return;let t=sb({selection:e}),{hash:r=""}=_t.location;_t.title=e.storyId,ab.replaceState({},"",`${_t.location.pathname}${t}${r}`)},"setPath"),sD=m(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Nn=m(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Nn(e[0]);if(sD(e))return Nn(Object.values(e).filter(Boolean))}},"getFirstString"),lD=m(()=>{if(typeof _t<"u"){let e=us.default.parse(_t.location.search,{ignoreQueryPrefix:!0}),t=typeof e.args=="string"?Fm(e.args):void 0,r=typeof e.globals=="string"?Fm(e.globals):void 0,n=Nn(e.viewMode);(typeof n!="string"||!n.match(/docs|story/))&&(n="story");let o=Nn(e.path),a=o?ib(o):Nn(e.id);if(a)return{storySpecifier:a,args:t,globals:r,viewMode:n}}return null},"getSelectionSpecifierFromPath"),lb=class{selectionSpecifier;selection;constructor(){this.selectionSpecifier=lD()}setSelection(t){this.selection=t,iD(this.selection)}setQueryParams(t){let r=sb({extraParams:t}),{hash:n=""}=_t.location;ab.replaceState({},"",`${_t.location.pathname}${r}${n}`)}};m(lb,"UrlStore");var uD=lb,cD=Qe(o5(),1),pD=Qe(Os(),1),{document:Ge}=Ue,jm=100,ub=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(ub||{}),Xi={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Qi={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Nm=new cD.default({escapeXML:!0}),cb=class{currentLayoutClass;testing=!1;preparingTimeout;constructor(){if(typeof Ge<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=pD.default.parse(Ge.location.search,{ignoreQueryPrefix:!0});switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),Ge.documentElement.scrollTop=0,Ge.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Ge.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Ge.documentElement.scrollTop=0,Ge.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Ge.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){Ge.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=Qi[t];Ge.body.classList.remove(this.currentLayoutClass),Ge.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){Qi[t]||me.warn(lt` + The desired layout: ${t} is not a valid option. + The possible options are: ${Object.keys(Qi).join(", ")}, none. + `)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(ub).forEach(r=>{r===t?Ge.body.classList.add(Xi[r]):Ge.body.classList.remove(Xi[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,a=t.split(` +`);a.length>1&&([n]=a,o=a.slice(1).join(` +`).replace(/^\n/,"")),Ge.getElementById("error-message").innerHTML=Nm.toHtml(n),Ge.getElementById("error-stack").innerHTML=Nm.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),jm)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),jm)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){Ge.body.classList.add(Xi.MAIN)}};m(cb,"WebView");var dD=cb,fD=class extends tD{constructor(t,r){super(t,r,new uD,new dD),this.importFn=t,this.getProjectAnnotations=r,Ue.__STORYBOOK_PREVIEW__=this}};m(fD,"PreviewWeb");var{document:cr}=Ue,yD=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],hD="script",Bm="scripts-root";function ps(){let e=cr.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),cr.dispatchEvent(e)}m(ps,"simulateDOMContentLoaded");function pb(e,t,r){let n=cr.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):cr.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}m(pb,"insertScript");function qs(e,t,r=0){e[r](()=>{r++,r===e.length?t():qs(e,t,r)})}m(qs,"insertScriptsSequentially");function mD(e){let t=cr.getElementById(Bm);t?t.innerHTML="":(t=cr.createElement("div"),t.id=Bm,cr.body.appendChild(t));let r=Array.from(e.querySelectorAll(hD));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||yD.includes(a))&&n.push(i=>pb(o,i,t))}),n.length&&qs(n,ps,void 0)}else ps()}m(mD,"simulatePageLoad");S();A();T();S();A();T();var gD=Object.create,Ms=Object.defineProperty,bD=Object.getOwnPropertyDescriptor,vD=Object.getOwnPropertyNames,xD=Object.getPrototypeOf,ED=Object.prototype.hasOwnProperty,b=(e,t)=>Ms(e,"name",{value:t,configurable:!0}),K=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vD(t))!ED.call(e,o)&&o!==r&&Ms(e,o,{get:()=>t[o],enumerable:!(n=bD(t,o))||n.enumerable});return e},db=(e,t,r)=>(r=e!=null?gD(xD(e)):{},wD(t||!e||!e.__esModule?Ms(r,"default",{value:e,enumerable:!0}):r,e)),fb=K((e,t)=>{var r=typeof window=="object"&&window&&window.Object===Object&&window;t.exports=r}),kt=K((e,t)=>{var r=fb(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}),ia=K((e,t)=>{var r=kt(),n=r.Symbol;t.exports=n}),SD=K((e,t)=>{var r=ia(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(l){var u=o.call(l,i),c=l[i];try{l[i]=void 0;var d=!0}catch{}var y=a.call(l);return d&&(u?l[i]=c:delete l[i]),y}b(s,"getRawTag"),t.exports=s}),AD=K((e,t)=>{var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}b(o,"objectToString"),t.exports=o}),Hn=K((e,t)=>{var r=ia(),n=SD(),o=AD(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function l(u){return u==null?u===void 0?i:a:s&&s in Object(u)?n(u):o(u)}b(l,"baseGetTag"),t.exports=l}),Us=K((e,t)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}b(r,"isObject"),t.exports=r}),yb=K((e,t)=>{var r=Hn(),n=Us(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(u){if(!n(u))return!1;var c=r(u);return c==a||c==i||c==o||c==s}b(l,"isFunction"),t.exports=l}),TD=K((e,t)=>{var r=kt(),n=r["__core-js_shared__"];t.exports=n}),CD=K((e,t)=>{var r=TD(),n=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function o(a){return!!n&&n in a}b(o,"isMasked"),t.exports=o}),hb=K((e,t)=>{var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}b(o,"toSource"),t.exports=o}),_D=K((e,t)=>{var r=yb(),n=CD(),o=Us(),a=hb(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,y=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!o(h)||n(h))return!1;var g=r(h)?y:s;return g.test(a(h))}b(f,"baseIsNative"),t.exports=f}),OD=K((e,t)=>{function r(n,o){return n?.[o]}b(r,"getValue"),t.exports=r}),yr=K((e,t)=>{var r=_D(),n=OD();function o(a,i){var s=n(a,i);return r(s)?s:void 0}b(o,"getNative"),t.exports=o}),ID=K((e,t)=>{var r=yr(),n=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();t.exports=n}),PD=K((e,t)=>{var r=ID();function n(o,a,i){a=="__proto__"&&r?r(o,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[a]=i}b(n,"baseAssignValue"),t.exports=n}),kD=K((e,t)=>{function r(n){return function(o,a,i){for(var s=-1,l=Object(o),u=i(o),c=u.length;c--;){var d=u[n?c:++s];if(a(l[d],d,l)===!1)break}return o}}b(r,"createBaseFor"),t.exports=r}),RD=K((e,t)=>{var r=kD(),n=r();t.exports=n}),DD=K((e,t)=>{function r(n,o){for(var a=-1,i=Array(n);++a{function r(n){return n!=null&&typeof n=="object"}b(r,"isObjectLike"),t.exports=r}),FD=K((e,t)=>{var r=Hn(),n=Gn(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}b(a,"baseIsArguments"),t.exports=a}),mb=K((e,t)=>{var r=FD(),n=Gn(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(l){return n(l)&&a.call(l,"callee")&&!i.call(l,"callee")};t.exports=s}),Vt=K((e,t)=>{var r=Array.isArray;t.exports=r}),jD=K((e,t)=>{function r(){return!1}b(r,"stubFalse"),t.exports=r}),gb=K((e,t)=>{var r=kt(),n=jD(),o=typeof e=="object"&&e&&!e.nodeType&&e,a=o&&typeof t=="object"&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;t.exports=u}),bb=K((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}b(n,"isLength"),t.exports=n}),ND=K((e,t)=>{var r=Hn(),n=Js(),o=Gn(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",y="[object Number]",f="[object Object]",h="[object RegExp]",g="[object Set]",_="[object String]",v="[object WeakMap]",x="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",I="[object Float64Array]",P="[object Int8Array]",F="[object Int16Array]",D="[object Int32Array]",U="[object Uint8Array]",G="[object Uint8ClampedArray]",X="[object Uint16Array]",Q="[object Uint32Array]",V={};V[C]=V[I]=V[P]=V[F]=V[D]=V[U]=V[G]=V[X]=V[Q]=!0,V[a]=V[i]=V[x]=V[s]=V[O]=V[l]=V[u]=V[c]=V[d]=V[y]=V[f]=V[h]=V[g]=V[_]=V[v]=!1;function R(q){return o(q)&&n(q.length)&&!!V[r(q)]}b(R,"baseIsTypedArray"),t.exports=R}),BD=K((e,t)=>{function r(n){return function(o){return n(o)}}b(r,"baseUnary"),t.exports=r}),LD=K((e,t)=>{var r=fb(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}),vb=K((e,t)=>{var r=ND(),n=BD(),o=LD(),a=o&&o.isTypedArray,i=a?n(a):r;t.exports=i}),qD=K((e,t)=>{var r=DD(),n=mb(),o=Vt(),a=gb(),i=bb(),s=vb(),l=Object.prototype,u=l.hasOwnProperty;function c(d,y){var f=o(d),h=!f&&n(d),g=!f&&!h&&a(d),_=!f&&!h&&!g&&s(d),v=f||h||g||_,x=v?r(d.length,String):[],O=x.length;for(var C in d)(y||u.call(d,C))&&!(v&&(C=="length"||g&&(C=="offset"||C=="parent")||_&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,O)))&&x.push(C);return x}b(c,"arrayLikeKeys"),t.exports=c}),MD=K((e,t)=>{var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}b(n,"isPrototype"),t.exports=n}),UD=K((e,t)=>{function r(n,o){return function(a){return n(o(a))}}b(r,"overArg"),t.exports=r}),JD=K((e,t)=>{var r=UD(),n=r(Object.keys,Object);t.exports=n}),$D=K((e,t)=>{var r=MD(),n=JD(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var l=[];for(var u in Object(s))a.call(s,u)&&u!="constructor"&&l.push(u);return l}b(i,"baseKeys"),t.exports=i}),zD=K((e,t)=>{var r=yb(),n=Js();function o(a){return a!=null&&n(a.length)&&!r(a)}b(o,"isArrayLike"),t.exports=o}),$s=K((e,t)=>{var r=qD(),n=$D(),o=zD();function a(i){return o(i)?r(i):n(i)}b(a,"keys"),t.exports=a}),VD=K((e,t)=>{var r=RD(),n=$s();function o(a,i){return a&&r(a,i,n)}b(o,"baseForOwn"),t.exports=o}),HD=K((e,t)=>{function r(){this.__data__=[],this.size=0}b(r,"listCacheClear"),t.exports=r}),xb=K((e,t)=>{function r(n,o){return n===o||n!==n&&o!==o}b(r,"eq"),t.exports=r}),sa=K((e,t)=>{var r=xb();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}b(n,"assocIndexOf"),t.exports=n}),GD=K((e,t)=>{var r=sa(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,l=r(s,i);if(l<0)return!1;var u=s.length-1;return l==u?s.pop():o.call(s,l,1),--this.size,!0}b(a,"listCacheDelete"),t.exports=a}),WD=K((e,t)=>{var r=sa();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}b(n,"listCacheGet"),t.exports=n}),KD=K((e,t)=>{var r=sa();function n(o){return r(this.__data__,o)>-1}b(n,"listCacheHas"),t.exports=n}),YD=K((e,t)=>{var r=sa();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}b(n,"listCacheSet"),t.exports=n}),la=K((e,t)=>{var r=HD(),n=GD(),o=WD(),a=KD(),i=YD();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=la();function n(){this.__data__=new r,this.size=0}b(n,"stackClear"),t.exports=n}),QD=K((e,t)=>{function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}b(r,"stackDelete"),t.exports=r}),ZD=K((e,t)=>{function r(n){return this.__data__.get(n)}b(r,"stackGet"),t.exports=r}),eF=K((e,t)=>{function r(n){return this.__data__.has(n)}b(r,"stackHas"),t.exports=r}),zs=K((e,t)=>{var r=yr(),n=kt(),o=r(n,"Map");t.exports=o}),ua=K((e,t)=>{var r=yr(),n=r(Object,"create");t.exports=n}),tF=K((e,t)=>{var r=ua();function n(){this.__data__=r?r(null):{},this.size=0}b(n,"hashClear"),t.exports=n}),rF=K((e,t)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}b(r,"hashDelete"),t.exports=r}),nF=K((e,t)=>{var r=ua(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var l=this.__data__;if(r){var u=l[s];return u===n?void 0:u}return a.call(l,s)?l[s]:void 0}b(i,"hashGet"),t.exports=i}),oF=K((e,t)=>{var r=ua(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}b(a,"hashHas"),t.exports=a}),aF=K((e,t)=>{var r=ua(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}b(o,"hashSet"),t.exports=o}),iF=K((e,t)=>{var r=tF(),n=rF(),o=nF(),a=oF(),i=aF();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=iF(),n=la(),o=zs();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}b(a,"mapCacheClear"),t.exports=a}),lF=K((e,t)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}b(r,"isKeyable"),t.exports=r}),ca=K((e,t)=>{var r=lF();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}b(n,"getMapData"),t.exports=n}),uF=K((e,t)=>{var r=ca();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}b(n,"mapCacheDelete"),t.exports=n}),cF=K((e,t)=>{var r=ca();function n(o){return r(this,o).get(o)}b(n,"mapCacheGet"),t.exports=n}),pF=K((e,t)=>{var r=ca();function n(o){return r(this,o).has(o)}b(n,"mapCacheHas"),t.exports=n}),dF=K((e,t)=>{var r=ca();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}b(n,"mapCacheSet"),t.exports=n}),Vs=K((e,t)=>{var r=sF(),n=uF(),o=cF(),a=pF(),i=dF();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=la(),n=zs(),o=Vs(),a=200;function i(s,l){var u=this.__data__;if(u instanceof r){var c=u.__data__;if(!n||c.length{var r=la(),n=XD(),o=QD(),a=ZD(),i=eF(),s=fF();function l(u){var c=this.__data__=new r(u);this.size=c.size}b(l,"Stack"),l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,t.exports=l}),yF=K((e,t)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}b(n,"setCacheAdd"),t.exports=n}),hF=K((e,t)=>{function r(n){return this.__data__.has(n)}b(r,"setCacheHas"),t.exports=r}),mF=K((e,t)=>{var r=Vs(),n=yF(),o=hF();function a(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new r;++s{function r(n,o){for(var a=-1,i=n==null?0:n.length;++a{function r(n,o){return n.has(o)}b(r,"cacheHas"),t.exports=r}),wb=K((e,t)=>{var r=mF(),n=gF(),o=bF(),a=1,i=2;function s(l,u,c,d,y,f){var h=c&a,g=l.length,_=u.length;if(g!=_&&!(h&&_>g))return!1;var v=f.get(l),x=f.get(u);if(v&&x)return v==u&&x==l;var O=-1,C=!0,I=c&i?new r:void 0;for(f.set(l,u),f.set(u,l);++O{var r=kt(),n=r.Uint8Array;t.exports=n}),xF=K((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}b(r,"mapToArray"),t.exports=r}),EF=K((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}b(r,"setToArray"),t.exports=r}),wF=K((e,t)=>{var r=ia(),n=vF(),o=xb(),a=wb(),i=xF(),s=EF(),l=1,u=2,c="[object Boolean]",d="[object Date]",y="[object Error]",f="[object Map]",h="[object Number]",g="[object RegExp]",_="[object Set]",v="[object String]",x="[object Symbol]",O="[object ArrayBuffer]",C="[object DataView]",I=r?r.prototype:void 0,P=I?I.valueOf:void 0;function F(D,U,G,X,Q,V,R){switch(G){case C:if(D.byteLength!=U.byteLength||D.byteOffset!=U.byteOffset)return!1;D=D.buffer,U=U.buffer;case O:return!(D.byteLength!=U.byteLength||!V(new n(D),new n(U)));case c:case d:case h:return o(+D,+U);case y:return D.name==U.name&&D.message==U.message;case g:case v:return D==U+"";case f:var q=i;case _:var M=X&l;if(q||(q=s),D.size!=U.size&&!M)return!1;var Y=R.get(D);if(Y)return Y==U;X|=u,R.set(D,U);var te=a(q(D),q(U),X,Q,V,R);return R.delete(D),te;case x:if(P)return P.call(D)==P.call(U)}return!1}b(F,"equalByTag"),t.exports=F}),SF=K((e,t)=>{function r(n,o){for(var a=-1,i=o.length,s=n.length;++a{var r=SF(),n=Vt();function o(a,i,s){var l=i(a);return n(a)?l:r(l,s(a))}b(o,"baseGetAllKeys"),t.exports=o}),TF=K((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,l=[];++a{function r(){return[]}b(r,"stubArray"),t.exports=r}),_F=K((e,t)=>{var r=TF(),n=CF(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(u){return a.call(l,u)}))}:n;t.exports=s}),OF=K((e,t)=>{var r=AF(),n=_F(),o=$s();function a(i){return r(i,o,n)}b(a,"getAllKeys"),t.exports=a}),IF=K((e,t)=>{var r=OF(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,l,u,c,d,y){var f=u&n,h=r(s),g=h.length,_=r(l),v=_.length;if(g!=v&&!f)return!1;for(var x=g;x--;){var O=h[x];if(!(f?O in l:a.call(l,O)))return!1}var C=y.get(s),I=y.get(l);if(C&&I)return C==l&&I==s;var P=!0;y.set(s,l),y.set(l,s);for(var F=f;++x{var r=yr(),n=kt(),o=r(n,"DataView");t.exports=o}),kF=K((e,t)=>{var r=yr(),n=kt(),o=r(n,"Promise");t.exports=o}),RF=K((e,t)=>{var r=yr(),n=kt(),o=r(n,"Set");t.exports=o}),DF=K((e,t)=>{var r=yr(),n=kt(),o=r(n,"WeakMap");t.exports=o}),FF=K((e,t)=>{var r=PF(),n=zs(),o=kF(),a=RF(),i=DF(),s=Hn(),l=hb(),u="[object Map]",c="[object Object]",d="[object Promise]",y="[object Set]",f="[object WeakMap]",h="[object DataView]",g=l(r),_=l(n),v=l(o),x=l(a),O=l(i),C=s;(r&&C(new r(new ArrayBuffer(1)))!=h||n&&C(new n)!=u||o&&C(o.resolve())!=d||a&&C(new a)!=y||i&&C(new i)!=f)&&(C=b(function(I){var P=s(I),F=P==c?I.constructor:void 0,D=F?l(F):"";if(D)switch(D){case g:return h;case _:return u;case v:return d;case x:return y;case O:return f}return P},"getTag")),t.exports=C}),jF=K((e,t)=>{var r=Eb(),n=wb(),o=wF(),a=IF(),i=FF(),s=Vt(),l=gb(),u=vb(),c=1,d="[object Arguments]",y="[object Array]",f="[object Object]",h=Object.prototype,g=h.hasOwnProperty;function _(v,x,O,C,I,P){var F=s(v),D=s(x),U=F?y:i(v),G=D?y:i(x);U=U==d?f:U,G=G==d?f:G;var X=U==f,Q=G==f,V=U==G;if(V&&l(v)){if(!l(x))return!1;F=!0,X=!1}if(V&&!X)return P||(P=new r),F||u(v)?n(v,x,O,C,I,P):o(v,x,U,O,C,I,P);if(!(O&c)){var R=X&&g.call(v,"__wrapped__"),q=Q&&g.call(x,"__wrapped__");if(R||q){var M=R?v.value():v,Y=q?x.value():x;return P||(P=new r),I(M,Y,O,C,P)}}return V?(P||(P=new r),a(v,x,O,C,I,P)):!1}b(_,"baseIsEqualDeep"),t.exports=_}),Sb=K((e,t)=>{var r=jF(),n=Gn();function o(a,i,s,l,u){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,l,o,u)}b(o,"baseIsEqual"),t.exports=o}),NF=K((e,t)=>{var r=Eb(),n=Sb(),o=1,a=2;function i(s,l,u,c){var d=u.length,y=d,f=!c;if(s==null)return!y;for(s=Object(s);d--;){var h=u[d];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++d{var r=Us();function n(o){return o===o&&!r(o)}b(n,"isStrictComparable"),t.exports=n}),BF=K((e,t)=>{var r=Ab(),n=$s();function o(a){for(var i=n(a),s=i.length;s--;){var l=i[s],u=a[l];i[s]=[l,u,r(u)]}return i}b(o,"getMatchData"),t.exports=o}),Tb=K((e,t)=>{function r(n,o){return function(a){return a==null?!1:a[n]===o&&(o!==void 0||n in Object(a))}}b(r,"matchesStrictComparable"),t.exports=r}),LF=K((e,t)=>{var r=NF(),n=BF(),o=Tb();function a(i){var s=n(i);return s.length==1&&s[0][2]?o(s[0][0],s[0][1]):function(l){return l===i||r(l,i,s)}}b(a,"baseMatches"),t.exports=a}),Hs=K((e,t)=>{var r=Hn(),n=Gn(),o="[object Symbol]";function a(i){return typeof i=="symbol"||n(i)&&r(i)==o}b(a,"isSymbol"),t.exports=a}),Gs=K((e,t)=>{var r=Vt(),n=Hs(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function i(s,l){if(r(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||n(s)?!0:a.test(s)||!o.test(s)||l!=null&&s in Object(l)}b(i,"isKey"),t.exports=i}),qF=K((e,t)=>{var r=Vs(),n="Expected a function";function o(a,i){if(typeof a!="function"||i!=null&&typeof i!="function")throw new TypeError(n);var s=b(function(){var l=arguments,u=i?i.apply(this,l):l[0],c=s.cache;if(c.has(u))return c.get(u);var d=a.apply(this,l);return s.cache=c.set(u,d)||c,d},"memoized");return s.cache=new(o.Cache||r),s}b(o,"memoize"),o.Cache=r,t.exports=o}),MF=K((e,t)=>{var r=qF(),n=500;function o(a){var i=r(a,function(l){return s.size===n&&s.clear(),l}),s=i.cache;return i}b(o,"memoizeCapped"),t.exports=o}),UF=K((e,t)=>{var r=MF(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(n,function(l,u,c,d){s.push(c?d.replace(o,"$1"):u||l)}),s});t.exports=a}),JF=K((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=Array(i);++a{var r=ia(),n=JF(),o=Vt(),a=Hs(),i=1/0,s=r?r.prototype:void 0,l=s?s.toString:void 0;function u(c){if(typeof c=="string")return c;if(o(c))return n(c,u)+"";if(a(c))return l?l.call(c):"";var d=c+"";return d=="0"&&1/c==-i?"-0":d}b(u,"baseToString"),t.exports=u}),zF=K((e,t)=>{var r=$F();function n(o){return o==null?"":r(o)}b(n,"toString"),t.exports=n}),Cb=K((e,t)=>{var r=Vt(),n=Gs(),o=UF(),a=zF();function i(s,l){return r(s)?s:n(s,l)?[s]:o(a(s))}b(i,"castPath"),t.exports=i}),pa=K((e,t)=>{var r=Hs(),n=1/0;function o(a){if(typeof a=="string"||r(a))return a;var i=a+"";return i=="0"&&1/a==-n?"-0":i}b(o,"toKey"),t.exports=o}),_b=K((e,t)=>{var r=Cb(),n=pa();function o(a,i){i=r(i,a);for(var s=0,l=i.length;a!=null&&s{var r=_b();function n(o,a,i){var s=o==null?void 0:r(o,a);return s===void 0?i:s}b(n,"get"),t.exports=n}),HF=K((e,t)=>{function r(n,o){return n!=null&&o in Object(n)}b(r,"baseHasIn"),t.exports=r}),GF=K((e,t)=>{var r=Cb(),n=mb(),o=Vt(),a=bb(),i=Js(),s=pa();function l(u,c,d){c=r(c,u);for(var y=-1,f=c.length,h=!1;++y{var r=HF(),n=GF();function o(a,i){return a!=null&&n(a,i,r)}b(o,"hasIn"),t.exports=o}),KF=K((e,t)=>{var r=Sb(),n=VF(),o=WF(),a=Gs(),i=Ab(),s=Tb(),l=pa(),u=1,c=2;function d(y,f){return a(y)&&i(f)?s(l(y),f):function(h){var g=n(h,y);return g===void 0&&g===f?o(h,y):r(f,g,u|c)}}b(d,"baseMatchesProperty"),t.exports=d}),YF=K((e,t)=>{function r(n){return n}b(r,"identity"),t.exports=r}),XF=K((e,t)=>{function r(n){return function(o){return o?.[n]}}b(r,"baseProperty"),t.exports=r}),QF=K((e,t)=>{var r=_b();function n(o){return function(a){return r(a,o)}}b(n,"basePropertyDeep"),t.exports=n}),ZF=K((e,t)=>{var r=XF(),n=QF(),o=Gs(),a=pa();function i(s){return o(s)?r(a(s)):n(s)}b(i,"property"),t.exports=i}),ej=K((e,t)=>{var r=LF(),n=KF(),o=YF(),a=Vt(),i=ZF();function s(l){return typeof l=="function"?l:l==null?o:typeof l=="object"?a(l)?n(l[0],l[1]):r(l):i(l)}b(s,"baseIteratee"),t.exports=s}),tj=K((e,t)=>{var r=PD(),n=VD(),o=ej();function a(i,s){var l={};return s=o(s,3),n(i,function(u,c,d){r(l,c,s(u,c,d))}),l}b(a,"mapValues"),t.exports=a}),rj=K((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){"use strict";function n(p){return p.text!==void 0&&p.text!==""?`'${p.type}' with value '${p.text}'`:`'${p.type}'`}b(n,"tokenToString");let o=class Ob extends Error{constructor(w){super(`No parslet found for token: ${n(w)}`),this.token=w,Object.setPrototypeOf(this,Ob.prototype)}getToken(){return this.token}};b(o,"NoParsletFoundError");let a=o,i=class Ib extends Error{constructor(w){super(`The parsing ended early. The next token was: ${n(w)}`),this.token=w,Object.setPrototypeOf(this,Ib.prototype)}getToken(){return this.token}};b(i,"EarlyEndOfParseError");let s=i,l=class Pb extends Error{constructor(w,k){let z=`Unexpected type: '${w.type}'.`;k!==void 0&&(z+=` Message: ${k}`),super(z),Object.setPrototypeOf(this,Pb.prototype)}};b(l,"UnexpectedTypeError");let u=l;function c(p){return w=>w.startsWith(p)?{type:p,text:p}:null}b(c,"makePunctuationRule");function d(p){let w=0,k,z=p[0],ee=!1;if(z!=="'"&&z!=='"')return null;for(;w{let w=h(p);return w==null?null:{type:"Identifier",text:w}},"identifierRule");function x(p){return w=>{if(!w.startsWith(p))return null;let k=w[p.length];return k!==void 0&&f.test(k)?null:{type:p,text:p}}}b(x,"makeKeyWordRule");let O=b(p=>{let w=d(p);return w==null?null:{type:"StringValue",text:w}},"stringValueRule"),C=b(p=>p.length>0?null:{type:"EOF",text:""},"eofRule"),I=b(p=>{let w=_(p);return w===null?null:{type:"Number",text:w}},"numberRule"),P=[C,c("=>"),c("("),c(")"),c("{"),c("}"),c("["),c("]"),c("|"),c("&"),c("<"),c(">"),c(","),c(";"),c("*"),c("?"),c("!"),c("="),c(":"),c("..."),c("."),c("#"),c("~"),c("/"),c("@"),x("undefined"),x("null"),x("function"),x("this"),x("new"),x("module"),x("event"),x("external"),x("typeof"),x("keyof"),x("readonly"),x("import"),x("is"),x("in"),I,v,O],F=/^\s*\n\s*/,D=class aa{static create(w){let k=this.read(w);w=k.text;let z=this.read(w);return w=z.text,new aa(w,void 0,k.token,z.token)}constructor(w,k,z,ee){this.text="",this.text=w,this.previous=k,this.current=z,this.next=ee}static read(w,k=!1){k=k||F.test(w),w=w.trim();for(let z of P){let ee=z(w);if(ee!==null){let oe=Object.assign(Object.assign({},ee),{startOfLine:k});return w=w.slice(oe.text.length),{text:w,token:oe}}}throw new Error("Unexpected Token "+w)}advance(){let w=aa.read(this.text);return new aa(w.text,this.current,this.next,w.token)}};b(D,"Lexer");let U=D;function G(p){if(p===void 0)throw new Error("Unexpected undefined");if(p.type==="JsdocTypeKeyValue"||p.type==="JsdocTypeParameterList"||p.type==="JsdocTypeProperty"||p.type==="JsdocTypeReadonlyProperty"||p.type==="JsdocTypeObjectField"||p.type==="JsdocTypeJsdocObjectField"||p.type==="JsdocTypeIndexSignature"||p.type==="JsdocTypeMappedType")throw new u(p);return p}b(G,"assertRootResult");function X(p){return p.type==="JsdocTypeKeyValue"?V(p):G(p)}b(X,"assertPlainKeyValueOrRootResult");function Q(p){return p.type==="JsdocTypeName"?p:V(p)}b(Q,"assertPlainKeyValueOrNameResult");function V(p){if(p.type!=="JsdocTypeKeyValue")throw new u(p);return p}b(V,"assertPlainKeyValueResult");function R(p){var w;if(p.type==="JsdocTypeVariadic"){if(((w=p.element)===null||w===void 0?void 0:w.type)==="JsdocTypeName")return p;throw new u(p)}if(p.type!=="JsdocTypeNumber"&&p.type!=="JsdocTypeName")throw new u(p);return p}b(R,"assertNumberOrVariadicNameResult");function q(p){return p.type==="JsdocTypeIndexSignature"||p.type==="JsdocTypeMappedType"}b(q,"isSquaredProperty");var M;(function(p){p[p.ALL=0]="ALL",p[p.PARAMETER_LIST=1]="PARAMETER_LIST",p[p.OBJECT=2]="OBJECT",p[p.KEY_VALUE=3]="KEY_VALUE",p[p.UNION=4]="UNION",p[p.INTERSECTION=5]="INTERSECTION",p[p.PREFIX=6]="PREFIX",p[p.INFIX=7]="INFIX",p[p.TUPLE=8]="TUPLE",p[p.SYMBOL=9]="SYMBOL",p[p.OPTIONAL=10]="OPTIONAL",p[p.NULLABLE=11]="NULLABLE",p[p.KEY_OF_TYPE_OF=12]="KEY_OF_TYPE_OF",p[p.FUNCTION=13]="FUNCTION",p[p.ARROW=14]="ARROW",p[p.ARRAY_BRACKETS=15]="ARRAY_BRACKETS",p[p.GENERIC=16]="GENERIC",p[p.NAME_PATH=17]="NAME_PATH",p[p.PARENTHESIS=18]="PARENTHESIS",p[p.SPECIAL_TYPES=19]="SPECIAL_TYPES"})(M||(M={}));let Y=class{constructor(w,k,z){this.grammar=w,typeof k=="string"?this._lexer=U.create(k):this._lexer=k,this.baseParser=z}get lexer(){return this._lexer}parse(){let w=this.parseType(M.ALL);if(this.lexer.current.type!=="EOF")throw new s(this.lexer.current);return w}parseType(w){return G(this.parseIntermediateType(w))}parseIntermediateType(w){let k=this.tryParslets(null,w);if(k===null)throw new a(this.lexer.current);return this.parseInfixIntermediateType(k,w)}parseInfixIntermediateType(w,k){let z=this.tryParslets(w,k);for(;z!==null;)w=z,z=this.tryParslets(w,k);return w}tryParslets(w,k){for(let z of this.grammar){let ee=z(this,k,w);if(ee!==null)return ee}return null}consume(w){return Array.isArray(w)||(w=[w]),w.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(w){this._lexer=w.lexer}};b(Y,"Parser");let te=Y;function ne(p){return p==="EOF"||p==="|"||p===","||p===")"||p===">"}b(ne,"isQuestionMarkUnknownType");let re=b((p,w,k)=>{let z=p.lexer.current.type,ee=p.lexer.next.type;return k==null&&z==="?"&&!ne(ee)||k!=null&&z==="?"?(p.consume("?"),k==null?{type:"JsdocTypeNullable",element:p.parseType(M.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:G(k),meta:{position:"suffix"}}):null},"nullableParslet");function Z(p){let w=b((k,z,ee)=>{let oe=k.lexer.current.type,ie=k.lexer.next.type;if(ee===null){if("parsePrefix"in p&&p.accept(oe,ie))return p.parsePrefix(k)}else if("parseInfix"in p&&p.precedence>z&&p.accept(oe,ie))return p.parseInfix(k,ee);return null},"parslet");return Object.defineProperty(w,"name",{value:p.name}),w}b(Z,"composeParslet");let ae=Z({name:"optionalParslet",accept:b(p=>p==="=","accept"),precedence:M.OPTIONAL,parsePrefix:b(p=>(p.consume("="),{type:"JsdocTypeOptional",element:p.parseType(M.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:b((p,w)=>(p.consume("="),{type:"JsdocTypeOptional",element:G(w),meta:{position:"suffix"}}),"parseInfix")}),le=Z({name:"numberParslet",accept:b(p=>p==="Number","accept"),parsePrefix:b(p=>{let w=parseFloat(p.lexer.current.text);return p.consume("Number"),{type:"JsdocTypeNumber",value:w}},"parsePrefix")}),Ee=Z({name:"parenthesisParslet",accept:b(p=>p==="(","accept"),parsePrefix:b(p=>{if(p.consume("("),p.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let w=p.parseIntermediateType(M.ALL);if(!p.consume(")"))throw new Error("Unterminated parenthesis");return w.type==="JsdocTypeParameterList"?w:w.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[w]}:{type:"JsdocTypeParenthesis",element:G(w)}},"parsePrefix")}),pe=Z({name:"specialTypesParslet",accept:b((p,w)=>p==="?"&&ne(w)||p==="null"||p==="undefined"||p==="*","accept"),parsePrefix:b(p=>{if(p.consume("null"))return{type:"JsdocTypeNull"};if(p.consume("undefined"))return{type:"JsdocTypeUndefined"};if(p.consume("*"))return{type:"JsdocTypeAny"};if(p.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+p.lexer.current.text)},"parsePrefix")}),we=Z({name:"notNullableParslet",accept:b(p=>p==="!","accept"),precedence:M.NULLABLE,parsePrefix:b(p=>(p.consume("!"),{type:"JsdocTypeNotNullable",element:p.parseType(M.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:b((p,w)=>(p.consume("!"),{type:"JsdocTypeNotNullable",element:G(w),meta:{position:"suffix"}}),"parseInfix")});function Le({allowTrailingComma:p}){return Z({name:"parameterListParslet",accept:b(w=>w===",","accept"),precedence:M.PARAMETER_LIST,parseInfix:b((w,k)=>{let z=[X(k)];w.consume(",");do try{let ee=w.parseIntermediateType(M.PARAMETER_LIST);z.push(X(ee))}catch(ee){if(p&&ee instanceof a)break;throw ee}while(w.consume(","));if(z.length>0&&z.slice(0,-1).some(ee=>ee.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:z}},"parseInfix")})}b(Le,"createParameterListParslet");let Ve=Z({name:"genericParslet",accept:b((p,w)=>p==="<"||p==="."&&w==="<","accept"),precedence:M.GENERIC,parseInfix:b((p,w)=>{let k=p.consume(".");p.consume("<");let z=[];do z.push(p.parseType(M.PARAMETER_LIST));while(p.consume(","));if(!p.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:G(w),elements:z,meta:{brackets:"angle",dot:k}}},"parseInfix")}),Ye=Z({name:"unionParslet",accept:b(p=>p==="|","accept"),precedence:M.UNION,parseInfix:b((p,w)=>{p.consume("|");let k=[];do k.push(p.parseType(M.UNION));while(p.consume("|"));return{type:"JsdocTypeUnion",elements:[G(w),...k]}},"parseInfix")}),fe=[re,ae,le,Ee,pe,we,Le({allowTrailingComma:!0}),Ve,Ye,ae];function Ie({allowSquareBracketsOnAnyType:p,allowJsdocNamePaths:w,pathGrammar:k}){return b(function(z,ee,oe){if(oe==null||ee>=M.NAME_PATH)return null;let ie=z.lexer.current.type,Te=z.lexer.next.type;if(!(ie==="."&&Te!=="<"||ie==="["&&(p||oe.type==="JsdocTypeName")||w&&(ie==="~"||ie==="#")))return null;let _e,He=!1;z.consume(".")?_e="property":z.consume("[")?(_e="property-brackets",He=!0):z.consume("~")?_e="inner":(z.consume("#"),_e="instance");let At=k!==null?new te(k,z.lexer,z):z,pt=At.parseIntermediateType(M.NAME_PATH);z.acceptLexerState(At);let hn;switch(pt.type){case"JsdocTypeName":hn={type:"JsdocTypeProperty",value:pt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":hn={type:"JsdocTypeProperty",value:pt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":hn={type:"JsdocTypeProperty",value:pt.value,meta:{quote:pt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(pt.specialType==="event")hn=pt;else throw new u(pt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new u(pt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(He&&!z.consume("]")){let Vl=z.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${Vl.type}' with text '${Vl.text}'`)}return{type:"JsdocTypeNamePath",left:G(oe),right:hn,pathType:_e}},"namePathParslet")}b(Ie,"createNamePathParslet");function ye({allowedAdditionalTokens:p}){return Z({name:"nameParslet",accept:b(w=>w==="Identifier"||w==="this"||w==="new"||p.includes(w),"accept"),parsePrefix:b(w=>{let{type:k,text:z}=w.lexer.current;return w.consume(k),{type:"JsdocTypeName",value:z}},"parsePrefix")})}b(ye,"createNameParslet");let Re=Z({name:"stringValueParslet",accept:b(p=>p==="StringValue","accept"),parsePrefix:b(p=>{let w=p.lexer.current.text;return p.consume("StringValue"),{type:"JsdocTypeStringValue",value:w.slice(1,-1),meta:{quote:w[0]==="'"?"single":"double"}}},"parsePrefix")});function Ze({pathGrammar:p,allowedTypes:w}){return Z({name:"specialNamePathParslet",accept:b(k=>w.includes(k),"accept"),parsePrefix:b(k=>{let z=k.lexer.current.type;if(k.consume(z),!k.consume(":"))return{type:"JsdocTypeName",value:z};let ee,oe=k.lexer.current;if(k.consume("StringValue"))ee={type:"JsdocTypeSpecialNamePath",value:oe.text.slice(1,-1),specialType:z,meta:{quote:oe.text[0]==="'"?"single":"double"}};else{let _e="",He=["Identifier","@","/"];for(;He.some(At=>k.consume(At));)_e+=oe.text,oe=k.lexer.current;ee={type:"JsdocTypeSpecialNamePath",value:_e,specialType:z,meta:{quote:void 0}}}let ie=new te(p,k.lexer,k),Te=ie.parseInfixIntermediateType(ee,M.ALL);return k.acceptLexerState(ie),G(Te)},"parsePrefix")})}b(Ze,"createSpecialNamePathParslet");let qe=[ye({allowedAdditionalTokens:["external","module"]}),Re,le,Ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ce=[...qe,Ze({allowedTypes:["event"],pathGrammar:qe})];function Se(p){let w;if(p.type==="JsdocTypeParameterList")w=p.elements;else if(p.type==="JsdocTypeParenthesis")w=[p.element];else throw new u(p);return w.map(k=>X(k))}b(Se,"getParameters");function Ft(p){let w=Se(p);if(w.some(k=>k.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return w}b(Ft,"getUnnamedParameters");function ft({allowNamedParameters:p,allowNoReturnType:w,allowWithoutParenthesis:k,allowNewAsFunctionKeyword:z}){return Z({name:"functionParslet",accept:b((ee,oe)=>ee==="function"||z&&ee==="new"&&oe==="(","accept"),parsePrefix:b(ee=>{let oe=ee.consume("new");ee.consume("function");let ie=ee.lexer.current.type==="(";if(!ie){if(!k)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Te={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:oe,parenthesis:ie},_e=ee.parseIntermediateType(M.FUNCTION);if(p===void 0)Te.parameters=Ft(_e);else{if(oe&&_e.type==="JsdocTypeFunction"&&_e.arrow)return Te=_e,Te.constructor=!0,Te;Te.parameters=Se(_e);for(let He of Te.parameters)if(He.type==="JsdocTypeKeyValue"&&!p.includes(He.key))throw new Error(`only allowed named parameters are ${p.join(", ")} but got ${He.type}`)}if(ee.consume(":"))Te.returnType=ee.parseType(M.PREFIX);else if(!w)throw new Error("function is missing return type");return Te},"parsePrefix")})}b(ft,"createFunctionParslet");function wt({allowPostfix:p,allowEnclosingBrackets:w}){return Z({name:"variadicParslet",accept:b(k=>k==="...","accept"),precedence:M.PREFIX,parsePrefix:b(k=>{k.consume("...");let z=w&&k.consume("[");try{let ee=k.parseType(M.PREFIX);if(z&&!k.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:G(ee),meta:{position:"prefix",squareBrackets:z}}}catch(ee){if(ee instanceof a){if(z)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw ee}},"parsePrefix"),parseInfix:p?(k,z)=>(k.consume("..."),{type:"JsdocTypeVariadic",element:G(z),meta:{position:"suffix",squareBrackets:!1}}):void 0})}b(wt,"createVariadicParslet");let an=Z({name:"symbolParslet",accept:b(p=>p==="(","accept"),precedence:M.SYMBOL,parseInfix:b((p,w)=>{if(w.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");p.consume("(");let k={type:"JsdocTypeSymbol",value:w.value};if(!p.consume(")")){let z=p.parseIntermediateType(M.SYMBOL);if(k.element=R(z),!p.consume(")"))throw new Error("Symbol does not end after value")}return k},"parseInfix")}),sn=Z({name:"arrayBracketsParslet",precedence:M.ARRAY_BRACKETS,accept:b((p,w)=>p==="["&&w==="]","accept"),parseInfix:b((p,w)=>(p.consume("["),p.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[G(w)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function Yt({objectFieldGrammar:p,allowKeyTypes:w}){return Z({name:"objectParslet",accept:b(k=>k==="{","accept"),parsePrefix:b(k=>{k.consume("{");let z={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!k.consume("}")){let ee,oe=new te(p,k.lexer,k);for(;;){oe.acceptLexerState(k);let ie=oe.parseIntermediateType(M.OBJECT);k.acceptLexerState(oe),ie===void 0&&w&&(ie=k.parseIntermediateType(M.OBJECT));let Te=!1;if(ie.type==="JsdocTypeNullable"&&(Te=!0,ie=ie.element),ie.type==="JsdocTypeNumber"||ie.type==="JsdocTypeName"||ie.type==="JsdocTypeStringValue"){let _e;ie.type==="JsdocTypeStringValue"&&(_e=ie.meta.quote),z.elements.push({type:"JsdocTypeObjectField",key:ie.value.toString(),right:void 0,optional:Te,readonly:!1,meta:{quote:_e}})}else if(ie.type==="JsdocTypeObjectField"||ie.type==="JsdocTypeJsdocObjectField")z.elements.push(ie);else throw new u(ie);if(k.lexer.current.startOfLine)ee="linebreak";else if(k.consume(","))ee="comma";else if(k.consume(";"))ee="semicolon";else break;if(k.lexer.current.type==="}")break}if(z.meta.separator=ee??"comma",!k.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return z},"parsePrefix")})}b(Yt,"createObjectParslet");function Xt({allowSquaredProperties:p,allowKeyTypes:w,allowReadonly:k,allowOptional:z}){return Z({name:"objectFieldParslet",precedence:M.KEY_VALUE,accept:b(ee=>ee===":","accept"),parseInfix:b((ee,oe)=>{var ie;let Te=!1,_e=!1;z&&oe.type==="JsdocTypeNullable"&&(Te=!0,oe=oe.element),k&&oe.type==="JsdocTypeReadonlyProperty"&&(_e=!0,oe=oe.element);let He=(ie=ee.baseParser)!==null&&ie!==void 0?ie:ee;if(He.acceptLexerState(ee),oe.type==="JsdocTypeNumber"||oe.type==="JsdocTypeName"||oe.type==="JsdocTypeStringValue"||q(oe)){if(q(oe)&&!p)throw new u(oe);He.consume(":");let At;oe.type==="JsdocTypeStringValue"&&(At=oe.meta.quote);let pt=He.parseType(M.KEY_VALUE);return ee.acceptLexerState(He),{type:"JsdocTypeObjectField",key:q(oe)?oe:oe.value.toString(),right:pt,optional:Te,readonly:_e,meta:{quote:At}}}else{if(!w)throw new u(oe);He.consume(":");let At=He.parseType(M.KEY_VALUE);return ee.acceptLexerState(He),{type:"JsdocTypeJsdocObjectField",left:G(oe),right:At}}},"parseInfix")})}b(Xt,"createObjectFieldParslet");function Qt({allowOptional:p,allowVariadic:w}){return Z({name:"keyValueParslet",precedence:M.KEY_VALUE,accept:b(k=>k===":","accept"),parseInfix:b((k,z)=>{let ee=!1,oe=!1;if(p&&z.type==="JsdocTypeNullable"&&(ee=!0,z=z.element),w&&z.type==="JsdocTypeVariadic"&&z.element!==void 0&&(oe=!0,z=z.element),z.type!=="JsdocTypeName")throw new u(z);k.consume(":");let ie=k.parseType(M.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:z.value,right:ie,optional:ee,variadic:oe}},"parseInfix")})}b(Qt,"createKeyValueParslet");let xr=[...fe,ft({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Re,Ze({allowedTypes:["module","external","event"],pathGrammar:ce}),wt({allowEnclosingBrackets:!0,allowPostfix:!0}),ye({allowedAdditionalTokens:["keyof"]}),an,sn,Ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce})],ro=[...xr,Yt({objectFieldGrammar:[ye({allowedAdditionalTokens:["module","in"]}),Xt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...xr],allowKeyTypes:!0}),Qt({allowOptional:!0,allowVariadic:!0})],St=Z({name:"typeOfParslet",accept:b(p=>p==="typeof","accept"),parsePrefix:b(p=>(p.consume("typeof"),{type:"JsdocTypeTypeof",element:G(p.parseType(M.KEY_OF_TYPE_OF))}),"parsePrefix")}),Er=[ye({allowedAdditionalTokens:["module","keyof","event","external","in"]}),re,ae,Re,le,Xt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],ln=[...fe,Yt({allowKeyTypes:!1,objectFieldGrammar:Er}),ye({allowedAdditionalTokens:["event","external","in"]}),St,ft({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),wt({allowEnclosingBrackets:!1,allowPostfix:!1}),ye({allowedAdditionalTokens:["keyof"]}),Ze({allowedTypes:["module"],pathGrammar:ce}),Ie({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ce}),Qt({allowOptional:!1,allowVariadic:!1}),an];function un({allowQuestionMark:p}){return Z({name:"tupleParslet",accept:b(w=>w==="[","accept"),parsePrefix:b(w=>{w.consume("[");let k={type:"JsdocTypeTuple",elements:[]};if(w.consume("]"))return k;let z=w.parseIntermediateType(M.ALL);if(z.type==="JsdocTypeParameterList"?z.elements[0].type==="JsdocTypeKeyValue"?k.elements=z.elements.map(V):k.elements=z.elements.map(G):z.type==="JsdocTypeKeyValue"?k.elements=[V(z)]:k.elements=[G(z)],!w.consume("]"))throw new Error("Unterminated '['");if(!p&&k.elements.some(ee=>ee.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return k},"parsePrefix")})}b(un,"createTupleParslet");let no=Z({name:"keyOfParslet",accept:b(p=>p==="keyof","accept"),parsePrefix:b(p=>(p.consume("keyof"),{type:"JsdocTypeKeyof",element:G(p.parseType(M.KEY_OF_TYPE_OF))}),"parsePrefix")}),wr=Z({name:"importParslet",accept:b(p=>p==="import","accept"),parsePrefix:b(p=>{if(p.consume("import"),!p.consume("("))throw new Error("Missing parenthesis after import keyword");let w=p.parseType(M.PREFIX);if(w.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!p.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:w}},"parsePrefix")}),Zt=Z({name:"readonlyPropertyParslet",accept:b(p=>p==="readonly","accept"),parsePrefix:b(p=>(p.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:p.parseType(M.KEY_VALUE)}),"parsePrefix")}),$=Z({name:"arrowFunctionParslet",precedence:M.ARROW,accept:b(p=>p==="=>","accept"),parseInfix:b((p,w)=>(p.consume("=>"),{type:"JsdocTypeFunction",parameters:Se(w).map(Q),arrow:!0,constructor:!1,parenthesis:!0,returnType:p.parseType(M.OBJECT)}),"parseInfix")}),H=Z({name:"intersectionParslet",accept:b(p=>p==="&","accept"),precedence:M.INTERSECTION,parseInfix:b((p,w)=>{p.consume("&");let k=[];do k.push(p.parseType(M.INTERSECTION));while(p.consume("&"));return{type:"JsdocTypeIntersection",elements:[G(w),...k]}},"parseInfix")}),ue=Z({name:"predicateParslet",precedence:M.INFIX,accept:b(p=>p==="is","accept"),parseInfix:b((p,w)=>{if(w.type!=="JsdocTypeName")throw new u(w,"A typescript predicate always has to have a name on the left side.");return p.consume("is"),{type:"JsdocTypePredicate",left:w,right:G(p.parseIntermediateType(M.INFIX))}},"parseInfix")}),de=Z({name:"objectSquareBracketPropertyParslet",accept:b(p=>p==="[","accept"),parsePrefix:b(p=>{if(p.baseParser===void 0)throw new Error("Only allowed inside object grammar");p.consume("[");let w=p.lexer.current.text;p.consume("Identifier");let k;if(p.consume(":")){let z=p.baseParser;z.acceptLexerState(p),k={type:"JsdocTypeIndexSignature",key:w,right:z.parseType(M.ARRAY_BRACKETS)},p.acceptLexerState(z)}else if(p.consume("in")){let z=p.baseParser;z.acceptLexerState(p),k={type:"JsdocTypeMappedType",key:w,right:z.parseType(M.ARRAY_BRACKETS)},p.acceptLexerState(z)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!p.consume("]"))throw new Error("Unterminated square brackets");return k},"parsePrefix")}),Ae=[Zt,ye({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),re,ae,Re,le,Xt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),de],se=[...fe,Yt({allowKeyTypes:!1,objectFieldGrammar:Ae}),St,no,wr,Re,ft({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),un({allowQuestionMark:!1}),wt({allowEnclosingBrackets:!1,allowPostfix:!1}),ye({allowedAdditionalTokens:["event","external","in"]}),Ze({allowedTypes:["module"],pathGrammar:ce}),sn,$,Ie({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ce}),H,ue,Qt({allowVariadic:!0,allowOptional:!0})];function ot(p,w){switch(w){case"closure":return new te(ln,p).parse();case"jsdoc":return new te(ro,p).parse();case"typescript":return new te(se,p).parse()}}b(ot,"parse");function yt(p,w=["typescript","closure","jsdoc"]){let k;for(let z of w)try{return ot(p,z)}catch(ee){k=ee}throw k}b(yt,"tryParse");function ke(p,w){let k=p[w.type];if(k===void 0)throw new Error(`In this set of transform rules exists no rule for type ${w.type}.`);return k(w,z=>ke(p,z))}b(ke,"transform");function xe(p){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}b(xe,"notAvailableTransform");function er(p){let w={params:[]};for(let k of p.parameters)k.type==="JsdocTypeKeyValue"?k.key==="this"?w.this=k.right:k.key==="new"?w.new=k.right:w.params.push(k):w.params.push(k);return w}b(er,"extractSpecialParams");function at(p,w,k){return p==="prefix"?k+w:w+k}b(at,"applyPosition");function Ce(p,w){switch(w){case"double":return`"${p}"`;case"single":return`'${p}'`;case void 0:return p}}b(Ce,"quote");function Sr(){return{JsdocTypeParenthesis:b((p,w)=>`(${p.element!==void 0?w(p.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:b((p,w)=>`keyof ${w(p.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:b((p,w)=>{if(p.arrow){if(p.returnType===void 0)throw new Error("Arrow function needs a return type.");let k=`(${p.parameters.map(w).join(", ")}) => ${w(p.returnType)}`;return p.constructor&&(k="new "+k),k}else{let k=p.constructor?"new":"function";return p.parenthesis&&(k+=`(${p.parameters.map(w).join(", ")})`,p.returnType!==void 0&&(k+=`: ${w(p.returnType)}`)),k}},"JsdocTypeFunction"),JsdocTypeName:b(p=>p.value,"JsdocTypeName"),JsdocTypeTuple:b((p,w)=>`[${p.elements.map(w).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:b((p,w)=>p.meta.position===void 0?"...":at(p.meta.position,w(p.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:b((p,w)=>{let k=w(p.left),z=w(p.right);switch(p.pathType){case"inner":return`${k}~${z}`;case"instance":return`${k}#${z}`;case"property":return`${k}.${z}`;case"property-brackets":return`${k}[${z}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:b(p=>Ce(p.value,p.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:b(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:b((p,w)=>{if(p.meta.brackets==="square"){let k=p.elements[0],z=w(k);return k.type==="JsdocTypeUnion"||k.type==="JsdocTypeIntersection"?`(${z})[]`:`${z}[]`}else return`${w(p.left)}${p.meta.dot?".":""}<${p.elements.map(w).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:b((p,w)=>`import(${w(p.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:b((p,w)=>{let k="";return p.readonly&&(k+="readonly "),typeof p.key=="string"?k+=Ce(p.key,p.meta.quote):k+=w(p.key),p.optional&&(k+="?"),p.right===void 0?k:k+`: ${w(p.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:b((p,w)=>`${w(p.left)}: ${w(p.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:b((p,w)=>{let k=p.key;return p.optional&&(k+="?"),p.variadic&&(k="..."+k),p.right===void 0?k:k+`: ${w(p.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:b(p=>`${p.specialType}:${Ce(p.value,p.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:b((p,w)=>at(p.meta.position,w(p.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:b(()=>"null","JsdocTypeNull"),JsdocTypeNullable:b((p,w)=>at(p.meta.position,w(p.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:b(p=>p.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:b((p,w)=>`{${p.elements.map(w).join((p.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:b((p,w)=>at(p.meta.position,w(p.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:b((p,w)=>`${p.value}(${p.element!==void 0?w(p.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:b((p,w)=>`typeof ${w(p.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:b(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:b((p,w)=>p.elements.map(w).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:b(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:b((p,w)=>p.elements.map(w).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:b(p=>Ce(p.value,p.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:b((p,w)=>`${w(p.left)} is ${w(p.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:b((p,w)=>`[${p.key}: ${w(p.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:b((p,w)=>`[${p.key} in ${w(p.right)}]`,"JsdocTypeMappedType")}}b(Sr,"stringifyRules");let oo=Sr();function cn(p){return ke(oo,p)}b(cn,"stringify");let tr=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function nt(p){let w={type:"NameExpression",name:p};return tr.includes(p)&&(w.reservedWord=!0),w}b(nt,"makeName");let Ar={JsdocTypeOptional:b((p,w)=>{let k=w(p.element);return k.optional=!0,k},"JsdocTypeOptional"),JsdocTypeNullable:b((p,w)=>{let k=w(p.element);return k.nullable=!0,k},"JsdocTypeNullable"),JsdocTypeNotNullable:b((p,w)=>{let k=w(p.element);return k.nullable=!1,k},"JsdocTypeNotNullable"),JsdocTypeVariadic:b((p,w)=>{if(p.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let k=w(p.element);return k.repeatable=!0,k},"JsdocTypeVariadic"),JsdocTypeAny:b(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:b(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:b(p=>nt(Ce(p.value,p.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:b(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:b(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:b((p,w)=>{let k=er(p),z={type:"FunctionType",params:k.params.map(w)};return k.this!==void 0&&(z.this=w(k.this)),k.new!==void 0&&(z.new=w(k.new)),p.returnType!==void 0&&(z.result=w(p.returnType)),z},"JsdocTypeFunction"),JsdocTypeGeneric:b((p,w)=>({type:"TypeApplication",applications:p.elements.map(k=>w(k)),expression:w(p.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:b(p=>nt(p.specialType+":"+Ce(p.value,p.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:b(p=>p.value!=="function"?nt(p.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:b(p=>nt(p.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:b((p,w)=>{let k={type:"RecordType",fields:[]};for(let z of p.elements)z.type!=="JsdocTypeObjectField"&&z.type!=="JsdocTypeJsdocObjectField"?k.fields.push({type:"FieldType",key:w(z),value:void 0}):k.fields.push(w(z));return k},"JsdocTypeObject"),JsdocTypeObjectField:b((p,w)=>{if(typeof p.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:nt(Ce(p.key,p.meta.quote)),value:p.right===void 0?void 0:w(p.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:b((p,w)=>({type:"FieldType",key:w(p.left),value:w(p.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:b((p,w)=>({type:"TypeUnion",elements:p.elements.map(k=>w(k))}),"JsdocTypeUnion"),JsdocTypeKeyValue:b((p,w)=>({type:"FieldType",key:nt(p.key),value:p.right===void 0?void 0:w(p.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:b((p,w)=>{let k=w(p.left),z;p.right.type==="JsdocTypeSpecialNamePath"?z=w(p.right).name:z=Ce(p.right.value,p.right.meta.quote);let ee=p.pathType==="inner"?"~":p.pathType==="instance"?"#":".";return nt(`${k.name}${ee}${z}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:b(p=>{let w="",k=p.element,z=!1;return k?.type==="JsdocTypeVariadic"&&(k.meta.position==="prefix"?w="...":z=!0,k=k.element),k?.type==="JsdocTypeName"?w+=k.value:k?.type==="JsdocTypeNumber"&&(w+=k.value.toString()),z&&(w+="..."),nt(`${p.value}(${w})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:b((p,w)=>w(G(p.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:xe,JsdocTypeIndexSignature:xe,JsdocTypeImport:xe,JsdocTypeKeyof:xe,JsdocTypeTuple:xe,JsdocTypeTypeof:xe,JsdocTypeIntersection:xe,JsdocTypeProperty:xe,JsdocTypePredicate:xe};function Tr(p){return ke(Ar,p)}b(Tr,"catharsisTransform");function it(p){switch(p){case void 0:return"none";case"single":return"single";case"double":return"double"}}b(it,"getQuoteStyle");function pn(p){switch(p){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}b(pn,"getMemberType");function rr(p,w){return w.length===2?{type:p,left:w[0],right:w[1]}:{type:p,left:w[0],right:rr(p,w.slice(1))}}b(rr,"nestResults");let dn={JsdocTypeOptional:b((p,w)=>({type:"OPTIONAL",value:w(p.element),meta:{syntax:p.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:b((p,w)=>({type:"NULLABLE",value:w(p.element),meta:{syntax:p.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:b((p,w)=>({type:"NOT_NULLABLE",value:w(p.element),meta:{syntax:p.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:b((p,w)=>{let k={type:"VARIADIC",meta:{syntax:p.meta.position==="prefix"?"PREFIX_DOTS":p.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return p.element!==void 0&&(k.value=w(p.element)),k},"JsdocTypeVariadic"),JsdocTypeName:b(p=>({type:"NAME",name:p.value}),"JsdocTypeName"),JsdocTypeTypeof:b((p,w)=>({type:"TYPE_QUERY",name:w(p.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:b((p,w)=>({type:"TUPLE",entries:p.elements.map(w)}),"JsdocTypeTuple"),JsdocTypeKeyof:b((p,w)=>({type:"KEY_QUERY",value:w(p.element)}),"JsdocTypeKeyof"),JsdocTypeImport:b(p=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:it(p.element.meta.quote),string:p.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:b(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:b(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:b((p,w)=>{let k=er(p),z={type:p.arrow?"ARROW":"FUNCTION",params:k.params.map(ee=>{if(ee.type==="JsdocTypeKeyValue"){if(ee.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:ee.key,typeName:w(ee.right)}}else return w(ee)}),new:null,returns:null};return k.this!==void 0?z.this=w(k.this):p.arrow||(z.this=null),k.new!==void 0&&(z.new=w(k.new)),p.returnType!==void 0&&(z.returns=w(p.returnType)),z},"JsdocTypeFunction"),JsdocTypeGeneric:b((p,w)=>{let k={type:"GENERIC",subject:w(p.left),objects:p.elements.map(w),meta:{syntax:p.meta.brackets==="square"?"SQUARE_BRACKET":p.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return p.meta.brackets==="square"&&p.elements[0].type==="JsdocTypeFunction"&&!p.elements[0].parenthesis&&(k.objects[0]={type:"NAME",name:"function"}),k},"JsdocTypeGeneric"),JsdocTypeObjectField:b((p,w)=>{if(typeof p.key!="string")throw new Error("Index signatures and mapped types are not supported");if(p.right===void 0)return{type:"RECORD_ENTRY",key:p.key,quoteStyle:it(p.meta.quote),value:null,readonly:!1};let k=w(p.right);return p.optional&&(k={type:"OPTIONAL",value:k,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:p.key.toString(),quoteStyle:it(p.meta.quote),value:k,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:b(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:b((p,w)=>{if(p.right===void 0)return{type:"RECORD_ENTRY",key:p.key,quoteStyle:"none",value:null,readonly:!1};let k=w(p.right);return p.optional&&(k={type:"OPTIONAL",value:k,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:p.key,quoteStyle:"none",value:k,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:b((p,w)=>{let k=[];for(let z of p.elements)(z.type==="JsdocTypeObjectField"||z.type==="JsdocTypeJsdocObjectField")&&k.push(w(z));return{type:"RECORD",entries:k}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:b(p=>{if(p.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${p.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:it(p.meta.quote),path:p.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:b((p,w)=>{let k=!1,z,ee;p.right.type==="JsdocTypeSpecialNamePath"&&p.right.specialType==="event"?(k=!0,z=p.right.value,ee=it(p.right.meta.quote)):(z=p.right.value,ee=it(p.right.meta.quote));let oe={type:pn(p.pathType),owner:w(p.left),name:z,quoteStyle:ee,hasEventPrefix:k};if(oe.owner.type==="MODULE"){let ie=oe.owner;return oe.owner=oe.owner.value,ie.value=oe,ie}else return oe},"JsdocTypeNamePath"),JsdocTypeUnion:b((p,w)=>rr("UNION",p.elements.map(w)),"JsdocTypeUnion"),JsdocTypeParenthesis:b((p,w)=>({type:"PARENTHESIS",value:w(G(p.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:b(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:b(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:b(p=>({type:"STRING_VALUE",quoteStyle:it(p.meta.quote),string:p.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:b((p,w)=>rr("INTERSECTION",p.elements.map(w)),"JsdocTypeIntersection"),JsdocTypeNumber:b(p=>({type:"NUMBER_VALUE",number:p.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:xe,JsdocTypeProperty:xe,JsdocTypePredicate:xe,JsdocTypeMappedType:xe,JsdocTypeIndexSignature:xe};function fn(p){return ke(dn,p)}b(fn,"jtpTransform");function Cr(){return{JsdocTypeIntersection:b((p,w)=>({type:"JsdocTypeIntersection",elements:p.elements.map(w)}),"JsdocTypeIntersection"),JsdocTypeGeneric:b((p,w)=>({type:"JsdocTypeGeneric",left:w(p.left),elements:p.elements.map(w),meta:{dot:p.meta.dot,brackets:p.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:b(p=>p,"JsdocTypeNullable"),JsdocTypeUnion:b((p,w)=>({type:"JsdocTypeUnion",elements:p.elements.map(w)}),"JsdocTypeUnion"),JsdocTypeUnknown:b(p=>p,"JsdocTypeUnknown"),JsdocTypeUndefined:b(p=>p,"JsdocTypeUndefined"),JsdocTypeTypeof:b((p,w)=>({type:"JsdocTypeTypeof",element:w(p.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:b((p,w)=>{let k={type:"JsdocTypeSymbol",value:p.value};return p.element!==void 0&&(k.element=w(p.element)),k},"JsdocTypeSymbol"),JsdocTypeOptional:b((p,w)=>({type:"JsdocTypeOptional",element:w(p.element),meta:{position:p.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:b((p,w)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:p.elements.map(w)}),"JsdocTypeObject"),JsdocTypeNumber:b(p=>p,"JsdocTypeNumber"),JsdocTypeNull:b(p=>p,"JsdocTypeNull"),JsdocTypeNotNullable:b((p,w)=>({type:"JsdocTypeNotNullable",element:w(p.element),meta:{position:p.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:b(p=>p,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:b((p,w)=>({type:"JsdocTypeObjectField",key:p.key,right:p.right===void 0?void 0:w(p.right),optional:p.optional,readonly:p.readonly,meta:p.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:b((p,w)=>({type:"JsdocTypeJsdocObjectField",left:w(p.left),right:w(p.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:b((p,w)=>({type:"JsdocTypeKeyValue",key:p.key,right:p.right===void 0?void 0:w(p.right),optional:p.optional,variadic:p.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:b((p,w)=>({type:"JsdocTypeImport",element:w(p.element)}),"JsdocTypeImport"),JsdocTypeAny:b(p=>p,"JsdocTypeAny"),JsdocTypeStringValue:b(p=>p,"JsdocTypeStringValue"),JsdocTypeNamePath:b(p=>p,"JsdocTypeNamePath"),JsdocTypeVariadic:b((p,w)=>{let k={type:"JsdocTypeVariadic",meta:{position:p.meta.position,squareBrackets:p.meta.squareBrackets}};return p.element!==void 0&&(k.element=w(p.element)),k},"JsdocTypeVariadic"),JsdocTypeTuple:b((p,w)=>({type:"JsdocTypeTuple",elements:p.elements.map(w)}),"JsdocTypeTuple"),JsdocTypeName:b(p=>p,"JsdocTypeName"),JsdocTypeFunction:b((p,w)=>{let k={type:"JsdocTypeFunction",arrow:p.arrow,parameters:p.parameters.map(w),constructor:p.constructor,parenthesis:p.parenthesis};return p.returnType!==void 0&&(k.returnType=w(p.returnType)),k},"JsdocTypeFunction"),JsdocTypeKeyof:b((p,w)=>({type:"JsdocTypeKeyof",element:w(p.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:b((p,w)=>({type:"JsdocTypeParenthesis",element:w(p.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:b(p=>p,"JsdocTypeProperty"),JsdocTypePredicate:b((p,w)=>({type:"JsdocTypePredicate",left:w(p.left),right:w(p.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:b((p,w)=>({type:"JsdocTypeIndexSignature",key:p.key,right:w(p.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:b((p,w)=>({type:"JsdocTypeMappedType",key:p.key,right:w(p.right)}),"JsdocTypeMappedType")}}b(Cr,"identityTransformRules");let yn={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"]};function _r(p,w,k,z,ee){z?.(p,w,k);let oe=yn[p.type];for(let ie of oe){let Te=p[ie];if(Te!==void 0)if(Array.isArray(Te))for(let _e of Te)_r(_e,p,ie,z,ee);else _r(Te,p,ie,z,ee)}ee?.(p,w,k)}b(_r,"_traverse");function Or(p,w,k){_r(p,void 0,void 0,w,k)}b(Or,"traverse"),r.catharsisTransform=Tr,r.identityTransformRules=Cr,r.jtpTransform=fn,r.parse=ot,r.stringify=cn,r.stringifyRules=Sr,r.transform=ke,r.traverse=Or,r.tryParse=yt,r.visitorKeys=yn})}),kb=/^['"]|['"]$/g,nj=b(e=>e.replace(kb,""),"trimQuotes"),oj=b(e=>kb.test(e),"includesQuotes"),Rb=b(e=>{let t=nj(e);return oj(e)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),aj=b(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=zn(r.value)}),{name:"object",value:t};default:throw new Uo({type:e,language:"Typescript"})}},"convertSig"),zn=b(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(zn)};case"signature":return{...n,...aj(e)};case"union":let o;return e.elements?.every(a=>a.name==="literal")?o={...n,name:"enum",value:e.elements?.map(a=>Rb(a.value))}:o={...n,name:t,value:e.elements?.map(zn)},o;case"intersection":return{...n,name:t,value:e.elements?.map(zn)};default:return{...n,name:"other",value:t}}},"convert"),ij=b(e=>e.name==="literal","isLiteral"),sj=b(e=>e.value.replace(/['|"]/g,""),"toEnumOption"),lj=b(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=Vn(r.value)}),{name:"object",value:t};default:throw new Uo({type:e,language:"Flow"})}},"convertSig"),Vn=b(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(Vn)};case"signature":return{...n,...lj(e)};case"union":return e.elements?.every(ij)?{...n,name:"enum",value:e.elements?.map(sj)}:{...n,name:t,value:e.elements?.map(Vn)};case"intersection":return{...n,name:t,value:e.elements?.map(Vn)};default:return{...n,name:"other",value:t}}},"convert"),uj=db(tj(),1),cj=/^\(.*\) => /,$n=b(e=>{let{name:t,raw:r,computed:n,value:o}=e,a={};switch(typeof r<"u"&&(a.raw=r),t){case"enum":{let s=n?o:o.map(l=>Rb(l.value));return{...a,name:t,value:s}}case"string":case"number":case"symbol":return{...a,name:t};case"func":return{...a,name:"function"};case"bool":case"boolean":return{...a,name:"boolean"};case"arrayOf":case"array":return{...a,name:"array",value:o&&$n(o)};case"object":return{...a,name:t};case"objectOf":return{...a,name:t,value:$n(o)};case"shape":case"exact":let i=(0,uj.default)(o,s=>$n(s));return{...a,name:"object",value:i};case"union":return{...a,name:"union",value:o.map(s=>$n(s))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let u=t.split("|").map(c=>JSON.parse(c));return{...a,name:"enum",value:u}}catch{}let s=o?`${t}(${o})`:t,l=cj.test(t)?"function":"other";return{...a,name:l,value:s}}}},"convert"),Ws=b(e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return $n(t);if(r!=null)return zn(r);if(n!=null)return Vn(n)}catch(o){console.error(o)}return null},"convert"),pj=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(pj||{}),dj=["null","undefined"];function da(e){return dj.some(t=>t===e)}b(da,"isDefaultValueBlacklisted");var fj=b(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function Ks(e){return!!e.__docgenInfo}b(Ks,"hasDocgen");function Db(e){return e!=null&&Object.keys(e).length>0}b(Db,"isValidDocgenSection");function Fb(e,t){return Ks(e)?e.__docgenInfo[t]:null}b(Fb,"getDocgenSection");function jb(e){return Ks(e)?fj(e.__docgenInfo.description):""}b(jb,"getDocgenDescription");var zt;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(zt=zt||(zt={}));function Nb(e){return/^\s+$/.test(e)}b(Nb,"isSpace");function Bb(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}b(Bb,"splitCR");function fr(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}b(fr,"splitSpace");function Lb(e){return e.split(/\n/)}b(Lb,"splitLines");function qb(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}b(qb,"seedSpec");function Mb(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}b(Mb,"seedTokens");var yj=/^@\S+/;function Ub({fence:e="```"}={}){let t=Jb(e),r=b((n,o)=>t(n)?!o:o,"toggleFence");return b(function(n){let o=[[]],a=!1;for(let i of n)yj.test(i.tokens.description)&&!a?o.push([i]):o[o.length-1].push(i),a=r(i.tokens.description,a);return o},"parseBlock")}b(Ub,"getParser");function Jb(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}b(Jb,"getFencer");function $b({startLine:e=0,markers:t=zt}={}){let r=null,n=e;return b(function(o){let a=o,i=Mb();if([i.lineEnd,a]=Bb(a),[i.start,a]=fr(a),r===null&&a.startsWith(t.start)&&!a.startsWith(t.nostart)&&(r=[],i.delimiter=a.slice(0,t.start.length),a=a.slice(t.start.length),[i.postDelimiter,a]=fr(a)),r===null)return n++,null;let s=a.trimRight().endsWith(t.end);if(i.delimiter===""&&a.startsWith(t.delim)&&!a.startsWith(t.end)&&(i.delimiter=t.delim,a=a.slice(t.delim.length),[i.postDelimiter,a]=fr(a)),s){let l=a.trimRight();i.end=a.slice(l.length-t.end.length),a=l.slice(0,-t.end.length)}if(i.description=a,r.push({number:n,source:o,tokens:i}),n++,s){let l=r.slice();return r=null,l}return null},"parseSource")}b($b,"getParser");function zb({tokenizers:e}){return b(function(t){var r;let n=qb({source:t});for(let o of e)if(n=o(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n},"parseSpec")}b(zb,"getParser");function Vb(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}b(Vb,"tagTokenizer");function Hb(e="compact"){let t=Gb(e);return r=>{let n=0,o=[];for(let[s,{tokens:l}]of r.source.entries()){let u="";if(s===0&&l.description[0]!=="{")return r;for(let c of l.description)if(c==="{"&&n++,c==="}"&&n--,u+=c,n===0)break;if(o.push([l,u]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let a=[],i=o[0][0].postDelimiter.length;for(let[s,[l,u]]of o.entries())l.type=u,s>0&&(l.type=l.postDelimiter.slice(i)+u,l.postDelimiter=l.postDelimiter.slice(0,i)),[l.postType,l.description]=fr(l.description.slice(u.length)),a.push(l.type);return a[0]=a[0].slice(1),a[a.length-1]=a[a.length-1].slice(0,-1),r.type=t(a),r}}b(Hb,"typeTokenizer");var hj=b(e=>e.trim(),"trim");function Gb(e){return e==="compact"?t=>t.map(hj).join(""):e==="preserve"?t=>t.join(` +`):e}b(Gb,"getJoiner");var mj=b(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function Wb(){let e=b((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),o=n.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],r.name=`"${o[1]}"`,[r.postName,r.description]=fr(n.slice(r.name.length)),t;let a=0,i="",s=!1,l;for(let c of n){if(a===0&&Nb(c))break;c==="["&&a++,c==="]"&&a--,i+=c}if(a!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let u=i;if(i[0]==="["&&i[i.length-1]==="]"){s=!0,i=i.slice(1,-1);let c=i.split("=");if(i=c[0].trim(),c[1]!==void 0&&(l=c.slice(1).join("=").trim()),i==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(l==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!mj(l)&&/=(?!>)/.test(l))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=s,t.name=i,r.name=u,l!==void 0&&(t.default=l),[r.postName,r.description]=fr(n.slice(r.name.length)),t}}b(Wb,"nameTokenizer");function Kb(e="compact",t=zt){let r=Ys(e);return n=>(n.description=r(n.source,t),n)}b(Kb,"descriptionTokenizer");function Ys(e){return e==="compact"?Yb:e==="preserve"?Xb:e}b(Ys,"getJoiner");function Yb(e,t=zt){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}b(Yb,"compactJoiner");var gj=b((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),bj=b(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function Xb(e,t=zt){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(gj,0)),e.map(bj).join(` +`)}b(Xb,"preserveJoiner");function Qb({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=zt,tokenizers:o=[Vb(),Hb(r),Wb(),Kb(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let a=$b({startLine:e,markers:n}),i=Ub({fence:t}),s=zb({tokenizers:o}),l=Ys(r);return function(u){let c=[];for(let d of Lb(u)){let y=a(d);if(y===null)continue;let f=i(y),h=f.slice(1).map(s);c.push({description:l(f[0],n),tags:h,source:y,problems:h.reduce((g,_)=>g.concat(_.problems),[])})}return c}}b(Qb,"getParser");function Zb(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}b(Zb,"join");function e0(){return e=>e.source.map(({tokens:t})=>Zb(t)).join(` +`)}b(e0,"getStringifier");var vj={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0},Cne=Object.keys(vj);function t0(e,t={}){return Qb(t)(e)}b(t0,"parse");var _ne=e0(),Xs=db(rj(),1);function r0(e){return e!=null&&e.includes("@")}b(r0,"containsJsDoc");function n0(e){let t=`/** +`+(e??"").split(` +`).map(n=>` * ${n}`).join(` +`)+` +*/`,r=t0(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}b(n0,"parse");var xj={tags:["param","arg","argument","returns","ignore","deprecated"]},Ej=b((e,t=xj)=>{if(!r0(e))return{includesJsDoc:!1,ignore:!1};let r=n0(e),n=o0(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function o0(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let o=i0(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=s0(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=l0(n);o!=null&&(r.returns=o);break}default:break}return r}b(o0,"extractJsDocTags");function a0(e){return e.replace(/[\.-]$/,"")}b(a0,"normaliseParamName");function i0(e){if(!e.name||e.name==="-")return null;let t=el(e.type);return{name:e.name,type:t,description:Zs(e.description),getPrettyName:b(()=>a0(e.name),"getPrettyName"),getTypeName:b(()=>t?tl(t):null,"getTypeName")}}b(i0,"extractParam");function s0(e){return e.name?Qs(e.name,e.description):null}b(s0,"extractDeprecated");function Qs(e,t){let r=e===""?t:`${e} ${t}`;return Zs(r)}b(Qs,"joinNameAndDescription");function Zs(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}b(Zs,"normaliseDescription");function l0(e){let t=el(e.type);return t?{type:t,description:Qs(e.name,e.description),getTypeName:b(()=>tl(t),"getTypeName")}:null}b(l0,"extractReturns");var Ht=(0,Xs.stringifyRules)(),wj=Ht.JsdocTypeObject;Ht.JsdocTypeAny=()=>"any";Ht.JsdocTypeObject=(e,t)=>`(${wj(e,t)})`;Ht.JsdocTypeOptional=(e,t)=>t(e.element);Ht.JsdocTypeNullable=(e,t)=>t(e.element);Ht.JsdocTypeNotNullable=(e,t)=>t(e.element);Ht.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function el(e){try{return(0,Xs.parse)(e,"typescript")}catch{return null}}b(el,"extractType");function tl(e){return(0,Xs.transform)(Ht,e)}b(tl,"extractTypeName");function rl(e){return e.length>90}b(rl,"isTooLongForTypeSummary");function u0(e){return e.length>50}b(u0,"isTooLongForDefaultValueSummary");function je(e,t){return e===t?{summary:e}:{summary:e,detail:t}}b(je,"createSummaryValue");var One=b(e=>e.replace(/\\r\\n/g,"\\n"),"normalizeNewlines");function nl({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(nl).join(" | "):n??e)}b(nl,"generateUnionElement");function c0({name:e,raw:t,elements:r}){return r!=null?je(r.map(nl).join(" | ")):t!=null?je(t.replace(/^\|\s*/,"")):je(e)}b(c0,"generateUnion");function p0({type:e,raw:t}){return t!=null?je(t):je(e)}b(p0,"generateFuncSignature");function d0({type:e,raw:t}){return t!=null?rl(t)?je(e,t):je(t):je(e)}b(d0,"generateObjectSignature");function f0(e){let{type:t}=e;return t==="object"?d0(e):p0(e)}b(f0,"generateSignature");function y0({name:e,raw:t}){return t!=null?rl(t)?je(e,t):je(t):je(e)}b(y0,"generateDefault");function h0(e){if(e==null)return null;switch(e.name){case"union":return c0(e);case"signature":return f0(e);default:return y0(e)}}b(h0,"createType");function m0(e,t){if(e!=null){let{value:r}=e;if(!da(r))return u0(r)?je(t?.name,r):je(r)}return null}b(m0,"createDefaultValue");var Sj=b((e,t)=>{let{flowType:r,description:n,required:o,defaultValue:a}=t;return{name:e,type:h0(r),required:o,description:n,defaultValue:m0(a??null,r??null)}},"createFlowPropDef");function g0({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),je(["Array","Record","signature"].includes(e.name)?e.raw:r)}b(g0,"createType");function b0({defaultValue:e}){if(e!=null){let{value:t}=e;if(!da(t))return je(t)}return null}b(b0,"createDefaultValue");var Aj=b((e,t)=>{let{description:r,required:n}=t;return{name:e,type:g0(t),required:n,description:r,defaultValue:b0(t)}},"createTsPropDef");function v0(e){return e!=null?je(e.name):null}b(v0,"createType");function x0(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}b(x0,"isReactDocgenTypescript");function E0(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}b(E0,"isStringValued");function w0(e,t){if(e!=null){let{value:r}=e;if(!da(r))return x0(e)&&E0(t)?je(JSON.stringify(r)):je(r)}return null}b(w0,"createDefaultValue");function ol(e,t,r){let{description:n,required:o,defaultValue:a}=r;return{name:e,type:v0(t),required:o,description:n,defaultValue:w0(a,t)}}b(ol,"createBasicPropDef");function Wn(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let o={...n,params:n?.params?.map(a=>({name:a.getPrettyName(),description:a.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}b(Wn,"applyJsDocResult");var Tj=b((e,t,r)=>{let n=ol(e,t.type,t);return n.sbType=Ws(t),Wn(n,r)},"javaScriptFactory"),Cj=b((e,t,r)=>{let n=Aj(e,t);return n.sbType=Ws(t),Wn(n,r)},"tsFactory"),_j=b((e,t,r)=>{let n=Sj(e,t);return n.sbType=Ws(t),Wn(n,r)},"flowFactory"),Oj=b((e,t,r)=>{let n=ol(e,{name:"unknown"},t);return Wn(n,r)},"unknownFactory"),S0=b(e=>{switch(e){case"JavaScript":return Tj;case"TypeScript":return Cj;case"Flow":return _j;default:return Oj}},"getPropDefFactory"),A0=b(e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),Ij=b(e=>{let t=A0(e[0]),r=S0(t);return e.map(n=>{let o=n;return n.type?.elements&&(o={...n,type:{...n.type,value:n.type.elements}}),al(o.name,o,t,r)})},"extractComponentSectionArray"),Pj=b(e=>{let t=Object.keys(e),r=A0(e[t[0]]),n=S0(r);return t.map(o=>{let a=e[o];return a!=null?al(o,a,r,n):null}).filter(Boolean)},"extractComponentSectionObject"),Ine=b((e,t)=>{let r=Fb(e,t);return Db(r)?Array.isArray(r)?Ij(r):Pj(r):[]},"extractComponentProps");function al(e,t,r,n){let o=Ej(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}b(al,"extractProp");function kj(e){return e!=null?jb(e):""}b(kj,"extractComponentDescription");var kne=b(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n,a=o&&t?o(t):{};return a?Ot(a,r):r},"enhanceArgTypes"),T0="storybook/docs",Rne=`${T0}/panel`;var Dne=`${T0}/snippet-rendered`,Rj=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Rj||{}),Dj=/(addons\/|addon-|addon-essentials\/)(docs|controls)/,Fne=b(e=>e.presetsList?.some(t=>Dj.test(t.name)),"hasDocsOrControls");S();A();T();S();A();T();var Wne=__STORYBOOK_CHANNELS__,{Channel:Kne,PostMessageTransport:Yne,WebsocketTransport:Xne,createBrowserChannel:Qne}=__STORYBOOK_CHANNELS__;var qv=nr({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof mn=="function"&&mn;if(!c&&d)return d(u,!0);if(s)return s(u,!0);var y=new Error("Cannot find module '"+u+"'");throw y.code="MODULE_NOT_FOUND",y}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(h){var g=n[u][1][h];return i(g||h)},f,f.exports,r,n,o,a)}return o[u].exports}for(var s=typeof mn=="function"&&mn,l=0;l=0)return this.lastItem=this.list[s],this.list[s].val},a.prototype.set=function(i,s){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],this.list[l].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},a.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},a.prototype.forEach=function(i,s){var l;for(l=0;l0&&(x[v]={cacheItem:h,arg:arguments[v]},O?i(d,x):d.push(x),d.length>u&&s(d.shift())),f.wasMemoized=O,f.numArgs=v+1,_};return f.limit=u,f.wasMemoized=!1,f.cache=c,f.lru=d,f}};function i(u,c){var d=u.length,y=c.length,f,h,g;for(h=0;h=0&&(d=u[f],y=d.cacheItem.get(d.arg),!y||!y.size);f--)d.cacheItem.delete(d.arg)}function l(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}}),xt=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?o-1:0),i=1;i=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);var c=r-a/2,d=s+c,y=l+c,f=u+c;return n(d,y,f)}var iv={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function HN(e){if(typeof e!="string")return e;var t=e.toLowerCase();return iv[t]?"#"+iv[t]:e}var GN=/^#[a-fA-F0-9]{6}$/,WN=/^#[a-fA-F0-9]{8}$/,KN=/^#[a-fA-F0-9]{3}$/,YN=/^#[a-fA-F0-9]{4}$/,ml=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,XN=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,QN=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ZN=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Aa(e){if(typeof e!="string")throw new Et(3);var t=HN(e);if(t.match(GN))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(WN)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(KN))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(YN)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=ml.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=XN.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=QN.exec(t);if(i){var s=parseInt(""+i[1],10),l=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+eo(s,l,u)+")",d=ml.exec(c);if(!d)throw new Et(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var y=ZN.exec(t.substring(0,50));if(y){var f=parseInt(""+y[1],10),h=parseInt(""+y[2],10)/100,g=parseInt(""+y[3],10)/100,_="rgb("+eo(f,h,g)+")",v=ml.exec(_);if(!v)throw new Et(4,t,_);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+y[4])>1?parseFloat(""+y[4])/100:parseFloat(""+y[4])}}throw new Et(5)}function e3(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,l=o-a,u=i>.5?l/(2-o-a):l/(o+a);switch(o){case t:s=(r-n)/l+(r=1?Sa(e,t,r):"rgba("+eo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Sa(e.hue,e.saturation,e.lightness):"rgba("+eo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Et(2)}function Pl(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Il("#"+mr(e)+mr(t)+mr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Il("#"+mr(e.red)+mr(e.green)+mr(e.blue));throw new Et(6)}function Dt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Aa(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Pl(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Pl(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Et(7)}var a3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},i3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},s3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},l3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Jv(e){if(typeof e!="object")throw new Et(8);if(i3(e))return Dt(e);if(a3(e))return Pl(e);if(l3(e))return o3(e);if(s3(e))return n3(e);throw new Et(8)}function $v(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):$v(e,t,n)}}function Ta(e){return $v(e,e.length,[])}function Ca(e,t,r){return Math.max(e,Math.min(t,r))}function u3(e,t){if(t==="transparent")return t;var r=Uv(t);return Jv(en({},r,{lightness:Ca(0,1,r.lightness-parseFloat(e))}))}var c3=Ta(u3),vt=c3;function p3(e,t){if(t==="transparent")return t;var r=Uv(t);return Jv(en({},r,{lightness:Ca(0,1,r.lightness+parseFloat(e))}))}var d3=Ta(p3),gr=d3;function f3(e,t){if(t==="transparent")return t;var r=Aa(t),n=typeof r.alpha=="number"?r.alpha:1,o=en({},r,{alpha:Ca(0,1,(n*100+parseFloat(e)*100)/100)});return Dt(o)}var y3=Ta(f3),ba=y3;function h3(e,t){if(t==="transparent")return t;var r=Aa(t),n=typeof r.alpha=="number"?r.alpha:1,o=en({},r,{alpha:Ca(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Dt(o)}var m3=Ta(h3),ve=m3,g3=Object.create,zv=Object.defineProperty,b3=Object.getOwnPropertyDescriptor,v3=Object.getOwnPropertyNames,x3=Object.getPrototypeOf,E3=Object.prototype.hasOwnProperty,w3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),S3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of v3(t))!E3.call(e,o)&&o!==r&&zv(e,o,{get:()=>t[o],enumerable:!(n=b3(t,o))||n.enumerable});return e},A3=(e,t,r)=>(r=e!=null?g3(x3(e)):{},S3(t||!e||!e.__esModule?zv(r,"default",{value:e,enumerable:!0}):r,e)),T3=w3(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(s,l,u){var c,d,y,f=t.call(s),h=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(u.indexOf(s)>-1&&u.indexOf(l)>-1)return!0;if(u.push(s,l),f!=h||(c=n(s),d=n(l),c.length!=d.length||c.some(function(g){return!i(s[g],l[g],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":c=s.entries(),d=l.entries();do if(!i((y=c.next()).value,d.next().value,u))return!1;while(!y.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(y=0;ye.map(t=>typeof t<"u").filter(Boolean).length,C3=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(Vv([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,sv.isEqual)(t,n);if(typeof o<"u")return!(0,sv.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},_3=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Vv([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return C3(e.if,a)};function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),pv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},I3=["style","script"],P3=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,k3=/mailto:/i,R3=/\n{2,}$/,Hv=/^(\s*>[\s\S]*?)(?=\n{2,})/,D3=/^ *> ?/gm,F3=/^ {2,}\n/,j3=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Gv=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Wv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,N3=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,B3=/^(?:\n *)*\n/,L3=/\r\n?/g,q3=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,M3=/^\[\^([^\]]+)]/,U3=/\f/g,J3=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,$3=/^\s*?\[(x|\s)\]/,Kv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Yv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Xv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,kl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,z3=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Qv=/^)/,V3=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Rl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,H3=/^\{.*\}$/,G3=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,W3=/^<([^ >]+@[^ >]+)>/,K3=/^<([^ >]+:\/[^ >]+)>/,Y3=/-([a-z])?/gi,Zv=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,X3=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,Q3=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Z3=/^\[([^\]]*)\] ?\[([^\]]*)\]/,eB=/(\[|\])/g,tB=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,rB=/\t/g,nB=/^ *\| */,oB=/(^ *\||\| *$)/g,aB=/ *$/,iB=/^ *:-+: *$/,sB=/^ *:-+ *$/,lB=/^ *-+: *$/,_a="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",uB=new RegExp(`^([*_])\\1${_a}\\1\\1(?!\\1)`),cB=new RegExp(`^([*_])${_a}\\1(?!\\1|\\w)`),pB=new RegExp(`^==${_a}==`),dB=new RegExp(`^~~${_a}~~`),fB=/^\\([^0-9A-Za-z\s])/,yB=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,hB=/^\n+/,mB=/^([ \t]*)/,gB=/\\([^\\])/g,dv=/ *\n+$/,bB=/(?:^|\n)( *)$/,Nl="(?:\\d+\\.)",Bl="(?:[*+-])";function e2(e){return"( *)("+(e===1?Nl:Bl)+") +"}var t2=e2(1),r2=e2(2);function n2(e){return new RegExp("^"+(e===1?t2:r2))}var vB=n2(1),xB=n2(2);function o2(e){return new RegExp("^"+(e===1?t2:r2)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Nl:Bl)+" )[^\\n]*)*(\\n|$)","gm")}var a2=o2(1),i2=o2(2);function s2(e){let t=e===1?Nl:Bl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var l2=s2(1),u2=s2(2);function fv(e,t){let r=t===1,n=r?l2:u2,o=r?a2:i2,a=r?vB:xB;return{match(i,s,l){let u=bB.exec(l);return u&&(s.list||!s.inline&&!s.simple)?n.exec(i=u[1]+i):null},order:1,parse(i,s,l){let u=r?+i[2]:void 0,c=i[0].replace(R3,` +`).match(o),d=!1;return{items:c.map(function(y,f){let h=a.exec(y)[0].length,g=new RegExp("^ {1,"+h+"}","gm"),_=y.replace(g,"").replace(a,""),v=f===c.length-1,x=_.indexOf(` + +`)!==-1||v&&d;d=x;let O=l.inline,C=l.list,I;l.list=!0,x?(l.inline=!1,I=_.replace(dv,` + +`)):(l.inline=!0,I=_.replace(dv,""));let P=s(I,l);return l.inline=O,l.list=C,P}),ordered:r,start:u}},render:(i,s,l)=>e(i.ordered?"ol":"ul",{key:l.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},s(u,l))}))}}var EB=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),wB=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,c2=[Hv,Gv,Wv,Kv,Xv,Yv,Qv,Zv,a2,l2,i2,u2],SB=[...c2,/^[^\n]+(?: \n|\n{2,})/,kl,Rl];function AB(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function TB(e){return lB.test(e)?"right":iB.test(e)?"center":sB.test(e)?"left":null}function yv(e,t,r){let n=r.inTable;r.inTable=!0;let o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach(function(i,s){i.type==="26"?s!==0&&s!==o.length-1&&a.push([]):(i.type!=="27"||o[s+1]!=null&&o[s+1].type!=="26"||(i.text=i.text.replace(aB,"")),a[a.length-1].push(i))}),a}function CB(e,t,r){r.inline=!0;let n=yv(e[1],t,r),o=e[2].replace(oB,"").split("|").map(TB),a=function(i,s,l){return i.trim().split(` +`).map(function(u){return yv(u,s,l)})}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function hv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Gt(e){return function(t,r){return r.inline?e.exec(t):null}}function Wt(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function Rt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Xn(e){return function(t){return e.exec(t)}}function _B(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(a=>!c2.some(i=>i.test(a))&&(n+=a+` +`,a.trim()));let o=n.trimEnd();return o==""?null:[n,o]}function Qr(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function mv(e){return e.replace(gB,"$1")}function wa(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function OB(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function IB(e,t,r){return r.inline=!1,e(t,r)}var bl=(e,t,r)=>({children:wa(t,e[1],r)});function vl(){return{}}function xl(){return null}function PB(...e){return e.filter(Boolean).join(" ")}function El(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function kB(e="",t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||AB,t.namedCodesToUnicode=t.namedCodesToUnicode?br({},pv,t.namedCodesToUnicode):pv;let r=t.createElement||Fa;function n(f,h,...g){let _=El(t.overrides,`${f}.props`,{});return r(function(v,x){let O=El(x,v);return O?typeof O=="function"||typeof O=="object"&&"render"in O?O:El(x,`${v}.component`,v):v}(f,t.overrides),br({},h,_,{className:PB(h?.className,_.className)||void 0}),...g)}function o(f){f=f.replace(J3,"");let h=!1;t.forceInline?h=!0:t.forceBlock||(h=tB.test(f)===!1);let g=c(u(h?f:`${f.trimEnd().replace(hB,"")} + +`,{inline:h}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let _=t.wrapper||(h?"span":"div"),v;if(g.length>1||t.forceWrapper)v=g;else{if(g.length===1)return v=g[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return Fa(_,{key:"outer"},v)}function a(f){let h=f.match(P3);return h?h.reduce(function(g,_,v){let x=_.indexOf("=");if(x!==-1){let O=function(F){return F.indexOf("-")!==-1&&F.match(V3)===null&&(F=F.replace(Y3,function(D,U){return U.toUpperCase()})),F}(_.slice(0,x)).trim(),C=function(F){let D=F[0];return(D==='"'||D==="'")&&F.length>=2&&F[F.length-1]===D?F.slice(1,-1):F}(_.slice(x+1).trim()),I=cv[O]||O,P=g[I]=function(F,D){return F==="style"?D.split(/;\s?/).reduce(function(U,G){let X=G.slice(0,G.indexOf(":"));return U[X.trim().replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=G.slice(X.length+1).trim(),U},{}):F==="href"||F==="src"?Qr(D):(D.match(H3)&&(D=D.slice(1,D.length-1)),D==="true"||D!=="false"&&D)}(O,C);typeof P=="string"&&(kl.test(P)||Rl.test(P))&&(g[I]=Oe(o(P.trim()),{key:v}))}else _!=="style"&&(g[cv[_]||_]=!0);return g},{}):null}let i=[],s={},l={0:{match:Rt(Hv),order:1,parse:(f,h,g)=>({children:h(f[0].replace(D3,""),g)}),render:(f,h,g)=>n("blockquote",{key:g.key},h(f.children,g))},1:{match:Xn(F3),order:1,parse:vl,render:(f,h,g)=>n("br",{key:g.key})},2:{match:Rt(j3),order:1,parse:vl,render:(f,h,g)=>n("hr",{key:g.key})},3:{match:Rt(Wv),order:0,parse:f=>({lang:void 0,text:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(f,h,g)=>n("pre",{key:g.key},n("code",br({},f.attrs,{className:f.lang?`lang-${f.lang}`:""}),f.text))},4:{match:Rt(Gv),order:0,parse:f=>({attrs:a(f[3]||""),lang:f[2]||void 0,text:f[4],type:"3"})},5:{match:Wt(N3),order:3,parse:f=>({text:f[2]}),render:(f,h,g)=>n("code",{key:g.key},f.text)},6:{match:Rt(q3),order:0,parse:f=>(i.push({footnote:f[2],identifier:f[1]}),{}),render:xl},7:{match:Gt(M3),order:1,parse:f=>({target:`#${t.slugify(f[1])}`,text:f[1]}),render:(f,h,g)=>n("a",{key:g.key,href:Qr(f.target)},n("sup",{key:g.key},f.text))},8:{match:Gt($3),order:1,parse:f=>({completed:f[1].toLowerCase()==="x"}),render:(f,h,g)=>n("input",{checked:f.completed,key:g.key,readOnly:!0,type:"checkbox"})},9:{match:Rt(t.enforceAtxHeadings?Yv:Kv),order:1,parse:(f,h,g)=>({children:wa(h,f[2],g),id:t.slugify(f[2]),level:f[1].length}),render:(f,h,g)=>n(`h${f.level}`,{id:f.id,key:g.key},h(f.children,g))},10:{match:Rt(Xv),order:0,parse:(f,h,g)=>({children:wa(h,f[1],g),level:f[2]==="="?1:2,type:"9"})},11:{match:Xn(kl),order:1,parse(f,h,g){let[,_]=f[3].match(mB),v=new RegExp(`^${_}`,"gm"),x=f[3].replace(v,""),O=(C=x,SB.some(D=>D.test(C))?IB:wa);var C;let I=f[1].toLowerCase(),P=I3.indexOf(I)!==-1,F={attrs:a(f[2]),noInnerParse:P,tag:(P?I:f[1]).trim()};return g.inAnchor=g.inAnchor||I==="a",P?F.text=f[3]:F.children=O(h,x,g),g.inAnchor=!1,F},render:(f,h,g)=>n(f.tag,br({key:g.key},f.attrs),f.text||h(f.children,g))},13:{match:Xn(Rl),order:1,parse:f=>({attrs:a(f[2]||""),tag:f[1].trim()}),render:(f,h,g)=>n(f.tag,br({},f.attrs,{key:g.key}))},12:{match:Xn(Qv),order:1,parse:()=>({}),render:xl},14:{match:Wt(wB),order:1,parse:f=>({alt:f[1],target:mv(f[2]),title:f[3]}),render:(f,h,g)=>n("img",{key:g.key,alt:f.alt||void 0,title:f.title||void 0,src:Qr(f.target)})},15:{match:Gt(EB),order:3,parse:(f,h,g)=>({children:OB(h,f[1],g),target:mv(f[2]),title:f[3]}),render:(f,h,g)=>n("a",{key:g.key,href:Qr(f.target),title:f.title},h(f.children,g))},16:{match:Gt(K3),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],type:"15"})},17:{match:(f,h)=>h.inAnchor?null:Gt(G3)(f,h),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},18:{match:Gt(W3),order:0,parse(f){let h=f[1],g=f[1];return k3.test(g)||(g="mailto:"+g),{children:[{text:h.replace("mailto:",""),type:"27"}],target:g,type:"15"}}},20:fv(n,1),33:fv(n,2),19:{match:Rt(B3),order:3,parse:vl,render:()=>` +`},21:{match:_B,order:3,parse:bl,render:(f,h,g)=>n("p",{key:g.key},h(f.children,g))},22:{match:Gt(X3),order:0,parse:f=>(s[f[1]]={target:f[2],title:f[4]},{}),render:xl},23:{match:Wt(Q3),order:0,parse:f=>({alt:f[1]||void 0,ref:f[2]}),render:(f,h,g)=>s[f.ref]?n("img",{key:g.key,alt:f.alt,src:Qr(s[f.ref].target),title:s[f.ref].title}):null},24:{match:Gt(Z3),order:0,parse:(f,h,g)=>({children:h(f[1],g),fallbackChildren:h(f[0].replace(eB,"\\$1"),g),ref:f[2]}),render:(f,h,g)=>s[f.ref]?n("a",{key:g.key,href:Qr(s[f.ref].target),title:s[f.ref].title},h(f.children,g)):n("span",{key:g.key},h(f.fallbackChildren,g))},25:{match:Rt(Zv),order:1,parse:CB,render:(f,h,g)=>n("table",{key:g.key},n("thead",null,n("tr",null,f.header.map(function(_,v){return n("th",{key:v,style:hv(f,v)},h(_,g))}))),n("tbody",null,f.cells.map(function(_,v){return n("tr",{key:v},_.map(function(x,O){return n("td",{key:O,style:hv(f,O)},h(x,g))}))})))},26:{match:function(f,h){return h.inTable?(h.inline=!0,nB.exec(f)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:Xn(yB),order:4,parse:f=>({text:f[0].replace(z3,(h,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:h)}),render:f=>f.text},28:{match:Wt(uB),order:2,parse:(f,h,g)=>({children:h(f[2],g)}),render:(f,h,g)=>n("strong",{key:g.key},h(f.children,g))},29:{match:Wt(cB),order:3,parse:(f,h,g)=>({children:h(f[2],g)}),render:(f,h,g)=>n("em",{key:g.key},h(f.children,g))},30:{match:Wt(fB),order:1,parse:f=>({text:f[1],type:"27"})},31:{match:Wt(pB),order:3,parse:bl,render:(f,h,g)=>n("mark",{key:g.key},h(f.children,g))},32:{match:Wt(dB),order:3,parse:bl,render:(f,h,g)=>n("del",{key:g.key},h(f.children,g))}};t.disableParsingRawHTML===!0&&(delete l[11],delete l[13]);let u=function(f){let h=Object.keys(f);function g(_,v){let x=[],O="";for(;_;){let C=0;for(;Cx(g,_,v),g,_,v):x(g,_,v)}}(l,t.renderRule),function f(h,g={}){if(Array.isArray(h)){let _=g.key,v=[],x=!1;for(let O=0;O{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,s,l={},u=Object.keys(o);for(s=0;s=0||(l[i]=o[i]);return l}(e,O3);return Oe(kB(t,r),n)},DB=gn(qv(),1),FB=Object.create,p2=Object.defineProperty,jB=Object.getOwnPropertyDescriptor,d2=Object.getOwnPropertyNames,NB=Object.getPrototypeOf,BB=Object.prototype.hasOwnProperty,ct=(e,t)=>function(){return t||(0,e[d2(e)[0]])((t={exports:{}}).exports,t),t.exports},LB=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of d2(t))!BB.call(e,o)&&o!==r&&p2(e,o,{get:()=>t[o],enumerable:!(n=jB(t,o))||n.enumerable});return e},Ll=(e,t,r)=>(r=e!=null?FB(NB(e)):{},LB(t||!e||!e.__esModule?p2(r,"default",{value:e,enumerable:!0}):r,e)),qB=gn(qv(),1),f2=ct({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),y2=ct({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=f2();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),MB=ct({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||o.call(s)!==a)throw new TypeError(r+s);for(var l=n.call(arguments,1),u,c=function(){if(this instanceof u){var g=s.apply(this,l.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,l.concat(n.call(arguments)))},d=Math.max(0,s.length-l.length),y=[],f=0;f"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":c?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?d(d([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c?r:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c?r:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?d(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function Q(V){var R;if(V==="%AsyncFunction%")R=i("async function () {}");else if(V==="%GeneratorFunction%")R=i("function* () {}");else if(V==="%AsyncGeneratorFunction%")R=i("async function* () {}");else if(V==="%AsyncGenerator%"){var q=Q("%AsyncGeneratorFunction%");q&&(R=q.prototype)}else if(V==="%AsyncIteratorPrototype%"){var M=Q("%AsyncGenerator%");M&&(R=d(M.prototype))}return h[V]=R,R},_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=ql(),x=UB(),O=v.call(Function.call,Array.prototype.concat),C=v.call(Function.apply,Array.prototype.splice),I=v.call(Function.call,String.prototype.replace),P=v.call(Function.call,String.prototype.slice),F=v.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,G=function(Q){var V=P(Q,0,1),R=P(Q,-1);if(V==="%"&&R!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(R==="%"&&V!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var q=[];return I(Q,D,function(M,Y,te,ne){q[q.length]=te?I(ne,U,"$1"):Y||M}),q},X=function(Q,V){var R=Q,q;if(x(_,R)&&(q=_[R],R="%"+q[0]+"%"),x(h,R)){var M=h[R];if(M===y&&(M=g(R)),typeof M>"u"&&!V)throw new a("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:q,name:R,value:M}}throw new n("intrinsic "+Q+" does not exist!")};t.exports=function(Q,V){if(typeof Q!="string"||Q.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new a('"allowMissing" argument must be a boolean');if(F(/^%?[^%]*%?$/,Q)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=G(Q),q=R.length>0?R[0]:"",M=X("%"+q+"%",V),Y=M.name,te=M.value,ne=!1,re=M.alias;re&&(q=re[0],C(R,O([0,1],re)));for(var Z=1,ae=!0;Z=R.length){var we=s(te,le);ae=!!we,ae&&"get"in we&&!("originalValue"in we.get)?te=we.get:te=te[le]}else ae=x(te,le),te=te[le];ae&&!ne&&(h[Y]=te)}}return te}}}),JB=ct({"node_modules/call-bind/index.js"(e,t){var r=ql(),n=h2(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(a,o),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(d){var y=i(r,a,arguments);if(s&&l){var f=s(y,"length");f.configurable&&l(y,"length",{value:1+u(0,d.length-(arguments.length-1))})}return y};var c=function(){return i(r,o,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c}}),$B=ct({"node_modules/call-bind/callBound.js"(e,t){var r=h2(),n=JB(),o=n(r("String.prototype.indexOf"));t.exports=function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s}}}),zB=ct({"node_modules/has-tostringtag/shams.js"(e,t){var r=f2();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),VB=ct({"node_modules/is-regex/index.js"(e,t){var r=$B(),n=zB()(),o,a,i,s;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},l=function(){throw i},s={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=l));var l,u=r("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=n?function(y){if(!y||typeof y!="object")return!1;var f=c(y,"lastIndex"),h=f&&o(f,"value");if(!h)return!1;try{a(y,s)}catch(g){return g===i}}:function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:u(y)===d}}}),HB=ct({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),GB=ct({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=y2()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:a.test(o.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var o,a,i}});Ll(VB());Ll(HB());Ll(GB());var WB=typeof window=="object"&&window&&window.Object===Object&&window,KB=WB,YB=typeof self=="object"&&self&&self.Object===Object&&self,XB=KB||YB||Function("return this")(),Ml=XB,QB=Ml.Symbol,tn=QB,m2=Object.prototype,ZB=m2.hasOwnProperty,eL=m2.toString,Qn=tn?tn.toStringTag:void 0;function tL(e){var t=ZB.call(e,Qn),r=e[Qn];try{e[Qn]=void 0;var n=!0}catch{}var o=eL.call(e);return n&&(t?e[Qn]=r:delete e[Qn]),o}var rL=tL,nL=Object.prototype,oL=nL.toString;function aL(e){return oL.call(e)}var iL=aL,sL="[object Null]",lL="[object Undefined]",gv=tn?tn.toStringTag:void 0;function uL(e){return e==null?e===void 0?lL:sL:gv&&gv in Object(e)?rL(e):iL(e)}var cL=uL,bv=tn?tn.prototype:void 0;bv&&bv.toString;function pL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var g2=pL,dL="[object AsyncFunction]",fL="[object Function]",yL="[object GeneratorFunction]",hL="[object Proxy]";function mL(e){if(!g2(e))return!1;var t=cL(e);return t==fL||t==yL||t==dL||t==hL}var gL=mL,bL=Ml["__core-js_shared__"],wl=bL,vv=function(){var e=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function vL(e){return!!vv&&vv in e}var xL=vL,EL=Function.prototype,wL=EL.toString;function SL(e){if(e!=null){try{return wL.call(e)}catch{}try{return e+""}catch{}}return""}var AL=SL,TL=/[\\^$.*+?()[\]{}|]/g,CL=/^\[object .+?Constructor\]$/,_L=Function.prototype,OL=Object.prototype,IL=_L.toString,PL=OL.hasOwnProperty,kL=RegExp("^"+IL.call(PL).replace(TL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function RL(e){if(!g2(e)||xL(e))return!1;var t=gL(e)?kL:CL;return t.test(AL(e))}var DL=RL;function FL(e,t){return e?.[t]}var jL=FL;function NL(e,t){var r=jL(e,t);return DL(r)?r:void 0}var b2=NL;function BL(e,t){return e===t||e!==e&&t!==t}var LL=BL,qL=b2(Object,"create"),to=qL;function ML(){this.__data__=to?to(null):{},this.size=0}var UL=ML;function JL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $L=JL,zL="__lodash_hash_undefined__",VL=Object.prototype,HL=VL.hasOwnProperty;function GL(e){var t=this.__data__;if(to){var r=t[e];return r===zL?void 0:r}return HL.call(t,e)?t[e]:void 0}var WL=GL,KL=Object.prototype,YL=KL.hasOwnProperty;function XL(e){var t=this.__data__;return to?t[e]!==void 0:YL.call(t,e)}var QL=XL,ZL="__lodash_hash_undefined__";function eq(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=to&&t===void 0?ZL:t,this}var tq=eq;function rn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var dq=pq;function fq(e,t){var r=this.__data__,n=Oa(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var yq=fq;function nn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iLq(e).replace(/\n\s*/g,"").trim());var qq=or({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),Mq=or({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,o=[].some,a=document.body,i,s=!0,l=" ";function u(C,I){var P=I.appendChild(d(C));if(C.children.length){var F=y(C.isCollapsed);C.children.forEach(function(D){u(D,F)}),P.appendChild(F)}}function c(C,I){var P=!1,F=y(P);if(I.forEach(function(D){u(D,F)}),i=C||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),I.length===0?i:i.appendChild(F)}function d(C){var I=document.createElement("li"),P=document.createElement("a");return r.listItemClass&&I.setAttribute("class",r.listItemClass),r.onClick&&(P.onclick=r.onClick),r.includeTitleTags&&P.setAttribute("title",C.textContent),r.includeHtml&&C.childNodes.length?n.call(C.childNodes,function(F){P.appendChild(F.cloneNode(!0))}):P.textContent=C.textContent,P.setAttribute("href",r.basePath+"#"+C.id),P.setAttribute("class",r.linkClass+l+"node-name--"+C.nodeName+l+r.extraLinkClasses),I.appendChild(P),I}function y(C){var I=r.orderedList?"ol":"ul",P=document.createElement(I),F=r.listClass+l+r.extraListClasses;return C&&(F=F+l+r.collapsibleClass,F=F+l+r.isCollapsedClass),P.setAttribute("class",F),P}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var C;C=document.querySelector(r.scrollContainer).scrollTop}else C=document.documentElement.scrollTop||a.scrollTop;var I=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),C>r.fixedSidebarOffset?I.className.indexOf(r.positionFixedClass)===-1&&(I.className+=l+r.positionFixedClass):I.className=I.className.replace(l+r.positionFixedClass,"")}function h(C){var I=0;return C!==null&&(I=C.offsetTop,r.hasInnerContainers&&(I+=h(C.offsetParent))),I}function g(C,I){return C&&C.className!==I&&(C.className=I),C}function _(C){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var I;I=document.querySelector(r.scrollContainer).scrollTop}else I=document.documentElement.scrollTop||a.scrollTop;r.positionFixedSelector&&f();var P=C,F;if(s&&i!==null&&P.length>0){o.call(P,function(R,q){if(h(R)>I+r.headingsOffset+10){var M=q===0?q:q-1;return F=P[M],!0}else if(q===P.length-1)return F=P[P.length-1],!0});var D=i.querySelector("."+r.activeLinkClass),U=i.querySelector("."+r.linkClass+".node-name--"+F.nodeName+'[href="'+r.basePath+"#"+F.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(D===U)return;var G=i.querySelectorAll("."+r.linkClass);n.call(G,function(R){g(R,R.className.replace(l+r.activeLinkClass,""))});var X=i.querySelectorAll("."+r.listItemClass);n.call(X,function(R){g(R,R.className.replace(l+r.activeListItemClass,""))}),U&&U.className.indexOf(r.activeLinkClass)===-1&&(U.className+=l+r.activeLinkClass);var Q=U&&U.parentNode;Q&&Q.className.indexOf(r.activeListItemClass)===-1&&(Q.className+=l+r.activeListItemClass);var V=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(V,function(R){R.className.indexOf(r.isCollapsedClass)===-1&&(R.className+=l+r.isCollapsedClass)}),U&&U.nextSibling&&U.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(U.nextSibling,U.nextSibling.className.replace(l+r.isCollapsedClass,"")),v(U&&U.parentNode.parentNode)}}function v(C){return C&&C.className.indexOf(r.collapsibleClass)!==-1&&C.className.indexOf(r.isCollapsedClass)!==-1?(g(C,C.className.replace(l+r.isCollapsedClass,"")),v(C.parentNode.parentNode)):C}function x(C){var I=C.target||C.srcElement;typeof I.className!="string"||I.className.indexOf(r.linkClass)===-1||(s=!1)}function O(){s=!0}return{enableTocAnimation:O,disableTocAnimation:x,render:c,updateToc:_}}}}),Uq=or({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function o(d){return d[d.length-1]}function a(d){return+d.nodeName.toUpperCase().replace("H","")}function i(d){try{return d instanceof window.HTMLElement||d instanceof window.parent.HTMLElement}catch{return d instanceof window.HTMLElement}}function s(d){if(!i(d))return d;if(r.ignoreHiddenElements&&(!d.offsetHeight||!d.offsetParent))return null;let y=d.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(d.innerText)):(d.innerText||d.textContent).trim());var f={id:d.id,children:[],nodeName:d.nodeName,headingLevel:a(d),textContent:y};return r.includeHtml&&(f.childNodes=d.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,d):f}function l(d,y){for(var f=s(d),h=f.headingLevel,g=y,_=o(g),v=_?_.headingLevel:0,x=h-v;x>0&&(_=o(g),!(_&&h===_.headingLevel));)_&&_.children!==void 0&&(g=_.children),x--;return h>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function u(d,y){var f=y;r.ignoreSelector&&(f=y.split(",").map(function(h){return h.trim()+":not("+r.ignoreSelector+")"}));try{return d.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function c(d){return n.call(d,function(y,f){var h=s(f);return h&&l(h,y.nest),y},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:u}}}}),Jq=or({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var o=n.querySelector("."+r.activeListItemClass);o&&(n.scrollTop=o.offsetTop-r.tocScrollOffset)}}}}),$q=or({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var o=n.duration,a=n.offset,i=location.hash?u(location.href):location.href;s();function s(){document.body.addEventListener("click",d,!1);function d(y){!l(y.target)||y.target.className.indexOf("no-smooth-scroll")>-1||y.target.href.charAt(y.target.href.length-2)==="#"&&y.target.href.charAt(y.target.href.length-1)==="!"||y.target.className.indexOf(n.linkClass)===-1||r(y.target.hash,{duration:o,offset:a,callback:function(){c(y.target.hash)}})}}function l(d){return d.tagName.toLowerCase()==="a"&&(d.hash.length>0||d.href.charAt(d.href.length-1)==="#")&&(u(d.href)===i||u(d.href)+"#"===i)}function u(d){return d.slice(0,d.lastIndexOf("#"))}function c(d){var y=document.getElementById(d.substring(1));y&&(/^(?:a|select|input|button|textarea)$/i.test(y.tagName)||(y.tabIndex=-1),y.focus())}}function r(n,o){var a=window.pageYOffset,i={duration:o.duration,offset:o.offset||0,callback:o.callback,easing:o.easing||h},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),l=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,u=typeof i.duration=="function"?i.duration(l):i.duration,c,d;requestAnimationFrame(function(g){c=g,y(g)});function y(g){d=g-c,window.scrollTo(0,i.easing(d,a,l,u)),d"u"&&!d)return;var y,f=Object.prototype.hasOwnProperty;function h(){for(var x={},O=0;O({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ve(.3,e.color.defaultText),fontSize:e.typography.size.s2})),x2=e=>E.createElement(Vq,{...e,className:"docblock-emptyblock sb-unstyled"}),Hq=W(so)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Gq=W.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),va=W.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Fu}`]:{margin:0}})),Wq=()=>E.createElement(Gq,null,E.createElement(va,null),E.createElement(va,{style:{width:"80%"}}),E.createElement(va,{style:{width:"30%"}}),E.createElement(va,{style:{width:"80%"}})),Kq=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!1,...i})=>{let{typography:s}=ri();if(e)return E.createElement(Wq,null);if(t)return E.createElement(x2,null,t);let l=E.createElement(Hq,{bordered:!0,copyable:!0,format:a,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return l;let u=o?ti.dark:ti.light;return E.createElement(Ru,{theme:Du({...u,fontCode:s.fonts.mono,fontBase:s.fonts.base})},l)},Ne=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Jl=600;W.h1(Pr,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Jl}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}));W.h2(Pr,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Jl}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ve(.25,e.color.defaultText)}));W.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ve(.1,e.color.defaultText):ve(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[Ne("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Ne("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Ne("div")]:t,[Ne("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Ne("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Ne("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Ne("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Ne("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Ne("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Ne("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Ne("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Ne("img")]:{maxWidth:"100%"},[Ne("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Ne("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Ne("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Ne("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Ne("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Ne("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Ne("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}});W.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Jl}px)`]:{}}));var Pa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),Yq=W(Ma)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Xq=W.div({display:"flex",alignItems:"center",gap:4}),Qq=W.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Zq=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>E.createElement(Yq,{...a},E.createElement(Xq,{key:"left"},e?[1,2,3].map(i=>E.createElement(Qq,{key:i})):E.createElement(E.Fragment,null,E.createElement(ht,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},E.createElement(Vu,null)),E.createElement(ht,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},E.createElement(Hu,null)),E.createElement(ht,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},E.createElement(Gu,null))))),eM=vn({scale:1});W.strong(({theme:e})=>({color:e.color.orange}));var tM=W.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),Ev=W(Kq)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":vt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":vt(.05,e.background.content)}})),rM=W.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Pa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),nM=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:E.createElement(Ev,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:E.createElement(Ev,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function oM(e){if(Ql.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var aM=W(Zq)({position:"absolute",top:0,left:0,right:0,height:40}),iM=W.div({overflow:"hidden",position:"relative"}),sM=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:s,className:l,layout:u="padded",...c})=>{let[d,y]=he(i),{source:f,actionItem:h}=nM(o,d,y),[g,_]=he(1),v=[l].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),x=o?[h]:[],[O,C]=he(s?[...s]:[]),I=[...x,...O],{window:P}=xt,F=$e(async U=>{let{createCopyToClipboardFunction:G}=await Promise.resolve().then(()=>(lo(),au));G()},[]),D=U=>{let G=P.getSelection();G&&G.type==="Range"||(U.preventDefault(),O.filter(X=>X.title==="Copied").length===0&&F(f.props.code).then(()=>{C([...O,{title:"Copied",onClick:()=>{}}]),P.setTimeout(()=>C(O.filter(X=>X.title!=="Copied")),1500)}))};return E.createElement(rM,{withSource:o,withToolbar:a,...c,className:v.join(" ")},a&&E.createElement(aM,{isLoading:e,border:!0,zoom:U=>_(g*U),resetZoom:()=>_(1),storyId:oM(n),baseUrl:"./iframe.html"}),E.createElement(eM.Provider,{value:{scale:g}},E.createElement(iM,{className:"docs-story",onCopyCapture:o&&D},E.createElement(tM,{isColumn:t||!Array.isArray(n),columns:r,layout:u},E.createElement(Va.Element,{scale:g},Array.isArray(n)?n.map((U,G)=>E.createElement("div",{key:G},U)):E.createElement("div",null,n))),E.createElement(ja,{actionItems:I}))),o&&d&&f)};W(sM)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var lM=W.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ir({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),uM=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:E.createElement(E.Fragment,null,E.createElement(lM,null,E.createElement("tbody",null,n&&E.createElement("tr",{key:"deprecated"},E.createElement("td",{colSpan:2},E.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(a=>E.createElement("tr",{key:a.name},E.createElement("td",null,E.createElement("code",null,a.name)),E.createElement("td",null,a.description))),o&&E.createElement("tr",{key:"returns"},E.createElement("td",null,E.createElement("code",null,"Returns")),E.createElement("td",null,e.returns.description)))))},Dl=8,wv=W.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),cM=W.span(Ir,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),pM=W.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),dM=W.div(Ir,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),fM=W.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),yM=W(Lu)({marginLeft:4}),hM=W(ai)({marginLeft:4}),mM=()=>E.createElement("span",null,"-"),E2=({text:e,simple:t})=>E.createElement(cM,{simple:t},e),gM=(0,DB.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),bM=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return(0,Bv.default)(t)},Sv=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Dl)),r.map(n=>E.createElement(E2,{key:n,text:n===""?'""':n}))},vM=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=he(!1),[i,s]=he(t||!1);if(r==null)return null;let l=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(l))return E.createElement(E2,{text:l});let u=bM(l),c=u.length;return c>Dl?E.createElement(wv,{isExpanded:i},Sv(u,i),E.createElement(pM,{onClick:()=>s(!i)},i?"Show less...":`Show ${c-Dl} more...`)):E.createElement(wv,null,Sv(u))}return E.createElement(za,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:E.createElement(fM,{width:gM(n)},E.createElement(so,{language:"jsx",format:!1},n))},E.createElement(dM,{className:"sbdocs-expandable"},E.createElement("span",null,l),o?E.createElement(yM,null):E.createElement(hM,null)))},Sl=({value:e,initialExpandedArgs:t})=>e==null?E.createElement(mM,null):E.createElement(vM,{value:e,initialExpandedArgs:t}),xM=W.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ve(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${ba(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${ba(.05,e.appBorderColor)} 0 0 0 2px inset`,color:ba(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${ba(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),EM=e=>e==="true",wM=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=$e(()=>r(!1),[r]),s=!!a?.table?.readonly;if(t===void 0)return E.createElement(Bt,{variant:"outline",size:"medium",id:bn(e),onClick:i,disabled:s},"Set boolean");let l=tt(e),u=typeof t=="string"?EM(t):t;return E.createElement(xM,{"aria-disabled":s,htmlFor:l,"aria-label":e},E.createElement("input",{id:l,type:"checkbox",onChange:c=>r(c.target.checked),checked:u,role:"switch",disabled:s,name:e,onBlur:n,onFocus:o}),E.createElement("span",{"aria-hidden":"true"},"False"),E.createElement("span",{"aria-hidden":"true"},"True"))},SM=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},AM=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},TM=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},CM=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},Av=W(dt.Input)(({readOnly:e})=>({opacity:e?.5:1})),_M=W.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),OM=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,s]=he(!0),l=Xe(),u=Xe(),c=!!a?.table?.readonly;ze(()=>{i!==!1&&(l&&l.current&&(l.current.value=t?TM(t):""),u&&u.current&&(u.current.value=t?CM(t):""))},[t]);let d=h=>{if(!h.target.value)return r();let g=SM(h.target.value),_=new Date(t);_.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let v=_.getTime();v&&r(v),s(!!v)},y=h=>{if(!h.target.value)return r();let g=AM(h.target.value),_=new Date(t);_.setHours(g.getHours()),_.setMinutes(g.getMinutes());let v=_.getTime();v&&r(v),s(!!v)},f=tt(e);return E.createElement(_M,null,E.createElement(Av,{type:"date",max:"9999-12-31",ref:l,id:`${f}-date`,name:`${f}-date`,readOnly:c,onChange:d,onFocus:n,onBlur:o}),E.createElement(Av,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:y,readOnly:c,onFocus:n,onBlur:o}),i?null:E.createElement("div",null,"invalid"))},IM=W.label({display:"flex"}),PM=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},kM=W(dt.Input)(({readOnly:e})=>({opacity:e?.5:1})),RM=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:s,argType:l})=>{let[u,c]=he(typeof t=="number"?t:""),[d,y]=he(!1),[f,h]=he(null),g=!!l?.table?.readonly,_=$e(O=>{c(O.target.value);let C=parseFloat(O.target.value);Number.isNaN(C)?h(new Error(`'${O.target.value}' is not a number`)):(r(C),h(null))},[r,h]),v=$e(()=>{c("0"),r(0),y(!0)},[y]),x=Xe(null);return ze(()=>{d&&x.current&&x.current.select()},[d]),ze(()=>{u!==(typeof t=="number"?t:"")&&c(t)},[t]),t===void 0?E.createElement(Bt,{variant:"outline",size:"medium",id:bn(e),onClick:v,disabled:g},"Set number"):E.createElement(IM,null,E.createElement(kM,{ref:x,id:tt(e),type:"number",onChange:_,size:"flex",placeholder:"Edit number...",value:u,valid:f?"error":null,autoFocus:d,readOnly:g,name:e,min:n,max:o,step:a,onFocus:s,onBlur:i}))},w2=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},Fl=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],S2=(e,t)=>e&&t&&e.map(r=>t[r]),DM=W.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),FM=W.span({"[aria-readonly=true] &":{opacity:.5}}),jM=W.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Tv=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return Bo.warn(`Checkbox with no options: ${e}`),E.createElement(E.Fragment,null,"-");let i=Fl(r,t),[s,l]=he(i),u=!!a?.table?.readonly,c=y=>{let f=y.target.value,h=[...s];h.includes(f)?h.splice(h.indexOf(f),1):h.push(f),n(S2(h,t)),l(h)};ze(()=>{l(Fl(r,t))},[r]);let d=tt(e);return E.createElement(DM,{"aria-readonly":u,isInline:o},Object.keys(t).map((y,f)=>{let h=`${d}-${f}`;return E.createElement(jM,{key:h,htmlFor:h},E.createElement("input",{type:"checkbox",disabled:u,id:h,name:h,value:y,onChange:c,checked:s?.includes(y)}),E.createElement(FM,null,y))}))},NM=W.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),BM=W.span({"[aria-readonly=true] &":{opacity:.5}}),LM=W.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Cv=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return Bo.warn(`Radio with no options: ${e}`),E.createElement(E.Fragment,null,"-");let i=w2(r,t),s=tt(e),l=!!a?.table?.readonly;return E.createElement(NM,{"aria-readonly":l,isInline:o},Object.keys(t).map((u,c)=>{let d=`${s}-${c}`;return E.createElement(LM,{key:d,htmlFor:d},E.createElement("input",{type:"radio",id:d,name:s,disabled:l,value:u,onChange:y=>n(t[y.currentTarget.value]),checked:u===i}),E.createElement(BM,null,u))}))},qM={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},A2=W.select(qM,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),T2=W.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),_v="Choose option...",MM=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{n(r[u.currentTarget.value])},i=w2(t,r)||_v,s=tt(e),l=!!o?.table?.readonly;return E.createElement(T2,null,E.createElement(ai,null),E.createElement(A2,{disabled:l,id:s,value:i,onChange:a},E.createElement("option",{key:"no-selection",disabled:!0},_v),Object.keys(r).map(u=>E.createElement("option",{key:u,value:u},u))))},UM=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{let c=Array.from(u.currentTarget.options).filter(d=>d.selected).map(d=>d.value);n(S2(c,r))},i=Fl(t,r),s=tt(e),l=!!o?.table?.readonly;return E.createElement(T2,null,E.createElement(A2,{disabled:l,id:s,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>E.createElement("option",{key:u,value:u},u))))},Ov=e=>{let{name:t,options:r}=e;return r?e.isMulti?E.createElement(UM,{...e}):E.createElement(MM,{...e}):(Bo.warn(`Select with no options: ${t}`),E.createElement(E.Fragment,null,"-"))},JM=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,$M={check:Tv,"inline-check":Tv,radio:Cv,"inline-radio":Cv,select:Ov,"multi-select":Ov},Zr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?JM(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=$M[t];if(a)return E.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},$l="value",zM="key",VM="Error",HM="Object",GM="Array",WM="String",KM="Number",YM="Boolean",XM="Date",QM="Null",ZM="Undefined",e4="Function",t4="Symbol",C2="ADD_DELTA_TYPE",_2="REMOVE_DELTA_TYPE",O2="UPDATE_DELTA_TYPE";function vr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function I2(e,t){let r=vr(e),n=vr(t);return(r==="Function"||n==="Function")&&n!==r}var zl=class extends jt{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,s={};if(!t){if(!a.value)return;s.key=a.value}s.newValue=r(!1,n,o,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,s=Oe(r,{onClick:this.onSubmit}),l=Oe(n,{onClick:e}),u=o($l,a,i),c=Oe(u,{placeholder:"Value",ref:this.refInputValue}),d=null;if(!t){let y=o(zM,a,i);d=Oe(y,{placeholder:"Key",ref:this.refInputKey})}return E.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};zl.defaultProps={onlyValue:!1,addButtonElement:E.createElement("button",null,"+"),cancelButtonElement:E.createElement("button",null,"c")};var P2=class extends jt{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let s={keyPath:o,deep:a,key:e,oldValue:i,type:_2};n.splice(e,1),this.setState({data:n});let{onUpdate:l,onDeltaUpdate:u}=this.props;l(o[o.length-1],n),u(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:o,logger:a}=this.props;o(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:l}=this.props;s(r[r.length-1],i),l({type:C2,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:s}=this.state,l=a[e];o(e,i,s,l,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:O2,keyPath:i,deep:s,key:e,newValue:t,oldValue:l}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:s,minusMenuElement:l}=this.props,{minus:u,collapsed:c}=i(e,t,r,n,s),d=a(e,t,r,n,s),y=Oe(l,{onClick:o,className:"rejt-minus-menu",style:u});return E.createElement("span",{className:"rejt-collapsed"},E.createElement("span",{className:"rejt-collapsed-text",style:c,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!d&&y)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:l,readOnly:u,getStyle:c,dataType:d,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:_,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:O,beforeAddAction:C,beforeUpdateAction:I,logger:P,onSubmitValueParser:F}=this.props,{minus:D,plus:U,delimiter:G,ul:X,addForm:Q}=c(e,t,r,n,d),V=u(e,t,r,n,d),R=Oe(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:U}),q=Oe(v,{onClick:s,className:"rejt-minus-menu",style:D});return E.createElement("span",{className:"rejt-not-collapsed"},E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:G},"["),!o&&R,E.createElement("ul",{className:"rejt-not-collapsed-list",style:X},t.map((M,Y)=>E.createElement(ka,{key:Y,name:Y.toString(),data:M,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(Y),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:_,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:O,beforeAddAction:C,beforeUpdateAction:I,logger:P,onSubmitValueParser:F}))),!V&&o&&E.createElement("div",{className:"rejt-add-form",style:Q},E.createElement(zl,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:y,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:F})),E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:G},"]"),!V&&q)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:a,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),l=i(e,r,n,o,a);return E.createElement("div",{className:"rejt-array-node"},E.createElement("span",{onClick:this.handleCollapseMode},E.createElement("span",{className:"rejt-name",style:l.name},e," :"," ")),s)}};P2.defaultProps={keyPath:[],deep:0,minusMenuElement:E.createElement("span",null," - "),plusMenuElement:E.createElement("span",null," + ")};var k2=class extends jt{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:s}=this.props,l=i(r,n,o,a,s);e&&!l&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:s}=this.state;if(!a)return;let l=n(!0,o,s,i,a.value);e({value:l,key:i}).then(()=>{I2(t,l)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:s,dataType:l,getStyle:u,editButtonElement:c,cancelButtonElement:d,textareaElementGenerator:y,minusMenuElement:f,keyPath:h}=this.props,g=u(e,i,n,o,l),_=null,v=null,x=s(e,i,n,o,l);if(r&&!x){let O=y($l,h,o,e,i,l),C=Oe(c,{onClick:this.handleEdit}),I=Oe(d,{onClick:this.handleCancelEdit}),P=Oe(O,{ref:this.refInput,defaultValue:i});_=E.createElement("span",{className:"rejt-edit-form",style:g.editForm},P," ",I,C),v=null}else{_=E.createElement("span",{className:"rejt-value",style:g.value,onClick:x?null:this.handleEditMode},t);let O=Oe(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});v=x?null:O}return E.createElement("li",{className:"rejt-function-value-node",style:g.li},E.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),_,v)}};k2.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:E.createElement("button",null,"e"),cancelButtonElement:E.createElement("button",null,"c"),minusMenuElement:E.createElement("span",null," - ")};var ka=class extends jt{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:_,plusMenuElement:v,beforeRemoveAction:x,beforeAddAction:O,beforeUpdateAction:C,logger:I,onSubmitValueParser:P}=this.props,F=()=>!0,D=vr(e);switch(D){case VM:return E.createElement(jl,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:s,onDeltaUpdate:l,readOnly:F,dataType:D,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:_,plusMenuElement:v,beforeRemoveAction:x,beforeAddAction:O,beforeUpdateAction:C,logger:I,onSubmitValueParser:P});case HM:return E.createElement(jl,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:s,onDeltaUpdate:l,readOnly:u,dataType:D,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:_,plusMenuElement:v,beforeRemoveAction:x,beforeAddAction:O,beforeUpdateAction:C,logger:I,onSubmitValueParser:P});case GM:return E.createElement(P2,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:s,onDeltaUpdate:l,readOnly:u,dataType:D,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:_,plusMenuElement:v,beforeRemoveAction:x,beforeAddAction:O,beforeUpdateAction:C,logger:I,onSubmitValueParser:P});case WM:return E.createElement(Kt,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});case KM:return E.createElement(Kt,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});case YM:return E.createElement(Kt,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});case XM:return E.createElement(Kt,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:F,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});case QM:return E.createElement(Kt,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});case ZM:return E.createElement(Kt,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});case e4:return E.createElement(k2,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:_,logger:I,onSubmitValueParser:P});case t4:return E.createElement(Kt,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:F,dataType:D,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:_,logger:I,onSubmitValueParser:P});default:return null}}};ka.defaultProps={keyPath:[],deep:0};var jl=class extends jt{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;a(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:l}=this.props;s(n[n.length-1],r),l({type:C2,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let s={keyPath:o,deep:a,key:e,oldValue:i,type:_2};delete n[e],this.setState({data:n});let{onUpdate:l,onDeltaUpdate:u}=this.props;l(o[o.length-1],n),u(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:s}=this.state,l=a[e];o(e,i,s,l,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:O2,keyPath:i,deep:s,key:e,newValue:t,oldValue:l}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:s,minusMenuElement:l}=this.props,{minus:u,collapsed:c}=s(e,n,t,r,i),d=Object.getOwnPropertyNames(n),y=a(e,n,t,r,i),f=Oe(l,{onClick:o,className:"rejt-minus-menu",style:u});return E.createElement("span",{className:"rejt-collapsed"},E.createElement("span",{className:"rejt-collapsed-text",style:c,onClick:this.handleCollapseMode},"{...}"," ",d.length," ",d.length===1?"key":"keys"),!y&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:l,readOnly:u,getStyle:c,dataType:d,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:_,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:O,beforeAddAction:C,beforeUpdateAction:I,logger:P,onSubmitValueParser:F}=this.props,{minus:D,plus:U,addForm:G,ul:X,delimiter:Q}=c(e,t,r,n,d),V=Object.getOwnPropertyNames(t),R=u(e,t,r,n,d),q=Oe(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:U}),M=Oe(v,{onClick:s,className:"rejt-minus-menu",style:D}),Y=V.map(te=>E.createElement(ka,{key:te,name:te,data:t[te],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(te),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:_,minusMenuElement:v,plusMenuElement:x,beforeRemoveAction:O,beforeAddAction:C,beforeUpdateAction:I,logger:P,onSubmitValueParser:F}));return E.createElement("span",{className:"rejt-not-collapsed"},E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},"{"),!R&&q,E.createElement("ul",{className:"rejt-not-collapsed-list",style:X},Y),!R&&a&&E.createElement("div",{className:"rejt-add-form",style:G},E.createElement(zl,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:y,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:F})),E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},"}"),!R&&M)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:a,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),l=a(e,r,n,o,i);return E.createElement("div",{className:"rejt-object-node"},E.createElement("span",{onClick:this.handleCollapseMode},E.createElement("span",{className:"rejt-name",style:l.name},e," :"," ")),s)}};jl.defaultProps={keyPath:[],deep:0,minusMenuElement:E.createElement("span",null," - "),plusMenuElement:E.createElement("span",null," + ")};var Kt=class extends jt{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:s}=this.props,l=i(r,n,o,a,s);e&&!l&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:s}=this.state;if(!a)return;let l=n(!0,o,s,i,a.value);e({value:l,key:i}).then(()=>{I2(t,l)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:s,dataType:l,getStyle:u,editButtonElement:c,cancelButtonElement:d,inputElementGenerator:y,minusMenuElement:f,keyPath:h}=this.props,g=u(e,i,n,o,l),_=s(e,i,n,o,l),v=r&&!_,x=y($l,h,o,e,i,l),O=Oe(c,{onClick:this.handleEdit}),C=Oe(d,{onClick:this.handleCancelEdit}),I=Oe(x,{ref:this.refInput,defaultValue:JSON.stringify(i)}),P=Oe(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});return E.createElement("li",{className:"rejt-value-node",style:g.li},E.createElement("span",{className:"rejt-name",style:g.name},e," : "),v?E.createElement("span",{className:"rejt-edit-form",style:g.editForm},I," ",C,O):E.createElement("span",{className:"rejt-value",style:g.value,onClick:_?null:this.handleEditMode},String(t)),!_&&!v&&P)}};Kt.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:E.createElement("button",null,"e"),cancelButtonElement:E.createElement("button",null,"c"),minusMenuElement:E.createElement("span",null," - ")};var r4={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},n4={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},o4={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function a4(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var R2=class extends jt{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:s,editButtonElement:l,inputElement:u,textareaElement:c,minusMenuElement:d,plusMenuElement:y,beforeRemoveAction:f,beforeAddAction:h,beforeUpdateAction:g,logger:_,onSubmitValueParser:v,fallback:x=null}=this.props,O=vr(e),C=o;vr(o)==="Boolean"&&(C=()=>o);let I=u;u&&vr(u)!=="Function"&&(I=()=>u);let P=c;return c&&vr(c)!=="Function"&&(P=()=>c),O==="Object"||O==="Array"?E.createElement("div",{className:"rejt-tree"},E.createElement(ka,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:C,getStyle:a,addButtonElement:i,cancelButtonElement:s,editButtonElement:l,inputElementGenerator:I,textareaElementGenerator:P,minusMenuElement:d,plusMenuElement:y,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:h,beforeUpdateAction:g,logger:_,onSubmitValueParser:v})):x}};R2.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return r4;case"Array":return n4;default:return o4}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>a4(o),inputElement:()=>E.createElement("input",null),textareaElement:()=>E.createElement("textarea",null),fallback:null};var{window:i4}=xt,s4=W.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Al=W.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),l4=W(oi)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),u4=W($u)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),Iv=W.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),c4=W(ht)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),p4=W(dt.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),d4={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},f4=e=>{e.currentTarget.dispatchEvent(new i4.KeyboardEvent("keydown",d4))},y4=e=>{e.currentTarget.select()},h4=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Pv=({name:e,value:t,onChange:r,argType:n})=>{let o=ri(),a=Nt(()=>t&&(0,Lv.default)(t),[t]),i=a!=null,[s,l]=he(!i),[u,c]=he(null),d=!!n?.table?.readonly,y=$e(O=>{try{O&&r(JSON.parse(O)),c(void 0)}catch(C){c(C)}},[r]),[f,h]=he(!1),g=$e(()=>{r({}),h(!0)},[h]),_=Xe(null);if(ze(()=>{f&&_.current&&_.current.select()},[f]),!i)return E.createElement(Bt,{disabled:d,id:bn(e),onClick:g},"Set object");let v=E.createElement(p4,{ref:_,id:tt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:O=>y(O.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:u?"error":null,readOnly:d}),x=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return E.createElement(s4,{"aria-readonly":d},x&&E.createElement(c4,{onClick:O=>{O.preventDefault(),l(C=>!C)}},s?E.createElement(qu,null):E.createElement(Mu,null),E.createElement("span",null,"RAW")),s?v:E.createElement(R2,{readOnly:d||!x,isCollapsed:x?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:h4(o),cancelButtonElement:E.createElement(Al,{type:"button"},"Cancel"),editButtonElement:E.createElement(Al,{type:"submit"},"Save"),addButtonElement:E.createElement(Al,{type:"submit",primary:!0},"Save"),plusMenuElement:E.createElement(l4,null),minusMenuElement:E.createElement(u4,null),inputElement:(O,C,I,P)=>P?E.createElement(Iv,{onFocus:y4,onBlur:f4}):E.createElement(Iv,null),fallback:v}))},m4=W.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${vt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${vt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${gr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${gr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Dt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Dt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${vt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Dt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${vt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${vt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${gr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${gr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Dt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Dt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${vt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${vt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${vt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${gr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${gr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Dt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),D2=W.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),g4=W(D2)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),b4=W.div({display:"flex",alignItems:"center",width:"100%"});function v4(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var x4=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:s,argType:l})=>{let u=f=>{r(PM(f.target.value))},c=t!==void 0,d=Nt(()=>v4(a),[a]),y=!!l?.table?.readonly;return E.createElement(b4,{"aria-readonly":y},E.createElement(D2,null,n),E.createElement(m4,{id:tt(e),type:"range",disabled:y,onChange:u,name:e,value:t,min:n,max:o,step:a,onFocus:s,onBlur:i}),E.createElement(g4,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},E4=W.label({display:"flex"}),w4=W.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),S4=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let s=f=>{r(f.target.value)},l=!!i?.table?.readonly,[u,c]=he(!1),d=$e(()=>{r(""),c(!0)},[c]);if(t===void 0)return E.createElement(Bt,{variant:"outline",size:"medium",disabled:l,id:bn(e),onClick:d},"Set string");let y=typeof t=="string";return E.createElement(E4,null,E.createElement(dt.Textarea,{id:tt(e),maxLength:a,onChange:s,disabled:l,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:y?null:"error",name:e,value:y?t:"",onFocus:n,onBlur:o}),a&&E.createElement(w4,{isMaxed:t?.length===a},t?.length??0," / ",a))},A4=W(dt.Input)({padding:10});function T4(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var C4=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=Xe(null),i=o?.control?.readOnly;function s(l){if(!l.target.files)return;let u=Array.from(l.target.files).map(c=>URL.createObjectURL(c));e(u),T4(n)}return ze(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),E.createElement(A4,{ref:a,id:tt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},_4=eu(()=>Promise.resolve().then(()=>(av(),ov))),O4=e=>E.createElement(Zl,{fallback:E.createElement("div",null)},E.createElement(_4,{...e})),I4={array:Pv,object:Pv,boolean:wM,color:O4,date:OM,number:RM,check:Zr,"inline-check":Zr,radio:Zr,"inline-radio":Zr,select:Zr,"multi-select":Zr,range:x4,text:S4,file:C4},kv=()=>E.createElement(E.Fragment,null,"-"),P4=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,s]=he(!1),[l,u]=he({value:t});ze(()=>{i||u({value:t})},[i,t]);let c=$e(g=>(u({value:g}),r({[o]:g}),g),[r,o]),d=$e(()=>s(!1),[]),y=$e(()=>s(!0),[]);if(!a||a.disable){let g=a?.disable!==!0&&e?.type?.name!=="function";return n&&g?E.createElement(ir,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):E.createElement(kv,null)}let f={name:o,argType:e,value:l.value,onChange:c,onBlur:d,onFocus:y},h=I4[a.type]||kv;return E.createElement(h,{...f,...a,controlType:a.type})},k4=W.span({fontWeight:"bold"}),R4=W.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),D4=W.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Ir({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),F4=W.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ve(.1,e.color.defaultText):ve(.2,e.color.defaultText),marginTop:t?4:0})),j4=W.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ve(.1,e.color.defaultText):ve(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),N4=W.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),B4=e=>e&&{summary:typeof e=="string"?e:e.name},xa=e=>{let[t,r]=he(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:s}=e,{name:l,description:u}=n,c=n.table||{},d=c.type||B4(n.type),y=c.defaultValue||n.defaultValue,f=n.type?.required,h=u!=null&&u!=="";return E.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},E.createElement(N4,{expandable:i},E.createElement(k4,null,l),f?E.createElement(R4,{title:"Required"},"*"):null),a?null:E.createElement("td",null,h&&E.createElement(D4,null,E.createElement(RB,null,u)),c.jsDocTags!=null?E.createElement(E.Fragment,null,E.createElement(j4,{hasDescription:h},E.createElement(Sl,{value:d,initialExpandedArgs:s})),E.createElement(uM,{tags:c.jsDocTags})):E.createElement(F4,{hasDescription:h},E.createElement(Sl,{value:d,initialExpandedArgs:s}))),a?null:E.createElement("td",null,E.createElement(Sl,{value:y,initialExpandedArgs:s})),o?E.createElement("td",null,E.createElement(P4,{...e,isHovered:t})):null)},L4=W(Nu)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ve(.25,e.color.defaultText):ve(.3,e.color.defaultText),border:"none",display:"inline-block"})),q4=W(Bu)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ve(.25,e.color.defaultText):ve(.3,e.color.defaultText),border:"none",display:"inline-block"})),M4=W.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),U4=W.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ve(.4,e.color.defaultText):ve(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),J4=W.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),$4=W.td(()=>({position:"relative"})),z4=W.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${gr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Rv=W.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),Tl=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=he(n),s=e==="subsection"?J4:U4,l=r?.length||0,u=e==="subsection"?`${l} item${l!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?l:t} item${l!==1?"s":""}`;return E.createElement(E.Fragment,null,E.createElement(z4,{title:c},E.createElement(s,{colSpan:1},E.createElement(Rv,{onClick:d=>i(!a),tabIndex:0},c),E.createElement(M4,null,a?E.createElement(L4,null):E.createElement(q4,null),t)),E.createElement($4,{colSpan:o-1},E.createElement(Rv,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},Ea=W.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),We=W.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Be=W.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Ke=[2,4,2,2],V4=()=>E.createElement(E.Fragment,null,E.createElement(Ea,null,E.createElement(We,{numColumn:Ke[0]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[1]},E.createElement(Be,{width:"30%"})),E.createElement(We,{numColumn:Ke[2]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[3]},E.createElement(Be,{width:"60%"}))),E.createElement(Ea,null,E.createElement(We,{numColumn:Ke[0]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[1]},E.createElement(Be,{width:"80%"}),E.createElement(Be,{width:"30%"})),E.createElement(We,{numColumn:Ke[2]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[3]},E.createElement(Be,{width:"60%"}))),E.createElement(Ea,null,E.createElement(We,{numColumn:Ke[0]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[1]},E.createElement(Be,{width:"80%"}),E.createElement(Be,{width:"30%"})),E.createElement(We,{numColumn:Ke[2]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[3]},E.createElement(Be,{width:"60%"}))),E.createElement(Ea,null,E.createElement(We,{numColumn:Ke[0]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[1]},E.createElement(Be,{width:"80%"}),E.createElement(Be,{width:"30%"})),E.createElement(We,{numColumn:Ke[2]},E.createElement(Be,{width:"60%"})),E.createElement(We,{numColumn:Ke[3]},E.createElement(Be,{width:"60%"})))),H4=W.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),G4=W.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),W4=W.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),K4=({inAddonPanel:e})=>{let[t,r]=he(!0);return ze(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:E.createElement(H4,{inAddonPanel:e},E.createElement(qa,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:E.createElement(E.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:E.createElement(G4,null,e&&E.createElement(E.Fragment,null,E.createElement(ir,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},E.createElement(zu,null)," Watch 5m video"),E.createElement(W4,null),E.createElement(ir,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},E.createElement(bo,null)," Read docs")),!e&&E.createElement(ir,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},E.createElement(bo,null)," Learn how to set that up"))}))},Y4=W.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ve(.25,e.color.defaultText):ve(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),X4=W(ht)(({theme:e})=>({margin:"-4px -12px -4px 0"})),Q4=W.span({display:"flex",justifyContent:"space-between"}),Z4={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},e6=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:s,subcategory:l}=i?.table||{};if(s){let u=r.sections[s]||{ungrouped:[],subsections:{}};if(!l)u.ungrouped.push({key:a,...i});else{let c=u.subsections[l]||[];c.push({key:a,...i}),u.subsections[l]=c}r.sections[s]=u}else if(l){let u=r.ungroupedSubsections[l]||[];u.push({key:a,...i}),r.ungroupedSubsections[l]=u}else r.ungrouped.push({key:a,...i})});let n=Z4[t],o=a=>n?Object.keys(a).reduce((i,s)=>({...i,[s]:a[s].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},t6=(e,t,r)=>{try{return _3(e,t,r)}catch(n){return fy.warn(n.message),!1}},r6=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return E.createElement(x2,null,x,"\xA0",E.createElement(ir,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},E.createElement(bo,null)," Read the docs"))}if(s)return E.createElement(V4,null);let{rows:l,args:u,globals:c}="rows"in e&&e,d=e6((0,Nv.default)(l,x=>!x?.table?.disable&&t6(x,u||{},c||{})),i),y=d.ungrouped.length===0,f=Object.entries(d.sections).length===0,h=Object.entries(d.ungroupedSubsections).length===0;if(y&&f&&h)return E.createElement(K4,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let _=Object.keys(d.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return E.createElement(Ja,null,E.createElement(Y4,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},E.createElement("thead",{className:"docblock-argstable-head"},E.createElement("tr",null,E.createElement("th",null,E.createElement("span",null,"Name")),n?null:E.createElement("th",null,E.createElement("span",null,"Description")),n?null:E.createElement("th",null,E.createElement("span",null,"Default")),t?E.createElement("th",null,E.createElement(Q4,null,"Control"," ",!s&&r&&E.createElement(X4,{onClick:()=>r(),title:"Reset controls"},E.createElement(ii,{"aria-hidden":!0})))):null)),E.createElement("tbody",{className:"docblock-argstable-body"},d.ungrouped.map(x=>E.createElement(xa,{key:x.key,row:x,arg:u&&u[x.key],...v})),Object.entries(d.ungroupedSubsections).map(([x,O])=>E.createElement(Tl,{key:x,label:x,level:"subsection",colSpan:g},O.map(C=>E.createElement(xa,{key:C.key,row:C,arg:u&&u[C.key],expandable:_,...v})))),Object.entries(d.sections).map(([x,O])=>E.createElement(Tl,{key:x,label:x,level:"section",colSpan:g},O.ungrouped.map(C=>E.createElement(xa,{key:C.key,row:C,arg:u&&u[C.key],...v})),Object.entries(O.subsections).map(([C,I])=>E.createElement(Tl,{key:C,label:C,level:"subsection",colSpan:g},I.map(P=>E.createElement(xa,{key:P.key,row:P,arg:u&&u[P.key],expandable:_,...v})))))))))};W.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ve(.4,e.color.defaultText):ve(.6,e.color.defaultText)}));W.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});W.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});W.div(Pr,({theme:e})=>({...Pa(e),margin:"25px 0 40px",padding:"30px 20px"}));W.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));W.div(({theme:e})=>({color:e.base==="light"?ve(.2,e.color.defaultText):ve(.6,e.color.defaultText)}));W.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});W.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ve(.4,e.color.defaultText):ve(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));W.div({display:"flex",flexDirection:"row"});W.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));W.div(({theme:e})=>({...Pa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));W.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});W.div({flex:1,display:"flex",flexDirection:"row"});W.div({display:"flex",alignItems:"flex-start"});W.div({flex:"0 0 30%"});W.div({flex:1});W.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ve(.4,e.color.defaultText):ve(.6,e.color.defaultText)}));W.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));W.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));W.div(({theme:e})=>({...Pa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));W.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});W.div({display:"flex",flexFlow:"row wrap"});xt&&xt.__DOCS_CONTEXT__===void 0&&(xt.__DOCS_CONTEXT__=vn(null),xt.__DOCS_CONTEXT__.displayName="DocsContext");var n6=xt?xt.__DOCS_CONTEXT__:vn(null);vn({sources:{}});var{document:o6}=xt;function a6(e,t){e.channel.emit(pu,t)}Ha.a;var F2=["h1","h2","h3","h4","h5","h6"],i6=F2.reduce((e,t)=>({...e,[t]:W(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),s6=W.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),l6=({as:e,id:t,children:r,...n})=>{let o=tu(n6),a=i6[e],i=`#${t}`;return E.createElement(a,{id:t,...n},E.createElement(s6,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{o6.getElementById(t)&&a6(o,i)}},E.createElement(Uu,null)),r)},j2=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return E.createElement(l6,{as:t,id:r,...o},n);let a=t,{as:i,...s}=e;return E.createElement(a,{...Ga(s,t)})};F2.reduce((e,t)=>({...e,[t]:r=>E.createElement(j2,{as:t,...r})}),{});var u6=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(u6||{});Xl(zq());W.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}));W.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}}));W.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var c6=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return E.createElement(Ua,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return E.createElement(j2,{as:"h2",id:n,...r},e)};W(c6)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var Dv="addon-controls",N2="controls",p6=ei({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),d6=ei({from:{background:"var(--highlight-bg-color)"},to:{}}),f6=W.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),y6=W(La)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${p6} 300ms, ${d6} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),h6=W.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),m6=W.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),Cl=W.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),g6=W(dt.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),b6=({saveStory:e,createStory:t,resetArgs:r})=>{let n=E.useRef(null),[o,a]=E.useState(!1),[i,s]=E.useState(!1),[l,u]=E.useState(""),[c,d]=E.useState(null),y=async()=>{o||(a(!0),await e().catch(()=>{}),a(!1))},f=()=>{s(!0),u(""),setTimeout(()=>n.current?.focus(),0)},h=g=>{let _=g.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,v=>v.toUpperCase().replace(/[-_ ]/g,""));u(_.charAt(0).toUpperCase()+_.slice(1))};return E.createElement(f6,{id:"save-from-controls"},E.createElement(y6,null,E.createElement(m6,null,E.createElement(Lt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:E.createElement(sr,{note:"Save changes to story"})},E.createElement(ht,{"aria-label":"Save changes to story",disabled:o,onClick:y},E.createElement(ju,null),E.createElement(Cl,{"data-short-label":"Save"},"Update story"))),E.createElement(Lt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:E.createElement(sr,{note:"Create new story with these settings"})},E.createElement(ht,{"aria-label":"Create new story with these settings",onClick:f},E.createElement(oi,null),E.createElement(Cl,{"data-short-label":"New"},"Create new story"))),E.createElement(Lt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:E.createElement(sr,{note:"Reset changes"})},E.createElement(ht,{"aria-label":"Reset changes",onClick:()=>r()},E.createElement(ii,null),E.createElement("span",null,"Reset")))),E.createElement(h6,null,E.createElement(Cl,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),E.createElement(mt,{width:350,open:i,onOpenChange:s},E.createElement(dt,{onSubmit:async g=>{if(g.preventDefault(),!o)try{d(null),a(!0),await t(l.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),s(!1),a(!1)}catch(_){d(_.message),a(!1)}},id:"create-new-story-form"},E.createElement(mt.Content,null,E.createElement(mt.Header,null,E.createElement(mt.Title,null,"Create new story"),E.createElement(mt.Description,null,"This will add a new story to your existing stories file.")),E.createElement(g6,{onChange:h,placeholder:"Story export name",readOnly:o,ref:n,value:l}),E.createElement(mt.Actions,null,E.createElement(Bt,{disabled:o||!l,size:"medium",type:"submit",variant:"solid"},"Create"),E.createElement(mt.Dialog.Close,{asChild:!0},E.createElement(Bt,{disabled:o,size:"medium",type:"reset"},"Cancel"))))),c&&E.createElement(mt.Error,null,c))))},Fv=e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),v6=W.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),x6=({saveStory:e,createStory:t})=>{let[r,n]=he(!0),[o,a,i,s]=Ou(),[l]=Iu(),u=Za(),{expanded:c,sort:d,presetColors:y}=Pu(N2,{}),{path:f,previewInitialized:h}=ku();ze(()=>{h&&n(!1)},[h]);let g=Object.values(u).some(x=>x?.control),_=Object.entries(u).reduce((x,[O,C])=>{let I=C?.control;return typeof I!="object"||I?.type!=="color"||I?.presetColors?x[O]=C:x[O]={...C,control:{...I,presetColors:y}},x},{}),v=Nt(()=>!!o&&!!s&&!ar(Fv(o),Fv(s)),[o,s]);return E.createElement(v6,null,E.createElement(r6,{key:f,compact:!c&&g,rows:_,args:o,globals:l,updateArgs:a,resetArgs:i,inAddonPanel:!0,sort:d,isLoading:r}),g&&v&&xt.CONFIG_TYPE==="DEVELOPMENT"&&E.createElement(b6,{resetArgs:i,saveStory:e,createStory:t}))};function E6(){let e=Za(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return E.createElement("div",null,E.createElement($a,{col:1},E.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":E.createElement(Ba,{status:"neutral"},t)))}var jv=e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r);mo.register(Dv,e=>{let t=mo.getChannel(),r=async()=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");try{let a=await Qa(t,Ya,fo,{args:jv(Object.entries(o.args||{}).reduce((i,[s,l])=>(ar(l,o.initialArgs?.[s])||(i[s]=l),i),{})),csfId:o.id,importPath:o.importPath});e.addNotification({id:"save-story-success",icon:{name:"passed",color:go.positive},content:{headline:"Story saved",subHeadline:E.createElement(E.Fragment,null,"Updated story ",E.createElement("b",null,a.sourceStoryName),".")},duration:8e3})}catch(a){throw e.addNotification({id:"save-story-error",icon:{name:"failed",color:go.negative},content:{headline:"Failed to save story",subHeadline:a?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),a}},n=async o=>{let a=e.getCurrentStoryData();if(a.type!=="story")throw new Error("Not a story");let i=await Qa(t,Ya,fo,{args:a.args&&jv(a.args),csfId:a.id,importPath:a.importPath,name:o});e.addNotification({id:"save-story-success",icon:{name:"passed",color:go.positive},content:{headline:"Story created",subHeadline:E.createElement(E.Fragment,null,"Added story ",E.createElement("b",null,i.newStoryName)," based on ",E.createElement("b",null,i.sourceStoryName),".")},duration:8e3,onClick:({onDismiss:s})=>{s(),e.selectStory(i.newStoryId)}})};mo.add(Dv,{title:E6,type:_u.PANEL,paramKey:N2,render:({active:o})=>!o||!e.getCurrentStoryData()?null:E.createElement(Na,{active:o},E.createElement(x6,{saveStory:r,createStory:n}))}),t.on(fo,o=>{if(!o.success)return;let a=e.getCurrentStoryData();a.type==="story"&&(e.resetStoryArgs(a),o.payload.newStoryId&&e.selectStory(o.payload.newStoryId))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-measure-7/manager-bundle.js b/storybook/sb-addons/essentials-measure-7/manager-bundle.js new file mode 100644 index 0000000..a7d02dc --- /dev/null +++ b/storybook/sb-addons/essentials-measure-7/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var t=__REACT__,{Children:B,Component:f,Fragment:R,Profiler:P,PureComponent:L,StrictMode:E,Suspense:D,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:w,cloneElement:M,createContext:x,createElement:v,createFactory:H,createRef:U,forwardRef:F,isValidElement:N,lazy:G,memo:W,startTransition:K,unstable_act:Y,useCallback:u,useContext:q,useDebugValue:V,useDeferredValue:Z,useEffect:d,useId:z,useImperativeHandle:J,useInsertionEffect:Q,useLayoutEffect:$,useMemo:j,useReducer:X,useRef:oo,useState:no,useSyncExternalStore:eo,useTransition:co,version:to}=__REACT__;var io=__STORYBOOK_API__,{ActiveTabs:so,Consumer:uo,ManagerContext:mo,Provider:po,RequestResponseError:So,addons:l,combineParameters:Co,controlOrMetaKey:ho,controlOrMetaSymbol:bo,eventMatchesShortcut:To,eventToShortcut:_o,experimental_requestResponse:Ao,isMacLike:go,isShortcutTaken:yo,keyToSymbol:Oo,merge:ko,mockChannel:Bo,optionOrAltSymbol:fo,shortcutMatchesShortcut:Ro,shortcutToHumanString:Po,types:m,useAddonState:Lo,useArgTypes:Eo,useArgs:Do,useChannel:wo,useGlobalTypes:Mo,useGlobals:p,useParameter:xo,useSharedState:vo,useStoryPrepared:Ho,useStorybookApi:S,useStorybookState:Uo}=__STORYBOOK_API__;var Ko=__STORYBOOK_COMPONENTS__,{A:Yo,ActionBar:qo,AddonPanel:Vo,Badge:Zo,Bar:zo,Blockquote:Jo,Button:Qo,ClipboardCode:$o,Code:jo,DL:Xo,Div:on,DocumentWrapper:nn,EmptyTabContent:en,ErrorFormatter:cn,FlexBar:tn,Form:rn,H1:In,H2:an,H3:ln,H4:sn,H5:un,H6:dn,HR:mn,IconButton:C,IconButtonSkeleton:pn,Icons:Sn,Img:Cn,LI:hn,Link:bn,ListItem:Tn,Loader:_n,Modal:An,OL:gn,P:yn,Placeholder:On,Pre:kn,ResetWrapper:Bn,ScrollArea:fn,Separator:Rn,Spaced:Pn,Span:Ln,StorybookIcon:En,StorybookLogo:Dn,Symbols:wn,SyntaxHighlighter:Mn,TT:xn,TabBar:vn,TabButton:Hn,TabWrapper:Un,Table:Fn,Tabs:Nn,TabsState:Gn,TooltipLinkList:Wn,TooltipMessage:Kn,TooltipNote:Yn,UL:qn,WithTooltip:Vn,WithTooltipPure:Zn,Zoom:zn,codeCommon:Jn,components:Qn,createCopyToClipboardFunction:$n,getStoryHref:jn,icons:Xn,interleaveSeparators:oe,nameSpaceClassNames:ne,resetComponents:ee,withReset:ce}=__STORYBOOK_COMPONENTS__;var le=__STORYBOOK_ICONS__,{AccessibilityAltIcon:ie,AccessibilityIcon:se,AddIcon:ue,AdminIcon:de,AlertAltIcon:me,AlertIcon:pe,AlignLeftIcon:Se,AlignRightIcon:Ce,AppleIcon:he,ArrowDownIcon:be,ArrowLeftIcon:Te,ArrowRightIcon:_e,ArrowSolidDownIcon:Ae,ArrowSolidLeftIcon:ge,ArrowSolidRightIcon:ye,ArrowSolidUpIcon:Oe,ArrowUpIcon:ke,AzureDevOpsIcon:Be,BackIcon:fe,BasketIcon:Re,BatchAcceptIcon:Pe,BatchDenyIcon:Le,BeakerIcon:Ee,BellIcon:De,BitbucketIcon:we,BoldIcon:Me,BookIcon:xe,BookmarkHollowIcon:ve,BookmarkIcon:He,BottomBarIcon:Ue,BottomBarToggleIcon:Fe,BoxIcon:Ne,BranchIcon:Ge,BrowserIcon:We,ButtonIcon:Ke,CPUIcon:Ye,CalendarIcon:qe,CameraIcon:Ve,CategoryIcon:Ze,CertificateIcon:ze,ChangedIcon:Je,ChatIcon:Qe,CheckIcon:$e,ChevronDownIcon:je,ChevronLeftIcon:Xe,ChevronRightIcon:oc,ChevronSmallDownIcon:nc,ChevronSmallLeftIcon:ec,ChevronSmallRightIcon:cc,ChevronSmallUpIcon:tc,ChevronUpIcon:rc,ChromaticIcon:Ic,ChromeIcon:ac,CircleHollowIcon:lc,CircleIcon:ic,ClearIcon:sc,CloseAltIcon:uc,CloseIcon:dc,CloudHollowIcon:mc,CloudIcon:pc,CogIcon:Sc,CollapseIcon:Cc,CommandIcon:hc,CommentAddIcon:bc,CommentIcon:Tc,CommentsIcon:_c,CommitIcon:Ac,CompassIcon:gc,ComponentDrivenIcon:yc,ComponentIcon:Oc,ContrastIcon:kc,ControlsIcon:Bc,CopyIcon:fc,CreditIcon:Rc,CrossIcon:Pc,DashboardIcon:Lc,DatabaseIcon:Ec,DeleteIcon:Dc,DiamondIcon:wc,DirectionIcon:Mc,DiscordIcon:xc,DocChartIcon:vc,DocListIcon:Hc,DocumentIcon:Uc,DownloadIcon:Fc,DragIcon:Nc,EditIcon:Gc,EllipsisIcon:Wc,EmailIcon:Kc,ExpandAltIcon:Yc,ExpandIcon:qc,EyeCloseIcon:Vc,EyeIcon:Zc,FaceHappyIcon:zc,FaceNeutralIcon:Jc,FaceSadIcon:Qc,FacebookIcon:$c,FailedIcon:jc,FastForwardIcon:Xc,FigmaIcon:ot,FilterIcon:nt,FlagIcon:et,FolderIcon:ct,FormIcon:tt,GDriveIcon:rt,GithubIcon:It,GitlabIcon:at,GlobeIcon:lt,GoogleIcon:it,GraphBarIcon:st,GraphLineIcon:ut,GraphqlIcon:dt,GridAltIcon:mt,GridIcon:pt,GrowIcon:St,HeartHollowIcon:Ct,HeartIcon:ht,HomeIcon:bt,HourglassIcon:Tt,InfoIcon:_t,ItalicIcon:At,JumpToIcon:gt,KeyIcon:yt,LightningIcon:Ot,LightningOffIcon:kt,LinkBrokenIcon:Bt,LinkIcon:ft,LinkedinIcon:Rt,LinuxIcon:Pt,ListOrderedIcon:Lt,ListUnorderedIcon:Et,LocationIcon:Dt,LockIcon:wt,MarkdownIcon:Mt,MarkupIcon:xt,MediumIcon:vt,MemoryIcon:Ht,MenuIcon:Ut,MergeIcon:Ft,MirrorIcon:Nt,MobileIcon:Gt,MoonIcon:Wt,NutIcon:Kt,OutboxIcon:Yt,OutlineIcon:qt,PaintBrushIcon:Vt,PaperClipIcon:Zt,ParagraphIcon:zt,PassedIcon:Jt,PhoneIcon:Qt,PhotoDragIcon:$t,PhotoIcon:jt,PinAltIcon:Xt,PinIcon:or,PlayBackIcon:nr,PlayIcon:er,PlayNextIcon:cr,PlusIcon:tr,PointerDefaultIcon:rr,PointerHandIcon:Ir,PowerIcon:ar,PrintIcon:lr,ProceedIcon:ir,ProfileIcon:sr,PullRequestIcon:ur,QuestionIcon:dr,RSSIcon:mr,RedirectIcon:pr,ReduxIcon:Sr,RefreshIcon:Cr,ReplyIcon:hr,RepoIcon:br,RequestChangeIcon:Tr,RewindIcon:_r,RulerIcon:h,SearchIcon:Ar,ShareAltIcon:gr,ShareIcon:yr,ShieldIcon:Or,SideBySideIcon:kr,SidebarAltIcon:Br,SidebarAltToggleIcon:fr,SidebarIcon:Rr,SidebarToggleIcon:Pr,SpeakerIcon:Lr,StackedIcon:Er,StarHollowIcon:Dr,StarIcon:wr,StickerIcon:Mr,StopAltIcon:xr,StopIcon:vr,StorybookIcon:Hr,StructureIcon:Ur,SubtractIcon:Fr,SunIcon:Nr,SupportIcon:Gr,SwitchAltIcon:Wr,SyncIcon:Kr,TabletIcon:Yr,ThumbsUpIcon:qr,TimeIcon:Vr,TimerIcon:Zr,TransferIcon:zr,TrashIcon:Jr,TwitterIcon:Qr,TypeIcon:$r,UbuntuIcon:jr,UndoIcon:Xr,UnfoldIcon:oI,UnlockIcon:nI,UnpinIcon:eI,UploadIcon:cI,UserAddIcon:tI,UserAltIcon:rI,UserIcon:II,UsersIcon:aI,VSCodeIcon:lI,VerifiedIcon:iI,VideoIcon:sI,WandIcon:uI,WatchIcon:dI,WindowsIcon:mI,WrenchIcon:pI,YoutubeIcon:SI,ZoomIcon:CI,ZoomOutIcon:hI,ZoomResetIcon:bI,iconList:TI}=__STORYBOOK_ICONS__;var i="storybook/measure-addon",b=`${i}/tool`,T=()=>{let[r,c]=p(),{measureEnabled:I}=r,s=S(),a=u(()=>c({measureEnabled:!I}),[c,I]);return d(()=>{s.setAddonShortcut(i,{label:"Toggle Measure [M]",defaultShortcut:["M"],actionName:"measure",showInMenu:!1,action:a})},[a,s]),t.createElement(C,{key:b,active:I,title:"Enable measure",onClick:a},t.createElement(h,null))};l.register(i,()=>{l.add(b,{type:m.TOOL,title:"Measure",match:({viewMode:r,tabId:c})=>r==="story"&&!c,render:()=>t.createElement(T,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-outline-8/manager-bundle.js b/storybook/sb-addons/essentials-outline-8/manager-bundle.js new file mode 100644 index 0000000..71ce95b --- /dev/null +++ b/storybook/sb-addons/essentials-outline-8/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var t=__REACT__,{Children:f,Component:R,Fragment:P,Profiler:L,PureComponent:E,StrictMode:D,Suspense:w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:v,cloneElement:x,createContext:H,createElement:M,createFactory:U,createRef:F,forwardRef:N,isValidElement:G,lazy:W,memo:u,startTransition:K,unstable_act:Y,useCallback:d,useContext:q,useDebugValue:V,useDeferredValue:Z,useEffect:p,useId:z,useImperativeHandle:J,useInsertionEffect:Q,useLayoutEffect:$,useMemo:j,useReducer:X,useRef:oo,useState:no,useSyncExternalStore:eo,useTransition:co,version:to}=__REACT__;var io=__STORYBOOK_API__,{ActiveTabs:so,Consumer:uo,ManagerContext:po,Provider:mo,RequestResponseError:So,addons:l,combineParameters:Co,controlOrMetaKey:ho,controlOrMetaSymbol:Ao,eventMatchesShortcut:_o,eventToShortcut:bo,experimental_requestResponse:To,isMacLike:go,isShortcutTaken:yo,keyToSymbol:Oo,merge:ko,mockChannel:Bo,optionOrAltSymbol:fo,shortcutMatchesShortcut:Ro,shortcutToHumanString:Po,types:m,useAddonState:Lo,useArgTypes:Eo,useArgs:Do,useChannel:wo,useGlobalTypes:vo,useGlobals:S,useParameter:xo,useSharedState:Ho,useStoryPrepared:Mo,useStorybookApi:C,useStorybookState:Uo}=__STORYBOOK_API__;var Ko=__STORYBOOK_COMPONENTS__,{A:Yo,ActionBar:qo,AddonPanel:Vo,Badge:Zo,Bar:zo,Blockquote:Jo,Button:Qo,ClipboardCode:$o,Code:jo,DL:Xo,Div:on,DocumentWrapper:nn,EmptyTabContent:en,ErrorFormatter:cn,FlexBar:tn,Form:rn,H1:In,H2:an,H3:ln,H4:sn,H5:un,H6:dn,HR:pn,IconButton:h,IconButtonSkeleton:mn,Icons:Sn,Img:Cn,LI:hn,Link:An,ListItem:_n,Loader:bn,Modal:Tn,OL:gn,P:yn,Placeholder:On,Pre:kn,ResetWrapper:Bn,ScrollArea:fn,Separator:Rn,Spaced:Pn,Span:Ln,StorybookIcon:En,StorybookLogo:Dn,Symbols:wn,SyntaxHighlighter:vn,TT:xn,TabBar:Hn,TabButton:Mn,TabWrapper:Un,Table:Fn,Tabs:Nn,TabsState:Gn,TooltipLinkList:Wn,TooltipMessage:Kn,TooltipNote:Yn,UL:qn,WithTooltip:Vn,WithTooltipPure:Zn,Zoom:zn,codeCommon:Jn,components:Qn,createCopyToClipboardFunction:$n,getStoryHref:jn,icons:Xn,interleaveSeparators:oe,nameSpaceClassNames:ne,resetComponents:ee,withReset:ce}=__STORYBOOK_COMPONENTS__;var le=__STORYBOOK_ICONS__,{AccessibilityAltIcon:ie,AccessibilityIcon:se,AddIcon:ue,AdminIcon:de,AlertAltIcon:pe,AlertIcon:me,AlignLeftIcon:Se,AlignRightIcon:Ce,AppleIcon:he,ArrowDownIcon:Ae,ArrowLeftIcon:_e,ArrowRightIcon:be,ArrowSolidDownIcon:Te,ArrowSolidLeftIcon:ge,ArrowSolidRightIcon:ye,ArrowSolidUpIcon:Oe,ArrowUpIcon:ke,AzureDevOpsIcon:Be,BackIcon:fe,BasketIcon:Re,BatchAcceptIcon:Pe,BatchDenyIcon:Le,BeakerIcon:Ee,BellIcon:De,BitbucketIcon:we,BoldIcon:ve,BookIcon:xe,BookmarkHollowIcon:He,BookmarkIcon:Me,BottomBarIcon:Ue,BottomBarToggleIcon:Fe,BoxIcon:Ne,BranchIcon:Ge,BrowserIcon:We,ButtonIcon:Ke,CPUIcon:Ye,CalendarIcon:qe,CameraIcon:Ve,CategoryIcon:Ze,CertificateIcon:ze,ChangedIcon:Je,ChatIcon:Qe,CheckIcon:$e,ChevronDownIcon:je,ChevronLeftIcon:Xe,ChevronRightIcon:oc,ChevronSmallDownIcon:nc,ChevronSmallLeftIcon:ec,ChevronSmallRightIcon:cc,ChevronSmallUpIcon:tc,ChevronUpIcon:rc,ChromaticIcon:Ic,ChromeIcon:ac,CircleHollowIcon:lc,CircleIcon:ic,ClearIcon:sc,CloseAltIcon:uc,CloseIcon:dc,CloudHollowIcon:pc,CloudIcon:mc,CogIcon:Sc,CollapseIcon:Cc,CommandIcon:hc,CommentAddIcon:Ac,CommentIcon:_c,CommentsIcon:bc,CommitIcon:Tc,CompassIcon:gc,ComponentDrivenIcon:yc,ComponentIcon:Oc,ContrastIcon:kc,ControlsIcon:Bc,CopyIcon:fc,CreditIcon:Rc,CrossIcon:Pc,DashboardIcon:Lc,DatabaseIcon:Ec,DeleteIcon:Dc,DiamondIcon:wc,DirectionIcon:vc,DiscordIcon:xc,DocChartIcon:Hc,DocListIcon:Mc,DocumentIcon:Uc,DownloadIcon:Fc,DragIcon:Nc,EditIcon:Gc,EllipsisIcon:Wc,EmailIcon:Kc,ExpandAltIcon:Yc,ExpandIcon:qc,EyeCloseIcon:Vc,EyeIcon:Zc,FaceHappyIcon:zc,FaceNeutralIcon:Jc,FaceSadIcon:Qc,FacebookIcon:$c,FailedIcon:jc,FastForwardIcon:Xc,FigmaIcon:ot,FilterIcon:nt,FlagIcon:et,FolderIcon:ct,FormIcon:tt,GDriveIcon:rt,GithubIcon:It,GitlabIcon:at,GlobeIcon:lt,GoogleIcon:it,GraphBarIcon:st,GraphLineIcon:ut,GraphqlIcon:dt,GridAltIcon:pt,GridIcon:mt,GrowIcon:St,HeartHollowIcon:Ct,HeartIcon:ht,HomeIcon:At,HourglassIcon:_t,InfoIcon:bt,ItalicIcon:Tt,JumpToIcon:gt,KeyIcon:yt,LightningIcon:Ot,LightningOffIcon:kt,LinkBrokenIcon:Bt,LinkIcon:ft,LinkedinIcon:Rt,LinuxIcon:Pt,ListOrderedIcon:Lt,ListUnorderedIcon:Et,LocationIcon:Dt,LockIcon:wt,MarkdownIcon:vt,MarkupIcon:xt,MediumIcon:Ht,MemoryIcon:Mt,MenuIcon:Ut,MergeIcon:Ft,MirrorIcon:Nt,MobileIcon:Gt,MoonIcon:Wt,NutIcon:Kt,OutboxIcon:Yt,OutlineIcon:A,PaintBrushIcon:qt,PaperClipIcon:Vt,ParagraphIcon:Zt,PassedIcon:zt,PhoneIcon:Jt,PhotoDragIcon:Qt,PhotoIcon:$t,PinAltIcon:jt,PinIcon:Xt,PlayBackIcon:or,PlayIcon:nr,PlayNextIcon:er,PlusIcon:cr,PointerDefaultIcon:tr,PointerHandIcon:rr,PowerIcon:Ir,PrintIcon:ar,ProceedIcon:lr,ProfileIcon:ir,PullRequestIcon:sr,QuestionIcon:ur,RSSIcon:dr,RedirectIcon:pr,ReduxIcon:mr,RefreshIcon:Sr,ReplyIcon:Cr,RepoIcon:hr,RequestChangeIcon:Ar,RewindIcon:_r,RulerIcon:br,SearchIcon:Tr,ShareAltIcon:gr,ShareIcon:yr,ShieldIcon:Or,SideBySideIcon:kr,SidebarAltIcon:Br,SidebarAltToggleIcon:fr,SidebarIcon:Rr,SidebarToggleIcon:Pr,SpeakerIcon:Lr,StackedIcon:Er,StarHollowIcon:Dr,StarIcon:wr,StickerIcon:vr,StopAltIcon:xr,StopIcon:Hr,StorybookIcon:Mr,StructureIcon:Ur,SubtractIcon:Fr,SunIcon:Nr,SupportIcon:Gr,SwitchAltIcon:Wr,SyncIcon:Kr,TabletIcon:Yr,ThumbsUpIcon:qr,TimeIcon:Vr,TimerIcon:Zr,TransferIcon:zr,TrashIcon:Jr,TwitterIcon:Qr,TypeIcon:$r,UbuntuIcon:jr,UndoIcon:Xr,UnfoldIcon:oI,UnlockIcon:nI,UnpinIcon:eI,UploadIcon:cI,UserAddIcon:tI,UserAltIcon:rI,UserIcon:II,UsersIcon:aI,VSCodeIcon:lI,VerifiedIcon:iI,VideoIcon:sI,WandIcon:uI,WatchIcon:dI,WindowsIcon:pI,WrenchIcon:mI,YoutubeIcon:SI,ZoomIcon:CI,ZoomOutIcon:hI,ZoomResetIcon:AI,iconList:_I}=__STORYBOOK_ICONS__;var i="storybook/outline",_="outline",b=u(function(){let[c,r]=S(),s=C(),I=[!0,"true"].includes(c[_]),a=d(()=>r({[_]:!I}),[I]);return p(()=>{s.setAddonShortcut(i,{label:"Toggle Outline",defaultShortcut:["alt","O"],actionName:"outline",showInMenu:!1,action:a})},[a,s]),t.createElement(h,{key:"outline",active:I,title:"Apply outlines to the preview",onClick:a},t.createElement(A,null))});l.register(i,()=>{l.add(i,{title:"Outline",type:m.TOOL,match:({viewMode:c,tabId:r})=>!!(c&&c.match(/^(story|docs)$/))&&!r,render:()=>t.createElement(b,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js b/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js new file mode 100644 index 0000000..3cd68cf --- /dev/null +++ b/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var n=__REACT__,{Children:le,Component:ne,Fragment:se,Profiler:ie,PureComponent:ue,StrictMode:ce,Suspense:pe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:me,cloneElement:de,createContext:be,createElement:Se,createFactory:Te,createRef:ye,forwardRef:_e,isValidElement:fe,lazy:Ce,memo:Ie,startTransition:ve,unstable_act:Oe,useCallback:I,useContext:Ee,useDebugValue:xe,useDeferredValue:ge,useEffect:x,useId:he,useImperativeHandle:ke,useInsertionEffect:Ae,useLayoutEffect:Re,useMemo:Le,useReducer:Be,useRef:R,useState:L,useSyncExternalStore:Me,useTransition:Pe,version:Ne}=__REACT__;var Fe=__STORYBOOK_API__,{ActiveTabs:We,Consumer:Ge,ManagerContext:Ke,Provider:Ye,RequestResponseError:$e,addons:g,combineParameters:qe,controlOrMetaKey:ze,controlOrMetaSymbol:Ue,eventMatchesShortcut:je,eventToShortcut:Ze,experimental_requestResponse:Je,isMacLike:Qe,isShortcutTaken:Xe,keyToSymbol:et,merge:tt,mockChannel:ot,optionOrAltSymbol:rt,shortcutMatchesShortcut:at,shortcutToHumanString:lt,types:B,useAddonState:nt,useArgTypes:st,useArgs:it,useChannel:ut,useGlobalTypes:M,useGlobals:h,useParameter:ct,useSharedState:pt,useStoryPrepared:mt,useStorybookApi:P,useStorybookState:dt}=__STORYBOOK_API__;var _t=__STORYBOOK_COMPONENTS__,{A:ft,ActionBar:Ct,AddonPanel:It,Badge:vt,Bar:Ot,Blockquote:Et,Button:xt,ClipboardCode:gt,Code:ht,DL:kt,Div:At,DocumentWrapper:Rt,EmptyTabContent:Lt,ErrorFormatter:Bt,FlexBar:Mt,Form:Pt,H1:Nt,H2:wt,H3:Vt,H4:Dt,H5:Ht,H6:Ft,HR:Wt,IconButton:N,IconButtonSkeleton:Gt,Icons:k,Img:Kt,LI:Yt,Link:$t,ListItem:qt,Loader:zt,Modal:Ut,OL:jt,P:Zt,Placeholder:Jt,Pre:Qt,ResetWrapper:Xt,ScrollArea:eo,Separator:w,Spaced:to,Span:oo,StorybookIcon:ro,StorybookLogo:ao,Symbols:lo,SyntaxHighlighter:no,TT:so,TabBar:io,TabButton:uo,TabWrapper:co,Table:po,Tabs:mo,TabsState:bo,TooltipLinkList:V,TooltipMessage:So,TooltipNote:To,UL:yo,WithTooltip:D,WithTooltipPure:_o,Zoom:fo,codeCommon:Co,components:Io,createCopyToClipboardFunction:vo,getStoryHref:Oo,icons:Eo,interleaveSeparators:xo,nameSpaceClassNames:go,resetComponents:ho,withReset:ko}=__STORYBOOK_COMPONENTS__;var W=({active:o,title:t,icon:e,description:r,onClick:a})=>n.createElement(N,{active:o,title:r,onClick:a},e&&n.createElement(k,{icon:e,__suppressDeprecationWarning:!0}),t?`\xA0${t}`:null),G=["reset"],K=o=>o.filter(t=>!G.includes(t.type)).map(t=>t.value),b="addon-toolbars",Y=async(o,t,e)=>{e&&e.next&&await o.setAddonShortcut(b,{label:e.next.label,defaultShortcut:e.next.keys,actionName:`${t}:next`,action:e.next.action}),e&&e.previous&&await o.setAddonShortcut(b,{label:e.previous.label,defaultShortcut:e.previous.keys,actionName:`${t}:previous`,action:e.previous.action}),e&&e.reset&&await o.setAddonShortcut(b,{label:e.reset.label,defaultShortcut:e.reset.keys,actionName:`${t}:reset`,action:e.reset.action})},$=o=>t=>{let{id:e,toolbar:{items:r,shortcuts:a}}=t,d=P(),[S,s]=h(),l=R([]),p=S[e],v=I(()=>{s({[e]:""})},[s]),O=I(()=>{let m=l.current,i=m.indexOf(p),c=i===m.length-1?0:i+1,T=l.current[c];s({[e]:T})},[l,p,s]),u=I(()=>{let m=l.current,i=m.indexOf(p),c=i>-1?i:0,T=c===0?m.length-1:c-1,y=l.current[T];s({[e]:y})},[l,p,s]);return x(()=>{a&&Y(d,e,{next:{...a.next,action:O},previous:{...a.previous,action:u},reset:{...a.reset,action:v}})},[d,e,a,O,u,v]),x(()=>{l.current=K(r)},[]),n.createElement(o,{cycleValues:l.current,...t})},H=({currentValue:o,items:t})=>o!=null&&t.find(e=>e.value===o&&e.type!=="reset"),q=({currentValue:o,items:t})=>{let e=H({currentValue:o,items:t});if(e)return e.icon},z=({currentValue:o,items:t})=>{let e=H({currentValue:o,items:t});if(e)return e.title},U=({right:o,title:t,value:e,icon:r,hideIcon:a,onClick:d,currentValue:S})=>{let s=r&&n.createElement(k,{style:{opacity:1},icon:r}),l={id:e??"_reset",active:S===e,right:o,title:t,icon:r,onClick:d};return r&&!a&&(l.icon=s),l},j=$(({id:o,name:t,description:e,toolbar:{icon:r,items:a,title:d,preventDynamicIcon:S,dynamicTitle:s}})=>{let[l,p]=h(),[v,O]=L(!1),u=l[o],m=!!u,i=r,c=d;S||(i=q({currentValue:u,items:a})||i),s&&(c=z({currentValue:u,items:a})||c),!c&&!i&&console.warn(`Toolbar '${t}' has no title or icon`);let T=I(y=>{p({[o]:y})},[u,p]);return n.createElement(D,{placement:"top",tooltip:({onHide:y})=>{let F=a.filter(({type:E})=>{let A=!0;return E==="reset"&&!u&&(A=!1),A}).map(E=>U({...E,currentValue:u,onClick:()=>{T(E.value),y()}}));return n.createElement(V,{links:F})},closeOnOutsideClick:!0,onVisibleChange:O},n.createElement(W,{active:v||m,description:e||"",icon:i,title:c||""}))}),Z={type:"item",value:""},J=(o,t)=>({...t,name:t.name||o,description:t.description||o,toolbar:{...t.toolbar,items:t.toolbar.items.map(e=>{let r=typeof e=="string"?{value:e,title:e}:e;return r.type==="reset"&&t.toolbar.icon&&(r.icon=t.toolbar.icon,r.hideIcon=!0),{...Z,...r}})}}),Q=()=>{let o=M(),t=Object.keys(o).filter(e=>!!o[e].toolbar);return t.length?n.createElement(n.Fragment,null,n.createElement(w,null),t.map(e=>{let r=J(e,o[e]);return n.createElement(j,{key:e,id:e,...r})})):null};g.register(b,()=>g.add(b,{title:b,type:B.TOOL,match:({tabId:o})=>!o,render:()=>n.createElement(Q,null)}));})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/essentials-viewport-5/manager-bundle.js b/storybook/sb-addons/essentials-viewport-5/manager-bundle.js new file mode 100644 index 0000000..d3cc7bc --- /dev/null +++ b/storybook/sb-addons/essentials-viewport-5/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var ie=Object.create;var H=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var le=Object.getPrototypeOf,se=Object.prototype.hasOwnProperty;var O=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ue=(e,t,r,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ae(t))!se.call(e,a)&&a!==r&&H(e,a,{get:()=>t[a],enumerable:!(l=ce(t,a))||l.enumerable});return e};var pe=(e,t,r)=>(r=e!=null?ie(le(e)):{},ue(t||!e||!e.__esModule?H(r,"default",{value:e,enumerable:!0}):r,e));var d=P(()=>{});var h=P(()=>{});var m=P(()=>{});var $=Ie((Z,D)=>{d();h();m();(function(e){if(typeof Z=="object"&&typeof D<"u")D.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function l(a,S,u){function i(c,I){if(!S[c]){if(!a[c]){var s=typeof O=="function"&&O;if(!I&&s)return s(c,!0);if(o)return o(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var n=S[c]={exports:{}};a[c][0].call(n.exports,function(p){var b=a[c][1][p];return i(b||p)},n,n.exports,l,a,S,u)}return S[c].exports}for(var o=typeof O=="function"&&O,f=0;f=0)return this.lastItem=this.list[o],this.list[o].val},u.prototype.set=function(i,o){var f;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(f=this.indexOf(i),f>=0?(this.lastItem=this.list[f],this.list[f].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},u.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},u.prototype.forEach=function(i,o){var f;for(f=0;f0&&(E[y]={cacheItem:p,arg:arguments[y]},x?i(s,E):s.push(E),s.length>c&&o(s.shift())),n.wasMemoized=x,n.numArgs=y+1,R};return n.limit=c,n.wasMemoized=!1,n.cache=I,n.lru=s,n}};function i(c,I){var s=c.length,g=I.length,n,p,b;for(p=0;p=0&&(s=c[n],g=s.cacheItem.get(s.arg),!g||!g.size);n--)s.cacheItem.delete(s.arg)}function f(c,I){return c===I||c!==c&&I!==I}},{"map-or-similar":1}]},{},[3])(3)})});d();h();m();d();h();m();d();h();m();d();h();m();var w=__REACT__,{Children:De,Component:Ve,Fragment:U,Profiler:Ne,PureComponent:He,StrictMode:Ue,Suspense:ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fe,cloneElement:Ge,createContext:qe,createElement:z,createFactory:We,createRef:Ye,forwardRef:je,isValidElement:Ke,lazy:Ze,memo:F,startTransition:$e,unstable_act:Je,useCallback:Qe,useContext:Xe,useDebugValue:et,useDeferredValue:tt,useEffect:L,useId:ot,useImperativeHandle:nt,useInsertionEffect:rt,useLayoutEffect:it,useMemo:ct,useReducer:at,useRef:G,useState:q,useSyncExternalStore:lt,useTransition:st,version:It}=__REACT__;d();h();m();var ht=__STORYBOOK_API__,{ActiveTabs:mt,Consumer:ft,ManagerContext:gt,Provider:St,RequestResponseError:wt,addons:M,combineParameters:bt,controlOrMetaKey:yt,controlOrMetaSymbol:Ct,eventMatchesShortcut:vt,eventToShortcut:_t,experimental_requestResponse:Tt,isMacLike:xt,isShortcutTaken:Ot,keyToSymbol:At,merge:kt,mockChannel:Rt,optionOrAltSymbol:Et,shortcutMatchesShortcut:Lt,shortcutToHumanString:Bt,types:W,useAddonState:Pt,useArgTypes:Mt,useArgs:Dt,useChannel:Vt,useGlobalTypes:Nt,useGlobals:Y,useParameter:j,useSharedState:Ht,useStoryPrepared:Ut,useStorybookApi:K,useStorybookState:zt}=__STORYBOOK_API__;var N=pe($());d();h();m();var $t=__STORYBOOK_THEMING__,{CacheProvider:Jt,ClassNames:Qt,Global:J,ThemeProvider:Xt,background:eo,color:to,convert:oo,create:no,createCache:ro,createGlobal:io,createReset:co,css:ao,darken:lo,ensure:so,ignoreSsrWarning:Io,isPropValid:uo,jsx:po,keyframes:ho,lighten:mo,styled:A,themes:fo,typography:go,useTheme:So,withTheme:Q}=__STORYBOOK_THEMING__;d();h();m();var vo=__STORYBOOK_COMPONENTS__,{A:_o,ActionBar:To,AddonPanel:xo,Badge:Oo,Bar:Ao,Blockquote:ko,Button:Ro,ClipboardCode:Eo,Code:Lo,DL:Bo,Div:Po,DocumentWrapper:Mo,EmptyTabContent:Do,ErrorFormatter:Vo,FlexBar:No,Form:Ho,H1:Uo,H2:zo,H3:Fo,H4:Go,H5:qo,H6:Wo,HR:Yo,IconButton:V,IconButtonSkeleton:jo,Icons:Ko,Img:Zo,LI:$o,Link:Jo,ListItem:Qo,Loader:Xo,Modal:en,OL:tn,P:on,Placeholder:nn,Pre:rn,ResetWrapper:cn,ScrollArea:an,Separator:ln,Spaced:sn,Span:In,StorybookIcon:un,StorybookLogo:pn,Symbols:dn,SyntaxHighlighter:hn,TT:mn,TabBar:fn,TabButton:gn,TabWrapper:Sn,Table:wn,Tabs:bn,TabsState:yn,TooltipLinkList:X,TooltipMessage:Cn,TooltipNote:vn,UL:_n,WithTooltip:ee,WithTooltipPure:Tn,Zoom:xn,codeCommon:On,components:An,createCopyToClipboardFunction:kn,getStoryHref:Rn,icons:En,interleaveSeparators:Ln,nameSpaceClassNames:Bn,resetComponents:Pn,withReset:Mn}=__STORYBOOK_COMPONENTS__;d();h();m();var Un=__STORYBOOK_ICONS__,{AccessibilityAltIcon:zn,AccessibilityIcon:Fn,AddIcon:Gn,AdminIcon:qn,AlertAltIcon:Wn,AlertIcon:Yn,AlignLeftIcon:jn,AlignRightIcon:Kn,AppleIcon:Zn,ArrowDownIcon:$n,ArrowLeftIcon:Jn,ArrowRightIcon:Qn,ArrowSolidDownIcon:Xn,ArrowSolidLeftIcon:er,ArrowSolidRightIcon:tr,ArrowSolidUpIcon:or,ArrowUpIcon:nr,AzureDevOpsIcon:rr,BackIcon:ir,BasketIcon:cr,BatchAcceptIcon:ar,BatchDenyIcon:lr,BeakerIcon:sr,BellIcon:Ir,BitbucketIcon:ur,BoldIcon:pr,BookIcon:dr,BookmarkHollowIcon:hr,BookmarkIcon:mr,BottomBarIcon:fr,BottomBarToggleIcon:gr,BoxIcon:Sr,BranchIcon:wr,BrowserIcon:br,ButtonIcon:yr,CPUIcon:Cr,CalendarIcon:vr,CameraIcon:_r,CategoryIcon:Tr,CertificateIcon:xr,ChangedIcon:Or,ChatIcon:Ar,CheckIcon:kr,ChevronDownIcon:Rr,ChevronLeftIcon:Er,ChevronRightIcon:Lr,ChevronSmallDownIcon:Br,ChevronSmallLeftIcon:Pr,ChevronSmallRightIcon:Mr,ChevronSmallUpIcon:Dr,ChevronUpIcon:Vr,ChromaticIcon:Nr,ChromeIcon:Hr,CircleHollowIcon:Ur,CircleIcon:zr,ClearIcon:Fr,CloseAltIcon:Gr,CloseIcon:qr,CloudHollowIcon:Wr,CloudIcon:Yr,CogIcon:jr,CollapseIcon:Kr,CommandIcon:Zr,CommentAddIcon:$r,CommentIcon:Jr,CommentsIcon:Qr,CommitIcon:Xr,CompassIcon:ei,ComponentDrivenIcon:ti,ComponentIcon:oi,ContrastIcon:ni,ControlsIcon:ri,CopyIcon:ii,CreditIcon:ci,CrossIcon:ai,DashboardIcon:li,DatabaseIcon:si,DeleteIcon:Ii,DiamondIcon:ui,DirectionIcon:pi,DiscordIcon:di,DocChartIcon:hi,DocListIcon:mi,DocumentIcon:fi,DownloadIcon:gi,DragIcon:Si,EditIcon:wi,EllipsisIcon:bi,EmailIcon:yi,ExpandAltIcon:Ci,ExpandIcon:vi,EyeCloseIcon:_i,EyeIcon:Ti,FaceHappyIcon:xi,FaceNeutralIcon:Oi,FaceSadIcon:Ai,FacebookIcon:ki,FailedIcon:Ri,FastForwardIcon:Ei,FigmaIcon:Li,FilterIcon:Bi,FlagIcon:Pi,FolderIcon:Mi,FormIcon:Di,GDriveIcon:Vi,GithubIcon:Ni,GitlabIcon:Hi,GlobeIcon:Ui,GoogleIcon:zi,GraphBarIcon:Fi,GraphLineIcon:Gi,GraphqlIcon:qi,GridAltIcon:Wi,GridIcon:Yi,GrowIcon:te,HeartHollowIcon:ji,HeartIcon:Ki,HomeIcon:Zi,HourglassIcon:$i,InfoIcon:Ji,ItalicIcon:Qi,JumpToIcon:Xi,KeyIcon:ec,LightningIcon:tc,LightningOffIcon:oc,LinkBrokenIcon:nc,LinkIcon:rc,LinkedinIcon:ic,LinuxIcon:cc,ListOrderedIcon:ac,ListUnorderedIcon:lc,LocationIcon:sc,LockIcon:Ic,MarkdownIcon:uc,MarkupIcon:pc,MediumIcon:dc,MemoryIcon:hc,MenuIcon:mc,MergeIcon:fc,MirrorIcon:gc,MobileIcon:Sc,MoonIcon:wc,NutIcon:bc,OutboxIcon:yc,OutlineIcon:Cc,PaintBrushIcon:vc,PaperClipIcon:_c,ParagraphIcon:Tc,PassedIcon:xc,PhoneIcon:Oc,PhotoDragIcon:Ac,PhotoIcon:kc,PinAltIcon:Rc,PinIcon:Ec,PlayBackIcon:Lc,PlayIcon:Bc,PlayNextIcon:Pc,PlusIcon:Mc,PointerDefaultIcon:Dc,PointerHandIcon:Vc,PowerIcon:Nc,PrintIcon:Hc,ProceedIcon:Uc,ProfileIcon:zc,PullRequestIcon:Fc,QuestionIcon:Gc,RSSIcon:qc,RedirectIcon:Wc,ReduxIcon:Yc,RefreshIcon:jc,ReplyIcon:Kc,RepoIcon:Zc,RequestChangeIcon:$c,RewindIcon:Jc,RulerIcon:Qc,SearchIcon:Xc,ShareAltIcon:ea,ShareIcon:ta,ShieldIcon:oa,SideBySideIcon:na,SidebarAltIcon:ra,SidebarAltToggleIcon:ia,SidebarIcon:ca,SidebarToggleIcon:aa,SpeakerIcon:la,StackedIcon:sa,StarHollowIcon:Ia,StarIcon:ua,StickerIcon:pa,StopAltIcon:da,StopIcon:ha,StorybookIcon:ma,StructureIcon:fa,SubtractIcon:ga,SunIcon:Sa,SupportIcon:wa,SwitchAltIcon:ba,SyncIcon:ya,TabletIcon:Ca,ThumbsUpIcon:va,TimeIcon:_a,TimerIcon:Ta,TransferIcon:oe,TrashIcon:xa,TwitterIcon:Oa,TypeIcon:Aa,UbuntuIcon:ka,UndoIcon:Ra,UnfoldIcon:Ea,UnlockIcon:La,UnpinIcon:Ba,UploadIcon:Pa,UserAddIcon:Ma,UserAltIcon:Da,UserIcon:Va,UsersIcon:Na,VSCodeIcon:Ha,VerifiedIcon:Ua,VideoIcon:za,WandIcon:Fa,WatchIcon:Ga,WindowsIcon:qa,WrenchIcon:Wa,YoutubeIcon:Ya,ZoomIcon:ja,ZoomOutIcon:Ka,ZoomResetIcon:Za,iconList:$a}=__STORYBOOK_ICONS__;var k="storybook/viewport",he="viewport",me={viewport:"reset",viewportRotated:!1},re=(e,t)=>e.indexOf(t),fe=(e,t)=>{let r=re(e,t);return r===e.length-1?e[0]:e[r+1]},ge=(e,t)=>{let r=re(e,t);return r<1?e[e.length-1]:e[r-1]},Se=async(e,t,r,l)=>{await e.setAddonShortcut(k,{label:"Previous viewport",defaultShortcut:["alt","shift","V"],actionName:"previous",action:()=>{r({viewport:ge(l,t.viewport)})}}),await e.setAddonShortcut(k,{label:"Next viewport",defaultShortcut:["alt","V"],actionName:"next",action:()=>{r({viewport:fe(l,t.viewport)})}}),await e.setAddonShortcut(k,{label:"Reset viewport",defaultShortcut:["alt","control","V"],actionName:"reset",action:()=>{r(me)}})},we={mobile1:{name:"Small mobile",styles:{height:"568px",width:"320px"},type:"mobile"},mobile2:{name:"Large mobile",styles:{height:"896px",width:"414px"},type:"mobile"},tablet:{name:"Tablet",styles:{height:"1112px",width:"834px"},type:"tablet"}},be=(0,N.default)(50)(e=>[...ye,...Object.entries(e).map(([t,{name:r,...l}])=>({...l,id:t,title:r}))]),B={id:"reset",title:"Reset viewport",styles:null,type:"other"},ye=[B],Ce=(0,N.default)(50)((e,t,r,l)=>e.filter(a=>a.id!==B.id||t.id!==a.id).map(a=>({...a,onClick:()=>{r({viewport:a.id}),l()}}))),ve=({width:e,height:t,...r})=>({...r,height:e,width:t}),_e=A.div(()=>({display:"inline-flex",alignItems:"center"})),ne=A.div(({theme:e})=>({display:"inline-block",textDecoration:"none",padding:10,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,lineHeight:"1",height:40,border:"none",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",background:"transparent"})),Te=A(V)(()=>({display:"inline-flex",alignItems:"center"})),xe=A.div(({theme:e})=>({fontSize:e.typography.size.s2-1,marginLeft:10})),Oe=(e,t,r)=>{if(t===null)return;let l=typeof t=="function"?t(e):t;return r?ve(l):l},Ae=F(Q(({theme:e})=>{let[t,r]=Y(),{viewports:l=we,defaultOrientation:a,defaultViewport:S,disable:u}=j(he,{}),i=be(l),o=K(),[f,c]=q(!1);S&&!i.find(n=>n.id===S)&&console.warn(`Cannot find "defaultViewport" of "${S}" in addon-viewport configs, please check the "viewports" setting in the configuration.`),L(()=>{Se(o,t,r,Object.keys(l))},[l,t,t.viewport,r,o]),L(()=>{let n=a==="landscape";(S&&t.viewport!==S||a&&t.viewportRotated!==n)&&r({viewport:S,viewportRotated:n})},[a,S,r]);let I=i.find(n=>n.id===t.viewport)||i.find(n=>n.id===S)||i.find(n=>n.default)||B,s=G(),g=Oe(s.current,I.styles,t.viewportRotated);return L(()=>{s.current=g},[I]),u||Object.entries(l).length===0?null:w.createElement(U,null,w.createElement(ee,{placement:"top",tooltip:({onHide:n})=>w.createElement(X,{links:Ce(i,I,r,n)}),closeOnOutsideClick:!0,onVisibleChange:c},w.createElement(Te,{key:"viewport",title:"Change the size of the preview",active:f||!!g,onDoubleClick:()=>{r({viewport:B.id})}},w.createElement(te,null),g?w.createElement(xe,null,t.viewportRotated?`${I.title} (L)`:`${I.title} (P)`):null)),g?w.createElement(_e,null,w.createElement(J,{styles:{'iframe[data-is-storybook="true"]':{...g||{width:"100%",height:"100%"}}}}),w.createElement(ne,{title:"Viewport width"},g.width.replace("px","")),w.createElement(V,{key:"viewport-rotate",title:"Rotate viewport",onClick:()=>{r({viewportRotated:!t.viewportRotated})}},w.createElement(oe,null)),w.createElement(ne,{title:"Viewport height"},g.height.replace("px",""))):null)}));M.register(k,()=>{M.add(k,{title:"viewport / media-queries",type:W.TOOL,match:({viewMode:e,tabId:t})=>e==="story"&&!t,render:()=>z(Ae,null)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/interactions-9/manager-bundle.js b/storybook/sb-addons/interactions-9/manager-bundle.js new file mode 100644 index 0000000..e4d5212 --- /dev/null +++ b/storybook/sb-addons/interactions-9/manager-bundle.js @@ -0,0 +1,234 @@ +try{ +(()=>{var ke=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var x=__REACT__,{Children:Cm,Component:Om,Fragment:br,Profiler:_m,PureComponent:Im,StrictMode:Rm,Suspense:Tm,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Dm,cloneElement:Fm,createContext:Pm,createElement:se,createFactory:jm,createRef:Bm,forwardRef:km,isValidElement:Nm,lazy:Mm,memo:vr,startTransition:Lm,unstable_act:$m,useCallback:ko,useContext:zm,useDebugValue:qm,useDeferredValue:Um,useEffect:lt,useId:Hm,useImperativeHandle:Wm,useInsertionEffect:Vm,useLayoutEffect:Gm,useMemo:No,useReducer:Ym,useRef:Er,useState:We,useSyncExternalStore:Km,useTransition:Jm,version:Xm}=__REACT__;var ty=__STORYBOOK_API__,{ActiveTabs:ry,Consumer:Mo,ManagerContext:ny,Provider:oy,RequestResponseError:ay,addons:on,combineParameters:iy,controlOrMetaKey:sy,controlOrMetaSymbol:uy,eventMatchesShortcut:ly,eventToShortcut:cy,experimental_requestResponse:py,isMacLike:fy,isShortcutTaken:dy,keyToSymbol:hy,merge:my,mockChannel:yy,optionOrAltSymbol:gy,shortcutMatchesShortcut:by,shortcutToHumanString:vy,types:Lo,useAddonState:an,useArgTypes:Ey,useArgs:Sy,useChannel:$o,useGlobalTypes:Ay,useGlobals:wy,useParameter:zo,useSharedState:xy,useStoryPrepared:Cy,useStorybookApi:qo,useStorybookState:Oy}=__STORYBOOK_API__;var Dy=__STORYBOOK_COMPONENTS__,{A:Fy,ActionBar:Py,AddonPanel:Uo,Badge:Ho,Bar:Wo,Blockquote:jy,Button:Vo,ClipboardCode:By,Code:ky,DL:Ny,Div:My,DocumentWrapper:Ly,EmptyTabContent:Go,ErrorFormatter:$y,FlexBar:zy,Form:qy,H1:Uy,H2:Hy,H3:Wy,H4:Vy,H5:Gy,H6:Yy,HR:Ky,IconButton:sn,IconButtonSkeleton:Jy,Icons:Xy,Img:Qy,LI:Zy,Link:un,ListItem:eg,Loader:tg,Modal:rg,OL:ng,P:Yo,Placeholder:og,Pre:ag,ResetWrapper:ig,ScrollArea:sg,Separator:Ko,Spaced:Jo,Span:ug,StorybookIcon:lg,StorybookLogo:cg,Symbols:pg,SyntaxHighlighter:fg,TT:dg,TabBar:hg,TabButton:mg,TabWrapper:yg,Table:gg,Tabs:bg,TabsState:vg,TooltipLinkList:Eg,TooltipMessage:Sg,TooltipNote:ln,UL:Ag,WithTooltip:Et,WithTooltipPure:wg,Zoom:xg,codeCommon:Cg,components:Og,createCopyToClipboardFunction:_g,getStoryHref:Ig,icons:Rg,interleaveSeparators:Tg,nameSpaceClassNames:Dg,resetComponents:Fg,withReset:Pg}=__STORYBOOK_COMPONENTS__;var Mg=__STORYBOOK_CHANNELS__,{Channel:Xo,PostMessageTransport:Lg,WebsocketTransport:$g,createBrowserChannel:zg}=__STORYBOOK_CHANNELS__;var Vg=__STORYBOOK_CLIENT_LOGGER__,{deprecate:rt,logger:Se,once:ct,pretty:Gg}=__STORYBOOK_CLIENT_LOGGER__;var Qg=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Qo,ARGTYPES_INFO_RESPONSE:cn,CHANNEL_CREATED:Zg,CHANNEL_WS_DISCONNECT:eb,CONFIG_ERROR:Zo,CREATE_NEW_STORYFILE_REQUEST:tb,CREATE_NEW_STORYFILE_RESPONSE:rb,CURRENT_STORY_WAS_SET:pn,DOCS_PREPARED:ea,DOCS_RENDERED:Sr,FILE_COMPONENT_SEARCH_REQUEST:nb,FILE_COMPONENT_SEARCH_RESPONSE:ob,FORCE_REMOUNT:Xt,FORCE_RE_RENDER:Ar,GLOBALS_UPDATED:ta,NAVIGATE_URL:ab,PLAY_FUNCTION_THREW_EXCEPTION:wr,PRELOAD_ENTRIES:ra,PREVIEW_BUILDER_PROGRESS:ib,PREVIEW_KEYDOWN:na,REGISTER_SUBSCRIPTION:sb,REQUEST_WHATS_NEW_DATA:ub,RESET_STORY_ARGS:xr,RESULT_WHATS_NEW_DATA:lb,SAVE_STORY_REQUEST:cb,SAVE_STORY_RESPONSE:pb,SELECT_STORY:fb,SET_CONFIG:db,SET_CURRENT_STORY:fn,SET_GLOBALS:oa,SET_INDEX:hb,SET_STORIES:mb,SET_WHATS_NEW_CACHE:yb,SHARED_STATE_CHANGED:gb,SHARED_STATE_SET:bb,STORIES_COLLAPSE_ALL:vb,STORIES_EXPAND_ALL:Eb,STORY_ARGS_UPDATED:aa,STORY_CHANGED:ia,STORY_ERRORED:sa,STORY_INDEX_INVALIDATED:ua,STORY_MISSING:dn,STORY_PREPARED:la,STORY_RENDERED:Qt,STORY_RENDER_PHASE_CHANGED:nt,STORY_SPECIFIED:ca,STORY_THREW_EXCEPTION:Cr,STORY_UNCHANGED:pa,TELEMETRY_ERROR:Sb,TOGGLE_WHATS_NEW_NOTIFICATIONS:Ab,UNHANDLED_ERRORS_WHILE_PLAYING:Or,UPDATE_GLOBALS:_r,UPDATE_QUERY_PARAMS:fa,UPDATE_STORY_ARGS:Ir}=__STORYBOOK_CORE_EVENTS__;var Mu=Object.defineProperty,xe=(t,e)=>Mu(t,"name",{value:e,configurable:!0});function Ce(t){for(var e=[],r=1;r` - ${i}`).join(` +`)}`),`${o}${a!=null?` + +More info: ${a} +`:""}`}};xe(da,"StorybookError");var Ie=da,Lu=(t=>(t.BLOCKS="BLOCKS",t.DOCS_TOOLS="DOCS-TOOLS",t.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",t.PREVIEW_CHANNELS="PREVIEW_CHANNELS",t.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",t.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",t.PREVIEW_API="PREVIEW_API",t.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",t.PREVIEW_ROUTER="PREVIEW_ROUTER",t.PREVIEW_THEMING="PREVIEW_THEMING",t.RENDERER_HTML="RENDERER_HTML",t.RENDERER_PREACT="RENDERER_PREACT",t.RENDERER_REACT="RENDERER_REACT",t.RENDERER_SERVER="RENDERER_SERVER",t.RENDERER_SVELTE="RENDERER_SVELTE",t.RENDERER_VUE="RENDERER_VUE",t.RENDERER_VUE3="RENDERER_VUE3",t.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",t.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",t))(Lu||{}),ma=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:1,message:Ce` + Couldn't find story matching id '${e.storyId}' after HMR. + - Did you just rename a story? + - Did you remove it from your CSF file? + - Are you sure a story with the id '${e.storyId}' exists? + - Please check the values in the stories field of your main.js config and see if they would match your CSF File. + - Also check the browser console and terminal for potential error messages.`}),this.data=e}};xe(ma,"MissingStoryAfterHmrError");var ya=ma,$u=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Ce` + We detected that you use an implicit action arg while ${e.phase} of your story. + ${e.deprecated?` +This is deprecated and won't work in Storybook 8 anymore. +`:""} + Please provide an explicit spy to your args like this: + import { fn } from '@storybook/test'; + ... + args: { + ${e.name}: fn() + }`}),this.data=e}};xe($u,"ImplicitActionsDuringRendering");var ga=class extends Ie{constructor(){super({category:"PREVIEW_API",code:3,message:Ce` + Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first. + + You probably meant to call \`await preview.extract()\` which does the above for you.`})}};xe(ga,"CalledExtractOnStoreError");var ba=ga,va=class extends Ie{constructor(){super({category:"PREVIEW_API",code:4,message:Ce` + Expected your framework's preset to export a \`renderToCanvas\` field. + + Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};xe(va,"MissingRenderToCanvasError");var Ea=va,Sa=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:5,message:Ce` + Called \`Preview.${e.methodName}()\` before initialization. + + The preview needs to load the story index before most methods can be called. If you want + to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first. + + If you didn't call the above code, then likely it was called by an addon that needs to + do the above.`}),this.data=e}};xe(Sa,"CalledPreviewMethodBeforeInitializationError");var Ne=Sa,Aa=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:6,message:Ce` + Error fetching \`/index.json\`: + + ${e.text} + + If you are in development, this likely indicates a problem with your Storybook process, + check the terminal for errors. + + If you are in a deployed Storybook, there may have been an issue deploying the full Storybook + build.`}),this.data=e}};xe(Aa,"StoryIndexFetchError");var wa=Aa,xa=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:7,message:Ce` + Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF + references, or autodocs for a CSF file that some doesn't refer to itself. + + This likely is an internal error in Storybook's indexing, or you've attached the + \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}};xe(xa,"MdxFileWithNoCsfReferencesError");var Ca=xa,Oa=class extends Ie{constructor(){super({category:"PREVIEW_API",code:8,message:Ce` + Couldn't find any stories in your Storybook. + + - Please check your stories field of your main.js config: does it match correctly? + - Also check the browser console and terminal for error messages.`})}};xe(Oa,"EmptyIndexError");var _a=Oa,Ia=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:9,message:Ce` + Couldn't find story matching '${e.storySpecifier}'. + + - Are you sure a story with that id exists? + - Please check your stories field of your main.js config. + - Also check the browser console and terminal for error messages.`}),this.data=e}};xe(Ia,"NoStoryMatchError");var Ra=Ia,Ta=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:10,message:Ce` + Couldn't find story matching id '${e.storyId}' after importing a CSF file. + + The file was indexed as if the story was there, but then after importing the file in the browser + we didn't find the story. Possible reasons: + - You are using a custom story indexer that is misbehaving. + - You have a custom file loader that is removing or renaming exports. + + Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}};xe(Ta,"MissingStoryFromCsfFileError");var Da=Ta,Fa=class extends Ie{constructor(){super({category:"PREVIEW_API",code:11,message:Ce` + Cannot access the Story Store until the index is ready. + + It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will + remove access to the store entirely`})}};xe(Fa,"StoryStoreAccessedBeforeInitializationError");var Pa=Fa,ja=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:12,message:Ce` + Incorrect use of mount in the play function. + + To use mount in the play function, you must satisfy the following two requirements: + + 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function). + This makes sure that Storybook does not start rendering the story before the play function begins. + + 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer. + This is because destructuring statements and async/await usages are otherwise transpiled away, + which prevents Storybook from recognizing your usage of \`mount\`. + + Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. + + More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered + + Received the following play function: + ${e.playFunction}`}),this.data=e}};xe(ja,"MountMustBeDestructuredError");var Rr=ja,zu=class extends Ie{constructor(){super({category:"PREVIEW_API",code:13,message:Ce` + You must configure testingLibraryRender to use play in portable stories. + + import { render } from '@testing-library/[renderer]'; + + setProjectAnnotations({ + testingLibraryRender: render, + }); + + For other testing renderers, you can configure \`renderToCanvas\` like so: + + import { render } from 'your-test-renderer'; + + setProjectAnnotations({ + renderToCanvas: ({ storyFn }) => { + const Story = storyFn(); + + // Svelte + render(Story.Component, Story.props); + + // Vue + render(Story); + + // or for React + render(); + }, + });`})}};xe(zu,"TestingLibraryMustBeConfiguredError");var Ba=class extends Ie{constructor(e){super({category:"PREVIEW_API",code:14,message:Ce` + No render function available for storyId '${e.id}' + `}),this.data=e}};xe(Ba,"NoRenderFunctionError");var ka=Ba,Na=class extends Ie{constructor(){super({category:"PREVIEW_API",code:15,message:Ce` + No component is mounted in your story. + + This usually occurs when you destructure mount in the play function, but forget to call it. + + For example: + + async play({ mount, canvasElement }) { + // 👈 mount should be called: await mount(); + const canvas = within(canvasElement); + const button = await canvas.findByRole('button'); + await userEvent.click(button); + }; + + Make sure to either remove it or call mount in your play function. + `})}};xe(Na,"NoStoryMountedError");var Ma=Na,qu=class extends Ie{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Ce` + You are importing avif images, but you don't have sharp installed. + + You have to install sharp in order to use image optimization features in Next.js. + `})}};xe(qu,"NextJsSharpError");var Uu=class extends Ie{constructor(e){super({category:"FRAMEWORK_NEXTJS",code:2,message:Ce` + Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment. + `}),this.data=e}};xe(Uu,"NextjsRouterMocksNotAvailable");var Hu=class extends Ie{constructor(e){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Ce` + There was a failure when generating detailed ArgTypes in ${e.language} for: + ${JSON.stringify(e.type,null,2)} + + Storybook will fall back to use a generic type description instead. + + This type is either not supported or it is a bug in the docgen generation in Storybook. + If you think this is a bug, please detail it as much as possible in the Github issue. + `}),this.data=e}};xe(Hu,"UnknownArgTypesError");var Wu=Object.create,qa=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Gu=Object.getOwnPropertyNames,Yu=Object.getPrototypeOf,Ku=Object.prototype.hasOwnProperty,Ju=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xu=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Gu(e))!Ku.call(t,o)&&o!==r&&qa(t,o,{get:()=>e[o],enumerable:!(n=Vu(e,o))||n.enumerable});return t},Qu=(t,e,r)=>(r=t!=null?Wu(Yu(t)):{},Xu(e||!t||!t.__esModule?qa(r,"default",{value:t,enumerable:!0}):r,t)),Zu=Ju(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=function(){var e=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(s,u,l){var f,d,p,g=e.call(s),h=e.call(u);if(s===u)return!0;if(s==null||u==null)return!1;if(l.indexOf(s)>-1&&l.indexOf(u)>-1)return!0;if(l.push(s,u),g!=h||(f=n(s),d=n(u),f.length!=d.length||f.some(function(v){return!i(s[v],u[v],l)})))return!1;switch(g.slice(8,-1)){case"Symbol":return s.valueOf()==u.valueOf();case"Date":case"Number":return+s==+u||+s!=+s&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+u;case"Set":case"Map":f=s.entries(),d=u.entries();do if(!i((p=f.next()).value,d.next().value,l))return!1;while(!p.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),u=new Uint8Array(u);case"DataView":s=new Uint8Array(s.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=u.length)return!1;for(p=0;p`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(e,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(e,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(e,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(e,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var La=Qu(Zu()),Ua=t=>t.map(e=>typeof e<"u").filter(Boolean).length,tl=(t,e)=>{let{exists:r,eq:n,neq:o,truthy:a}=t;if(Ua([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,La.isEqual)(e,n);if(typeof o<"u")return!(0,La.isEqual)(e,o);if(typeof r<"u"){let i=typeof e<"u";return r?i:!i}return typeof a>"u"||a?!!e:!e},Ha=(t,e,r)=>{if(!t.if)return!0;let{arg:n,global:o}=t.if;if(Ua([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?e[n]:r[o];return tl(t.if,a)},mn=t=>t.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),$a=(t,e)=>{let r=mn(t);if(r==="")throw new Error(`Invalid ${e} '${t}', must include alphanumeric characters`);return r},Wa=(t,e)=>`${$a(t,"kind")}${e?`--${$a(e,"name")}`:""}`,Va=t=>el(t);function za(t,e){return Array.isArray(e)?e.includes(t):t.match(e)}function Tr(t,{includeStories:e,excludeStories:r}){return t!=="__esModule"&&(!e||za(t,e))&&(!r||!za(t,r))}var Ga=(...t)=>{let e=t.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(e)};var rl=Object.create,kn=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,ol=Object.getOwnPropertyNames,al=Object.getPrototypeOf,il=Object.prototype.hasOwnProperty,c=(t,e)=>kn(t,"name",{value:e,configurable:!0}),Dr=(t=>typeof ke<"u"?ke:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof ke<"u"?ke:e)[r]}):t)(function(t){if(typeof ke<"u")return ke.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),R=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),sl=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ol(e))!il.call(t,o)&&o!==r&&kn(t,o,{get:()=>e[o],enumerable:!(n=nl(e,o))||n.enumerable});return t},Pe=(t,e,r)=>(r=t!=null?rl(al(t)):{},sl(e||!t||!t.__esModule?kn(r,"default",{value:t,enumerable:!0}):r,t)),ci=R((t,e)=>{(function(r){if(typeof t=="object"&&typeof e<"u")e.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return c(function a(i,s,u){function l(p,g){if(!s[p]){if(!i[p]){var h=typeof Dr=="function"&&Dr;if(!g&&h)return h(p,!0);if(f)return f(p,!0);var v=new Error("Cannot find module '"+p+"'");throw v.code="MODULE_NOT_FOUND",v}var b=s[p]={exports:{}};i[p][0].call(b.exports,function(m){var y=i[p][1][m];return l(y||m)},b,b.exports,a,i,s,u)}return s[p].exports}c(l,"s");for(var f=typeof Dr=="function"&&Dr,d=0;d=0)return this.lastItem=this.list[f],this.list[f].val},u.prototype.set=function(l,f){var d;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=f,this):(d=this.indexOf(l),d>=0?(this.lastItem=this.list[d],this.list[d].val=f,this):(this.lastItem={key:l,val:f},this.list.push(this.lastItem),this.size++,this))},u.prototype.delete=function(l){var f;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),f=this.indexOf(l),f>=0)return this.size--,this.list.splice(f,1)[0]},u.prototype.has=function(l){var f;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(f=this.indexOf(l),f>=0?(this.lastItem=this.list[f],!0):!1)},u.prototype.forEach=function(l,f){var d;for(d=0;d0&&(C[w]={cacheItem:m,arg:arguments[w]},I?l(h,C):h.push(C),h.length>p&&f(h.shift())),b.wasMemoized=I,b.numArgs=w+1,A},"memoizerific");return b.limit=p,b.wasMemoized=!1,b.cache=g,b.lru=h,b}};function l(p,g){var h=p.length,v=g.length,b,m,y;for(m=0;m=0&&(h=p[b],v=h.cacheItem.get(h.arg),!v||!v.size);b--)h.cacheItem.delete(h.arg)}c(f,"removeCachedResult");function d(p,g){return p===g||p!==p&&g!==g}c(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),pi=R((t,e)=>{var r=typeof window=="object"&&window&&window.Object===Object&&window;e.exports=r}),at=R((t,e)=>{var r=pi(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o}),rr=R((t,e)=>{var r=at(),n=r.Symbol;e.exports=n}),ul=R((t,e)=>{var r=rr(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(u){var l=o.call(u,i),f=u[i];try{u[i]=void 0;var d=!0}catch{}var p=a.call(u);return d&&(l?u[i]=f:delete u[i]),p}c(s,"getRawTag"),e.exports=s}),ll=R((t,e)=>{var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}c(o,"objectToString"),e.exports=o}),Lt=R((t,e)=>{var r=rr(),n=ul(),o=ll(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function u(l){return l==null?l===void 0?i:a:s&&s in Object(l)?n(l):o(l)}c(u,"baseGetTag"),e.exports=u}),nr=R((t,e)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}c(r,"isObject"),e.exports=r}),fi=R((t,e)=>{var r=Lt(),n=nr(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function u(l){if(!n(l))return!1;var f=r(l);return f==a||f==i||f==o||f==s}c(u,"isFunction"),e.exports=u}),cl=R((t,e)=>{var r=at(),n=r["__core-js_shared__"];e.exports=n}),pl=R((t,e)=>{var r=cl(),n=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function o(a){return!!n&&n in a}c(o,"isMasked"),e.exports=o}),di=R((t,e)=>{var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}c(o,"toSource"),e.exports=o}),fl=R((t,e)=>{var r=fi(),n=pl(),o=nr(),a=di(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,f=u.toString,d=l.hasOwnProperty,p=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(h){if(!o(h)||n(h))return!1;var v=r(h)?p:s;return v.test(a(h))}c(g,"baseIsNative"),e.exports=g}),dl=R((t,e)=>{function r(n,o){return n?.[o]}c(r,"getValue"),e.exports=r}),xt=R((t,e)=>{var r=fl(),n=dl();function o(a,i){var s=n(a,i);return r(s)?s:void 0}c(o,"getNative"),e.exports=o}),hi=R((t,e)=>{var r=xt(),n=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=n}),mi=R((t,e)=>{var r=hi();function n(o,a,i){a=="__proto__"&&r?r(o,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[a]=i}c(n,"baseAssignValue"),e.exports=n}),hl=R((t,e)=>{function r(n){return function(o,a,i){for(var s=-1,u=Object(o),l=i(o),f=l.length;f--;){var d=l[n?f:++s];if(a(u[d],d,u)===!1)break}return o}}c(r,"createBaseFor"),e.exports=r}),ml=R((t,e)=>{var r=hl(),n=r();e.exports=n}),yl=R((t,e)=>{function r(n,o){for(var a=-1,i=Array(n);++a{function r(n){return n!=null&&typeof n=="object"}c(r,"isObjectLike"),e.exports=r}),gl=R((t,e)=>{var r=Lt(),n=$t(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}c(a,"baseIsArguments"),e.exports=a}),Nn=R((t,e)=>{var r=gl(),n=$t(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(u){return n(u)&&a.call(u,"callee")&&!i.call(u,"callee")};e.exports=s}),it=R((t,e)=>{var r=Array.isArray;e.exports=r}),bl=R((t,e)=>{function r(){return!1}c(r,"stubFalse"),e.exports=r}),yi=R((t,e)=>{var r=at(),n=bl(),o=typeof t=="object"&&t&&!t.nodeType&&t,a=o&&typeof e=="object"&&e&&!e.nodeType&&e,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l}),Mn=R((t,e)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}c(n,"isLength"),e.exports=n}),vl=R((t,e)=>{var r=Lt(),n=Ln(),o=$t(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",g="[object Object]",h="[object RegExp]",v="[object Set]",b="[object String]",m="[object WeakMap]",y="[object ArrayBuffer]",A="[object DataView]",w="[object Float32Array]",C="[object Float64Array]",I="[object Int8Array]",D="[object Int16Array]",E="[object Int32Array]",j="[object Uint8Array]",z="[object Uint8ClampedArray]",q="[object Uint16Array]",G="[object Uint32Array]",L={};L[w]=L[C]=L[I]=L[D]=L[E]=L[j]=L[z]=L[q]=L[G]=!0,L[a]=L[i]=L[y]=L[s]=L[A]=L[u]=L[l]=L[f]=L[d]=L[p]=L[g]=L[h]=L[v]=L[b]=L[m]=!1;function _(F){return o(F)&&n(F.length)&&!!L[r(F)]}c(_,"baseIsTypedArray"),e.exports=_}),El=R((t,e)=>{function r(n){return function(o){return n(o)}}c(r,"baseUnary"),e.exports=r}),Sl=R((t,e)=>{var r=pi(),n=typeof t=="object"&&t&&!t.nodeType&&t,o=n&&typeof e=="object"&&e&&!e.nodeType&&e,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s}),gi=R((t,e)=>{var r=vl(),n=El(),o=Sl(),a=o&&o.isTypedArray,i=a?n(a):r;e.exports=i}),bi=R((t,e)=>{var r=yl(),n=Nn(),o=it(),a=yi(),i=Mn(),s=gi(),u=Object.prototype,l=u.hasOwnProperty;function f(d,p){var g=o(d),h=!g&&n(d),v=!g&&!h&&a(d),b=!g&&!h&&!v&&s(d),m=g||h||v||b,y=m?r(d.length,String):[],A=y.length;for(var w in d)(p||l.call(d,w))&&!(m&&(w=="length"||v&&(w=="offset"||w=="parent")||b&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||i(w,A)))&&y.push(w);return y}c(f,"arrayLikeKeys"),e.exports=f}),vi=R((t,e)=>{var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}c(n,"isPrototype"),e.exports=n}),Ei=R((t,e)=>{function r(n,o){return function(a){return n(o(a))}}c(r,"overArg"),e.exports=r}),Al=R((t,e)=>{var r=Ei(),n=r(Object.keys,Object);e.exports=n}),wl=R((t,e)=>{var r=vi(),n=Al(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var u=[];for(var l in Object(s))a.call(s,l)&&l!="constructor"&&u.push(l);return u}c(i,"baseKeys"),e.exports=i}),Si=R((t,e)=>{var r=fi(),n=Ln();function o(a){return a!=null&&n(a.length)&&!r(a)}c(o,"isArrayLike"),e.exports=o}),$n=R((t,e)=>{var r=bi(),n=wl(),o=Si();function a(i){return o(i)?r(i):n(i)}c(a,"keys"),e.exports=a}),xl=R((t,e)=>{var r=ml(),n=$n();function o(a,i){return a&&r(a,i,n)}c(o,"baseForOwn"),e.exports=o}),Cl=R((t,e)=>{function r(){this.__data__=[],this.size=0}c(r,"listCacheClear"),e.exports=r}),zn=R((t,e)=>{function r(n,o){return n===o||n!==n&&o!==o}c(r,"eq"),e.exports=r}),Mr=R((t,e)=>{var r=zn();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}c(n,"assocIndexOf"),e.exports=n}),Ol=R((t,e)=>{var r=Mr(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,u=r(s,i);if(u<0)return!1;var l=s.length-1;return u==l?s.pop():o.call(s,u,1),--this.size,!0}c(a,"listCacheDelete"),e.exports=a}),_l=R((t,e)=>{var r=Mr();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}c(n,"listCacheGet"),e.exports=n}),Il=R((t,e)=>{var r=Mr();function n(o){return r(this.__data__,o)>-1}c(n,"listCacheHas"),e.exports=n}),Rl=R((t,e)=>{var r=Mr();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}c(n,"listCacheSet"),e.exports=n}),Lr=R((t,e)=>{var r=Cl(),n=Ol(),o=_l(),a=Il(),i=Rl();function s(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l{var r=Lr();function n(){this.__data__=new r,this.size=0}c(n,"stackClear"),e.exports=n}),Dl=R((t,e)=>{function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}c(r,"stackDelete"),e.exports=r}),Fl=R((t,e)=>{function r(n){return this.__data__.get(n)}c(r,"stackGet"),e.exports=r}),Pl=R((t,e)=>{function r(n){return this.__data__.has(n)}c(r,"stackHas"),e.exports=r}),qn=R((t,e)=>{var r=xt(),n=at(),o=r(n,"Map");e.exports=o}),$r=R((t,e)=>{var r=xt(),n=r(Object,"create");e.exports=n}),jl=R((t,e)=>{var r=$r();function n(){this.__data__=r?r(null):{},this.size=0}c(n,"hashClear"),e.exports=n}),Bl=R((t,e)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}c(r,"hashDelete"),e.exports=r}),kl=R((t,e)=>{var r=$r(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var u=this.__data__;if(r){var l=u[s];return l===n?void 0:l}return a.call(u,s)?u[s]:void 0}c(i,"hashGet"),e.exports=i}),Nl=R((t,e)=>{var r=$r(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}c(a,"hashHas"),e.exports=a}),Ml=R((t,e)=>{var r=$r(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}c(o,"hashSet"),e.exports=o}),Ll=R((t,e)=>{var r=jl(),n=Bl(),o=kl(),a=Nl(),i=Ml();function s(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l{var r=Ll(),n=Lr(),o=qn();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}c(a,"mapCacheClear"),e.exports=a}),zl=R((t,e)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}c(r,"isKeyable"),e.exports=r}),zr=R((t,e)=>{var r=zl();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}c(n,"getMapData"),e.exports=n}),ql=R((t,e)=>{var r=zr();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}c(n,"mapCacheDelete"),e.exports=n}),Ul=R((t,e)=>{var r=zr();function n(o){return r(this,o).get(o)}c(n,"mapCacheGet"),e.exports=n}),Hl=R((t,e)=>{var r=zr();function n(o){return r(this,o).has(o)}c(n,"mapCacheHas"),e.exports=n}),Wl=R((t,e)=>{var r=zr();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}c(n,"mapCacheSet"),e.exports=n}),Un=R((t,e)=>{var r=$l(),n=ql(),o=Ul(),a=Hl(),i=Wl();function s(u){var l=-1,f=u==null?0:u.length;for(this.clear();++l{var r=Lr(),n=qn(),o=Un(),a=200;function i(s,u){var l=this.__data__;if(l instanceof r){var f=l.__data__;if(!n||f.length{var r=Lr(),n=Tl(),o=Dl(),a=Fl(),i=Pl(),s=Vl();function u(l){var f=this.__data__=new r(l);this.size=f.size}c(u,"Stack"),u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u}),Gl=R((t,e)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}c(n,"setCacheAdd"),e.exports=n}),Yl=R((t,e)=>{function r(n){return this.__data__.has(n)}c(r,"setCacheHas"),e.exports=r}),Kl=R((t,e)=>{var r=Un(),n=Gl(),o=Yl();function a(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new r;++s{function r(n,o){for(var a=-1,i=n==null?0:n.length;++a{function r(n,o){return n.has(o)}c(r,"cacheHas"),e.exports=r}),wi=R((t,e)=>{var r=Kl(),n=Jl(),o=Xl(),a=1,i=2;function s(u,l,f,d,p,g){var h=f&a,v=u.length,b=l.length;if(v!=b&&!(h&&b>v))return!1;var m=g.get(u),y=g.get(l);if(m&&y)return m==l&&y==u;var A=-1,w=!0,C=f&i?new r:void 0;for(g.set(u,l),g.set(l,u);++A{var r=at(),n=r.Uint8Array;e.exports=n}),Zl=R((t,e)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}c(r,"mapToArray"),e.exports=r}),ec=R((t,e)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}c(r,"setToArray"),e.exports=r}),tc=R((t,e)=>{var r=rr(),n=Ql(),o=zn(),a=wi(),i=Zl(),s=ec(),u=1,l=2,f="[object Boolean]",d="[object Date]",p="[object Error]",g="[object Map]",h="[object Number]",v="[object RegExp]",b="[object Set]",m="[object String]",y="[object Symbol]",A="[object ArrayBuffer]",w="[object DataView]",C=r?r.prototype:void 0,I=C?C.valueOf:void 0;function D(E,j,z,q,G,L,_){switch(z){case w:if(E.byteLength!=j.byteLength||E.byteOffset!=j.byteOffset)return!1;E=E.buffer,j=j.buffer;case A:return!(E.byteLength!=j.byteLength||!L(new n(E),new n(j)));case f:case d:case h:return o(+E,+j);case p:return E.name==j.name&&E.message==j.message;case v:case m:return E==j+"";case g:var F=i;case b:var B=q&u;if(F||(F=s),E.size!=j.size&&!B)return!1;var H=_.get(E);if(H)return H==j;q|=l,_.set(E,j);var $=a(F(E),F(j),q,G,L,_);return _.delete(E),$;case y:if(I)return I.call(E)==I.call(j)}return!1}c(D,"equalByTag"),e.exports=D}),Hn=R((t,e)=>{function r(n,o){for(var a=-1,i=o.length,s=n.length;++a{var r=Hn(),n=it();function o(a,i,s){var u=i(a);return n(a)?u:r(u,s(a))}c(o,"baseGetAllKeys"),e.exports=o}),rc=R((t,e)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,u=[];++a{function r(){return[]}c(r,"stubArray"),e.exports=r}),Oi=R((t,e)=>{var r=rc(),n=Ci(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(l){return a.call(u,l)}))}:n;e.exports=s}),nc=R((t,e)=>{var r=xi(),n=Oi(),o=$n();function a(i){return r(i,o,n)}c(a,"getAllKeys"),e.exports=a}),oc=R((t,e)=>{var r=nc(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,u,l,f,d,p){var g=l&n,h=r(s),v=h.length,b=r(u),m=b.length;if(v!=m&&!g)return!1;for(var y=v;y--;){var A=h[y];if(!(g?A in u:a.call(u,A)))return!1}var w=p.get(s),C=p.get(u);if(w&&C)return w==u&&C==s;var I=!0;p.set(s,u),p.set(u,s);for(var D=g;++y{var r=xt(),n=at(),o=r(n,"DataView");e.exports=o}),ic=R((t,e)=>{var r=xt(),n=at(),o=r(n,"Promise");e.exports=o}),sc=R((t,e)=>{var r=xt(),n=at(),o=r(n,"Set");e.exports=o}),uc=R((t,e)=>{var r=xt(),n=at(),o=r(n,"WeakMap");e.exports=o}),lc=R((t,e)=>{var r=ac(),n=qn(),o=ic(),a=sc(),i=uc(),s=Lt(),u=di(),l="[object Map]",f="[object Object]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",h="[object DataView]",v=u(r),b=u(n),m=u(o),y=u(a),A=u(i),w=s;(r&&w(new r(new ArrayBuffer(1)))!=h||n&&w(new n)!=l||o&&w(o.resolve())!=d||a&&w(new a)!=p||i&&w(new i)!=g)&&(w=c(function(C){var I=s(C),D=I==f?C.constructor:void 0,E=D?u(D):"";if(E)switch(E){case v:return h;case b:return l;case m:return d;case y:return p;case A:return g}return I},"getTag")),e.exports=w}),cc=R((t,e)=>{var r=Ai(),n=wi(),o=tc(),a=oc(),i=lc(),s=it(),u=yi(),l=gi(),f=1,d="[object Arguments]",p="[object Array]",g="[object Object]",h=Object.prototype,v=h.hasOwnProperty;function b(m,y,A,w,C,I){var D=s(m),E=s(y),j=D?p:i(m),z=E?p:i(y);j=j==d?g:j,z=z==d?g:z;var q=j==g,G=z==g,L=j==z;if(L&&u(m)){if(!u(y))return!1;D=!0,q=!1}if(L&&!q)return I||(I=new r),D||l(m)?n(m,y,A,w,C,I):o(m,y,j,A,w,C,I);if(!(A&f)){var _=q&&v.call(m,"__wrapped__"),F=G&&v.call(y,"__wrapped__");if(_||F){var B=_?m.value():m,H=F?y.value():y;return I||(I=new r),C(B,H,A,w,I)}}return L?(I||(I=new r),a(m,y,A,w,C,I)):!1}c(b,"baseIsEqualDeep"),e.exports=b}),_i=R((t,e)=>{var r=cc(),n=$t();function o(a,i,s,u,l){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,u,o,l)}c(o,"baseIsEqual"),e.exports=o}),pc=R((t,e)=>{var r=Ai(),n=_i(),o=1,a=2;function i(s,u,l,f){var d=l.length,p=d,g=!f;if(s==null)return!p;for(s=Object(s);d--;){var h=l[d];if(g&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++d{var r=nr();function n(o){return o===o&&!r(o)}c(n,"isStrictComparable"),e.exports=n}),fc=R((t,e)=>{var r=Ii(),n=$n();function o(a){for(var i=n(a),s=i.length;s--;){var u=i[s],l=a[u];i[s]=[u,l,r(l)]}return i}c(o,"getMatchData"),e.exports=o}),Ri=R((t,e)=>{function r(n,o){return function(a){return a==null?!1:a[n]===o&&(o!==void 0||n in Object(a))}}c(r,"matchesStrictComparable"),e.exports=r}),dc=R((t,e)=>{var r=pc(),n=fc(),o=Ri();function a(i){var s=n(i);return s.length==1&&s[0][2]?o(s[0][0],s[0][1]):function(u){return u===i||r(u,i,s)}}c(a,"baseMatches"),e.exports=a}),Wn=R((t,e)=>{var r=Lt(),n=$t(),o="[object Symbol]";function a(i){return typeof i=="symbol"||n(i)&&r(i)==o}c(a,"isSymbol"),e.exports=a}),Vn=R((t,e)=>{var r=it(),n=Wn(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function i(s,u){if(r(s))return!1;var l=typeof s;return l=="number"||l=="symbol"||l=="boolean"||s==null||n(s)?!0:a.test(s)||!o.test(s)||u!=null&&s in Object(u)}c(i,"isKey"),e.exports=i}),hc=R((t,e)=>{var r=Un(),n="Expected a function";function o(a,i){if(typeof a!="function"||i!=null&&typeof i!="function")throw new TypeError(n);var s=c(function(){var u=arguments,l=i?i.apply(this,u):u[0],f=s.cache;if(f.has(l))return f.get(l);var d=a.apply(this,u);return s.cache=f.set(l,d)||f,d},"memoized");return s.cache=new(o.Cache||r),s}c(o,"memoize"),o.Cache=r,e.exports=o}),mc=R((t,e)=>{var r=hc(),n=500;function o(a){var i=r(a,function(u){return s.size===n&&s.clear(),u}),s=i.cache;return i}c(o,"memoizeCapped"),e.exports=o}),yc=R((t,e)=>{var r=mc(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(n,function(u,l,f,d){s.push(f?d.replace(o,"$1"):l||u)}),s});e.exports=a}),Ti=R((t,e)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=Array(i);++a{var r=rr(),n=Ti(),o=it(),a=Wn(),i=1/0,s=r?r.prototype:void 0,u=s?s.toString:void 0;function l(f){if(typeof f=="string")return f;if(o(f))return n(f,l)+"";if(a(f))return u?u.call(f):"";var d=f+"";return d=="0"&&1/f==-i?"-0":d}c(l,"baseToString"),e.exports=l}),bc=R((t,e)=>{var r=gc();function n(o){return o==null?"":r(o)}c(n,"toString"),e.exports=n}),qr=R((t,e)=>{var r=it(),n=Vn(),o=yc(),a=bc();function i(s,u){return r(s)?s:n(s,u)?[s]:o(a(s))}c(i,"castPath"),e.exports=i}),or=R((t,e)=>{var r=Wn(),n=1/0;function o(a){if(typeof a=="string"||r(a))return a;var i=a+"";return i=="0"&&1/a==-n?"-0":i}c(o,"toKey"),e.exports=o}),Gn=R((t,e)=>{var r=qr(),n=or();function o(a,i){i=r(i,a);for(var s=0,u=i.length;a!=null&&s{var r=Gn();function n(o,a,i){var s=o==null?void 0:r(o,a);return s===void 0?i:s}c(n,"get"),e.exports=n}),Ec=R((t,e)=>{function r(n,o){return n!=null&&o in Object(n)}c(r,"baseHasIn"),e.exports=r}),Sc=R((t,e)=>{var r=qr(),n=Nn(),o=it(),a=Mn(),i=Ln(),s=or();function u(l,f,d){f=r(f,l);for(var p=-1,g=f.length,h=!1;++p{var r=Ec(),n=Sc();function o(a,i){return a!=null&&n(a,i,r)}c(o,"hasIn"),e.exports=o}),Ac=R((t,e)=>{var r=_i(),n=vc(),o=Di(),a=Vn(),i=Ii(),s=Ri(),u=or(),l=1,f=2;function d(p,g){return a(p)&&i(g)?s(u(p),g):function(h){var v=n(h,p);return v===void 0&&v===g?o(h,p):r(g,v,l|f)}}c(d,"baseMatchesProperty"),e.exports=d}),Fi=R((t,e)=>{function r(n){return n}c(r,"identity"),e.exports=r}),wc=R((t,e)=>{function r(n){return function(o){return o?.[n]}}c(r,"baseProperty"),e.exports=r}),xc=R((t,e)=>{var r=Gn();function n(o){return function(a){return r(a,o)}}c(n,"basePropertyDeep"),e.exports=n}),Cc=R((t,e)=>{var r=wc(),n=xc(),o=Vn(),a=or();function i(s){return o(s)?r(a(s)):n(s)}c(i,"property"),e.exports=i}),Pi=R((t,e)=>{var r=dc(),n=Ac(),o=Fi(),a=it(),i=Cc();function s(u){return typeof u=="function"?u:u==null?o:typeof u=="object"?a(u)?n(u[0],u[1]):r(u):i(u)}c(s,"baseIteratee"),e.exports=s}),Ur=R((t,e)=>{var r=mi(),n=xl(),o=Pi();function a(i,s){var u={};return s=o(s,3),n(i,function(l,f,d){r(u,f,s(l,f,d))}),u}c(a,"mapValues"),e.exports=a}),Oc=R((t,e)=>{var r=mi(),n=zn(),o=Object.prototype,a=o.hasOwnProperty;function i(s,u,l){var f=s[u];(!(a.call(s,u)&&n(f,l))||l===void 0&&!(u in s))&&r(s,u,l)}c(i,"assignValue"),e.exports=i}),_c=R((t,e)=>{var r=Oc(),n=qr(),o=Mn(),a=nr(),i=or();function s(u,l,f,d){if(!a(u))return u;l=n(l,u);for(var p=-1,g=l.length,h=g-1,v=u;v!=null&&++p{var r=Gn(),n=_c(),o=qr();function a(i,s,u){for(var l=-1,f=s.length,d={};++l{var r=ji(),n=Di();function o(a,i){return r(a,i,function(s,u){return n(a,u)})}c(o,"basePick"),e.exports=o}),Rc=R((t,e)=>{var r=rr(),n=Nn(),o=it(),a=r?r.isConcatSpreadable:void 0;function i(s){return o(s)||n(s)||!!(a&&s&&s[a])}c(i,"isFlattenable"),e.exports=i}),Tc=R((t,e)=>{var r=Hn(),n=Rc();function o(a,i,s,u,l){var f=-1,d=a.length;for(s||(s=n),l||(l=[]);++f0&&s(p)?i>1?o(p,i-1,s,u,l):r(l,p):u||(l[l.length]=p)}return l}c(o,"baseFlatten"),e.exports=o}),Dc=R((t,e)=>{var r=Tc();function n(o){var a=o==null?0:o.length;return a?r(o,1):[]}c(n,"flatten"),e.exports=n}),Fc=R((t,e)=>{function r(n,o,a){switch(a.length){case 0:return n.call(o);case 1:return n.call(o,a[0]);case 2:return n.call(o,a[0],a[1]);case 3:return n.call(o,a[0],a[1],a[2])}return n.apply(o,a)}c(r,"apply"),e.exports=r}),Pc=R((t,e)=>{var r=Fc(),n=Math.max;function o(a,i,s){return i=n(i===void 0?a.length-1:i,0),function(){for(var u=arguments,l=-1,f=n(u.length-i,0),d=Array(f);++l{function r(n){return function(){return n}}c(r,"constant"),e.exports=r}),Bc=R((t,e)=>{var r=jc(),n=hi(),o=Fi(),a=n?function(i,s){return n(i,"toString",{configurable:!0,enumerable:!1,value:r(s),writable:!0})}:o;e.exports=a}),kc=R((t,e)=>{var r=800,n=16,o=Date.now;function a(i){var s=0,u=0;return function(){var l=o(),f=n-(l-u);if(u=l,f>0){if(++s>=r)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}c(a,"shortOut"),e.exports=a}),Nc=R((t,e)=>{var r=Bc(),n=kc(),o=n(r);e.exports=o}),Mc=R((t,e)=>{var r=Dc(),n=Pc(),o=Nc();function a(i){return o(n(i,void 0,r),i+"")}c(a,"flatRest"),e.exports=a}),Lc=R((t,e)=>{var r=Ic(),n=Mc(),o=n(function(a,i){return a==null?{}:r(a,i)});e.exports=o}),Bi=R((t,e)=>{var r=Ei(),n=r(Object.getPrototypeOf,Object);e.exports=n}),Yn=R((t,e)=>{var r=Lt(),n=Bi(),o=$t(),a="[object Object]",i=Function.prototype,s=Object.prototype,u=i.toString,l=s.hasOwnProperty,f=u.call(Object);function d(p){if(!o(p)||r(p)!=a)return!1;var g=n(p);if(g===null)return!0;var h=l.call(g,"constructor")&&g.constructor;return typeof h=="function"&&h instanceof h&&u.call(h)==f}c(d,"isPlainObject"),e.exports=d}),$c=R((t,e)=>{var r=Hn(),n=Bi(),o=Oi(),a=Ci(),i=Object.getOwnPropertySymbols,s=i?function(u){for(var l=[];u;)r(l,o(u)),u=n(u);return l}:a;e.exports=s}),zc=R((t,e)=>{function r(n){var o=[];if(n!=null)for(var a in Object(n))o.push(a);return o}c(r,"nativeKeysIn"),e.exports=r}),qc=R((t,e)=>{var r=nr(),n=vi(),o=zc(),a=Object.prototype,i=a.hasOwnProperty;function s(u){if(!r(u))return o(u);var l=n(u),f=[];for(var d in u)d=="constructor"&&(l||!i.call(u,d))||f.push(d);return f}c(s,"baseKeysIn"),e.exports=s}),Uc=R((t,e)=>{var r=bi(),n=qc(),o=Si();function a(i){return o(i)?r(i,!0):n(i)}c(a,"keysIn"),e.exports=a}),Hc=R((t,e)=>{var r=xi(),n=$c(),o=Uc();function a(i){return r(i,o,n)}c(a,"getAllKeysIn"),e.exports=a}),Wc=R((t,e)=>{var r=Ti(),n=Pi(),o=ji(),a=Hc();function i(s,u){if(s==null)return{};var l=r(a(s),function(f){return[f]});return u=n(u),o(s,l,function(f,d){return u(f,d[0])})}c(i,"pickBy"),e.exports=i}),Vc=R((t,e)=>{"use strict";e.exports=Error}),Gc=R((t,e)=>{"use strict";e.exports=EvalError}),Yc=R((t,e)=>{"use strict";e.exports=RangeError}),Kc=R((t,e)=>{"use strict";e.exports=ReferenceError}),ki=R((t,e)=>{"use strict";e.exports=SyntaxError}),ar=R((t,e)=>{"use strict";e.exports=TypeError}),Jc=R((t,e)=>{"use strict";e.exports=URIError}),Xc=R((t,e)=>{"use strict";e.exports=c(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},"hasSymbols")}),Qc=R((t,e)=>{"use strict";var r=typeof Symbol<"u"&&Symbol,n=Xc();e.exports=c(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}),Zc=R((t,e)=>{"use strict";var r={__proto__:null,foo:{}},n=Object;e.exports=c(function(){return{__proto__:r}.foo===r.foo&&!(r instanceof n)},"hasProto")}),ep=R((t,e)=>{"use strict";var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=c(function(l,f){for(var d=[],p=0;p{"use strict";var r=ep();e.exports=Function.prototype.bind||r}),tp=R((t,e)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Kn();e.exports=o.call(r,n)}),zt=R((t,e)=>{"use strict";var r,n=Vc(),o=Gc(),a=Yc(),i=Kc(),s=ki(),u=ar(),l=Jc(),f=Function,d=c(function(U){try{return f('"use strict"; return ('+U+").constructor;")()}catch{}},"getEvalledConstructor"),p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch{p=null}var g=c(function(){throw new u},"throwTypeError"),h=p?function(){try{return arguments.callee,g}catch{try{return p(arguments,"callee").get}catch{return g}}}():g,v=Qc()(),b=Zc()(),m=Object.getPrototypeOf||(b?function(U){return U.__proto__}:null),y={},A=typeof Uint8Array>"u"||!m?r:m(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":v&&m?m([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&m?m(m([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!v||!m?r:m(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!v||!m?r:m(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&m?m(""[Symbol.iterator]()):r,"%Symbol%":v?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":h,"%TypedArray%":A,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(m)try{null.error}catch(U){C=m(m(U)),w["%Error.prototype%"]=C}var C,I=c(function U(M){var V;if(M==="%AsyncFunction%")V=d("async function () {}");else if(M==="%GeneratorFunction%")V=d("function* () {}");else if(M==="%AsyncGeneratorFunction%")V=d("async function* () {}");else if(M==="%AsyncGenerator%"){var J=U("%AsyncGeneratorFunction%");J&&(V=J.prototype)}else if(M==="%AsyncIteratorPrototype%"){var te=U("%AsyncGenerator%");te&&m&&(V=m(te.prototype))}return w[M]=V,V},"doEval"),D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=Kn(),j=tp(),z=E.call(Function.call,Array.prototype.concat),q=E.call(Function.apply,Array.prototype.splice),G=E.call(Function.call,String.prototype.replace),L=E.call(Function.call,String.prototype.slice),_=E.call(Function.call,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,H=c(function(U){var M=L(U,0,1),V=L(U,-1);if(M==="%"&&V!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&M!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var J=[];return G(U,F,function(te,ue,ne,le){J[J.length]=ne?G(le,B,"$1"):ue||te}),J},"stringToPath"),$=c(function(U,M){var V=U,J;if(j(D,V)&&(J=D[V],V="%"+J[0]+"%"),j(w,V)){var te=w[V];if(te===y&&(te=I(V)),typeof te>"u"&&!M)throw new u("intrinsic "+U+" exists, but is not available. Please file an issue!");return{alias:J,name:V,value:te}}throw new s("intrinsic "+U+" does not exist!")},"getBaseIntrinsic");e.exports=c(function(U,M){if(typeof U!="string"||U.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof M!="boolean")throw new u('"allowMissing" argument must be a boolean');if(_(/^%?[^%]*%?$/,U)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=H(U),J=V.length>0?V[0]:"",te=$("%"+J+"%",M),ue=te.name,ne=te.value,le=!1,ce=te.alias;ce&&(J=ce[0],q(V,z([0,1],ce)));for(var ye=1,Ee=!0;ye=V.length){var re=p(ne,T);Ee=!!re,Ee&&"get"in re&&!("originalValue"in re.get)?ne=re.get:ne=ne[T]}else Ee=j(ne,T),ne=ne[T];Ee&&!le&&(w[ue]=ne)}}return ne},"GetIntrinsic")}),Jn=R((t,e)=>{"use strict";var r=zt(),n=r("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}e.exports=n}),Ni=R((t,e)=>{"use strict";var r=zt(),n=r("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch{n=null}e.exports=n}),rp=R((t,e)=>{"use strict";var r=Jn(),n=ki(),o=ar(),a=Ni();e.exports=c(function(i,s,u){if(!i||typeof i!="object"&&typeof i!="function")throw new o("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,g=!!a&&a(i,s);if(r)r(i,s,{configurable:d===null&&g?g.configurable:!d,enumerable:l===null&&g?g.enumerable:!l,value:u,writable:f===null&&g?g.writable:!f});else if(p||!l&&!f&&!d)i[s]=u;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty")}),np=R((t,e)=>{"use strict";var r=Jn(),n=c(function(){return!!r},"hasPropertyDescriptors");n.hasArrayLengthDefineBug=c(function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),e.exports=n}),op=R((t,e)=>{"use strict";var r=zt(),n=rp(),o=np()(),a=Ni(),i=ar(),s=r("%Math.floor%");e.exports=c(function(u,l){if(typeof u!="function")throw new i("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new i("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],d=!0,p=!0;if("length"in u&&a){var g=a(u,"length");g&&!g.configurable&&(d=!1),g&&!g.writable&&(p=!1)}return(d||p||!f)&&(o?n(u,"length",l,!0,!0):n(u,"length",l)),u},"setFunctionLength")}),ap=R((t,e)=>{"use strict";var r=Kn(),n=zt(),o=op(),a=ar(),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),u=n("%Reflect.apply%",!0)||r.call(s,i),l=Jn(),f=n("%Math.max%");e.exports=c(function(p){if(typeof p!="function")throw new a("a function is required");var g=u(r,s,arguments);return o(g,1+f(0,p.length-(arguments.length-1)),!0)},"callBind");var d=c(function(){return u(r,i,arguments)},"applyBind");l?l(e.exports,"apply",{value:d}):e.exports.apply=d}),ip=R((t,e)=>{"use strict";var r=zt(),n=ap(),o=n(r("String.prototype.indexOf"));e.exports=c(function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s},"callBoundIntrinsic")}),sp=R(()=>{}),up=R((t,e)=>{var r=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&typeof n.get=="function"?n.get:null,a=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&s&&typeof s.get=="function"?s.get:null,l=i&&Set.prototype.forEach,f=typeof WeakMap=="function"&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,g=p?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,v=h?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,A=String.prototype.match,w=String.prototype.slice,C=String.prototype.replace,I=String.prototype.toUpperCase,D=String.prototype.toLowerCase,E=RegExp.prototype.test,j=Array.prototype.concat,z=Array.prototype.join,q=Array.prototype.slice,G=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_=Object.getOwnPropertySymbols,F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,B=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===B||!0)?Symbol.toStringTag:null,$=Object.prototype.propertyIsEnumerable,U=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(P){return P.__proto__}:null);function M(P,N){if(P===1/0||P===-1/0||P!==P||P&&P>-1e3&&P<1e3||E.call(/e/,N))return N;var pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof P=="number"){var S=P<0?-G(-P):G(P);if(S!==P){var O=String(S),k=w.call(N,O.length+1);return C.call(O,pe,"$&_")+"."+C.call(C.call(k,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(N,pe,"$&_")}c(M,"addNumericSeparator");var V=sp(),J=V.custom,te=re(J)?J:null;e.exports=c(function P(N,pe,S,O){var k=pe||{};if(ee(k,"quoteStyle")&&k.quoteStyle!=="single"&&k.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ee(k,"maxStringLength")&&(typeof k.maxStringLength=="number"?k.maxStringLength<0&&k.maxStringLength!==1/0:k.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Y=ee(k,"customInspect")?k.customInspect:!0;if(typeof Y!="boolean"&&Y!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ee(k,"indent")&&k.indent!==null&&k.indent!==" "&&!(parseInt(k.indent,10)===k.indent&&k.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ee(k,"numericSeparator")&&typeof k.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var X=k.numericSeparator;if(typeof N>"u")return"undefined";if(N===null)return"null";if(typeof N=="boolean")return N?"true":"false";if(typeof N=="string")return Ge(N,k);if(typeof N=="number"){if(N===0)return 1/0/N>0?"0":"-0";var Z=String(N);return X?M(N,Z):Z}if(typeof N=="bigint"){var ie=String(N)+"n";return X?M(N,ie):ie}var he=typeof k.depth>"u"?5:k.depth;if(typeof S>"u"&&(S=0),S>=he&&he>0&&typeof N=="object")return le(N)?"[Array]":"[Object]";var we=mr(k,S);if(typeof O>"u")O=[];else if(bt(O,N)>=0)return"[Circular]";function me(jt,gr,ku){if(gr&&(O=q.call(O),O.push(gr)),ku){var Bo={depth:k.depth};return ee(k,"quoteStyle")&&(Bo.quoteStyle=k.quoteStyle),P(jt,Bo,S+1,O)}return P(jt,k,S+1,O)}if(c(me,"inspect"),typeof N=="function"&&!ye(N)){var Fe=_e(N),Ke=Ye(N,me);return"[Function"+(Fe?": "+Fe:" (anonymous)")+"]"+(Ke.length>0?" { "+z.call(Ke,", ")+" }":"")}if(re(N)){var Dt=B?C.call(String(N),/^(Symbol\(.*\))_[^)]*$/,"$1"):F.call(N);return typeof N=="object"&&!B?et(Dt):Dt}if(vt(N)){for(var He="<"+D.call(String(N.nodeName)),Je=N.attributes||[],Xe=0;Xe",He}if(le(N)){if(N.length===0)return"[]";var Yt=Ye(N,me);return we&&!Gt(Yt)?"["+Tt(Yt,we)+"]":"[ "+z.call(Yt,", ")+" ]"}if(Ee(N)){var Ft=Ye(N,me);return!("cause"in Error.prototype)&&"cause"in N&&!$.call(N,"cause")?"{ ["+String(N)+"] "+z.call(j.call("[cause]: "+me(N.cause),Ft),", ")+" }":Ft.length===0?"["+String(N)+"]":"{ ["+String(N)+"] "+z.call(Ft,", ")+" }"}if(typeof N=="object"&&Y){if(te&&typeof N[te]=="function"&&V)return V(N,{depth:he-S});if(Y!=="symbol"&&typeof N.inspect=="function")return N.inspect()}if(It(N)){var yr=[];return a&&a.call(N,function(jt,gr){yr.push(me(gr,N,!0)+" => "+me(jt,N))}),ut("Map",o.call(N),yr,we)}if(Wt(N)){var Kt=[];return l&&l.call(N,function(jt){Kt.push(me(jt,N))}),ut("Set",u.call(N),Kt,we)}if(dr(N))return tt("WeakMap");if(hr(N))return tt("WeakSet");if(Rt(N))return tt("WeakRef");if(K(N))return et(me(Number(N)));if(oe(N))return et(me(L.call(N)));if(Q(N))return et(b.call(N));if(T(N))return et(me(String(N)));if(typeof window<"u"&&N===window)return"{ [object Window] }";if(N===window)return"{ [object globalThis] }";if(!ce(N)&&!ye(N)){var Jt=Ye(N,me),Pt=U?U(N)===Object.prototype:N instanceof Object||N.constructor===Object,rn=N instanceof Object?"":"null prototype",jo=!Pt&&H&&Object(N)===N&&H in N?w.call(ae(N),8,-1):rn?"Object":"",Bu=Pt||typeof N.constructor!="function"?"":N.constructor.name?N.constructor.name+" ":"",nn=Bu+(jo||rn?"["+z.call(j.call([],jo||[],rn||[]),": ")+"] ":"");return Jt.length===0?nn+"{}":we?nn+"{"+Tt(Jt,we)+"}":nn+"{ "+z.call(Jt,", ")+" }"}return String(N)},"inspect_");function ue(P,N,pe){var S=(pe.quoteStyle||N)==="double"?'"':"'";return S+P+S}c(ue,"wrapQuotes");function ne(P){return C.call(String(P),/"/g,""")}c(ne,"quote");function le(P){return ae(P)==="[object Array]"&&(!H||!(typeof P=="object"&&H in P))}c(le,"isArray");function ce(P){return ae(P)==="[object Date]"&&(!H||!(typeof P=="object"&&H in P))}c(ce,"isDate");function ye(P){return ae(P)==="[object RegExp]"&&(!H||!(typeof P=="object"&&H in P))}c(ye,"isRegExp");function Ee(P){return ae(P)==="[object Error]"&&(!H||!(typeof P=="object"&&H in P))}c(Ee,"isError");function T(P){return ae(P)==="[object String]"&&(!H||!(typeof P=="object"&&H in P))}c(T,"isString");function K(P){return ae(P)==="[object Number]"&&(!H||!(typeof P=="object"&&H in P))}c(K,"isNumber");function Q(P){return ae(P)==="[object Boolean]"&&(!H||!(typeof P=="object"&&H in P))}c(Q,"isBoolean");function re(P){if(B)return P&&typeof P=="object"&&P instanceof Symbol;if(typeof P=="symbol")return!0;if(!P||typeof P!="object"||!F)return!1;try{return F.call(P),!0}catch{}return!1}c(re,"isSymbol");function oe(P){if(!P||typeof P!="object"||!L)return!1;try{return L.call(P),!0}catch{}return!1}c(oe,"isBigInt");var W=Object.prototype.hasOwnProperty||function(P){return P in this};function ee(P,N){return W.call(P,N)}c(ee,"has");function ae(P){return m.call(P)}c(ae,"toStr");function _e(P){if(P.name)return P.name;var N=A.call(y.call(P),/^function\s*([\w$]+)/);return N?N[1]:null}c(_e,"nameOf");function bt(P,N){if(P.indexOf)return P.indexOf(N);for(var pe=0,S=P.length;peN.maxStringLength){var pe=P.length-N.maxStringLength,S="... "+pe+" more character"+(pe>1?"s":"");return Ge(w.call(P,0,N.maxStringLength),N)+S}var O=C.call(C.call(P,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Vt);return ue(O,"single",N)}c(Ge,"inspectString");function Vt(P){var N=P.charCodeAt(0),pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[N];return pe?"\\"+pe:"\\x"+(N<16?"0":"")+I.call(N.toString(16))}c(Vt,"lowbyte");function et(P){return"Object("+P+")"}c(et,"markBoxed");function tt(P){return P+" { ? }"}c(tt,"weakCollectionOf");function ut(P,N,pe,S){var O=S?Tt(pe,S):z.call(pe,", ");return P+" ("+N+") {"+O+"}"}c(ut,"collectionOf");function Gt(P){for(var N=0;N=0)return!1;return!0}c(Gt,"singleLineValues");function mr(P,N){var pe;if(P.indent===" ")pe=" ";else if(typeof P.indent=="number"&&P.indent>0)pe=z.call(Array(P.indent+1)," ");else return null;return{base:pe,prev:z.call(Array(N+1),pe)}}c(mr,"getIndent");function Tt(P,N){if(P.length===0)return"";var pe=` +`+N.prev+N.base;return pe+z.call(P,","+pe)+` +`+N.prev}c(Tt,"indentedJoin");function Ye(P,N){var pe=le(P),S=[];if(pe){S.length=P.length;for(var O=0;O{"use strict";var r=zt(),n=ip(),o=up(),a=ar(),i=r("%WeakMap%",!0),s=r("%Map%",!0),u=n("WeakMap.prototype.get",!0),l=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),g=n("Map.prototype.has",!0),h=c(function(y,A){for(var w=y,C;(C=w.next)!==null;w=C)if(C.key===A)return w.next=C.next,C.next=y.next,y.next=C,C},"listGetNode"),v=c(function(y,A){var w=h(y,A);return w&&w.value},"listGet"),b=c(function(y,A,w){var C=h(y,A);C?C.value=w:y.next={key:A,next:y.next,value:w}},"listSet"),m=c(function(y,A){return!!h(y,A)},"listHas");e.exports=c(function(){var y,A,w,C={assert:c(function(I){if(!C.has(I))throw new a("Side channel does not contain "+o(I))},"assert"),get:c(function(I){if(i&&I&&(typeof I=="object"||typeof I=="function")){if(y)return u(y,I)}else if(s){if(A)return d(A,I)}else if(w)return v(w,I)},"get"),has:c(function(I){if(i&&I&&(typeof I=="object"||typeof I=="function")){if(y)return f(y,I)}else if(s){if(A)return g(A,I)}else if(w)return m(w,I);return!1},"has"),set:c(function(I,D){i&&I&&(typeof I=="object"||typeof I=="function")?(y||(y=new i),l(y,I,D)):s?(A||(A=new s),p(A,I,D)):(w||(w={key:{},next:null}),b(w,I,D))},"set")};return C},"getSideChannel")}),Xn=R((t,e)=>{"use strict";var r=String.prototype.replace,n=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:c(function(a){return r.call(a,n,"+")},"RFC1738"),RFC3986:c(function(a){return String(a)},"RFC3986")},RFC1738:o.RFC1738,RFC3986:o.RFC3986}}),Mi=R((t,e)=>{"use strict";var r=Xn(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var y=[],A=0;A<256;++A)y.push("%"+((A<16?"0":"")+A.toString(16)).toUpperCase());return y}(),i=c(function(y){for(;y.length>1;){var A=y.pop(),w=A.obj[A.prop];if(o(w)){for(var C=[],I=0;I=d?D.slice(j,j+d):D,q=[],G=0;G=48&&L<=57||L>=65&&L<=90||L>=97&&L<=122||I===r.RFC1738&&(L===40||L===41)){q[q.length]=z.charAt(G);continue}if(L<128){q[q.length]=a[L];continue}if(L<2048){q[q.length]=a[192|L>>6]+a[128|L&63];continue}if(L<55296||L>=57344){q[q.length]=a[224|L>>12]+a[128|L>>6&63]+a[128|L&63];continue}G+=1,L=65536+((L&1023)<<10|z.charCodeAt(G)&1023),q[q.length]=a[240|L>>18]+a[128|L>>12&63]+a[128|L>>6&63]+a[128|L&63]}E+=q.join("")}return E},"encode"),g=c(function(y){for(var A=[{obj:{o:y},prop:"o"}],w=[],C=0;C{"use strict";var r=lp(),n=Mi(),o=Xn(),a=Object.prototype.hasOwnProperty,i={brackets:c(function(m){return m+"[]"},"brackets"),comma:"comma",indices:c(function(m,y){return m+"["+y+"]"},"indices"),repeat:c(function(m){return m},"repeat")},s=Array.isArray,u=Array.prototype.push,l=c(function(m,y){u.apply(m,s(y)?y:[y])},"pushToArray"),f=Date.prototype.toISOString,d=o.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:c(function(m){return f.call(m)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},g=c(function(m){return typeof m=="string"||typeof m=="number"||typeof m=="boolean"||typeof m=="symbol"||typeof m=="bigint"},"isNonNullishPrimitive"),h={},v=c(function m(y,A,w,C,I,D,E,j,z,q,G,L,_,F,B,H,$,U){for(var M=y,V=U,J=0,te=!1;(V=V.get(h))!==void 0&&!te;){var ue=V.get(y);if(J+=1,typeof ue<"u"){if(ue===J)throw new RangeError("Cyclic object value");te=!0}typeof V.get(h)>"u"&&(J=0)}if(typeof q=="function"?M=q(A,M):M instanceof Date?M=_(M):w==="comma"&&s(M)&&(M=n.maybeMap(M,function(ae){return ae instanceof Date?_(ae):ae})),M===null){if(D)return z&&!H?z(A,p.encoder,$,"key",F):A;M=""}if(g(M)||n.isBuffer(M)){if(z){var ne=H?A:z(A,p.encoder,$,"key",F);return[B(ne)+"="+B(z(M,p.encoder,$,"value",F))]}return[B(A)+"="+B(String(M))]}var le=[];if(typeof M>"u")return le;var ce;if(w==="comma"&&s(M))H&&z&&(M=n.maybeMap(M,z)),ce=[{value:M.length>0?M.join(",")||null:void 0}];else if(s(q))ce=q;else{var ye=Object.keys(M);ce=G?ye.sort(G):ye}var Ee=j?A.replace(/\./g,"%2E"):A,T=C&&s(M)&&M.length===1?Ee+"[]":Ee;if(I&&s(M)&&M.length===0)return T+"[]";for(var K=0;K"u"?m.encodeDotInKeys===!0?!0:p.allowDots:!!m.allowDots;return{addQueryPrefix:typeof m.addQueryPrefix=="boolean"?m.addQueryPrefix:p.addQueryPrefix,allowDots:D,allowEmptyArrays:typeof m.allowEmptyArrays=="boolean"?!!m.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:I,charset:y,charsetSentinel:typeof m.charsetSentinel=="boolean"?m.charsetSentinel:p.charsetSentinel,commaRoundTrip:m.commaRoundTrip,delimiter:typeof m.delimiter>"u"?p.delimiter:m.delimiter,encode:typeof m.encode=="boolean"?m.encode:p.encode,encodeDotInKeys:typeof m.encodeDotInKeys=="boolean"?m.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof m.encoder=="function"?m.encoder:p.encoder,encodeValuesOnly:typeof m.encodeValuesOnly=="boolean"?m.encodeValuesOnly:p.encodeValuesOnly,filter:C,format:A,formatter:w,serializeDate:typeof m.serializeDate=="function"?m.serializeDate:p.serializeDate,skipNulls:typeof m.skipNulls=="boolean"?m.skipNulls:p.skipNulls,sort:typeof m.sort=="function"?m.sort:null,strictNullHandling:typeof m.strictNullHandling=="boolean"?m.strictNullHandling:p.strictNullHandling}},"normalizeStringifyOptions");e.exports=function(m,y){var A=m,w=b(y),C,I;typeof w.filter=="function"?(I=w.filter,A=I("",A)):s(w.filter)&&(I=w.filter,C=I);var D=[];if(typeof A!="object"||A===null)return"";var E=i[w.arrayFormat],j=E==="comma"&&w.commaRoundTrip;C||(C=Object.keys(A)),w.sort&&C.sort(w.sort);for(var z=r(),q=0;q0?_+L:""}}),pp=R((t,e)=>{"use strict";var r=Mi(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=c(function(h){return h.replace(/&#(\d+);/g,function(v,b){return String.fromCharCode(parseInt(b,10))})},"interpretNumericEntities"),s=c(function(h,v){return h&&typeof h=="string"&&v.comma&&h.indexOf(",")>-1?h.split(","):h},"parseArrayValue"),u="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",f=c(function(h,v){var b={__proto__:null},m=v.ignoreQueryPrefix?h.replace(/^\?/,""):h;m=m.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var y=v.parameterLimit===1/0?void 0:v.parameterLimit,A=m.split(v.delimiter,y),w=-1,C,I=v.charset;if(v.charsetSentinel)for(C=0;C-1&&(q=o(q)?[q]:q);var G=n.call(b,z);G&&v.duplicates==="combine"?b[z]=r.combine(b[z],q):(!G||v.duplicates==="last")&&(b[z]=q)}return b},"parseQueryStringValues"),d=c(function(h,v,b,m){for(var y=m?v:s(v,b),A=h.length-1;A>=0;--A){var w,C=h[A];if(C==="[]"&&b.parseArrays)w=b.allowEmptyArrays&&(y===""||b.strictNullHandling&&y===null)?[]:[].concat(y);else{w=b.plainObjects?Object.create(null):{};var I=C.charAt(0)==="["&&C.charAt(C.length-1)==="]"?C.slice(1,-1):C,D=b.decodeDotInKeys?I.replace(/%2E/g,"."):I,E=parseInt(D,10);!b.parseArrays&&D===""?w={0:y}:!isNaN(E)&&C!==D&&String(E)===D&&E>=0&&b.parseArrays&&E<=b.arrayLimit?(w=[],w[E]=y):D!=="__proto__"&&(w[D]=y)}y=w}return y},"parseObject"),p=c(function(h,v,b,m){if(h){var y=b.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,A=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,C=b.depth>0&&A.exec(y),I=C?y.slice(0,C.index):y,D=[];if(I){if(!b.plainObjects&&n.call(Object.prototype,I)&&!b.allowPrototypes)return;D.push(I)}for(var E=0;b.depth>0&&(C=w.exec(y))!==null&&E"u"?a.charset:h.charset,b=typeof h.duplicates>"u"?a.duplicates:h.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var m=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:a.allowDots:!!h.allowDots;return{allowDots:m,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:a.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:a.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:a.arrayLimit,charset:v,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:a.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:a.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:a.decoder,delimiter:typeof h.delimiter=="string"||r.isRegExp(h.delimiter)?h.delimiter:a.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:a.depth,duplicates:b,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:a.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:a.plainObjects,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:a.strictNullHandling}},"normalizeParseOptions");e.exports=function(h,v){var b=g(v);if(h===""||h===null||typeof h>"u")return b.plainObjects?Object.create(null):{};for(var m=typeof h=="string"?f(h,b):h,y=b.plainObjects?Object.create(null):{},A=Object.keys(m),w=0;w{"use strict";var r=cp(),n=pp(),o=Xn();e.exports={formats:o,parse:n,stringify:r}}),Li=R((t,e)=>{e.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),fp=R((t,e)=>{e.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),$i=R((t,e)=>{e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),dp=R((t,e)=>{e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),hp=R(t=>{"use strict";var e=t&&t.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(dp()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}c(o,"decodeCodePoint"),t.default=o}),Ya=R(t=>{"use strict";var e=t&&t.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var r=e(Li()),n=e(fp()),o=e($i()),a=e(hp()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;t.decodeXML=s(o.default),t.decodeHTMLStrict=s(r.default);function s(f){var d=l(f);return function(p){return String(p).replace(i,d)}}c(s,"getStrictDecoder");var u=c(function(f,d){return f{"use strict";var e=t&&t.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var r=e($i()),n=u(r.default),o=l(n);t.encodeXML=m(n);var a=e(Li()),i=u(a.default),s=l(i);t.encodeHTML=g(i,s),t.encodeNonAsciiHTML=m(i);function u(y){return Object.keys(y).sort().reduce(function(A,w){return A[y[w]]="&"+w+";",A},{})}c(u,"getInverseObj");function l(y){for(var A=[],w=[],C=0,I=Object.keys(y);C1?d(y):y.charCodeAt(0)).toString(16).toUpperCase()+";"}c(p,"singleCharReplacer");function g(y,A){return function(w){return w.replace(A,function(C){return y[C]}).replace(f,p)}}c(g,"getInverse");var h=new RegExp(o.source+"|"+f.source,"g");function v(y){return y.replace(h,p)}c(v,"escape"),t.escape=v;function b(y){return y.replace(o,p)}c(b,"escapeUTF8"),t.escapeUTF8=b;function m(y){return function(A){return A.replace(h,function(w){return y[w]||p(w)})}}c(m,"getASCIIEncoder")}),mp=R(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var e=Ya(),r=Ka();function n(u,l){return(!l||l<=0?e.decodeXML:e.decodeHTML)(u)}c(n,"decode"),t.decode=n;function o(u,l){return(!l||l<=0?e.decodeXML:e.decodeHTMLStrict)(u)}c(o,"decodeStrict"),t.decodeStrict=o;function a(u,l){return(!l||l<=0?r.encodeXML:r.encodeHTML)(u)}c(a,"encode"),t.encode=a;var i=Ka();Object.defineProperty(t,"encodeXML",{enumerable:!0,get:c(function(){return i.encodeXML},"get")}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:c(function(){return i.encodeHTML},"get")}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:c(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(t,"escape",{enumerable:!0,get:c(function(){return i.escape},"get")}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:c(function(){return i.escapeUTF8},"get")}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:c(function(){return i.encodeHTML},"get")}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:c(function(){return i.encodeHTML},"get")});var s=Ya();Object.defineProperty(t,"decodeXML",{enumerable:!0,get:c(function(){return s.decodeXML},"get")}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:c(function(){return s.decodeHTML},"get")}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:c(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:c(function(){return s.decodeHTML},"get")}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:c(function(){return s.decodeHTML},"get")}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:c(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:c(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:c(function(){return s.decodeXML},"get")})}),yp=R((t,e)=>{"use strict";function r(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}c(r,"_classCallCheck");function n(_,F){for(var B=0;B=_.length?{done:!0}:{done:!1,value:_[H++]}},"n"),e:c(function(J){throw J},"e"),f:$}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,M=!1,V;return{s:c(function(){B=B.call(_)},"s"),n:c(function(){var J=B.next();return U=J.done,J},"n"),e:c(function(J){M=!0,V=J},"e"),f:c(function(){try{!U&&B.return!=null&&B.return()}finally{if(M)throw V}},"f")}}c(a,"_createForOfIteratorHelper");function i(_,F){if(_){if(typeof _=="string")return s(_,F);var B=Object.prototype.toString.call(_).slice(8,-1);if(B==="Object"&&_.constructor&&(B=_.constructor.name),B==="Map"||B==="Set")return Array.from(_);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return s(_,F)}}c(i,"_unsupportedIterableToArray");function s(_,F){(F==null||F>_.length)&&(F=_.length);for(var B=0,H=new Array(F);B0?_*40+55:0,M=F>0?F*40+55:0,V=B>0?B*40+55:0;H[$]=g([U,M,V])}c(d,"setStyleColor");function p(_){for(var F=_.toString(16);F.length<2;)F="0"+F;return F}c(p,"toHexString");function g(_){var F=[],B=a(_),H;try{for(B.s();!(H=B.n()).done;){var $=H.value;F.push(p($))}}catch(U){B.e(U)}finally{B.f()}return"#"+F.join("")}c(g,"toColorHexString");function h(_,F,B,H){var $;return F==="text"?$=C(B,H):F==="display"?$=b(_,B,H):F==="xterm256Foreground"?$=E(_,H.colors[B]):F==="xterm256Background"?$=j(_,H.colors[B]):F==="rgb"&&($=v(_,B)),$}c(h,"generateOutput");function v(_,F){F=F.substring(2).slice(0,-1);var B=+F.substr(0,2),H=F.substring(5).split(";"),$=H.map(function(U){return("0"+Number(U).toString(16)).substr(-2)}).join("");return D(_,(B===38?"color:#":"background-color:#")+$)}c(v,"handleRgb");function b(_,F,B){F=parseInt(F,10);var H={"-1":c(function(){return"
"},"_"),0:c(function(){return _.length&&m(_)},"_"),1:c(function(){return I(_,"b")},"_"),3:c(function(){return I(_,"i")},"_"),4:c(function(){return I(_,"u")},"_"),8:c(function(){return D(_,"display:none")},"_"),9:c(function(){return I(_,"strike")},"_"),22:c(function(){return D(_,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:c(function(){return z(_,"i")},"_"),24:c(function(){return z(_,"u")},"_"),39:c(function(){return E(_,B.fg)},"_"),49:c(function(){return j(_,B.bg)},"_"),53:c(function(){return D(_,"text-decoration:overline")},"_")},$;return H[F]?$=H[F]():4"}).join("")}c(m,"resetStyles");function y(_,F){for(var B=[],H=_;H<=F;H++)B.push(H);return B}c(y,"range");function A(_){return function(F){return(_===null||F.category!==_)&&_!=="all"}}c(A,"notCategory");function w(_){_=parseInt(_,10);var F=null;return _===0?F="all":_===1?F="bold":2<_&&_<5?F="underline":4<_&&_<7?F="blink":_===8?F="hide":_===9?F="strike":29<_&&_<38||_===39||89<_&&_<98?F="foreground-color":(39<_&&_<48||_===49||99<_&&_<108)&&(F="background-color"),F}c(w,"categoryForCode");function C(_,F){return F.escapeXML?u.encodeXML(_):_}c(C,"pushText");function I(_,F,B){return B||(B=""),_.push(F),"<".concat(F).concat(B?' style="'.concat(B,'"'):"",">")}c(I,"pushTag");function D(_,F){return I(_,"span",F)}c(D,"pushStyle");function E(_,F){return I(_,"span","color:"+F)}c(E,"pushForegroundColor");function j(_,F){return I(_,"span","background-color:"+F)}c(j,"pushBackgroundColor");function z(_,F){var B;if(_.slice(-1)[0]===F&&(B=_.pop()),B)return""}c(z,"closeTag");function q(_,F,B){var H=!1,$=3;function U(){return""}c(U,"remove");function M(W,ee){return B("xterm256Foreground",ee),""}c(M,"removeXterm256Foreground");function V(W,ee){return B("xterm256Background",ee),""}c(V,"removeXterm256Background");function J(W){return F.newline?B("display",-1):B("text",W),""}c(J,"newline");function te(W,ee){H=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var ae=a(ee),_e;try{for(ae.s();!(_e=ae.n()).done;){var bt=_e.value;B("display",bt)}}catch(It){ae.e(It)}finally{ae.f()}return""}c(te,"ansiMess");function ue(W){return B("text",W),""}c(ue,"realText");function ne(W){return B("rgb",W),""}c(ne,"rgb");var le=[{pattern:/^\x08+/,sub:U},{pattern:/^\x1b\[[012]?K/,sub:U},{pattern:/^\x1b\[\(B/,sub:U},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ne},{pattern:/^\x1b\[38;5;(\d+)m/,sub:M},{pattern:/^\x1b\[48;5;(\d+)m/,sub:V},{pattern:/^\n/,sub:J},{pattern:/^\r+\n/,sub:J},{pattern:/^\r/,sub:J},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:te},{pattern:/^\x1b\[\d?J/,sub:U},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:U},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:U},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:ue}];function ce(W,ee){ee>$&&H||(H=!1,_=_.replace(W.pattern,W.sub))}c(ce,"process");var ye=[],Ee=_,T=Ee.length;e:for(;T>0;){for(var K=0,Q=0,re=le.length;Q{let t;return typeof window<"u"?t=window:typeof globalThis<"u"?t=globalThis:typeof window<"u"?t=window:typeof self<"u"?t=self:t={},t})();function zi(){let t={setHandler:c(()=>{},"setHandler"),send:c(()=>{},"send")};return new Xo({transport:t})}c(zi,"mockChannel");var qi=class{constructor(){this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}channel;promise;resolve;getChannel=c(()=>{if(!this.channel){let e=zi();return this.setChannel(e),e}return this.channel},"getChannel");ready=c(()=>this.promise,"ready");hasChannel=c(()=>!!this.channel,"hasChannel");setChannel=c(e=>{this.channel=e,this.resolve()},"setChannel")};c(qi,"AddonStore");var gp=qi,yn="__STORYBOOK_ADDONS_PREVIEW";function Ui(){return Re[yn]||(Re[yn]=new gp),Re[yn]}c(Ui,"getAddonsStore");var dt=Ui(),Hi=class{hookListsMap=void 0;mountedDecorators=void 0;prevMountedDecorators=void 0;currentHooks=void 0;nextHookIndex=void 0;currentPhase=void 0;currentEffects=void 0;prevEffects=void 0;currentDecoratorName=void 0;hasUpdates=void 0;currentContext=void 0;renderListener=c(e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener");constructor(){this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),dt.getChannel().on(Qt,this.renderListener)}removeRenderListeners(){dt.getChannel().removeListener(Qt,this.renderListener)}};c(Hi,"HooksContext");var Wi=Hi;function wn(t){let e=c((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=t.name,n.prevMountedDecorators.has(t)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(t)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(t,n.currentHooks),n.prevMountedDecorators.add(t)),n.nextHookIndex=0;let u=Re.STORYBOOK_HOOKS_CONTEXT;Re.STORYBOOK_HOOKS_CONTEXT=n;let l=t(...r);if(Re.STORYBOOK_HOOKS_CONTEXT=u,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,l},"hookified");return e.originalFn=t,e}c(wn,"hookify");var gn=0,bp=25,vp=c(t=>(e,r)=>{let n=t(wn(e),r.map(o=>wn(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([e,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(gn=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),gn+=1,gn>bp)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),Ep=c((t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),"areDepsEqual"),Zn=c(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function eo(){return Re.STORYBOOK_HOOKS_CONTEXT||null}c(eo,"getHooksContextOrNull");function Hr(){let t=eo();if(t==null)throw Zn();return t}c(Hr,"getHooksContextOrThrow");function Vi(t,e,r){let n=Hr();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Se.warn(`${t} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:t,deps:r};return n.currentHooks.push(o),e(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==t&&Se.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Se.warn(`${t} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Se.warn(`The final argument passed to ${t} changed size between renders. The order and size of this array must remain constant. +Previous: ${o.deps} +Incoming: ${r}`),(r==null||o.deps==null||!Ep(r,o.deps))&&(e(o),o.deps=r),o}throw Zn()}c(Vi,"useHook");function ir(t,e,r){let{memoizedState:n}=Vi(t,o=>{o.memoizedState=e()},r);return n}c(ir,"useMemoLike");function Sp(t,e){return ir("useMemo",t,e)}c(Sp,"useMemo");function tr(t,e){return ir("useCallback",()=>t,e)}c(tr,"useCallback");function to(t,e){return ir(t,()=>({current:e}),[])}c(to,"useRefLike");function Ap(t){return to("useRef",t)}c(Ap,"useRef");function Gi(){let t=eo();if(t!=null&&t.currentPhase!=="NONE")t.hasUpdates=!0;else try{dt.getChannel().emit(Ar)}catch{Se.warn("State updates of Storybook preview hooks work only in browser")}}c(Gi,"triggerUpdate");function ro(t,e){let r=to(t,typeof e=="function"?e():e),n=c(o=>{r.current=typeof o=="function"?o(r.current):o,Gi()},"setState");return[r.current,n]}c(ro,"useStateLike");function wp(t){return ro("useState",t)}c(wp,"useState");function xp(t,e,r){let n=r!=null?()=>r(e):e,[o,a]=ro("useReducer",n);return[o,c(i=>a(s=>t(s,i)),"dispatch")]}c(xp,"useReducer");function Yi(t,e){let r=Hr(),n=ir("useEffect",()=>({create:t}),e);r.currentEffects.includes(n)||r.currentEffects.push(n)}c(Yi,"useEffect");function Cp(t,e=[]){let r=dt.getChannel();return Yi(()=>(Object.entries(t).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(t).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(t),...e]),tr(r.emit.bind(r),[r])}c(Cp,"useChannel");function Wr(){let{currentContext:t}=Hr();if(t==null)throw Zn();return t}c(Wr,"useStoryContext");function Op(t,e){let{parameters:r}=Wr();if(t)return r[t]??e}c(Op,"useParameter");function _p(){let t=dt.getChannel(),{id:e,args:r}=Wr(),n=tr(a=>t.emit(Ir,{storyId:e,updatedArgs:a}),[t,e]),o=tr(a=>t.emit(xr,{storyId:e,argNames:a}),[t,e]);return[r,n,o]}c(_p,"useArgs");function Ip(){let t=dt.getChannel(),{globals:e}=Wr(),r=tr(n=>t.emit(_r,{globals:n}),[t]);return[e,r]}c(Ip,"useGlobals");var o2=c(({name:t,parameterName:e,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=c(a=>(i,s)=>{let u=s.parameters&&s.parameters[e];return u&&u.disable||n&&!a&&!u?i(s):r(i,s,{options:a,parameters:u})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${t}() is not allowed, + instead use addDecorator(${t}) and pass options with the '${e}' parameter`)}},"makeDecorator"),bn=Pe(ci(),1),Rp=Pe(Ur(),1),Ja=Pe(Lc(),1),Tp=Pe(ci(),1),Dp=(0,Tp.default)(1)(t=>Object.values(t).reduce((e,r)=>(e[r.importPath]=e[r.importPath]||r,e),{})),Ki=class{entries;constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let r=Object.values(this.entries);if(e==="*")return r[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:r.find(a=>a.id.startsWith(e));let{name:n,title:o}=e;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(e){let r=this.entries[e];if(!r)throw new ya({storyId:e});return r}importPathToEntry(e){return Dp(this.entries)[e]}};c(Ki,"StoryIndexStore");var Fp=Ki,Xa=Object.prototype.hasOwnProperty;function xn(t,e,r){for(r of t.keys())if(Nt(r,e))return r}c(xn,"find");function Nt(t,e){var r,n,o;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&Nt(t[n],e[n]););return n===-1}if(r===Set){if(t.size!==e.size)return!1;for(n of t)if(o=n,o&&typeof o=="object"&&(o=xn(e,o),!o)||!e.has(o))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t)if(o=n[0],o&&typeof o=="object"&&(o=xn(e,o),!o)||!Nt(n[1],e.get(o)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return n===-1}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(Xa.call(t,r)&&++n&&!Xa.call(e,r)||!(r in e)||!Nt(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}c(Nt,"dequal");var jr=Pe(Yn(),1);function qe(t){for(var e=[],r=1;r{let r=e.type;if(t==null||!r||e.mapping)return t;switch(r.name){case"string":return String(t);case"enum":return t;case"number":return Number(t);case"boolean":return String(t)==="true";case"array":return!r.value||!Array.isArray(t)?Bt:t.reduce((n,o,a)=>{let i=Cn(o,{type:r.value});return i!==Bt&&(n[a]=i),n},new Array(t.length));case"object":return typeof t=="string"||typeof t=="number"?t:!r.value||typeof t!="object"?Bt:Object.entries(t).reduce((n,[o,a])=>{let i=Cn(a,{type:r.value[o]});return i===Bt?n:Object.assign(n,{[o]:i})},{});default:return Bt}},"map"),Pp=c((t,e)=>Object.entries(t).reduce((r,[n,o])=>{if(!e[n])return r;let a=Cn(o,e[n]);return a===Bt?r:Object.assign(r,{[n]:a})},{}),"mapArgsToTypes"),On=c((t,e)=>Array.isArray(t)&&Array.isArray(e)?e.reduce((r,n,o)=>(r[o]=On(t[o],e[o]),r),[...t]).filter(r=>r!==void 0):!(0,jr.default)(t)||!(0,jr.default)(e)?e:Object.keys({...t,...e}).reduce((r,n)=>{if(n in e){let o=On(t[n],e[n]);o!==void 0&&(r[n]=o)}else r[n]=t[n];return r},{}),"combineArgs"),jp=c((t,e)=>Object.entries(e).reduce((r,[n,{options:o}])=>{function a(){return n in t&&(r[n]=t[n]),r}if(c(a,"allowArg"),!o)return a();if(!Array.isArray(o))return ct.error(qe` + Invalid argType: '${n}.options' should be an array. + + More info: https://storybook.js.org/docs/react/api/argtypes + `),a();if(o.some(d=>d&&["object","function"].includes(typeof d)))return ct.error(qe` + Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values. + + More info: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + `),a();let i=Array.isArray(t[n]),s=i&&t[n].findIndex(d=>!o.includes(d)),u=i&&s===-1;if(t[n]===void 0||o.includes(t[n])||u)return a();let l=i?`${n}[${s}]`:n,f=o.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return ct.warn(`Received illegal value for '${l}'. Supported options: ${f}`),r},{}),"validateOptions"),Zt=Symbol("Deeply equal"),Br=c((t,e)=>{if(typeof t!=typeof e)return e;if(Nt(t,e))return Zt;if(Array.isArray(t)&&Array.isArray(e)){let r=e.reduce((n,o,a)=>{let i=Br(t[a],o);return i!==Zt&&(n[a]=i),n},new Array(e.length));return e.length>=t.length?r:r.concat(new Array(t.length-e.length).fill(void 0))}return(0,jr.default)(t)&&(0,jr.default)(e)?Object.keys({...t,...e}).reduce((r,n)=>{let o=Br(t?.[n],e?.[n]);return o===Zt?r:Object.assign(r,{[n]:o})},{}):e},"deepDiff"),Ji="UNTARGETED";function Xi({args:t,argTypes:e}){let r={};return Object.entries(t).forEach(([n,o])=>{let{target:a=Ji}=e[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}c(Xi,"groupArgsByTarget");function Qi(t){return Object.keys(t).forEach(e=>t[e]===void 0&&delete t[e]),t}c(Qi,"deleteUndefined");var Zi=class{initialArgsByStoryId={};argsByStoryId={};get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let r=Br(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,r!==Zt&&this.updateFromDelta(e,r)}}updateFromDelta(e,r){let n=jp(r,e.argTypes);this.argsByStoryId[e.id]=On(this.argsByStoryId[e.id],n)}updateFromPersisted(e,r){let n=Pp(r,e.argTypes);return this.updateFromDelta(e,n)}update(e,r){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=Qi({...this.argsByStoryId[e],...r})}};c(Zi,"ArgsStore");var Bp=Zi,es=c((t={})=>Object.entries(t).reduce((e,[r,{defaultValue:n}])=>(typeof n<"u"&&(e[r]=n),e),{}),"getValuesFromArgTypes"),ts=class{allowedGlobalNames;initialGlobals;globals;constructor({globals:e={},globalTypes:r={}}){this.set({globals:e,globalTypes:r})}set({globals:e={},globalTypes:r={}}){let n=this.initialGlobals&&Br(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(r)]);let o=es(r);this.initialGlobals={...o,...e},this.globals=this.initialGlobals,n&&n!==Zt&&this.updateFromPersisted(n)}filterAllowedGlobals(e){return Object.entries(e).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:Se.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(e){let r=this.filterAllowedGlobals(e);this.globals={...this.globals,...r}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)}}};c(ts,"GlobalsStore");var kp=ts,Np=Pe(Ur(),1),Mp=c(t=>typeof t=="string"?{name:t}:t,"normalizeType"),Lp=c(t=>typeof t=="string"?{type:t}:t,"normalizeControl"),$p=c((t,e)=>{let{type:r,control:n,...o}=t,a={name:e,...o};return r&&(a.type=Mp(r)),n?a.control=Lp(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),kr=c(t=>(0,Np.default)(t,$p),"normalizeInputTypes"),Oe=c(t=>Array.isArray(t)?t:t?[t]:[],"normalizeArrays"),zp=qe` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`;function no(t,e,r){let n=e,o=typeof e=="function"?e:null,{story:a}=n;a&&(Se.debug("deprecated story",a),rt(zp));let i=Va(t),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,u=[...Oe(n.decorators),...Oe(a?.decorators)],l={...a?.parameters,...n.parameters},f={...a?.args,...n.args},d={...a?.argTypes,...n.argTypes},p=[...Oe(n.loaders),...Oe(a?.loaders)],g=[...Oe(n.beforeEach),...Oe(a?.beforeEach)],{render:h,play:v,tags:b=[]}=n,m=l.__id||Wa(r.id,i);return{moduleExport:e,id:m,name:s,tags:b,decorators:u,parameters:l,args:f,argTypes:kr(d),loaders:p,beforeEach:g,...h&&{render:h},...o&&{userStoryFn:o},...v&&{play:v}}}c(no,"normalizeStory");function oo(t,e=t.title,r){let{id:n,argTypes:o}=t;return{id:mn(n||e),...t,title:e,...o&&{argTypes:kr(o)},parameters:{fileName:r,...t.parameters}}}c(oo,"normalizeComponentAnnotations");var qp=c(t=>{let{globals:e,globalTypes:r}=t;(e||r)&&Se.error("Global args/argTypes can only be set globally",JSON.stringify({globals:e,globalTypes:r}))},"checkGlobals"),Up=c(t=>{let{options:e}=t;e?.storySort&&Se.error("The storySort option parameter can only be set globally")},"checkStorySort"),Qa=c(t=>{t&&(qp(t),Up(t))},"checkDisallowedParameters");function rs(t,e,r){let{default:n,__namedExportsOrder:o,...a}=t,i=oo(n,r,e);Qa(i.parameters);let s={meta:i,stories:{},moduleExports:t};return Object.keys(a).forEach(u=>{if(Tr(u,i)){let l=no(u,a[u],i);Qa(l.parameters),s.stories[l.id]=l}}),s}c(rs,"processCSFFile");var vn=Pe(Yn(),1),wt=c((...t)=>{let e={},r=t.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let u=o[i];Array.isArray(s)||typeof u>"u"?o[i]=s:(0,vn.default)(s)&&(0,vn.default)(u)?e[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(e).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>(0,vn.default)(i))?n[o]=wt(...a):n[o]=a[a.length-1]}),n},"combineParameters");function ns(t,e,r){let n=r(t);return o=>e(n,o)}c(ns,"decorateStory");function os({componentId:t,title:e,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:u,...l}={}){return l}c(os,"sanitizeStoryContextUpdate");function as(t,e){let r={},n=c(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...os(i)},a(r.value)},"bindWithContext"),o=e.reduce((a,i)=>ns(a,i,n),t);return a=>(r.value=a,o(a))}c(as,"defaultDecorateStory");function is(t){return t!=null&&ss(t).includes("mount")}c(is,"mountDestructured");function ss(t){let e=t.toString().match(/[^(]*\(([^)]*)/);if(!e)return[];let r=_n(e[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?_n(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}c(ss,"getUsedProps");function _n(t){let e=[],r=[],n=0;for(let a=0;a{let I={};for(let D of[..."__STORYBOOK_TEST_LOADERS__"in Re&&Array.isArray(Re.__STORYBOOK_TEST_LOADERS__)?[Re.__STORYBOOK_TEST_LOADERS__]:[],Oe(r.loaders),Oe(e.loaders),Oe(t.loaders)]){if(C.abortSignal.aborted)return I;let E=await Promise.all(D.map(j=>j(C)));Object.assign(I,...E)}return I},"applyLoaders"),u=c(async C=>{let I=new Array;for(let D of[...Oe(r.beforeEach),...Oe(e.beforeEach),...Oe(t.beforeEach)]){if(C.abortSignal.aborted)return I;let E=await D(C);E&&I.push(E)}return I},"applyBeforeEach"),l=c(C=>C.originalStoryFn(C.args,C),"undecoratedStoryFn"),{applyDecorators:f=as,runStep:d}=r,p=[...Oe(t?.decorators),...Oe(e?.decorators),...Oe(r?.decorators)],g=t?.userStoryFn||t?.render||e.render||r.render,h=vp(f)(l,p),v=c(C=>h(C),"unboundStoryFn"),b=t?.play??e?.play,m=is(b);if(!g&&!m)throw new ka({id:o});let y=c(C=>async()=>(await C.renderToCanvas(),C.canvas),"defaultMount"),A=t.mount??e.mount??r.mount??y,w=r.testingLibraryRender;return{...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:g,undecoratedStoryFn:l,unboundStoryFn:v,applyLoaders:s,applyBeforeEach:u,playFunction:b,runStep:d,mount:A,testingLibraryRender:w,renderToCanvas:r.renderToCanvas,usesMount:m}}c(ao,"prepareStory");function us(t,e,r){return{...io(void 0,t,e),moduleExport:r}}c(us,"prepareMeta");function io(t,e,r){let n=["dev","test"],o=Re.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=Ga(...n,...o,...r.tags??[],...e.tags??[],...t?.tags??[]),i=wt(r.parameters,e.parameters,t?.parameters),{argTypesEnhancers:s=[],argsEnhancers:u=[]}=r,l=wt(r.argTypes,e.argTypes,t?.argTypes);if(t){let b=t?.userStoryFn||t?.render||e.render||r.render;i.__isArgsStory=b&&b.length>0}let f={...r.args,...e.args,...t?.args},d={componentId:e.id,title:e.title,kind:e.title,id:t?.id||e.id,name:t?.name||"__meta",story:t?.name||"__meta",component:e.component,subcomponents:e.subcomponents,tags:a,parameters:i,initialArgs:f,argTypes:l};d.argTypes=s.reduce((b,m)=>m({...d,argTypes:b}),d.argTypes);let p={...f};d.initialArgs=u.reduce((b,m)=>({...b,...m({...d,initialArgs:b})}),p);let{name:g,story:h,...v}=d;return v}c(io,"preparePartialAnnotations");function so(t){let{args:e}=t,r={...t,allArgs:void 0,argsByTarget:void 0};if(Re.FEATURES?.argTypeTargetsV7){let a=Xi(t);r={...t,allArgs:t.args,argsByTarget:a,args:a[Ji]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let u=c(l=>{let f=r.argTypes[i].mapping;return f&&l in f?f[l]:l},"mappingFn");return a[i]=Array.isArray(s)?s.map(u):u(s),a},{}),o=Object.entries(n).reduce((a,[i,s])=>{let u=r.argTypes[i]||{};return Ha(u,n,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:e,args:o}}c(so,"prepareContext");var In=Pe(Ur(),1),Rn=c((t,e,r)=>{let n=typeof t;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return t?r.has(t)?(Se.warn(qe` + We've detected a cycle in arg '${e}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(r.add(t),Array.isArray(t)?{name:"array",value:t.length>0?Rn(t[0],e,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,In.default)(t,o=>Rn(o,e,new Set(r)))}):{name:"object",value:{}}},"inferType"),ls=c(t=>{let{id:e,argTypes:r={},initialArgs:n={}}=t,o=(0,In.default)(n,(i,s)=>({name:s,type:Rn(i,`${e}.${s}`,new Set)})),a=(0,In.default)(r,(i,s)=>({name:s}));return wt(o,a,r)},"inferArgTypes");ls.secondPass=!0;var Hp=Pe(Ur(),1),Wp=Pe(Wc(),1),Za=c((t,e)=>Array.isArray(e)?e.includes(t):t.match(e),"matches"),Vp=c((t,e,r)=>!e&&!r?t:t&&(0,Wp.default)(t,(n,o)=>{let a=n.name||o;return(!e||Za(a,e))&&(!r||!Za(a,r))}),"filterArgTypes"),Gp=c((t,e,r)=>{let{type:n,options:o}=t;if(n){if(r.color&&r.color.test(e)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Se.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(e))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),cs=c(t=>{let{argTypes:e,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=t;if(!r)return e;let i=Vp(e,n,o),s=(0,Hp.default)(i,(u,l)=>u?.type&&Gp(u,l,a));return wt(s,i)},"inferControls");cs.secondPass=!0;function Nr({argTypes:t,globalTypes:e,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,globals:i,initialGlobals:s,...u}){return i&&Object.keys(i).length>0&&rt(qe` + The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0. + Please use 'initialGlobals' instead. Learn more: + + https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals + `),{...t&&{argTypes:kr(t)},...e&&{globalTypes:kr(e)},decorators:Oe(n),loaders:Oe(o),beforeEach:Oe(a),argTypesEnhancers:[...r||[],ls,cs],initialGlobals:wt(s,i),...u}}c(Nr,"normalizeProjectAnnotations");function ps(t){return async(e,r,n)=>{await t.reduceRight((o,a)=>async()=>a(e,o,n),async()=>r(n))()}}c(ps,"composeStepRunners");var Yp=c(t=>async()=>{let e=[];for(let r of t){let n=await r();n&&e.unshift(n)}return async()=>{for(let r of e)await r()}},"composeBeforeAllHooks");function Mt(t,e){return t.map(r=>r.default?.[e]??r[e]).filter(Boolean)}c(Mt,"getField");function pt(t,e,r={}){return Mt(t,e).reduce((n,o)=>{let a=Oe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}c(pt,"getArrayField");function kt(t,e){return Object.assign({},...Mt(t,e))}c(kt,"getObjectField");function St(t,e){return Mt(t,e).pop()}c(St,"getSingletonField");function uo(t){let e=pt(t,"argTypesEnhancers"),r=Mt(t,"runStep"),n=pt(t,"beforeAll");return{parameters:wt(...Mt(t,"parameters")),decorators:pt(t,"decorators",{reverseFileOrder:!(Re.FEATURES?.legacyDecoratorFileOrder??!1)}),args:kt(t,"args"),argsEnhancers:pt(t,"argsEnhancers"),argTypes:kt(t,"argTypes"),argTypesEnhancers:[...e.filter(o=>!o.secondPass),...e.filter(o=>o.secondPass)],globals:kt(t,"globals"),initialGlobals:kt(t,"initialGlobals"),globalTypes:kt(t,"globalTypes"),loaders:pt(t,"loaders"),beforeAll:Yp(n),beforeEach:pt(t,"beforeEach"),render:St(t,"render"),renderToCanvas:St(t,"renderToCanvas"),renderToDOM:St(t,"renderToDOM"),applyDecorators:St(t,"applyDecorators"),runStep:ps(r),tags:pt(t,"tags"),mount:St(t,"mount"),testingLibraryRender:St(t,"testingLibraryRender")}}c(uo,"composeConfigs");var Tn={},Kp="ComposedStory",Jp="Unnamed Story";function fs(t){return t?"default"in t?t.default:t:{}}c(fs,"extractAnnotation");function Xp(t){let e=Array.isArray(t)?t:[t];return Tn=uo(e.map(fs)),Tn}c(Xp,"setProjectAnnotations");var ft=[];function Qp(t,e,r,n,o){if(t===void 0)throw new Error("Expected a story but received undefined.");e.title=e.title??Kp;let a=oo(e),i=o||t.storyName||t.story?.name||t.name||Jp,s=no(i,t,a),u=Nr(uo([n??{},Tn,r??{}])),l=ao(s,a,u),f=es(u.globalTypes),d=c(()=>{let b=so({hooks:new Wi,globals:{...f,...u.initialGlobals},args:{...l.initialArgs},viewMode:"story",loaded:{},abortSignal:new AbortController().signal,step:c((m,y)=>l.runStep(m,y,b),"step"),canvasElement:null,canvas:{},...l,context:null,mount:null});return b.context=b,l.renderToCanvas&&(b.renderToCanvas=async()=>{let m=await l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:c(()=>{},"showMain"),showError:c(y=>{},"showError"),showException:c(y=>{},"showException"),forceRemount:!0,storyContext:b,storyFn:c(()=>l.unboundStoryFn(b),"storyFn"),unboundStoryFn:l.unboundStoryFn},b.canvasElement);m&&ft.push(m)}),b.mount=l.mount(b),b},"initializeContext"),p,g=c(async b=>{let m=d();return m.canvasElement??=globalThis?.document?.body,p&&(m.loaded=p.loaded),Object.assign(m,b),l.playFunction(m)},"play"),h=c(b=>{let m=d();return Object.assign(m,b),ds(l,m)},"run"),v=l.playFunction?g:void 0;return Object.assign(c(function(b){let m=d();return p&&(m.loaded=p.loaded),m.args={...m.initialArgs,...b},l.unboundStoryFn(m)},"storyFn"),{id:l.id,storyName:i,load:c(async()=>{for(let m of[...ft].reverse())await m();ft.length=0;let b=d();b.loaded=await l.applyLoaders(b),ft.push(...(await l.applyBeforeEach(b)).filter(Boolean)),p=b},"load"),args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:v,run:h,tags:l.tags})}c(Qp,"composeStory");function Zp(t,e,r){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=t;return Object.entries(i).reduce((s,[u,l])=>Tr(u,n)?Object.assign(s,{[u]:r(l,n,e,u)}):s,{})}c(Zp,"composeStories");function ef(t){return t.extend({mount:c(async({mount:e,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(qe` + Portable stories in Playwright CT only work when referencing JSX elements. + Please use JSX format for your components such as: + + instead of: + await mount(MyComponent, { props: { foo: 'bar' } }) + + do: + await mount() + + More info: https://storybook.js.org/docs/api/portable-stories-playwright + `);await r.evaluate(async s=>{let u=await globalThis.__pwUnwrapObject?.(s);return("__pw_type"in u?u.type:u)?.load?.()},o);let i=await e(o,...a);return await r.evaluate(async s=>{let u=await globalThis.__pwUnwrapObject?.(s),l="__pw_type"in u?u.type:u,f=document.querySelector("#root");return l?.play?.({canvasElement:f})},o),i})},"mount")})}c(ef,"createPlaywrightTest");async function ds(t,e){for(let o of[...ft].reverse())await o();if(ft.length=0,!e.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),e.canvasElement=o,ft.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(e.loaded=await t.applyLoaders(e),e.abortSignal.aborted)return;ft.push(...(await t.applyBeforeEach(e)).filter(Boolean));let r=t.playFunction,n=t.usesMount;n||await e.mount(),!e.abortSignal.aborted&&r&&(n||(e.mount=async()=>{throw new Rr({playFunction:r.toString()})}),await r(e))}c(ds,"runStory");var ei=1e3,tf=1e4,hs=class{constructor(e,r,n){this.importFn=r,this.storyIndex=new Fp(e),this.projectAnnotations=Nr(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new Bp,this.globals=new kp({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,bn.default)(ei)(rs),this.prepareMetaWithCache=(0,bn.default)(ei)(us),this.prepareStoryWithCache=(0,bn.default)(tf)(ao)}storyIndex;projectAnnotations;globals;args;hooks;cleanupCallbacks;cachedCSFFiles;processCSFFileWithCache;prepareMetaWithCache;prepareStoryWithCache;setProjectAnnotations(e){this.projectAnnotations=Nr(e);let{initialGlobals:r,globalTypes:n}=e;this.globals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:e,storyIndex:r}){e&&(this.importFn=e),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(e),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{e[n]=r}),(await Promise.all(Object.entries(e).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let r=e.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let r=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:r})}storyFromCSFFile({storyId:e,csfFile:r}){let n=r.stories[e];if(!n)throw new Da({storyId:e});let o=r.meta,a=this.prepareStoryWithCache(n,o,this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new Wi,a}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(r=>!!e.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:e}))}async loadEntry(e){let r=await this.storyIdToEntry(e),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(e,{forceInitialArgs:r=!1}={}){return so({...e,args:r?e.initialArgs:this.args.get(e.id),globals:this.globals.get(),hooks:this.hooks[e.id]})}addCleanupCallbacks(e,r){this.cleanupCallbacks[e.id]=r}async cleanupStory(e){this.hooks[e.id].clean();let r=this.cleanupCallbacks[e.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new ba;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],u=this.storyFromCSFFile({storyId:o,csfFile:s});return!e.includeDocsOnly&&u.parameters.docsOnly||(n[o]=Object.entries(u).reduce((l,[f,d])=>f==="moduleExport"||typeof d=="function"?l:Array.isArray(d)?Object.assign(l,{[f]:d.slice().sort()}):Object.assign(l,{[f]:d}),{args:u.initialArgs})),n},{})}getSetStoriesPayload(){let e=this.extract({includeDocsOnly:!0}),r=Object.values(e).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.globals.get(),globalParameters:{},kindParameters:r,stories:e}}getStoriesJsonData=c(()=>{let e=this.getSetStoriesPayload(),r=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:(0,Rp.default)(e.stories,n=>{let{importPath:o}=this.storyIndex.entries[n.id];return{...(0,Ja.default)(n,["id","name","title"]),importPath:o,kind:n.title,story:n.name,parameters:{...(0,Ja.default)(n.parameters,r),fileName:o}}})}},"getStoriesJsonData");raw(){return rt("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:e})=>this.fromId(e)).filter(Boolean)}fromId(e){if(rt("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(e))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:e,csfFile:n});return{...o,storyFn:c(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:c((s,u)=>o.runStep(s,u,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};c(hs,"StoryStore");var rf=hs;function ms(t){return t.startsWith("\\\\?\\")?t:t.replace(/\\/g,"/")}c(ms,"slash");var nf=c(t=>{if(t.length===0)return t;let e=t[t.length-1],r=e?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(t.length===1)return[r];let n=t[t.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...t.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(e)||/^index$/i.test(r))?t.slice(0,-1):[...t.slice(0,-1),r]},"sanitize");function Dn(t){return t.flatMap(e=>e.split("/")).filter(Boolean).join("/")}c(Dn,"pathJoin");var of=c((t,e,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:a=""}=e||{};typeof t=="number"&&ct.warn(qe` + CSF Auto-title received a numeric fileName. This typically happens when + webpack is mis-configured in production mode. To force webpack to produce + filenames, set optimization.moduleIds = "named" in your webpack config. + `);let i=ms(String(t));if(o.exec(i)){if(!r){let s=i.replace(n,""),u=Dn([a,s]).split("/");return u=nf(u),u.join("/")}return a?Dn([a,r]):r}},"userOrAutoTitleFromSpecifier"),_2=c((t,e,r)=>{for(let n=0;n(e,r)=>{if(e.title===r.title&&!t.includeNames)return 0;let n=t.method||"configure",o=t.order||[],a=e.title.trim().split(ti),i=r.title.trim().split(ti);t.includeNames&&(a.push(e.name),i.push(r.name));let s=0;for(;a[s]||i[s];){if(!a[s])return-1;if(!i[s])return 1;let u=a[s],l=i[s];if(u!==l){let d=o.indexOf(u),p=o.indexOf(l),g=o.indexOf("*");return d!==-1||p!==-1?(d===-1&&(g!==-1?d=g:d=o.length),p===-1&&(g!==-1?p=g:p=o.length),d-p):n==="configure"?0:u.localeCompare(l,t.locales?t.locales:void 0,{numeric:!0,sensitivity:"accent"})}let f=o.indexOf(u);f===-1&&(f=o.indexOf("*")),o=f!==-1&&Array.isArray(o[f+1])?o[f+1]:[],s+=1}return 0},"storySort"),sf=c((t,e,r)=>{if(e){let n;typeof e=="function"?n=e:n=af(e),t.sort(n)}else t.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return t},"sortStoriesCommon"),I2=c((t,e,r)=>{try{return sf(t,e,r)}catch(n){throw new Error(qe` + Error sorting stories with sort parameter ${e}: + + > ${n.message} + + Are you using a V6-style sort function in V7 mode? + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort + `)}},"sortStoriesV7"),Vr=new Error("prepareAborted"),{AbortController:ri}=globalThis;function Fn(t){try{let{name:e="Error",message:r=String(t),stack:n}=t;return{name:e,message:r,stack:n}}catch{return{name:"Error",message:String(t)}}}c(Fn,"serializeError");var ys=class{constructor(e,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},u){this.channel=e,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.abortController=new ri,u&&(this.story=u,this.phase="preparing")}type="story";story;phase;abortController;canvasElement;notYetRendered=!0;rerenderEnqueued=!1;disableKeyListeners=!1;teardownRender=c(()=>{},"teardownRender");torndown=!1;async runPhase(e,r,n){this.phase=r,this.channel.emit(nt,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted?(this.phase="aborted",this.channel.emit(nt,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Vr}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:u,tags:l,applyLoaders:f,applyBeforeEach:d,unboundStoryFn:p,playFunction:g,runStep:h}=o;r&&!e&&(this.cancelRender(),this.abortController=new ri);let v=this.abortController.signal,b=!1,m=o.usesMount;try{let y={...this.storyContext(),viewMode:this.viewMode,abortSignal:v,canvasElement:n,loaded:{},step:c((E,j)=>h(E,j,y),"step"),context:null,canvas:{},renderToCanvas:c(async()=>{let E=await this.renderToScreen(A,n);this.teardownRender=E||(()=>{}),b=!0},"renderToCanvas"),mount:c(async(...E)=>{this.callbacks.showStoryDuringRender?.();let j=null;return await this.runPhase(v,"rendering",async()=>{j=await o.mount(y)(...E)}),m&&await this.runPhase(v,"playing"),j},"mount")};y.context=y;let A={componentId:i,title:s,kind:s,id:a,name:u,story:u,tags:l,...this.callbacks,showError:c(E=>(this.phase="errored",this.callbacks.showError(E)),"showError"),showException:c(E=>(this.phase="errored",this.callbacks.showException(E)),"showException"),forceRemount:r||this.notYetRendered,storyContext:y,storyFn:c(()=>p(y),"storyFn"),unboundStoryFn:p};if(await this.runPhase(v,"loading",async()=>{y.loaded=await f(y)}),v.aborted)return;let w=await d(y);if(this.store.addCleanupCallbacks(o,w),this.checkIfAborted(v)||(!b&&!m&&await y.mount(),this.notYetRendered=!1,v.aborted))return;let C=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,I=new Set,D=c(E=>I.add("error"in E?E.error:E.reason),"onError");if(this.renderOptions.autoplay&&r&&g&&this.phase!=="errored"){window.addEventListener("error",D),window.addEventListener("unhandledrejection",D),this.disableKeyListeners=!0;try{if(m?await g(y):(y.mount=async()=>{throw new Rr({playFunction:g.toString()})},await this.runPhase(v,"playing",async()=>g(y))),!b)throw new Ma;this.checkIfAborted(v),!C&&I.size>0?await this.runPhase(v,"errored"):await this.runPhase(v,"played")}catch(E){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(v,"errored",async()=>{this.channel.emit(wr,Fn(E))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw E;console.error(E)}if(!C&&I.size>0&&this.channel.emit(Or,Array.from(I).map(Fn)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",D),window.removeEventListener("error",D),v.aborted)return}await this.runPhase(v,"completed",async()=>this.channel.emit(Qt,a))}catch(y){this.phase="errored",this.callbacks.showException(y)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};c(ys,"StoryRender");var gs=ys,{fetch:uf}=Re,lf="./index.json",bs=class{constructor(e,r,n=dt.getChannel(),o=!0){this.importFn=e,this.getProjectAnnotations=r,this.channel=n,this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}serverChannel;storyStoreValue;renderToCanvas;storyRenders=[];previewEntryError;projectAnnotationsBeforeInitialization;beforeAllCleanup;storeInitializationPromise;resolveStoreInitializationPromise;rejectStoreInitializationPromise;get storyStore(){return new Proxy({},{get:c((e,r)=>{if(this.storyStoreValue)return rt("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new Pa},"get")})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e)}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(ua,this.onStoryIndexChanged.bind(this)),this.channel.on(_r,this.onUpdateGlobals.bind(this)),this.channel.on(Ir,this.onUpdateArgs.bind(this)),this.channel.on(Qo,this.onRequestArgTypesInfo.bind(this)),this.channel.on(xr,this.onResetArgs.bind(this)),this.channel.on(Ar,this.onForceReRender.bind(this)),this.channel.on(Xt,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new Ea;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let e=await uf(lf);if(e.status===200)return e.json();throw new wa({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new rf(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Ne({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.globals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(oa,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:r})}async onUpdateGlobals({globals:e}){if(!this.storyStoreValue)throw new Ne({methodName:"onUpdateGlobals"});this.storyStoreValue.globals.update(e),await Promise.all(this.storyRenders.map(r=>r.rerender())),this.channel.emit(ta,{globals:this.storyStoreValue.globals.get(),initialGlobals:this.storyStoreValue.globals.initialGlobals})}async onUpdateArgs({storyId:e,updatedArgs:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,r),await Promise.all(this.storyRenders.filter(n=>n.id===e&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(aa,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(cn,{id:e,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(cn,{id:e,success:!1,error:n?.message})}}async onResetArgs({storyId:e,argNames:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:e,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(r=>r.id===e).map(r=>r.remount()))}renderStoryToElement(e,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new Ne({methodName:"renderStoryToElement"});let a=new gs(this.channel,this.storyStoreValue,this.renderToCanvas,n,e.id,"docs",o,e);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(e,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==e),await e?.teardown?.({viewModeChanged:r})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new Ne({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new Ne({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:r})}async extract(e){if(!this.storyStoreValue)throw new Ne({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,r){this.previewEntryError=r,Se.error(e),Se.error(r),this.channel.emit(Zo,r)}};c(bs,"Preview");var cf=bs,pf=!1,En="Invariant failed";function Fr(t,e){if(!t){if(pf)throw new Error(En);var r=typeof e=="function"?e():e,n=r?"".concat(En,": ").concat(r):En;throw new Error(n)}}c(Fr,"invariant");var vs=class{constructor(e,r,n,o){this.channel=e,this.store=r,this.renderStoryToElement=n,this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}componentStoriesValue;storyIdToCSFFile;exportToStory;exportsToCSFFile;nameToStoryId;attachedCSFFiles;primaryStory;referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(r=>{let n=e.stories[r.id];this.storyIdToCSFFile.set(n.id,e),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(e,r){let n=this.resolveModuleExport(e);if(n.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let r=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(e){let r=this.exportsToCSFFile.get(e);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(e);return n?{type:"story",story:n}:{type:"component",component:e}}resolveOf(e,r=[]){let n;if(["component","meta","story"].includes(e)){let o=e;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(e);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(qe`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}. + - Did you pass a component to the 'of' prop when the block only supports a story or a meta? + - ... or vice versa? + - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}storyIdByName=c(e=>{let r=this.nameToStoryId.get(e);if(r)return r;throw new Error(`No story found with that name: ${e}`)},"storyIdByName");componentStories=c(()=>this.componentStoriesValue,"componentStories");componentStoriesFromCSFFile=c(e=>this.store.componentStoriesFromCSFFile({csfFile:e}),"componentStoriesFromCSFFile");storyById=c(e=>{if(!e){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let r=this.storyIdToCSFFile.get(e);if(!r)throw new Error(`Called \`storyById\` for story that was never loaded: ${e}`);return this.store.storyFromCSFFile({storyId:e,csfFile:r})},"storyById");getStoryContext=c(e=>({...this.store.getStoryContext(e),loaded:{},viewMode:"docs"}),"getStoryContext");loadStory=c(e=>this.store.loadStory({storyId:e}),"loadStory")};c(vs,"DocsContext");var Es=vs,Ss=class{constructor(e,r,n,o){this.channel=e,this.store=r,this.entry=n,this.callbacks=o,this.id=n.id}type="docs";subtype="csf";id;story;rerender;teardownRender;torndown=!1;disableKeyListeners=!1;preparing=!1;csfFiles;isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Vr;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(e,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Es(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(e,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=c(async()=>{try{await i(n,o,e),this.channel.emit(Sr,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:u})=>{!u||!e||a.unmount(e)},s()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}};c(Ss,"CsfDocsRender");var ni=Ss,As=class{constructor(e,r,n,o){this.channel=e,this.store=r,this.entry=n,this.callbacks=o,this.id=n.id}type="docs";subtype="mdx";id;exports;rerender;teardownRender;torndown=!1;disableKeyListeners=!1;preparing=!1;csfFiles;isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Vr;this.csfFiles=r,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Es(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,u=c(async()=>{try{await s(n,a,e),this.channel.emit(Sr,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>u(),this.teardownRender=async({viewModeChanged:l}={})=>{!l||!e||(i.unmount(e),this.torndown=!0)},u()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}};c(As,"MdxDocsRender");var oi=As,ff=globalThis;function ws(t){let e=t.composedPath&&t.composedPath()[0]||t.target;return/input|textarea/i.test(e.tagName)||e.getAttribute("contenteditable")!==null}c(ws,"focusInInput");var xs="attached-mdx",df="unattached-mdx";function Cs({tags:t}){return t?.includes(df)||t?.includes(xs)}c(Cs,"isMdxEntry");function Pr(t){return t.type==="story"}c(Pr,"isStoryRender");function Os(t){return t.type==="docs"}c(Os,"isDocsRender");function _s(t){return Os(t)&&t.subtype==="csf"}c(_s,"isCsfDocsRender");var Is=class extends cf{constructor(e,r,n,o){super(e,r,void 0,!1),this.importFn=e,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}currentSelection;currentRender;setupListeners(){super.setupListeners(),ff.onkeydown=this.onKeydown.bind(this),this.channel.on(fn,this.onSetCurrentStory.bind(this)),this.channel.on(fa,this.onUpdateQueryParams.bind(this)),this.channel.on(ra,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Ne({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.globals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Ne({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!n){e==="*"?this.renderStoryLoadingException(e,new _a):this.renderStoryLoadingException(e,new Ra({storySpecifier:e.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(ca,this.selectionStore.selection),this.channel.emit(pn,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:r}){await super.onStoriesChanged({importFn:e,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!ws(e)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:u}=e;this.channel.emit(na,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:u}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(pn,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){super.onUpdateGlobals({globals:e}),(this.currentRender instanceof oi||this.currentRender instanceof ni)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:r}){super.onUpdateArgs({storyId:e,updatedArgs:r})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new Ne({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(p){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,p);return}let i=this.currentSelection?.storyId!==o,s=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let u;a.type==="story"?u=new gs(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):Cs(a)?u=new oi(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):u=new ni(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let l=this.currentSelection;this.currentSelection=n;let f=this.currentRender;this.currentRender=u;try{await u.prepare()}catch(p){f&&await this.teardownRender(f),p!==Vr&&this.renderStoryLoadingException(o,p);return}let d=!i&&f&&!u.isEqual(f);if(e&&Pr(u)&&(Fr(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,e)),f&&!f.torndown&&!i&&!d&&!s){this.currentRender=f,this.channel.emit(pa,o),this.view.showMain();return}if(f&&await this.teardownRender(f,{viewModeChanged:s}),l&&(i||s)&&this.channel.emit(ia,o),Pr(u)){Fr(!!u.story);let{parameters:p,initialArgs:g,argTypes:h,unmappedArgs:v}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(la,{id:o,parameters:p,initialArgs:g,argTypes:h,args:v})}else{let{parameters:p}=this.storyStoreValue.projectAnnotations;if(_s(u)||u.entry.tags?.includes(xs)){if(!u.csfFiles)throw new Ca({storyId:o});({parameters:p}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(ea,{id:o,parameters:p})}Pr(u)?(Fr(!!u.story),this.storyRenders.push(u),this.currentRender.renderToElement(this.view.prepareForStory(u.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==e),await e?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(e){return{showStoryDuringRender:c(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:c(()=>this.view.showMain(),"showMain"),showError:c(r=>this.renderError(e,r),"showError"),showException:c(r=>this.renderException(e,r),"showException")}}renderPreviewEntryError(e,r){super.renderPreviewEntryError(e,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(dn)}renderStoryLoadingException(e,r){Se.error(r),this.view.showErrorDisplay(r),this.channel.emit(dn,e)}renderException(e,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(Cr,{name:n,message:o,stack:a}),this.channel.emit(nt,{newPhase:"errored",storyId:e}),this.view.showErrorDisplay(r),Se.error(`Error rendering story '${e}':`),Se.error(r)}renderError(e,{title:r,description:n}){Se.error(`Error rendering story ${r}: ${n}`),this.channel.emit(sa,{title:r,description:n}),this.channel.emit(nt,{newPhase:"errored",storyId:e}),this.view.showErrorDisplay({message:r,stack:n})}};c(Is,"PreviewWithSelection");var hf=Is,Pn=Pe(Qn(),1),mf=Pe(Qn(),1),yf=Pe(Yn(),1),ai=/^[a-zA-Z0-9 _-]*$/,Rs=/^-?[0-9]+(\.[0-9]+)?$/,gf=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,Ts=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,jn=c((t="",e)=>t===null||t===""||!ai.test(t)?!1:e==null||e instanceof Date||typeof e=="number"||typeof e=="boolean"?!0:typeof e=="string"?ai.test(e)||Rs.test(e)||gf.test(e)||Ts.test(e):Array.isArray(e)?e.every(r=>jn(t,r)):(0,yf.default)(e)?Object.entries(e).every(([r,n])=>jn(r,n)):!1,"validateArgs"),bf={delimiter:";",allowDots:!0,allowSparse:!0,decoder(t,e,r,n){if(n==="value"&&t.startsWith("!")){if(t==="!undefined")return;if(t==="!null")return null;if(t==="!true")return!0;if(t==="!false")return!1;if(t.startsWith("!date(")&&t.endsWith(")"))return new Date(t.slice(6,-1));if(t.startsWith("!hex(")&&t.endsWith(")"))return`#${t.slice(5,-1)}`;let o=t.slice(1).match(Ts);if(o)return t.startsWith("!rgba")?`${o[1]}(${o[2]}, ${o[3]}, ${o[4]}, ${o[5]})`:t.startsWith("!hsla")?`${o[1]}(${o[2]}, ${o[3]}%, ${o[4]}%, ${o[5]})`:t.startsWith("!rgb")?`${o[1]}(${o[2]}, ${o[3]}, ${o[4]})`:`${o[1]}(${o[2]}, ${o[3]}%, ${o[4]}%)`}return n==="value"&&Rs.test(t)?Number(t):e(t,e,r)}},ii=c(t=>{let e=t.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries(mf.default.parse(e.join(";"),bf)).reduce((r,[n,o])=>jn(n,o)?Object.assign(r,{[n]:o}):(ct.warn(qe` + Omitted potentially unsafe URL args. + + More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url + `),r),{})},"parseArgsParam"),{history:Ds,document:ot}=Re;function Fs(t){let e=(t||"").match(/^\/story\/(.+)/);if(!e)throw new Error(`Invalid path '${t}', must start with '/story/'`);return e[1]}c(Fs,"pathToId");var Ps=c(({selection:t,extraParams:e})=>{let r=typeof ot<"u"?ot.location.search:"",{path:n,selectedKind:o,selectedStory:a,...i}=Pn.default.parse(r,{ignoreQueryPrefix:!0});return Pn.default.stringify({...i,...e,...t&&{id:t.storyId,viewMode:t.viewMode}},{encode:!1,addQueryPrefix:!0})},"getQueryString"),vf=c(t=>{if(!t)return;let e=Ps({selection:t}),{hash:r=""}=ot.location;ot.title=t.storyId,Ds.replaceState({},"",`${ot.location.pathname}${e}${r}`)},"setPath"),Ef=c(t=>t!=null&&typeof t=="object"&&Array.isArray(t)===!1,"isObject"),er=c(t=>{if(t!==void 0){if(typeof t=="string")return t;if(Array.isArray(t))return er(t[0]);if(Ef(t))return er(Object.values(t).filter(Boolean))}},"getFirstString"),Sf=c(()=>{if(typeof ot<"u"){let t=Pn.default.parse(ot.location.search,{ignoreQueryPrefix:!0}),e=typeof t.args=="string"?ii(t.args):void 0,r=typeof t.globals=="string"?ii(t.globals):void 0,n=er(t.viewMode);(typeof n!="string"||!n.match(/docs|story/))&&(n="story");let o=er(t.path),a=o?Fs(o):er(t.id);if(a)return{storySpecifier:a,args:e,globals:r,viewMode:n}}return null},"getSelectionSpecifierFromPath"),js=class{selectionSpecifier;selection;constructor(){this.selectionSpecifier=Sf()}setSelection(e){this.selection=e,vf(this.selection)}setQueryParams(e){let r=Ps({extraParams:e}),{hash:n=""}=ot.location;Ds.replaceState({},"",`${ot.location.pathname}${r}${n}`)}};c(js,"UrlStore");var Af=js,wf=Pe(yp(),1),xf=Pe(Qn(),1),{document:De}=Re,si=100,Bs=(t=>(t.MAIN="MAIN",t.NOPREVIEW="NOPREVIEW",t.PREPARING_STORY="PREPARING_STORY",t.PREPARING_DOCS="PREPARING_DOCS",t.ERROR="ERROR",t))(Bs||{}),Sn={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},An={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},ui=new wf.default({escapeXML:!0}),ks=class{currentLayoutClass;testing=!1;preparingTimeout;constructor(){if(typeof De<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=xf.default.parse(De.location.search,{ignoreQueryPrefix:!0});switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),De.documentElement.scrollTop=0,De.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return De.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),De.documentElement.scrollTop=0,De.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return De.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){De.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let r=An[e];De.body.classList.remove(this.currentLayoutClass),De.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(e){An[e]||Se.warn(qe` + The desired layout: ${e} is not a valid option. + The possible options are: ${Object.keys(An).join(", ")}, none. + `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(Bs).forEach(r=>{r===e?De.body.classList.add(Sn[r]):De.body.classList.remove(Sn[r])})}showErrorDisplay({message:e="",stack:r=""}){let n=e,o=r,a=e.split(` +`);a.length>1&&([n]=a,o=a.slice(1).join(` +`).replace(/^\n/,"")),De.getElementById("error-message").innerHTML=ui.toHtml(n),De.getElementById("error-stack").innerHTML=ui.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),si)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),si)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){De.body.classList.add(Sn.MAIN)}};c(ks,"WebView");var Cf=ks,Of=class extends hf{constructor(e,r){super(e,r,new Af,new Cf),this.importFn=e,this.getProjectAnnotations=r,Re.__STORYBOOK_PREVIEW__=this}};c(Of,"PreviewWeb");var{document:At}=Re,_f=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],If="script",li="scripts-root";function Bn(){let t=At.createEvent("Event");t.initEvent("DOMContentLoaded",!0,!0),At.dispatchEvent(t)}c(Bn,"simulateDOMContentLoaded");function Ns(t,e,r){let n=At.createElement("script");n.type=t.type==="module"?"module":"text/javascript",t.src?(n.onload=e,n.onerror=e,n.src=t.src):n.textContent=t.innerText,r?r.appendChild(n):At.head.appendChild(n),t.parentNode.removeChild(t),t.src||e()}c(Ns,"insertScript");function lo(t,e,r=0){t[r](()=>{r++,r===t.length?e():lo(t,e,r)})}c(lo,"insertScriptsSequentially");function Rf(t){let e=At.getElementById(li);e?e.innerHTML="":(e=At.createElement("div"),e.id=li,At.body.appendChild(e));let r=Array.from(t.querySelectorAll(If));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||_f.includes(a))&&n.push(i=>Ns(o,i,e))}),n.length&&lo(n,Bn,void 0)}else Bn()}c(Rf,"simulatePageLoad");var i0=__STORYBOOK_CLIENT_LOGGER__,{deprecate:s0,logger:u0,once:Tf,pretty:l0}=__STORYBOOK_CLIENT_LOGGER__;var sr=(()=>{let t;return typeof window<"u"?t=window:typeof globalThis<"u"?t=globalThis:typeof window<"u"?t=window:typeof self<"u"?t=self:t={},t})();var Df=Object.create,Ms=Object.defineProperty,Ff=Object.getOwnPropertyDescriptor,Ls=Object.getOwnPropertyNames,Pf=Object.getPrototypeOf,jf=Object.prototype.hasOwnProperty,Bf=(t=>typeof ke<"u"?ke:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof ke<"u"?ke:e)[r]}):t)(function(t){if(typeof ke<"u")return ke.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')}),je=(t,e)=>function(){return e||(0,t[Ls(t)[0]])((e={exports:{}}).exports,e),e.exports},kf=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ls(e))!jf.call(t,o)&&o!==r&&Ms(t,o,{get:()=>e[o],enumerable:!(n=Ff(e,o))||n.enumerable});return t},Ct=(t,e,r)=>(r=t!=null?Df(Pf(t)):{},kf(e||!t||!t.__esModule?Ms(r,"default",{value:t,enumerable:!0}):r,t)),Nf=je({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(t,e){var r=(a=0)=>i=>`\x1B[${38+a};5;${i}m`,n=(a=0)=>(i,s,u)=>`\x1B[${38+a};2;${i};${s};${u}m`;function o(){let a=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(let[s,u]of Object.entries(i)){for(let[l,f]of Object.entries(u))i[l]={open:`\x1B[${f[0]}m`,close:`\x1B[${f[1]}m`},u[l]=i[l],a.set(f[0],f[1]);Object.defineProperty(i,s,{value:u,enumerable:!1})}return Object.defineProperty(i,"codes",{value:a,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:(s,u,l)=>s===u&&u===l?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(u/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:s=>{let u=/(?[a-f\d]{6}|[a-f\d]{3})/i.exec(s.toString(16));if(!u)return[0,0,0];let{colorString:l}=u.groups;l.length===3&&(l=l.split("").map(d=>d+d).join(""));let f=Number.parseInt(l,16);return[f>>16&255,f>>8&255,f&255]},enumerable:!1},hexToAnsi256:{value:s=>i.rgbToAnsi256(...i.hexToRgb(s)),enumerable:!1}}),i}Object.defineProperty(e,"exports",{enumerable:!0,get:o})}}),Gr=je({"../../node_modules/pretty-format/build/collections.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.printIteratorEntries=r,t.printIteratorValues=n,t.printListItems=o,t.printObjectProperties=a;var e=(i,s)=>{let u=Object.keys(i),l=s!==null?u.sort(s):u;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(f=>{Object.getOwnPropertyDescriptor(i,f).enumerable&&l.push(f)}),l};function r(i,s,u,l,f,d,p=": "){let g="",h=0,v=i.next();if(!v.done){g+=s.spacingOuter;let b=u+s.indent;for(;!v.done;){if(g+=b,h++===s.maxWidth){g+="\u2026";break}let m=d(v.value[0],s,b,l,f),y=d(v.value[1],s,b,l,f);g+=m+p+y,v=i.next(),v.done?s.min||(g+=","):g+=`,${s.spacingInner}`}g+=s.spacingOuter+u}return g}function n(i,s,u,l,f,d){let p="",g=0,h=i.next();if(!h.done){p+=s.spacingOuter;let v=u+s.indent;for(;!h.done;){if(p+=v,g++===s.maxWidth){p+="\u2026";break}p+=d(h.value,s,v,l,f),h=i.next(),h.done?s.min||(p+=","):p+=`,${s.spacingInner}`}p+=s.spacingOuter+u}return p}function o(i,s,u,l,f,d){let p="";if(i.length){p+=s.spacingOuter;let g=u+s.indent;for(let h=0;h{let v=l.toString();if(v==="ArrayContaining"||v==="ArrayNotContaining")return++p>f.maxDepth?`[${v}]`:`${v+o}[${(0,e.printListItems)(l.sample,f,d,p,g,h)}]`;if(v==="ObjectContaining"||v==="ObjectNotContaining")return++p>f.maxDepth?`[${v}]`:`${v+o}{${(0,e.printObjectProperties)(l.sample,f,d,p,g,h)}}`;if(v==="StringMatching"||v==="StringNotMatching"||v==="StringContaining"||v==="StringNotContaining")return v+o+h(l.sample,f,d,p,g);if(typeof l.toAsymmetricMatcher!="function")throw new Error(`Asymmetric matcher ${l.constructor.name} does not implement toAsymmetricMatcher()`);return l.toAsymmetricMatcher()};t.serialize=a;var i=l=>l&&l.$$typeof===n;t.test=i;var s={serialize:a,test:i},u=s;t.default=u}}),Lf=je({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var e=Gr(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,a=d=>n.indexOf(d)!==-1||o.test(d),i=d=>d&&d.constructor&&!!d.constructor.name&&a(d.constructor.name);t.test=i;var s=d=>d.constructor.name==="NamedNodeMap",u=(d,p,g,h,v,b)=>{let m=d.constructor.name;return++h>p.maxDepth?`[${m}]`:(p.min?"":m+r)+(n.indexOf(m)!==-1?`{${(0,e.printObjectProperties)(s(d)?Array.from(d).reduce((y,A)=>(y[A.name]=A.value,y),{}):{...d},p,g,h,v,b)}}`:`[${(0,e.printListItems)(Array.from(d),p,g,h,v,b)}]`)};t.serialize=u;var l={serialize:u,test:i},f=l;t.default=f}}),$f=je({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(r){return r.replace(//g,">")}}}),co=je({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.printText=t.printProps=t.printElementAsLeaf=t.printElement=t.printComment=t.printChildren=void 0;var e=r($f());function r(l){return l&&l.__esModule?l:{default:l}}var n=(l,f,d,p,g,h,v)=>{let b=p+d.indent,m=d.colors;return l.map(y=>{let A=f[y],w=v(A,d,b,g,h);return typeof A!="string"&&(w.indexOf(` +`)!==-1&&(w=d.spacingOuter+b+w+d.spacingOuter+p),w=`{${w}}`),`${d.spacingInner+p+m.prop.open+y+m.prop.close}=${m.value.open}${w}${m.value.close}`}).join("")};t.printProps=n;var o=(l,f,d,p,g,h)=>l.map(v=>f.spacingOuter+d+(typeof v=="string"?a(v,f):h(v,f,d,p,g))).join("");t.printChildren=o;var a=(l,f)=>{let d=f.colors.content;return d.open+(0,e.default)(l)+d.close};t.printText=a;var i=(l,f)=>{let d=f.colors.comment;return`${d.open}${d.close}`};t.printComment=i;var s=(l,f,d,p,g)=>{let h=p.colors.tag;return`${h.open}<${l}${f&&h.close+f+p.spacingOuter+g+h.open}${d?`>${h.close}${d}${p.spacingOuter}${g}${h.open}${h.close}`};t.printElement=s;var u=(l,f)=>{let d=f.colors.tag;return`${d.open}<${l}${d.close} \u2026${d.open} />${d.close}`};t.printElementAsLeaf=u}}),zf=je({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var e=co(),r=1,n=3,o=8,a=11,i=/^((HTML|SVG)\w*)?Element$/,s=b=>{try{return typeof b.hasAttribute=="function"&&b.hasAttribute("is")}catch{return!1}},u=b=>{let m=b.constructor.name,{nodeType:y,tagName:A}=b,w=typeof A=="string"&&A.includes("-")||s(b);return y===r&&(i.test(m)||w)||y===n&&m==="Text"||y===o&&m==="Comment"||y===a&&m==="DocumentFragment"},l=b=>b?.constructor?.name&&u(b);t.test=l;function f(b){return b.nodeType===n}function d(b){return b.nodeType===o}function p(b){return b.nodeType===a}var g=(b,m,y,A,w,C)=>{if(f(b))return(0,e.printText)(b.data,m);if(d(b))return(0,e.printComment)(b.data,m);let I=p(b)?"DocumentFragment":b.tagName.toLowerCase();return++A>m.maxDepth?(0,e.printElementAsLeaf)(I,m):(0,e.printElement)(I,(0,e.printProps)(p(b)?[]:Array.from(b.attributes,D=>D.name).sort(),p(b)?{}:Array.from(b.attributes).reduce((D,E)=>(D[E.name]=E.value,D),{}),m,y+m.indent,A,w,C),(0,e.printChildren)(Array.prototype.slice.call(b.childNodes||b.children),m,y+m.indent,A,w,C),m,y)};t.serialize=g;var h={serialize:g,test:l},v=h;t.default=v}}),qf=je({"../../node_modules/pretty-format/build/plugins/Immutable.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var e=Gr(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",a="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",s="@@__IMMUTABLE_RECORD__@@",u="@@__IMMUTABLE_SEQ__@@",l="@@__IMMUTABLE_SET__@@",f="@@__IMMUTABLE_STACK__@@",d=E=>`Immutable.${E}`,p=E=>`[${E}]`,g=" ",h="\u2026",v=(E,j,z,q,G,L,_)=>++q>j.maxDepth?p(d(_)):`${d(_)+g}{${(0,e.printIteratorEntries)(E.entries(),j,z,q,G,L)}}`;function b(E){let j=0;return{next(){if(j{let _=d(E._name||"Record");return++q>j.maxDepth?p(_):`${_+g}{${(0,e.printIteratorEntries)(b(E),j,z,q,G,L)}}`},y=(E,j,z,q,G,L)=>{let _=d("Seq");return++q>j.maxDepth?p(_):E[o]?`${_+g}{${E._iter||E._object?(0,e.printIteratorEntries)(E.entries(),j,z,q,G,L):h}}`:`${_+g}[${E._iter||E._array||E._collection||E._iterable?(0,e.printIteratorValues)(E.values(),j,z,q,G,L):h}]`},A=(E,j,z,q,G,L,_)=>++q>j.maxDepth?p(d(_)):`${d(_)+g}[${(0,e.printIteratorValues)(E.values(),j,z,q,G,L)}]`,w=(E,j,z,q,G,L)=>E[a]?v(E,j,z,q,G,L,E[i]?"OrderedMap":"Map"):E[n]?A(E,j,z,q,G,L,"List"):E[l]?A(E,j,z,q,G,L,E[i]?"OrderedSet":"Set"):E[f]?A(E,j,z,q,G,L,"Stack"):E[u]?y(E,j,z,q,G,L):m(E,j,z,q,G,L);t.serialize=w;var C=E=>E&&(E[r]===!0||E[s]===!0);t.test=C;var I={serialize:w,test:C},D=I;t.default=D}}),Uf=je({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(t){(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,b=!1,m=!1,y=!1,A=!1,w;w=Symbol.for("react.module.reference");function C(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===a||A||W===o||W===f||W===d||y||W===h||v||b||m||typeof W=="object"&&W!==null&&(W.$$typeof===g||W.$$typeof===p||W.$$typeof===i||W.$$typeof===s||W.$$typeof===l||W.$$typeof===w||W.getModuleId!==void 0))}function I(W){if(typeof W=="object"&&W!==null){var ee=W.$$typeof;switch(ee){case e:var ae=W.type;switch(ae){case n:case a:case o:case f:case d:return ae;default:var _e=ae&&ae.$$typeof;switch(_e){case u:case s:case l:case g:case p:case i:return _e;default:return ee}}case r:return ee}}}var D=s,E=i,j=e,z=l,q=n,G=g,L=p,_=r,F=a,B=o,H=f,$=d,U=!1,M=!1;function V(W){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(W){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(W){return I(W)===s}function ue(W){return I(W)===i}function ne(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function le(W){return I(W)===l}function ce(W){return I(W)===n}function ye(W){return I(W)===g}function Ee(W){return I(W)===p}function T(W){return I(W)===r}function K(W){return I(W)===a}function Q(W){return I(W)===o}function re(W){return I(W)===f}function oe(W){return I(W)===d}t.ContextConsumer=D,t.ContextProvider=E,t.Element=j,t.ForwardRef=z,t.Fragment=q,t.Lazy=G,t.Memo=L,t.Portal=_,t.Profiler=F,t.StrictMode=B,t.Suspense=H,t.SuspenseList=$,t.isAsyncMode=V,t.isConcurrentMode=J,t.isContextConsumer=te,t.isContextProvider=ue,t.isElement=ne,t.isForwardRef=le,t.isFragment=ce,t.isLazy=ye,t.isMemo=Ee,t.isPortal=T,t.isProfiler=K,t.isStrictMode=Q,t.isSuspense=re,t.isSuspenseList=oe,t.isValidElementType=C,t.typeOf=I})()}}),Hf=je({"../../node_modules/pretty-format/node_modules/react-is/index.js"(t,e){e.exports=Uf()}}),Wf=je({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var e=o(Hf()),r=co();function n(p){if(typeof WeakMap!="function")return null;var g=new WeakMap,h=new WeakMap;return(n=function(v){return v?h:g})(p)}function o(p,g){if(!g&&p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var h=n(g);if(h&&h.has(p))return h.get(p);var v={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in p)if(m!=="default"&&Object.prototype.hasOwnProperty.call(p,m)){var y=b?Object.getOwnPropertyDescriptor(p,m):null;y&&(y.get||y.set)?Object.defineProperty(v,m,y):v[m]=p[m]}return v.default=p,h&&h.set(p,v),v}var a=(p,g=[])=>(Array.isArray(p)?p.forEach(h=>{a(h,g)}):p!=null&&p!==!1&&g.push(p),g),i=p=>{let g=p.type;if(typeof g=="string")return g;if(typeof g=="function")return g.displayName||g.name||"Unknown";if(e.isFragment(p))return"React.Fragment";if(e.isSuspense(p))return"React.Suspense";if(typeof g=="object"&&g!==null){if(e.isContextProvider(p))return"Context.Provider";if(e.isContextConsumer(p))return"Context.Consumer";if(e.isForwardRef(p)){if(g.displayName)return g.displayName;let h=g.render.displayName||g.render.name||"";return h!==""?`ForwardRef(${h})`:"ForwardRef"}if(e.isMemo(p)){let h=g.displayName||g.type.displayName||g.type.name||"";return h!==""?`Memo(${h})`:"Memo"}}return"UNDEFINED"},s=p=>{let{props:g}=p;return Object.keys(g).filter(h=>h!=="children"&&g[h]!==void 0).sort()},u=(p,g,h,v,b,m)=>++v>g.maxDepth?(0,r.printElementAsLeaf)(i(p),g):(0,r.printElement)(i(p),(0,r.printProps)(s(p),p.props,g,h+g.indent,v,b,m),(0,r.printChildren)(a(p.props.children),g,h+g.indent,v,b,m),g,h);t.serialize=u;var l=p=>p!=null&&e.isElement(p);t.test=l;var f={serialize:u,test:l},d=f;t.default=d}}),Vf=je({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.test=t.serialize=t.default=void 0;var e=co(),r=globalThis["jest-symbol-do-not-touch"]||globalThis.Symbol,n=typeof r=="function"&&r.for?r.for("react.test.json"):245830487,o=l=>{let{props:f}=l;return f?Object.keys(f).filter(d=>f[d]!==void 0).sort():[]},a=(l,f,d,p,g,h)=>++p>f.maxDepth?(0,e.printElementAsLeaf)(l.type,f):(0,e.printElement)(l.type,l.props?(0,e.printProps)(o(l),l.props,f,d+f.indent,p,g,h):"",l.children?(0,e.printChildren)(l.children,f,d+f.indent,p,g,h):"",f,d);t.serialize=a;var i=l=>l&&l.$$typeof===n;t.test=i;var s={serialize:a,test:i},u=s;t.default=u}}),po=je({"../../node_modules/pretty-format/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DEFAULT_OPTIONS=void 0,t.format=ce,t.plugins=void 0;var e=l(Nf()),r=Gr(),n=l(Mf()),o=l(Lf()),a=l(zf()),i=l(qf()),s=l(Wf()),u=l(Vf());function l(T){return T&&T.__esModule?T:{default:T}}var f=Object.prototype.toString,d=Date.prototype.toISOString,p=Error.prototype.toString,g=RegExp.prototype.toString,h=T=>typeof T.constructor=="function"&&T.constructor.name||"Object",v=T=>typeof window<"u"&&T===window,b=/^Symbol\((.*)\)(.*)$/,m=/\n/gi,y=class extends Error{constructor(T,K){super(T),this.stack=K,this.name=this.constructor.name}};function A(T){return T==="[object Array]"||T==="[object ArrayBuffer]"||T==="[object DataView]"||T==="[object Float32Array]"||T==="[object Float64Array]"||T==="[object Int8Array]"||T==="[object Int16Array]"||T==="[object Int32Array]"||T==="[object Uint8Array]"||T==="[object Uint8ClampedArray]"||T==="[object Uint16Array]"||T==="[object Uint32Array]"}function w(T){return Object.is(T,-0)?"-0":String(T)}function C(T){return`${T}n`}function I(T,K){return K?`[Function ${T.name||"anonymous"}]`:"[Function]"}function D(T){return String(T).replace(b,"Symbol($1)")}function E(T){return`[${p.call(T)}]`}function j(T,K,Q,re){if(T===!0||T===!1)return`${T}`;if(T===void 0)return"undefined";if(T===null)return"null";let oe=typeof T;if(oe==="number")return w(T);if(oe==="bigint")return C(T);if(oe==="string")return re?`"${T.replace(/"|\\/g,"\\$&")}"`:`"${T}"`;if(oe==="function")return I(T,K);if(oe==="symbol")return D(T);let W=f.call(T);return W==="[object WeakMap]"?"WeakMap {}":W==="[object WeakSet]"?"WeakSet {}":W==="[object Function]"||W==="[object GeneratorFunction]"?I(T,K):W==="[object Symbol]"?D(T):W==="[object Date]"?isNaN(+T)?"Date { NaN }":d.call(T):W==="[object Error]"?E(T):W==="[object RegExp]"?Q?g.call(T).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):g.call(T):T instanceof Error?E(T):null}function z(T,K,Q,re,oe,W){if(oe.indexOf(T)!==-1)return"[Circular]";oe=oe.slice(),oe.push(T);let ee=++re>K.maxDepth,ae=K.min;if(K.callToJSON&&!ee&&T.toJSON&&typeof T.toJSON=="function"&&!W)return _(T.toJSON(),K,Q,re,oe,!0);let _e=f.call(T);return _e==="[object Arguments]"?ee?"[Arguments]":`${ae?"":"Arguments "}[${(0,r.printListItems)(T,K,Q,re,oe,_)}]`:A(_e)?ee?`[${T.constructor.name}]`:`${ae||!K.printBasicPrototype&&T.constructor.name==="Array"?"":`${T.constructor.name} `}[${(0,r.printListItems)(T,K,Q,re,oe,_)}]`:_e==="[object Map]"?ee?"[Map]":`Map {${(0,r.printIteratorEntries)(T.entries(),K,Q,re,oe,_," => ")}}`:_e==="[object Set]"?ee?"[Set]":`Set {${(0,r.printIteratorValues)(T.values(),K,Q,re,oe,_)}}`:ee||v(T)?`[${h(T)}]`:`${ae||!K.printBasicPrototype&&h(T)==="Object"?"":`${h(T)} `}{${(0,r.printObjectProperties)(T,K,Q,re,oe,_)}}`}function q(T){return T.serialize!=null}function G(T,K,Q,re,oe,W){let ee;try{ee=q(T)?T.serialize(K,Q,re,oe,W,_):T.print(K,ae=>_(ae,Q,re,oe,W),ae=>{let _e=re+Q.indent;return _e+ae.replace(m,` +${_e}`)},{edgeSpacing:Q.spacingOuter,min:Q.min,spacing:Q.spacingInner},Q.colors)}catch(ae){throw new y(ae.message,ae.stack)}if(typeof ee!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ee}".`);return ee}function L(T,K){for(let Q=0;QT,$=H({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:F});t.DEFAULT_OPTIONS=$;function U(T){if(Object.keys(T).forEach(K=>{if(!Object.prototype.hasOwnProperty.call($,K))throw new Error(`pretty-format: Unknown option "${K}".`)}),T.min&&T.indent!==void 0&&T.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(T.theme!==void 0){if(T.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof T.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof T.theme}".`)}}var M=T=>B.reduce((K,Q)=>{let re=T.theme&&T.theme[Q]!==void 0?T.theme[Q]:F[Q],oe=re&&e.default[re];if(oe&&typeof oe.close=="string"&&typeof oe.open=="string")K[Q]=oe;else throw new Error(`pretty-format: Option "theme" has a key "${Q}" whose value "${re}" is undefined in ansi-styles.`);return K},Object.create(null)),V=()=>B.reduce((T,K)=>(T[K]={close:"",open:""},T),Object.create(null)),J=T=>T?.printFunctionName??$.printFunctionName,te=T=>T?.escapeRegex??$.escapeRegex,ue=T=>T?.escapeString??$.escapeString,ne=T=>({callToJSON:T?.callToJSON??$.callToJSON,colors:T?.highlight?M(T):V(),compareKeys:typeof T?.compareKeys=="function"||T?.compareKeys===null?T.compareKeys:$.compareKeys,escapeRegex:te(T),escapeString:ue(T),indent:T?.min?"":le(T?.indent??$.indent),maxDepth:T?.maxDepth??$.maxDepth,maxWidth:T?.maxWidth??$.maxWidth,min:T?.min??$.min,plugins:T?.plugins??$.plugins,printBasicPrototype:T?.printBasicPrototype??!0,printFunctionName:J(T),spacingInner:T?.min?" ":` +`,spacingOuter:T?.min?"":` +`});function le(T){return new Array(T+1).join(" ")}function ce(T,K){if(K&&(U(K),K.plugins)){let re=L(K.plugins,T);if(re!==null)return G(re,T,ne(K),"",0,[])}let Q=j(T,J(K),te(K),ue(K));return Q!==null?Q:z(T,ne(K),"",0,[])}var ye={AsymmetricMatcher:n.default,DOMCollection:o.default,DOMElement:a.default,Immutable:i.default,ReactElement:s.default,ReactTestComponent:u.default};t.plugins=ye;var Ee=ce;t.default=Ee}}),$s=je({"../../node_modules/diff-sequences/build/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var e="diff-sequences",r=0,n=(h,v,b,m,y)=>{let A=0;for(;h{let A=0;for(;h<=v&&b<=m&&y(v,m);)v-=1,m-=1,A+=1;return A},a=(h,v,b,m,y,A,w)=>{let C=0,I=-h,D=A[C],E=D;A[C]+=n(D+1,v,m+D-I+1,b,y);let j=h{let C=0,I=h,D=A[C],E=D;A[C]-=o(v,D-1,b,m+D-I-1,y);let j=h{let j=m-v,z=b-v,q=y-m-z,G=-q-(h-1),L=-q+(h-1),_=r,F=h{let j=y-b,z=b-v,q=y-m-z,G=q-h,L=q+h,_=r,F=h{let D=m-v,E=y-b,j=b-v,z=y-m,q=z-j,G=j,L=j;if(w[0]=v-1,C[0]=b,q%2===0){let _=(h||q)/2,F=(j+z)/2;for(let B=1;B<=F;B+=1)if(G=a(B,b,y,D,A,w,G),B<_)L=i(B,v,m,E,A,C,L);else if(u(B,v,b,m,y,A,w,G,C,L,I))return}else{let _=((h||q)+1)/2,F=(j+z+1)/2,B=1;for(G=a(B,b,y,D,A,w,G),B+=1;B<=F;B+=1)if(L=i(B-1,v,m,E,A,C,L),B<_)G=a(B,b,y,D,A,w,G);else if(s(B,v,b,m,y,A,w,G,C,L,I))return}throw new Error(`${e}: no overlap aStart=${v} aEnd=${b} bStart=${m} bEnd=${y}`)},f=(h,v,b,m,y,A,w,C,I,D)=>{if(y-m{ue(le,ye,ce)},isCommon:(le,ce)=>ne(ce,le)}}let J=v,te=b;v=m,b=y,m=J,y=te}let{foundSubsequence:E,isCommon:j}=w[A?1:0];l(h,v,b,m,y,j,C,I,D);let{nChangePreceding:z,aEndPreceding:q,bEndPreceding:G,nCommonPreceding:L,aCommonPreceding:_,bCommonPreceding:F,nCommonFollowing:B,aCommonFollowing:H,bCommonFollowing:$,nChangeFollowing:U,aStartFollowing:M,bStartFollowing:V}=D;v{if(typeof v!="number")throw new TypeError(`${e}: ${h} typeof ${typeof v} is not a number`);if(!Number.isSafeInteger(v))throw new RangeError(`${e}: ${h} value ${v} is not a safe integer`);if(v<0)throw new RangeError(`${e}: ${h} value ${v} is a negative integer`)},p=(h,v)=>{let b=typeof v;if(b!=="function")throw new TypeError(`${e}: ${h} typeof ${b} is not a function`)};function g(h,v,b,m){d("aLength",h),d("bLength",v),p("isCommon",b),p("foundSubsequence",m);let y=n(0,h,0,v,b);if(y!==0&&m(y,0,0),h!==y||v!==y){let A=y,w=y,C=o(A,h-1,w,v-1,b),I=h-C,D=v-C,E=y+C;h!==E&&v!==E&&f(0,A,I,w,D,!1,[{foundSubsequence:m,isCommon:b}],[r],[r],{aCommonFollowing:r,aCommonPreceding:r,aEndPreceding:r,aStartFollowing:r,bCommonFollowing:r,bCommonPreceding:r,bEndPreceding:r,bStartFollowing:r,nChangeFollowing:r,nChangePreceding:r,nCommonFollowing:r,nCommonPreceding:r}),C!==0&&m(C,I,D)}}}}),zs=je({"../../node_modules/loupe/loupe.js"(t,e){(function(r,n){typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.loupe={}))})(t,function(r){function n(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(O){return typeof O}:n=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},n(S)}function o(S,O){return a(S)||i(S,O)||s(S,O)||l()}function a(S){if(Array.isArray(S))return S}function i(S,O){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(S)))){var k=[],Y=!0,X=!1,Z=void 0;try{for(var ie=S[Symbol.iterator](),he;!(Y=(he=ie.next()).done)&&(k.push(he.value),!(O&&k.length===O));Y=!0);}catch(we){X=!0,Z=we}finally{try{!Y&&ie.return!=null&&ie.return()}finally{if(X)throw Z}}return k}}function s(S,O){if(S){if(typeof S=="string")return u(S,O);var k=Object.prototype.toString.call(S).slice(8,-1);if(k==="Object"&&S.constructor&&(k=S.constructor.name),k==="Map"||k==="Set")return Array.from(S);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return u(S,O)}}function u(S,O){(O==null||O>S.length)&&(O=S.length);for(var k=0,Y=new Array(O);k0&&arguments[0]!==void 0?arguments[0]:{},O=S.showHidden,k=O===void 0?!1:O,Y=S.depth,X=Y===void 0?2:Y,Z=S.colors,ie=Z===void 0?!1:Z,he=S.customInspect,we=he===void 0?!0:he,me=S.showProxy,Fe=me===void 0?!1:me,Ke=S.maxArrayLength,Dt=Ke===void 0?1/0:Ke,He=S.breakLength,Je=He===void 0?1/0:He,Xe=S.seen,Yt=Xe===void 0?[]:Xe,Ft=S.truncate,yr=Ft===void 0?1/0:Ft,Kt=S.stylize,Jt=Kt===void 0?String:Kt,Pt={showHidden:!!k,depth:Number(X),colors:!!ie,customInspect:!!we,showProxy:!!Fe,maxArrayLength:Number(Dt),breakLength:Number(Je),truncate:Number(yr),seen:Yt,stylize:Jt};return Pt.colors&&(Pt.stylize=g),Pt}function v(S,O){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p;S=String(S);var Y=k.length,X=S.length;return Y>O&&X>Y?k:X>O&&X>Y?"".concat(S.slice(0,O-Y)).concat(k):S}function b(S,O,k){var Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";k=k||O.inspect;var X=S.length;if(X===0)return"";for(var Z=O.truncate,ie="",he="",we="",me=0;meZ&&ie.length+we.length<=Z||!Fe&&!Ke&&Xe>Z||(he=Fe?"":k(S[me+1],O)+(Ke?"":Y),!Fe&&Ke&&Xe>Z&&Je+he.length>Z))break;if(ie+=He,!Fe&&!Ke&&Je+he.length>=Z){we="".concat(p,"(").concat(S.length-me-1,")");break}we=""}return"".concat(ie).concat(we)}function m(S){return S.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?S:JSON.stringify(S).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function y(S,O){var k=o(S,2),Y=k[0],X=k[1];return O.truncate-=2,typeof Y=="string"?Y=m(Y):typeof Y!="number"&&(Y="[".concat(O.inspect(Y,O),"]")),O.truncate-=Y.length,X=O.inspect(X,O),"".concat(Y,": ").concat(X)}function A(S,O){var k=Object.keys(S).slice(S.length);if(!S.length&&!k.length)return"[]";O.truncate-=4;var Y=b(S,O);O.truncate-=Y.length;var X="";return k.length&&(X=b(k.map(function(Z){return[Z,S[Z]]}),O,y)),"[ ".concat(Y).concat(X?", ".concat(X):""," ]")}var w=Function.prototype.toString,C=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,I=512;function D(S){if(typeof S!="function")return null;var O="";if(typeof Function.prototype.name>"u"&&typeof S.name>"u"){var k=w.call(S);if(k.indexOf("(")>I)return O;var Y=k.match(C);Y&&(O=Y[1])}else O=S.name;return O}var E=D,j=function(S){return typeof Buffer=="function"&&S instanceof Buffer?"Buffer":S[Symbol.toStringTag]?S[Symbol.toStringTag]:E(S.constructor)};function z(S,O){var k=j(S);O.truncate-=k.length+4;var Y=Object.keys(S).slice(S.length);if(!S.length&&!Y.length)return"".concat(k,"[]");for(var X="",Z=0;Z ").concat(X)}function _(S){var O=[];return S.forEach(function(k,Y){O.push([Y,k])}),O}function F(S,O){var k=S.size-1;return k<=0?"Map{}":(O.truncate-=7,"Map{ ".concat(b(_(S),O,L)," }"))}var B=Number.isNaN||function(S){return S!==S};function H(S,O){return B(S)?O.stylize("NaN","number"):S===1/0?O.stylize("Infinity","number"):S===-1/0?O.stylize("-Infinity","number"):S===0?O.stylize(1/S===1/0?"+0":"-0","number"):O.stylize(v(S,O.truncate),"number")}function $(S,O){var k=v(S.toString(),O.truncate-1);return k!==p&&(k+="n"),O.stylize(k,"bigint")}function U(S,O){var k=S.toString().split("/")[2],Y=O.truncate-(2+k.length),X=S.source;return O.stylize("/".concat(v(X,Y),"/").concat(k),"regexp")}function M(S){var O=[];return S.forEach(function(k){O.push(k)}),O}function V(S,O){return S.size===0?"Set{}":(O.truncate-=7,"Set{ ".concat(b(M(S),O)," }"))}var J=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),te={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},ue=16,ne=4;function le(S){return te[S]||"\\u".concat("0000".concat(S.charCodeAt(0).toString(ue)).slice(-ne))}function ce(S,O){return J.test(S)&&(S=S.replace(J,le)),O.stylize("'".concat(v(S,O.truncate-2),"'"),"string")}function ye(S){return"description"in Symbol.prototype?S.description?"Symbol(".concat(S.description,")"):"Symbol()":S.toString()}var Ee=function(){return"Promise{\u2026}"};try{var T=process.binding("util"),K=T.getPromiseDetails,Q=T.kPending,re=T.kRejected;Array.isArray(K(Promise.resolve()))&&(Ee=function(S,O){var k=K(S),Y=o(k,2),X=Y[0],Z=Y[1];return X===Q?"Promise{}":"Promise".concat(X===re?"!":"","{").concat(O.inspect(Z,O),"}")})}catch{}var oe=Ee;function W(S,O){var k=Object.getOwnPropertyNames(S),Y=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S):[];if(k.length===0&&Y.length===0)return"{}";if(O.truncate-=4,O.seen=O.seen||[],O.seen.indexOf(S)>=0)return"[Circular]";O.seen.push(S);var X=b(k.map(function(he){return[he,S[he]]}),O,y),Z=b(Y.map(function(he){return[he,S[he]]}),O,y);O.seen.pop();var ie="";return X&&Z&&(ie=", "),"{ ".concat(X).concat(ie).concat(Z," }")}var ee=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ae(S,O){var k="";return ee&&ee in S&&(k=S[ee]),k=k||E(S.constructor),(!k||k==="_class")&&(k=""),O.truncate-=k.length,"".concat(k).concat(W(S,O))}function _e(S,O){return S.length===0?"Arguments[]":(O.truncate-=13,"Arguments[ ".concat(b(S,O)," ]"))}var bt=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function It(S,O){var k=Object.getOwnPropertyNames(S).filter(function(ie){return bt.indexOf(ie)===-1}),Y=S.name;O.truncate-=Y.length;var X="";typeof S.message=="string"?X=v(S.message,O.truncate):k.unshift("message"),X=X?": ".concat(X):"",O.truncate-=X.length+5;var Z=b(k.map(function(ie){return[ie,S[ie]]}),O,y);return"".concat(Y).concat(X).concat(Z?" { ".concat(Z," }"):"")}function dr(S,O){var k=o(S,2),Y=k[0],X=k[1];return O.truncate-=3,X?"".concat(O.stylize(Y,"yellow"),"=").concat(O.stylize('"'.concat(X,'"'),"string")):"".concat(O.stylize(Y,"yellow"))}function Rt(S,O){return b(S,O,Wt,` +`)}function Wt(S,O){var k=S.getAttributeNames(),Y=S.tagName.toLowerCase(),X=O.stylize("<".concat(Y),"special"),Z=O.stylize(">","special"),ie=O.stylize(""),"special");O.truncate-=Y.length*2+5;var he="";k.length>0&&(he+=" ",he+=b(k.map(function(Fe){return[Fe,S.getAttribute(Fe)]}),O,dr," ")),O.truncate-=he.length;var we=O.truncate,me=Rt(S.children,O);return me&&me.length>we&&(me="".concat(p,"(").concat(S.children.length,")")),"".concat(X).concat(he).concat(Z).concat(me).concat(ie)}var hr=typeof Symbol=="function"&&typeof Symbol.for=="function",vt=hr?Symbol.for("chai/inspect"):"@@chai/inspect",Ge=!1;try{var Vt=Bf("util");Ge=Vt.inspect?Vt.inspect.custom:!1}catch{Ge=!1}function et(){this.key="chai/loupe__"+Math.random()+Date.now()}et.prototype={get:function(S){return S[this.key]},has:function(S){return this.key in S},set:function(S,O){Object.isExtensible(S)&&Object.defineProperty(S,this.key,{value:O,configurable:!0})}};var tt=new(typeof WeakMap=="function"?WeakMap:et),ut={},Gt={undefined:function(S,O){return O.stylize("undefined","undefined")},null:function(S,O){return O.stylize(null,"null")},boolean:function(S,O){return O.stylize(S,"boolean")},Boolean:function(S,O){return O.stylize(S,"boolean")},number:H,Number:H,bigint:$,BigInt:$,string:ce,String:ce,function:G,Function:G,symbol:ye,Symbol:ye,Array:A,Date:q,Map:F,Set:V,RegExp:U,Promise:oe,WeakSet:function(S,O){return O.stylize("WeakSet{\u2026}","special")},WeakMap:function(S,O){return O.stylize("WeakMap{\u2026}","special")},Arguments:_e,Int8Array:z,Uint8Array:z,Uint8ClampedArray:z,Int16Array:z,Uint16Array:z,Int32Array:z,Uint32Array:z,Float32Array:z,Float64Array:z,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:It,HTMLCollection:Rt,NodeList:Rt},mr=function(S,O,k){return vt in S&&typeof S[vt]=="function"?S[vt](O):Ge&&Ge in S&&typeof S[Ge]=="function"?S[Ge](O.depth,O):"inspect"in S&&typeof S.inspect=="function"?S.inspect(O.depth,O):"constructor"in S&&tt.has(S.constructor)?tt.get(S.constructor)(S,O):ut[k]?ut[k](S,O):""},Tt=Object.prototype.toString;function Ye(S,O){O=h(O),O.inspect=Ye;var k=O,Y=k.customInspect,X=S===null?"null":n(S);if(X==="object"&&(X=Tt.call(S).slice(8,-1)),Gt[X])return Gt[X](S,O);if(Y&&S){var Z=mr(S,O,X);if(Z)return typeof Z=="string"?Z:Ye(Z,O)}var ie=S?Object.getPrototypeOf(S):!1;return ie===Object.prototype||ie===null?W(S,O):S&&typeof HTMLElement=="function"&&S instanceof HTMLElement?Wt(S,O):"constructor"in S?S.constructor!==Object?ae(S,O):W(S,O):S===Object(S)?W(S,O):O.stylize(String(S),X)}function P(S,O){return tt.has(S)?!1:(tt.set(S,O),!0)}function N(S,O){return S in ut?!1:(ut[S]=O,!0)}var pe=vt;r.custom=pe,r.default=Ye,r.inspect=Ye,r.registerConstructor=P,r.registerStringTag=N,Object.defineProperty(r,"__esModule",{value:!0})})}}),Gf=Ct(po(),1),_0=Ct($s(),1),I0=Symbol("vitest:SAFE_COLORS"),Yf={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},Kf=Object.entries(Yf);function fo(t){return String(t)}fo.open="";fo.close="";var R0=Kf.reduce((t,[e])=>(t[e]=fo,t),{isColorSupported:!1});var{AsymmetricMatcher:T0,DOMCollection:D0,DOMElement:F0,Immutable:P0,ReactElement:j0,ReactTestComponent:B0}=Gf.plugins;var Jf=Ct(po(),1),k0=Ct(zs(),1),{AsymmetricMatcher:N0,DOMCollection:M0,DOMElement:L0,Immutable:$0,ReactElement:z0,ReactTestComponent:q0}=Jf.plugins;Ct(po(),1);Ct($s(),1);Ct(zs(),1);var U0=Object.getPrototypeOf({});var de=(t=>(t.DONE="done",t.ERROR="error",t.ACTIVE="active",t.WAITING="waiting",t))(de||{}),ht={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"};var H0=new Error("This function ran after the play function completed. Did you forget to `await` it?");var X0=__STORYBOOK_THEMING__,{CacheProvider:Q0,ClassNames:Z0,Global:e1,ThemeProvider:t1,background:r1,color:n1,convert:o1,create:a1,createCache:i1,createGlobal:s1,createReset:u1,css:l1,darken:c1,ensure:p1,ignoreSsrWarning:f1,isPropValid:d1,jsx:h1,keyframes:m1,lighten:y1,styled:fe,themes:g1,typography:st,useTheme:ur,withTheme:b1}=__STORYBOOK_THEMING__;function Be(){return Be=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0&&o<1?(s=a,u=i):o>=1&&o<2?(s=i,u=a):o>=2&&o<3?(u=a,l=i):o>=3&&o<4?(u=i,l=a):o>=4&&o<5?(s=i,l=a):o>=5&&o<6&&(s=a,l=i);var f=r-a/2,d=s+f,p=u+f,g=l+f;return n(d,p,g)}var Ys={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ed(t){if(typeof t!="string")return t;var e=t.toLowerCase();return Ys[e]?"#"+Ys[e]:t}var td=/^#[a-fA-F0-9]{6}$/,rd=/^#[a-fA-F0-9]{8}$/,nd=/^#[a-fA-F0-9]{3}$/,od=/^#[a-fA-F0-9]{4}$/,yo=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ad=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,id=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,sd=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function qt(t){if(typeof t!="string")throw new Me(3);var e=ed(t);if(e.match(td))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(rd)){var r=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:r}}if(e.match(nd))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(od)){var n=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:n}}var o=yo.exec(e);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=ad.exec(e.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=id.exec(e);if(i){var s=parseInt(""+i[1],10),u=parseInt(""+i[2],10)/100,l=parseInt(""+i[3],10)/100,f="rgb("+lr(s,u,l)+")",d=yo.exec(f);if(!d)throw new Me(4,e,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var p=sd.exec(e.substring(0,50));if(p){var g=parseInt(""+p[1],10),h=parseInt(""+p[2],10)/100,v=parseInt(""+p[3],10)/100,b="rgb("+lr(g,h,v)+")",m=yo.exec(b);if(!m)throw new Me(4,e,b);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new Me(5)}function ud(t){var e=t.red/255,r=t.green/255,n=t.blue/255,o=Math.max(e,r,n),a=Math.min(e,r,n),i=(o+a)/2;if(o===a)return t.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:t.alpha}:{hue:0,saturation:0,lightness:i};var s,u=o-a,l=i>.5?u/(2-o-a):u/(o+a);switch(o){case e:s=(r-n)/u+(r=1?Jr(t,e,r):"rgba("+lr(t,e,r)+","+n+")";if(typeof t=="object"&&e===void 0&&r===void 0&&n===void 0)return t.alpha>=1?Jr(t.hue,t.saturation,t.lightness):"rgba("+lr(t.hue,t.saturation,t.lightness)+","+t.alpha+")";throw new Me(2)}function vo(t,e,r){if(typeof t=="number"&&typeof e=="number"&&typeof r=="number")return bo("#"+Ot(t)+Ot(e)+Ot(r));if(typeof t=="object"&&e===void 0&&r===void 0)return bo("#"+Ot(t.red)+Ot(t.green)+Ot(t.blue));throw new Me(6)}function Xr(t,e,r,n){if(typeof t=="string"&&typeof e=="number"){var o=qt(t);return"rgba("+o.red+","+o.green+","+o.blue+","+e+")"}else{if(typeof t=="number"&&typeof e=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?vo(t,e,r):"rgba("+t+","+e+","+r+","+n+")";if(typeof t=="object"&&e===void 0&&r===void 0&&n===void 0)return t.alpha>=1?vo(t.red,t.green,t.blue):"rgba("+t.red+","+t.green+","+t.blue+","+t.alpha+")"}throw new Me(7)}var dd=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},hd=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},md=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},yd=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function gt(t){if(typeof t!="object")throw new Me(8);if(hd(t))return Xr(t);if(dd(t))return vo(t);if(yd(t))return fd(t);if(md(t))return pd(t);throw new Me(8)}function Js(t,e,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=e?t.apply(this,o):Js(t,e,o)}}function ze(t){return Js(t,t.length,[])}function gd(t,e){if(e==="transparent")return e;var r=yt(e);return gt(Be({},r,{hue:r.hue+parseFloat(t)}))}var xv=ze(gd);function Ut(t,e,r){return Math.max(t,Math.min(e,r))}function bd(t,e){if(e==="transparent")return e;var r=yt(e);return gt(Be({},r,{lightness:Ut(0,1,r.lightness-parseFloat(t))}))}var Cv=ze(bd);function vd(t,e){if(e==="transparent")return e;var r=yt(e);return gt(Be({},r,{saturation:Ut(0,1,r.saturation-parseFloat(t))}))}var Ov=ze(vd);function Ed(t,e){if(e==="transparent")return e;var r=yt(e);return gt(Be({},r,{lightness:Ut(0,1,r.lightness+parseFloat(t))}))}var _v=ze(Ed);function Sd(t,e,r){if(e==="transparent")return r;if(r==="transparent")return e;if(t===0)return r;var n=qt(e),o=Be({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=qt(r),i=Be({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),s=o.alpha-i.alpha,u=parseFloat(t)*2-1,l=u*s===-1?u:u+s,f=1+u*s,d=(l/f+1)/2,p=1-d,g={red:Math.floor(o.red*d+i.red*p),green:Math.floor(o.green*d+i.green*p),blue:Math.floor(o.blue*d+i.blue*p),alpha:o.alpha*parseFloat(t)+i.alpha*(1-parseFloat(t))};return Xr(g)}var Ad=ze(Sd),Xs=Ad;function wd(t,e){if(e==="transparent")return e;var r=qt(e),n=typeof r.alpha=="number"?r.alpha:1,o=Be({},r,{alpha:Ut(0,1,(n*100+parseFloat(t)*100)/100)});return Xr(o)}var Iv=ze(wd);function xd(t,e){if(e==="transparent")return e;var r=yt(e);return gt(Be({},r,{saturation:Ut(0,1,r.saturation+parseFloat(t))}))}var Rv=ze(xd);function Cd(t,e){return e==="transparent"?e:gt(Be({},yt(e),{hue:parseFloat(t)}))}var Tv=ze(Cd);function Od(t,e){return e==="transparent"?e:gt(Be({},yt(e),{lightness:parseFloat(t)}))}var Dv=ze(Od);function _d(t,e){return e==="transparent"?e:gt(Be({},yt(e),{saturation:parseFloat(t)}))}var Fv=ze(_d);function Id(t,e){return e==="transparent"?e:Xs(parseFloat(t),"rgb(0, 0, 0)",e)}var Pv=ze(Id);function Rd(t,e){return e==="transparent"?e:Xs(parseFloat(t),"rgb(255, 255, 255)",e)}var jv=ze(Rd);function Td(t,e){if(e==="transparent")return e;var r=qt(e),n=typeof r.alpha=="number"?r.alpha:1,o=Be({},r,{alpha:Ut(0,1,+(n*100-parseFloat(t)*100).toFixed(2)/100)});return Xr(o)}var Dd=ze(Td),Qr=Dd;var Lv=__STORYBOOK_ICONS__,{AccessibilityAltIcon:$v,AccessibilityIcon:zv,AddIcon:qv,AdminIcon:Uv,AlertAltIcon:Hv,AlertIcon:Wv,AlignLeftIcon:Vv,AlignRightIcon:Gv,AppleIcon:Yv,ArrowDownIcon:Kv,ArrowLeftIcon:Jv,ArrowRightIcon:Xv,ArrowSolidDownIcon:Qv,ArrowSolidLeftIcon:Zv,ArrowSolidRightIcon:eE,ArrowSolidUpIcon:tE,ArrowUpIcon:rE,AzureDevOpsIcon:nE,BackIcon:oE,BasketIcon:aE,BatchAcceptIcon:iE,BatchDenyIcon:sE,BeakerIcon:uE,BellIcon:lE,BitbucketIcon:cE,BoldIcon:pE,BookIcon:fE,BookmarkHollowIcon:dE,BookmarkIcon:hE,BottomBarIcon:mE,BottomBarToggleIcon:yE,BoxIcon:gE,BranchIcon:bE,BrowserIcon:vE,ButtonIcon:EE,CPUIcon:SE,CalendarIcon:AE,CameraIcon:wE,CategoryIcon:xE,CertificateIcon:CE,ChangedIcon:OE,ChatIcon:_E,CheckIcon:Qs,ChevronDownIcon:IE,ChevronLeftIcon:RE,ChevronRightIcon:TE,ChevronSmallDownIcon:DE,ChevronSmallLeftIcon:FE,ChevronSmallRightIcon:PE,ChevronSmallUpIcon:jE,ChevronUpIcon:BE,ChromaticIcon:kE,ChromeIcon:NE,CircleHollowIcon:ME,CircleIcon:Zs,ClearIcon:LE,CloseAltIcon:$E,CloseIcon:zE,CloudHollowIcon:qE,CloudIcon:UE,CogIcon:HE,CollapseIcon:WE,CommandIcon:VE,CommentAddIcon:GE,CommentIcon:YE,CommentsIcon:KE,CommitIcon:JE,CompassIcon:XE,ComponentDrivenIcon:QE,ComponentIcon:ZE,ContrastIcon:eS,ControlsIcon:tS,CopyIcon:rS,CreditIcon:nS,CrossIcon:oS,DashboardIcon:aS,DatabaseIcon:iS,DeleteIcon:sS,DiamondIcon:uS,DirectionIcon:lS,DiscordIcon:cS,DocChartIcon:pS,DocListIcon:fS,DocumentIcon:eu,DownloadIcon:dS,DragIcon:hS,EditIcon:mS,EllipsisIcon:yS,EmailIcon:gS,ExpandAltIcon:bS,ExpandIcon:vS,EyeCloseIcon:ES,EyeIcon:SS,FaceHappyIcon:AS,FaceNeutralIcon:wS,FaceSadIcon:xS,FacebookIcon:CS,FailedIcon:OS,FastForwardIcon:tu,FigmaIcon:_S,FilterIcon:IS,FlagIcon:RS,FolderIcon:TS,FormIcon:DS,GDriveIcon:FS,GithubIcon:PS,GitlabIcon:jS,GlobeIcon:BS,GoogleIcon:kS,GraphBarIcon:NS,GraphLineIcon:MS,GraphqlIcon:LS,GridAltIcon:$S,GridIcon:zS,GrowIcon:qS,HeartHollowIcon:US,HeartIcon:HS,HomeIcon:WS,HourglassIcon:VS,InfoIcon:GS,ItalicIcon:YS,JumpToIcon:KS,KeyIcon:JS,LightningIcon:XS,LightningOffIcon:QS,LinkBrokenIcon:ZS,LinkIcon:eA,LinkedinIcon:tA,LinuxIcon:rA,ListOrderedIcon:nA,ListUnorderedIcon:ru,LocationIcon:oA,LockIcon:aA,MarkdownIcon:iA,MarkupIcon:sA,MediumIcon:uA,MemoryIcon:lA,MenuIcon:cA,MergeIcon:pA,MirrorIcon:fA,MobileIcon:dA,MoonIcon:hA,NutIcon:mA,OutboxIcon:yA,OutlineIcon:gA,PaintBrushIcon:bA,PaperClipIcon:vA,ParagraphIcon:EA,PassedIcon:SA,PhoneIcon:AA,PhotoDragIcon:wA,PhotoIcon:xA,PinAltIcon:CA,PinIcon:OA,PlayBackIcon:nu,PlayIcon:ou,PlayNextIcon:au,PlusIcon:_A,PointerDefaultIcon:IA,PointerHandIcon:RA,PowerIcon:TA,PrintIcon:DA,ProceedIcon:FA,ProfileIcon:PA,PullRequestIcon:jA,QuestionIcon:BA,RSSIcon:kA,RedirectIcon:NA,ReduxIcon:MA,RefreshIcon:LA,ReplyIcon:$A,RepoIcon:zA,RequestChangeIcon:qA,RewindIcon:iu,RulerIcon:UA,SearchIcon:HA,ShareAltIcon:WA,ShareIcon:VA,ShieldIcon:GA,SideBySideIcon:YA,SidebarAltIcon:KA,SidebarAltToggleIcon:JA,SidebarIcon:XA,SidebarToggleIcon:QA,SpeakerIcon:ZA,StackedIcon:ew,StarHollowIcon:tw,StarIcon:rw,StickerIcon:nw,StopAltIcon:su,StopIcon:ow,StorybookIcon:aw,StructureIcon:iw,SubtractIcon:sw,SunIcon:uw,SupportIcon:lw,SwitchAltIcon:cw,SyncIcon:uu,TabletIcon:pw,ThumbsUpIcon:fw,TimeIcon:dw,TimerIcon:hw,TransferIcon:mw,TrashIcon:yw,TwitterIcon:gw,TypeIcon:bw,UbuntuIcon:vw,UndoIcon:Ew,UnfoldIcon:Sw,UnlockIcon:Aw,UnpinIcon:ww,UploadIcon:xw,UserAddIcon:Cw,UserAltIcon:Ow,UserIcon:_w,UsersIcon:Iw,VSCodeIcon:Rw,VerifiedIcon:Tw,VideoIcon:lu,WandIcon:Dw,WatchIcon:Fw,WindowsIcon:Pw,WrenchIcon:jw,YoutubeIcon:Bw,ZoomIcon:kw,ZoomOutIcon:Nw,ZoomResetIcon:Mw,iconList:Lw}=__STORYBOOK_ICONS__;var Fd=Object.create,Au=Object.defineProperty,Pd=Object.getOwnPropertyDescriptor,wu=Object.getOwnPropertyNames,jd=Object.getPrototypeOf,Bd=Object.prototype.hasOwnProperty,Ue=(t,e)=>function(){return e||(0,t[wu(t)[0]])((e={exports:{}}).exports,e),e.exports},kd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of wu(e))!Bd.call(t,o)&&o!==r&&Au(t,o,{get:()=>e[o],enumerable:!(n=Pd(e,o))||n.enumerable});return t},Ve=(t,e,r)=>(r=t!=null?Fd(jd(t)):{},kd(e||!t||!t.__esModule?Au(r,"default",{value:t,enumerable:!0}):r,t)),Ro=Ue({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/extends.js"(t,e){function r(){return e.exports=r=Object.assign||function(n){for(var o=1;o=0)&&(a[s]=n[s]);return a}e.exports=r}}),To=Ue({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(t,e){var r=Nd();function n(o,a){if(o==null)return{};var i=r(o,a),s,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(i[s]=o[s])}return i}e.exports=n}}),Md=Ue({"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/defineProperty.js"(t,e){function r(n,o,a){return o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}e.exports=r}}),Ld=Ue({"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectSpread2.js"(t,e){var r=Md();function n(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);i&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,u)}return s}function o(a){for(var i=1;i=0)&&(a[s]=n[s]);return a}e.exports=r}}),zd=Ue({"../../node_modules/@devtools-ds/themes/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(t,e){var r=$d();function n(o,a){if(o==null)return{};var i=r(o,a),s,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(i[s]=o[s])}return i}e.exports=n}}),qd=Ue({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/defineProperty.js"(t,e){function r(n,o,a){return o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}e.exports=r}}),Ud=Ue({"../../node_modules/@devtools-ds/object-inspector/node_modules/@babel/runtime/helpers/objectSpread2.js"(t,e){var r=qd();function n(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(a);i&&(u=u.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,u)}return s}function o(a){for(var i=1;i=0)&&(a[s]=n[s]);return a}e.exports=r}}),Vd=Ue({"../../node_modules/@devtools-ds/tree/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"(t,e){var r=Wd();function n(o,a){if(o==null)return{};var i=r(o,a),s,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(i[s]=o[s])}return i}e.exports=n}}),en="storybook/interactions",Gd=`${en}/panel`,Yd="https://youtu.be/Waht9qq7AoA",Kd="writing-tests/interaction-testing",Jd=fe.div(({theme:t,status:e})=>({padding:"4px 6px 4px 8px;",borderRadius:"4px",backgroundColor:{[de.DONE]:t.color.positive,[de.ERROR]:t.color.negative,[de.ACTIVE]:t.color.warning,[de.WAITING]:t.color.warning}[e],color:"white",fontFamily:st.fonts.base,textTransform:"uppercase",fontSize:st.size.s1,letterSpacing:3,fontWeight:st.weight.bold,width:65,textAlign:"center"})),Xd=({status:t})=>{let e={[de.DONE]:"Pass",[de.ERROR]:"Fail",[de.ACTIVE]:"Runs",[de.WAITING]:"Runs"}[t];return x.createElement(Jd,{"aria-label":"Status of the test run",status:t},e)},Qd=fe.div(({theme:t})=>({background:t.background.app,borderBottom:`1px solid ${t.appBorderColor}`,position:"sticky",top:0,zIndex:1})),Zd=fe.nav(({theme:t})=>({height:40,display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:15})),eh=fe(Vo)(({theme:t})=>({borderRadius:4,padding:6,color:t.textMutedColor,"&:not(:disabled)":{"&:hover,&:focus-visible":{color:t.color.secondary}}})),cr=fe(ln)(({theme:t})=>({fontFamily:t.typography.fonts.base})),pr=fe(sn)(({theme:t})=>({color:t.textMutedColor,margin:"0 3px"})),th=fe(Ko)({marginTop:0}),rh=fe(Yo)(({theme:t})=>({color:t.textMutedColor,justifyContent:"flex-end",textAlign:"right",whiteSpace:"nowrap",marginTop:"auto",marginBottom:1,paddingRight:15,fontSize:13})),cu=fe.div({display:"flex",alignItems:"center"}),nh=fe(pr)({marginLeft:9}),oh=fe(eh)({marginLeft:9,marginRight:9,marginBottom:1,lineHeight:"12px"}),ah=fe(pr)(({theme:t,animating:e,disabled:r})=>({opacity:r?.5:1,svg:{animation:e&&`${t.animation.rotate360} 200ms ease-out`}})),ih=({controls:t,controlStates:e,status:r,storyFileName:n,onScrollToEnd:o})=>{let a=r===de.ERROR?"Scroll to error":"Scroll to end";return x.createElement(Qd,null,x.createElement(Wo,null,x.createElement(Zd,null,x.createElement(cu,null,x.createElement(Xd,{status:r}),x.createElement(oh,{onClick:o,disabled:!o},a),x.createElement(th,null),x.createElement(Et,{trigger:"hover",hasChrome:!1,tooltip:x.createElement(cr,{note:"Go to start"})},x.createElement(nh,{"aria-label":"Go to start",onClick:t.start,disabled:!e.start},x.createElement(iu,null))),x.createElement(Et,{trigger:"hover",hasChrome:!1,tooltip:x.createElement(cr,{note:"Go back"})},x.createElement(pr,{"aria-label":"Go back",onClick:t.back,disabled:!e.back},x.createElement(nu,null))),x.createElement(Et,{trigger:"hover",hasChrome:!1,tooltip:x.createElement(cr,{note:"Go forward"})},x.createElement(pr,{"aria-label":"Go forward",onClick:t.next,disabled:!e.next},x.createElement(au,null))),x.createElement(Et,{trigger:"hover",hasChrome:!1,tooltip:x.createElement(cr,{note:"Go to end"})},x.createElement(pr,{"aria-label":"Go to end",onClick:t.end,disabled:!e.end},x.createElement(tu,null))),x.createElement(Et,{trigger:"hover",hasChrome:!1,tooltip:x.createElement(cr,{note:"Rerun"})},x.createElement(ah,{"aria-label":"Rerun",onClick:t.rerun},x.createElement(uu,null)))),n&&x.createElement(cu,null,x.createElement(rh,null,n)))))},sh=Ve(Ro()),uh=Ve(To());function _o(t){var e,r,n="";if(t)if(typeof t=="object")if(Array.isArray(t))for(e=0;eArray.isArray(t)||ArrayBuffer.isView(t)&&!(t instanceof DataView),xu=t=>t!==null&&typeof t=="object"&&!Do(t)&&!(t instanceof Date)&&!(t instanceof RegExp)&&!(t instanceof Error)&&!(t instanceof WeakMap)&&!(t instanceof WeakSet),lh=t=>xu(t)||Do(t)||typeof t=="function"||t instanceof Promise,Cu=t=>{let e=/unique/;return Promise.race([t,e]).then(r=>r===e?["pending"]:["fulfilled",r],r=>["rejected",r])},Qe=async(t,e,r,n,o,a)=>{let i={key:t,depth:r,value:e,type:"value",parent:void 0};if(e&&lh(e)&&r<100){let s=[],u="object";if(Do(e)){for(let l=0;l{let f=await Qe(l.toString(),e[l],r+1,n);return f.parent=i,f});u="array"}else{let l=Object.getOwnPropertyNames(e);n&&l.sort();for(let f=0;f{let p=await Qe(l[f],d,r+1,n);return p.parent=i,p})}if(typeof e=="function"&&(u="function"),e instanceof Promise){let[f,d]=await Cu(e);s.push(async()=>{let p=await Qe("",f,r+1,n);return p.parent=i,p}),f!=="pending"&&s.push(async()=>{let p=await Qe("",d,r+1,n);return p.parent=i,p}),u="promise"}if(e instanceof Map){let f=Array.from(e.entries()).map(d=>{let[p,g]=d;return{"":p,"":g}});s.push(async()=>{let d=await Qe("",f,r+1,n);return d.parent=i,d}),s.push(async()=>{let d=await Qe("size",e.size,r+1,n);return d.parent=i,d}),u="map"}if(e instanceof Set){let f=Array.from(e.entries()).map(d=>d[1]);s.push(async()=>{let d=await Qe("",f,r+1,n);return d.parent=i,d}),s.push(async()=>{let d=await Qe("size",e.size,r+1,n);return d.parent=i,d}),u="set"}}e!==Object.prototype&&a&&s.push(async()=>{let l=await Qe("",Object.getPrototypeOf(e),r+1,n,!0);return l.parent=i,l}),i.type=u,i.children=s,i.isPrototype=o}return i},ch=(t,e,r)=>Qe("root",t,0,e===!1?e:!0,void 0,r===!1?r:!0),pu=Ve(Ld()),ph=Ve(zd()),fh=["children"],Io=x.createContext({theme:"chrome",colorScheme:"light"}),dh=t=>{let{children:e}=t,r=(0,ph.default)(t,fh),n=x.useContext(Io);return x.createElement(Io.Provider,{value:(0,pu.default)((0,pu.default)({},n),r)},e)},tn=(t,e={})=>{let r=x.useContext(Io),n=t.theme||r.theme||"chrome",o=t.colorScheme||r.colorScheme||"light",a=Ze(e[n],e[o]);return{currentColorScheme:o,currentTheme:n,themeClass:a}},fu=Ve(Ud()),Eo=Ve(Hd()),hh=Ve(Vd()),mh=x.createContext({isChild:!1,depth:0,hasHover:!0}),So=mh,Le={tree:"Tree-tree-fbbbe38",item:"Tree-item-353d6f3",group:"Tree-group-d3c3d8a",label:"Tree-label-d819155",focusWhite:"Tree-focusWhite-f1e00c2",arrow:"Tree-arrow-03ab2e7",hover:"Tree-hover-3cc4e5d",open:"Tree-open-3f1a336",dark:"Tree-dark-1b4aa00",chrome:"Tree-chrome-bcbcac6",light:"Tree-light-09174ee"},yh=["theme","hover","colorScheme","children","label","className","onUpdate","onSelect","open"],Zr=t=>{let{theme:e,hover:r,colorScheme:n,children:o,label:a,className:i,onUpdate:s,onSelect:u,open:l}=t,f=(0,hh.default)(t,yh),{themeClass:d,currentTheme:p}=tn({theme:e,colorScheme:n},Le),[g,h]=We(l);lt(()=>{h(l)},[l]);let v=$=>{h($),s&&s($)},b=x.Children.count(o)>0,m=($,U)=>{if($.isSameNode(U||null))return;$.querySelector('[tabindex="-1"]')?.focus(),$.setAttribute("aria-selected","true"),U?.removeAttribute("aria-selected")},y=($,U)=>{let M=$;for(;M&&M.parentElement;){if(M.getAttribute("role")===U)return M;M=M.parentElement}return null},A=$=>{let U=y($,"tree");return U?Array.from(U.querySelectorAll("li")):[]},w=$=>{let U=y($,"group"),M=U?.previousElementSibling;if(M&&M.getAttribute("tabindex")==="-1"){let V=M.parentElement,J=$.parentElement;m(V,J)}},C=($,U)=>{let M=A($);M.forEach(V=>{V.removeAttribute("aria-selected")}),U==="start"&&M[0]&&m(M[0]),U==="end"&&M[M.length-1]&&m(M[M.length-1])},I=($,U)=>{let M=A($)||[];for(let V=0;V{let M=$.target;($.key==="Enter"||$.key===" ")&&v(!g),$.key==="ArrowRight"&&g&&!U?I(M,"down"):$.key==="ArrowRight"&&v(!0),$.key==="ArrowLeft"&&(!g||U)?w(M):$.key==="ArrowLeft"&&v(!1),$.key==="ArrowDown"&&I(M,"down"),$.key==="ArrowUp"&&I(M,"up"),$.key==="Home"&&C(M,"start"),$.key==="End"&&C(M,"end")},E=($,U)=>{let M=$.target,V=y(M,"treeitem"),J=A(M)||[],te=!1;for(let ue=0;ue{let U=$.currentTarget;!U.contains(document.activeElement)&&U.getAttribute("role")==="tree"&&U.setAttribute("tabindex","0")},z=$=>{let U=$.target;if(U.getAttribute("role")==="tree"){let M=U.querySelector('[aria-selected="true"]');M?m(M):I(U,"down"),U.setAttribute("tabindex","-1")}},q=()=>{u?.()},G=$=>{let U=$*.9+.3;return{paddingLeft:`${U}em`,width:`calc(100% - ${U}em)`}},{isChild:L,depth:_,hasHover:F}=x.useContext(So),B=F?r:!1;if(!L)return x.createElement("ul",(0,Eo.default)({role:"tree",tabIndex:0,className:Ze(Le.tree,Le.group,d,i),onFocus:z,onBlur:j},f),x.createElement(So.Provider,{value:{isChild:!0,depth:0,hasHover:B}},x.createElement(Zr,t)));if(!b)return x.createElement("li",(0,Eo.default)({role:"treeitem",className:Le.item},f),x.createElement("div",{role:"button",className:Ze(Le.label,{[Le.hover]:B,[Le.focusWhite]:p==="firefox"}),tabIndex:-1,style:G(_),onKeyDown:$=>{D($,L)},onClick:$=>E($,!0),onFocus:q},x.createElement("span",null,a)));let H=Ze(Le.arrow,{[Le.open]:g});return x.createElement("li",{role:"treeitem","aria-expanded":g,className:Le.item},x.createElement("div",{role:"button",tabIndex:-1,className:Ze(Le.label,{[Le.hover]:B,[Le.focusWhite]:p==="firefox"}),style:G(_),onClick:$=>E($),onKeyDown:$=>D($),onFocus:q},x.createElement("span",null,x.createElement("span",{"aria-hidden":!0,className:H}),x.createElement("span",null,a))),x.createElement("ul",(0,Eo.default)({role:"group",className:Ze(i,Le.group)},f),g&&x.Children.map(o,$=>x.createElement(So.Provider,{value:{isChild:!0,depth:_+1,hasHover:B}},$))))};Zr.defaultProps={open:!1,hover:!0};var gh=Ve(Ro()),bh=Ve(To()),Ae={"object-inspector":"ObjectInspector-object-inspector-0c33e82",objectInspector:"ObjectInspector-object-inspector-0c33e82","object-label":"ObjectInspector-object-label-b81482b",objectLabel:"ObjectInspector-object-label-b81482b",text:"ObjectInspector-text-25f57f3",key:"ObjectInspector-key-4f712bb",value:"ObjectInspector-value-f7ec2e5",string:"ObjectInspector-string-c496000",regex:"ObjectInspector-regex-59d45a3",error:"ObjectInspector-error-b818698",boolean:"ObjectInspector-boolean-2dd1642",number:"ObjectInspector-number-a6daabb",undefined:"ObjectInspector-undefined-3a68263",null:"ObjectInspector-null-74acb50",function:"ObjectInspector-function-07bbdcd","function-decorator":"ObjectInspector-function-decorator-3d22c24",functionDecorator:"ObjectInspector-function-decorator-3d22c24",prototype:"ObjectInspector-prototype-f2449ee",dark:"ObjectInspector-dark-0c96c97",chrome:"ObjectInspector-chrome-2f3ca98",light:"ObjectInspector-light-78bef54"},vh=["ast","theme","showKey","colorScheme","className"],$e=(t,e,r,n,o)=>{let a=t.includes("-")?`"${t}"`:t,i=o<=0;return x.createElement("span",{className:Ae.text},!i&&n&&x.createElement(x.Fragment,null,x.createElement("span",{className:Ae.key},a),x.createElement("span",null,":\xA0")),x.createElement("span",{className:r},e))},Ou=t=>{let{ast:e,theme:r,showKey:n,colorScheme:o,className:a}=t,i=(0,bh.default)(t,vh),{themeClass:s}=tn({theme:r,colorScheme:o},Ae),[u,l]=We(x.createElement("span",null)),f=x.createElement("span",null);return lt(()=>{e.value instanceof Promise&&(async d=>{l($e(e.key,`Promise { "${await Cu(d)}" }`,Ae.key,n,e.depth))})(e.value)},[e,n]),typeof e.value=="number"||typeof e.value=="bigint"?f=$e(e.key,String(e.value),Ae.number,n,e.depth):typeof e.value=="boolean"?f=$e(e.key,String(e.value),Ae.boolean,n,e.depth):typeof e.value=="string"?f=$e(e.key,`"${e.value}"`,Ae.string,n,e.depth):typeof e.value>"u"?f=$e(e.key,"undefined",Ae.undefined,n,e.depth):typeof e.value=="symbol"?f=$e(e.key,e.value.toString(),Ae.string,n,e.depth):typeof e.value=="function"?f=$e(e.key,`${e.value.name}()`,Ae.key,n,e.depth):typeof e.value=="object"&&(e.value===null?f=$e(e.key,"null",Ae.null,n,e.depth):Array.isArray(e.value)?f=$e(e.key,`Array(${e.value.length})`,Ae.key,n,e.depth):e.value instanceof Date?f=$e(e.key,`Date ${e.value.toString()}`,Ae.value,n,e.depth):e.value instanceof RegExp?f=$e(e.key,e.value.toString(),Ae.regex,n,e.depth):e.value instanceof Error?f=$e(e.key,e.value.toString(),Ae.error,n,e.depth):xu(e.value)?f=$e(e.key,"{\u2026}",Ae.key,n,e.depth):f=$e(e.key,e.value.constructor.name,Ae.key,n,e.depth)),x.createElement("span",(0,gh.default)({className:Ze(s,a)},i),u,f)};Ou.defaultProps={showKey:!0};var _u=Ou,Ht=Ve(Ro()),Eh=Ve(To()),Sh=["ast","theme","previewMax","open","colorScheme","className"],fr=(t,e,r)=>{let n=[];for(let o=0;oe){n.push("\u2026 ");break}}return n},Ah=(t,e,r,n)=>{let o=t.value.length;return e?x.createElement("span",null,"Array(",o,")"):x.createElement(x.Fragment,null,x.createElement("span",null,`${n==="firefox"?"Array":""}(${o}) [ `),fr(t.children,r,!1),x.createElement("span",null,"]"))},wh=(t,e,r,n)=>t.isPrototype?x.createElement("span",null,`Object ${n==="firefox"?"{ \u2026 }":""}`):e?x.createElement("span",null,"{\u2026}"):x.createElement(x.Fragment,null,x.createElement("span",null,`${n==="firefox"?"Object ":""}{ `),fr(t.children,r,!0),x.createElement("span",null,"}")),xh=(t,e,r)=>e?x.createElement("span",null,`Promise { "${String(t.children[0].value)}" }`):x.createElement(x.Fragment,null,x.createElement("span",null,"Promise { "),fr(t.children,r,!0),x.createElement("span",null,"}")),Ch=(t,e,r,n)=>{let{size:o}=t.value;return e?x.createElement("span",null,`Map(${o})`):x.createElement(x.Fragment,null,x.createElement("span",null,`Map${n==="chrome"?`(${o})`:""} { `),fr(t.children,r,!0),x.createElement("span",null,"}"))},Oh=(t,e,r)=>{let{size:n}=t.value;return e?x.createElement("span",null,"Set(",n,")"):x.createElement(x.Fragment,null,x.createElement("span",null,`Set(${t.value.size}) {`),fr(t.children,r,!0),x.createElement("span",null,"}"))},Iu=t=>{let{ast:e,theme:r,previewMax:n,open:o,colorScheme:a,className:i}=t,s=(0,Eh.default)(t,Sh),{themeClass:u,currentTheme:l}=tn({theme:r,colorScheme:a},Ae),f=e.isPrototype||!1,d=Ze(Ae.objectLabel,u,i,{[Ae.prototype]:f}),p=e.depth<=0,g=()=>x.createElement("span",{className:f?Ae.prototype:Ae.key},p?"":`${e.key}: `);return e.type==="array"?x.createElement("span",(0,Ht.default)({className:d},s),x.createElement(g,null),Ah(e,o,n,l)):e.type==="function"?x.createElement("span",(0,Ht.default)({className:d},s),x.createElement(g,null),l==="chrome"&&x.createElement("span",{className:Ae.functionDecorator},"\u0192 "),x.createElement("span",{className:Ze({[Ae.function]:!f})},`${e.value.name}()`)):e.type==="promise"?x.createElement("span",(0,Ht.default)({className:d},s),x.createElement(g,null),xh(e,o,n)):e.type==="map"?x.createElement("span",(0,Ht.default)({className:d},s),x.createElement(g,null),Ch(e,o,n,l)):e.type==="set"?x.createElement("span",(0,Ht.default)({className:d},s),x.createElement(g,null),Oh(e,o,n)):x.createElement("span",(0,Ht.default)({className:d},s),x.createElement(g,null),wh(e,o,n,l))};Iu.defaultProps={previewMax:8,open:!1};var _h=Iu,Fo=t=>{let{ast:e,expandLevel:r,depth:n}=t,[o,a]=We(),[i,s]=We(n{(async()=>{if(e.type!=="value"){let u=e.children.map(d=>d()),l=await Promise.all(u),f=(0,fu.default)((0,fu.default)({},e),{},{children:l});a(f)}})()},[e]),o?x.createElement(Zr,{hover:!1,open:i,label:x.createElement(_h,{open:i,ast:o}),onSelect:()=>{var u;(u=t.onSelect)===null||u===void 0||u.call(t,e)},onUpdate:u=>{s(u)}},o.children.map(u=>x.createElement(Fo,{key:u.key,ast:u,depth:n+1,expandLevel:r,onSelect:t.onSelect}))):x.createElement(Zr,{hover:!1,label:x.createElement(_u,{ast:e}),onSelect:()=>{var u;(u=t.onSelect)===null||u===void 0||u.call(t,e)}})};Fo.defaultProps={expandLevel:0,depth:0};var Ih=Fo,Rh=["data","expandLevel","sortKeys","includePrototypes","className","theme","colorScheme","onSelect"],Ru=t=>{let{data:e,expandLevel:r,sortKeys:n,includePrototypes:o,className:a,theme:i,colorScheme:s,onSelect:u}=t,l=(0,uh.default)(t,Rh),[f,d]=We(void 0),{themeClass:p,currentTheme:g,currentColorScheme:h}=tn({theme:i,colorScheme:s},Ae);return lt(()=>{(async()=>d(await ch(e,n,o)))()},[e,n,o]),x.createElement("div",(0,sh.default)({className:Ze(Ae.objectInspector,a,p)},l),f&&x.createElement(dh,{theme:g,colorScheme:h},x.createElement(Ih,{ast:f,expandLevel:r,onSelect:u})))};Ru.defaultProps={expandLevel:0,sortKeys:!0,includePrototypes:!0};var Th={base:"#444",nullish:"#7D99AA",string:"#16B242",number:"#5D40D0",boolean:"#f41840",objectkey:"#698394",instance:"#A15C20",function:"#EA7509",muted:"#7D99AA",tag:{name:"#6F2CAC",suffix:"#1F99E5"},date:"#459D9C",error:{name:"#D43900",message:"#444"},regex:{source:"#A15C20",flags:"#EA7509"},meta:"#EA7509",method:"#0271B6"},Dh={base:"#eee",nullish:"#aaa",string:"#5FE584",number:"#6ba5ff",boolean:"#ff4191",objectkey:"#accfe6",instance:"#E3B551",function:"#E3B551",muted:"#aaa",tag:{name:"#f57bff",suffix:"#8EB5FF"},date:"#70D4D3",error:{name:"#f40",message:"#eee"},regex:{source:"#FAD483",flags:"#E3B551"},meta:"#FAD483",method:"#5EC1FF"},Te=()=>{let{base:t}=ur();return t==="dark"?Dh:Th},Fh=/[^A-Z0-9]/i,du=/[\s.,…]+$/gm,Tu=(t,e)=>{if(t.length<=e)return t;for(let r=e-1;r>=0;r-=1)if(Fh.test(t[r])&&r>10)return`${t.slice(0,r).replace(du,"")}\u2026`;return`${t.slice(0,e).replace(du,"")}\u2026`},Ph=t=>{try{return JSON.stringify(t,null,1)}catch{return String(t)}},Du=(t,e)=>t.flatMap((r,n)=>n===t.length-1?[r]:[r,x.cloneElement(e,{key:`sep${n}`})]),_t=({value:t,nested:e,showObjectInspector:r,callsById:n,...o})=>{switch(!0){case t===null:return x.createElement(jh,{...o});case t===void 0:return x.createElement(Bh,{...o});case Array.isArray(t):return x.createElement(Lh,{...o,value:t,callsById:n});case typeof t=="string":return x.createElement(kh,{...o,value:t});case typeof t=="number":return x.createElement(Nh,{...o,value:t});case typeof t=="boolean":return x.createElement(Mh,{...o,value:t});case Object.prototype.hasOwnProperty.call(t,"__date__"):return x.createElement(Hh,{...o,...t.__date__});case Object.prototype.hasOwnProperty.call(t,"__error__"):return x.createElement(Wh,{...o,...t.__error__});case Object.prototype.hasOwnProperty.call(t,"__regexp__"):return x.createElement(Vh,{...o,...t.__regexp__});case Object.prototype.hasOwnProperty.call(t,"__function__"):return x.createElement(qh,{...o,...t.__function__});case Object.prototype.hasOwnProperty.call(t,"__symbol__"):return x.createElement(Gh,{...o,...t.__symbol__});case Object.prototype.hasOwnProperty.call(t,"__element__"):return x.createElement(Uh,{...o,...t.__element__});case Object.prototype.hasOwnProperty.call(t,"__class__"):return x.createElement(zh,{...o,...t.__class__});case Object.prototype.hasOwnProperty.call(t,"__callId__"):return x.createElement(Po,{call:n.get(t.__callId__),callsById:n});case Object.prototype.toString.call(t)==="[object Object]":return x.createElement($h,{value:t,showInspector:r,callsById:n,...o});default:return x.createElement(Yh,{value:t,...o})}},jh=t=>{let e=Te();return x.createElement("span",{style:{color:e.nullish},...t},"null")},Bh=t=>{let e=Te();return x.createElement("span",{style:{color:e.nullish},...t},"undefined")},kh=({value:t,...e})=>{let r=Te();return x.createElement("span",{style:{color:r.string},...e},JSON.stringify(Tu(t,50)))},Nh=({value:t,...e})=>{let r=Te();return x.createElement("span",{style:{color:r.number},...e},t)},Mh=({value:t,...e})=>{let r=Te();return x.createElement("span",{style:{color:r.boolean},...e},String(t))},Lh=({value:t,nested:e=!1,callsById:r})=>{let n=Te();if(e)return x.createElement("span",{style:{color:n.base}},"[\u2026]");let o=t.slice(0,3).map((i,s)=>x.createElement(_t,{key:`${s}--${JSON.stringify(i)}`,value:i,nested:!0,callsById:r})),a=Du(o,x.createElement("span",null,", "));return t.length<=3?x.createElement("span",{style:{color:n.base}},"[",a,"]"):x.createElement("span",{style:{color:n.base}},"(",t.length,") [",a,", \u2026]")},$h=({showInspector:t,value:e,callsById:r,nested:n=!1})=>{let o=ur().base==="dark",a=Te();if(t)return x.createElement(x.Fragment,null,x.createElement(Ru,{id:"interactions-object-inspector",data:e,includePrototypes:!1,colorScheme:o?"dark":"light"}));if(n)return x.createElement("span",{style:{color:a.base}},"{\u2026}");let i=Du(Object.entries(e).slice(0,2).map(([s,u])=>x.createElement(br,{key:s},x.createElement("span",{style:{color:a.objectkey}},s,": "),x.createElement(_t,{value:u,callsById:r,nested:!0}))),x.createElement("span",null,", "));return Object.keys(e).length<=2?x.createElement("span",{style:{color:a.base}},"{ ",i," }"):x.createElement("span",{style:{color:a.base}},"(",Object.keys(e).length,") ","{ ",i,", \u2026 }")},zh=({name:t})=>{let e=Te();return x.createElement("span",{style:{color:e.instance}},t)},qh=({name:t})=>{let e=Te();return t?x.createElement("span",{style:{color:e.function}},t):x.createElement("span",{style:{color:e.nullish,fontStyle:"italic"}},"anonymous")},Uh=({prefix:t,localName:e,id:r,classNames:n=[],innerText:o})=>{let a=t?`${t}:${e}`:e,i=Te();return x.createElement("span",{style:{wordBreak:"keep-all"}},x.createElement("span",{key:`${a}_lt`,style:{color:i.muted}},"<"),x.createElement("span",{key:`${a}_tag`,style:{color:i.tag.name}},a),x.createElement("span",{key:`${a}_suffix`,style:{color:i.tag.suffix}},r?`#${r}`:n.reduce((s,u)=>`${s}.${u}`,"")),x.createElement("span",{key:`${a}_gt`,style:{color:i.muted}},">"),!r&&n.length===0&&o&&x.createElement(x.Fragment,null,x.createElement("span",{key:`${a}_text`},o),x.createElement("span",{key:`${a}_close_lt`,style:{color:i.muted}},"<"),x.createElement("span",{key:`${a}_close_tag`,style:{color:i.tag.name}},"/",a),x.createElement("span",{key:`${a}_close_gt`,style:{color:i.muted}},">")))},Hh=({value:t})=>{let[e,r,n]=t.split(/[T.Z]/),o=Te();return x.createElement("span",{style:{whiteSpace:"nowrap",color:o.date}},e,x.createElement("span",{style:{opacity:.7}},"T"),r==="00:00:00"?x.createElement("span",{style:{opacity:.7}},r):r,n==="000"?x.createElement("span",{style:{opacity:.7}},".",n):`.${n}`,x.createElement("span",{style:{opacity:.7}},"Z"))},Wh=({name:t,message:e})=>{let r=Te();return x.createElement("span",{style:{color:r.error.name}},t,e&&": ",e&&x.createElement("span",{style:{color:r.error.message},title:e.length>50?e:""},Tu(e,50)))},Vh=({flags:t,source:e})=>{let r=Te();return x.createElement("span",{style:{whiteSpace:"nowrap",color:r.regex.flags}},"/",x.createElement("span",{style:{color:r.regex.source}},e),"/",t)},Gh=({description:t})=>{let e=Te();return x.createElement("span",{style:{whiteSpace:"nowrap",color:e.instance}},"Symbol(",t&&x.createElement("span",{style:{color:e.meta}},'"',t,'"'),")")},Yh=({value:t})=>{let e=Te();return x.createElement("span",{style:{color:e.meta}},Ph(t))},Kh=({label:t})=>{let e=Te(),{typography:r}=ur();return x.createElement("span",{style:{color:e.base,fontFamily:r.fonts.base,fontSize:r.size.s2-1}},t)},Po=({call:t,callsById:e})=>{if(!t)return null;if(t.method==="step"&&t.path.length===0)return x.createElement(Kh,{label:t.args[0]});let r=t.path.flatMap((a,i)=>{let s=a.__callId__;return[s?x.createElement(Po,{key:`elem${i}`,call:e.get(s),callsById:e}):x.createElement("span",{key:`elem${i}`},a),x.createElement("wbr",{key:`wbr${i}`}),x.createElement("span",{key:`dot${i}`},".")]}),n=t.args.flatMap((a,i,s)=>{let u=x.createElement(_t,{key:`node${i}`,value:a,callsById:e});return i{for(let r=e,n=1;r{try{return t==="undefined"?void 0:JSON.parse(t)}catch{return t}},Jh=fe.span(({theme:t})=>({color:t.base==="light"?t.color.positiveText:t.color.positive})),Xh=fe.span(({theme:t})=>({color:t.base==="light"?t.color.negativeText:t.color.negative})),wo=({value:t,parsed:e})=>e?x.createElement(_t,{showObjectInspector:!0,value:t,style:{color:"#D43900"}}):x.createElement(Xh,null,t),xo=({value:t,parsed:e})=>e?typeof t=="string"&&t.startsWith("called with")?x.createElement(x.Fragment,null,t):x.createElement(_t,{showObjectInspector:!0,value:t,style:{color:"#16B242"}}):x.createElement(Jh,null,t),mu=({message:t,style:e={}})=>{let r=t.split(` +`);return x.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:st.size.s1,...e}},r.flatMap((n,o)=>{if(n.startsWith("expect(")){let f=hu(n,7),d=f&&7+f.length,p=f&&n.slice(d).match(/\.(to|last|nth)[A-Z]\w+\(/);if(p){let g=d+p.index+p[0].length,h=hu(n,g);if(h)return["expect(",x.createElement(wo,{key:`received_${f}`,value:f}),n.slice(d,g),x.createElement(xo,{key:`expected_${h}`,value:h}),n.slice(g+h.length),x.createElement("br",{key:`br${o}`})]}}if(n.match(/^\s*- /))return[x.createElement(xo,{key:n+o,value:n}),x.createElement("br",{key:`br${o}`})];if(n.match(/^\s*\+ /)||n.match(/^Received: $/))return[x.createElement(wo,{key:n+o,value:n}),x.createElement("br",{key:`br${o}`})];let[,a,i]=n.match(/^(Expected|Received): (.*)$/)||[];if(a&&i)return a==="Expected"?["Expected: ",x.createElement(xo,{key:n+o,value:Ao(i),parsed:!0}),x.createElement("br",{key:`br${o}`})]:["Received: ",x.createElement(wo,{key:n+o,value:Ao(i),parsed:!0}),x.createElement("br",{key:`br${o}`})];let[,s,u]=n.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(s&&u)return[`${s} of calls: `,x.createElement(_t,{key:n+o,value:Number(u)}),x.createElement("br",{key:`br${o}`})];let[,l]=n.match(/^Received has value: (.+)$/)||[];return l?["Received has value: ",x.createElement(_t,{key:n+o,value:Ao(l)}),x.createElement("br",{key:`br${o}`})]:[x.createElement("span",{key:n+o},n),x.createElement("br",{key:`br${o}`})]}))},Qh=fe.div({width:14,height:14,display:"flex",alignItems:"center",justifyContent:"center"}),Fu=({status:t})=>{let e=ur();switch(t){case de.DONE:return x.createElement(Qs,{color:e.color.positive,"data-testid":"icon-done"});case de.ERROR:return x.createElement(su,{color:e.color.negative,"data-testid":"icon-error"});case de.ACTIVE:return x.createElement(ou,{color:e.color.secondary,"data-testid":"icon-active"});case de.WAITING:return x.createElement(Qh,{"data-testid":"icon-waiting"},x.createElement(Zs,{color:Qr(.5,"#CCCCCC"),size:6}));default:return null}};function Zh(t){return Pu(t)||ju(t)}function Pu(t){return t&&typeof t=="object"&&"name"in t&&typeof t.name=="string"&&t.name==="AssertionError"}function ju(t){return t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&t.message.startsWith("expect(")}var em=fe.div(()=>({fontFamily:st.fonts.mono,fontSize:st.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"})),tm=fe("div",{shouldForwardProp:t=>!["call","pausedAt"].includes(t.toString())})(({theme:t,call:e})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${t.appBorderColor}`,fontFamily:st.fonts.base,fontSize:13,...e.status===de.ERROR&&{backgroundColor:t.base==="dark"?Qr(.93,t.color.negative):t.background.warning},paddingLeft:e.ancestors.length*20}),({theme:t,call:e,pausedAt:r})=>r===e.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${t.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${t.color.warning}`}}),rm=fe.div(({theme:t,isInteractive:e})=>({display:"flex","&:hover":e?{}:{background:t.background.hoverable}})),nm=fe("button",{shouldForwardProp:t=>!["call"].includes(t.toString())})(({theme:t,disabled:e,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:e||r.status===de.ERROR?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status===de.ERROR?t.color.warning:t.color.secondary}`,background:r.status===de.ERROR?"transparent":t.background.hoverable},"& > div":{opacity:r.status===de.WAITING?.5:1}})),om=fe.div({padding:6}),am=fe(sn)(({theme:t})=>({color:t.textMutedColor,margin:"0 3px"})),im=fe(ln)(({theme:t})=>({fontFamily:t.typography.fonts.base})),yu=fe("div")(({theme:t})=>({padding:"8px 10px 8px 36px",fontSize:st.size.s1,color:t.color.defaultText,pre:{margin:0,padding:0}})),sm=({exception:t})=>{if(ju(t))return se(mu,{...t});if(Pu(t))return se(yu,null,se(mu,{message:`${t.message}${t.diff?` + +${t.diff}`:""}`,style:{padding:0}}),se("p",null,"See the full stack trace in the browser console."));let e=t.message.split(` + +`),r=e.length>1;return se(yu,null,se("pre",null,e[0]),r&&se("p",null,"See the full stack trace in the browser console."))},um=({call:t,callsById:e,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:i,toggleCollapsed:s,pausedAt:u})=>{let[l,f]=We(!1),d=!n.goto||!t.interceptable||!!t.ancestors.length;return a?null:se(tm,{call:t,pausedAt:u},se(rm,{isInteractive:d},se(nm,{"aria-label":"Interaction step",call:t,onClick:()=>r.goto(t.id),disabled:d,onMouseEnter:()=>n.goto&&f(!0),onMouseLeave:()=>n.goto&&f(!1)},se(Fu,{status:l?de.ACTIVE:t.status}),se(em,{style:{marginLeft:6,marginBottom:1}},se(Po,{call:t,callsById:e}))),se(om,null,o?.length>0&&se(Et,{hasChrome:!1,tooltip:se(im,{note:`${i?"Show":"Hide"} interactions`})},se(am,{onClick:s},se(ru,null))))),t.status===de.ERROR&&t.exception?.callId===t.id&&se(sm,{exception:t.exception}))},lm=fe.div(({theme:t})=>({display:"flex",fontSize:t.typography.size.s2-1,gap:25})),cm=fe.div(({theme:t})=>({width:1,height:16,backgroundColor:t.appBorderColor})),pm=()=>{let[t,e]=We(!0),r=qo().getDocsUrl({subpath:Kd,versioned:!0,renderer:!0});return lt(()=>{let n=setTimeout(()=>{e(!1)},100);return()=>clearTimeout(n)},[]),t?null:x.createElement(Go,{title:"Interaction testing",description:x.createElement(x.Fragment,null,"Interaction tests allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here."),footer:x.createElement(lm,null,x.createElement(un,{href:Yd,target:"_blank",withArrow:!0},x.createElement(lu,null)," Watch 8m video"),x.createElement(cm,null),x.createElement(un,{href:r,target:"_blank",withArrow:!0},x.createElement(eu,null)," Read docs"))})},fm=fe.div(({theme:t})=>({height:"100%",background:t.background.content})),gu=fe.div(({theme:t})=>({borderBottom:`1px solid ${t.appBorderColor}`,backgroundColor:t.base==="dark"?Qr(.93,t.color.negative):t.background.warning,padding:15,fontSize:t.typography.size.s2-1,lineHeight:"19px"})),Co=fe.code(({theme:t})=>({margin:"0 1px",padding:3,fontSize:t.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1px solid ${t.appBorderColor}`,borderRadius:3})),bu=fe.div({paddingBottom:4,fontWeight:"bold"}),dm=fe.p({margin:0,padding:"0 0 20px"}),vu=fe.pre(({theme:t})=>({margin:0,padding:0,"&:not(:last-child)":{paddingBottom:16},fontSize:t.typography.size.s1-1})),hm=vr(function({calls:t,controls:e,controlStates:r,interactions:n,fileName:o,hasException:a,caughtException:i,unhandledErrors:s,isPlaying:u,pausedAt:l,onScrollToEnd:f,endRef:d}){return se(fm,null,(n.length>0||a)&&se(ih,{controls:e,controlStates:r,status:u?de.ACTIVE:a?de.ERROR:de.DONE,storyFileName:o,onScrollToEnd:f}),se("div",{"aria-label":"Interactions list"},n.map(p=>se(um,{key:p.id,call:p,callsById:t,controls:e,controlStates:r,childCallIds:p.childCallIds,isHidden:p.isHidden,isCollapsed:p.isCollapsed,toggleCollapsed:p.toggleCollapsed,pausedAt:l}))),i&&!Zh(i)&&se(gu,null,se(bu,null,"Caught exception in ",se(Co,null,"play")," function"),se(vu,{"data-chromatic":"ignore"},Eu(i))),s&&se(gu,null,se(bu,null,"Unhandled Errors"),se(dm,null,"Found ",s.length," unhandled error",s.length>1?"s":""," ","while running the play function. This might cause false positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the",se(Co,null,"test.dangerouslyIgnoreUnhandledErrors")," ","parameter to ",se(Co,null,"true"),"."),s.map((p,g)=>se(vu,{key:g,"data-chromatic":"ignore"},Eu(p)))),se("div",{ref:d}),!u&&!i&&n.length===0&&se(pm,null))});function Eu(t){return t.stack||`${t.name}: ${t.message}`}var Oo={start:!1,back:!1,goto:!1,next:!1,end:!1},Su=({log:t,calls:e,collapsed:r,setCollapsed:n})=>{let o=new Map,a=new Map;return t.map(({callId:i,ancestors:s,status:u})=>{let l=!1;return s.forEach(f=>{r.has(f)&&(l=!0),a.set(f,(a.get(f)||[]).concat(i))}),{...e.get(i),status:u,isHidden:l}}).map(i=>{let s=i.status===de.ERROR&&o.get(i.ancestors.slice(-1)[0])?.status===de.ACTIVE?de.ACTIVE:i.status;return o.set(i.id,{...i,status:s}),{...i,status:s,childCallIds:a.get(i.id),isCollapsed:r.has(i.id),toggleCollapsed:()=>n(u=>(u.has(i.id)?u.delete(i.id):u.add(i.id),new Set(u)))}})},mm=vr(function({storyId:t}){let[e,r]=an(en,{controlStates:Oo,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0,unhandledErrors:void 0}),[n,o]=We(void 0),[a,i]=We(new Set),{controlStates:s=Oo,isErrored:u=!1,pausedAt:l=void 0,interactions:f=[],isPlaying:d=!1,caughtException:p=void 0,unhandledErrors:g=void 0}=e,h=Er([]),v=Er(new Map),b=({status:E,...j})=>v.current.set(j.id,j),m=Er();lt(()=>{let E;return sr.IntersectionObserver&&(E=new sr.IntersectionObserver(([j])=>o(j.isIntersecting?void 0:j.target),{root:sr.document.querySelector("#panel-tab-content")}),m.current&&E.observe(m.current)),()=>E?.disconnect()},[]);let y=$o({[ht.CALL]:b,[ht.SYNC]:E=>{r(j=>{let z=Su({log:E.logItems,calls:v.current,collapsed:a,setCollapsed:i});return{...j,controlStates:E.controlStates,pausedAt:E.pausedAt,interactions:z,interactionsCount:z.filter(({method:q})=>q!=="step").length}}),h.current=E.logItems},[nt]:E=>{if(E.newPhase==="preparing"){r({controlStates:Oo,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0,unhandledErrors:void 0});return}r(j=>({...j,isPlaying:E.newPhase==="playing",pausedAt:void 0,...E.newPhase==="rendering"?{isErrored:!1,caughtException:void 0}:{}}))},[Cr]:()=>{r(E=>({...E,isErrored:!0}))},[wr]:E=>{r(j=>({...j,caughtException:E}))},[Or]:E=>{r(j=>({...j,unhandledErrors:E}))}},[a]);lt(()=>{r(E=>{let j=Su({log:h.current,calls:v.current,collapsed:a,setCollapsed:i});return{...E,interactions:j,interactionsCount:j.filter(({method:z})=>z!=="step").length}})},[a]);let A=No(()=>({start:()=>y(ht.START,{storyId:t}),back:()=>y(ht.BACK,{storyId:t}),goto:E=>y(ht.GOTO,{storyId:t,callId:E}),next:()=>y(ht.NEXT,{storyId:t}),end:()=>y(ht.END,{storyId:t}),rerun:()=>{y(Xt,{storyId:t})}}),[t]),w=zo("fileName",""),[C]=w.toString().split("/").slice(-1),I=()=>n?.scrollIntoView({behavior:"smooth",block:"end"}),D=!!p||!!g||f.some(E=>E.status===de.ERROR);return u?x.createElement(br,{key:"interactions"}):x.createElement(br,{key:"interactions"},x.createElement(hm,{calls:v.current,controls:A,controlStates:s,interactions:f,fileName:C,hasException:D,caughtException:p,unhandledErrors:g,isPlaying:d,pausedAt:l,endRef:m,onScrollToEnd:n&&I}))}),ym=fe(Fu)({marginLeft:5});function gm(){let[t={}]=an(en),{hasException:e,interactionsCount:r}=t;return x.createElement("div",null,x.createElement(Jo,{col:1},x.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Interactions"),r&&!e?x.createElement(Ho,{status:"neutral"},r):null,e?x.createElement(ym,{status:de.ERROR}):null))}on.register(en,t=>{on.add(Gd,{type:Lo.PANEL,title:gm,match:({viewMode:e})=>e==="story",render:({active:e})=>{let r=ko(({state:n})=>({storyId:n.storyId}),[]);return x.createElement(Uo,{active:e},x.createElement(Mo,{filter:r},({storyId:n})=>x.createElement(mm,{storyId:n})))}})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/interactions-9/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/interactions-9/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/links-1/manager-bundle.js b/storybook/sb-addons/links-1/manager-bundle.js new file mode 100644 index 0000000..2372992 --- /dev/null +++ b/storybook/sb-addons/links-1/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var E=__STORYBOOK_API__,{ActiveTabs:T,Consumer:h,ManagerContext:p,Provider:A,RequestResponseError:b,addons:a,combineParameters:O,controlOrMetaKey:R,controlOrMetaSymbol:k,eventMatchesShortcut:v,eventToShortcut:g,experimental_requestResponse:I,isMacLike:C,isShortcutTaken:M,keyToSymbol:P,merge:x,mockChannel:f,optionOrAltSymbol:q,shortcutMatchesShortcut:D,shortcutToHumanString:G,types:K,useAddonState:V,useArgTypes:$,useArgs:B,useChannel:N,useGlobalTypes:Q,useGlobals:U,useParameter:Y,useSharedState:H,useStoryPrepared:L,useStorybookApi:j,useStorybookState:w}=__STORYBOOK_API__;var e="storybook/links",n={NAVIGATE:`${e}/navigate`,REQUEST:`${e}/request`,RECEIVE:`${e}/receive`};a.register(e,t=>{t.on(n.REQUEST,({kind:u,name:S})=>{let c=t.storyId(u,S);t.emit(n.RECEIVE,c)})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/links-1/manager-bundle.js.LEGAL.txt b/storybook/sb-addons/links-1/manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js b/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js new file mode 100644 index 0000000..92f5dd4 --- /dev/null +++ b/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var T=__STORYBOOK_API__,{ActiveTabs:_,Consumer:g,ManagerContext:O,Provider:f,RequestResponseError:A,addons:n,combineParameters:v,controlOrMetaKey:P,controlOrMetaSymbol:k,eventMatchesShortcut:x,eventToShortcut:M,experimental_requestResponse:R,isMacLike:w,isShortcutTaken:C,keyToSymbol:G,merge:I,mockChannel:K,optionOrAltSymbol:q,shortcutMatchesShortcut:B,shortcutToHumanString:F,types:Y,useAddonState:j,useArgTypes:E,useArgs:H,useChannel:L,useGlobalTypes:N,useGlobals:z,useParameter:D,useSharedState:J,useStoryPrepared:Q,useStorybookApi:U,useStorybookState:V}=__STORYBOOK_API__;var S=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})(),u="static-filter";n.register(u,e=>{let i=Object.entries(S.TAGS_OPTIONS??{}).reduce((t,r)=>{let[o,c]=r;return c.excludeFromSidebar&&(t[o]=!0),t},{});e.experimental_setFilter(u,t=>{let r=t.tags??[];return(r.includes("dev")||t.type==="docs")&&r.filter(o=>i[o]).length===0})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt b/storybook/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt new file mode 100644 index 0000000..e69de29 diff --git a/storybook/sb-common-assets/favicon.svg b/storybook/sb-common-assets/favicon.svg new file mode 100644 index 0000000..571f90f --- /dev/null +++ b/storybook/sb-common-assets/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 b/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 new file mode 100644 index 0000000..33563d8 Binary files /dev/null and b/storybook/sb-common-assets/nunito-sans-bold-italic.woff2 differ diff --git a/storybook/sb-common-assets/nunito-sans-bold.woff2 b/storybook/sb-common-assets/nunito-sans-bold.woff2 new file mode 100644 index 0000000..19fcc94 Binary files /dev/null and b/storybook/sb-common-assets/nunito-sans-bold.woff2 differ diff --git a/storybook/sb-common-assets/nunito-sans-italic.woff2 b/storybook/sb-common-assets/nunito-sans-italic.woff2 new file mode 100644 index 0000000..827096d Binary files /dev/null and b/storybook/sb-common-assets/nunito-sans-italic.woff2 differ diff --git a/storybook/sb-common-assets/nunito-sans-regular.woff2 b/storybook/sb-common-assets/nunito-sans-regular.woff2 new file mode 100644 index 0000000..c527ba4 Binary files /dev/null and b/storybook/sb-common-assets/nunito-sans-regular.woff2 differ diff --git a/storybook/sb-manager/globals-module-info.js b/storybook/sb-manager/globals-module-info.js new file mode 100644 index 0000000..4a53a7b --- /dev/null +++ b/storybook/sb-manager/globals-module-info.js @@ -0,0 +1,995 @@ +import ESM_COMPAT_Module from "node:module"; +import { fileURLToPath as ESM_COMPAT_fileURLToPath } from 'node:url'; +import { dirname as ESM_COMPAT_dirname } from 'node:path'; +const __filename = ESM_COMPAT_fileURLToPath(import.meta.url); +const __dirname = ESM_COMPAT_dirname(__filename); +const require = ESM_COMPAT_Module.createRequire(import.meta.url); + +// src/manager/globals/exports.ts +var t = { + react: [ + "Children", + "Component", + "Fragment", + "Profiler", + "PureComponent", + "StrictMode", + "Suspense", + "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", + "cloneElement", + "createContext", + "createElement", + "createFactory", + "createRef", + "forwardRef", + "isValidElement", + "lazy", + "memo", + "startTransition", + "unstable_act", + "useCallback", + "useContext", + "useDebugValue", + "useDeferredValue", + "useEffect", + "useId", + "useImperativeHandle", + "useInsertionEffect", + "useLayoutEffect", + "useMemo", + "useReducer", + "useRef", + "useState", + "useSyncExternalStore", + "useTransition", + "version" + ], + "react-dom": [ + "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", + "createPortal", + "createRoot", + "findDOMNode", + "flushSync", + "hydrate", + "hydrateRoot", + "render", + "unmountComponentAtNode", + "unstable_batchedUpdates", + "unstable_renderSubtreeIntoContainer", + "version" + ], + "react-dom/client": ["createRoot", "hydrateRoot"], + "@storybook/icons": [ + "AccessibilityAltIcon", + "AccessibilityIcon", + "AddIcon", + "AdminIcon", + "AlertAltIcon", + "AlertIcon", + "AlignLeftIcon", + "AlignRightIcon", + "AppleIcon", + "ArrowDownIcon", + "ArrowLeftIcon", + "ArrowRightIcon", + "ArrowSolidDownIcon", + "ArrowSolidLeftIcon", + "ArrowSolidRightIcon", + "ArrowSolidUpIcon", + "ArrowUpIcon", + "AzureDevOpsIcon", + "BackIcon", + "BasketIcon", + "BatchAcceptIcon", + "BatchDenyIcon", + "BeakerIcon", + "BellIcon", + "BitbucketIcon", + "BoldIcon", + "BookIcon", + "BookmarkHollowIcon", + "BookmarkIcon", + "BottomBarIcon", + "BottomBarToggleIcon", + "BoxIcon", + "BranchIcon", + "BrowserIcon", + "ButtonIcon", + "CPUIcon", + "CalendarIcon", + "CameraIcon", + "CategoryIcon", + "CertificateIcon", + "ChangedIcon", + "ChatIcon", + "CheckIcon", + "ChevronDownIcon", + "ChevronLeftIcon", + "ChevronRightIcon", + "ChevronSmallDownIcon", + "ChevronSmallLeftIcon", + "ChevronSmallRightIcon", + "ChevronSmallUpIcon", + "ChevronUpIcon", + "ChromaticIcon", + "ChromeIcon", + "CircleHollowIcon", + "CircleIcon", + "ClearIcon", + "CloseAltIcon", + "CloseIcon", + "CloudHollowIcon", + "CloudIcon", + "CogIcon", + "CollapseIcon", + "CommandIcon", + "CommentAddIcon", + "CommentIcon", + "CommentsIcon", + "CommitIcon", + "CompassIcon", + "ComponentDrivenIcon", + "ComponentIcon", + "ContrastIcon", + "ControlsIcon", + "CopyIcon", + "CreditIcon", + "CrossIcon", + "DashboardIcon", + "DatabaseIcon", + "DeleteIcon", + "DiamondIcon", + "DirectionIcon", + "DiscordIcon", + "DocChartIcon", + "DocListIcon", + "DocumentIcon", + "DownloadIcon", + "DragIcon", + "EditIcon", + "EllipsisIcon", + "EmailIcon", + "ExpandAltIcon", + "ExpandIcon", + "EyeCloseIcon", + "EyeIcon", + "FaceHappyIcon", + "FaceNeutralIcon", + "FaceSadIcon", + "FacebookIcon", + "FailedIcon", + "FastForwardIcon", + "FigmaIcon", + "FilterIcon", + "FlagIcon", + "FolderIcon", + "FormIcon", + "GDriveIcon", + "GithubIcon", + "GitlabIcon", + "GlobeIcon", + "GoogleIcon", + "GraphBarIcon", + "GraphLineIcon", + "GraphqlIcon", + "GridAltIcon", + "GridIcon", + "GrowIcon", + "HeartHollowIcon", + "HeartIcon", + "HomeIcon", + "HourglassIcon", + "InfoIcon", + "ItalicIcon", + "JumpToIcon", + "KeyIcon", + "LightningIcon", + "LightningOffIcon", + "LinkBrokenIcon", + "LinkIcon", + "LinkedinIcon", + "LinuxIcon", + "ListOrderedIcon", + "ListUnorderedIcon", + "LocationIcon", + "LockIcon", + "MarkdownIcon", + "MarkupIcon", + "MediumIcon", + "MemoryIcon", + "MenuIcon", + "MergeIcon", + "MirrorIcon", + "MobileIcon", + "MoonIcon", + "NutIcon", + "OutboxIcon", + "OutlineIcon", + "PaintBrushIcon", + "PaperClipIcon", + "ParagraphIcon", + "PassedIcon", + "PhoneIcon", + "PhotoDragIcon", + "PhotoIcon", + "PinAltIcon", + "PinIcon", + "PlayBackIcon", + "PlayIcon", + "PlayNextIcon", + "PlusIcon", + "PointerDefaultIcon", + "PointerHandIcon", + "PowerIcon", + "PrintIcon", + "ProceedIcon", + "ProfileIcon", + "PullRequestIcon", + "QuestionIcon", + "RSSIcon", + "RedirectIcon", + "ReduxIcon", + "RefreshIcon", + "ReplyIcon", + "RepoIcon", + "RequestChangeIcon", + "RewindIcon", + "RulerIcon", + "SearchIcon", + "ShareAltIcon", + "ShareIcon", + "ShieldIcon", + "SideBySideIcon", + "SidebarAltIcon", + "SidebarAltToggleIcon", + "SidebarIcon", + "SidebarToggleIcon", + "SpeakerIcon", + "StackedIcon", + "StarHollowIcon", + "StarIcon", + "StickerIcon", + "StopAltIcon", + "StopIcon", + "StorybookIcon", + "StructureIcon", + "SubtractIcon", + "SunIcon", + "SupportIcon", + "SwitchAltIcon", + "SyncIcon", + "TabletIcon", + "ThumbsUpIcon", + "TimeIcon", + "TimerIcon", + "TransferIcon", + "TrashIcon", + "TwitterIcon", + "TypeIcon", + "UbuntuIcon", + "UndoIcon", + "UnfoldIcon", + "UnlockIcon", + "UnpinIcon", + "UploadIcon", + "UserAddIcon", + "UserAltIcon", + "UserIcon", + "UsersIcon", + "VSCodeIcon", + "VerifiedIcon", + "VideoIcon", + "WandIcon", + "WatchIcon", + "WindowsIcon", + "WrenchIcon", + "YoutubeIcon", + "ZoomIcon", + "ZoomOutIcon", + "ZoomResetIcon", + "iconList" + ], + "storybook/internal/components": [ + "A", + "ActionBar", + "AddonPanel", + "Badge", + "Bar", + "Blockquote", + "Button", + "ClipboardCode", + "Code", + "DL", + "Div", + "DocumentWrapper", + "EmptyTabContent", + "ErrorFormatter", + "FlexBar", + "Form", + "H1", + "H2", + "H3", + "H4", + "H5", + "H6", + "HR", + "IconButton", + "IconButtonSkeleton", + "Icons", + "Img", + "LI", + "Link", + "ListItem", + "Loader", + "Modal", + "OL", + "P", + "Placeholder", + "Pre", + "ResetWrapper", + "ScrollArea", + "Separator", + "Spaced", + "Span", + "StorybookIcon", + "StorybookLogo", + "Symbols", + "SyntaxHighlighter", + "TT", + "TabBar", + "TabButton", + "TabWrapper", + "Table", + "Tabs", + "TabsState", + "TooltipLinkList", + "TooltipMessage", + "TooltipNote", + "UL", + "WithTooltip", + "WithTooltipPure", + "Zoom", + "codeCommon", + "components", + "createCopyToClipboardFunction", + "getStoryHref", + "icons", + "interleaveSeparators", + "nameSpaceClassNames", + "resetComponents", + "withReset" + ], + "@storybook/components": [ + "A", + "ActionBar", + "AddonPanel", + "Badge", + "Bar", + "Blockquote", + "Button", + "ClipboardCode", + "Code", + "DL", + "Div", + "DocumentWrapper", + "EmptyTabContent", + "ErrorFormatter", + "FlexBar", + "Form", + "H1", + "H2", + "H3", + "H4", + "H5", + "H6", + "HR", + "IconButton", + "IconButtonSkeleton", + "Icons", + "Img", + "LI", + "Link", + "ListItem", + "Loader", + "Modal", + "OL", + "P", + "Placeholder", + "Pre", + "ResetWrapper", + "ScrollArea", + "Separator", + "Spaced", + "Span", + "StorybookIcon", + "StorybookLogo", + "Symbols", + "SyntaxHighlighter", + "TT", + "TabBar", + "TabButton", + "TabWrapper", + "Table", + "Tabs", + "TabsState", + "TooltipLinkList", + "TooltipMessage", + "TooltipNote", + "UL", + "WithTooltip", + "WithTooltipPure", + "Zoom", + "codeCommon", + "components", + "createCopyToClipboardFunction", + "getStoryHref", + "icons", + "interleaveSeparators", + "nameSpaceClassNames", + "resetComponents", + "withReset" + ], + "@storybook/core/components": [ + "A", + "ActionBar", + "AddonPanel", + "Badge", + "Bar", + "Blockquote", + "Button", + "ClipboardCode", + "Code", + "DL", + "Div", + "DocumentWrapper", + "EmptyTabContent", + "ErrorFormatter", + "FlexBar", + "Form", + "H1", + "H2", + "H3", + "H4", + "H5", + "H6", + "HR", + "IconButton", + "IconButtonSkeleton", + "Icons", + "Img", + "LI", + "Link", + "ListItem", + "Loader", + "Modal", + "OL", + "P", + "Placeholder", + "Pre", + "ResetWrapper", + "ScrollArea", + "Separator", + "Spaced", + "Span", + "StorybookIcon", + "StorybookLogo", + "Symbols", + "SyntaxHighlighter", + "TT", + "TabBar", + "TabButton", + "TabWrapper", + "Table", + "Tabs", + "TabsState", + "TooltipLinkList", + "TooltipMessage", + "TooltipNote", + "UL", + "WithTooltip", + "WithTooltipPure", + "Zoom", + "codeCommon", + "components", + "createCopyToClipboardFunction", + "getStoryHref", + "icons", + "interleaveSeparators", + "nameSpaceClassNames", + "resetComponents", + "withReset" + ], + "storybook/internal/manager-api": [ + "ActiveTabs", + "Consumer", + "ManagerContext", + "Provider", + "RequestResponseError", + "addons", + "combineParameters", + "controlOrMetaKey", + "controlOrMetaSymbol", + "eventMatchesShortcut", + "eventToShortcut", + "experimental_requestResponse", + "isMacLike", + "isShortcutTaken", + "keyToSymbol", + "merge", + "mockChannel", + "optionOrAltSymbol", + "shortcutMatchesShortcut", + "shortcutToHumanString", + "types", + "useAddonState", + "useArgTypes", + "useArgs", + "useChannel", + "useGlobalTypes", + "useGlobals", + "useParameter", + "useSharedState", + "useStoryPrepared", + "useStorybookApi", + "useStorybookState" + ], + "@storybook/manager-api": [ + "ActiveTabs", + "Consumer", + "ManagerContext", + "Provider", + "RequestResponseError", + "addons", + "combineParameters", + "controlOrMetaKey", + "controlOrMetaSymbol", + "eventMatchesShortcut", + "eventToShortcut", + "experimental_requestResponse", + "isMacLike", + "isShortcutTaken", + "keyToSymbol", + "merge", + "mockChannel", + "optionOrAltSymbol", + "shortcutMatchesShortcut", + "shortcutToHumanString", + "types", + "useAddonState", + "useArgTypes", + "useArgs", + "useChannel", + "useGlobalTypes", + "useGlobals", + "useParameter", + "useSharedState", + "useStoryPrepared", + "useStorybookApi", + "useStorybookState" + ], + "@storybook/core/manager-api": [ + "ActiveTabs", + "Consumer", + "ManagerContext", + "Provider", + "RequestResponseError", + "addons", + "combineParameters", + "controlOrMetaKey", + "controlOrMetaSymbol", + "eventMatchesShortcut", + "eventToShortcut", + "experimental_requestResponse", + "isMacLike", + "isShortcutTaken", + "keyToSymbol", + "merge", + "mockChannel", + "optionOrAltSymbol", + "shortcutMatchesShortcut", + "shortcutToHumanString", + "types", + "useAddonState", + "useArgTypes", + "useArgs", + "useChannel", + "useGlobalTypes", + "useGlobals", + "useParameter", + "useSharedState", + "useStoryPrepared", + "useStorybookApi", + "useStorybookState" + ], + "storybook/internal/router": [ + "BaseLocationProvider", + "DEEPLY_EQUAL", + "Link", + "Location", + "LocationProvider", + "Match", + "Route", + "buildArgsParam", + "deepDiff", + "getMatch", + "parsePath", + "queryFromLocation", + "queryFromString", + "stringifyQuery", + "useNavigate" + ], + "@storybook/router": [ + "BaseLocationProvider", + "DEEPLY_EQUAL", + "Link", + "Location", + "LocationProvider", + "Match", + "Route", + "buildArgsParam", + "deepDiff", + "getMatch", + "parsePath", + "queryFromLocation", + "queryFromString", + "stringifyQuery", + "useNavigate" + ], + "@storybook/core/router": [ + "BaseLocationProvider", + "DEEPLY_EQUAL", + "Link", + "Location", + "LocationProvider", + "Match", + "Route", + "buildArgsParam", + "deepDiff", + "getMatch", + "parsePath", + "queryFromLocation", + "queryFromString", + "stringifyQuery", + "useNavigate" + ], + "storybook/internal/theming": [ + "CacheProvider", + "ClassNames", + "Global", + "ThemeProvider", + "background", + "color", + "convert", + "create", + "createCache", + "createGlobal", + "createReset", + "css", + "darken", + "ensure", + "ignoreSsrWarning", + "isPropValid", + "jsx", + "keyframes", + "lighten", + "styled", + "themes", + "typography", + "useTheme", + "withTheme" + ], + "@storybook/theming": [ + "CacheProvider", + "ClassNames", + "Global", + "ThemeProvider", + "background", + "color", + "convert", + "create", + "createCache", + "createGlobal", + "createReset", + "css", + "darken", + "ensure", + "ignoreSsrWarning", + "isPropValid", + "jsx", + "keyframes", + "lighten", + "styled", + "themes", + "typography", + "useTheme", + "withTheme" + ], + "@storybook/core/theming": [ + "CacheProvider", + "ClassNames", + "Global", + "ThemeProvider", + "background", + "color", + "convert", + "create", + "createCache", + "createGlobal", + "createReset", + "css", + "darken", + "ensure", + "ignoreSsrWarning", + "isPropValid", + "jsx", + "keyframes", + "lighten", + "styled", + "themes", + "typography", + "useTheme", + "withTheme" + ], + "storybook/internal/theming/create": ["create", "themes"], + "@storybook/theming/create": ["create", "themes"], + "@storybook/core/theming/create": ["create", "themes"], + "storybook/internal/channels": [ + "Channel", + "PostMessageTransport", + "WebsocketTransport", + "createBrowserChannel" + ], + "@storybook/channels": [ + "Channel", + "PostMessageTransport", + "WebsocketTransport", + "createBrowserChannel" + ], + "@storybook/core/channels": [ + "Channel", + "PostMessageTransport", + "WebsocketTransport", + "createBrowserChannel" + ], + "storybook/internal/core-errors": [ + "ARGTYPES_INFO_REQUEST", + "ARGTYPES_INFO_RESPONSE", + "CHANNEL_CREATED", + "CHANNEL_WS_DISCONNECT", + "CONFIG_ERROR", + "CREATE_NEW_STORYFILE_REQUEST", + "CREATE_NEW_STORYFILE_RESPONSE", + "CURRENT_STORY_WAS_SET", + "DOCS_PREPARED", + "DOCS_RENDERED", + "FILE_COMPONENT_SEARCH_REQUEST", + "FILE_COMPONENT_SEARCH_RESPONSE", + "FORCE_REMOUNT", + "FORCE_RE_RENDER", + "GLOBALS_UPDATED", + "NAVIGATE_URL", + "PLAY_FUNCTION_THREW_EXCEPTION", + "PRELOAD_ENTRIES", + "PREVIEW_BUILDER_PROGRESS", + "PREVIEW_KEYDOWN", + "REGISTER_SUBSCRIPTION", + "REQUEST_WHATS_NEW_DATA", + "RESET_STORY_ARGS", + "RESULT_WHATS_NEW_DATA", + "SAVE_STORY_REQUEST", + "SAVE_STORY_RESPONSE", + "SELECT_STORY", + "SET_CONFIG", + "SET_CURRENT_STORY", + "SET_GLOBALS", + "SET_INDEX", + "SET_STORIES", + "SET_WHATS_NEW_CACHE", + "SHARED_STATE_CHANGED", + "SHARED_STATE_SET", + "STORIES_COLLAPSE_ALL", + "STORIES_EXPAND_ALL", + "STORY_ARGS_UPDATED", + "STORY_CHANGED", + "STORY_ERRORED", + "STORY_INDEX_INVALIDATED", + "STORY_MISSING", + "STORY_PREPARED", + "STORY_RENDERED", + "STORY_RENDER_PHASE_CHANGED", + "STORY_SPECIFIED", + "STORY_THREW_EXCEPTION", + "STORY_UNCHANGED", + "TELEMETRY_ERROR", + "TOGGLE_WHATS_NEW_NOTIFICATIONS", + "UNHANDLED_ERRORS_WHILE_PLAYING", + "UPDATE_GLOBALS", + "UPDATE_QUERY_PARAMS", + "UPDATE_STORY_ARGS" + ], + "@storybook/core-events": [ + "ARGTYPES_INFO_REQUEST", + "ARGTYPES_INFO_RESPONSE", + "CHANNEL_CREATED", + "CHANNEL_WS_DISCONNECT", + "CONFIG_ERROR", + "CREATE_NEW_STORYFILE_REQUEST", + "CREATE_NEW_STORYFILE_RESPONSE", + "CURRENT_STORY_WAS_SET", + "DOCS_PREPARED", + "DOCS_RENDERED", + "FILE_COMPONENT_SEARCH_REQUEST", + "FILE_COMPONENT_SEARCH_RESPONSE", + "FORCE_REMOUNT", + "FORCE_RE_RENDER", + "GLOBALS_UPDATED", + "NAVIGATE_URL", + "PLAY_FUNCTION_THREW_EXCEPTION", + "PRELOAD_ENTRIES", + "PREVIEW_BUILDER_PROGRESS", + "PREVIEW_KEYDOWN", + "REGISTER_SUBSCRIPTION", + "REQUEST_WHATS_NEW_DATA", + "RESET_STORY_ARGS", + "RESULT_WHATS_NEW_DATA", + "SAVE_STORY_REQUEST", + "SAVE_STORY_RESPONSE", + "SELECT_STORY", + "SET_CONFIG", + "SET_CURRENT_STORY", + "SET_GLOBALS", + "SET_INDEX", + "SET_STORIES", + "SET_WHATS_NEW_CACHE", + "SHARED_STATE_CHANGED", + "SHARED_STATE_SET", + "STORIES_COLLAPSE_ALL", + "STORIES_EXPAND_ALL", + "STORY_ARGS_UPDATED", + "STORY_CHANGED", + "STORY_ERRORED", + "STORY_INDEX_INVALIDATED", + "STORY_MISSING", + "STORY_PREPARED", + "STORY_RENDERED", + "STORY_RENDER_PHASE_CHANGED", + "STORY_SPECIFIED", + "STORY_THREW_EXCEPTION", + "STORY_UNCHANGED", + "TELEMETRY_ERROR", + "TOGGLE_WHATS_NEW_NOTIFICATIONS", + "UNHANDLED_ERRORS_WHILE_PLAYING", + "UPDATE_GLOBALS", + "UPDATE_QUERY_PARAMS", + "UPDATE_STORY_ARGS" + ], + "@storybook/core/core-events": [ + "ARGTYPES_INFO_REQUEST", + "ARGTYPES_INFO_RESPONSE", + "CHANNEL_CREATED", + "CHANNEL_WS_DISCONNECT", + "CONFIG_ERROR", + "CREATE_NEW_STORYFILE_REQUEST", + "CREATE_NEW_STORYFILE_RESPONSE", + "CURRENT_STORY_WAS_SET", + "DOCS_PREPARED", + "DOCS_RENDERED", + "FILE_COMPONENT_SEARCH_REQUEST", + "FILE_COMPONENT_SEARCH_RESPONSE", + "FORCE_REMOUNT", + "FORCE_RE_RENDER", + "GLOBALS_UPDATED", + "NAVIGATE_URL", + "PLAY_FUNCTION_THREW_EXCEPTION", + "PRELOAD_ENTRIES", + "PREVIEW_BUILDER_PROGRESS", + "PREVIEW_KEYDOWN", + "REGISTER_SUBSCRIPTION", + "REQUEST_WHATS_NEW_DATA", + "RESET_STORY_ARGS", + "RESULT_WHATS_NEW_DATA", + "SAVE_STORY_REQUEST", + "SAVE_STORY_RESPONSE", + "SELECT_STORY", + "SET_CONFIG", + "SET_CURRENT_STORY", + "SET_GLOBALS", + "SET_INDEX", + "SET_STORIES", + "SET_WHATS_NEW_CACHE", + "SHARED_STATE_CHANGED", + "SHARED_STATE_SET", + "STORIES_COLLAPSE_ALL", + "STORIES_EXPAND_ALL", + "STORY_ARGS_UPDATED", + "STORY_CHANGED", + "STORY_ERRORED", + "STORY_INDEX_INVALIDATED", + "STORY_MISSING", + "STORY_PREPARED", + "STORY_RENDERED", + "STORY_RENDER_PHASE_CHANGED", + "STORY_SPECIFIED", + "STORY_THREW_EXCEPTION", + "STORY_UNCHANGED", + "TELEMETRY_ERROR", + "TOGGLE_WHATS_NEW_NOTIFICATIONS", + "UNHANDLED_ERRORS_WHILE_PLAYING", + "UPDATE_GLOBALS", + "UPDATE_QUERY_PARAMS", + "UPDATE_STORY_ARGS" + ], + "storybook/internal/types": ["Addon_TypesEnum"], + "@storybook/types": ["Addon_TypesEnum"], + "@storybook/core/types": ["Addon_TypesEnum"], + "storybook/internal/manager-errors": [ + "Category", + "ProviderDoesNotExtendBaseProviderError", + "UncaughtManagerError" + ], + "@storybook/core-events/manager-errors": [ + "Category", + "ProviderDoesNotExtendBaseProviderError", + "UncaughtManagerError" + ], + "@storybook/core/manager-errors": [ + "Category", + "ProviderDoesNotExtendBaseProviderError", + "UncaughtManagerError" + ], + "storybook/internal/client-logger": ["deprecate", "logger", "once", "pretty"], + "@storybook/client-logger": ["deprecate", "logger", "once", "pretty"], + "@storybook/core/client-logger": ["deprecate", "logger", "once", "pretty"] +}; + +// src/manager/globals/globals.ts +var e = { + react: "__REACT__", + "react-dom": "__REACT_DOM__", + "react-dom/client": "__REACT_DOM_CLIENT__", + "@storybook/icons": "__STORYBOOK_ICONS__", + "storybook/internal/manager-api": "__STORYBOOK_API__", + "@storybook/manager-api": "__STORYBOOK_API__", + "@storybook/core/manager-api": "__STORYBOOK_API__", + "storybook/internal/components": "__STORYBOOK_COMPONENTS__", + "@storybook/components": "__STORYBOOK_COMPONENTS__", + "@storybook/core/components": "__STORYBOOK_COMPONENTS__", + "storybook/internal/channels": "__STORYBOOK_CHANNELS__", + "@storybook/channels": "__STORYBOOK_CHANNELS__", + "@storybook/core/channels": "__STORYBOOK_CHANNELS__", + "storybook/internal/core-errors": "__STORYBOOK_CORE_EVENTS__", + "@storybook/core-events": "__STORYBOOK_CORE_EVENTS__", + "@storybook/core/core-events": "__STORYBOOK_CORE_EVENTS__", + "storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__", + "@storybook/core-events/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__", + "@storybook/core/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__", + "storybook/internal/router": "__STORYBOOK_ROUTER__", + "@storybook/router": "__STORYBOOK_ROUTER__", + "@storybook/core/router": "__STORYBOOK_ROUTER__", + "storybook/internal/theming": "__STORYBOOK_THEMING__", + "@storybook/theming": "__STORYBOOK_THEMING__", + "@storybook/core/theming": "__STORYBOOK_THEMING__", + "storybook/internal/theming/create": "__STORYBOOK_THEMING_CREATE__", + "@storybook/theming/create": "__STORYBOOK_THEMING_CREATE__", + "@storybook/core/theming/create": "__STORYBOOK_THEMING_CREATE__", + "storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__", + "@storybook/client-logger": "__STORYBOOK_CLIENT_LOGGER__", + "@storybook/core/client-logger": "__STORYBOOK_CLIENT_LOGGER__", + "storybook/internal/types": "__STORYBOOK_TYPES__", + "@storybook/types": "__STORYBOOK_TYPES__", + "@storybook/core/types": "__STORYBOOK_TYPES__" +}, n = Object.keys(e); + +// src/manager/globals/globals-module-info.ts +var S = n.reduce( + (r, o) => (r[o] = { + type: "esm", + varName: e[o], + namedExports: t[o], + defaultExport: !0 + }, r), + {} +); +export { + S as globalsModuleInfoMap +}; diff --git a/storybook/sb-manager/globals-runtime.js b/storybook/sb-manager/globals-runtime.js new file mode 100644 index 0000000..06c0afb --- /dev/null +++ b/storybook/sb-manager/globals-runtime.js @@ -0,0 +1,53525 @@ +var pfe = Object.create; +var Lm = Object.defineProperty; +var hfe = Object.getOwnPropertyDescriptor; +var mfe = Object.getOwnPropertyNames; +var vfe = Object.getPrototypeOf, gfe = Object.prototype.hasOwnProperty; +var yfe = (e, t, r) => t in e ? Lm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; +var a = (e, t) => Lm(e, "name", { value: t, configurable: !0 }), Pm = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < +"u" ? new Proxy(e, { + get: (t, r) => (typeof require < "u" ? require : t)[r] +}) : e)(function(e) { + if (typeof require < "u") return require.apply(this, arguments); + throw Error('Dynamic require of "' + e + '" is not supported'); +}); +var G = (e, t) => () => (e && (t = e(e = 0)), t); +var P = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Ft = (e, t) => { + for (var r in t) + Lm(e, r, { get: t[r], enumerable: !0 }); +}, bfe = (e, t, r, o) => { + if (t && typeof t == "object" || typeof t == "function") + for (let s of mfe(t)) + !gfe.call(e, s) && s !== r && Lm(e, s, { get: () => t[s], enumerable: !(o = hfe(t, s)) || o.enumerable }); + return e; +}; +var te = (e, t, r) => (r = e != null ? pfe(vfe(e)) : {}, bfe( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + t || !e || !e.__esModule ? Lm(r, "default", { value: e, enumerable: !0 }) : r, + e +)); +var y5 = (e, t, r) => yfe(e, typeof t != "symbol" ? t + "" : t, r); + +// ../node_modules/@storybook/global/dist/index.mjs +var xe, hr = G(() => { + xe = (() => { + let e; + return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ? + e = self : e = {}, e; + })(); +}); + +// ../node_modules/react/cjs/react.development.js +var CI = P((ft, S5) => { + "use strict"; + (function() { + "use strict"; + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__. + registerInternalModuleStart(new Error()); + var e = "18.2.0", t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("rea\ +ct.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), h = Symbol.for("react\ +.forward_ref"), v = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react\ +.lazy"), E = Symbol.for("react.offscreen"), D = Symbol.iterator, C = "@@iterator"; + function R(_) { + if (_ === null || typeof _ != "object") + return null; + var H = D && _[D] || _[C]; + return typeof H == "function" ? H : null; + } + a(R, "getIteratorFn"); + var I = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }, O = { + transition: null + }, F = { + current: null, + // Used to reproduce behavior of `batchedUpdates` in legacy mode. + isBatchingLegacy: !1, + didScheduleLegacyUpdate: !1 + }, M = { + /** + * @internal + * @type {ReactComponent} + */ + current: null + }, N = {}, B = null; + function $(_) { + B = _; + } + a($, "setExtraStackFrame"), N.setExtraStackFrame = function(_) { + B = _; + }, N.getCurrentStack = null, N.getStackAddendum = function() { + var _ = ""; + B && (_ += B); + var H = N.getCurrentStack; + return H && (_ += H() || ""), _; + }; + var U = !1, q = !1, ee = !1, ie = !1, le = !1, ae = { + ReactCurrentDispatcher: I, + ReactCurrentBatchConfig: O, + ReactCurrentOwner: M + }; + ae.ReactDebugCurrentFrame = N, ae.ReactCurrentActQueue = F; + function he(_) { + { + for (var H = arguments.length, X = new Array(H > 1 ? H - 1 : 0), re = 1; re < H; re++) + X[re - 1] = arguments[re]; + ue("warn", _, X); + } + } + a(he, "warn"); + function J(_) { + { + for (var H = arguments.length, X = new Array(H > 1 ? H - 1 : 0), re = 1; re < H; re++) + X[re - 1] = arguments[re]; + ue("error", _, X); + } + } + a(J, "error"); + function ue(_, H, X) { + { + var re = ae.ReactDebugCurrentFrame, de = re.getStackAddendum(); + de !== "" && (H += "%s", X = X.concat([de])); + var He = X.map(function(Fe) { + return String(Fe); + }); + He.unshift("Warning: " + H), Function.prototype.apply.call(console[_], console, He); + } + } + a(ue, "printWarning"); + var De = {}; + function ke(_, H) { + { + var X = _.constructor, re = X && (X.displayName || X.name) || "ReactClass", de = re + "." + H; + if (De[de]) + return; + J("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, \ +assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", H, re), De[de] = !0; + } + } + a(ke, "warnNoop"); + var Te = { + /** + * Checks whether or not this composite component is mounted. + * @param {ReactClass} publicInstance The instance we want to test. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: /* @__PURE__ */ a(function(_) { + return !1; + }, "isMounted"), + /** + * Forces an update. This should only be invoked when it is known with + * certainty that we are **not** in a DOM transaction. + * + * You may want to call this when you know that some deeper aspect of the + * component's state has changed but `setState` was not called. + * + * This will not invoke `shouldComponentUpdate`, but it will invoke + * `componentWillUpdate` and `componentDidUpdate`. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueForceUpdate: /* @__PURE__ */ a(function(_, H, X) { + ke(_, "forceUpdate"); + }, "enqueueForceUpdate"), + /** + * Replaces all of the state. Always use this or `setState` to mutate state. + * You should treat `this.state` as immutable. + * + * There is no guarantee that `this.state` will be immediately updated, so + * accessing `this.state` after calling this method may return the old value. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} completeState Next state. + * @param {?function} callback Called after component is updated. + * @param {?string} callerName name of the calling function in the public API. + * @internal + */ + enqueueReplaceState: /* @__PURE__ */ a(function(_, H, X, re) { + ke(_, "replaceState"); + }, "enqueueReplaceState"), + /** + * Sets a subset of the state. This only exists because _pendingState is + * internal. This provides a merging strategy that is not available to deep + * properties which is confusing. TODO: Expose pendingState or don't use it + * during the merge. + * + * @param {ReactClass} publicInstance The instance that should rerender. + * @param {object} partialState Next partial state to be merged with state. + * @param {?function} callback Called after component is updated. + * @param {?string} Name of the calling function in the public API. + * @internal + */ + enqueueSetState: /* @__PURE__ */ a(function(_, H, X, re) { + ke(_, "setState"); + }, "enqueueSetState") + }, $e = Object.assign, Be = {}; + Object.freeze(Be); + function Ye(_, H, X) { + this.props = _, this.context = H, this.refs = Be, this.updater = X || Te; + } + a(Ye, "Component"), Ye.prototype.isReactComponent = {}, Ye.prototype.setState = function(_, H) { + if (typeof _ != "object" && typeof _ != "function" && _ != null) + throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variable\ +s."); + this.updater.enqueueSetState(this, _, H, "setState"); + }, Ye.prototype.forceUpdate = function(_) { + this.updater.enqueueForceUpdate(this, _, "forceUpdate"); + }; + { + var pt = { + isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memor\ +y leaks."], + replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] + }, lt = /* @__PURE__ */ a(function(_, H) { + Object.defineProperty(Ye.prototype, _, { + get: /* @__PURE__ */ a(function() { + he("%s(...) is deprecated in plain JavaScript React classes. %s", H[0], H[1]); + }, "get") + }); + }, "defineDeprecationWarning"); + for (var ht in pt) + pt.hasOwnProperty(ht) && lt(ht, pt[ht]); + } + function St() { + } + a(St, "ComponentDummy"), St.prototype = Ye.prototype; + function _t(_, H, X) { + this.props = _, this.context = H, this.refs = Be, this.updater = X || Te; + } + a(_t, "PureComponent"); + var Ut = _t.prototype = new St(); + Ut.constructor = _t, $e(Ut, Ye.prototype), Ut.isPureReactComponent = !0; + function Or() { + var _ = { + current: null + }; + return Object.seal(_), _; + } + a(Or, "createRef"); + var Wn = Array.isArray; + function br(_) { + return Wn(_); + } + a(br, "isArray"); + function _e(_) { + { + var H = typeof Symbol == "function" && Symbol.toStringTag, X = H && _[Symbol.toStringTag] || _.constructor.name || "Object"; + return X; + } + } + a(_e, "typeName"); + function or(_) { + try { + return ir(_), !1; + } catch { + return !0; + } + } + a(or, "willCoercionThrow"); + function ir(_) { + return "" + _; + } + a(ir, "testStringCoercion"); + function dr(_) { + if (or(_)) + return J("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _e(_)), ir( + _); + } + a(dr, "checkKeyStringCoercion"); + function Gn(_, H, X) { + var re = _.displayName; + if (re) + return re; + var de = H.displayName || H.name || ""; + return de !== "" ? X + "(" + de + ")" : X; + } + a(Gn, "getWrappedName"); + function ln(_) { + return _.displayName || "Context"; + } + a(ln, "getContextName"); + function ve(_) { + if (_ == null) + return null; + if (typeof _.tag == "number" && J("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please \ +file an issue."), typeof _ == "function") + return _.displayName || _.name || null; + if (typeof _ == "string") + return _; + switch (_) { + case o: + return "Fragment"; + case r: + return "Portal"; + case l: + return "Profiler"; + case s: + return "StrictMode"; + case v: + return "Suspense"; + case g: + return "SuspenseList"; + } + if (typeof _ == "object") + switch (_.$$typeof) { + case p: + var H = _; + return ln(H) + ".Consumer"; + case c: + var X = _; + return ln(X._context) + ".Provider"; + case h: + return Gn(_, _.render, "ForwardRef"); + case b: + var re = _.displayName || null; + return re !== null ? re : ve(_.type) || "Memo"; + case w: { + var de = _, He = de._payload, Fe = de._init; + try { + return ve(Fe(He)); + } catch { + return null; + } + } + } + return null; + } + a(ve, "getComponentNameFromType"); + var Xa = Object.prototype.hasOwnProperty, ha = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }, Fo, Io, un; + un = {}; + function ma(_) { + if (Xa.call(_, "ref")) { + var H = Object.getOwnPropertyDescriptor(_, "ref").get; + if (H && H.isReactWarning) + return !1; + } + return _.ref !== void 0; + } + a(ma, "hasValidRef"); + function Yn(_) { + if (Xa.call(_, "key")) { + var H = Object.getOwnPropertyDescriptor(_, "key").get; + if (H && H.isReactWarning) + return !1; + } + return _.key !== void 0; + } + a(Yn, "hasValidKey"); + function Qa(_, H) { + var X = /* @__PURE__ */ a(function() { + Fo || (Fo = !0, J("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the\ + same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", H)); + }, "warnAboutAccessingKey"); + X.isReactWarning = !0, Object.defineProperty(_, "key", { + get: X, + configurable: !0 + }); + } + a(Qa, "defineKeyPropWarningGetter"); + function cn(_, H) { + var X = /* @__PURE__ */ a(function() { + Io || (Io = !0, J("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the\ + same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", H)); + }, "warnAboutAccessingRef"); + X.isReactWarning = !0, Object.defineProperty(_, "ref", { + get: X, + configurable: !0 + }); + } + a(cn, "defineRefPropWarningGetter"); + function Fa(_) { + if (typeof _.ref == "string" && M.current && _.__self && M.current.stateNode !== _.__self) { + var H = ve(M.current.type); + un[H] || (J('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This ca\ +se cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Le\ +arn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', H, _.ref), un[H] = !0); + } + } + a(Fa, "warnIfStringRefCannotBeAutoConverted"); + var qs = /* @__PURE__ */ a(function(_, H, X, re, de, He, Fe) { + var Ke = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: t, + // Built-in properties that belong on the element + type: _, + key: H, + ref: X, + props: Fe, + // Record the component responsible for creating this element. + _owner: He + }; + return Ke._store = {}, Object.defineProperty(Ke._store, "validated", { + configurable: !1, + enumerable: !1, + writable: !0, + value: !1 + }), Object.defineProperty(Ke, "_self", { + configurable: !1, + enumerable: !1, + writable: !1, + value: re + }), Object.defineProperty(Ke, "_source", { + configurable: !1, + enumerable: !1, + writable: !1, + value: de + }), Object.freeze && (Object.freeze(Ke.props), Object.freeze(Ke)), Ke; + }, "ReactElement"); + function Jc(_, H, X) { + var re, de = {}, He = null, Fe = null, Ke = null, ut = null; + if (H != null) { + ma(H) && (Fe = H.ref, Fa(H)), Yn(H) && (dr(H.key), He = "" + H.key), Ke = H.__self === void 0 ? null : H.__self, ut = H.__source === + void 0 ? null : H.__source; + for (re in H) + Xa.call(H, re) && !ha.hasOwnProperty(re) && (de[re] = H[re]); + } + var Ct = arguments.length - 2; + if (Ct === 1) + de.children = X; + else if (Ct > 1) { + for (var Nt = Array(Ct), Bt = 0; Bt < Ct; Bt++) + Nt[Bt] = arguments[Bt + 2]; + Object.freeze && Object.freeze(Nt), de.children = Nt; + } + if (_ && _.defaultProps) { + var zt = _.defaultProps; + for (re in zt) + de[re] === void 0 && (de[re] = zt[re]); + } + if (He || Fe) { + var tr = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _; + He && Qa(de, tr), Fe && cn(de, tr); + } + return qs(_, He, Fe, Ke, ut, M.current, de); + } + a(Jc, "createElement"); + function Se(_, H) { + var X = qs(_.type, H, _.ref, _._self, _._source, _._owner, _.props); + return X; + } + a(Se, "cloneAndReplaceKey"); + function Me(_, H, X) { + if (_ == null) + throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + _ + "."); + var re, de = $e({}, _.props), He = _.key, Fe = _.ref, Ke = _._self, ut = _._source, Ct = _._owner; + if (H != null) { + ma(H) && (Fe = H.ref, Ct = M.current), Yn(H) && (dr(H.key), He = "" + H.key); + var Nt; + _.type && _.type.defaultProps && (Nt = _.type.defaultProps); + for (re in H) + Xa.call(H, re) && !ha.hasOwnProperty(re) && (H[re] === void 0 && Nt !== void 0 ? de[re] = Nt[re] : de[re] = H[re]); + } + var Bt = arguments.length - 2; + if (Bt === 1) + de.children = X; + else if (Bt > 1) { + for (var zt = Array(Bt), tr = 0; tr < Bt; tr++) + zt[tr] = arguments[tr + 2]; + de.children = zt; + } + return qs(_.type, He, Fe, Ke, ut, Ct, de); + } + a(Me, "cloneElement"); + function Qe(_) { + return typeof _ == "object" && _ !== null && _.$$typeof === t; + } + a(Qe, "isValidElement"); + var Dt = ".", qt = ":"; + function Fn(_) { + var H = /[=:]/g, X = { + "=": "=0", + ":": "=2" + }, re = _.replace(H, function(de) { + return X[de]; + }); + return "$" + re; + } + a(Fn, "escape"); + var Sr = !1, Ja = /\/+/g; + function er(_) { + return _.replace(Ja, "$&/"); + } + a(er, "escapeUserProvidedKey"); + function Za(_, H) { + return typeof _ == "object" && _ !== null && _.key != null ? (dr(_.key), Fn("" + _.key)) : H.toString(36); + } + a(Za, "getElementKey"); + function wr(_, H, X, re, de) { + var He = typeof _; + (He === "undefined" || He === "boolean") && (_ = null); + var Fe = !1; + if (_ === null) + Fe = !0; + else + switch (He) { + case "string": + case "number": + Fe = !0; + break; + case "object": + switch (_.$$typeof) { + case t: + case r: + Fe = !0; + } + } + if (Fe) { + var Ke = _, ut = de(Ke), Ct = re === "" ? Dt + Za(Ke, 0) : re; + if (br(ut)) { + var Nt = ""; + Ct != null && (Nt = er(Ct) + "/"), wr(ut, H, Nt, "", function(oh) { + return oh; + }); + } else ut != null && (Qe(ut) && (ut.key && (!Ke || Ke.key !== ut.key) && dr(ut.key), ut = Se( + ut, + // Keep both the (mapped) and old keys if they differ, just as + // traverseAllChildren used to do for objects as children + X + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key + (ut.key && (!Ke || Ke.key !== ut.key) ? ( + // $FlowFixMe Flow incorrectly thinks existing element's key can be a number + // eslint-disable-next-line react-internal/safe-string-coercion + er("" + ut.key) + "/" + ) : "") + Ct + )), H.push(ut)); + return 1; + } + var Bt, zt, tr = 0, Ir = re === "" ? Dt : re + qt; + if (br(_)) + for (var df = 0; df < _.length; df++) + Bt = _[df], zt = Ir + Za(Bt, df), tr += wr(Bt, H, X, zt, de); + else { + var Lr = R(_); + if (typeof Lr == "function") { + var pf = _; + Lr === pf.entries && (Sr || he("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Sr = !0); + for (var yg = Lr.call(pf), ah, YS = 0; !(ah = yg.next()).done; ) + Bt = ah.value, zt = Ir + Za(Bt, YS++), tr += wr(Bt, H, X, zt, de); + } else if (He === "object") { + var Xi = String(_); + throw new Error("Objects are not valid as a React child (found: " + (Xi === "[object Object]" ? "object with keys {" + Object.keys( + _).join(", ") + "}" : Xi) + "). If you meant to render a collection of children, use an array instead."); + } + } + return tr; + } + a(wr, "mapIntoArray"); + function sr(_, H, X) { + if (_ == null) + return _; + var re = [], de = 0; + return wr(_, re, "", "", function(He) { + return H.call(X, He, de++); + }), re; + } + a(sr, "mapChildren"); + function LS(_) { + var H = 0; + return sr(_, function() { + H++; + }), H; + } + a(LS, "countChildren"); + function z0(_, H, X) { + sr(_, function() { + H.apply(this, arguments); + }, X); + } + a(z0, "forEachChildren"); + function j0(_) { + return sr(_, function(H) { + return H; + }) || []; + } + a(j0, "toArray"); + function PS(_) { + if (!Qe(_)) + throw new Error("React.Children.only expected to receive a single React element child."); + return _; + } + a(PS, "onlyChild"); + function kS(_) { + var H = { + $$typeof: p, + // As a workaround to support multiple concurrent renderers, we categorize + // some renderers as primary and others as secondary. We only expect + // there to be two concurrent renderers at most: React Native (primary) and + // Fabric (secondary); React DOM (primary) and React ART (secondary). + // Secondary renderers store their context values on separate fields. + _currentValue: _, + _currentValue2: _, + // Used to track how many concurrent renderers this context currently + // supports within in a single renderer. Such as parallel server rendering. + _threadCount: 0, + // These are circular + Provider: null, + Consumer: null, + // Add these to use same hidden class in VM as ServerContext + _defaultValue: null, + _globalName: null + }; + H.Provider = { + $$typeof: c, + _context: H + }; + var X = !1, re = !1, de = !1; + { + var He = { + $$typeof: p, + _context: H + }; + Object.defineProperties(He, { + Provider: { + get: /* @__PURE__ */ a(function() { + return re || (re = !0, J("Rendering is not supported and will be removed in a future major release\ +. Did you mean to render instead?")), H.Provider; + }, "get"), + set: /* @__PURE__ */ a(function(Fe) { + H.Provider = Fe; + }, "set") + }, + _currentValue: { + get: /* @__PURE__ */ a(function() { + return H._currentValue; + }, "get"), + set: /* @__PURE__ */ a(function(Fe) { + H._currentValue = Fe; + }, "set") + }, + _currentValue2: { + get: /* @__PURE__ */ a(function() { + return H._currentValue2; + }, "get"), + set: /* @__PURE__ */ a(function(Fe) { + H._currentValue2 = Fe; + }, "set") + }, + _threadCount: { + get: /* @__PURE__ */ a(function() { + return H._threadCount; + }, "get"), + set: /* @__PURE__ */ a(function(Fe) { + H._threadCount = Fe; + }, "set") + }, + Consumer: { + get: /* @__PURE__ */ a(function() { + return X || (X = !0, J("Rendering is not supported and will be removed in a future major release. \ +Did you mean to render instead?")), H.Consumer; + }, "get") + }, + displayName: { + get: /* @__PURE__ */ a(function() { + return H.displayName; + }, "get"), + set: /* @__PURE__ */ a(function(Fe) { + de || (he("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.dis\ +playName = '%s'.", Fe), de = !0); + }, "set") + } + }), H.Consumer = He; + } + return H._currentRenderer = null, H._currentRenderer2 = null, H; + } + a(kS, "createContext"); + var Vs = -1, Zc = 0, og = 1, ig = 2; + function U0(_) { + if (_._status === Vs) { + var H = _._result, X = H(); + if (X.then(function(He) { + if (_._status === Zc || _._status === Vs) { + var Fe = _; + Fe._status = og, Fe._result = He; + } + }, function(He) { + if (_._status === Zc || _._status === Vs) { + var Fe = _; + Fe._status = ig, Fe._result = He; + } + }), _._status === Vs) { + var re = _; + re._status = Zc, re._result = X; + } + } + if (_._status === og) { + var de = _._result; + return de === void 0 && J(`lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent')) + +Did you accidentally put curly braces around the import?`, de), "default" in de || J(`lazy: Expected the result of a dynamic import() call. \ +Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`, de), de.default; + } else + throw _._result; + } + a(U0, "lazyInitializer"); + function Ws(_) { + var H = { + // We use these fields to store the result. + _status: Vs, + _result: _ + }, X = { + $$typeof: w, + _payload: H, + _init: U0 + }; + { + var re, de; + Object.defineProperties(X, { + defaultProps: { + configurable: !0, + get: /* @__PURE__ */ a(function() { + return re; + }, "get"), + set: /* @__PURE__ */ a(function(He) { + J("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the com\ +ponent is defined, or create a wrapping component around it."), re = He, Object.defineProperty(X, "defaultProps", { + enumerable: !0 + }); + }, "set") + }, + propTypes: { + configurable: !0, + get: /* @__PURE__ */ a(function() { + return de; + }, "get"), + set: /* @__PURE__ */ a(function(He) { + J("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the compon\ +ent is defined, or create a wrapping component around it."), de = He, Object.defineProperty(X, "propTypes", { + enumerable: !0 + }); + }, "set") + } + }); + } + return X; + } + a(Ws, "lazy"); + function Wi(_) { + _ != null && _.$$typeof === b ? J("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(.\ +..)), use memo(forwardRef(...)).") : typeof _ != "function" ? J("forwardRef requires a render function but was given %s.", _ === null ? "nul\ +l" : typeof _) : _.length !== 0 && _.length !== 2 && J("forwardRef render functions accept exactly two parameters: props and ref. %s", _.length === + 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), _ != null && (_.defaultProps != null || + _.propTypes != null) && J("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React com\ +ponent?"); + var H = { + $$typeof: h, + render: _ + }; + { + var X; + Object.defineProperty(H, "displayName", { + enumerable: !1, + configurable: !0, + get: /* @__PURE__ */ a(function() { + return X; + }, "get"), + set: /* @__PURE__ */ a(function(re) { + X = re, !_.name && !_.displayName && (_.displayName = re); + }, "set") + }); + } + return H; + } + a(Wi, "forwardRef"); + var Gi; + Gi = Symbol.for("react.module.reference"); + function ef(_) { + return !!(typeof _ == "string" || typeof _ == "function" || _ === o || _ === l || le || _ === s || _ === v || _ === g || ie || _ === E || + U || q || ee || typeof _ == "object" && _ !== null && (_.$$typeof === w || _.$$typeof === b || _.$$typeof === c || _.$$typeof === p || + _.$$typeof === h || // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. + _.$$typeof === Gi || _.getModuleId !== void 0)); + } + a(ef, "isValidElementType"); + function q0(_, H) { + ef(_) || J("memo: The first argument must be a component. Instead received: %s", _ === null ? "null" : typeof _); + var X = { + $$typeof: b, + type: _, + compare: H === void 0 ? null : H + }; + { + var re; + Object.defineProperty(X, "displayName", { + enumerable: !1, + configurable: !0, + get: /* @__PURE__ */ a(function() { + return re; + }, "get"), + set: /* @__PURE__ */ a(function(de) { + re = de, !_.name && !_.displayName && (_.displayName = de); + }, "set") + }); + } + return X; + } + a(q0, "memo"); + function Fr() { + var _ = I.current; + return _ === null && J(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for \ +one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), _; + } + a(Fr, "resolveDispatcher"); + function V0(_) { + var H = Fr(); + if (_._context !== void 0) { + var X = _._context; + X.Consumer === _ ? J("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major r\ +elease. Did you mean to call useContext(Context) instead?") : X.Provider === _ && J("Calling useContext(Context.Provider) is not supported. \ +Did you mean to call useContext(Context) instead?"); + } + return H.useContext(_); + } + a(V0, "useContext"); + function Gs(_) { + var H = Fr(); + return H.useState(_); + } + a(Gs, "useState"); + function tf(_, H, X) { + var re = Fr(); + return re.useReducer(_, H, X); + } + a(tf, "useReducer"); + function rf(_) { + var H = Fr(); + return H.useRef(_); + } + a(rf, "useRef"); + function pu(_, H) { + var X = Fr(); + return X.useEffect(_, H); + } + a(pu, "useEffect"); + function fn(_, H) { + var X = Fr(); + return X.useInsertionEffect(_, H); + } + a(fn, "useInsertionEffect"); + function MS(_, H) { + var X = Fr(); + return X.useLayoutEffect(_, H); + } + a(MS, "useLayoutEffect"); + function NS(_, H) { + var X = Fr(); + return X.useCallback(_, H); + } + a(NS, "useCallback"); + function sg(_, H) { + var X = Fr(); + return X.useMemo(_, H); + } + a(sg, "useMemo"); + function BS(_, H, X) { + var re = Fr(); + return re.useImperativeHandle(_, H, X); + } + a(BS, "useImperativeHandle"); + function $S(_, H) { + { + var X = Fr(); + return X.useDebugValue(_, H); + } + } + a($S, "useDebugValue"); + function HS() { + var _ = Fr(); + return _.useTransition(); + } + a(HS, "useTransition"); + function lg(_) { + var H = Fr(); + return H.useDeferredValue(_); + } + a(lg, "useDeferredValue"); + function zS() { + var _ = Fr(); + return _.useId(); + } + a(zS, "useId"); + function Yi(_, H, X) { + var re = Fr(); + return re.useSyncExternalStore(_, H, X); + } + a(Yi, "useSyncExternalStore"); + var et = 0, Ys, W0, G0, Y0, K0, X0, Q0; + function J0() { + } + a(J0, "disabledLog"), J0.__reactDisabledLog = !0; + function ug() { + { + if (et === 0) { + Ys = console.log, W0 = console.info, G0 = console.warn, Y0 = console.error, K0 = console.group, X0 = console.groupCollapsed, Q0 = console. + groupEnd; + var _ = { + configurable: !0, + enumerable: !0, + value: J0, + writable: !0 + }; + Object.defineProperties(console, { + info: _, + log: _, + warn: _, + error: _, + group: _, + groupCollapsed: _, + groupEnd: _ + }); + } + et++; + } + } + a(ug, "disableLogs"); + function jS() { + { + if (et--, et === 0) { + var _ = { + configurable: !0, + enumerable: !0, + writable: !0 + }; + Object.defineProperties(console, { + log: $e({}, _, { + value: Ys + }), + info: $e({}, _, { + value: W0 + }), + warn: $e({}, _, { + value: G0 + }), + error: $e({}, _, { + value: Y0 + }), + group: $e({}, _, { + value: K0 + }), + groupCollapsed: $e({}, _, { + value: X0 + }), + groupEnd: $e({}, _, { + value: Q0 + }) + }); + } + et < 0 && J("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + a(jS, "reenableLogs"); + var Z0 = ae.ReactCurrentDispatcher, hu; + function Ks(_, H, X) { + { + if (hu === void 0) + try { + throw Error(); + } catch (de) { + var re = de.stack.trim().match(/\n( *(at )?)/); + hu = re && re[1] || ""; + } + return ` +` + hu + _; + } + } + a(Ks, "describeBuiltInComponentFrame"); + var eo = !1, Xs; + { + var nf = typeof WeakMap == "function" ? WeakMap : Map; + Xs = new nf(); + } + function cg(_, H) { + if (!_ || eo) + return ""; + { + var X = Xs.get(_); + if (X !== void 0) + return X; + } + var re; + eo = !0; + var de = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var He; + He = Z0.current, Z0.current = null, ug(); + try { + if (H) { + var Fe = /* @__PURE__ */ a(function() { + throw Error(); + }, "Fake"); + if (Object.defineProperty(Fe.prototype, "props", { + set: /* @__PURE__ */ a(function() { + throw Error(); + }, "set") + }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(Fe, []); + } catch (Ir) { + re = Ir; + } + Reflect.construct(_, [], Fe); + } else { + try { + Fe.call(); + } catch (Ir) { + re = Ir; + } + _.call(Fe.prototype); + } + } else { + try { + throw Error(); + } catch (Ir) { + re = Ir; + } + _(); + } + } catch (Ir) { + if (Ir && re && typeof Ir.stack == "string") { + for (var Ke = Ir.stack.split(` +`), ut = re.stack.split(` +`), Ct = Ke.length - 1, Nt = ut.length - 1; Ct >= 1 && Nt >= 0 && Ke[Ct] !== ut[Nt]; ) + Nt--; + for (; Ct >= 1 && Nt >= 0; Ct--, Nt--) + if (Ke[Ct] !== ut[Nt]) { + if (Ct !== 1 || Nt !== 1) + do + if (Ct--, Nt--, Nt < 0 || Ke[Ct] !== ut[Nt]) { + var Bt = ` +` + Ke[Ct].replace(" at new ", " at "); + return _.displayName && Bt.includes("") && (Bt = Bt.replace("", _.displayName)), typeof _ == "func\ +tion" && Xs.set(_, Bt), Bt; + } + while (Ct >= 1 && Nt >= 0); + break; + } + } + } finally { + eo = !1, Z0.current = He, jS(), Error.prepareStackTrace = de; + } + var zt = _ ? _.displayName || _.name : "", tr = zt ? Ks(zt) : ""; + return typeof _ == "function" && Xs.set(_, tr), tr; + } + a(cg, "describeNativeComponentFrame"); + function eh(_, H, X) { + return cg(_, !1); + } + a(eh, "describeFunctionComponentFrame"); + function US(_) { + var H = _.prototype; + return !!(H && H.isReactComponent); + } + a(US, "shouldConstruct"); + function Qs(_, H, X) { + if (_ == null) + return ""; + if (typeof _ == "function") + return cg(_, US(_)); + if (typeof _ == "string") + return Ks(_); + switch (_) { + case v: + return Ks("Suspense"); + case g: + return Ks("SuspenseList"); + } + if (typeof _ == "object") + switch (_.$$typeof) { + case h: + return eh(_.render); + case b: + return Qs(_.type, H, X); + case w: { + var re = _, de = re._payload, He = re._init; + try { + return Qs(He(de), H, X); + } catch { + } + } + } + return ""; + } + a(Qs, "describeUnknownElementTypeFrameInDEV"); + var fg = {}, af = ae.ReactDebugCurrentFrame; + function of(_) { + if (_) { + var H = _._owner, X = Qs(_.type, _._source, H ? H.type : null); + af.setExtraStackFrame(X); + } else + af.setExtraStackFrame(null); + } + a(of, "setCurrentlyValidatingElement"); + function dg(_, H, X, re, de) { + { + var He = Function.call.bind(Xa); + for (var Fe in _) + if (He(_, Fe)) { + var Ke = void 0; + try { + if (typeof _[Fe] != "function") { + var ut = Error((re || "React class") + ": " + X + " type `" + Fe + "` is invalid; it must be a function, usually from the `p\ +rop-types` package, but received `" + typeof _[Fe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTyp\ +es.func`."); + throw ut.name = "Invariant Violation", ut; + } + Ke = _[Fe](H, Fe, re, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (Ct) { + Ke = Ct; + } + Ke && !(Ke instanceof Error) && (of(de), J("%s: type specification of %s `%s` is invalid; the type checker function must return \ +`null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectO\ +f, oneOf, oneOfType, and shape all require an argument).", re || "React class", X, Fe, typeof Ke), of(null)), Ke instanceof Error && !(Ke.message in + fg) && (fg[Ke.message] = !0, of(de), J("Failed %s type: %s", X, Ke.message), of(null)); + } + } + } + a(dg, "checkPropTypes"); + function Js(_) { + if (_) { + var H = _._owner, X = Qs(_.type, _._source, H ? H.type : null); + $(X); + } else + $(null); + } + a(Js, "setCurrentlyValidatingElement$1"); + var sf; + sf = !1; + function Ot() { + if (M.current) { + var _ = ve(M.current.type); + if (_) + return ` + +Check the render method of \`` + _ + "`."; + } + return ""; + } + a(Ot, "getDeclarationErrorAddendum"); + function qS(_) { + if (_ !== void 0) { + var H = _.fileName.replace(/^.*[\\\/]/, ""), X = _.lineNumber; + return ` + +Check your code at ` + H + ":" + X + "."; + } + return ""; + } + a(qS, "getSourceInfoErrorAddendum"); + function pg(_) { + return _ != null ? qS(_.__source) : ""; + } + a(pg, "getSourceInfoErrorAddendumForProps"); + var Xe = {}; + function hg(_) { + var H = Ot(); + if (!H) { + var X = typeof _ == "string" ? _ : _.displayName || _.name; + X && (H = ` + +Check the top-level render call using <` + X + ">."); + } + return H; + } + a(hg, "getCurrentComponentErrorInfo"); + function In(_, H) { + if (!(!_._store || _._store.validated || _.key != null)) { + _._store.validated = !0; + var X = hg(H); + if (!Xe[X]) { + Xe[X] = !0; + var re = ""; + _ && _._owner && _._owner !== M.current && (re = " It was passed a child from " + ve(_._owner.type) + "."), Js(_), J('Each child i\ +n a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', X, re), Js(null); + } + } + } + a(In, "validateExplicitKey"); + function Zs(_, H) { + if (typeof _ == "object") { + if (br(_)) + for (var X = 0; X < _.length; X++) { + var re = _[X]; + Qe(re) && In(re, H); + } + else if (Qe(_)) + _._store && (_._store.validated = !0); + else if (_) { + var de = R(_); + if (typeof de == "function" && de !== _.entries) + for (var He = de.call(_), Fe; !(Fe = He.next()).done; ) + Qe(Fe.value) && In(Fe.value, H); + } + } + } + a(Zs, "validateChildKeys"); + function el(_) { + { + var H = _.type; + if (H == null || typeof H == "string") + return; + var X; + if (typeof H == "function") + X = H.propTypes; + else if (typeof H == "object" && (H.$$typeof === h || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + H.$$typeof === b)) + X = H.propTypes; + else + return; + if (X) { + var re = ve(H); + dg(X, _.props, "prop", re, _); + } else if (H.PropTypes !== void 0 && !sf) { + sf = !0; + var de = ve(H); + J("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", de || "Unknown"); + } + typeof H.getDefaultProps == "function" && !H.getDefaultProps.isReactClassApproved && J("getDefaultProps is only used on classic Reac\ +t.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + a(el, "validatePropTypes"); + function VS(_) { + { + for (var H = Object.keys(_.props), X = 0; X < H.length; X++) { + var re = H[X]; + if (re !== "children" && re !== "key") { + Js(_), J("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", re), Js(null); + break; + } + } + _.ref !== null && (Js(_), J("Invalid attribute `ref` supplied to `React.Fragment`."), Js(null)); + } + } + a(VS, "validateFragmentProps"); + function Yr(_, H, X) { + var re = ef(_); + if (!re) { + var de = ""; + (_ === void 0 || typeof _ == "object" && _ !== null && Object.keys(_).length === 0) && (de += " You likely forgot to export your com\ +ponent from the file it's defined in, or you might have mixed up default and named imports."); + var He = pg(H); + He ? de += He : de += Ot(); + var Fe; + _ === null ? Fe = "null" : br(_) ? Fe = "array" : _ !== void 0 && _.$$typeof === t ? (Fe = "<" + (ve(_.type) || "Unknown") + " />", de = + " Did you accidentally export a JSX literal instead of a component?") : Fe = typeof _, J("React.createElement: type is invalid -- ex\ +pected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Fe, de); + } + var Ke = Jc.apply(this, arguments); + if (Ke == null) + return Ke; + if (re) + for (var ut = 2; ut < arguments.length; ut++) + Zs(arguments[ut], _); + return _ === o ? VS(Ke) : el(Ke), Ke; + } + a(Yr, "createElementWithValidation"); + var Xt = !1; + function WS(_) { + var H = Yr.bind(null, _); + return H.type = _, Xt || (Xt = !0, he("React.createFactory() is deprecated and will be removed in a future major release. Consider usi\ +ng JSX or use React.createElement() directly instead.")), Object.defineProperty(H, "type", { + enumerable: !1, + get: /* @__PURE__ */ a(function() { + return he("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, + "type", { + value: _ + }), _; + }, "get") + }), H; + } + a(WS, "createFactoryWithValidation"); + function to(_, H, X) { + for (var re = Me.apply(this, arguments), de = 2; de < arguments.length; de++) + Zs(arguments[de], re.type); + return el(re), re; + } + a(to, "cloneElementWithValidation"); + function va(_, H) { + var X = O.transition; + O.transition = {}; + var re = O.transition; + O.transition._updatedFibers = /* @__PURE__ */ new Set(); + try { + _(); + } finally { + if (O.transition = X, X === null && re._updatedFibers) { + var de = re._updatedFibers.size; + de > 10 && he("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to u\ +se React provided hooks. Otherwise concurrent mode guarantees are off the table."), re._updatedFibers.clear(); + } + } + } + a(va, "startTransition"); + var Lo = !1, lf = null; + function th(_) { + if (lf === null) + try { + var H = ("require" + Math.random()).slice(0, 7), X = S5 && S5[H]; + lf = X.call(S5, "timers").setImmediate; + } catch { + lf = /* @__PURE__ */ a(function(de) { + Lo === !1 && (Lo = !0, typeof MessageChannel > "u" && J("This browser does not have a MessageChannel implementation, so enqueuin\ +g tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this war\ +ning.")); + var He = new MessageChannel(); + He.port1.onmessage = de, He.port2.postMessage(void 0); + }, "enqueueTaskImpl"); + } + return lf(_); + } + a(th, "enqueueTask"); + var Ki = 0, rh = !1; + function GS(_) { + { + var H = Ki; + Ki++, F.current === null && (F.current = []); + var X = F.isBatchingLegacy, re; + try { + if (F.isBatchingLegacy = !0, re = _(), !X && F.didScheduleLegacyUpdate) { + var de = F.current; + de !== null && (F.didScheduleLegacyUpdate = !1, cf(de)); + } + } catch (zt) { + throw uf(H), zt; + } finally { + F.isBatchingLegacy = X; + } + if (re !== null && typeof re == "object" && typeof re.then == "function") { + var He = re, Fe = !1, Ke = { + then: /* @__PURE__ */ a(function(zt, tr) { + Fe = !0, He.then(function(Ir) { + uf(H), Ki === 0 ? nh(Ir, zt, tr) : zt(Ir); + }, function(Ir) { + uf(H), tr(Ir); + }); + }, "then") + }; + return !rh && typeof Promise < "u" && Promise.resolve().then(function() { + }).then(function() { + Fe || (rh = !0, J("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving \ +multiple act calls and mixing their scopes. You should - await act(async () => ...);")); + }), Ke; + } else { + var ut = re; + if (uf(H), Ki === 0) { + var Ct = F.current; + Ct !== null && (cf(Ct), F.current = null); + var Nt = { + then: /* @__PURE__ */ a(function(zt, tr) { + F.current === null ? (F.current = [], nh(ut, zt, tr)) : zt(ut); + }, "then") + }; + return Nt; + } else { + var Bt = { + then: /* @__PURE__ */ a(function(zt, tr) { + zt(ut); + }, "then") + }; + return Bt; + } + } + } + } + a(GS, "act"); + function uf(_) { + _ !== Ki - 1 && J("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before makin\ +g a new one. "), Ki = _; + } + a(uf, "popActScope"); + function nh(_, H, X) { + { + var re = F.current; + if (re !== null) + try { + cf(re), th(function() { + re.length === 0 ? (F.current = null, H(_)) : nh(_, H, X); + }); + } catch (de) { + X(de); + } + else + H(_); + } + } + a(nh, "recursivelyFlushAsyncActWork"); + var tl = !1; + function cf(_) { + if (!tl) { + tl = !0; + var H = 0; + try { + for (; H < _.length; H++) { + var X = _[H]; + do + X = X(!0); + while (X !== null); + } + _.length = 0; + } catch (re) { + throw _ = _.slice(H + 1), re; + } finally { + tl = !1; + } + } + } + a(cf, "flushActQueue"); + var ff = Yr, mg = to, vg = WS, gg = { + map: sr, + forEach: z0, + count: LS, + toArray: j0, + only: PS + }; + ft.Children = gg, ft.Component = Ye, ft.Fragment = o, ft.Profiler = l, ft.PureComponent = _t, ft.StrictMode = s, ft.Suspense = v, ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = + ae, ft.cloneElement = mg, ft.createContext = kS, ft.createElement = ff, ft.createFactory = vg, ft.createRef = Or, ft.forwardRef = Wi, ft. + isValidElement = Qe, ft.lazy = Ws, ft.memo = q0, ft.startTransition = va, ft.unstable_act = GS, ft.useCallback = NS, ft.useContext = V0, + ft.useDebugValue = $S, ft.useDeferredValue = lg, ft.useEffect = pu, ft.useId = zS, ft.useImperativeHandle = BS, ft.useInsertionEffect = fn, + ft.useLayoutEffect = MS, ft.useMemo = sg, ft.useReducer = tf, ft.useRef = rf, ft.useState = Gs, ft.useSyncExternalStore = Yi, ft.useTransition = + HS, ft.version = e, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "\ +function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + })(); +}); + +// ../node_modules/react/index.js +var fe = P((XHe, DI) => { + "use strict"; + DI.exports = CI(); +}); + +// ../node_modules/scheduler/cjs/scheduler.development.js +var RI = P((Ht) => { + "use strict"; + (function() { + "use strict"; + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__. + registerInternalModuleStart(new Error()); + var e = !1, t = !1, r = 5; + function o(Se, Me) { + var Qe = Se.length; + Se.push(Me), c(Se, Me, Qe); + } + a(o, "push"); + function s(Se) { + return Se.length === 0 ? null : Se[0]; + } + a(s, "peek"); + function l(Se) { + if (Se.length === 0) + return null; + var Me = Se[0], Qe = Se.pop(); + return Qe !== Me && (Se[0] = Qe, p(Se, Qe, 0)), Me; + } + a(l, "pop"); + function c(Se, Me, Qe) { + for (var Dt = Qe; Dt > 0; ) { + var qt = Dt - 1 >>> 1, Fn = Se[qt]; + if (h(Fn, Me) > 0) + Se[qt] = Me, Se[Dt] = Fn, Dt = qt; + else + return; + } + } + a(c, "siftUp"); + function p(Se, Me, Qe) { + for (var Dt = Qe, qt = Se.length, Fn = qt >>> 1; Dt < Fn; ) { + var Sr = (Dt + 1) * 2 - 1, Ja = Se[Sr], er = Sr + 1, Za = Se[er]; + if (h(Ja, Me) < 0) + er < qt && h(Za, Ja) < 0 ? (Se[Dt] = Za, Se[er] = Me, Dt = er) : (Se[Dt] = Ja, Se[Sr] = Me, Dt = Sr); + else if (er < qt && h(Za, Me) < 0) + Se[Dt] = Za, Se[er] = Me, Dt = er; + else + return; + } + } + a(p, "siftDown"); + function h(Se, Me) { + var Qe = Se.sortIndex - Me.sortIndex; + return Qe !== 0 ? Qe : Se.id - Me.id; + } + a(h, "compare"); + var v = 1, g = 2, b = 3, w = 4, E = 5; + function D(Se, Me) { + } + a(D, "markTaskErrored"); + var C = typeof performance == "object" && typeof performance.now == "function"; + if (C) { + var R = performance; + Ht.unstable_now = function() { + return R.now(); + }; + } else { + var I = Date, O = I.now(); + Ht.unstable_now = function() { + return I.now() - O; + }; + } + var F = 1073741823, M = -1, N = 250, B = 5e3, $ = 1e4, U = F, q = [], ee = [], ie = 1, le = null, ae = b, he = !1, J = !1, ue = !1, De = typeof setTimeout == + "function" ? setTimeout : null, ke = typeof clearTimeout == "function" ? clearTimeout : null, Te = typeof setImmediate < "u" ? setImmediate : + null, $e = typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 ? navigator.scheduling. + isInputPending.bind(navigator.scheduling) : null; + function Be(Se) { + for (var Me = s(ee); Me !== null; ) { + if (Me.callback === null) + l(ee); + else if (Me.startTime <= Se) + l(ee), Me.sortIndex = Me.expirationTime, o(q, Me); + else + return; + Me = s(ee); + } + } + a(Be, "advanceTimers"); + function Ye(Se) { + if (ue = !1, Be(Se), !J) + if (s(q) !== null) + J = !0, Qa(pt); + else { + var Me = s(ee); + Me !== null && cn(Ye, Me.startTime - Se); + } + } + a(Ye, "handleTimeout"); + function pt(Se, Me) { + J = !1, ue && (ue = !1, Fa()), he = !0; + var Qe = ae; + try { + if (t) + try { + return lt(Se, Me); + } catch (qt) { + if (le !== null) { + var Dt = Ht.unstable_now(); + le.isQueued = !1; + } + throw qt; + } + else + return lt(Se, Me); + } finally { + le = null, ae = Qe, he = !1; + } + } + a(pt, "flushWork"); + function lt(Se, Me) { + var Qe = Me; + for (Be(Qe), le = s(q); le !== null && !e && !(le.expirationTime > Qe && (!Se || Xa())); ) { + var Dt = le.callback; + if (typeof Dt == "function") { + le.callback = null, ae = le.priorityLevel; + var qt = le.expirationTime <= Qe, Fn = Dt(qt); + Qe = Ht.unstable_now(), typeof Fn == "function" ? le.callback = Fn : le === s(q) && l(q), Be(Qe); + } else + l(q); + le = s(q); + } + if (le !== null) + return !0; + var Sr = s(ee); + return Sr !== null && cn(Ye, Sr.startTime - Qe), !1; + } + a(lt, "workLoop"); + function ht(Se, Me) { + switch (Se) { + case v: + case g: + case b: + case w: + case E: + break; + default: + Se = b; + } + var Qe = ae; + ae = Se; + try { + return Me(); + } finally { + ae = Qe; + } + } + a(ht, "unstable_runWithPriority"); + function St(Se) { + var Me; + switch (ae) { + case v: + case g: + case b: + Me = b; + break; + default: + Me = ae; + break; + } + var Qe = ae; + ae = Me; + try { + return Se(); + } finally { + ae = Qe; + } + } + a(St, "unstable_next"); + function _t(Se) { + var Me = ae; + return function() { + var Qe = ae; + ae = Me; + try { + return Se.apply(this, arguments); + } finally { + ae = Qe; + } + }; + } + a(_t, "unstable_wrapCallback"); + function Ut(Se, Me, Qe) { + var Dt = Ht.unstable_now(), qt; + if (typeof Qe == "object" && Qe !== null) { + var Fn = Qe.delay; + typeof Fn == "number" && Fn > 0 ? qt = Dt + Fn : qt = Dt; + } else + qt = Dt; + var Sr; + switch (Se) { + case v: + Sr = M; + break; + case g: + Sr = N; + break; + case E: + Sr = U; + break; + case w: + Sr = $; + break; + case b: + default: + Sr = B; + break; + } + var Ja = qt + Sr, er = { + id: ie++, + callback: Me, + priorityLevel: Se, + startTime: qt, + expirationTime: Ja, + sortIndex: -1 + }; + return qt > Dt ? (er.sortIndex = qt, o(ee, er), s(q) === null && er === s(ee) && (ue ? Fa() : ue = !0, cn(Ye, qt - Dt))) : (er.sortIndex = + Ja, o(q, er), !J && !he && (J = !0, Qa(pt))), er; + } + a(Ut, "unstable_scheduleCallback"); + function Or() { + } + a(Or, "unstable_pauseExecution"); + function Wn() { + !J && !he && (J = !0, Qa(pt)); + } + a(Wn, "unstable_continueExecution"); + function br() { + return s(q); + } + a(br, "unstable_getFirstCallbackNode"); + function _e(Se) { + Se.callback = null; + } + a(_e, "unstable_cancelCallback"); + function or() { + return ae; + } + a(or, "unstable_getCurrentPriorityLevel"); + var ir = !1, dr = null, Gn = -1, ln = r, ve = -1; + function Xa() { + var Se = Ht.unstable_now() - ve; + return !(Se < ln); + } + a(Xa, "shouldYieldToHost"); + function ha() { + } + a(ha, "requestPaint"); + function Fo(Se) { + if (Se < 0 || Se > 125) { + console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); + return; + } + Se > 0 ? ln = Math.floor(1e3 / Se) : ln = r; + } + a(Fo, "forceFrameRate"); + var Io = /* @__PURE__ */ a(function() { + if (dr !== null) { + var Se = Ht.unstable_now(); + ve = Se; + var Me = !0, Qe = !0; + try { + Qe = dr(Me, Se); + } finally { + Qe ? un() : (ir = !1, dr = null); + } + } else + ir = !1; + }, "performWorkUntilDeadline"), un; + if (typeof Te == "function") + un = /* @__PURE__ */ a(function() { + Te(Io); + }, "schedulePerformWorkUntilDeadline"); + else if (typeof MessageChannel < "u") { + var ma = new MessageChannel(), Yn = ma.port2; + ma.port1.onmessage = Io, un = /* @__PURE__ */ a(function() { + Yn.postMessage(null); + }, "schedulePerformWorkUntilDeadline"); + } else + un = /* @__PURE__ */ a(function() { + De(Io, 0); + }, "schedulePerformWorkUntilDeadline"); + function Qa(Se) { + dr = Se, ir || (ir = !0, un()); + } + a(Qa, "requestHostCallback"); + function cn(Se, Me) { + Gn = De(function() { + Se(Ht.unstable_now()); + }, Me); + } + a(cn, "requestHostTimeout"); + function Fa() { + ke(Gn), Gn = -1; + } + a(Fa, "cancelHostTimeout"); + var qs = ha, Jc = null; + Ht.unstable_IdlePriority = E, Ht.unstable_ImmediatePriority = v, Ht.unstable_LowPriority = w, Ht.unstable_NormalPriority = b, Ht.unstable_Profiling = + Jc, Ht.unstable_UserBlockingPriority = g, Ht.unstable_cancelCallback = _e, Ht.unstable_continueExecution = Wn, Ht.unstable_forceFrameRate = + Fo, Ht.unstable_getCurrentPriorityLevel = or, Ht.unstable_getFirstCallbackNode = br, Ht.unstable_next = St, Ht.unstable_pauseExecution = + Or, Ht.unstable_requestPaint = qs, Ht.unstable_runWithPriority = ht, Ht.unstable_scheduleCallback = Ut, Ht.unstable_shouldYield = Xa, Ht. + unstable_wrapCallback = _t, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == + "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + })(); +}); + +// ../node_modules/scheduler/index.js +var TI = P((ZHe, AI) => { + "use strict"; + AI.exports = RI(); +}); + +// ../node_modules/react-dom/cjs/react-dom.development.js +var _I = P((Ha) => { + "use strict"; + (function() { + "use strict"; + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__. + registerInternalModuleStart(new Error()); + var e = fe(), t = TI(), r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, o = !1; + function s(n) { + o = n; + } + a(s, "setSuppressWarning"); + function l(n) { + if (!o) { + for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), d = 1; d < i; d++) + u[d - 1] = arguments[d]; + p("warn", n, u); + } + } + a(l, "warn"); + function c(n) { + if (!o) { + for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), d = 1; d < i; d++) + u[d - 1] = arguments[d]; + p("error", n, u); + } + } + a(c, "error"); + function p(n, i, u) { + { + var d = r.ReactDebugCurrentFrame, m = d.getStackAddendum(); + m !== "" && (i += "%s", u = u.concat([m])); + var y = u.map(function(x) { + return String(x); + }); + y.unshift("Warning: " + i), Function.prototype.apply.call(console[n], console, y); + } + } + a(p, "printWarning"); + var h = 0, v = 1, g = 2, b = 3, w = 4, E = 5, D = 6, C = 7, R = 8, I = 9, O = 10, F = 11, M = 12, N = 13, B = 14, $ = 15, U = 16, q = 17, + ee = 18, ie = 19, le = 21, ae = 22, he = 23, J = 24, ue = 25, De = !0, ke = !1, Te = !1, $e = !1, Be = !1, Ye = !0, pt = !1, lt = !1, ht = !0, + St = !0, _t = !0, Ut = /* @__PURE__ */ new Set(), Or = {}, Wn = {}; + function br(n, i) { + _e(n, i), _e(n + "Capture", i); + } + a(br, "registerTwoPhaseEvent"); + function _e(n, i) { + Or[n] && c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", n), Or[n] = i; + { + var u = n.toLowerCase(); + Wn[u] = n, n === "onDoubleClick" && (Wn.ondblclick = n); + } + for (var d = 0; d < i.length; d++) + Ut.add(i[d]); + } + a(_e, "registerDirectEvent"); + var or = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", ir = Object.prototype.hasOwnProperty; + function dr(n) { + { + var i = typeof Symbol == "function" && Symbol.toStringTag, u = i && n[Symbol.toStringTag] || n.constructor.name || "Object"; + return u; + } + } + a(dr, "typeName"); + function Gn(n) { + try { + return ln(n), !1; + } catch { + return !0; + } + } + a(Gn, "willCoercionThrow"); + function ln(n) { + return "" + n; + } + a(ln, "testStringCoercion"); + function ve(n, i) { + if (Gn(n)) + return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", + i, dr(n)), ln(n); + } + a(ve, "checkAttributeStringCoercion"); + function Xa(n) { + if (Gn(n)) + return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dr(n)), ln( + n); + } + a(Xa, "checkKeyStringCoercion"); + function ha(n, i) { + if (Gn(n)) + return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", i, + dr(n)), ln(n); + } + a(ha, "checkPropStringCoercion"); + function Fo(n, i) { + if (Gn(n)) + return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it he\ +re.", i, dr(n)), ln(n); + } + a(Fo, "checkCSSPropertyStringCoercion"); + function Io(n) { + if (Gn(n)) + return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using i\ +t here.", dr(n)), ln(n); + } + a(Io, "checkHtmlStringCoercion"); + function un(n) { + if (Gn(n)) + return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coer\ +ced to a string before before using it here.", dr(n)), ln(n); + } + a(un, "checkFormFieldValueStringCoercion"); + var ma = 0, Yn = 1, Qa = 2, cn = 3, Fa = 4, qs = 5, Jc = 6, Se = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1\ +FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Me = Se + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\\ +u2040", Qe = new RegExp("^[" + Se + "][" + Me + "]*$"), Dt = {}, qt = {}; + function Fn(n) { + return ir.call(qt, n) ? !0 : ir.call(Dt, n) ? !1 : Qe.test(n) ? (qt[n] = !0, !0) : (Dt[n] = !0, c("Invalid attribute name: `%s`", n), !1); + } + a(Fn, "isAttributeNameSafe"); + function Sr(n, i, u) { + return i !== null ? i.type === ma : u ? !1 : n.length > 2 && (n[0] === "o" || n[0] === "O") && (n[1] === "n" || n[1] === "N"); + } + a(Sr, "shouldIgnoreAttribute"); + function Ja(n, i, u, d) { + if (u !== null && u.type === ma) + return !1; + switch (typeof i) { + case "function": + case "symbol": + return !0; + case "boolean": { + if (d) + return !1; + if (u !== null) + return !u.acceptsBooleans; + var m = n.toLowerCase().slice(0, 5); + return m !== "data-" && m !== "aria-"; + } + default: + return !1; + } + } + a(Ja, "shouldRemoveAttributeWithWarning"); + function er(n, i, u, d) { + if (i === null || typeof i > "u" || Ja(n, i, u, d)) + return !0; + if (d) + return !1; + if (u !== null) + switch (u.type) { + case cn: + return !i; + case Fa: + return i === !1; + case qs: + return isNaN(i); + case Jc: + return isNaN(i) || i < 1; + } + return !1; + } + a(er, "shouldRemoveAttribute"); + function Za(n) { + return sr.hasOwnProperty(n) ? sr[n] : null; + } + a(Za, "getPropertyInfo"); + function wr(n, i, u, d, m, y, x) { + this.acceptsBooleans = i === Qa || i === cn || i === Fa, this.attributeName = d, this.attributeNamespace = m, this.mustUseProperty = u, + this.propertyName = n, this.type = i, this.sanitizeURL = y, this.removeEmptyString = x; + } + a(wr, "PropertyInfoRecord"); + var sr = {}, LS = [ + "children", + "dangerouslySetInnerHTML", + // TODO: This prevents the assignment of defaultValue to regular + // elements (not just inputs). Now that ReactDOMInput assigns to the + // defaultValue property -- do we need this? + "defaultValue", + "defaultChecked", + "innerHTML", + "suppressContentEditableWarning", + "suppressHydrationWarning", + "style" + ]; + LS.forEach(function(n) { + sr[n] = new wr( + n, + ma, + !1, + // mustUseProperty + n, + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(n) { + var i = n[0], u = n[1]; + sr[i] = new wr( + i, + Yn, + !1, + // mustUseProperty + u, + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(n) { + sr[n] = new wr( + n, + Qa, + !1, + // mustUseProperty + n.toLowerCase(), + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(n) { + sr[n] = new wr( + n, + Qa, + !1, + // mustUseProperty + n, + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), [ + "allowFullScreen", + "async", + // Note: there is a special case that prevents it from being written to the DOM + // on the client side because the browsers are inconsistent. Instead we call focus(). + "autoFocus", + "autoPlay", + "controls", + "default", + "defer", + "disabled", + "disablePictureInPicture", + "disableRemotePlayback", + "formNoValidate", + "hidden", + "loop", + "noModule", + "noValidate", + "open", + "playsInline", + "readOnly", + "required", + "reversed", + "scoped", + "seamless", + // Microdata + "itemScope" + ].forEach(function(n) { + sr[n] = new wr( + n, + cn, + !1, + // mustUseProperty + n.toLowerCase(), + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), [ + "checked", + // Note: `option.selected` is not updated if `select.multiple` is + // disabled with `removeAttribute`. We have special logic for handling this. + "multiple", + "muted", + "selected" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(n) { + sr[n] = new wr( + n, + cn, + !0, + // mustUseProperty + n, + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), [ + "capture", + "download" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(n) { + sr[n] = new wr( + n, + Fa, + !1, + // mustUseProperty + n, + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), [ + "cols", + "rows", + "size", + "span" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(n) { + sr[n] = new wr( + n, + Jc, + !1, + // mustUseProperty + n, + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), ["rowSpan", "start"].forEach(function(n) { + sr[n] = new wr( + n, + qs, + !1, + // mustUseProperty + n.toLowerCase(), + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }); + var z0 = /[\-\:]([a-z])/g, j0 = /* @__PURE__ */ a(function(n) { + return n[1].toUpperCase(); + }, "capitalize"); + [ + "accent-height", + "alignment-baseline", + "arabic-form", + "baseline-shift", + "cap-height", + "clip-path", + "clip-rule", + "color-interpolation", + "color-interpolation-filters", + "color-profile", + "color-rendering", + "dominant-baseline", + "enable-background", + "fill-opacity", + "fill-rule", + "flood-color", + "flood-opacity", + "font-family", + "font-size", + "font-size-adjust", + "font-stretch", + "font-style", + "font-variant", + "font-weight", + "glyph-name", + "glyph-orientation-horizontal", + "glyph-orientation-vertical", + "horiz-adv-x", + "horiz-origin-x", + "image-rendering", + "letter-spacing", + "lighting-color", + "marker-end", + "marker-mid", + "marker-start", + "overline-position", + "overline-thickness", + "paint-order", + "panose-1", + "pointer-events", + "rendering-intent", + "shape-rendering", + "stop-color", + "stop-opacity", + "strikethrough-position", + "strikethrough-thickness", + "stroke-dasharray", + "stroke-dashoffset", + "stroke-linecap", + "stroke-linejoin", + "stroke-miterlimit", + "stroke-opacity", + "stroke-width", + "text-anchor", + "text-decoration", + "text-rendering", + "underline-position", + "underline-thickness", + "unicode-bidi", + "unicode-range", + "units-per-em", + "v-alphabetic", + "v-hanging", + "v-ideographic", + "v-mathematical", + "vector-effect", + "vert-adv-y", + "vert-origin-x", + "vert-origin-y", + "word-spacing", + "writing-mode", + "xmlns:xlink", + "x-height" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(n) { + var i = n.replace(z0, j0); + sr[i] = new wr( + i, + Yn, + !1, + // mustUseProperty + n, + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }), [ + "xlink:actuate", + "xlink:arcrole", + "xlink:role", + "xlink:show", + "xlink:title", + "xlink:type" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(n) { + var i = n.replace(z0, j0); + sr[i] = new wr( + i, + Yn, + !1, + // mustUseProperty + n, + "http://www.w3.org/1999/xlink", + !1, + // sanitizeURL + !1 + ); + }), [ + "xml:base", + "xml:lang", + "xml:space" + // NOTE: if you add a camelCased prop to this list, + // you'll need to set attributeName to name.toLowerCase() + // instead in the assignment below. + ].forEach(function(n) { + var i = n.replace(z0, j0); + sr[i] = new wr( + i, + Yn, + !1, + // mustUseProperty + n, + "http://www.w3.org/XML/1998/namespace", + !1, + // sanitizeURL + !1 + ); + }), ["tabIndex", "crossOrigin"].forEach(function(n) { + sr[n] = new wr( + n, + Yn, + !1, + // mustUseProperty + n.toLowerCase(), + // attributeName + null, + // attributeNamespace + !1, + // sanitizeURL + !1 + ); + }); + var PS = "xlinkHref"; + sr[PS] = new wr( + "xlinkHref", + Yn, + !1, + // mustUseProperty + "xlink:href", + "http://www.w3.org/1999/xlink", + !0, + // sanitizeURL + !1 + ), ["src", "href", "action", "formAction"].forEach(function(n) { + sr[n] = new wr( + n, + Yn, + !1, + // mustUseProperty + n.toLowerCase(), + // attributeName + null, + // attributeNamespace + !0, + // sanitizeURL + !0 + ); + }); + var kS = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i, Vs = !1; + function Zc(n) { + !Vs && kS.test(n) && (Vs = !0, c("A future version of React will block javascript: URLs as a security precaution. Use event handlers i\ +nstead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(n))); + } + a(Zc, "sanitizeURL"); + function og(n, i, u, d) { + if (d.mustUseProperty) { + var m = d.propertyName; + return n[m]; + } else { + ve(u, i), d.sanitizeURL && Zc("" + u); + var y = d.attributeName, x = null; + if (d.type === Fa) { + if (n.hasAttribute(y)) { + var A = n.getAttribute(y); + return A === "" ? !0 : er(i, u, d, !1) ? A : A === "" + u ? u : A; + } + } else if (n.hasAttribute(y)) { + if (er(i, u, d, !1)) + return n.getAttribute(y); + if (d.type === cn) + return u; + x = n.getAttribute(y); + } + return er(i, u, d, !1) ? x === null ? u : x : x === "" + u ? u : x; + } + } + a(og, "getValueForProperty"); + function ig(n, i, u, d) { + { + if (!Fn(i)) + return; + if (!n.hasAttribute(i)) + return u === void 0 ? void 0 : null; + var m = n.getAttribute(i); + return ve(u, i), m === "" + u ? u : m; + } + } + a(ig, "getValueForAttribute"); + function U0(n, i, u, d) { + var m = Za(i); + if (!Sr(i, m, d)) { + if (er(i, u, m, d) && (u = null), d || m === null) { + if (Fn(i)) { + var y = i; + u === null ? n.removeAttribute(y) : (ve(u, i), n.setAttribute(y, "" + u)); + } + return; + } + var x = m.mustUseProperty; + if (x) { + var A = m.propertyName; + if (u === null) { + var T = m.type; + n[A] = T === cn ? !1 : ""; + } else + n[A] = u; + return; + } + var L = m.attributeName, k = m.attributeNamespace; + if (u === null) + n.removeAttribute(L); + else { + var j = m.type, z; + j === cn || j === Fa && u === !0 ? z = "" : (ve(u, L), z = "" + u, m.sanitizeURL && Zc(z.toString())), k ? n.setAttributeNS(k, L, z) : + n.setAttribute(L, z); + } + } + } + a(U0, "setValueForProperty"); + var Ws = Symbol.for("react.element"), Wi = Symbol.for("react.portal"), Gi = Symbol.for("react.fragment"), ef = Symbol.for("react.strict_\ +mode"), q0 = Symbol.for("react.profiler"), Fr = Symbol.for("react.provider"), V0 = Symbol.for("react.context"), Gs = Symbol.for("react.forwa\ +rd_ref"), tf = Symbol.for("react.suspense"), rf = Symbol.for("react.suspense_list"), pu = Symbol.for("react.memo"), fn = Symbol.for("react.l\ +azy"), MS = Symbol.for("react.scope"), NS = Symbol.for("react.debug_trace_mode"), sg = Symbol.for("react.offscreen"), BS = Symbol.for("react\ +.legacy_hidden"), $S = Symbol.for("react.cache"), HS = Symbol.for("react.tracing_marker"), lg = Symbol.iterator, zS = "@@iterator"; + function Yi(n) { + if (n === null || typeof n != "object") + return null; + var i = lg && n[lg] || n[zS]; + return typeof i == "function" ? i : null; + } + a(Yi, "getIteratorFn"); + var et = Object.assign, Ys = 0, W0, G0, Y0, K0, X0, Q0, J0; + function ug() { + } + a(ug, "disabledLog"), ug.__reactDisabledLog = !0; + function jS() { + { + if (Ys === 0) { + W0 = console.log, G0 = console.info, Y0 = console.warn, K0 = console.error, X0 = console.group, Q0 = console.groupCollapsed, J0 = console. + groupEnd; + var n = { + configurable: !0, + enumerable: !0, + value: ug, + writable: !0 + }; + Object.defineProperties(console, { + info: n, + log: n, + warn: n, + error: n, + group: n, + groupCollapsed: n, + groupEnd: n + }); + } + Ys++; + } + } + a(jS, "disableLogs"); + function Z0() { + { + if (Ys--, Ys === 0) { + var n = { + configurable: !0, + enumerable: !0, + writable: !0 + }; + Object.defineProperties(console, { + log: et({}, n, { + value: W0 + }), + info: et({}, n, { + value: G0 + }), + warn: et({}, n, { + value: Y0 + }), + error: et({}, n, { + value: K0 + }), + group: et({}, n, { + value: X0 + }), + groupCollapsed: et({}, n, { + value: Q0 + }), + groupEnd: et({}, n, { + value: J0 + }) + }); + } + Ys < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + a(Z0, "reenableLogs"); + var hu = r.ReactCurrentDispatcher, Ks; + function eo(n, i, u) { + { + if (Ks === void 0) + try { + throw Error(); + } catch (m) { + var d = m.stack.trim().match(/\n( *(at )?)/); + Ks = d && d[1] || ""; + } + return ` +` + Ks + n; + } + } + a(eo, "describeBuiltInComponentFrame"); + var Xs = !1, nf; + { + var cg = typeof WeakMap == "function" ? WeakMap : Map; + nf = new cg(); + } + function eh(n, i) { + if (!n || Xs) + return ""; + { + var u = nf.get(n); + if (u !== void 0) + return u; + } + var d; + Xs = !0; + var m = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var y; + y = hu.current, hu.current = null, jS(); + try { + if (i) { + var x = /* @__PURE__ */ a(function() { + throw Error(); + }, "Fake"); + if (Object.defineProperty(x.prototype, "props", { + set: /* @__PURE__ */ a(function() { + throw Error(); + }, "set") + }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(x, []); + } catch (K) { + d = K; + } + Reflect.construct(n, [], x); + } else { + try { + x.call(); + } catch (K) { + d = K; + } + n.call(x.prototype); + } + } else { + try { + throw Error(); + } catch (K) { + d = K; + } + n(); + } + } catch (K) { + if (K && d && typeof K.stack == "string") { + for (var A = K.stack.split(` +`), T = d.stack.split(` +`), L = A.length - 1, k = T.length - 1; L >= 1 && k >= 0 && A[L] !== T[k]; ) + k--; + for (; L >= 1 && k >= 0; L--, k--) + if (A[L] !== T[k]) { + if (L !== 1 || k !== 1) + do + if (L--, k--, k < 0 || A[L] !== T[k]) { + var j = ` +` + A[L].replace(" at new ", " at "); + return n.displayName && j.includes("") && (j = j.replace("", n.displayName)), typeof n == "functio\ +n" && nf.set(n, j), j; + } + while (L >= 1 && k >= 0); + break; + } + } + } finally { + Xs = !1, hu.current = y, Z0(), Error.prepareStackTrace = m; + } + var z = n ? n.displayName || n.name : "", Q = z ? eo(z) : ""; + return typeof n == "function" && nf.set(n, Q), Q; + } + a(eh, "describeNativeComponentFrame"); + function US(n, i, u) { + return eh(n, !0); + } + a(US, "describeClassComponentFrame"); + function Qs(n, i, u) { + return eh(n, !1); + } + a(Qs, "describeFunctionComponentFrame"); + function fg(n) { + var i = n.prototype; + return !!(i && i.isReactComponent); + } + a(fg, "shouldConstruct"); + function af(n, i, u) { + if (n == null) + return ""; + if (typeof n == "function") + return eh(n, fg(n)); + if (typeof n == "string") + return eo(n); + switch (n) { + case tf: + return eo("Suspense"); + case rf: + return eo("SuspenseList"); + } + if (typeof n == "object") + switch (n.$$typeof) { + case Gs: + return Qs(n.render); + case pu: + return af(n.type, i, u); + case fn: { + var d = n, m = d._payload, y = d._init; + try { + return af(y(m), i, u); + } catch { + } + } + } + return ""; + } + a(af, "describeUnknownElementTypeFrameInDEV"); + function of(n) { + var i = n._debugOwner ? n._debugOwner.type : null, u = n._debugSource; + switch (n.tag) { + case E: + return eo(n.type); + case U: + return eo("Lazy"); + case N: + return eo("Suspense"); + case ie: + return eo("SuspenseList"); + case h: + case g: + case $: + return Qs(n.type); + case F: + return Qs(n.type.render); + case v: + return US(n.type); + default: + return ""; + } + } + a(of, "describeFiber"); + function dg(n) { + try { + var i = "", u = n; + do + i += of(u), u = u.return; + while (u); + return i; + } catch (d) { + return ` +Error generating stack: ` + d.message + ` +` + d.stack; + } + } + a(dg, "getStackByFiberInDevAndProd"); + function Js(n, i, u) { + var d = n.displayName; + if (d) + return d; + var m = i.displayName || i.name || ""; + return m !== "" ? u + "(" + m + ")" : u; + } + a(Js, "getWrappedName"); + function sf(n) { + return n.displayName || "Context"; + } + a(sf, "getContextName"); + function Ot(n) { + if (n == null) + return null; + if (typeof n.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please \ +file an issue."), typeof n == "function") + return n.displayName || n.name || null; + if (typeof n == "string") + return n; + switch (n) { + case Gi: + return "Fragment"; + case Wi: + return "Portal"; + case q0: + return "Profiler"; + case ef: + return "StrictMode"; + case tf: + return "Suspense"; + case rf: + return "SuspenseList"; + } + if (typeof n == "object") + switch (n.$$typeof) { + case V0: + var i = n; + return sf(i) + ".Consumer"; + case Fr: + var u = n; + return sf(u._context) + ".Provider"; + case Gs: + return Js(n, n.render, "ForwardRef"); + case pu: + var d = n.displayName || null; + return d !== null ? d : Ot(n.type) || "Memo"; + case fn: { + var m = n, y = m._payload, x = m._init; + try { + return Ot(x(y)); + } catch { + return null; + } + } + } + return null; + } + a(Ot, "getComponentNameFromType"); + function qS(n, i, u) { + var d = i.displayName || i.name || ""; + return n.displayName || (d !== "" ? u + "(" + d + ")" : u); + } + a(qS, "getWrappedName$1"); + function pg(n) { + return n.displayName || "Context"; + } + a(pg, "getContextName$1"); + function Xe(n) { + var i = n.tag, u = n.type; + switch (i) { + case J: + return "Cache"; + case I: + var d = u; + return pg(d) + ".Consumer"; + case O: + var m = u; + return pg(m._context) + ".Provider"; + case ee: + return "DehydratedFragment"; + case F: + return qS(u, u.render, "ForwardRef"); + case C: + return "Fragment"; + case E: + return u; + case w: + return "Portal"; + case b: + return "Root"; + case D: + return "Text"; + case U: + return Ot(u); + case R: + return u === ef ? "StrictMode" : "Mode"; + case ae: + return "Offscreen"; + case M: + return "Profiler"; + case le: + return "Scope"; + case N: + return "Suspense"; + case ie: + return "SuspenseList"; + case ue: + return "TracingMarker"; + case v: + case h: + case q: + case g: + case B: + case $: + if (typeof u == "function") + return u.displayName || u.name || null; + if (typeof u == "string") + return u; + break; + } + return null; + } + a(Xe, "getComponentNameFromFiber"); + var hg = r.ReactDebugCurrentFrame, In = null, Zs = !1; + function el() { + { + if (In === null) + return null; + var n = In._debugOwner; + if (n !== null && typeof n < "u") + return Xe(n); + } + return null; + } + a(el, "getCurrentFiberOwnerNameInDevOrNull"); + function VS() { + return In === null ? "" : dg(In); + } + a(VS, "getCurrentFiberStackInDev"); + function Yr() { + hg.getCurrentStack = null, In = null, Zs = !1; + } + a(Yr, "resetCurrentFiber"); + function Xt(n) { + hg.getCurrentStack = n === null ? null : VS, In = n, Zs = !1; + } + a(Xt, "setCurrentFiber"); + function WS() { + return In; + } + a(WS, "getCurrentFiber"); + function to(n) { + Zs = n; + } + a(to, "setIsRendering"); + function va(n) { + return "" + n; + } + a(va, "toString"); + function Lo(n) { + switch (typeof n) { + case "boolean": + case "number": + case "string": + case "undefined": + return n; + case "object": + return un(n), n; + default: + return ""; + } + } + a(Lo, "getToStringValue"); + var lf = { + button: !0, + checkbox: !0, + image: !0, + hidden: !0, + radio: !0, + reset: !0, + submit: !0 + }; + function th(n, i) { + lf[i.type] || i.onChange || i.onInput || i.readOnly || i.disabled || i.value == null || c("You provided a `value` prop to a form field\ + without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either\ + `onChange` or `readOnly`."), i.onChange || i.readOnly || i.disabled || i.checked == null || c("You provided a `checked` prop to a form fiel\ +d without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set eit\ +her `onChange` or `readOnly`."); + } + a(th, "checkControlledValueProps"); + function Ki(n) { + var i = n.type, u = n.nodeName; + return u && u.toLowerCase() === "input" && (i === "checkbox" || i === "radio"); + } + a(Ki, "isCheckable"); + function rh(n) { + return n._valueTracker; + } + a(rh, "getTracker"); + function GS(n) { + n._valueTracker = null; + } + a(GS, "detachTracker"); + function uf(n) { + var i = ""; + return n && (Ki(n) ? i = n.checked ? "true" : "false" : i = n.value), i; + } + a(uf, "getValueFromNode"); + function nh(n) { + var i = Ki(n) ? "checked" : "value", u = Object.getOwnPropertyDescriptor(n.constructor.prototype, i); + un(n[i]); + var d = "" + n[i]; + if (!(n.hasOwnProperty(i) || typeof u > "u" || typeof u.get != "function" || typeof u.set != "function")) { + var m = u.get, y = u.set; + Object.defineProperty(n, i, { + configurable: !0, + get: /* @__PURE__ */ a(function() { + return m.call(this); + }, "get"), + set: /* @__PURE__ */ a(function(A) { + un(A), d = "" + A, y.call(this, A); + }, "set") + }), Object.defineProperty(n, i, { + enumerable: u.enumerable + }); + var x = { + getValue: /* @__PURE__ */ a(function() { + return d; + }, "getValue"), + setValue: /* @__PURE__ */ a(function(A) { + un(A), d = "" + A; + }, "setValue"), + stopTracking: /* @__PURE__ */ a(function() { + GS(n), delete n[i]; + }, "stopTracking") + }; + return x; + } + } + a(nh, "trackValueOnNode"); + function tl(n) { + rh(n) || (n._valueTracker = nh(n)); + } + a(tl, "track"); + function cf(n) { + if (!n) + return !1; + var i = rh(n); + if (!i) + return !0; + var u = i.getValue(), d = uf(n); + return d !== u ? (i.setValue(d), !0) : !1; + } + a(cf, "updateValueIfChanged"); + function ff(n) { + if (n = n || (typeof document < "u" ? document : void 0), typeof n > "u") + return null; + try { + return n.activeElement || n.body; + } catch { + return n.body; + } + } + a(ff, "getActiveElement"); + var mg = !1, vg = !1, gg = !1, _ = !1; + function H(n) { + var i = n.type === "checkbox" || n.type === "radio"; + return i ? n.checked != null : n.value != null; + } + a(H, "isControlled"); + function X(n, i) { + var u = n, d = i.checked, m = et({}, i, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: d ?? u._wrapperState.initialChecked + }); + return m; + } + a(X, "getHostProps"); + function re(n, i) { + th("input", i), i.checked !== void 0 && i.defaultChecked !== void 0 && !vg && (c("%s contains an input of type %s with both checked an\ +d defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked pro\ +p, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.\ +org/link/controlled-components", el() || "A component", i.type), vg = !0), i.value !== void 0 && i.defaultValue !== void 0 && !mg && (c("%s \ +contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify eithe\ +r the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of\ + these props. More info: https://reactjs.org/link/controlled-components", el() || "A component", i.type), mg = !0); + var u = n, d = i.defaultValue == null ? "" : i.defaultValue; + u._wrapperState = { + initialChecked: i.checked != null ? i.checked : i.defaultChecked, + initialValue: Lo(i.value != null ? i.value : d), + controlled: H(i) + }; + } + a(re, "initWrapperState"); + function de(n, i) { + var u = n, d = i.checked; + d != null && U0(u, "checked", d, !1); + } + a(de, "updateChecked"); + function He(n, i) { + var u = n; + { + var d = H(i); + !u._wrapperState.controlled && d && !_ && (c("A component is changing an uncontrolled input to be controlled. This is likely caused \ +by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input el\ +ement for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"), _ = !0), u._wrapperState.controlled && + !d && !gg && (c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a d\ +efined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the compon\ +ent. More info: https://reactjs.org/link/controlled-components"), gg = !0); + } + de(n, i); + var m = Lo(i.value), y = i.type; + if (m != null) + y === "number" ? (m === 0 && u.value === "" || // We explicitly want to coerce to number here if possible. + // eslint-disable-next-line + u.value != m) && (u.value = va(m)) : u.value !== va(m) && (u.value = va(m)); + else if (y === "submit" || y === "reset") { + u.removeAttribute("value"); + return; + } + i.hasOwnProperty("value") ? Ct(u, i.type, m) : i.hasOwnProperty("defaultValue") && Ct(u, i.type, Lo(i.defaultValue)), i.checked == null && + i.defaultChecked != null && (u.defaultChecked = !!i.defaultChecked); + } + a(He, "updateWrapper"); + function Fe(n, i, u) { + var d = n; + if (i.hasOwnProperty("value") || i.hasOwnProperty("defaultValue")) { + var m = i.type, y = m === "submit" || m === "reset"; + if (y && (i.value === void 0 || i.value === null)) + return; + var x = va(d._wrapperState.initialValue); + u || x !== d.value && (d.value = x), d.defaultValue = x; + } + var A = d.name; + A !== "" && (d.name = ""), d.defaultChecked = !d.defaultChecked, d.defaultChecked = !!d._wrapperState.initialChecked, A !== "" && (d.name = + A); + } + a(Fe, "postMountWrapper"); + function Ke(n, i) { + var u = n; + He(u, i), ut(u, i); + } + a(Ke, "restoreControlledState"); + function ut(n, i) { + var u = i.name; + if (i.type === "radio" && u != null) { + for (var d = n; d.parentNode; ) + d = d.parentNode; + ve(u, "name"); + for (var m = d.querySelectorAll("input[name=" + JSON.stringify("" + u) + '][type="radio"]'), y = 0; y < m.length; y++) { + var x = m[y]; + if (!(x === n || x.form !== n.form)) { + var A = ay(x); + if (!A) + throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); + cf(x), He(x, A); + } + } + } + } + a(ut, "updateNamedCousins"); + function Ct(n, i, u) { + // Focused number inputs synchronize on blur. See ChangeEventPlugin.js + (i !== "number" || ff(n.ownerDocument) !== n) && (u == null ? n.defaultValue = va(n._wrapperState.initialValue) : n.defaultValue !== va( + u) && (n.defaultValue = va(u))); + } + a(Ct, "setDefaultValue"); + var Nt = !1, Bt = !1, zt = !1; + function tr(n, i) { + i.value == null && (typeof i.children == "object" && i.children !== null ? e.Children.forEach(i.children, function(u) { + u != null && (typeof u == "string" || typeof u == "number" || Bt || (Bt = !0, c("Cannot infer the option value of complex children. \ +Pass a `value` prop or use a plain string as children to