PageSourceSearch

https://clippie.ai/_next/static/chunks/41368-c73e525f20e87655.js

js clippie.ai collected 2026-10-05 11:57:10 UTC 19,724 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a103c7-3b2e-79a3-b958-cd55a1186ae7")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41368],{12247:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{callServer:function(){return r.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return o.findSourceMapURL}});let r=n(69612),o=n(20816),i=n(97102)},27736:(t,e,n)=>{n.d(e,{I:()=>i});var r=n(69549),o=n(25383);function i(t,e){return(0,o.t)(t,r.$,e)}},30563:(t,e,n)=>{n.d(e,{Kq:()=>W,UC:()=>V,ZL:()=>J,bL:()=>X,i3:()=>tt,l9:()=>z});var r=n(7620),o=n(47231),i=n(61715),s=n(18107),a=n(18380),u=n(1679),l=n(53890),c=n(14972),d=n(48787),h=n(60421),p=n(46118),f=n(10797),g=n(77514),v=n(29350),m=n(54568),y=Object.defineProperty,b=(t,e)=>y(t,"name",{value:e,configurable:!0}),[x,C]=(0,s.A)("Tooltip",[l.Bk]),w=(0,l.Bk)(),R="tooltip.open",[P,j]=x("TooltipProvider"),T=b(t=>{let{__scopeTooltip:e,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:s}=t,a=r.useRef(!0),u=r.useRef(!1),l=r.useRef(0);return r.useEffect(()=>{let t=l.current;return()=>window.clearTimeout(t)},[]),(0,m.jsx)(P,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{o<=0||(window.clearTimeout(l.current),a.current=!1)},[o]),onClose:r.useCallback(()=>{o<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,o))},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(t=>{u.current=t},[]),disableHoverableContent:i,children:s})},"TooltipProvider"),O="Tooltip",[E,D]=x(O),M=b(t=>{let{__scopeTooltip:e,children:n,open:o,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=t,d=j(O,t.__scopeTooltip),h=w(e),[p,g]=r.useState(null),[v,y]=r.useState(void 0),x=(0,u.B)(),C=r.useRef(0),P=null!=a?a:d.disableHoverableContent,T=null!=c?c:d.delayDuration,D=r.useRef(!1),[M,k]=(0,f.i)({prop:o,defaultProp:null!=i&&i,onChange:b(t=>{t?(d.onOpen(),document.dispatchEvent(new CustomEvent(R))):d.onClose(),null==s||s(t)},"onChange"),caller:O}),L=r.useMemo(()=>M?D.current?"delayed-open":"instant-open":"closed",[M]),S=r.useCallback(()=>{window.clearTimeout(C.current),C.current=0,D.current=!1,k(!0)},[k]),_=r.useCallback(()=>{window.clearTimeout(C.current),C.current=0,k(!1)},[k]),I=r.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>{D.current=!0,k(!0),C.current=0},T)},[T,k]);return r.useEffect(()=>()=>{C.current&&(window.clearTimeout(C.current),C.current=0)},[]),(0,m.jsx)(l.bL,{...h,children:(0,m.jsx)(E,{scope:e,contentId:null!=v?v:x,setContentId:y,open:M,stateAttribute:L,trigger:p,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?I():S()},[d.isOpenDelayedRef,I,S]),onTriggerLeave:r.useCallback(()=>{P?_():(window.clearTimeout(C.current),C.current=0)},[_,P]),onOpen:S,onClose:_,disableHoverableContent:P,children:n})})},"Tooltip"),k="TooltipTrigger",L=r.forwardRef(b(function(t,e){let{__scopeTooltip:n,...s}=t,a=D(k,n),u=j(k,n),c=w(n),d=r.useRef(null),p=(0,i.s)(e,d,a.onTriggerChange),f=r.useRef(!1),g=r.useRef(!1),v=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,m.jsx)(l.Mz,{asChild:!0,...c,children:(0,m.jsx)(h.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:p,onPointerMove:(0,o.mK)(t.onPointerMove,t=>{"touch"!==t.pointerType&&(g.current||u.isPointerInTransitRef.current||(a.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,o.mK)(t.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:(0,o.mK)(t.onPointerDown,()=>{a.open&&a.onClose(),f.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,o.mK)(t.onFocus,()=>{f.current||a.onOpen()}),onBlur:(0,o.mK)(t.onBlur,a.onClose),onClick:(0,o.mK)(t.onClick,a.onClose)})})},"TooltipTrigger")),S="TooltipPortal",[_,I]=x(S,{forceMount:void 0}),K=b(t=>{let{__scopeTooltip:e,forceMount:n,children:r,container:o}=t,i=D(S,e);
1return(0,m.jsx)(_,{scope:e,forceMount:n,children:(0,m.jsx)(d.C,{present:n||i.open,children:(0,m.jsx)(c.Z,{asChild:!0,container:o,children:r})})})},"TooltipPortal"),F="TooltipContent",A=r.forwardRef(b(function(t,e){let n=I(F,t.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=t,s=D(F,t.__scopeTooltip);return(0,m.jsx)(d.C,{present:r||s.open,children:s.disableHoverableContent?(0,m.jsx)(U,{side:o,...i,ref:e}):(0,m.jsx)(G,{side:o,...i,ref:e})})},"TooltipContent")),G=r.forwardRef(b(function(t,e){let n=D(F,t.__scopeTooltip),o=j(F,t.__scopeTooltip),s=r.useRef(null),a=(0,i.s)(e,s),[u,l]=r.useState(null),{trigger:c,onClose:d}=n,h=s.current,{onPointerInTransitChange:p}=o,f=r.useCallback(()=>{l(null),p(!1)},[p]),g=r.useCallback((t,e)=>{let n=t.currentTarget,r={x:t.clientX,y:t.clientY},o=H(r,n.getBoundingClientRect());l($([...Z(r,o),...q(e.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>f(),[f]),r.useEffect(()=>{if(c&&h){let t=b(t=>g(t,h),"handleTriggerLeave"),e=b(t=>g(t,c),"handleContentLeave");return c.addEventListener("pointerleave",t),h.addEventListener("pointerleave",e),()=>{c.removeEventListener("pointerleave",t),h.removeEventListener("pointerleave",e)}}},[c,h,g,f]),r.useEffect(()=>{if(u){let t=b(t=>{let e=t.target,n={x:t.clientX,y:t.clientY},r=(null==c?void 0:c.contains(e))||(null==h?void 0:h.contains(e)),o=!Y(n,u);r?f():o&&(f(),d())},"handleTrackPointerGrace");return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}},[c,h,u,d,f]),(0,m.jsx)(U,{...t,ref:a})},"TooltipContentHoverable")),N=(0,p.Dc)("TooltipContent"),U=r.forwardRef(b(function(t,e){let{__scopeTooltip:n,children:o,"aria-label":i,id:s,onEscapeKeyDown:u,onPointerDownOutside:c,...d}=t,h=D(F,n),p=w(n),{onClose:f}=h;r.useEffect(()=>(document.addEventListener(R,f),()=>document.removeEventListener(R,f)),[f]),r.useEffect(()=>{if(h.trigger){let t=b(t=>{t.target instanceof Node&&t.target.contains(h.trigger)&&f()},"handleScroll");return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}},[h.trigger,f]);let{setContentId:y}=h;return(0,g.N)(()=>(y(s),()=>{y(void 0)}),[s,y]),(0,m.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:t=>t.preventDefault(),onDismiss:f,children:(0,m.jsxs)(l.UC,{"data-state":h.stateAttribute,role:i?void 0:"tooltip",id:i?void 0:h.contentId,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(N,{children:o}),i?(0,m.jsx)(v.bL,{id:h.contentId,role:"tooltip",children:i}):null]})})},"TooltipContentImpl")),B=r.forwardRef(b(function(t,e){let{__scopeTooltip:n,...r}=t,o=w(n);return(0,m.jsx)(l.i3,{...o,...r,ref:e})},"TooltipArrow"));function H(t,e){let n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}function Z(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return r}function q(t){let{top:e,right:n,bottom:r,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:r},{x:o,y:r}]}function Y(t,e){let{x:n,y:r}=t,o=!1;for(let t=0,i=e.length-1;t<e.length;i=t++){let s=e[t],a=e[i],u=s.x,l=s.y,c=a.x,d=a.y;l>r!=d>r&&n<(c-u)*(r-l)/(d-l)+u&&(o=!o)}return o}function $(t){let e=t.slice();return e.sort((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:1*!!(t.y>e.y)),Q(e)}function Q(t){if(t.length<=1)return t.slice();let e=[];for(let n=0;n<t.length;n++){let r=t[n];for(;e.length>=2;){let t=e[e.length-1],n=e[e.length-2];if((t.x-n.x)*(r.y-n.y)>=(t.y-n.y)*(r.x-n.x))e.pop();else break}e.push(r)}e.pop();let n=[];for(let e=t.length-1;e>=0;e--){let r=t[e];for(;n.length>=2;){let t=n[n.length-1],e=n[n.length-2];if((t.x-e.x)*(r.y-e.y)>=(t.y-e.y)*(r.x-e.x))n.pop();else break}n.push(r)}return(n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y)?e:e.concat(n)}b(H,"getExitSideFromRect"),b(Z,"getPaddedExitPoints"),b(q,"getPointsFromRect"),b(Y,"isPointInPolygon"),b($,"getHull"),b(Q,"getHullPresorted");var W=T,X=M,z=L,J=K,V=A,tt=B},39214:(t,e,n)=>{n.d(e,{Hs:()=>P,UC:()=>A,VY:()=>H,ZL:()=>L,bL:()=>O,bm:()=>Z,hE:()=>B,hJ:()=>_,l9:()=>E});var r=n(7620),o=n(47231),i=n(61715),s=n(18107),a=n(1679),u=n(10797),l=n(18380),c=n(18249),d=n(14972),h=n(48787),p=n(60421),f=n(26419),g=n(77514),v=n(72413),m=n(9702),y=n(46118),b=n(54568),x=Object.defineProperty,C=(t,e)=>x(t,"name",{value:e,configurable:!0}),w="Dialog",[R,P]=(0,s.A)(w),[j,T]=R(w),O=C(t=>{let{__scopeDialog:e,children:n,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=t,c=r.useRef(null),d=r.useRef(null),[h,p]=(0,u.i)({prop:o,defaultProp:null!=i&&i,onChange:s,caller:w}),[f,g]=r.useState(0),[v,m]=r.useState(0);return(0,b.jsx)(j,{scope:e,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),titlePresent:f>0,descriptionPresent:v>0,setTitleCount:g,setDescriptionCount:m,open:h,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(t=>!t),[p]),modal:l,children:n})},"Dialog"),E=r.forwardRef(C(function(t,e){let{__scopeDialog:n,...r}=t,s=T("DialogTrigger",n),a=(0,i.s)(e,s.triggerRef);return(0,b.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":q(s.open
1),...r,ref:a,onClick:(0,o.mK)(t.onClick,s.onOpenToggle)})},"DialogTrigger")),D="DialogPortal",[M,k]=R(D,{forceMount:void 0}),L=C(t=>{let{__scopeDialog:e,forceMount:n,children:o,container:i}=t,s=T(D,e);return(0,b.jsx)(M,{scope:e,forceMount:n,children:r.Children.map(o,t=>(0,b.jsx)(h.C,{present:n||s.open,children:(0,b.jsx)(d.Z,{asChild:!0,container:i,children:t})}))})},"DialogPortal"),S="DialogOverlay",_=r.forwardRef(C(function(t,e){let n=k(S,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=T(S,t.__scopeDialog);return i.modal?(0,b.jsx)(h.C,{present:r||i.open,children:(0,b.jsx)(K,{...o,ref:e})}):null},"DialogOverlay")),I=(0,y.TL)("DialogOverlay.RemoveScroll"),K=r.forwardRef(C(function(t,e){let{__scopeDialog:n,...r}=t,o=T(S,n),s=(0,l.e0)(),a=(0,i.s)(e,s);return(0,b.jsx)(v.A,{as:I,allowPinchZoom:!0,shards:[o.contentRef],children:(0,b.jsx)(p.sG.div,{"data-state":q(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),F="DialogContent",A=r.forwardRef(C(function(t,e){let n=k(F,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=T(F,t.__scopeDialog);return(0,b.jsx)(h.C,{present:r||i.open,children:i.modal?(0,b.jsx)(G,{...o,ref:e}):(0,b.jsx)(N,{...o,ref:e})})},"DialogContent")),G=r.forwardRef(C(function(t,e){let n=T(F,t.__scopeDialog),s=r.useRef(null),a=(0,i.s)(e,n.contentRef,s);return r.useEffect(()=>{let t=s.current;if(t)return(0,m.Eq)(t)},[]),(0,b.jsx)(U,{...t,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,o.mK)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),null==(e=n.triggerRef.current)||e.focus()}),onPointerDownOutside:(0,o.mK)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey;(2===e.button||n)&&t.preventDefault()}),onFocusOutside:(0,o.mK)(t.onFocusOutside,t=>t.preventDefault())})},"DialogContentModal")),N=r.forwardRef(C(function(t,e){let n=T(F,t.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,b.jsx)(U,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var r,s;null==(r=t.onCloseAutoFocus)||r.call(t,e),e.defaultPrevented||(o.current||null==(s=n.triggerRef.current)||s.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{var r,s;null==(r=t.onInteractOutside)||r.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));let a=e.target;(null==(s=n.triggerRef.current)?void 0:s.contains(a))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})},"DialogContentNonModal")),U=r.forwardRef(C(function(t,e){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=t,a=T(F,n);return(0,f.Oh)(),(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,b.jsx)(l.qW,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionPresent?a.descriptionId:void 0,"aria-labelledby":a.titlePresent?a.titleId:void 0,"data-state":q(a.open),...s,ref:e,deferPointerDownOutside:!0,onDismiss:()=>a.onOpenChange(!1)})})})},"DialogContentImpl")),B=r.forwardRef(C(function(t,e){let{__scopeDialog:n,...r}=t,o=T("DialogTitle",n),{setTitleCount:i}=o;return(0,g.N)(()=>(i(t=>t+1),()=>i(t=>t-1)),[i]),(0,b.jsx)(p.sG.h2,{id:o.titleId,...r,ref:e})},"DialogTitle")),H=r.forwardRef(C(function(t,e){let{__scopeDialog:n,...r}=t,o=T("DialogDescription",n),{setDescriptionCount:i}=o;return(0,g.N)(()=>(i(t=>t+1),()=>i(t=>t-1)),[i]),(0,b.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:e})},"DialogDescription")),Z=r.forwardRef(C(function(t,e){let{__scopeDialog:n,...r}=t,i=T("DialogClose",n);return(0,b.jsx)(p.sG.button,{type:"button",...r,ref:e,onClick:(0,o.mK)(t.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function q(t){return t?"open":"closed"}C(q,"getState")},40730:(t,e,n)=>{n.d(e,{$:()=>a,s:()=>s});var r=n(95635),o=n(68458),i=n(28306),s=class extends o.k{#t;#e;#n;#r;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#o({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=(0,i.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#o({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#o({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r="pending"===this.state.status,o=!this.#r.canStart();try{if(r)e();else{this.#o({type:"pending",variables:t,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,n);let e=await this.options.onMutate?.(t,n);e!==this.state.context&&this.#o({type:"pending",context:e,variables:t,isPaused:o})}let i=await this.#r.start();return await this.#n.config.onSuccess?.(i,t,this.state.context,this,n),await this.options.onSuccess?.(i,t,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,t,this.state.context,n),this.#o({type:"success",data:i}),i}catch(e){try{await this.#n.config.onError?.(e,t,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,n)}catch(t){Promise.reject(t)}try{await this.#n.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,n)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,n)}catch(t){Promise.reject(t)}throw this.#o({type:"error",error:e}),e}finally{this.#n.runNext(this)}}#o(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};
1case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),r.jG.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},81562:(t,e,n)=>{n.d(e,{n:()=>c});var r=n(7620),o=n(40730),i=n(95635),s=n(22844),a=n(69950),u=class extends s.Q{#t;#i=void 0;#s;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.EN)(e.mutationKey)!==(0,a.EN)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#l(t)}getCurrentResult(){return this.#i}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#u(),this.#l()}mutate(t,e){return this.#a=e,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(t)}#u(){let t=this.#s?.state??(0,o.$)();this.#i={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#l(t){i.jG.batch(()=>{if(this.#a&&this.hasListeners()){let e=this.#i.variables,n=this.#i.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,n,r)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,n,r)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,n,r)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,n,r)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#i)})})}},l=n(4869);function c(t,e){let n=(0,l.jE)(e),[o]=r.useState(()=>new u(n,t));r.useEffect(()=>{o.setOptions(t)},[o,t]);let s=r.useSyncExternalStore(r.useCallback(t=>o.subscribe(i.jG.batchCalls(t)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),c=r.useCallback((t,e)=>{o.mutate(t,e).catch(a.lQ)},[o]);if(s.error&&(0,a.GU)(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}}}]);
2//# chunkId=01a103c7-3b2e-79a3-b958-cd55a1186ae7

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.