1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,556297,685861,t=>{"use strict";var e=t.i(776457).BaseItem;t.s(["Tab",0,e],556297);var i=t.i(675768),s=t.i(834921),r=t.i(727764),a=t.i(977538),o=t.i(750179);let n=new WeakMap;function l(t,e,i){if(!t)return"";"string"==typeof e&&(e=e.replace(/\s+/g,""));let s=n.get(t);return`${s}-${i}-${e}`}var u=t.i(860433),d=t.i(370864),h=t.i(999661),c=t.i(271645),m=t.i(429427),p=t.i(843476),g=(0,i.forwardRef)((t,e)=>{var i,n,g,f;let v,y,x,{as:b,tabKey:P,destroyInactiveTabPanel:D,state:T,className:A,slots:w,classNames:S,...R}=t,L=(0,s.useDOMRef)(e),{tabPanelProps:E}=(g={...t,id:String(P)},v=!function(t){let e,[i,s]=(0,c.useState)(!1);return(0,h.useLayoutEffect)(()=>{if((null==t?void 0:t.current)&&!e){let e=()=>{t.current&&s(!!(0,d.getFocusableTreeWalker)(t.current,{tabbable:!0}).nextNode())};e();let i=new MutationObserver(e);return i.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{i.disconnect()}}}),!e&&i}(L)?0:void 0,y=l(T,null!=(f=g.id)?f:null==T?void 0:T.selectedKey,"tabpanel"),x=(0,u.useLabels)({...g,id:y,"aria-labelledby":l(T,null==T?void 0:T.selectedKey,"tab")}),{tabPanelProps:(0,o.mergeProps)(x,{tabIndex:v,role:"tabpanel","aria-describedby":g["aria-describedby"],"aria-details":g["aria-details"]})}),{focusProps:j,isFocused:B,isFocusVisible:C}=(0,m.useFocusRing)(),V=T.selectedItem,M=T.collection.getItem(P).props.children,k=(0,r.clsx)(null==S?void 0:S.panel,A,null==(i=null==V?void 0:V.props)?void 0:i.className),F=P===(null==V?void 0:V.key);return M&&(F||!D)?(0,p.jsx)(b||"div",{ref:L,"data-focus":B,"data-focus-visible":C,"data-inert":F?void 0:"true",inert:(0,a.getInertValue)(!F),...F&&(0,o.mergeProps)(E,j,R),className:null==(n=w.panel)?void 0:n.call(w,{class:k}),"data-slot":"panel",children:M}):null});g.displayName="NextUI.TabPanel";var f=t.i(504339),v=t.i(485095),y=t.i(871199),x=t.i(174501),b=t.i(191909),P=t.i(569080),D=t.i(211458),T=t.i(484656),A=t.i(371330),w=t.i(824511),S=t.i(311129);t.i(105369);var R=t.i(260830),L=t.i(965566);t.i(861200);var E=t.i(439676),j=t.i(341327),B=t.i(763074),C=t.i(426368),V=t.i(665536);function M(t,e,i,s){return(0,C.addDomEvent)(t,e,(0,V.addPointerInfo)(i),s)}let k=(t,e)=>Math.abs(t-e);var F=t.i(500459),U=t.i(28327);class N{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=K(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(k(t.x,e.x)**2+k(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:a}=i,{timestamp:o}=U.frameData;this.history.push({...a,timestamp:o});let{onStart:n,onMove:l}=this.handlers;s||(n&&n(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=O(e,this.transformPagePoint),U.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=K("pointercancel"===t.type?this.lastMoveEventInfo:O(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,a),s&&s(t,a)},!(0,j.isPrimaryPointer)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const a=O((0,V.extractEventInfo)(t),this.transformPagePoint),{point:o}=a,{timestamp:n}=U.frameData;this.history=[{...o,timestamp:n}];const{onSessionStart:l}=e;l&&l(t,K(a,this.history)),this.removeListeners=(0,F.pipe)(M(this.contextWindow,"pointermove",this.handlePointerMove),M(this.contextWindow,"pointerup",this.handlePointerUp),M(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,U.cancelFrame)(this.updatePoint)}}function O(t,e){return e?{point:e(t.point)}:t}function I(t,e){return{x:t.x-e.x,y:t.y-e.y}}function K({point:t},e){return{point:t,delta:I(t,z(e)),offset:I(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=z(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>(0,B.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};let r=(0,B.millisecondsToSeconds)(s.timestamp-i.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e)}}function z(t){return t[t.length-1]}var $=t.i(325522),W=t.i(783920),G=t.i(813959);function H(t){return t.max-t.min}function _(t,e,i,s=.5){t.origin=s,t.originPoint=(0,G.mixNumber)(e.min,e.max,t.origin),t.scale=H(i)/H(e),t.translate=(0,G.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function X(t,e,i,s){_(t.x,e.x,i.x,s?s.originX:void 0),_(t.y,e.y,i.y,s?s.originY:void 0)}function Y(t,e,i){t.min=i.min+e.min,t.max=t.min+H(e)}function q(t,e,i){t.min=e.min-i.min,t.max=t.min+H(e)}
1function Z(t,e,i){q(t.x,e.x,i.x),q(t.y,e.y,i.y)}var J=t.i(974780);function Q(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tt(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function te(t,e,i){return{min:ti(t,e),max:ti(t,i)}}function ti(t,e){return"number"==typeof t?t:t[e]||0}var ts=t.i(181699);function tr(t){return[t("x"),t("y")]}var ta=t.i(245504),to=t.i(149587),tn=t.i(942308),tl=t.i(982363);let tu=({current:t})=>t?t.ownerDocument.defaultView:null;var td=t.i(593521);let th=new WeakMap;class tc{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,ts.createBox)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor((0,V.extractEventInfo)(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(E.isDragging[t])return null;else return E.isDragging[t]=!0,()=>{E.isDragging[t]=!1};return E.isDragging.x||E.isDragging.y?null:(E.isDragging.x=E.isDragging.y=!0,()=>{E.isDragging.x=E.isDragging.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tr(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tn.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=H(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&U.frame.postRender(()=>r(t,e)),(0,td.addValueToWillChange)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},a=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:a}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),a&&a(t,e)},o=(t,e)=>this.stop(t,e),n=()=>tr(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new N(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:n},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:tu(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&U.frame.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!tm(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),a=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(a=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,G.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,G.mixNumber)(i,t,s.max):Math.min(t,i)),t}(a,this.constraints[t],this.elastic[t])),r.set(a)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&(0,$.isRefObject)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:Q(t.x,i,r),y:Q(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:te(t,"left","right"),y:te(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&tr(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,$.isRefObject)(e))return!1;let s=e.current;(0,L.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let a=(0,ta.measurePageBox)(s,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:tt(t.x,a.x),y:tt(t.y,a.y)});
1if(i){let t=i((0,to.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,to.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),n=this.constraints||{};return Promise.all(tr(o=>{if(!tm(o,e,this.currentDirection))return;let l=n&&n[o]||{};a&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,td.addValueToWillChange)(this.visualElement,t),i.start((0,tl.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){tr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tr(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){tr(e=>{let{drag:i}=this.getProps();if(!tm(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:a}=s.layout.layoutBox[e];r.set(t[e]-(0,G.mixNumber)(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,$.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};tr(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let a,o,n,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],a=.5,o=H(i),(n=H(r))>o?a=(0,W.progress)(r.min,r.max-o,i.min):o>n&&(a=(0,W.progress)(i.min,i.max-n,r.min)),(0,J.clamp)(0,1,a))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),tr(e=>{if(!tm(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:a}=this.constraints[e];i.set((0,G.mixNumber)(r,a,s[e]))})}addListeners(){if(!this.visualElement.current)return;th.set(this.visualElement,this);let t=M(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,$.isRefObject)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),U.frame.read(e);let r=(0,C.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(tr(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:a=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:a,dragMomentum:o}}}function tm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tp extends S.Feature{constructor(t){super(t),this.removeGroupControls=R.noop,this.removeListeners=R.noop,this.controls=new tc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||R.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}var tg=S;let tf=t=>(e,i)=>{t&&U.frame.postRender(()=>t(e,i))};class tv extends tg.Feature{constructor(){super(...arguments),this.removePointerDownListener=R.noop}onPointerDown(t){this.session=new N(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tu(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:tf(t),onStart:tf(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&U.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=M(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var ty=c,tx=t.i(464978),tb=t.i(231178),tP=t.i(104035);let tD={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tT(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tA={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tn.px.test(t))return t;else t=parseFloat(t);let i=tT(t,e.target.x),s=tT(t,e.target.y);return`${i}% ${s}%`}};var tw=t.i(102254),tS=t.i(852383),tR=t.i(530662);class tL extends ty.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;(0,tS.addScaleCorrector)(tj),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),tD.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,a=i.projection;return a&&(a.isPresent=r,s||t.layoutDependency!==e||void 0===e?a.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?a.promote():a.relegate()||U.frame.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tR.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tE(t){let[e,i]=(0,tx.usePresence)(),s=(0,ty.useContext)(tb.L
1ayoutGroupContext);return(0,p.jsx)(tL,{...t,layoutGroup:s,switchLayoutGroup:(0,ty.useContext)(tP.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}let tj={borderRadius:{...tA,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tA,borderTopRightRadius:tA,borderBottomLeftRadius:tA,borderBottomRightRadius:tA,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tw.complex.parse(t);if(s.length>5)return t;let r=tw.complex.createTransformer(t),a=+("number"!=typeof s[0]),o=i.x.scale*e.x,n=i.y.scale*e.y;s[0+a]/=o,s[1+a]/=n;let l=(0,G.mixNumber)(o,n,.5);return"number"==typeof s[2+a]&&(s[2+a]/=l),"number"==typeof s[3+a]&&(s[3+a]/=l),r(s)}}};var tB=t.i(987333),tC=t.i(271329),tV=t.i(298549),tM=t.i(767369),tk=t.i(167406),tF=t.i(803668);let tU=(t,e)=>t.depth-e.depth;class tN{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tF.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,tF.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tU),this.isDirty=!1,this.children.forEach(t)}}var tO=t.i(274015),tI=t.i(528987),tK=t.i(268638);let tz=["TopLeft","TopRight","BottomLeft","BottomRight"],t$=tz.length,tW=t=>"string"==typeof t?parseFloat(t):t,tG=t=>"number"==typeof t||tn.px.test(t);function tH(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let t_=tY(0,.5,tK.circOut),tX=tY(.5,.95,R.noop);function tY(t,e,i){return s=>s<t?0:s>e?1:i((0,W.progress)(t,e,s))}function tq(t,e){t.min=e.min,t.max=e.max}function tZ(t,e){tq(t.x,e.x),tq(t.y,e.y)}function tJ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tQ=t.i(789234);function t0(t,e,i,s,r){return t-=e,t=(0,tQ.scalePoint)(t,1/i,s),void 0!==r&&(t=(0,tQ.scalePoint)(t,1/r,s)),t}function t1(t,e,[i,s,r],a,o){!function(t,e=0,i=1,s=.5,r,a=t,o=t){if(tn.percent.test(e)&&(e=parseFloat(e),e=(0,G.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let n=(0,G.mixNumber)(a.min,a.max,s);t===a&&(n-=e),t.min=t0(t.min,e,i,n,r),t.max=t0(t.max,e,i,n,r)}(t,e[i],e[s],e[r],e.scale,a,o)}let t5=["x","scaleX","originX"],t3=["y","scaleY","originY"];function t6(t,e,i,s){t1(t.x,e,t5,i?i.x:void 0,s?s.x:void 0),t1(t.y,e,t3,i?i.y:void 0,s?s.y:void 0)}function t2(t){return 0===t.translate&&1===t.scale}function t9(t){return t2(t.x)&&t2(t.y)}function t7(t,e){return t.min===e.min&&t.max===e.max}function t4(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t8(t,e){return t4(t.x,e.x)&&t4(t.y,e.y)}function et(t){return H(t.x)/H(t.y)}function ee(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ei{constructor(){this.members=[]}add(t){(0,tF.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,tF.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var es=t.i(672696);let er={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ea="u">typeof window&&void 0!==window.MotionDebug,eo=["","X","Y","Z"],en={visibility:"hidden"},el=0;function eu(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ed({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=el++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ea&&(er.totalNodes=er.resolvedTargetDeltas=er.recalculatedProjection=0),this.nodes.forEac
1h(em),this.nodes.forEach(eb),this.nodes.forEach(eP),this.nodes.forEach(ep),ea&&window.MotionDebug.record(er)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tN)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tO.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:s,layout:r,visualElement:a}=this.options;if(a&&!a.current&&a.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=tk.time.now(),e=({timestamp:i})=>{let r=i-t;r>=250&&((0,U.cancelFrame)(e),s(r-250))},U.frame.read(e,!0),i=()=>(0,U.cancelFrame)(e),tD.hasAnimatedSinceResize&&(tD.hasAnimatedSinceResize=!1,this.nodes.forEach(ex))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&a&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||a.getDefaultTransition()||eR,{onLayoutAnimationStart:o,onLayoutAnimationComplete:n}=a.getProps(),l=!this.targetLayout||!t8(this.targetLayout,s)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,tB.getValueTransition)(r,"layout"),onPlay:o,onComplete:n};(a.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||ex(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,U.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(eD),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,tM.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",U.frame,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(ef);return}this.isUpdating||this.nodes.forEach(ev),this.isUpdating=!1,this.nodes.forEach(ey),this.nodes.forEach(eh),this.nodes.forEach(ec),this.clearAllSnapshots();let t=tk.time.now();U.frameData.delta=(0,J.clamp)(0,1e3/60,t-U.frameData.timestamp),U.frameData.timestamp=t,U.frameData.isProcessing=!0,U.frameSteps.update.process(U.frameData),U.frameSteps.preRender.process(U.frameData),U.frameSteps.render.process(U.frameData),U.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tR.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(eg),this.sharedNodes.forEach(eT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,U.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){U.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,ts.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t9(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,a=s!==this.prevTransformTemplateValue;t&&(e||(0,es.hasTransform)(this.latestValues)||a)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),ej((e=s).x),ej(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,ts.createBox)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(eC))){let{scroll:t}=this.root;t&&((0,tQ.translateAxis)(i.x,t.offset.x),(0,tQ.translateAxis)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,ts.createBox)();if(tZ(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:a}=s;s!==this.root&&r&&a.layoutScroll&&(r.wasRoot&&tZ(i,t),(0,tQ.translateAxis)(i.x,r.offset.x),(0,tQ.translateAxis)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,ts.createBox)();tZ(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,tQ.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,es.hasTransform)(s.latestValues)&&(0,tQ.transformBox)(i,s.latestValues)}return(0,es.hasTransform)(this.latestValues)&&(0,tQ.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,ts.createBox)();tZ(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,es.hasTransform)(i.latestValues))continue;(0,es.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,ts.createBox)();tZ(s,i.measurePageBox()),t6(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,es.hasTransform)(this.latestValues)&&t6(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==U.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,s,r;let a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);let o=!!this.resumingFrom||this!==a;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:l}=this.options;if(this.layout&&(n||l)){if(this.resolvedRelativeTargetAt=U.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,ts.createBox)(),this.relativeTargetOrigin=(0,ts.createBox)(),Z(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tZ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,ts.createBox)(),this.targetWithTransforms=(0,ts.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,s=this.relativeTarget,r=this.relativeParent.target,Y(i.x,s.x,r.x),Y(i.y,s.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tZ(this.target,this.layout.layoutBox),(0,tQ.applyBoxDelta)(this.target,this.targetDelta)):tZ(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,ts.createBox)(),this.relativeTargetOrigin=(0,ts.createBox)(),Z(this.relativeTargetOrigin,this.target,t.target),tZ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ea&&er.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,es.hasScale)(this.parent.latestValues)||(0,es.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===U.frameData.timestamp&&(s=!1),s)return;let{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||a))return;tZ(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,n=this.treeScale.y;(0,tQ.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,ts.createBox)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tJ(this.prevProjectionDelta.x,this.projectionDelta.x),tJ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),X(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===n&&ee(this.projectionDelta.x,this.prevProjectionDelta.x)&&ee(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ea&&er.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,ts.createDelta)(),this.projectionDelta=(0,ts.createDelta)(),this.projectionDeltaWithTransform=(0,ts.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},a={...this.latestValues},o=(0,ts.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let n=(0,ts.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(eS));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(eA(o.x,t.x,s),eA(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,m,p,g,f;Z(n,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,g=n,f=s,ew(m.x,p.x,g.x,f),ew(m.y,p.y,g.y,f),i&&(u=this.relativeTarget,c=i,t7(u.x,c.x)&&t7(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,ts.createBox)()),tZ(i,this.relativeTarget)}
1l&&(this.animationValues=a,function(t,e,i,s,r,a){r?(t.opacity=(0,G.mixNumber)(0,void 0!==i.opacity?i.opacity:1,t_(s)),t.opacityExit=(0,G.mixNumber)(void 0!==e.opacity?e.opacity:1,0,tX(s))):a&&(t.opacity=(0,G.mixNumber)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<t$;r++){let a=`border${tz[r]}Radius`,o=tH(e,a),n=tH(i,a);(void 0!==o||void 0!==n)&&(o||(o=0),n||(n=0),0===o||0===n||tG(o)===tG(n)?(t[a]=Math.max((0,G.mixNumber)(tW(o),tW(n),s),0),(tn.percent.test(n)||tn.percent.test(o))&&(t[a]+="%")):t[a]=n)}(e.rotate||i.rotate)&&(t.rotate=(0,G.mixNumber)(e.rotate||0,i.rotate||0,s))}(a,r,this.latestValues,s,h,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,U.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=U.frame.update(()=>{var e;let i;tD.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=(0,tV.isMotionValue)(0)?0:(0,tC.motionValue)(0)).start((0,tl.animateMotionValue)("",i,1e3,e)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&eB(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,ts.createBox)();let e=H(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=H(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}tZ(e,i),(0,tQ.transformBox)(e,r),X(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ei),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&eu("z",t,s,this.animationValues);for(let e=0;e<eo.length;e++)eu(`rotate${eo[e]}`,t,s,this.animationValues),eu(`skew${eo[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return en;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=(0,tI.resolveMotionValue)(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,tI.resolveMotionValue)(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,es.hasTransform)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=a.animationValues||a.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,a=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||a||o)&&(s=`translate3d(${r}px, ${a}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:a,skewX:o,skewY:n}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),n&&(s+=`skewY(${n}deg) `)}let n=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==n||1!==l)&&(s+=`scale(${n}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:n,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*n.origin}% ${100*l.origin}% 0`,a.animationValues?s.opacity=a===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=a===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,tS.scaleCorrectors){if
1(void 0===o[t])continue;let{correct:e,applyTo:i}=tS.scaleCorrectors[t],r="none"===s.transform?o[t]:e(o[t],a);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=a===this?(0,tI.resolveMotionValue)(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(ef),this.root.sharedNodes.clear()}}}function eh(t){t.updateLayout()}function ec(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,a=i.source!==t.layout.source;"size"===r?tr(t=>{let s=a?i.measuredBox[t]:i.layoutBox[t],r=H(s);s.min=e[t].min,s.max=s.min+r}):eB(r,i.layoutBox,e)&&tr(s=>{let r=a?i.measuredBox[s]:i.layoutBox[s],o=H(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,ts.createDelta)();X(o,e,i.layoutBox);let n=(0,ts.createDelta)();a?X(n,t.applyTransform(s,!0),i.measuredBox):X(n,e,i.layoutBox);let l=!t9(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:a}=s;if(r&&a){let o=(0,ts.createBox)();Z(o,i.layoutBox,r.layoutBox);let n=(0,ts.createBox)();Z(n,e,a.layoutBox),t8(o,n)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=n,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:n,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function em(t){ea&&er.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ep(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function eg(t){t.clearSnapshot()}function ef(t){t.clearMeasurements()}function ev(t){t.isLayoutDirty=!1}function ey(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ex(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eb(t){t.resolveTargetDelta()}function eP(t){t.calcProjection()}function eD(t){t.resetSkewAndRotation()}function eT(t){t.removeLeadSnapshot()}function eA(t,e,i){t.translate=(0,G.mixNumber)(e.translate,0,i),t.scale=(0,G.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ew(t,e,i,s){t.min=(0,G.mixNumber)(e.min,i.min,s),t.max=(0,G.mixNumber)(e.max,i.max,s)}function eS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eR={duration:.45,ease:[.4,0,.1,1]},eL=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eE=eL("applewebkit/")&&!eL("chrome/")?Math.round:R.noop;function ej(t){t.min=eE(t.min),t.max=eE(t.max)}function eB(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(et(e)-et(i)))}function eC(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let eV=ed({attachResizeListener:(t,e)=>(0,C.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eM={current:void 0},ek=ed({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eM.current){let t=new eV({});t.mount(window),t.setOptions({layoutScroll:!0}),eM.current=t}return eM.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),eF={...t.i(962607).domAnimation,pan:{Feature:tv},drag:{Feature:tp,ProjectionNode:ek,MeasureLayout:tE},layout:{ProjectionNode:ek,MeasureLayout:tE}};var eU=t.i(444113),eN=(0,i.forwardRef)((t,e)=>{var i;let{className:a,as:n,item:u,state:d,classNames:h,isDisabled:g,listRef:S,slots:R,motionProps:L,disableAnimation:E,disableCursorAnimation:j,shouldSelectOnPressUp:B,onClick:C,tabRef:V,...M}=t,{key:k}=u,F=(0,s.useDOMRef)(e),U=n||(t.href?"a":"button"),{tabProps:N,isSelected:O,isDisabled:I,isPressed:K}
1=function(t,e,i){let{key:s,isDisabled:r,shouldSelectOnPressUp:a}=t,{selectionManager:n,selectedKey:u}=e,d=s===u,h=r||e.isDisabled||e.selectionManager.isDisabled(s),{itemProps:c,isPressed:m}=(0,T.useSelectableItem)({selectionManager:n,key:s,ref:i,isDisabled:h,shouldSelectOnPressUp:a,linkBehavior:"selection"}),p=l(e,s,"tab"),g=l(e,s,"tabpanel"),{tabIndex:f}=c,v=e.collection.getItem(s),y=(0,P.filterDOMProps)(null==v?void 0:v.props,{labelable:!0});delete y.id;let x=(0,D.useLinkProps)(null==v?void 0:v.props);return{tabProps:(0,o.mergeProps)(y,x,c,{id:p,"aria-selected":d,"aria-disabled":h||void 0,"aria-controls":d?g:void 0,tabIndex:h?void 0:f,role:"tab"}),isSelected:d,isDisabled:h,isPressed:m}}({key:k,isDisabled:g,shouldSelectOnPressUp:B},d,F);null==t.children&&delete N["aria-controls"];let z=g||I,{focusProps:$,isFocused:W,isFocusVisible:G}=(0,m.useFocusRing)(),{hoverProps:H,isHovered:_}=(0,A.useHover)({isDisabled:z}),X=(0,r.clsx)(null==h?void 0:h.tab,a),[,Y]=function(t={}){let{rerender:e=!1,delay:i=0}=t,s=(0,c.useRef)(!1),[r,a]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{s.current=!0;let t=null;return e&&(i>0?t=setTimeout(()=>{a(!0)},i):a(!0)),()=>{s.current=!1,e&&a(!1),t&&clearTimeout(t)}},[e]),[(0,c.useCallback)(()=>s.current,[]),r]}({rerender:!0});return(0,p.jsxs)(U,{ref:(0,v.mergeRefs)(F,V),"data-disabled":(0,y.dataAttr)(I),"data-focus":(0,y.dataAttr)(W),"data-focus-visible":(0,y.dataAttr)(G),"data-hover":(0,y.dataAttr)(_),"data-hover-unselected":(0,y.dataAttr)((_||K)&&!O),"data-pressed":(0,y.dataAttr)(K),"data-selected":(0,y.dataAttr)(O),"data-slot":"tab",...(0,o.mergeProps)(N,!z?{...$,...H}:{},(0,f.filterDOMProps)(M,{enabled:"string"==typeof U,omitPropNames:new Set(["title"])}),{onClick:()=>{(0,x.chain)(C,N.onClick),(null==F?void 0:F.current)&&(null==S?void 0:S.current)&&(0,b.default)(F.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:null==S?void 0:S.current})}}),className:null==(i=R.tab)?void 0:i.call(R,{class:X}),title:null==M?void 0:M.titleValue,type:"button"===U?"button":void 0,children:[O&&!E&&!j&&Y?(0,p.jsx)(eU.LazyMotion,{features:eF,children:(0,p.jsx)(w.m.span,{className:R.cursor({class:null==h?void 0:h.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...L})}):null,(0,p.jsx)("div",{className:R.tabContent({class:null==h?void 0:h.tabContent}),"data-slot":"tabContent",children:u.rendered})]})});eN.displayName="NextUI.Tab";var eO=t.i(434205),eI=t.i(710458),eK=t.i(979387),ez=t.i(903986),e$=(0,eK.tv)({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...ez.dataFocusVisibleClasses],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none","data-[inert=true]:hidden",...ez.dataFocusVisibleClasses],wrapper:[]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"}
1,sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}},placement:{top:{},start:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex"},end:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex flex-row-reverse"},bottom:{wrapper:"flex flex-col-reverse"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:eI.colorVariants.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:eI.colorVariants.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:eI.colorVariants.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:eI.colorVariants.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:eI.colorVariants.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),eW=t.i(148151);function eG(t,e){let i=null;if(t){var s,r,a,o;for(i=t.getFirstKey();null!=i&&(e.has(i)||(null==(r=t.getItem(i))||null==(s=r.props)?void 0:s.isDisabled))&&i!==t.getLastKey();)i=t.getKeyAfter(i);null!=i&&(e.has(i)||(null==(o=t.getItem(i))||null==(a=o.props)?void 0:a.isDisabled))&&i===t.getLastKey()&&(i=t.getFirstKey())}return i}class eH{getKeyLeftOf(t){return this.flipDirection?this.getNextKey(t):this.getPreviousKey(t)}getKeyRightOf(t){return this.flipDirection?this.getPreviousKey(t):this.getNextKey(t)}isDisabled(t){var e,i;return this.disabledKeys.has(t)||!!(null==(i=this.collection.getItem(t))||null==(e=i.props)?void 0:e.isDisabled)}getFirstKey(){let t=this.collection.getFirstKey();return null!=t&&this.isDisabled(t)&&(t=this.getNextKey(t)),t}getLastKey(){let t=this.collection.getLastKey();return null!=t&&this.isDisabled(t)&&(t=this.getPreviousKey(t)),t}
1getKeyAbove(t){return this.tabDirection?null:this.getPreviousKey(t)}getKeyBelow(t){return this.tabDirection?null:this.getNextKey(t)}getNextKey(t){do null==(t=this.collection.getKeyAfter(t))&&(t=this.collection.getFirstKey());while(this.isDisabled(t))return t}getPreviousKey(t){do null==(t=this.collection.getKeyBefore(t))&&(t=this.collection.getLastKey());while(this.isDisabled(t))return t}constructor(t,e,i,s=new Set){this.collection=t,this.flipDirection="rtl"===e&&"horizontal"===i,this.disabledKeys=s,this.tabDirection="horizontal"===i}}var e_=t.i(720246),eX=t.i(596102),eY=t.i(487026),eq=t.i(624006),eZ=(0,i.forwardRef)(function(t,e){let{Component:l,values:d,state:h,destroyInactiveTabPanel:m,getBaseProps:v,getTabListProps:y,getWrapperProps:x}=function(t){var e,l,d;let h=(0,eO.useProviderContext)(),[m,p]=(0,i.mapPropsVariants)(t,e$.variantKeys),{ref:g,as:v,className:y,classNames:x,children:b,disableCursorAnimation:P,motionProps:D,isVertical:T=!1,shouldSelectOnPressUp:A=!0,destroyInactiveTabPanel:w=!0,...S}=m,R=v||"div",L="string"==typeof R,E=(0,s.useDOMRef)(g),j=null!=(l=null!=(e=null==t?void 0:t.disableAnimation)?e:null==h?void 0:h.disableAnimation)&&l,B=function(t){var e,i;let s=(0,eW.useSingleSelectListState)({...t,suppressTextValueWarning:!0,defaultSelectedKey:null!=(i=null!=(e=t.defaultSelectedKey)?e:eG(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))?i:void 0}),{selectionManager:r,collection:a,selectedKey:o}=s,n=(0,c.useRef)(o);return(0,c.useEffect)(()=>
1{let t=o;(r.isEmpty||null==t||!a.getItem(t))&&null!=(t=eG(a,s.disabledKeys))&&r.setSelectedKeys([t]),(null==t||null!=r.focusedKey)&&(r.isFocused||t===n.current)||r.setFocusedKey(t),n.current=t}),{...s,isDisabled:t.isDisabled||!1}}({children:b,...S}),{tabListProps:C}=function(t,e,i){let{orientation:s="horizontal",keyboardActivation:r="automatic"}=t,{collection:a,selectionManager:l,disabledKeys:d}=e,{direction:h}=(0,eX.useLocale)(),m=(0,c.useMemo)(()=>new eH(a,h,s,d),[a,d,s,h]),{collectionProps:p}=(0,eY.useSelectableCollection)({ref:i,selectionManager:l,keyboardDelegate:m,selectOnFocus:"automatic"===r,disallowEmptySelection:!0,scrollRef:i,linkBehavior:"selection"}),g=(0,e_.useId)();n.set(e,g);let f=(0,u.useLabels)({...t,id:g});return{tabListProps:{...(0,o.mergeProps)(p,f),role:"tablist","aria-orientation":s,tabIndex:void 0}}}(S,B,E),V=(0,c.useMemo)(()=>e$({...p,className:y,disableAnimation:j,...T?{placement:"start"}:{}}),[(0,a.objectToDeps)(p),y,j,T]),M=(0,r.clsx)(null==x?void 0:x.base,y),k=(0,c.useMemo)(()=>({state:B,slots:V,classNames:x,motionProps:D,disableAnimation:j,listRef:E,shouldSelectOnPressUp:A,disableCursorAnimation:P,isDisabled:null==t?void 0:t.isDisabled}),[B,V,E,D,j,P,A,null==t?void 0:t.isDisabled,x]),F=(0,c.useCallback)(t=>({"data-slot":"base",className:V.base({class:(0,r.clsx)(M,null==t?void 0:t.className)}),...(0,o.mergeProps)((0,f.filterDOMProps)(S,{enabled:L}),t)}),[M,S,V]),U=null!=(d=p.placement)?d:T?"start":"top",N=(0,c.useCallback)(t=>({"data-slot":"tabWrapper",className:V.wrapper({class:(0,r.clsx)(null==x?void 0:x.wrapper,null==t?void 0:t.className)}),"data-placement":U,"data-vertical":T||"start"===U||"end"===U?"vertical":"horizontal"}),[x,V,U,T]),O=(0,c.useCallback)(t=>({ref:E,"data-slot":"tabList",className:V.tabList({class:(0,r.clsx)(null==x?void 0:x.tabList,null==t?void 0:t.className)}),...(0,o.mergeProps)(C,t)}),[E,C,x,V]);return{Component:R,domRef:E,state:B,values:k,destroyInactiveTabPanel:w,getBaseProps:F,getTabListProps:O,getWrapperProps:N}}({...t,ref:e}),b=(0,c.useId)(),P=!t.disableAnimation&&!t.disableCursorAnimation,D={state:h,listRef:d.listRef,slots:d.slots,classNames:d.classNames,isDisabled:d.isDisabled,motionProps:d.motionProps,disableAnimation:d.disableAnimation,shouldSelectOnPressUp:d.shouldSelectOnPressUp,disableCursorAnimation:d.disableCursorAnimation},T=[...h.collection].map(t=>(0,p.jsx)(eN,{item:t,...D,...t.props},t.key)),A=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{...v(),children:(0,p.jsx)(l,{...y(),children:P?(0,p.jsx)(eq.LayoutGroup,{id:b,children:T}):T})}),[...h.collection].map(t=>(0,p.jsx)(g,{classNames:d.classNames,destroyInactiveTabPanel:m,slots:d.slots,state:d.state,tabKey:t.key},t.key))]});return"placement"in t||"isVertical"in t?(0,p.jsx)("div",{...x(),children:A}):A});t.s(["Tabs",0,eZ],685861)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.