1 line
25 KiB
JavaScript
1 line
25 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1736],{2564:(e,t,r)=>{"use strict";r.d(t,{b:()=>l,s:()=>s});var n=r(12115),i=r(63540),o=r(95155),s=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));s.displayName="VisuallyHidden";var l=s},11518:(e,t,r)=>{"use strict";e.exports=r(82269).style},15630:(e,t,r)=>{"use strict";r.d(t,{C1:()=>j,bL:()=>R});var n=r(12115),i=r(6101),o=r(46081),s=r(85185),l=r(5845),a=r(45503),u=r(11275),d=r(28905);r(47650);var c=r(99708),p=r(95155),h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...i}=e,o=n?c.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),f="Checkbox",[m,v]=(0,o.A)(f),[y,g]=m(f),x=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:o,checked:a,defaultChecked:u,required:d,disabled:c,value:f="on",onCheckedChange:m,form:v,...g}=e,[x,w]=n.useState(null),_=(0,i.s)(t,e=>w(e)),R=n.useRef(!1),j=!x||v||!!x.closest("form"),[E=!1,k]=(0,l.i)({prop:a,defaultProp:u,onChange:m}),T=n.useRef(E);return n.useEffect(()=>{let e=null==x?void 0:x.form;if(e){let t=()=>k(T.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[x,k]),(0,p.jsxs)(y,{scope:r,state:E,disabled:c,children:[(0,p.jsx)(h.button,{type:"button",role:"checkbox","aria-checked":S(E)?"mixed":E,"aria-required":d,"data-state":C(E),"data-disabled":c?"":void 0,disabled:c,value:f,...g,ref:_,onKeyDown:(0,s.m)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.m)(e.onClick,e=>{k(e=>!!S(e)||!e),j&&(R.current=e.isPropagationStopped(),R.current||e.stopPropagation())})}),j&&(0,p.jsx)(b,{control:x,bubbles:!R.current,name:o,value:f,checked:E,required:d,disabled:c,form:v,style:{transform:"translateX(-100%)"},defaultChecked:!S(u)&&u})]})});x.displayName=f;var w="CheckboxIndicator",_=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...i}=e,o=g(w,r);return(0,p.jsx)(d.C,{present:n||S(o.state)||!0===o.state,children:(0,p.jsx)(h.span,{"data-state":C(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});_.displayName=w;var b=e=>{let{control:t,checked:r,bubbles:i=!0,defaultChecked:o,...s}=e,l=n.useRef(null),d=(0,a.Z)(r),c=(0,u.X)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(d!==r&&t){let n=new Event("click",{bubbles:i});e.indeterminate=S(r),t.call(e,!S(r)&&r),e.dispatchEvent(n)}},[d,r,i]);let h=n.useRef(!S(r)&&r);return(0,p.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=o?o:h.current,...s,tabIndex:-1,ref:l,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function S(e){return"indeterminate"===e}function C(e){return S(e)?"indeterminate":e?"checked":"unchecked"}var R=x,j=_},51154:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(19946).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},63753:(e,t,r)=>{"use strict";r.d(t,{Mz:()=>z,i3:()=>N,UC:()=>O,bL:()=>P,Bk:()=>v});var n=r(12115),i=r(84945),o=r(76492),s=r(63540),l=r(95155),a=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,l.jsx)(s.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})});a.displayName="Arrow";var u=r(6101),d=r(46081),c=r(39033),p=r(52712),h=r(11275),f="Popper",[m,v]=(0,d.A)(f),[y,g]=m(f),x=e=>{let{__scopePopper:t,children:r}=e,[i,o]=n.useState(null);return(0,l.jsx)(y,{scope:t,anchor:i,onAnchorChange:o,children:r})};x.displayName=f;var w="PopperAnchor",_=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:i,...o}=e,a=g(w,r),d=n.useRef(null),c=(0,u.s)(t,d);return n.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||d.current)}),i?null:(0,l.jsx)(s.sG.div,{...o,ref:c})});_.displayName=w;var b="PopperContent",[S,C]=m(b),R=n.forwardRef((e,t)=>{var r,a,d,f,m,v,y,x;let{__scopePopper:w,side:_="bottom",sideOffset:C=0,align:R="center",alignOffset:j=0,arrowPadding:E=0,avoidCollisions:k=!0,collisionBoundary:P=[],collisionPadding:z=0,sticky:O="partial",hideWhenDetached:N=!1,updatePositionStrategy:L="optimized",onPlaced:I,...D}=e,M=g(b,w),[B,H]=n.useState(null),X=(0,u.s)(t,e=>H(e)),[W,q]=n.useState(null),Y=(0,h.X)(W),U=null!=(y=null==Y?void 0:Y.width)?y:0,G=null!=(x=null==Y?void 0:Y.height)?x:0,V="number"==typeof z?z:{top:0,right:0,bottom:0,left:0,...z},K=Array.isArray(P)?P:[P],Z=K.length>0,$={padding:V,boundary:K.filter(T),altBoundary:Z},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,i.we)({strategy:"fixed",placement:_+("center"!==R?"-"+R:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.ll)(...t,{animationFrame:"always"===L})},elements:{reference:M.anchor},middleware:[(0,i.cY)({mainAxis:C+G,alignmentAxis:j}),k&&(0,i.BN)({mainAxis:!0,crossAxis:!1,limiter:"partial"===O?(0,i.ER)():void 0,...$}),k&&(0,i.UU)({...$}),(0,i.Ej)({...$,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:o,height:s}=r.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(n,"px")),l.setProperty("--radix-popper-available-height","".concat(i,"px")),l.setProperty("--radix-popper-anchor-width","".concat(o,"px")),l.setProperty("--radix-popper-anchor-height","".concat(s,"px"))}}),W&&(0,i.UE)({element:W,padding:E}),A({arrowWidth:U,arrowHeight:G}),N&&(0,i.jD)({strategy:"referenceHidden",...$})]}),[en,ei]=F(ee),eo=(0,c.c)(I);(0,p.N)(()=>{et&&(null==eo||eo())},[et,eo]);let es=null==(r=er.arrow)?void 0:r.x,el=null==(a=er.arrow)?void 0:a.y,ea=(null==(d=er.arrow)?void 0:d.centerOffset)!==0,[eu,ed]=n.useState();return(0,p.N)(()=>{B&&ed(window.getComputedStyle(B).zIndex)},[B]),(0,l.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null==(f=er.transformOrigin)?void 0:f.x,null==(m=er.transformOrigin)?void 0:m.y].join(" "),...(null==(v=er.hide)?void 0:v.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(S,{scope:w,placedSide:en,onArrowChange:q,arrowX:es,arrowY:el,shouldHideArrow:ea,children:(0,l.jsx)(s.sG.div,{"data-side":en,"data-align":ei,...D,ref:X,style:{...D.style,animation:et?void 0:"none"}})})})});R.displayName=b;var j="PopperArrow",E={top:"bottom",right:"left",bottom:"top",left:"right"},k=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=C(j,r),o=E[i.placedSide];return(0,l.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(a,{...n,ref:t,style:{...n.style,display:"block"}})})});function T(e){return null!==e}k.displayName=j;var A=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,s;let{placement:l,rects:a,middlewareData:u}=t,d=(null==(r=u.arrow)?void 0:r.centerOffset)!==0,c=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[h,f]=F(l),m={start:"0%",center:"50%",end:"100%"}[f],v=(null!=(o=null==(n=u.arrow)?void 0:n.x)?o:0)+c/2,y=(null!=(s=null==(i=u.arrow)?void 0:i.y)?s:0)+p/2,g="",x="";return"bottom"===h?(g=d?m:"".concat(v,"px"),x="".concat(-p,"px")):"top"===h?(g=d?m:"".concat(v,"px"),x="".concat(a.floating.height+p,"px")):"right"===h?(g="".concat(-p,"px"),x=d?m:"".concat(y,"px")):"left"===h&&(g="".concat(a.floating.width+p,"px"),x=d?m:"".concat(y,"px")),{data:{x:g,y:x}}}});function F(e){let[t,r="center"]=e.split("-");return[t,r]}var P=x,z=_,O=R,N=k},68375:()=>{},72797:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var n=r(12115);r(47650);var i=r(99708),o=r(95155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...s}=e,l=n?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(l,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),l=n.forwardRef((e,t)=>(0,o.jsx)(s.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null==(r=e.onMouseDown)||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var a=l},78082:(e,t,r)=>{"use strict";r.d(t,{UC:()=>q,Kq:()=>H,bL:()=>X,l9:()=>W});var n=r(12115),i=r(85185),o=r(6101),s=r(46081),l=r(58434),a=r(61285),u=r(63753),d=(r(34378),r(28905)),c=r(63540),p=r(95155);n.forwardRef((e,t)=>{let{children:r,...i}=e,o=n.Children.toArray(r),s=o.find(m);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,p.jsx)(h,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,p.jsx)(h,{...i,ref:t,children:r})}).displayName="Slot";var h=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props),ref:t?(0,o.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});h.displayName="SlotClone";var f=({children:e})=>(0,p.jsx)(p.Fragment,{children:e});function m(e){return n.isValidElement(e)&&e.type===f}var v=r(5845),y=r(2564),[g,x]=(0,s.A)("Tooltip",[u.Bk]),w=(0,u.Bk)(),_="TooltipProvider",b="tooltip.open",[S,C]=g(_),R=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=e,[l,a]=n.useState(!0),u=n.useRef(!1),d=n.useRef(0);return n.useEffect(()=>{let e=d.current;return()=>window.clearTimeout(e)},[]),(0,p.jsx)(S,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(d.current),a(!1)},[]),onClose:n.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>a(!0),i)},[i]),isPointerInTransitRef:u,onPointerInTransitChange:n.useCallback(e=>{u.current=e},[]),disableHoverableContent:o,children:s})};R.displayName=_;var j="Tooltip",[E,k]=g(j),T=e=>{let{__scopeTooltip:t,children:r,open:i,defaultOpen:o=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=e,c=C(j,e.__scopeTooltip),h=w(t),[f,m]=n.useState(null),y=(0,a.B)(),g=n.useRef(0),x=null!=l?l:c.disableHoverableContent,_=null!=d?d:c.delayDuration,S=n.useRef(!1),[R=!1,k]=(0,v.i)({prop:i,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(b))):c.onClose(),null==s||s(e)}}),T=n.useMemo(()=>R?S.current?"delayed-open":"instant-open":"closed",[R]),A=n.useCallback(()=>{window.clearTimeout(g.current),g.current=0,S.current=!1,k(!0)},[k]),F=n.useCallback(()=>{window.clearTimeout(g.current),g.current=0,k(!1)},[k]),P=n.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{S.current=!0,k(!0),g.current=0},_)},[_,k]);return n.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),(0,p.jsx)(u.bL,{...h,children:(0,p.jsx)(E,{scope:t,contentId:y,open:R,stateAttribute:T,trigger:f,onTriggerChange:m,onTriggerEnter:n.useCallback(()=>{c.isOpenDelayed?P():A()},[c.isOpenDelayed,P,A]),onTriggerLeave:n.useCallback(()=>{x?F():(window.clearTimeout(g.current),g.current=0)},[F,x]),onOpen:A,onClose:F,disableHoverableContent:x,children:r})})};T.displayName=j;var A="TooltipTrigger",F=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...s}=e,l=k(A,r),a=C(A,r),d=w(r),h=n.useRef(null),f=(0,o.s)(t,h,l.onTriggerChange),m=n.useRef(!1),v=n.useRef(!1),y=n.useCallback(()=>m.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,p.jsx)(u.Mz,{asChild:!0,...d,children:(0,p.jsx)(c.sG.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(v.current||a.isPointerInTransitRef.current||(l.onTriggerEnter(),v.current=!0))}),onPointerLeave:(0,i.m)(e.onPointerLeave,()=>{l.onTriggerLeave(),v.current=!1}),onPointerDown:(0,i.m)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.m)(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:(0,i.m)(e.onBlur,l.onClose),onClick:(0,i.m)(e.onClick,l.onClose)})})});F.displayName=A;var[P,z]=g("TooltipPortal",{forceMount:void 0}),O="TooltipContent",N=n.forwardRef((e,t)=>{let r=z(O,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...o}=e,s=k(O,e.__scopeTooltip);return(0,p.jsx)(d.C,{present:n||s.open,children:s.disableHoverableContent?(0,p.jsx)(M,{side:i,...o,ref:t}):(0,p.jsx)(L,{side:i,...o,ref:t})})}),L=n.forwardRef((e,t)=>{let r=k(O,e.__scopeTooltip),i=C(O,e.__scopeTooltip),s=n.useRef(null),l=(0,o.s)(t,s),[a,u]=n.useState(null),{trigger:d,onClose:c}=r,h=s.current,{onPointerInTransitChange:f}=i,m=n.useCallback(()=>{u(null),f(!1)},[f]),v=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,i),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())])),f(!0)},[f]);return n.useEffect(()=>()=>m(),[m]),n.useEffect(()=>{if(d&&h){let e=e=>v(e,h),t=e=>v(e,d);return d.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[d,h,v,m]),n.useEffect(()=>{if(a){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=(null==d?void 0:d.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e].x,l=t[e].y,a=t[o].x,u=t[o].y;l>n!=u>n&&r<(a-s)*(n-l)/(u-l)+s&&(i=!i)}return i}(r,a);n?m():i&&(m(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,h,a,c,m]),(0,p.jsx)(M,{...e,ref:l})}),[I,D]=g(j,{isInside:!1}),M=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...d}=e,c=k(O,r),h=w(r),{onClose:m}=c;return n.useEffect(()=>(document.addEventListener(b,m),()=>document.removeEventListener(b,m)),[m]),n.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(c.trigger))&&m()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,m]),(0,p.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:m,children:(0,p.jsxs)(u.UC,{"data-state":c.stateAttribute,...h,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,p.jsx)(f,{children:i}),(0,p.jsx)(I,{scope:r,isInside:!0,children:(0,p.jsx)(y.b,{id:c.contentId,role:"tooltip",children:o||i})})]})})});N.displayName=O;var B="TooltipArrow";n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,i=w(r);return D(B,r).isInside?null:(0,p.jsx)(u.i3,{...i,...n,ref:t})}).displayName=B;var H=R,X=T,W=F,q=N},82269:(e,t,r)=>{"use strict";var n=r(49509);r(68375);var i=r(12115),o=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==n&&n.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},a=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?s:i;u(l(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var a="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=a?a.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(l(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(l(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},c={};function p(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return c[n]||(c[n]="jsx-"+d(e+"-"+r)),c[n]}function h(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return c[r]||(c[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),c[r]}var f=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new a({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=p(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return h(i,e)}):[h(i,t)]}}return{styleId:p(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);m.displayName="StyleSheetContext";var v=o.default.useInsertionEffect||o.default.useLayoutEffect,y="undefined"!=typeof window?new f:void 0;function g(e){var t=y||i.useContext(m);return t&&("undefined"==typeof window?t.add(e):v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}g.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},t.style=g},84616:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(19946).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])}}]); |