1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,501982,809700,e=>{"use strict";e.s(["Popover",()=>ex,"PopoverContent",()=>ew,"PopoverTrigger",()=>eS],501982);var t=e.i(843476);e.s(["Popover",()=>eb],809700),e.s(["Arrow",()=>el,"Backdrop",()=>eu,"Close",()=>ep,"Description",()=>ed,"Handle",()=>em,"Popup",()=>ea,"Portal",()=>B,"Positioner",()=>J,"Root",()=>T,"Title",()=>ec,"Trigger",()=>F,"Viewport",()=>ef,"createHandle",()=>ev],466914),e.s([],158421),e.i(158421),e.i(247167);var r=e.i(271645),n=e.i(896499),i=e.i(17989),s=e.i(46420),o=e.i(733332);let a=r.createContext(void 0);function l(e){let t=r.useContext(a);if(void 0===t&&!e)throw Error((0,o.default)(47));return t}var u=e.i(174080),c=e.i(301252),d=e.i(439957),p=e.i(956789),h=e.i(56434),f=e.i(18478),g=e.i(264111),m=e.i(116786),v=e.i(990627),b=e.i(638396);let y={...m.popupStoreSelectors,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin};class x extends c.ReactStore{constructor(e,t,r){let n=new v.PopupTriggerMap;super(S(e,n,t,r),w(n),y)}setOpen=(e,t)=>{let r,n=t.reason===h.REASONS.triggerHover,i=t.reason===h.REASONS.triggerPress&&0===t.event.detail,s=!e&&(t.reason===
1h.REASONS.escapeKey||null==t.reason),o=(0,g.attachPreventUnmountOnClose)(t),a=this.select("activeTriggerId");if(e||t.reason!==h.REASONS.closePress||null!=t.trigger||null==a||(t.trigger=this.context.triggerElements.getById(a)??this.select("activeTriggerElement")??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let l=()=>{let r=(0,g.createPopupOpenState)(this.state,e,t.trigger,o());r.openChangeReason=t.reason,this.update(r)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(b.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),u.flushSync(l)):l(),i?r="click":s?r="dismiss":t.reason===h.REASONS.focusOut&&(r="focus"),this.set("instantType",r)}}function S(e,t,r,n=!1){let i={...(0,m.createInitialPopupStoreState)(t,r,n),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function w(e){return{popupRef:r.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:r.createRef(),beforeContentFocusGuardRef:r.createRef(),stickIfOpenTimeout:new d.Timeout,triggerElements:e}}var C=e.i(675606);let E=(0,n.fastComponent)(function({props:e}){let{children:n,open:i,defaultOpen:s=!1,onOpenChange:o,onOpenChangeComplete:l,modal:u=!1,handle:c,triggerId:d,defaultTriggerId:p=null}=e,f=function(e,t){let n=(0,g.usePopupRootStore)((e,r)=>new x(t,e,r));return r.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}(0,{modal:u,open:s,openProp:i,activeTriggerId:p,triggerIdProp:d});f.useControlledProp("openProp",i),f.useControlledProp("triggerIdProp",d);let m=f.useState("open"),v=f.useState("mounted"),b=f.useState("payload");f.useContextCallback("onOpenChange",o),f.useContextCallback("onOpenChangeComplete",l),(0,g.usePopupRootSync)(f,m),(0,g.useImplicitActiveTrigger)(f);let{forceUnmount:y}=(0,g.useOpenStateTransitions)(m,f,()=>{f.update({stickIfOpen:!0,openChangeReason:null})});f.useSyncedValues({modal:u}),r.useEffect(()=>{m||f.context.stickIfOpenTimeout.clear()},[f,m]),r.useImperativeHandle(e.actionsRef,()=>({unmount:y,close:()=>f.setOpen(!1,(0,C.createChangeEventDetails)(h.REASONS.imperativeAction))}),[y,f]);let S=m||v;return(0,t.jsxs)(a.Provider,{value:f,children:[c&&(0,t.jsx)(g.PopupHandleAttachment,{handle:c,store:f}),S&&(0,t.jsx)(k,{store:f,modal:u}),"function"==typeof n?n({payload:b}):n]})});function T(e){return l(!0)?(0,t.jsx)(E,{props:e}):(0,t.jsx)(s.FloatingTree,{children:(0,t.jsx)(E,{props:e})})}function k({store:e,modal:t}){let r=e.useState("floatingRootContext"),n=(0,i.useDismiss)(r,{outsidePressEvent:{mouse:"trap-focus"===t?"sloppy":"intentional",touch:"sloppy"}}),s=n.reference,o=n.floating;return(0,g.usePopupInteractionProps)(e,{activeTriggerProps:s,inactiveTriggerProps:s,popupProps:o}),null}var P=e.i(540886),j=e.i(879938),I=e.i(552245),R=e.i(650316),_=e.i(385689),A=e.i(872135),N=e.i(788015),O=e.i(152535),L=e.i(459636),M=e.i(346570),U=e.i(32199);let F=(0,n.fastComponentRef)(function(e,n){let{render:i,className:s,style:a,disabled:u=!1,nativeButton:c=!0,handle:d,payload:p,openOnHover:f=!1,delay:m=300,closeDelay:v=0,id:y,...x}=e,S=l(!0),w=(0,L.usePopupHandleStore)(d)??S;if(!w)throw Error((0,o.default)(74));let C=(0,N.useBaseUiId)(y),E=w.useState("isTriggerActive",C),T=w.useState("floatingRootContext"),k=w.useState("isOpenedByTrigger",C),F=w.useState("triggerPopupId",C),H=r.useRef(null),{registerTrigger:D,isMountedByThisTrigger:B}=(0,g.useTriggerDataForwarding)(C,H,w,{payload:p,disabled:u,openOnHover:f,closeDelay:v}),$=w.useState("openChangeReason"),V=w.useState("stickIfOpen"),W=w.useState("openMethod"),z=w.useState("focusManagerModal"),X=(0,A.useHoverReferenceInteraction)(T,{enabled:!u&&f&&("touch"!==W||$!==h.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,R.safePolygon)(),restMs:m,delay:{close:v},triggerElementRef:H,isActiveTrigger:E,isClosing:()=>"ending"===w.select("transitionStatus")}),K=(0,_.useClick)(T,{stickIfOpen:V}),q=(0,U.useOpenMethodTriggerProps)(()=>w.select("open"),e=>{w.set("openMethod",e)}),G=w.useState("triggerProps",B),{getButtonProps:Y,buttonRef:J}=(0,P.useButton)({disabled:u,native:c}),{preFocusGuardRef:Q,handlePreFocusGuardFocus:Z,handleFocusTargetFocus:ee}=(0,M.useTriggerFocusGuards)(w,H),et=(0,I.useRenderElement)("button",e,{state:{disabled:u,open:k},ref:[J,n,D,H],props:[K.reference,X,G,q,{[b.CLICK_TRIGGER_IDENTIFIER]:"",id:C,"aria-haspopup":"dialog","aria-expanded":k,"aria-controls":F},x,Y],stateAttributesMapping:{open:e=>e&&$===h.REASONS.triggerPress?j.pressableTriggerOpenStateMapping.open(e):j.triggerOpenStateMapping.open(e)}}),er=(0,t.jsx)(r.Fragment,{children:et},C);return B&&!z?(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)(O.FocusGuard,{ref:Q,onFocus:Z}),er,(0,t.jsx)(O.FocusGuard,{ref:w.context.triggerFocusTargetRef,onFocus:ee})]}):er});var H=e.i(726674);let D=r.createContext(void 0),B=r.forwardRef(function(e,r){let{keepMounted:n=!1,...i}=e;return l().useState("mounted")||n?(0,t.jsx)(D.Provider,{value:n,children:(0,t.jsx)(H.FloatingPortal,{ref:r,...i})}):null});var $=e.i(144394),V=e.i(146376);let W=r.createContext(void 0);function z(){let e=r.useContext(W);if(!e)throw Error((0,o.default)(46));return e}var X=e.i(923706),K=e.i(426),q=e.i(222640),G=e.i(789579),Y=e.i(33383);let J=r.forwardRef(function(e,n){let{render:i,className:a,style:u,anchor:c,positionMethod:d,side:p,align:f,sideOffset:g,alignOffset:m,collisionBoundary:v="clipping-ancestors",collisionPadding:y,arrowPadding:x,sticky:S,disableAnchorTracking:w=!1,collisionAvoidance:C=b.POPUP_COLLISION_AVOIDANCE,...E}=e,T=l(),k=function(){let e=r.useContext(D);if(void 0===e)throw Error((0,o.default)(45));return e}(),P=(0,s.useFloatingNodeId)(),j=T.useState("floatingRootContext"),I=T.useState("mounted"),R=T.useState("open"),_=T.useState("openChangeReason"),A=T.useState("activeTriggerElement"),N=T.useState("modal"),O=T.useState("openMethod"),L=T.useState("positionerElement"),M=T.useState("instantType"),U=T.useState("transitionStatus"),F=T.useState("adaptiveOrigin"),H=r.useRef(null),B=(0,q.useAnimationsFinished)(L),z=(0,X.useAnchorPositioning)({anchor:c,floatingRootContext:j,positionMethod:d,mounted:I,side:p,sideOffset:g,align:f,alignOffset:m,arrowPadding:x,collisionBoundary:v,collisionPadding:y,sticky:S,disableAnchorTracking:w,keepMounted:k,nodeId:P,collisionAvoidance:C,adaptiveOrigin:F}),J=j.useState("domReferenceElement");(0,V.useIsoLayoutEffect)(()=>{let e=H.current;if(J&&(H.current=J),e&&J&&J!==e){T.set("instantType",void 0);let e=new AbortController;return B(()=>{T.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[J,B,T]);let Q=!0===N&&_!==h.REASONS.triggerHover;(0,Y.useAnchoredPopupScrollLock)(R&&Q,"touch"===O,L,A);
1let Z=T.useStateSetter("positionerElement"),ee={open:R,side:z.side,align:z.align,anchorHidden:z.anchorHidden,instant:M},et=(0,G.usePositioner)(e,ee,{styles:z.positionerStyles,transitionStatus:U,props:E,refs:[n,Z],hidden:!I,inert:!R});return(0,t.jsxs)(W.Provider,{value:z,children:[I&&Q&&(0,t.jsx)(K.InternalBackdrop,{inert:(0,$.inertValue)(!R),cutout:A}),(0,t.jsx)(s.FloatingNode,{id:P,children:et})]})});var Q=e.i(229315),Z=e.i(61487),ee=e.i(431157),et=e.i(137584),er=e.i(673327),en=e.i(96533),ei=e.i(253984),es=e.i(667865);let eo=r.createContext(void 0),ea=r.forwardRef(function(e,n){let{render:i,className:s,style:o,initialFocus:a,finalFocus:u,...c}=e,d=l(),p=z(),f=null!=(0,en.useToolbarRootContext)(!0),{context:m,hasClosePart:v}=function(){let[e,t]=r.useState(0),n=(0,es.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:r.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}(),b=d.useState("open"),y=d.useState("openMethod"),x=d.useState("instantType"),S=d.useState("transitionStatus"),w=d.useState("popupProps"),C=d.useState("titleElementId"),E=d.useState("descriptionElementId"),T=d.useState("modal"),k=d.useState("mounted"),P=d.useState("openChangeReason"),R=d.useState("activeTriggerElement"),_=d.useState("floatingRootContext"),A=_.useState("floatingId"),N=d.useState("disabled"),O=d.useState("openOnHover"),L=d.useState("closeDelay");(0,et.useOpenChangeComplete)({open:b,ref:d.context.popupRef,onComplete(){b&&d.context.onOpenChangeComplete?.(!0)}}),(0,ee.useHoverFloatingInteraction)(_,{enabled:O&&!N,closeDelay:L});let M=void 0===a?(0,g.createDefaultInitialFocus)(d.context.popupRef):a,U=!1!==T&&v;d.useSyncedValue("focusManagerModal",U);let F=d.useStateSetter("popupElement"),H={open:b,side:p.side,align:p.align,instant:x,transitionStatus:S},D=(0,I.useRenderElement)("div",e,{state:H,ref:[n,d.context.popupRef,F],props:[w,{id:A,role:"dialog",...g.FOCUSABLE_POPUP_PROPS,"aria-labelledby":C,"aria-describedby":E,onKeyDown(e){f&&er.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,ei.getDisabledMountTransitionStyles)(S),c],stateAttributesMapping:j.popupTransitionStateMapping});return(0,t.jsx)(Z.FloatingFocusManager,{context:_,openInteractionType:y,modal:U,disabled:!k||P===h.REASONS.triggerHover,initialFocus:M,returnFocus:u,restoreFocus:"popup",previousFocusableElement:(0,Q.isHTMLElement)(R)?R:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,t.jsx)(eo.Provider,{value:m,children:D})})}),el=r.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=l().useState("open"),{arrowRef:a,side:u,align:c,arrowUncentered:d,arrowStyles:p}=z();return(0,I.useRenderElement)("div",e,{state:{open:o,side:u,align:c,uncentered:d},ref:[t,a],props:[{style:p,"aria-hidden":!0},s],stateAttributesMapping:j.popupStateMapping})}),eu=r.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=l(),a=o.useState("open"),u=o.useState("mounted"),c=o.useState("transitionStatus"),d=o.useState("openChangeReason");return(0,I.useRenderElement)("div",e,{state:{open:a,transitionStatus:c},ref:t,props:[{role:"presentation",hidden:!u,style:{pointerEvents:d===h.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:j.popupTransitionStateMapping})}),ec=r.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=l(),a=(0,N.useBaseUiId)(s.id);return o.useSyncedValueWithCleanup("titleElementId",a),(0,I.useRenderElement)("h2",e,{ref:t,props:[{id:a},s]})}),ed=r.forwardRef(function(e,t){let{render:r,className:n,style:i,...s}=e,o=l(),a=(0,N.useBaseUiId)(s.id);return o.useSyncedValueWithCleanup("descriptionElementId",a),(0,I.useRenderElement)("p",e,{ref:t,props:[{id:a},s]})}),ep=r.forwardRef(function(e,t){let{render:n,className:i,style:s,disabled:o=!1,nativeButton:a=!0,...u}=e,{buttonRef:c,getButtonProps:d}=(0,P.useButton)({disabled:o,focusableWhenDisabled:!1,native:a}),p=l(),f=r.useContext(eo);return(0,V.useIsoLayoutEffect)(()=>f?.register(),[f]),(0,I.useRenderElement)("button",e,{ref:[t,c],props:[{onClick(e){p.setOpen(!1,(0,C.createChangeEventDetails)(
1h.REASONS.closePress,e.nativeEvent))}},u,d]})});var eh=e.i(818390);let ef=r.forwardRef(function(e,t){let{render:r,className:n,style:i,children:s,...o}=e,a=l(),{side:u}=z(),c=a.useState("instantType"),{children:d,state:p}=(0,eh.usePopupViewport)({store:a,side:u,children:s}),h={activationDirection:p.activationDirection,transitioning:p.transitioning,instant:c};return(0,I.useRenderElement)("div",e,{state:h,ref:t,props:[o,{children:d}],stateAttributesMapping:eh.popupViewportStateMapping})});var eg=e.i(564170);class em extends eg.BasePopupHandle{constructor(){super(function(){let e=new v.PopupTriggerMap;return Object.assign(new f.NullStore(Object.freeze(S(void 0,e)),Object.freeze(w(e)),y),{setOpen:p.NOOP})}(),"Popover")}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select("open")??!1}}function ev(){return new em}var eb=e.i(466914),eb=eb,ey=e.i(296548);let ex=eb.Root,eS=eb.Trigger,ew=({className:e,positionerClassName:r,align:n="center",side:i,sideOffset:s=4,collisionPadding:o,anchor:a,...l})=>(0,t.jsx)(eb.Portal,{children:(0,t.jsx)(eb.Positioner,{className:(0,ey.cn)("z-50",r),align:n,side:i,sideOffset:s,collisionPadding:o,anchor:a,children:(0,t.jsx)(eb.Popup,{className:(0,ey.cn)("bg-popover text-popover-foreground w-72 origin-(--transform-origin) rounded-md border p-4 shadow-md outline-hidden","data-starting-style:opacity-0 data-starting-style:scale-95 data-ending-style:opacity-0 data-ending-style:scale-95","transition-[scale,opacity] duration-100 ease-out motion-reduce:transition-none",e),...l})})})},16430,e=>{"use strict";e.s(["LineCenter",()=>n]);var t=e.i(843476),r=e.i(296548);function n({className:e,children:n}){return(0,t.jsx)("div",{className:(0,r.cn)("h-[1lh] flex items-center shrink-0",e),children:n})}},914423,e=>{"use strict";e.s(["DeprecatedLabel",()=>n]);var t=e.i(843476),r=e.i(296548);function n({className:e}){return(0,t.jsx)("div",{className:(0,r.cn)("w-[78px] h-[21px] bg-[#FDEAD8] dark:bg-[#613105] text-[#AE590A] dark:text-[#E9760C] font-medium text-xs leading-4 flex justify-center items-center p-1.5 rounded-md whitespace-nowrap",e),children:"deprecated"})}},978264,e=>{"use strict";e.s(["ArrowsExpandDiagonalIcon",()=>t]);let t=(0,e.i(930733).default)("ArrowsExpandDiagonalIcon",[["path",{d:"M10.75 2.75H15.25V7.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M15.25 2.75L10.75 7.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 10.75V15.25H7.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 15.25L7.25 10.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},968592,e=>{"use strict";e.s(["ChevronUpIcon",()=>t]);let t=(0,e.i(930733).default)("ChevronUpIcon",[["path",{d:"M2.75 11.5L9 5.25L15.25 11.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},296540,e=>{"use strict";e.s(["AssistantExternalLink",()=>i]);var t=e.i(843476),r=e.i(588420),n=e.i(296548);let i=({href:e,onClick:i,title:s,className:o})=>(0,t.jsx)("a",{href:e,onClick:i,target:"_blank",rel:"noopener noreferrer",className:"block",children:(0,t.jsxs)("span",{className:(0,n.cn)("flex items-center text-sm hover:brightness-[0.75] dark:hover:brightness-[1.35] text-primary dark:text-primary-light",o),children:[(0,t.jsx)("span",{className:"truncate font-medium",children:s}),(0,t.jsx)(r.ArrowUpRight2Icon,{"aria-hidden":"true",strokeWidth:2,className:"size-2.5 shrink-0 opacity-60"})]})})},227371,e=>{"use strict";function t(e){if("string"!=typeof e)return!1;try{let t=new URL(e);return"https:"===t.protocol}catch{return!1}}e.s(["isRemoteUrl",()=>t])},912522,e=>{"use strict";e.s(["AssistantPageLink",()=>o]);var t=e.i(843476),r=e.i(227371),n=e.i(296548),i=e.i(522016),s=e.i(296540);let o=({href:e,onClick:o,title:a,titleContainerClassName:l,onInternalLinkClick:u})=>(0,r.isRemoteUrl)(e)?(0,t.jsx)(s.AssistantExternalLink,{href:e,onClick:o,title:a,className:"gap-1"}):(0,t.jsx)(i.default,{href:e,onClick:()=>{u?.(),o()},children:(0,t.jsx)("span",{className:(0,n.cn)("flex items-center text-sm hover:brightness-[0.75] dark:hover:brightness-[1.35] text-primary dark:text-primary-light",l),children:(0,t.jsx)("span",{className:"truncate font-medium",children:a})})})},385346,e=>{"use strict";e.s(["bindLightboxHandle",()=>o,"createHandle",()=>i,"getHandleTrigger",()=>c,"getLightboxHandleSnapshot",()=>h,"getLightboxHandleVersion",()=>p,"notifyLightboxHandle",()=>s,"registerHandleTrigger",()=>l,"subscribeLightboxHandle",()=>d,"touchHandleTrigger",()=>u,"unbindLightboxHandle",()=>
1a]);let t=new WeakMap;function r(e){let r=t.get(e);if(!r)throw Error("Invalid Lightbox handle");return r}function n(e){for(let t of(e.version+=1,e.listeners))t()}function i(){let e={host:null,triggers:new Map,version:0,listeners:new Set},r={open(t,r){e.host&&e.host.open(t,r)},close(){e.host&&e.host.close()},goTo(t){e.host&&e.host.goTo(t)},get isOpen(){return e.host?.getOpen()??!1}};return t.set(r,e),r}function s(e){n(r(e))}function o(e,t){let i=r(e);for(let e of(i.host=t,i.triggers.values()))t.syncTrigger(e);n(i)}function a(e,t){let i=r(e);i.host===t&&(i.host=null,n(i))}function l(e,t){let i=r(e),s=i.triggers.get(t.id);return s&&s!==t&&i.host?.unsyncTrigger(s),i.triggers.set(t.id,t),i.host?.syncTrigger(t),n(i),()=>{i.triggers.get(t.id)===t&&(i.triggers.delete(t.id),i.host?.unsyncTrigger(t),n(i))}}function u(e,t){let i=r(e);i.triggers.get(t.id)===t&&(i.host?.syncTrigger(t),n(i))}function c(e,t){return r(e).triggers.get(t)}function d(e,t){let n=r(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function p(e){return r(e).version}function h(e){let t=r(e);return{open:t.host?.getOpen()??!1,activeIndex:t.host?.getActiveIndex()??0,version:t.version}}},411901,e=>{"use strict";e.s(["DynamicMarkdown",()=>a,"DynamicMarkdownWithoutHeaders",()=>l]);var t=e.i(843476),r=e.i(770703),n=e.i(271645);let i=(0,r.default)(()=>e.A(623752).then(e=>e.Markdown),{loadableGenerated:{modules:[42685]}}),s=(0,r.default)(()=>e.A(623752).then(e=>e.MarkdownWithoutHeaders),{loadableGenerated:{modules:[42685]}});function o(e,r){return void 0===e?r:(0,t.jsx)(n.Suspense,{fallback:e,children:r})}function a({fallback:e,...r}){return o(e,(0,t.jsx)(i,{...r}))}function l({fallback:e,...r}){return o(e,(0,t.jsx)(s,{...r}))}},757808,e=>{"use strict";e.s(["TrashIcon",()=>t]);let t=(0,e.i(930733).default)("TrashIcon",[["path",{d:"M13.474 7.25L13.1 14.355C13.044 15.417 12.166 16.25 11.103 16.25H6.89801C5.83401 16.25 4.95701 15.417 4.90101 14.355L4.52701 7.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M2.75 4.75H15.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M6.75 4.75V2.75C6.75 2.198 7.198 1.75 7.75 1.75H10.25C10.802 1.75 11.25 2.198 11.25 2.75V4.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},307080,e=>{"use strict";e.s(["CREDENTIALS_LOCALSTORAGE_KEY",()=>t,"loadCredentialStore",()=>r]);let t="mintlify-auth";function r(e){var r,i,s,o;return r=this,i=void 0,s=void 0,o=function*(){var r;return null!=(r=yield e.load(t,n))?r:{query:{},header:{},cookie:{}}},new(s||(s=Promise))(function(e,t){function n(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof s?r:new s(function(e){e(r)})).then(n,a)}l((o=o.apply(r,i||[])).next())})}let n=e=>"object"==typeof e&&null!=e&&["header","cookie","query"].every(t=>"object"==typeof e[t]&&null!=e[t])},490601,17007,232432,e=>{"use strict";e.s(["AUDIO_FORMATS",()=>d,"COMPRESSED_FORMATS",()=>g,"DATA_FORMATS",()=>h,"DOCUMENT_FORMATS",()=>p,"FONT_FORMATS",()=>f,"IMAGE_FORMATS",()=>u,"VIDEO_FORMATS",()=>c,"generatedStaticFiles",()=>l,"getFileCategory",()=>y,"isGatedFormat",()=>b],490601);var t=e.i(741790);e.s(["JSX_EXTENSIONS",()=>r,"SNIPPET_EXTENSIONS",()=>n],17007);let r=[".jsx",".tsx"],n=[".mdx",...r,".md"];e.s(["isImportedAsSnippet",()=>s],232432);var i=e.i(194838);let s=(e,t)=>{let r=(0,i.optionallyAddLeadingSlash)(e).toLowerCase();return t.has(r)&&!r.startsWith("/snippets/")&&!r.startsWith("/_snippets/")};var o=e.i(230079);let a=["readme","license","contributing","contribute"],l=["llms.txt","robots.txt","sitemap.xml","llms-full.txt"],u=[".jpeg",".jpg",".jfif",".pjpeg",".pjp",".png",".svg",".svgz",".ico",".webp",".gif",".apng",".avif",".bmp",".tiff",".tif"],c=[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v"],d=[".mp3",".wav",".flac",".aac",".ogg",".wma",".m4a"],p=[".pdf",".txt",".doc",".docx",".xls",".xlsx",".ppt",".pptx",".rtf",".odt",".ods",".odp"],h=[".csv",".tsv",".xml"],f=[".woff",".woff2",".ttf",".eot",".otf"],g=[".zip",".rar",".7z",".tar",".gz",".bz2"],m=[...u,...c,...d,...p,...h,...f,...g],v=[...p,...h,...g];function b({filePath:e,ext:t}){return(void 0!=t||!!(t=e.split(".").at(-1)))&&(t=t.startsWith(".")?t:`.${t}`,v.includes(t.toLowerCase()))}let y=(e,r)=>{let i=(0,o.optionallyRemoveLeadingSlash)(e.toLowerCase()),u=(0,t.parse)(i);if("mint.json"===u.base)return"mintConfig";if("docs.json"===u.base)return"docsConfig";if(".mintignore"===u.base)return"mintIgnore";let c=u.name,d=u.ext;if(l.includes(u.base))return"generatedStaticFile";if("skill.md"===i||i.startsWith(".mintlify/skills/")&&"skill.md"===u.base)return"skillFile";if((i.startsWith("_snippets/")||i.startsWith("snippets/"))&&n.some(e=>d===e)){if(i.startsWith("_snippets/"))return"snippet";else if(i.startsWith("snippets/"))return"snippet-v2"}else if(".mdx"===d)return(null==r?void 0:r.importedFiles)!=null&&s(e,r.importedFiles)?"snippet-v2":"page";else if(".md"===d)return a.includes(c)?null:(null==r?void 0:r.importedFiles)!=null&&s(e,r.importedFiles)?"snippet-v2":"page";else if(".jsx"===d||".tsx"===d)return"snippet-v2";else if(".yaml"===d||".yml"===d)return"potentialYamlOpenApiSpec";else if(".json"===d)return"potentialJsonOpenApiSpec";else if(".css"===d)return"css";else if(".js"===d)return"js";else if(m.includes(d))return"staticFile";return null}},15786,e=>{"use strict";function t(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}e.s(["isValidEmail",()=>t])},346944,e=>{"use strict";e.s(["useShallow",()=>n],346944);var t=e.i(271645);let r=(e,t)=>{let r=e instanceof Map?e:new Map(e.entries()),n=t instanceof Map?t
1:new Map(t.entries());if(r.size!==n.size)return!1;for(let[e,t]of r)if(!Object.is(t,n.get(e)))return!1;return!0};function n(e){let n=t.default.useRef(void 0);return t=>{let i=e(t);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return r(e,t);let n=e[Symbol.iterator](),i=t[Symbol.iterator](),s=n.next(),o=i.next();for(;!s.done&&!o.done;){if(!Object.is(s.value,o.value))return!1;s=n.next(),o=i.next()}return!!s.done&&!!o.done}return r({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(n.current,i)?n.current=i:n.current}}},604780,e=>{"use strict";e.s(["CaptchaProvider",()=>m,"useCaptcha",()=>v],604780);var t=e.i(843476),r=e.i(271645),n=e.i(206558),i=e.i(50270);let s=i.z.enum(["turnstile","hcaptcha"]),o=i.z.object({p:s.nullable().optional(),sk:i.z.string().nullable().optional(),exp:i.z.number().optional()});function a(e){try{let t=e.split(".");if(3!==t.length||!t[1])return null;let r=t[1].replace(/-/g,"+").replace(/_/g,"/"),n=JSON.parse(atob(r));return o.parse(n)}catch{return null}}let l={turnstile:27e4,hcaptcha:1e5},u={turnstile:15e3},c=(0,r.createContext)({prepareForSend:()=>Promise.resolve({trustToken:null,captchaToken:null}),ensureCaptchaScriptLoaded:()=>{},resetWidget:()=>{},getTrustToken:()=>null,refetchConfig:()=>Promise.resolve()}),d=new Map,p=null;window.__hcaptchaOnLoad=()=>{p?.()};let h={turnstile:"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",hcaptcha:"https://js.hcaptcha.com/1/api.js?render=explicit&onload=__hcaptchaOnLoad"};function f(e){switch(e){case"turnstile":return window.turnstile;case"hcaptcha":return window.hcaptcha;default:return}}let g=null;function m({children:e,enabled:i}){let s=function(e){let[t,i]=(0,r.useState)({provider:null,siteKey:null}),s=(0,r.useRef)({provider:null,siteKey:null}),o=(0,r.useRef)(null),l=(0,r.useRef)(null),u=(0,r.useCallback)(async()=>{if(l.current)return l.current;let e=(async()=>{let e=new AbortController,t=setTimeout(()=>e.abort(),1e4);try{let t=await fetch(`${n.NEXT_PUBLIC.BASE_PATH}/_mintlify/assistant/siteconfig`,{signal:e.signal});if(!t.ok)return;let r=await t.text();if(!r)return;let l=a(r);if(!l)return;o.current=r;let u={provider:l.p??null,siteKey:l.sk??null};s.current=u,i(u)}catch{}finally{clearTimeout(t),l.current=null}})();return l.current=e,e},[]),c=(0,r.useCallback)(async()=>{(function(e){if(!e)return!0;let t=a(e);return!t?.exp||1e3*t.exp-Date.now()<12e4})(o.current)&&await u()},[u]);(0,r.useEffect)(()=>{e&&u()},[e,u]);let d=(0,r.useCallback)(()=>o.current,[]),p=(0,r.useCallback)(async()=>!!o.current||(l.current?await l.current:await u(),null!==o.current),[u]);return{...t,configRef:s,getTrustToken:d,refetchIfStale:c,refetch:u,waitForConfig:p}}(i),o=s.configRef,m=(0,r.useRef)(null),v=(0,r.useRef)(null),b=(0,r.useRef)(null),y=(0,r.useRef)(null),x=(0,r.useRef)(null),S=(0,r.useRef)(!1),w=(0,r.useCallback)(()=>{if(m.current&&v.current){try{f(v.current)?.remove(m.current)}catch{}m.current=null,v.current=null}},[]),C=(0,r.useCallback)(async()=>{let{provider:e,siteKey:t}=o.current;if(!e||!t)return!1;if(m.current&&v.current===e)return!0;if(y.current)return y.current;m.current&&w();let r=(async()=>{try{await function(e){let t=h[e],r=d.get(t);if(r)return r;let n=new Promise((r,n)=>{if("turnstile"===e&&window.turnstile||"hcaptcha"===e&&window.hcaptcha)return void r();let i=setTimeout(()=>n(Error(`captcha script load timed out for ${e}`)),15e3),s=()=>{clearTimeout(i),r()};"hcaptcha"===e&&(p=s);let o=document.createElement("script");o.src=t,o.async=!0,"turnstile"===e&&(o.onload=s),o.onerror=()=>{var t;return t=Error(`failed to load captcha script for ${e}`),void(clearTimeout(i),n(t))},document.head.appendChild(o)});return n.catch(()=>d.delete(t)),d.set(t,n),n}(e)}catch{return!1}let r=f(e);if(!r)return!1;let n=(g||((g=document.createElement("div")).id="__captcha_container",g.style.position="absolute",g.style.left="-9999px",g.style.top="-9999px",g.style.width="0",g.style.height="0",g.style.overflow="hidden",document.body.appendChild(g)),g);n.innerHTML="";let i={sitekey:t,size:"invisible"};"turnstile"===e&&(i.execution="render");try{m.current=r.render(n,i)}catch{return!1}return v.current=e,!!m.current})();return y.current=r,r.finally(()=>{y.current=null}),r},[o,w]),E=(0,r.useCallback)(()=>
1{if(!b.current||!v.current)return!0;let e=l[v.current];return Date.now()-b.current.solvedAt>e},[]),T=(0,r.useCallback)(()=>{if(m.current&&v.current){try{f(v.current)?.reset(m.current)}catch{}b.current=null}},[]),k=(0,r.useCallback)(async()=>{let{provider:e}=o.current,t=m.current;if(!e||!t)return null;if(b.current&&!E())return b.current.token;if(x.current)return x.current;let r=(async()=>{let r=null;if("turnstile"===e){var n,i;r=await (n=()=>window.turnstile?.getResponse(t),i=u.turnstile,new Promise(e=>{let t=Date.now()+i,r=()=>{let i=n();return i?void e(i):Date.now()>=t?void e(null):void setTimeout(r,200)};r()}))}else try{let e=await window.hcaptcha?.execute(t,{async:!0});r=e?.response??null}catch{r=null}return r&&(b.current={token:r,solvedAt:Date.now()}),r})();return x.current=r,r.finally(()=>{x.current=null}),r},[o,E]),P=(0,r.useCallback)(async()=>{await s.refetchIfStale(),await s.waitForConfig();let e=s.getTrustToken();if(!e||!o.current.provider)return{trustToken:e,captchaToken:null};if(E()&&T(),!await C())return{trustToken:e,captchaToken:null,captchaError:"widget_render_failed"};let t=await k();return t?{trustToken:e,captchaToken:t}:(T(),{trustToken:e,captchaToken:null,captchaError:"captcha_solve_failed"})},[s,o,C,k,E,T]),{refetchIfStale:j}=s,I=(0,r.useCallback)(()=>{S.current||(S.current=!0,(async()=>{try{await j(),await C()}finally{S.current=!1}})())},[j,C]),R=(0,r.useMemo)(()=>({prepareForSend:P,ensureCaptchaScriptLoaded:I,resetWidget:T,getTrustToken:s.getTrustToken,refetchConfig:s.refetch}),[P,I,T,s.getTrustToken,s.refetch]);return(0,r.useEffect)(()=>()=>{w();let e=document.getElementById("__captcha_container");e?.remove(),g=null},[w]),(0,t.jsx)(c.Provider,{value:R,children:e})}function v(){return(0,r.useContext)(c)}},846726,e=>{"use strict";e.s(["getAiContactUrl",()=>s,"getAiMessageUrl",()=>i,"getAiThumbsFeedbackUrl",()=>o]);var t=e.i(206558),r=e.i(637054);let n="/api/assistant";function i({subdomain:e,isAuthenticated:i,v2:s=!1}){if((0,r.isCli)())return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/assistant/${e}/message`;let o=s?"v2/message":"message";if(t.NEXT_PUBLIC.AUTH_ENABLED)if(i)return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/assistant/${o}`;else return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/assistant/${e}/${o}`;let a=`${n}/${e}/${o}`;return`${t.NEXT_PUBLIC.AI_MESSAGE_HOST}${a}`}function s({subdomain:e,isAuthenticated:i}){if((0,r.isCli)())return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/assistant/${e}/contact`;if(t.NEXT_PUBLIC.AUTH_ENABLED)if(i)return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/assistant/contact`;else return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/assistant/${e}/contact`;let s=`${n}/${e}/contact`;return`${t.NEXT_PUBLIC.AI_MESSAGE_HOST}${s}`}function o({subdomain:e,isAuthenticated:r,messageId:i,feedback:s}){if(t.NEXT_PUBLIC.AUTH_ENABLED)if(r)return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/assistant/message/${i}/thumbs-feedback?feedback=${s}`;else return`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/assistant/${e}/message/${i}/thumbs-feedback?feedback=${s}`;let o=`${n}/${e}/message/${i}/thumbs-feedback?feedback=${s}`;return`${t.NEXT_PUBLIC.AI_MESSAGE_HOST}${o}`}},215220,(e,t,r)=>{"use strict";let n;var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t,r,n){return new(r||(r=Promise))(function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,a)}l((n=n.apply(e,t||[])).next())})}function a(e,t){var r,n,i,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){var u=[a,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}"function"==typeof SuppressedError&&SuppressedError;var l={exports:{}};function u(){}u.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)}
1,emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var s=0,o=n.length;s<o;s++)n[s].fn!==t&&n[s].fn._!==t&&i.push(n[s]);return i.length?r[e]=i:delete r[e],this}},l.exports=u;var c=l.exports.TinyEmitter=u,d=function(e){return null!=e[1]},p=function(e){var t=e.properties,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["properties"]),n=function(e){return Object.entries(e).sort(function(e,t){var r=e[0],n=t[0];return r.localeCompare(n,void 0)})};return JSON.stringify([n(r),n(void 0===t?{}:t)])},h=function(e){return o(void 0,void 0,void 0,function(){var t;return a(this,function(r){var n;switch(r.label){case 0:t=p(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(n=t,o(void 0,void 0,void 0,function(){var e,t,r,i;return a(this,function(s){switch(s.label){case 0:if(e="undefined"!=typeof globalThis&&(null==(r=globalThis.crypto)?void 0:r.subtle)?null==(i=globalThis.crypto)?void 0:i.subtle:void 0,"undefined"==typeof TextEncoder||!(null==e?void 0:e.digest)||"undefined"==typeof Uint8Array)throw Error("Hashing function not available");return t=(new TextEncoder).encode(n),[4,e.digest("SHA-256",t)];case 1:return[2,Array.from(new Uint8Array(s.sent())).map(function(e){return e.toString(16).padStart(2,"0")}).join("")]}})}))];case 2:return[2,r.sent()];case 3:return r.sent(),[2,t];case 4:return[2]}})})},f=function(e){var t,r=e.clientKey,n=e.appName,i=e.connectionId,s=e.customHeaders,o=e.headerName,a=e.etag,l=e.isPost,u=((t={accept:"application/json"})[(void 0===o?"authorization":o).toLocaleLowerCase()]=r,t["unleash-sdk"]="unleash-client-js:3.7.8",t["unleash-appname"]=n,t);return l&&(u["content-type"]="application/json"),a&&(u["if-none-match"]=a),Object.entries(s||{}).filter(d).forEach(function(e){var t=e[0],r=e[1];return u[t.toLocaleLowerCase()]=r}),u["unleash-connection-id"]=i,u},g=function(){},m=function(){function e(e){var t=e.onError,r=e.onSent,n=e.appName,i=e.metricsInterval,s=e.disableMetrics,o=e.url,a=e.clientKey,l=e.fetch,u=e.headerName,c=e.customHeaders,d=e.metricsIntervalInitial,p=e.connectionId;this.onError=t,this.onSent=r||g,this.disabled=void 0!==s&&s,this.metricsInterval=1e3*i,this.metricsIntervalInitial=1e3*d,this.appName=n,this.url=o instanceof URL?o:new URL(o),this.clientKey=a,this.bucket=this.createEmptyBucket(),this.fetch=l,this.headerName=u,this.customHeaders=void 0===c?{}:c,this.connectionId=p}return e.prototype.start=function(){var e=this;if(this.disabled)return!1;"number"==typeof this.metricsInterval&&this.metricsInterval>0&&(this.metricsIntervalInitial>0?setTimeout(function(){e.startTimer(),e.sendMetrics()},this.metricsIntervalInitial):this.startTimer())},e.prototype.stop=function(){this.timer&&(clearInterval(this.timer),delete this.timer)},e.prototype.createEmptyBucket=function(){return{start:new Date,stop:null,toggles:{}}},e.prototype.getHeaders=function(){return f({clientKey:this.clientKey,appName:this.appName,connectionId:this.connectionId,customHeaders:this.customHeaders,headerName:this.headerName,isPost:!0})},e.prototype.sendMetrics=function(){return o(this,void 0,void 0,function(){var e,t,r;return a(this,function(n){switch(n.label){case 0:if(e="".concat(this.url,"/client/metrics"),t=this.getPayload(),this.bucketIsEmpty(t))return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetch(e,{cache:"no-cache",method:"POST",headers:this.getHeaders(),body:JSON.stringify(t)})];case 2:return n.sent(),this.onSent(t),[3,4];case 3:return console.error("Unleash: unable to send feature metrics",r=n.sent()),this.onError(r),[3,4];case 4:return[2]}})})},e.prototype.count=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e][t?"yes":"no"]++,!0)},e.prototype.countVariant=function(e,t){return!(this.disabled||!this.bucket)&&(this.assertBucket(e),this.bucket.toggles[e].variants[t]?this.bucket.toggles[e].variants[t]+=1:this.bucket.toggles[e].variants[t]=1,!0)},e.prototype.assertBucket=function(e){if(this.disabled||!this.bucket)return!1;this.bucket.toggles[e]||(this.bucket.toggles[e]={yes:0,no:0,variants:{}})},e.prototype.startTimer=function(){var e=this;this.timer=setInterval(function(){e.sendMetrics()},this.metricsInterval)},e.prototype.bucketIsEmpty=function(e){return 0===Object.keys(e.bucket.toggles).length},e.prototype.getPayload=function(){var e=s(s({},this.bucket),{stop:new Date});return this.bucket=this.createEmptyBucket(),{bucket:e,appName:this.appName,instanceId:"browser"}},e}(),v=function(){function e(){this.store=new Map}return e.prototype.save=function(e,t){return o(this,void 0,void 0,function(){return a(this,function(r){return this.store.set(e,t),[2]})})},e.prototype.get=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){return[2,this.store.get(e)]})})},e}(),b=function(){function e(e){void 0===e&&(e="unleash:repository"),this.prefix=e}return e.prototype.save=function(e,t){return o(this,void 0,void 0,function(){var r,n;return a(this,function(i){r=JSON.stringify(t),n="".concat(this.prefix,":").concat(e);try{window.localStorage.setItem(n,r)}catch(e){console.error(e)}return[2]})})},e.prototype.get=function(e){try{var t="".concat(this.prefix,":").concat(e),r=window.localStorage.getItem(t);return r?JSON.parse(r):void 0}catch(e){console.error(e)}},e}();let y=new Uint8Array(16),x=[];for(let e=0;e<256;++e)x.push((e+256).toString(16).slice(1));var S={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},w=function(){function e(){}return e.prototype.generateEventId=function(){return function(e,t,r){if(S.randomUUID&&!e)return S.randomUUID();let i=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(y)})();i[6]=15&i[6]|64,void(i[8]=63&i[8]|128);
1return function(e,t=0){return x[e[t+0]]+x[e[t+1]]+x[e[t+2]]+x[e[t+3]]+"-"+x[e[t+4]]+x[e[t+5]]+"-"+x[e[t+6]]+x[e[t+7]]+"-"+x[e[t+8]]+x[e[t+9]]+"-"+x[e[t+10]]+x[e[t+11]]+x[e[t+12]]+x[e[t+13]]+x[e[t+14]]+x[e[t+15]]}(i)}()},e.prototype.createImpressionEvent=function(e,t,r,n,i,o){var a=this.createBaseEvent(e,t,r,n,i);return o?s(s({},a),{variant:o}):a},e.prototype.createBaseEvent=function(e,t,r,n,i){return{eventType:n,eventId:this.generateEventId(),context:e,enabled:t,featureName:r,impressionData:i}},e}(),C=["userId","sessionId","remoteAddress","currentTime"],E=function(e){return C.includes(e)},T={INIT:"initialized",ERROR:"error",READY:"ready",UPDATE:"update",IMPRESSION:"impression",SENT:"sent",RECOVERED:"recovered"},k={name:"disabled",enabled:!1,feature_enabled:!1},P="repo",j="repoLastUpdateTimestamp",I=function(){try{if("undefined"!=typeof window&&"fetch"in window)return fetch.bind(window);if("fetch"in globalThis)return fetch.bind(globalThis)}catch(e){console.error('Unleash failed to resolve "fetch"',e)}},R=function(e){function t(t){var r,n=t.storageProvider,i=t.url,o=t.clientKey,a=t.disableRefresh,l=t.refreshInterval,u=t.metricsInterval,c=t.metricsIntervalInitial,d=t.disableMetrics,p=t.appName,h=t.environment,f=t.context,g=t.fetch,y=void 0===g?I():g,x=t.createAbortController,S=void 0===x?function(){try{if("undefined"!=typeof window&&"AbortController"in window)return function(){return new window.AbortController};if("fetch"in globalThis)return function(){return new globalThis.AbortController}}catch(e){console.error('Unleash failed to resolve "AbortController" factory',e)}}():x,C=t.bootstrap,E=t.bootstrapOverride,k=t.headerName,P=void 0===k?"Authorization":k,j=t.customHeaders,R=void 0===j?{}:j,_=t.impressionDataAll,A=t.usePOSTrequests,N=t.experimental,O=e.call(this)||this;if(O.toggles=[],O.etag="",O.readyEventEmitted=!1,O.fetchedFromServer=!1,O.usePOSTrequests=!1,O.started=!1,!i)throw Error("url is required");if(!o)throw Error("clientKey is required");if(!p)throw Error("appName is required.");O.eventsHandler=new w,O.impressionDataAll=void 0!==_&&_,O.toggles=C&&C.length>0?C:[],O.url=i instanceof URL?i:new URL(i),O.clientKey=o,O.headerName=P,O.customHeaders=R,O.storage=n||("undefined"!=typeof window?new b:new v),O.refreshInterval=void 0!==a&&a?0:1e3*(void 0===l?30:l),O.context=s({appName:p,environment:void 0===h?"default":h},f),O.usePOSTrequests=void 0!==A&&A,O.sdkState="initializing";var L=null==N?void 0:N.metricsUrl;return!L||L instanceof URL||(L=new URL(L)),O.experimental=s(s({},N),{metricsUrl:L}),(null==N?void 0:N.togglesStorageTTL)&&(null==N?void 0:N.togglesStorageTTL)>0&&(O.experimental.togglesStorageTTL=1e3*N.togglesStorageTTL),O.lastRefreshTimestamp=0,O.ready=new Promise(function(e){O.init().then(e).catch(function(t){console.error(t),O.sdkState="error",O.emit(T.ERROR,t),O.lastError=t,e()})}),y||console.error('Unleash: You must either provide your own "fetch" implementation or run in an environment where "fetch" is available.'),S||console.error('Unleash: You must either provide your own "AbortController" implementation or run in an environment where "AbortController" is available.'),O.fetch=y,O.createAbortController=S,O.bootstrap=C&&C.length>0?C:void 0,O.bootstrapOverride=void 0===E||E,O.connectionId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),O.metrics=new m({onError:O.emit.bind(O,T.ERROR),onSent:O.emit.bind(O,T.SENT),appName:p,metricsInterval:void 0===u?30:u,disableMetrics:void 0!==d&&d,url:(null==(r=O.experimental)?void 0:r.metricsUrl)||O.url,clientKey:o,fetch:y,headerName:P,customHeaders:R,metricsIntervalInitial:void 0===c?2:c,connectionId:O.connectionId}),O}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.getAllToggles=function(){return function(e,t,r){for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],this.toggles,0)},t.prototype.isEnabled=function(e){var t,r=this.toggles.find(function(t){return t.name===e}),n=!!r&&r.enabled;if(this.metrics.count(e,n),(null==r?void 0:r.impressionData)||this.impressionDataAll){var i=this.eventsHandler.createImpressionEvent(this.context,n,e,"isEnabled",null!=(t=null==r?void 0:r.impressionData)?t:void 0);
1this.emit(T.IMPRESSION,i)}return n},t.prototype.getVariant=function(e){var t,r=this.toggles.find(function(t){return t.name===e}),n=(null==r?void 0:r.enabled)||!1,i=r?r.variant:k;if(i.name&&this.metrics.countVariant(e,i.name),this.metrics.count(e,n),(null==r?void 0:r.impressionData)||this.impressionDataAll){var o=this.eventsHandler.createImpressionEvent(this.context,n,e,"getVariant",null!=(t=null==r?void 0:r.impressionData)?t:void 0,i.name);this.emit(T.IMPRESSION,o)}return s(s({},i),{feature_enabled:n})},t.prototype.updateToggles=function(){return o(this,void 0,void 0,function(){var e=this;return a(this,function(t){switch(t.label){case 0:return this.timerRef||this.fetchedFromServer?[4,this.fetchToggles()]:[3,2];case 1:return t.sent(),[3,4];case 2:return this.started?[4,new Promise(function(t){var r=function(){e.fetchToggles().then(function(){e.off(T.READY,r),t()})};e.once(T.READY,r)})]:[3,4];case 3:t.sent(),t.label=4;case 4:return[2]}})})},t.prototype.updateContext=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(r){switch(r.label){case 0:return(e.appName||e.environment)&&console.warn("appName and environment are static. They can't be updated with updateContext."),t={environment:this.context.environment,appName:this.context.appName,sessionId:this.context.sessionId},this.context=s(s({},t),e),[4,this.updateToggles()];case 1:return r.sent(),[2]}})})},t.prototype.getContext=function(){return s({},this.context)},t.prototype.setContextField=function(e,t){return o(this,void 0,void 0,function(){var r,n,i;return a(this,function(o){switch(o.label){case 0:return E(e)?this.context=s(s({},this.context),((n={})[e]=t,n)):(r=s(s({},this.context.properties),((i={})[e]=t,i)),this.context=s(s({},this.context),{properties:r})),[4,this.updateToggles()];case 1:return o.sent(),[2]}})})},t.prototype.removeContextField=function(e){return o(this,void 0,void 0,function(){var t;return a(this,function(r){switch(r.label){case 0:return E(e)?this.context=s(s({},this.context),((t={})[e]=void 0,t)):"object"==typeof this.context.properties&&delete this.context.properties[e],[4,this.updateToggles()];case 1:return r.sent(),[2]}})})},t.prototype.setReady=function(){this.readyEventEmitted=!0,this.emit(T.READY)},t.prototype.init=function(){return o(this,void 0,void 0,function(){var e,t,r;return a(this,function(n){switch(n.label){case 0:return[4,this.resolveSessionId()];case 1:return e=n.sent(),this.context=s({sessionId:e},this.context),[4,this.storage.get(P)];case 2:return t=n.sent()||[],r=this,[4,this.getLastRefreshTimestamp()];case 3:return r.lastRefreshTimestamp=n.sent(),this.bootstrap&&(this.bootstrapOverride||0===t.length)?[4,this.storage.save(P,this.bootstrap)]:[3,6];case 4:return n.sent(),this.toggles=this.bootstrap,this.sdkState="healthy",[4,this.storeLastRefreshTimestamp()];case 5:return n.sent(),this.setReady(),[3,7];case 6:this.toggles=t,n.label=7;case 7:return this.sdkState="healthy",this.emit(T.INIT),[2]}})})},t.prototype.start=function(){return o(this,void 0,void 0,function(){var e,t=this;return a(this,function(r){switch(r.label){case 0:return this.started=!0,this.timerRef?(console.error("Unleash SDK has already started, if you want to restart the SDK you should call client.stop() before starting again."),[2]):[4,this.ready];case 1:return r.sent(),this.metrics.start(),e=this.refreshInterval,[4,this.initialFetchToggles()];case 2:return r.sent(),e>0&&(this.timerRef=setInterval(function(){return t.fetchToggles()},e)),[2]}})})},t.prototype.stop=function(){this.timerRef&&(clearInterval(this.timerRef),this.timerRef=void 0),this.metrics.stop()},t.prototype.isReady=function(){return this.readyEventEmitted},t.prototype.getError=function(){return"error"===this.sdkState?this.lastError:void 0},t.prototype.sendMetrics=function(){return this.metrics.sendMetrics()},t.prototype.resolveSessionId=function(){return o(this,void 0,void 0,function(){var e;return a(this,function(t){switch(t.label){case 0:return this.context.sessionId?[2,this.context.sessionId]:[4,this.storage.get("sessionId")];case 1:return(e=t.sent())?[3,3]:(e=Math.floor(1e9*Math.random()),[4,this.storage.save("sessionId",e.toString(10))]);case 2:t.sent(),t.label=3;case 3:return[2,e.toString(10)]}})})},t.prototype.getHeaders=function(){return f({clientKey:this.clientKey,connectionId:this.connectionId,appName:this.context.appName,customHeaders:this.customHeaders,headerName:this.headerName,etag:this.etag,isPost:this.usePOSTrequests})},t.prototype.storeToggles=function(e){return o(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return this.toggles=e,this.emit
1(T.UPDATE),[4,this.storage.save(P,e)];case 1:return t.sent(),[2]}})})},t.prototype.isTogglesStorageTTLEnabled=function(){var e;return!!((null==(e=this.experimental)?void 0:e.togglesStorageTTL)&&this.experimental.togglesStorageTTL>0)},t.prototype.isUpToDate=function(){if(!this.isTogglesStorageTTLEnabled())return!1;var e,t=Date.now(),r=(null==(e=this.experimental)?void 0:e.togglesStorageTTL)||0;return this.lastRefreshTimestamp>0&&this.lastRefreshTimestamp<=t&&t-this.lastRefreshTimestamp<=r},t.prototype.getLastRefreshTimestamp=function(){return o(this,void 0,void 0,function(){var e,t;return a(this,function(r){switch(r.label){case 0:return this.isTogglesStorageTTLEnabled()?[4,this.storage.get(j)]:[3,3];case 1:return e=r.sent(),[4,h(this.context)];case 2:return t=r.sent(),[2,(null==e?void 0:e.key)===t?e.timestamp:0];case 3:return[2,0]}})})},t.prototype.storeLastRefreshTimestamp=function(){return o(this,void 0,void 0,function(){var e,t;return a(this,function(r){switch(r.label){case 0:return this.isTogglesStorageTTLEnabled()?(this.lastRefreshTimestamp=Date.now(),t={},[4,h(this.context)]):[3,3];case 1:return t.key=r.sent(),t.timestamp=this.lastRefreshTimestamp,e=t,[4,this.storage.save(j,e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.initialFetchToggles=function(){if(!this.isUpToDate())return this.fetchToggles();this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady())},t.prototype.fetchToggles=function(){return o(this,void 0,void 0,function(){var e,t,r,n,i,s,o,l,u;return a(this,function(a){switch(a.label){case 0:if(!this.fetch)return[3,9];this.abortController&&!this.abortController.signal.aborted&&this.abortController.abort(),this.abortController=null==(u=this.createAbortController)?void 0:u.call(this),e=this.abortController?this.abortController.signal:void 0,a.label=1;case 1:var c,p,h;return a.trys.push([1,7,8,9]),r=(t=this.usePOSTrequests)?this.url:(c=this.url,p=this.context,h=new URL(c.toString()),Object.entries(p).filter(d).forEach(function(e){var t=e[0],r=e[1];"properties"===t&&r?Object.entries(r).filter(d).forEach(function(e){var t=e[0],r=e[1];return h.searchParams.append("properties[".concat(t,"]"),r)}):h.searchParams.append(t,r)}),h),n=t?"POST":"GET",i=t?JSON.stringify({context:this.context}):void 0,[4,this.fetch(r.toString(),{method:n,cache:"no-cache",headers:this.getHeaders(),body:i,signal:e})];case 2:return s=a.sent(),"error"===this.sdkState&&s.status<400&&(this.sdkState="healthy",this.emit(T.RECOVERED)),s.ok?(this.etag=s.headers.get("ETag")||"",[4,s.json()]):[3,5];case 3:return o=a.sent(),[4,this.storeToggles(o.toggles)];case 4:return a.sent(),"healthy"!==this.sdkState&&(this.sdkState="healthy"),this.fetchedFromServer||(this.fetchedFromServer=!0,this.setReady()),this.storeLastRefreshTimestamp(),[3,6];case 5:304===s.status?this.storeLastRefreshTimestamp():(console.error("Unleash: Fetching feature toggles did not have an ok response"),this.sdkState="error",this.emit(T.ERROR,{type:"HttpError",code:s.status}),this.lastError={type:"HttpError",code:s.status}),a.label=6;case 6:return[3,9];case 7:return"object"==typeof(l=a.sent())&&null!==l&&"name"in l&&"AbortError"===l.name||(console.error("Unleash: unable to fetch feature toggles",l),this.sdkState="error",this.emit(T.ERROR,l),this.lastError=l),[3,9];case 8:return this.abortController=null,[7];case 9:return[2]}})})},t}(c);r.EVENTS=T,r.InMemoryStorageProvider=v,r.LocalStorageProvider=b,r.
1UnleashClient=R,r.lastUpdateKey=j,r.resolveFetch=I},57383,(e,t,r)=>{e.e,function(e,t,r){"use strict";let n=r.createContext(null),i={bootstrap:[],disableRefresh:!0,disableMetrics:!0,url:"http://localhost",appName:"offline",clientKey:"not-used"},s=r.startTransition||(e=>e()),o=({config:e,children:o,unleashClient:a,startClient:l=!0,stopClient:u=!0,startTransition:c=s})=>{var d,p,h;let f=e||i,g=r.useRef(a||new t.UnleashClient(f)),[m,v]=r.useState(!!(a?null!=e&&e.bootstrap&&(null==e?void 0:e.bootstrapOverride)!==!1||null!=(d=a.isReady)&&d.call(a):f.bootstrap&&!1!==f.bootstrapOverride)),[b,y]=r.useState((null==(h=(p=g.current).getError)?void 0:h.call(p))||null);r.useEffect(()=>{f||a||console.error(`You must provide either a config or an unleash client to the flag provider. 2 If you are initializing the client in useEffect, you can avoid this warning 3 by checking if the client exists before rendering.`);let e=e=>{c(()=>{y(t=>t||e)})},t=e=>{c(()=>{y(null)})},r=null,n=()=>{r=setTimeout(()=>{c(()=>{v(!0)})},0)};return g.current.on("ready",n),g.current.on("error",e),g.current.on("recovered",t),l&&(g.current.stop(),g.current.start()),function(){g.current&&(g.current.off("error",e),g.current.off("ready",n),g.current.off("recovered",t),u&&g.current.stop()),r&&clearTimeout(r)}},[]);let x=r.useMemo(()=>({on:(e,t,r)=>g.current.on(e,t,r),off:(e,t)=>g.current.off(e,t),updateContext:async e=>await g.current.updateContext(e),isEnabled:e=>g.current.isEnabled(e),getVariant:e=>g.current.getVariant(e),client:g.current,flagsReady:m,flagsError:b,setFlagsReady:v,setFlagsError:y}),[m,b]);return r.createElement(n.Provider,{value:x},o)},a={on:(e,t,r)=>(console.error("on() must be used within a FlagProvider"),l),off:(e,t)=>(console.error("off() must be used within a FlagProvider"),l),updateContext:async()=>{console.error("updateContext() must be used within a FlagProvider")},isEnabled:()=>(console.error("isEnabled() must be used within a FlagProvider"),!1),getVariant:()=>(console.error("getVariant() must be used within a FlagProvider"),{name:"disabled",enabled:!1})},l={...a,toggles:[],impressionDataAll:{},context:{},storage:{},start:()=>{},stop:()=>{},isReady:()=>!1,getError:()=>null,getAllToggles:()=>[]},u={...a,client:l,flagsReady:!1,setFlagsReady:()=>{console.error("setFlagsReady() must be used within a FlagProvider")},flagsError:null,setFlagsError:()=>{console.error("setFlagsError() must be used within a FlagProvider")}};function c(){return r.useContext(n)||(console.error("useFlagContext() must be used within a FlagProvider"),u)}Object.defineProperty(e,"InMemoryStorageProvider",{enumerable:!0,get:()=>t.InMemoryStorageProvider}),Object.defineProperty(e,"LocalStorageProvider",{enumerable:!0,get:()=>t.LocalStorageProvider}),Object.defineProperty(e,"UnleashClient",{enumerable:!0,get:()=>t.UnleashClient}),e.FlagContext=n,e.FlagProvider=o,e.default=o,e.useFlag=e=>{let{isEnabled:t,client:n}=c(),[i,s]=r.useState(!!t(e)),o=r.useRef();return o.current=i,r.useEffect(()=>{if(!n)return;let r=()=>{let r=t(e);r!==o.current&&(o.current=r,s(!!r))},i=()=>{let r=t(e);o.current=r,s(r)};return n.on("update",r),n.on("ready",i),()=>{n.off("update",r),n.off("ready",i)}},[n]),i},e.useFlags=()=>{let{client:e}=c(),[t,n]=r.useState(e.getAllToggles());return r.useEffect(()=>{let t=()=>{n(e.getAllToggles())};return e.on("update",t),()=>{e.off("update",t)}},[]),t},e.useFlagsStatus=()=>{let{flagsReady:e,flagsError:t}=c();return{flagsReady:e,flagsError:t}},e.useUnleashClient=()=>{let{client:e}=c();return e},e.useUnleashContext=()=>{let{updateContext:e}=c();return e},e.useVariant=e=>{let{getVariant:t,client:n}=c(),[i,s]=r.useState(t(e)),o=r.useRef({name:i.name,enabled:i.enabled});return o.current=i,r.useEffect(()=>{if(!n)return;let r=()=>{var r,n,i,a,l;let u=t(e);r=o.current,(r.name!==(null==u?void 0:u.name)||r.enabled!==(null==u?void 0:u.enabled)||r.feature_enabled!==(null==u?void 0:u.feature_enabled)||(null==(n=r.payload)?void 0:n.type)!==(null==(i=null==u?void 0:u.payload)?void 0:i.type)||(null==(a=r.payload)?void 0:a.value)!==(null==(l=null==u?void 0:u.payload)?void 0:l.value))&&(s(u),o.current=u)},i=()=>{let r=t(e);o.current.name=null==r?void 0:r.name,o.current.enabled=null==r?void 0:r.enabled,s(r)};return n.on("update",r),n.on("ready",i),()=>{n.off("update",r),n.off("ready",i)}},[n]),i||{}},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}(r,e.r(215220),e.r(271645))},291343,(e,t,r)=>{"use strict";var n=e.i(247167);
3Object.defineProperty(r,"__esModule",{value:!0}),r.removeTrailingSlash=r.getDefaultServerConfig=r.getDefaultClientConfig=r.getServerBaseUrl=r.randomSessionId=r.safeCompare=void 0,r.safeCompare=(e,t)=>{let r=String(e),n=String(t),i=r.length,s=0;i!==n.length&&(n=r,s=1);for(let e=0;e<i;e++)s|=r.charCodeAt(e)^n.charCodeAt(e);return 0===s},r.randomSessionId=()=>`${Math.floor(1e9*Math.random())}`;let i=()=>{n.default.env.NEXT_PUBLIC_UNLEASH_SERVER_API_TOKEN&&console.warn("You are trying to set `NEXT_PUBLIC_UNLEASH_SERVER_API_TOKEN`. Server keys shouldn't be public. Use frontend keys or skip `NEXT_PUBLIC_ prefix.")};r.getServerBaseUrl=()=>n.default.env.UNLEASH_SERVER_API_URL||n.default.env.NEXT_PUBLIC_UNLEASH_SERVER_API_URL,r.getDefaultClientConfig=()=>(i(),{url:n.default.env.UNLEASH_FRONTEND_API_URL||"https://us.app.unleash-hosted.com/usnn0082/api/frontend/",appName:n.default.env.UNLEASH_APP_NAME||n.default.env.NEXT_PUBLIC_UNLEASH_APP_NAME||"nextjs",clientKey:n.default.env.UNLEASH_FRONTEND_API_TOKEN||"*:production.b333a8d3153c52896cd1859fe3229657e94c406ecc595569ec8f7818"}),r.getDefaultServerConfig=()=>(i(),{url:(0,r.getServerBaseUrl)()||"http://localhost:4242/api",appName:n.default.env.UNLEASH_APP_NAME||n.default.env.NEXT_PUBLIC_UNLEASH_APP_NAME||"nextjs",clientKey:n.default.env.UNLEASH_SERVER_API_TOKEN||"default:development.unleash-insecure-server-api-token"}),r.removeTrailingSlash=e=>e?.replace(/\/$/,"")},169433,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FlagProvider=void 0;let n=e.r(843476),i=e.r(57383),s=e.r(291343);r.FlagProvider=({children:e,...t})=>(0,n.jsx)(i.FlagProvider,{...t,startClient:void 0!==t.startClient?t.startClient:"undefined"!=typeof window,config:{...(0,s.getDefaultClientConfig)(),...t.config},children:e})},238795,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useUnleashClient=r.useUnleashContext=r.useFlagsStatus=r.useFlags=r.useVariant=r.useFlag=void 0;let n=e.r(57383);r.useFlag=e=>(0,n.useFlag)(e),r.useVariant=e=>(0,n.useVariant)(e),r.useFlags=()=>(0,n.useFlags)(),r.useFlagsStatus=n.useFlagsStatus,r.useUnleashContext=n.useUnleashContext,r.useUnleashClient=n.useUnleashClient},3303,(e,t,r)=>{t.exports=e.r(479520)},557611,e=>{"use strict";e.s(["Fonts",()=>o]);var t=e.i(843476),r=e.i(590280),n=e.i(192712),i=e.i(296548),s=e.i(271645);function o({fonts:e,children:o}){let{isLivePreview:a,getDocsConfigOverrides:l}=(0,s.useContext)(r.LivePreviewContext),u=l(),c=u?.fonts,d=a&&c?c:e;return(0,t.jsx)("div",{className:(0,i.cn)("relative antialiased text-gray-500 dark:text-gray-400",(0,n.getDetailedFontType)(d,"headings")?.weight&&"[[&_:is(h1,h2,h3,h4,h5,h6)]:font-headingsWeight",(0,n.getDetailedFontType)(d,"body")?.weight&&"[&_*:not(h1,h2,h3,h4,h5,h6,strong,b,h1_*,h2_*,h3_*,h4_*,h5_*,h6_*,strong_*,b_*)]:font-bodyWeight"),children:o})}},378896,e=>{"use strict";e.s(["ConfiguredVariationProvider",()=>a,"VariationQuerySync",()=>o]);var t=e.i(843476),r=e.i(91557),n=e.i(734305),i=e.i(618566),s=e.i(271645);function o(){let e=(0,i.useSearchParams)(),{options:t,setSelectedVariation:r}=(0,n.useVariation)(),o=e?.get(n.VARIATION_QUERY_PARAM);return(0,s.useLayoutEffect)(()=>{let e=new URLSearchParams(window.location.search).get(n.VARIATION_QUERY_PARAM);o&&o===e&&t.some(e=>e.id===o)&&r(o)},[t,o,r]),null}function a({children:e}){let{docsConfig:i}=(0,s.useContext)(r.DocsConfigContext),{actualSubdomain:a,subdomain:l}=(0,s.useContext)(r.DeploymentMetadataContext);return i?.theme!=="willow"?e:(0,t.jsxs)(n.VariationProvider,{options:i.variations?.options,projectId:a??l,children:[(0,t.jsx)(s.Suspense,{fallback:null,children:(0,t.jsx)(o,{})}),e]})}},340373,129749,e=>{"use strict";e.s(["MinusIcon",()=>r],340373);var t=e.i(930733);let r=(0,t.default)("MinusIcon",[["path",{d:"M3.25 9H14.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");e.s(["PlusIcon",()=>n],129749);let n=(0,t.default)("PlusIcon",[["path",{d:"M9 3.25V14.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M3.25 9H14.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined")},92621,382677,e=>{"use strict";e.s(["removeLeadingSlash",()=>r],92621),e.s(["createPathArr",()=>t],382677);let t=e=>e.split(/[\\/]/).filter(e=>""!==e),r=e=>t(e).join("/")},707934,e=>{"use strict";e.s(["WebMcpRegistration",()=>f,"resolveSitePath",()=>h]);var t=e.i(206558),r=e.i(95323),n=e.i(674987),i=e.i(194838),s=e.i(618566),o=e.i(271645);let a="\n\n[Results truncated]",l={readOnlyHint:!0,untrustedContentHint:!0},u={readOnlyHint:!1,untrustedContentHint:!1};function c(e,t){return e.length<=t?e:`${e.slice(0,t-a.length)}${a}`}function d(e){return{content:[{type:"text",text:e}]}}function p(e){return`${window.location.origin}${t.NEXT_PUBLIC.BASE_PATH}${(0,i.optionallyAddLeadingSlash)(e)}`}function h(e){try{let r=new URL(String(e??""),window.location.origin);if(r.origin!==window.location.origin)return;let n=t.NEXT_PUBLIC.BASE_PATH;if(r.pathname.startsWith("//"))return;let i=r.pathname;return n&&i===n?i="/":n&&i.startsWith(`${n}/`)&&(i=i.slice(n.length)),i.endsWith(".md")?i.slice(0,-3):i}catch{return}}function f({subdomain:e,siteName:i}){let a=(0,s.useRouter)();return(0,o.useEffect)(()=>{let s=document.modelContext;if(!s)return;let o=new AbortController,f={name:"search_docs",description:`Search the ${i} documentation for relevant pages and content.`,inputSchema:{type:"object",properties:{query:{type:"string",description:"Search query"}},required:["query"],additionalProperties:!1},annotations:l,async execute(r){let n=String(r.query??"").trim();if(!n)return d("Error: query is required.");let i=encodeURIComponent(e),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:n})},o=await fetch(t.NEXT_PUBLIC.AUTH_ENABLED?`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api/search`:`${t.NEXT_PUBLIC.AI_MESSAGE_HOST}/api/search/${i}`,s);if(t.NEXT_PUBLIC.AUTH_ENABLED&&(401===o.status||403===o.status)&&(o=await fetch(`${t.NEXT_PUBLIC.BASE_PATH}/_mintlify/api-public/search/${i}`,s)),!o.ok)return d(`Search failed (${o.status})`);let a=((await o.json()).results??[]).slice(0,10);return 0===a.length?d("No results found."):d(c(a.map(e=>[`## ${e.header}`,`URL: ${p(e.page)}`,e.content].join("\n")).join("\n\n"),1500))}},g={name:"read_page",description:`Read the full content of a ${i} documentation page as markdown.`,inputSchema:{type:"object",properties:{path:{type:"string",description:"Path or URL of the page, as returned by search_docs"}},required:["path"],additionalProperties:!1},annotations:l,async execute(e){let t=h(e.path);if(!t)return d("Error: path must be a page on this site.");let n=await (0,r.getPageMarkdown)(t);return n?d(c(n,12e3)):d(`Page not found: ${t}`)}},m={name:"navigate_page",description:`Navigate the current browser tab to a ${i} documentation page.`,inputSchema:{type:"object",properties:{path:{type:"string",description:"Path or URL of the page, as returned by search_docs"}},required:["path"],additionalProperties:!1},annotations:u,async execute(e){let t=h(e.path);return t?(a.push((0,n.navHref)(t)),d(`Navigated to ${p(t)}`)):d("Error: path must be a page on this site.")}},v={name:"get_site_overview",description:`Get an outline of the ${i} documentation, grouped by section, with a short description of each page. May be truncated for large sites; use search_docs to find pages not listed.`,inputSchema:{type:"object",properties:{},additionalProperties:!1},annotations:l,async execute(){let e=await fetch(`${t.NEXT_PUBLIC.BASE_PATH}/llms.txt`);return e.ok?d(c(await e.text(),12e3)):d(`Site overview unavailable (${e.status})`)}},b={name:"read_skill",description:`Read a ${i} agent skill document by name.`,inputSchema:{type:"object",properties:{skill_name:{type:"string",description:"The slug of the skill to read"}},required:["skill_name"],additionalProperties:!1},annotations:l,async execute(e){let r=String(e.skill_name??"").trim();if(!r)return d("Error: skill_name is required.");let n=await fetch(`${t.NEXT_PUBLIC.BASE_PATH}/.well-known/agent-skills/${encodeURIComponent(r)}/skill.md`);return n.ok?d(c(await n.text(),12e3)):d(`Skill not found: ${r}`)}};return async function(e){try{await Promise.all([f,g,m,v,b].map(t=>e.registerTool(t,{signal:o.signal})))}catch(e){if(o.signal.aborted)return;o.abort(),console.error("Failed to register WebMCP tools",e)}}(s),()=>{o.abort()}},[a,e,i]),null}},403708,e=>{"use strict";e.s(["PreviewWidgetContext",()=>o,"PreviewWidgetProvider",()=>u]);var t=e.i(843476),r=e.i(91557),n=e.i(206558),i=e.i(271645),s=e.i(50270);let o=(0,i.createContext)({changedFiles:[],isLoading:!1,analyticsContext:void 0,isMenuOpen:!1,setIsMenuOpen:e=>{},searchQuery:"",setSearchQuery:e=>{},isSearchOpen:!1,setIsSearchOpen:e=>{},editorBaseUrl:void 0}),a=s.z.object({title:s.z.string().optional()}).passthrough(),l=s.z.object({changedFiles:s.z.array(s.z.object({path:s.z.string(),status:s.z.enum(["added","removed","modified"]),rawPath:s.z.string().optional(),pageMetadata:a.optional()}))}),u=({changedFiles:e,analyticsContext:s,editorBaseUrl:a,children:u})=>{let{subdomain:c}=(0,i.useContext)(r.DeploymentMetadataContext),{auth:d}=(0,i.useContext)(r.AuthContext),p=!!d,[h,f]=(0,i.useState)(!1),[g,m]=(0,i.useState)(""),[v,b]=(0,i.useState)(!1),[y,x]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>
3{if(e||!c)return;let t=new AbortController;return x(void 0),(async()=>{try{let e=p?`${n.NEXT_PUBLIC.BASE_PATH}/_mintlify/changed-files/scoped`:`${n.NEXT_PUBLIC.BASE_PATH}/_mintlify/changed-files/${c}`,r=await fetch(e,{signal:t.signal}),i=r.ok?function(e){let t=l.safeParse(e);return t.success?t.data.changedFiles:void 0}(await r.json()):void 0;x(i??[])}catch(e){t.signal.aborted||(console.error("Failed to fetch changed files",e),x([]))}})(),()=>t.abort()},[p,e,c]),(0,t.jsx)(o.Provider,{value:{changedFiles:e??y??[],isLoading:!e&&void 0===y,analyticsContext:s,isMenuOpen:h,setIsMenuOpen:f,searchQuery:g,setSearchQuery:m,isSearchOpen:v,setIsSearchOpen:b,editorBaseUrl:a},children:u})}},802953,e=>{"use strict";e.s(["WidgetTrigger",()=>j],802953);var t=e.i(843476),r=e.i(772803),n=e.i(501982),i=e.i(930733);let s=(0,i.default)("FileSearchIcon",[["path",{d:"M5.75 6.75H7.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M5.75 9.75H10.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M15.16 6.24999H11.75C11.198 6.24999 10.75 5.80199 10.75 5.24999V1.85199",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M14 16.25C15.2426 16.25 16.25 15.2426 16.25 14C16.25 12.7574 15.2426 11.75 14 11.75C12.7574 11.75 11.75 12.7574 11.75 14C11.75 15.2426 12.7574 16.25 14 16.25Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M15.25 9.438V6.664C15.25 6.399 15.145 6.144 14.957 5.957L11.043 2.043C10.855 1.855 10.601 1.75 10.336 1.75H4.75C3.645 1.75 2.75 2.646 2.75 3.75V14.25C2.75 15.354 3.645 16.25 4.75 16.25H9.843",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}
3],["path",{d:"M15.59 15.59L17.25 17.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var o=e.i(296548),a=e.i(271645),l=e.i(403708),u=e.i(872866),c=e.i(137829),d=e.i(447939);let p=()=>{let{analyticsMediator:e}=(0,a.useContext)(d.default),t=(0,a.useMemo)(()=>{if(e)return{fileListViewed:e.createEventListener("preview_widget.file_list.viewed"),fileOpened:e.createEventListener("preview_widget.file.opened"),fileEditorOpened:e.createEventListener("preview_widget.file.editor_opened")}},[e]),r=(0,a.useCallback)(e=>{let r=(({analyticsContext:e,file:t,currentPath:r,changedFileCount:n,visibleFileCount:i,hasSearchQuery:s,hasEditorBaseUrl:o})=>{if(e)return{mainDeploymentId:e.mainDeploymentId,mainDeploymentSubdomain:e.mainDeploymentSubdomain,filePath:t?.path,fileRawPath:t?.rawPath,fileStatus:t?.status,currentPath:r,changedFileCount:n,visibleFileCount:i,hasSearchQuery:s,hasEditorBaseUrl:o}})(e);if(r&&t){if("preview_widget.file_list.viewed"===e.event)return void t.fileListViewed(r);if("preview_widget.file.opened"===e.event)return void t.fileOpened(r);t.fileEditorOpened(r)}},[t]);return{isPreviewWidgetAnalyticsReady:!!t,trackPreviewWidgetEvent:r}};var h=e.i(92621),f=e.i(803333);e.i(914140);var g=e.i(773626),m=e.i(431392);let v=(0,i.default)("FileFeatherIcon",[["path",{d:"M5.75 6.75H7.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M5.75 9.75H10.25",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M15.16 6.24999H11.75C11.198 6.24999 10.75 5.80199 10.75 5.24999V1.85199",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M15.25 8.584V6.664C15.25 6.399 15.145 6.144 14.957 5.957L11.043 2.043C10.855 1.855 10.601 1.75 10.336 1.75H4.75C3.645 1.75 2.75 2.646 2.75 3.75V14.25C2.75 15.354 3.645 16.25 4.75 16.25H8.385",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M10.75 17.25C10.75 17.25 11.432 11.259 17.25 10.75C15.82 12.44 17.25 15.75 13.5 15.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined");var b=e.i(522016),y=e.i(340373),x=e.i(129749);let S=(0,i.default)("SquarePlusMinusIcon",[["path",{d:"M13.25 2.75H4.75C3.64543 2.75 2.75 3.64543 2.75 4.75V13.25C2.75 14.3546 3.64543 15.25 4.75 15.25H13.25C14.3546 15.25 15.25 14.3546 15.25 13.25V4.75C15.25 3.64543 14.3546 2.75 13.25 2.75Z",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M9 4.75V9.75",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M11.5 7.25H6.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}],["path",{d:"M11.5 12.25H6.5",stroke:"currentColor",width:"1.5",linecap:"round",linejoin:"round"}]],"outlined"),w=({status:e,className:r})=>{let{Icon:n,label:i}={added:{Icon:x.PlusIcon,label:"Added file"},removed:{Icon:y.MinusIcon,label:"Removed file"},modified:{Icon:S,label:"Modified file"}}[e];return(0,t.jsx)(n,{strokeWidth:2,className:(0,o.cn)("size-3.5 text-inherit",r),"aria-label":i})},C=({status:e})=>{let r={added:{label:"Added",className:"bg-green-50 dark:bg-green-900/20 text-green-800 dark:text-green-500"},removed:{label:"Removed",className:"bg-red-50 dark:bg-red-900/20 text-red-800 dark:text-red-500"},modified:{label:"Modified",className:"bg-yellow-50 dark:bg-yellow-900/20 text-yellow-800 dark:text-yellow-500"}}[e];return(0,t.jsxs)("div",{className:(0,o.cn)("inline-flex items-center gap-1 px-1.5 py-0.5 rounded-md text-xs font-medium",r.className),role:"status","aria-label":`File status: ${r.label}`,children:[(0,t.jsx)(w,{status:e,className:"shrink-0 size-2.5"}),(0,t.jsx)("span",{children:r.label})]})},E=({file:e})=>{let{analyticsContext:n,editorBaseUrl:i,setIsMenuOpen:s}=(0,a.useContext)(l.PreviewWidgetContext),{trackPreviewWidgetEvent:u}=p(),c=(0,f.useCurrentPath)(),d=(0,a.useMemo)(()=>{if(i)return`${i}/${(e.rawPath??"").split("/").map(e=>encodeURIComponent(e)).join("/")}`},[i,e.rawPath]),h=(0,g.isEqualIgnoringLeadingSlash)(c,e.path),y="removed"===e.status,x=!!i,S=(0,o.cn)("group/change-page-item p-2 rounded-xl flex items-center gap-2 w-full disabled:cursor-not-allowed",h&&"bg-[#F9F9F9] dark:bg-[#191A1B]",!y&&"hover:bg-[#F9F9F9] dark:hover:bg-[#191A1B]"),w=(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0
3w-full",children:[(0,t.jsx)("div",{className:"w-[5rem] flex justify-start",children:(0,t.jsx)(C,{status:e.status})}),(0,t.jsx)("p",{className:"text-sm text-left text-gray-900 dark:text-gray-100 truncate flex-1",title:e.path,children:e.path}),!y&&i&&(0,t.jsx)(r.TooltipProvider,{children:(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{render:(0,t.jsx)("a",{href:d,target:"_blank",rel:"noopener noreferrer",onClick:t=>{t.stopPropagation(),u({event:"preview_widget.file.editor_opened",analyticsContext:n,file:e,currentPath:c,hasEditorBaseUrl:x})},className:"opacity-0 group-hover/change-page-item:opacity-100 ml-auto shrink-0 p-1 rounded hover:bg-[#F0F0F0] dark:hover:bg-[#252627] text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300","aria-label":`Open ${e.path} in editor`,children:(0,t.jsx)(v,{strokeWidth:2,className:"size-[18px] shrink-0","aria-hidden":"true"})})}),(0,t.jsxs)(r.TooltipContent,{className:"text-sm",side:"left",children:[(0,t.jsx)(r.TooltipArrow,{}),(0,t.jsx)("p",{children:"Open in editor"})]})]})})]});return y?(0,t.jsx)("button",{className:S,disabled:!0,"aria-disabled":"true",children:w}):(0,t.jsx)(b.default,{href:(0,m.optionallyAddLeadingSlash)(e.path),prefetch:!0,className:S,onClick:()=>{u({event:"preview_widget.file.opened",analyticsContext:n,file:e,currentPath:c,hasEditorBaseUrl:x}),s(!1)},"aria-current":h?"page":void 0,children:w})},T=()=>{let{analyticsContext:e,changedFiles:r,editorBaseUrl:n,isLoading:i,searchQuery:s}=(0,a.useContext)(l.PreviewWidgetContext),{isPreviewWidgetAnalyticsReady:o,trackPreviewWidgetEvent:u}=p(),c=(0,a.useRef)(!1),d=(0,a.useMemo)(()=>((e,t)=>{if(!t.trim())return e;let r=(0,h.removeLeadingSlash)(t.trim()).toLowerCase();return e.filter(e=>{let t=e.pageMetadata?.title?.toLowerCase().includes(r),n=e.path.toLowerCase().includes(r);return t||n})})(r,s),[r,s]);return(0,a.useEffect)(()=>{o&&e&&!i&&!c.current&&(c.current=!0,u({event:"preview_widget.file_list.viewed",analyticsContext:e,changedFileCount:r.length,visibleFileCount:d.length,hasSearchQuery:s.trim().length>0,hasEditorBaseUrl:!!n}))},[e,r.length,n,d.length,i,o,s,u]),(0,t.jsx)("div",{className:"flex flex-col overflow-y-auto flex-1 min-h-0 gap-px",role:"list","aria-label":"Changed files",children:i?(0,t.jsx)("div",{className:"animate-pulse",role:"status","aria-label":"Loading changed files",children:[0,1,2].map(e=>(0,t.jsxs)("div",{className:"p-2 rounded-xl flex items-center gap-2 w-full",children:[(0,t.jsx)("div",{className:"w-[5rem] flex justify-start",children:(0,t.jsx)("div",{className:"h-4 w-full bg-gray-200 dark:bg-gray-700 rounded-md"})}),(0,t.jsx)("div",{className:"h-4 w-40 bg-gray-200 dark:bg-gray-700 rounded-md"})]},e))}):d.length>0?d.map(e=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(E,{file:e})},e.path)):(0,t.jsx)("div",{className:"flex flex-col items-center justify-center py-8 px-4",role:"status",children:(0,t.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:s.trim()?"No files match your search":"No file changes"})})})},k=()=>{let{searchQuery:e,setSearchQuery:r,setIsMenuOpen:n}=(0,a.useContext)(l.PreviewWidgetContext),i=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=t=>{"Escape"===t.key&&i.current===document.activeElement&&(e?(t.preventDefault(),t.stopPropagation(),r("")):n(!1))};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,r,n]),(0,t.jsxs)("div",{className:"relative flex items-center w-full",children:[(0,t.jsx)("label",{htmlFor:"preview-widget-search",className:"sr-only",children:"Search files"}),(0,t.jsx)("input",{id:"preview-widget-search",ref:i,type:"text",value:e,onChange:e=>r(e.target.value),placeholder:"What are you looking for?","aria-label":"Search files",className:"flex-1 text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400 dark:placeholder:text-gray-500 bg-transparent focus-within:outline-0",autoFocus:!0,autoComplete:"off"})]})},P=()=>{let{changedFiles:e,isSearchOpen:r,setIsSearchOpen:n,setSearchQuery:i}=(0,a.useContext)(l.PreviewWidgetContext);return(0,t.jsx)("div",{className:"flex flex-col min-h-0 flex-1",children:(0,t.jsx)("div",{className:"flex flex-col flex-1 min-h-0 transition-all duration-300 ease-out",children:(0,t.jsx)("div",{id:"files-panel",role:"tabpanel","aria-labelledby":"files-tab",className:"flex flex-col flex-1 min-h-0",children:(0,t.jsxs)("div",{className:"flex flex-col overflow-y-auto flex-1 min-h-0 p-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-2 pt-1.5 pb-3 shrink-0 text-sm text-gray-400 dark:text-gray-500",children:[r?(0,t.jsx)(k,{}):(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:[e.length>0&&(0,t.jsx)("span",{"aria-label":`${e.length} files changed`,children:e.length})," ",e.length>1?"files":"file"," changed"]})}),(0,t.jsx)("button",{onClick:()=>{r&&i(""),n(!r)},"aria-label":"Toggle search","aria-expanded":r,children:r?(0,t.jsx)(c.XmarkIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0"}):(0,t.jsx)(u.MagnifierIcon,{"aria-hidden":"true",strokeWidth:2,className:"size-4 shrink-0"})})]}),(0,t.jsx)(T,{})]})})})})},j=()=>{let{isMenuOpen:e,setIsMenuOpen:i,searchQuery:u}=(0,a.useContext)(l.PreviewWidgetContext),[c,d]=(0,a.useState)(!1);return(0,t.jsx)(r.TooltipProvider,{delay:150,children:(0,t.jsxs)(n.Popover,{open:e,onOpenChange:(e,t)=>
3{(e||"escape-key"!==t.reason||!u)&&i(e)},children:[(0,t.jsxs)(r.Tooltip,{open:c&&!e,children:[(0,t.jsx)(r.TooltipTrigger,{render:(0,t.jsx)(n.PopoverTrigger,{render:(0,t.jsx)("button",{onClick:()=>i(!e),onPointerEnter:()=>d(!0),onPointerLeave:()=>d(!1),"aria-haspopup":"menu","aria-expanded":e,"aria-label":"Preview Widget",className:(0,o.cn)("overflow-hidden z-999 flex touch-none fixed bottom-7 right-7 w-fit items-center justify-center rounded-full p-2 border border-gray-950/20 dark:border-white/20 size-12","bg-background-dark dark:bg-background-light dark:brightness-[1.5]","hover:bg-neutral-900 dark:hover:bg-neutral-100 aria-expanded:bg-neutral-900 dark:aria-expanded:bg-neutral-100","cursor-pointer active:scale-[93%] transition-height transition-[transform,background-color] duration-150 ease-in-out outline-offset-4","animate-[slide-up_0.8s_ease-out]"),children:(0,t.jsx)(s,{"aria-hidden":"true",strokeWidth:2,className:"size-5 text-white dark:text-gray-900 shrink-0"})})})}),(0,t.jsxs)(r.TooltipContent,{side:"left",showArrow:!1,className:"bg-background-dark dark:bg-background-light",children:[(0,t.jsx)(r.TooltipArrow,{className:"[&_svg]:text-background-dark dark:[&_svg]:text-background-light",arrowBgClassName:"bg-background-dark dark:bg-background-light"}),(0,t.jsx)("p",{className:"text-xs text-white dark:text-gray-900",children:"View changed files"})]})]}),(0,t.jsx)(n.PopoverContent,{collisionPadding:25,className:"outline-0 sm:w-[380px] p-0 min-h-[70px] max-h-[80vh] rounded-3xl bg-background-light dark:bg-background-dark border border-gray-50 dark:border-white/[0.08] flex flex-col shadow-2xl shadow-gray-900/5",side:"top",align:"end",role:"dialog","aria-label":"Preview Widget Menu",style:{boxShadow:"0px 0px 10px 0px rgba(0, 0, 0, 0.1)"},children:(0,t.jsx)(P,{})})]})})}},389096,e=>{e.v(t=>Promise.all(["static/chunks/e6aa486151968915.js","static/chunks/31f7d10d729ba249.js","static/chunks/a0d6544003b7d24c.js"].map(t=>e.l(t))).then(()=>t(567288)))},753735,e=>{e.v(t=>Promise.all(["static/chunks/c491ff89ef979e8a.js"].map(t=>e.l(t))).then(()=>t(639230)))},626198,e=>{e.v(t=>Promise.all(["static/chunks/e60eabce2aed9370.js","static/chunks/6fea0e8e728ea070.js"].map(t=>e.l(t))).then(()=>t(865117)))},108387,e=>{e.v(t=>Promise.all(["static/chunks/6f7c0c24933652d0.js"].map(t=>e.l(t))).then(()=>t(563703)))},566265,e=>{e.v(t=>Promise.all(["static/chunks/b32535d7748ff90b.js"].map(t=>e.l(t))).then(()=>t(871530)))},454394,e=>{e.v(t=>Promise.all(["static/chunks/ea5bf9887fb9ee20.js"].map(t=>e.l(t))).then(()=>t(146867)))},353183,e=>{e.v(t=>Promise.all(["static/chunks/00d40ac625fa85c0.js"].map(t=>e.l(t))).then(()=>t(180689)))},644985,e=>{e.v(t=>Promise.all(["static/chunks/6742215b8d63006d.js"].map(t=>e.l(t))).then(()=>t(604570)))},366555,e=>{e.v(t=>Promise.all(["static/chunks/0fd6f8b6a55e377d.js"].map(t=>e.l(t))).then(()=>t(761198)))},291239,e=>{e.v(t=>Promise.all(["static/chunks/263c4141d29c317a.js"].map(t=>e.l(t))).then(()=>t(697374)))},863050,e=>{e.v(t=>Promise.all(["static/chunks/7eb502f79ae957c5.js","static/chunks/e35bd78ebe5f8f9f.js","static/chunks/7322c73bb6d8d6cd.js"].map(t=>e.l(t))).then(()=>t(299550)))},929176,e=>{e.v(t=>Promise.all(["static/chunks/480697d5e64c5f4c.js"].map(t=>e.l(t))).then(()=>t(593615)))},307612,e=>{e.v(t=>Promise.all(["static/chunks/21ae0c89a95d3866.js"].map(t=>e.l(t))).then(()=>t(971751)))},777785,e=>{e.v(t=>Promise.all(["static/chunks/02488abea7c0776f.js"].map(t=>e.l(t))).then(()=>t(97903)))},838687,e=>{e.v(t=>Promise.all(["static/chunks/7f55e5541714a957.js","static/chunks/45e181f5833b9620.js"].map(t=>e.l(t))).then(()=>t(979772)))},210729,e=>{e.v(t=>Promise.all(["static/chunks/4523f4337cf2bf32.js","static/chunks/afcf122a0b34530b.js","static/chunks/dbf04b026f4cd8d7.js"].map(t=>e.l(t))).then(()=>t(950629)))},861235,e=>{e.v(t=>Promise.all(["static/chunks/3f023d341f3a1908.js","static/chunks/9e4b964a98bceb40.js"].map(t=>e.l(t))).then(()=>t(5695)))},93985,e=>{e.v(t=>Promise.all(["static/chunks/65c62ba0536b7000.js","static/chunks/ae8dfdc9194c1d48.js"].map(t=>e.l(t))).then(()=>t(851411)))},428544,e=>{e.v(t=>Promise.all(["static/chunks/d3dea0afd672657c.js"].map(t=>e.l(t))).then(()=>t(820676)))},87932,e=>{e.v(t=>Promise.all(["static/chunks/5917258e888b4dff.js","static/chunks/58dd45b95f6030ba.js"].map(t=>e.l(t))).then(()=>t(465938)))},623752,e=>{e.v(t=>Promise.all(["static/chunks/2119d8c4cd150ffe.js","static/chunks/b26c3856ca26ff0e.js","static/chunks/96679edf63715f89.js","static/chunks/84b99a46231ef6be.js","
3static/chunks/7dac459a5be0fbd2.js","static/chunks/47232d04bffc0a26.js","static/chunks/5dff9728b05c4d45.css"].map(t=>e.l(t))).then(()=>t(42685)))},591812,e=>{e.v(t=>Promise.all(["static/chunks/9853059e717e729a.css","static/chunks/851b3c2af7bd9581.css","static/chunks/5dff9728b05c4d45.css","static/chunks/5ae391b7b191d711.css","static/chunks/c0a32369ed35c680.js","static/chunks/a346437fc77a898f.js","static/chunks/7426f76bd7add344.js","static/chunks/c686a1014c44326f.js","static/chunks/d2bb5d5200174a88.js"].map(t=>e.l(t))).then(()=>t(496180)))}]);
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.