PageSourceSearch

https://www.kaiglo.com/_next/static/chunks/1091-0b3cfc3bb79b88af.js

js kaiglo.com collected 2026-10-02 00:00:35 UTC 35,220 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1091],{861:(e,t,r)=>{r.d(t,{Qg:()=>o,s6:()=>a});var n=r(12115),i=r(88142),s=r(95155),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=n.forwardRef((e,t)=>(0,s.jsx)(i.sG.span,{...e,ref:t,style:{...o,...e.style}}));a.displayName="VisuallyHidden"},3468:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(12115),i=r(95155);function s(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let i=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:i}}),[r,i])}};return o.scopeName=e,[function(t,s){let o=n.createContext(s),a=r.length;r=[...r,s];let l=t=>{let{scope:r,children:s,...l}=t,u=r?.[e]?.[a]||o,c=n.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:s})};return l.displayName=t+"Provider",[l,function(r,i){let l=i?.[e]?.[a]||o,u=n.useContext(l);if(u)return u;if(void 0!==s)return s;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}(o,...t)]}},4129:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{}},5602:(e,t,r)=>{r.d(t,{useMutation:()=>h});var n=r(12115),i=r(26878),s=r(47288),o=r(4753),a=r(19074);class l extends a.Q{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let r=this.options;this.options=this.client.defaultMutationOptions(e),(0,i.f8)(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:(0,s.$)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){o.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,r,n,i,s,o,a,l;e.onSuccess?(null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(s=(o=this.mutateOptions).onError)||s.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(l=this.mutateOptions).onSettled)||a.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}var u=r(47491),c=r(45089),d=r(90048);function h(e,t,r){let s=(0,i.GR)(e,t,r),a=(0,c.useQueryClient)({context:s.context}),[h]=n.useState(()=>new l(a,s));n.useEffect(()=>{h.setOptions(s)},[h,s]);let p=(0,u.r)(n.useCallback(e=>h.subscribe(o.j.batchCalls(e)),[h]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),v=n.useCallback((e,t)=>{h.mutate(e,t).catch(f)},[h]);if(p.error&&(0,d.G)(h.options.useErrorBoundary,[p.error]))throw p.error;return{...p,mutate:v,mutateAsync:p.mutate}}function f(){}},23558:(e,t,r)=>{r.d(t,{i:()=>a});var n,i=r(12115),s=r(4129),o=(n||(n=r.t(i,2)))[" useInsertionEffect ".trim().toString()]||s.N;function a({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[s,a,l]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),s=i.useRef(r),a=i.useRef(t);return o(()=>{a.current=t},[t]),i.useEffect(()=>{s.current!==r&&(a.current?.(r),s.current=r)},[r,s]),[r,n,a]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:s;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,n])}return[c,i.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[u,e,a,l])]}Symbol("RADIX:SYNC_STATE")},27146:(e,t,r)=>{r.d(t,{k:()=>i});var n=r(26878);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:n.S$?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},31304:(e,t,r)=>{r.d(t,{rc:()=>el,bm:()=>eu,VY:()=>ea,Kq:()=>en,bL:()=>es,hE:()=>eo,LM:()=>ei});var n,i=r(12115),s=r(47650);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}"undefined"!=typeof window&&window.document&&window.document.createElement;var a=r(94446),l=r(79118),u=r(3468),c=r(88142);function d(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var h=r(95155),f="dismissableLayer.update",p=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=i.forwardRef((e,t)=>
1{var r,s;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:u,onPointerDownOutside:v,onFocusOutside:m,onInteractOutside:E,onDismiss:b,...g}=e,x=i.useContext(p),[R,C]=i.useState(null),T=null!=(s=null==R?void 0:R.ownerDocument)?s:null==(r=globalThis)?void 0:r.document,[,N]=i.useState({}),O=(0,a.s)(t,e=>C(e)),P=Array.from(x.layers),[S]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),M=P.indexOf(S),A=R?P.indexOf(R):-1,L=x.layersWithOutsidePointerEventsDisabled.size>0,j=A>=M,D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=d(e),s=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!s.current){let t=function(){w("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",o.current),o.current=t,r.addEventListener("click",o.current,{once:!0})):t()}else r.removeEventListener("click",o.current);s.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",o.current)}},[r,n]),{onPointerDownCapture:()=>s.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));j&&!r&&(null==v||v(e),null==E||E(e),e.defaultPrevented||null==b||b())},T),k=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,n=d(e),s=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!s.current&&w("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}(e=>{let t=e.target;![...x.branches].some(e=>e.contains(t))&&(null==m||m(e),null==E||E(e),e.defaultPrevented||null==b||b())},T);return!function(e,t=globalThis?.document){let r=d(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{A===x.layers.size-1&&(null==u||u(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},T),i.useEffect(()=>{if(R)return l&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(R)),x.layers.add(R),y(),()=>{l&&1===x.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=n)}},[R,T,l,x]),i.useEffect(()=>()=>{R&&(x.layers.delete(R),x.layersWithOutsidePointerEventsDisabled.delete(R),y())},[R,x]),i.useEffect(()=>{let e=()=>N({});return document.addEventListener(f,e),()=>document.removeEventListener(f,e)},[]),(0,h.jsx)(c.sG.div,{...g,ref:O,style:{pointerEvents:L?j?"auto":"none":void 0,...e.style},onFocusCapture:o(e.onFocusCapture,k.onFocusCapture),onBlurCapture:o(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:o(e.onPointerDownCapture,D.onPointerDownCapture)})});v.displayName="DismissableLayer";var m=i.forwardRef((e,t)=>{let r=i.useContext(p),n=i.useRef(null),s=(0,a.s)(t,n);return i.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,h.jsx)(c.sG.div,{...e,ref:s})});function y(){let e=new CustomEvent(f);document.dispatchEvent(e)}function w(e,t,r,n){let{discrete:i}=n,s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),i?(0,c.hO)(s,o):s.dispatchEvent(o)}m.displayName="DismissableLayerBranch";var E=r(4129),b=i.forwardRef((e,t)=>{var r,n;let{container:o,...a}=e,[l,u]=i.useState(!1);(0,E.N)(()=>u(!0),[]);let d=o||l&&(null==(n=globalThis)||null==(r=n.document)?void 0:r.body);return d?s.createPortal((0,h.jsx)(c.sG.div,{...a,ref:t}),d):null});b.displayName="Portal";var g=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,s]=i.useState(),o=i.useRef(null),a=i.useRef(e),l=i.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>
1{let n=r[e][t];return null!=n?n:e},t));return i.useEffect(()=>{let e=x(o.current);l.current="mounted"===u?e:"none"},[u]),(0,E.N)(()=>{let t=o.current,r=a.current;if(r!==e){let n=l.current,i=x(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):r&&n!==i?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),(0,E.N)(()=>{if(n){var e;let t,r=null!=(e=n.ownerDocument.defaultView)?e:window,i=e=>{let i=x(o.current).includes(CSS.escape(e.animationName));if(e.target===n&&i&&(c("ANIMATION_END"),!a.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},s=e=>{e.target===n&&(l.current=x(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{o.current=e?getComputedStyle(e):null,s(e)},[])}}(t),s="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),o=(0,a.s)(n.ref,function(e){var t,r;let n=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null==(r=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof r||n.isPresent?i.cloneElement(s,{ref:o}):null};function x(e){return(null==e?void 0:e.animationName)||"none"}g.displayName="Presence";var R=r(23558),C=r(861),T="ToastProvider",[N,O,P]=(0,l.N)("Toast"),[S,M]=(0,u.A)("Toast",[P]),[A,L]=S(T),j=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:a}=e,[l,u]=i.useState(null),[c,d]=i.useState(0),f=i.useRef(!1),p=i.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(T,"`. Expected non-empty `string`.")),(0,h.jsx)(N.Provider,{scope:t,children:(0,h.jsx)(A,{scope:t,label:r,duration:n,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:i.useCallback(()=>d(e=>e+1),[]),onToastRemove:i.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:a})})};j.displayName=T;var D="ToastViewport",k=["F8"],I="toast.viewportPause",F="toast.viewportResume",_=i.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:n=k,label:s="Notifications ({hotkey})",...o}=e,l=L(D,r),u=O(r),d=i.useRef(null),f=i.useRef(null),p=i.useRef(null),v=i.useRef(null),y=(0,a.s)(t,v,l.onViewportChange),w=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;i.useEffect(()=>{let e=e=>{var t;0!==n.length&&n.every(t=>e[t]||e.code===t)&&(null==(t=v.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),i.useEffect(()=>{let e=d.current,t=v.current;if(E&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(I);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>
1{if(l.isClosePausedRef.current){let e=new CustomEvent(F);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",i),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[E,l.isClosePausedRef]);let b=i.useCallback(e=>{let{tabbingDirection:t}=e,r=u().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[u]);return i.useEffect(()=>{let e=v.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,i,s;let r=document.activeElement,o=t.shiftKey;if(t.target===e&&o){null==(n=f.current)||n.focus();return}let a=b({tabbingDirection:o?"backwards":"forwards"}),l=a.findIndex(e=>e===r);er(a.slice(l+1))?t.preventDefault():o?null==(i=f.current)||i.focus():null==(s=p.current)||s.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,b]),(0,h.jsxs)(m,{ref:d,role:"region","aria-label":s.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&(0,h.jsx)(G,{ref:f,onFocusFromOutsideViewport:()=>{er(b({tabbingDirection:"forwards"}))}}),(0,h.jsx)(N.Slot,{scope:r,children:(0,h.jsx)(c.sG.ol,{tabIndex:-1,...o,ref:y})}),E&&(0,h.jsx)(G,{ref:p,onFocusFromOutsideViewport:()=>{er(b({tabbingDirection:"backwards"}))}})]})});_.displayName=D;var W="ToastFocusProxy",G=i.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,s=L(W,r);return(0,h.jsx)(C.s6,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=s.viewport)?void 0:t.contains(r))||n()}})});G.displayName=W;var U="Toast",z=i.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:i,onOpenChange:s,...a}=e,[l,u]=(0,R.i)({prop:n,defaultProp:null==i||i,onChange:s,caller:U});return(0,h.jsx)(g,{present:r||l,children:(0,h.jsx)(K,{open:l,...a,ref:t,onClose:()=>u(!1),onPause:d(e.onPause),onResume:d(e.onResume),onSwipeStart:o(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:o(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:o(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:o(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),u(!1)})})})});z.displayName=U;var[$,V]=S(U,{onClose(){}}),K=i.forwardRef((e,t)=>{let{__scopeToast:r,type:n="foreground",duration:l,open:u,onClose:f,onEscapeKeyDown:p,onPause:m,onResume:y,onSwipeStart:w,onSwipeMove:E,onSwipeCancel:b,onSwipeEnd:g,...x}=e,R=L(U,r),[C,T]=i.useState(null),O=(0,a.s)(t,e=>T(e)),P=i.useRef(null),S=i.useRef(null),M=l||R.duration,A=i.useRef(0),j=i.useRef(M),D=i.useRef(0),{onToastAdd:k,onToastRemove:_}=R,W=d(()=>{var e;(null==C?void 0:C.contains(document.activeElement))&&(null==(e=R.viewport)||e.focus()),f()}),G=i.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(D.current),A.current=new Date().getTime(),D.current=window.setTimeout(W,e))},[W]);i.useEffect(()=>{let e=R.viewport;if(e){let t=()=>{G(j.current),null==y||y()},r=()=>{let e=new Date().getTime()-A.current;j.current=j.current-e,window.clearTimeout(D.current),null==m||m()};return e.addEventListener(I,r),e.addEventListener(F,t),()=>{e.removeEventListener(I,r),e.removeEventListener(F,t)}}},[R.viewport,M,m,y,G]),i.useEffect(()=>{u&&!R.isClosePausedRef.current&&G(M)},[u,M,R.isClosePausedRef,G]),i.useEffect(()=>(k(),()=>_()),[k,_]);let z=i.useMemo(()=>C?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!n)if(i){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(C):null,[C]);return R.viewport?(0,h.jsxs)(h.Fragment,{children:[z&&(0,h.jsx)(B,{__scopeToast:r,role:"status","aria-live":"foreground"===n?"assertive":"polite",children:z}),(0,h.jsx)($,{scope:r,onClose:W,children:s.createPortal((0,h.jsx)(N.ItemSlot,{scope:r,children:(0,h.jsx)(v,{asChild:!0,onEscapeKeyDown:o(p,()=>{R.isFocusedToastEscapeKeyDownRef.current||W(),R.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,h.jsx)(c.sG.li,{tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":R.swipeDirection,...x,ref:O,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:o(e.onKeyDown,e=>{"Escape"===e.key&&(null==p||p(e.nativeEvent),e.nativeEvent.defaultPrevented||(R.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:o(e.onPointerDown,e=>{0===e.button&&(P.current={x:e.clientX,y:e.clientY})}),onPointerMove:o(e.onPointerMove,e=>{if(!P.current)return;let t=e.clientX-P.current.x,r=e.clientY-P.current.y,n=!!S.current,i=["left","right"].includes(R.swipeDirection),s=["left","up"].includes(R.swipeDirection)?Math.min:Math.max,o=i?s(0,t):0,a=i?0:s(0,r),l="touch"===e.pointerType?10:2,u={x:o,y:a},c={originalEvent:e,delta:u};n?(S.current=u,ee("toast.swipeMove",E,c,{discrete:!1})):et(u,R.swipeDirection,l)?(S.current=u,ee("toast.swipeStart",w,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(P.current=null)}),onPointerUp:o(e.onPointerUp,e=>{let t=S.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),S.current=null,P.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};et(t,R.swipeDirection,R.swipeThreshold)?ee("toast.swipeEnd",g,n,{discrete:!0}):ee("toast.swipeCancel",b,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),R.viewport)})]}):null}),B=e=>{let{__scopeToast:t,children:r,...n}=e,s=L(U,t),[o,a]=i.useState(!1),[l,u]=i.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=d(e);(0,E.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>a(!0)),i.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,h.jsx)(b,{asChild:!0,children:(0,h.jsx)(C.s6,{...n,children:o&&(0,h.jsxs)(h.Fragment,{children:[s.label," ",r]})})})},q=i.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,h.jsx)(c.sG.div,{...n,ref:t})});q.displayName="ToastTitle";var X=i.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,h.jsx)(c.sG.div,{...n,ref:t})});X.displayName="ToastDescription";var Y="ToastAction",H=i.forwardRef((e,t)=>{let{altText:r,...n}=e;return r.trim()?(0,h.jsx)(J,{altText:r,asChild:!0,children:(0,h.jsx)(Z,{...n,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(Y,"`. Expected non-empty `string`.")),null)});H.displayName=Y;var Q="ToastClose",Z=i.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e,i=V(Q,r);return(0,h.jsx)(J,{asChild:!0,children:(0,h.jsx)(c.sG.button,{type:"button",...n,ref:t,onClick:o(e.onClick,i.onClose)})})});Z.displayName=Q;var J=i.forwardRef((e,t)=>
1{let{__scopeToast:r,altText:n,...i}=e;return(0,h.jsx)(c.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function ee(e,t,r,n){let{discrete:i}=n,s=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),i?(0,c.hO)(s,o):s.dispatchEvent(o)}var et=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return"left"===t||"right"===t?s&&n>r:!s&&i>r};function er(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var en=j,ei=_,es=z,eo=q,ea=X,el=H,eu=Z},47288:(e,t,r)=>{r.d(t,{$:()=>l,s:()=>a});var n=r(86617),i=r(4753),s=r(27146),o=r(67958);class a extends s.k{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||n.U,this.observers=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,i,s,a,l,u,c,d,h,f,p,v,m,y,w,E,b;let g=()=>{var e;return this.retryer=(0,o.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},x="loading"===this.state.status;try{if(!x){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(u=(c=this.mutationCache.config).onMutate)?void 0:u.call(c,this.state.variables,this));let e=await (null==(d=(h=this.options).onMutate)?void 0:d.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let o=await g();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,o,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,o,this.state.variables,this.state.context)),await (null==(i=(s=this.mutationCache.config).onSettled)?void 0:i.call(s,o,null,this.state.variables,this.state.context,this)),await (null==(a=(l=this.options).onSettled)?void 0:a.call(l,o,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:o}),o}catch(e){try{throw await (null==(f=(p=this.mutationCache.config).onError)?void 0:f.call(p,e,this.state.variables,this.state.context,this)),await (null==(v=(m=this.options).onError)?void 0:v.call(m,e,this.state.variables,this.state.context)),await (null==(y=(w=this.mutationCache.config).onSettled)?void 0:y.call(w,void 0,e,this.state.variables,this.state.context,this)),await (null==(E=(b=this.options).onSettled)?void 0:E.call(b,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){let t=t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,o.v_)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
1sed:!1,status:"error"};case"setState":return{...t,...e.state}}};this.state=t(this.state),i.j.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},79118:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function i(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function s(e,t,r){var i=n(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}r.d(t,{N:()=>p});var o,a=r(12115),l=r(3468),u=r(94446),c=r(95155);function d(e){let t=function(e){let t=a.forwardRef((e,t)=>{let{children:r,...n}=e;if(a.isValidElement(r)){var i;let e,s,o=(i=r,(s=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(s=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...s}:"className"===n&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(l.ref=t?(0,u.t)(t,o):o),a.cloneElement(r,l)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=a.forwardRef((e,r)=>{let{children:n,...i}=e,s=a.Children.toArray(n),o=s.find(f);if(o){let e=o.props.children,n=s.map(t=>t!==o?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,c.jsx)(t,{...i,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,c.jsx)(t,{...i,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var h=Symbol("radix.slottable");function f(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}function p(e){let t=e+"CollectionProvider",[r,n]=(0,l.A)(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:r}=e,n=a.useRef(null),s=a.useRef(new Map).current;return(0,c.jsx)(i,{scope:t,itemMap:s,collectionRef:n,children:r})};o.displayName=t;let h=e+"CollectionSlot",f=d(h),p=a.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=s(h,r),o=(0,u.s)(t,i.collectionRef);return(0,c.jsx)(f,{ref:o,children:n})});p.displayName=h;let v=e+"CollectionItemSlot",m="data-radix-collection-item",y=d(v),w=a.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,o=a.useRef(null),l=(0,u.s)(t,o),d=s(v,r);return a.useEffect(()=>(d.itemMap.set(o,{ref:o,...i}),()=>void d.itemMap.delete(o))),(0,c.jsx)(y,{...{[m]:""},ref:l,children:n})});return w.displayName=v,[{Provider:o,Slot:p,ItemSlot:w},function(t){let r=s(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var v=new WeakMap;function m(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=y(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function y(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return v.get(this)&&(this.has(e)?i(this,o)[i(this,o).indexOf(e)]=e:i(this,o).push(e)),super.set(e,t),this}insert(e,t,r){let n,s=this.has(t),a=i(this,o).length,l=y(e),u=l>=0?l:a+l,c=u<0||u>=a?-1:u;if(c===this.size||s&&c===this.size-1||-1===c)return this.set(t,r),this;let d=this.size+ +!s;l<0&&u++;let h=[...i(this,o)],f=!1;for(let e=u;e<d;e++)if(u===e){let i=h[e];h[e]===t&&(i=h[e+1]),s&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||h[e-1]!==t||(f=!0);let r=h[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=i(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=i(this,o).indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=i(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=i(this,o).indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return s(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,o).splice(i(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=m(i(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=m(i(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,o).indexOf(e)}keyAt(e){return m(i(this,o),e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,s=0,o=null!=i?i:this.at(0);for(let e of this)o=0===s&&1===t.length?e:Reflect.apply(n,this,[o,e,s,this]),s++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,i]=t,s=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let r=this.at(e);s=e===this.size-1&&1===t.length?r:Reflect.apply(n,this,[s,r,e,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];let i=[...this.entries()];return i.splice(...r),new e(i)}
1slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}constructor(e){super(e),function(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}(this,o,{writable:!0,value:void 0}),s(this,o,[...super.keys()]),v.set(this,!0)}}},86617:(e,t,r)=>{r.d(t,{U:()=>n});let n=console},88142:(e,t,r)=>{r.d(t,{sG:()=>u,hO:()=>c});var n=r(12115),i=r(47650),s=r(94446),o=r(95155),a=Symbol("radix.slottable");function l(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=function(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var o;let e,a,l=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...e)=>{let t=s(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...s}:"className"===n&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,s.t)(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...s}=e,a=n.Children.toArray(i),u=a.find(l);if(u){let e=u.props.children,i=a.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...s,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...s,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}(`Primitive.${t}`),i=n.forwardRef((e,n)=>{let{asChild:i,...s}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...s,ref:n})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function c(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}}}]);

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.