1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,726330,774606,e=>{"use strict";var t,r=e.i(271645),n=Object.defineProperty,i=(e,t)=>n(e,"name",{value:t,configurable:!0}),s=!!("u">typeof window&&window.document&&window.document.createElement);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return i(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function a(e){if(!s)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function u(e){return"IFRAME"===e.tagName}i(o,"composeEventHandlers"),i(function(e){if(!s)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),i(a,"getOwnerDocument"),i(function e(t,r=!1){let{activeElement:n}=a(t);if(!n?.nodeName)return null;if(u(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=a(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),i(u,"isFrame");var l=e.i(174080),c=Object.defineProperty,h=(e,t)=>c(e,"name",{value:t,configurable:!0});function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function f(...e){return t=>{let r=!1,n=e.map(e=>{let n=d(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():d(e[t],null)}}}}function p(...e){return r.useCallback(f(...e),e)}h(d,"setRef"),h(f,"composeRefs"),h(p,"useComposedRefs");var y=Object.defineProperty,v=(e,t)=>y(e,"name",{value:t,configurable:!0});function b(e){let t=r.forwardRef((t,n)=>{let{children:i,...s}=t,o=null,a=!1,u=[];O(i)&&"function"==typeof D&&(i=D(i._payload)),r.Children.forEach(i,e=>{if(R(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;O(t)&&"function"==typeof D&&(t=D(t._payload)),o=g(e,t),u.push(o?.props?.children)}else u.push(e)}),o?o=r.cloneElement(o,void 0,u):!a&&1===r.Children.count(i)&&r.isValidElement(i)&&(o=i);let l=o?S(o):void 0,c=p(n,l);if(!o){if(i||0===i)throw Error(a?P(e):T(e));return i}let h=E(s,o.props??{});return o.type!==r.Fragment&&(h.ref=n?c:l),r.cloneElement(o,h)});return t.displayName=`${e}.Slot`,t}v(b,"createSlot");var m=Symbol.for("radix.slottable");v(function(e){let t=v(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=m,t},"createSlottable");var g=v((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function E(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}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function R(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}v(E,"mergeProps"),v(S,"getElementRef"),v(R,"isSlottable");var w=Symbol.for("react.lazy");function O(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===w&&"_payload"in e&&C(e._payload)}function C(e){return"object"==typeof e&&null!==e&&"then"in e}v(O,"isLazyComponent"),v(C,"isPromiseLike");var T=v(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),P=v(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),D=r[" use ".trim().toString()],Q=e.i(843476),F=Object.defineProperty,I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=b(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Q.jsx)(i?n:t,{...s,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function j(e,t){e&&l.flushSync(()=>
1e.dispatchEvent(t))}function x(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}F(j,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(x,"name",{value:"useCallbackRef",configurable:!0});var L=Object.defineProperty,k=(e,t)=>L(e,"name",{value:t,configurable:!0}),U="dismissableLayer.update",q=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),M=r.forwardRef(k(function(e,n){let{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:c,onDismiss:h,...d}=e,f=r.useContext(q),[y,v]=r.useState(null),b=y?.ownerDocument??globalThis?.document,[,m]=r.useState({}),g=p(n,v),E=Array.from(f.layers),[S]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),R=S?E.indexOf(S):-1,w=y?E.indexOf(y):-1,O=f.layersWithOutsidePointerEventsDisabled.size>0,C=w>=R,T=r.useRef(!1),P=W(e=>{u?.(e),c?.(e),e.defaultPrevented||h?.()},{ownerDocument:b,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:r.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return C&&!t},[f.branches,C])}),D=B(e=>{if(s&&T.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(l?.(e),c?.(e),e.defaultPrevented||h?.())},b),F=!!y&&w===E.length-1,j=x(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&h&&(e.preventDefault(),h()))});return r.useEffect(()=>{if(F)return b.addEventListener("keydown",j,{capture:!0}),()=>b.removeEventListener("keydown",j,{capture:!0})},[b,F,j]),r.useEffect(()=>{if(y)return i&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(t=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(y)),f.layers.add(y),$(),()=>{i&&(f.layersWithOutsidePointerEventsDisabled.delete(y),0===f.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=t))}},[y,b,i,f]),r.useEffect(()=>()=>{y&&(f.layers.delete(y),f.layersWithOutsidePointerEventsDisabled.delete(y),$())},[y,f]),r.useEffect(()=>{let e=k(()=>m({}),"handleUpdate");return document.addEventListener(U,e),()=>document.removeEventListener(U,e)},[]),(0,Q.jsx)(I.div,{...d,ref:g,style:{pointerEvents:O?C?"auto":"none":void 0,...e.style},onFocusCapture:o(e.onFocusCapture,D.onFocusCapture),onBlurCapture:o(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:o(e.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function _(){let e=r.useContext(q),[t,n]=r.useState(null);return r.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}k(_,"useDismissableLayerSurface");var A=k(()=>!0,"IS_TRUE");function W(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:i=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:o,shouldHandlePointerDownOutside:a=A}=t,u=x(e),l=r.useRef(!1),c=r.useRef(!1),h=r.useRef(new Map),d=r.useRef(()=>{});return r.useEffect(()=>{function e(){c.current=!1,s.current=!1,h.current.clear()}function t(){return Array.from(h.current.values()).some(Boolean)}function r(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||h.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function f(e){c.current&&h.current.set(e.type,!1)}k(e,"resetOutsideInteraction"),k(t,"isOutsideInteractionIntercepted"),k(r,"handleInteractionCapture"),k(f,"handleInteractionBubble");let p=k(r=>{if(r.target&&!l.current){let o=function(){n.removeEventListener("click",d.current);let r=t();e(),r||K("dismissableLayer.pointerDownOutside",u,f,{discrete:!0})};if(k(o,"handleAndDispatchPointerDownOutsideEvent"),!a(r.target)){n.removeEventListener("click",d.current),e(),l.current=!1;return}let f={originalEvent:r};c.current=!0,s.current=i&&0===r.button,h.current.clear(),i&&0===r.button?(n.removeEventListener("click",d.current),d.current=o,n.addEventListener("click",d.current,{once:!0})):o()}
1else n.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of y)n.addEventListener(e,r,!0),n.addEventListener(e,f);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",p),n.removeEventListener("click",d.current),y))n.removeEventListener(e,r,!0),n.removeEventListener(e,f)}},[n,u,i,s,o,a]),{onPointerDownCapture:k(()=>l.current=!0,"onPointerDownCapture")}}function B(e,t=globalThis?.document){let n=x(e),i=r.useRef(!1);return r.useEffect(()=>{let e=k(e=>{e.target&&!i.current&&K("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:k(()=>i.current=!0,"onFocusCapture"),onBlurCapture:k(()=>i.current=!1,"onBlurCapture")}}function $(){let e=new CustomEvent(U);document.dispatchEvent(e)}function K(e,t,r,{discrete:n}){let i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?j(i,s):i.dispatchEvent(s)}k(W,"usePointerDownOutside"),k(B,"useFocusOutside"),k($,"dispatchUpdate"),k(K,"handleAndDispatchCustomEvent"),e.s(["DismissableLayer",0,M,"useDismissableLayerSurface",0,_],726330);var N=Object.defineProperty,H=(e,t)=>N(e,"name",{value:t,configurable:!0});function V(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function G(...e){return t=>{let r=!1,n=e.map(e=>{let n=V(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():V(e[t],null)}}}}function z(...e){return r.useCallback(G(...e),e)}H(V,"setRef"),H(G,"composeRefs"),H(z,"useComposedRefs");var Z=Object.defineProperty,J=(e,t)=>Z(e,"name",{value:t,configurable:!0});function X(e){let t=r.forwardRef((t,n)=>{let{children:i,...s}=t,o=null,a=!1,u=[];es(i)&&"function"==typeof el&&(i=el(i._payload)),r.Children.forEach(i,e=>{if(en(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;es(t)&&"function"==typeof el&&(t=el(t._payload)),o=ee(e,t),u.push(o?.props?.children)}else u.push(e)}),o?o=r.cloneElement(o,void 0,u):!a&&1===r.Children.count(i)&&r.isValidElement(i)&&(o=i);let l=o?er(o):void 0,c=z(n,l);if(!o){if(i||0===i)throw Error(a?eu(e):ea(e));return i}let h=et(s,o.props??{});return o.type!==r.Fragment&&(h.ref=n?c:l),r.cloneElement(o,h)});return t.displayName=`${e}.Slot`,t}J(X,"createSlot");var Y=Symbol.for("radix.slottable");J(function(e){let t=J(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Y,t},"createSlottable");var ee=J((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function et(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}}function er(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function en(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Y}J(et,"mergeProps"),J(er,"getElementRef"),J(en,"isSlottable");var ei=Symbol.for("react.lazy");function es(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===ei&&"_payload"in e&&eo(e._payload)}function eo(e){return"object"==typeof e&&null!==e&&"then"in e}J(es,"isLazyComponent"),J(eo,"isPromiseLike");var ea=J(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),eu=J(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),el=r[" use ".trim().toString()],ec=Object.defineProperty,eh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=X(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Q.jsx)(i?n:t,{...s,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});ec(function(e,t){e&&l.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var ed=globalThis?.document?r.useLayoutEffect:()=>{},ef=Object.defineProperty,ep=r.forwardRef(ef(function(e,t){let{container:n,...i}=e,[s,o]=r.useState(!1);ed(()=>o(!0),[]);let a=n||s&&globalThis?.document?.body;return a?l.createPortal((0,Q.jsx)(eh.div,{...i,ref:t}),a):null},"name",{value:"Portal",configurable:!0}));e.s(["Portal",0,ep],774606)},175555,e=>{"use strict";var t=e.i(915823),r=e.i(619273),n=new class extends t.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!r.isServer&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,n])},540143,e=>{"use strict";let t,r,n,i,s,o;var a=(t=[],r=0,n=e=>{e()},i=e=>{e()},s=e=>setTimeout(e,0),{batch:e=>{let o;r++;try{o=e()}finally{let e;--r||(e=t,t=[],e.length&&s(()=>{i(()=>{e.forEach(e=>{n(e)})})}))}return o},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o=e=>{r?t.push(e):s(()=>{n(e)})},setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{s=e}});e.s(["notifyManager",0,a])},286491,814448,793803,936553,88587,e=>{"use strict";var t=e.i(619273),r=e.i(540143),n=e.i(175555),i=e.i(915823),s=new class extends i.Subscribable{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!t.isServer&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function o(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function a(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||s.isOnline()}e.s(["onlineManager",0,s],814448),e.s(["pendingThenable",0,o],793803);var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}function h(e){let r,i=!1,c=0,h=!1,d=o(),f=()=>n.focusManager.isFocused()&&("always"===e.networkMode||s.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),y=t=>{h||(h=!0,e.onSuccess?.(t),r?.(),d.resolve(t))},v=t=>{h||(h=!0,e.onError?.(t),r?.(),d.reject(t))},b=()=>new Promise(t=>{r=e=>{(h||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,h||e.onContinue?.()}),m=()=>{let r;if(h)return;let n=0===c?e.initialPromise:void 0;try{r=n??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(y).catch(r=>{if(h)return;let n=e.retry??3*!t.isServer,s=e.retryDelay??a,o="function"==typeof s?s(c,r):s,u=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,r);i||!u?v(r):(c++,e.onFail?.(c,r),(0,t.sleep)(o).then(()=>f()?void 0:b()).then(()=>{i?v(r):m()}))})};return{promise:d,cancel:t=>{h||(v(new l(t)),e.abort?.())},continue:()=>(r?.(),d),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:p,start:()=>(p()?m():b().then(m),d)}}e.s(["canFetch",0,u,"createRetryer",0,h,"isCancelledError",0,c],936553);var d=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#i=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(t.isServer?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}};e.s(["Removable",0,d],88587);var f=class extends d{#s;#o;#a;#u;#l;#c;#h;constructor(e){super(),this.#h=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#a=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,r){let n=(0,t.replaceData)(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#l?.promise;return this.#l?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#s)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#h?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,r){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,n.signal)})},s=()=>{let e=(0,t.ensureQueryFn)(this.options,r),n={client:this.#u,queryKey:this.queryKey,meta:this.meta};return(i(n),this.#h=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:s};i(o),this.options.behavior?.onFetch(o,this),this.#o=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#d({type:"fetch",meta:o.fetchOptions?.meta});let a=e=>{c(e)&&e.silent||this.#d({type:"error",error:e}),c(e)||(this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=h({initialPromise:r?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e)return void a(Error(`${this.queryHash} data is undefined`));try{this.setData(e)}catch(e){a(e);return}this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...p(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if(c(r)&&r.revert&&this.#o)return{...this.#o,fetchStatus:"idle"};
1return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function p(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}e.s(["Query",0,f,"fetchState",0,p],286491)},869230,e=>{"use strict";var t=e.i(175555),r=e.i(540143),n=e.i(286491),i=e.i(915823),s=e.i(793803),o=e.i(619273),a=class extends i.Subscribable{constructor(e,t){super(),this.options=t,this.#u=e,this.#f=null,this.#p=(0,s.pendingThenable)(),this.options.experimental_prefetchInRender||this.#p.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#u;#y=void 0;#v=void 0;#b=void 0;#m;#g;#p;#f;#E;#S;#R;#w;#O;#C;#T=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#y.addObserver(this),u(this.#y,this.options)?this.#P():this.updateResult(),this.#D())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.#y,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.#y,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#Q(),this.#F(),this.#y.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.#y;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#y))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#I(),this.#y.setOptions(this.options),r._defaulted&&!(0,o.shallowEqualObjects)(this.options,r)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#y,observer:this});let i=this.hasListeners();i&&c(this.#y,n,this.options,r)&&this.#P(),this.updateResult(t),i&&(this.#y!==n||(0,o.resolveEnabled)(this.options.enabled,this.#y)!==(0,o.resolveEnabled)(r.enabled,this.#y)||(0,o.resolveStaleTime)(this.options.staleTime,this.#y)!==(0,o.resolveStaleTime)(r.staleTime,this.#y))&&this.#j();let s=this.#x();i&&(this.#y!==n||(0,o.resolveEnabled)(this.options.enabled,this.#y)!==(0,o.resolveEnabled)(r.enabled,this.#y)||s!==this.#C)&&this.#L(s)}getOptimisticResult(e){var t,r;let n=this.#u.getQueryCache().build(this.#u,e),i=this.createResult(n,e);return t=this,r=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#b=i,this.#g=this.options,this.#m=this.#y.state),i}getCurrentResult(){return this.#b}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#T.add(e)}getCurrentQuery(){return this.#y}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#u.defaultQueryOptions(e),r=this.#u.getQueryCache().build(this.#u,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#P({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#b))}#P(e){this.#I();let t=this.#y.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#j(){this.#Q();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#y);if(o.isServer||this.#b.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#b.dataUpdatedAt,e);this.#w=setTimeout(()=>{this.#b.isStale||this.updateResult()},t+1)}#x(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#y):this.options.refetchInterval)??!1}#L(e){this.#F(),this.#C=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#y)&&(0,o.isValidTimeout)(this.#C)&&0!==this.#C&&(this.#O=setInterval(()=>
1{(this.options.refetchIntervalInBackground||t.focusManager.isFocused())&&this.#P()},this.#C))}#D(){this.#j(),this.#L(this.#x())}#Q(){this.#w&&(clearTimeout(this.#w),this.#w=void 0)}#F(){this.#O&&(clearInterval(this.#O),this.#O=void 0)}createResult(e,t){let r,i=this.#y,a=this.options,l=this.#b,d=this.#m,f=this.#g,p=e!==i?e.state:this.#v,{state:y}=e,v={...y},b=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&u(e,t),o=r&&c(e,i,t,a);(s||o)&&(v={...v,...(0,n.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:E}=v;if(t.select&&void 0!==v.data)if(l&&v.data===d?.data&&t.select===this.#E)r=this.#S;else try{this.#E=t.select,r=t.select(v.data),r=(0,o.replaceData)(l?.data,r,t),this.#S=r,this.#f=null}catch(e){this.#f=e}else r=v.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===E){let e;if(l?.isPlaceholderData&&t.placeholderData===f?.placeholderData)e=l.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#R?.state.data,this.#R):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#f=null}catch(e){this.#f=e}void 0!==e&&(E="success",r=(0,o.replaceData)(l?.data,e,t),b=!0)}this.#f&&(m=this.#f,r=this.#S,g=Date.now(),E="error");let S="fetching"===v.fetchStatus,R="pending"===E,w="error"===E,O=R&&S,C=void 0!==r,T={status:E,fetchStatus:v.fetchStatus,isPending:R,isSuccess:"success"===E,isError:w,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:v.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:S,isRefetching:S&&!R,isLoadingError:w&&!C,isPaused:"paused"===v.fetchStatus,isPlaceholderData:b,isRefetchError:w&&C,isStale:h(e,t),refetch:this.refetch,promise:this.#p};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===T.status?e.reject(T.error):void 0!==T.data&&e.resolve(T.data)},r=()=>{t(this.#p=T.promise=(0,s.pendingThenable)())},n=this.#p;switch(n.status){case"pending":e.queryHash===i.queryHash&&t(n);break;case"fulfilled":("error"===T.status||T.data!==n.value)&&r();break;case"rejected":("error"!==T.status||T.error!==n.reason)&&r()}}return T}updateResult(e){let t=this.#b,r=this.createResult(this.#y,this.options);if(this.#m=this.#y.state,this.#g=this.options,void 0!==this.#m.data&&(this.#R=this.#y),(0,o.shallowEqualObjects)(r,t))return;this.#b=r;let n={},i=()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#T.size)return!0;let n=new Set(r??this.#T);return this.options.throwOnError&&n.add("error"),Object.keys(this.#b).some(e=>this.#b[e]!==t[e]&&n.has(e))};e?.listeners!==!1&&i()&&(n.listeners=!0),this.#k({...n,...e})}#I(){let e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#y)return;let t=this.#y;this.#y=e,this.#v=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#D()}#k(e){r.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#b)}),this.#u.getQueryCache().notify({query:this.#y,type:"observerResultsUpdated"})})}};function u(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&l(e,t,t.refetchOnMount)}function l(e,t,r){if(!1!==(0,o.resolveEnabled)(t.enabled,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&h(e,t)}return!1}function c(e,t,r,n){return(e!==t||!1===(0,o.resolveEnabled)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.s(["QueryObserver",0,a])},915823,e=>{"use strict";e.s(["Subscribable",0,class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}])},619273,e=>{"use strict";e.i(247167);var t="u"<typeof window||"Deno"in globalThis;function r(e,t){return(t?.queryKeyHashFn||n)(e)}function n(e){return JSON.stringify(e,(e,t)=>a(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function i(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!i(e[r],t[r]))}function s(e,t){if(e===t)return e;let r=o(e)&&o(t);if(r||a(e)&&a(t)){let n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,u=r?[]:{},l=0;for(let i=0;i<a;i++){let a=r?i:o[i];(!r&&n.includes(a)||r)&&void 0===e[a]&&void 0===t[a]?(u[a]=void 0,l++):(u[a]=s(e[a],t[a]),u[a]===e[a]&&void 0!==e[a]&&l++)}return i===a&&l===i?e:u}return t}function o(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function a(e){if(!u(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!u(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}var l=Symbol();e.s(["addToEnd",0,function(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n},"addToStart",0,function(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==l?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,n,"hashQueryKeyByOptions",0,r,"isServer",0,t,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"keepPreviousData",0,function(e){return e},"matchMutation",0,function(e,t){let{exact:r,status:s,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(n(t.options.mutationKey)!==n(a))return!1}else if(!i(t.options.mutationKey,a))return!1}return(!s||t.state.status===s)&&(!o||!!o(t))},"matchQuery",0,function(e,t){let{type:n="all",exact:s,fetchStatus:o,predicate:a,queryKey:u,stale:l}=e;if(u){if(s){if(t.queryHash!==r(u,t.options))return!1}else if(!i(t.queryKey,u))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!o||o===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,function(){},"partialMatchKey",0,i,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?s(e,t):t},"replaceEqualDeep",0,s,"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}
1,"skipToken",0,l,"sleep",0,function(e){return new Promise(t=>{setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}])},912598,e=>{"use strict";var t=e.i(271645),r=e.i(843476),n=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:i})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(n.Provider,{value:e,children:i})),"useQueryClient",0,e=>{let r=t.useContext(n);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},673664,e=>{"use strict";var t=e.i(271645),r=e.i(843476);function n(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var i=t.createContext(n());e.s(["QueryErrorResetBoundary",0,({children:e})=>{let[s]=t.useState(()=>n());return(0,r.jsx)(i.Provider,{value:s,children:"function"==typeof e?e(s):e})},"useQueryErrorResetBoundary",0,()=>t.useContext(i)])},266027,811076,427001,977805,254440,469637,e=>{"use strict";var t=e.i(869230),r=e.i(271645),n=e.i(619273),i=e.i(540143),s=e.i(912598),o=e.i(673664);function a(e,t){return"function"==typeof e?e(...t):!!e}function u(){}e.s(["noop",0,u,"shouldThrowError",0,a],811076);var l=(e,t)=>
1{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},c=e=>{r.useEffect(()=>{e.clearReset()},[e])},h=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||a(r,[e.error,n]));e.s(["ensurePreventErrorBoundaryRetry",0,l,"getHasError",0,h,"useClearResetErrorBoundary",0,c],427001);var d=r.createContext(!1),f=()=>r.useContext(d);d.Provider,e.s(["useIsRestoring",0,f],977805);var p=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},y=(e,t)=>e.isLoading&&e.isFetching&&!t,v=(e,t)=>e?.suspense&&t.isPending,b=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function m(e,t,a){let d=(0,s.useQueryClient)(a),m=f(),g=(0,o.useQueryErrorResetBoundary)(),E=d.defaultQueryOptions(e);d.getDefaultOptions().queries?._experimental_beforeQuery?.(E),E._optimisticResults=m?"isRestoring":"optimistic",p(E),l(E,g),c(g);let S=!d.getQueryCache().get(E.queryHash),[R]=r.useState(()=>new t(d,E)),w=R.getOptimisticResult(E),O=!m&&!1!==e.subscribed;if(r.useSyncExternalStore(r.useCallback(e=>{let t=O?R.subscribe(i.notifyManager.batchCalls(e)):u;return R.updateResult(),t},[R,O]),()=>R.getCurrentResult(),()=>R.getCurrentResult()),r.useEffect(()=>{R.setOptions(E,{listeners:!1})},[E,R]),v(E,w))throw b(E,R,g);if(h({result:w,errorResetBoundary:g,throwOnError:E.throwOnError,query:d.getQueryCache().get(E.queryHash),suspense:E.suspense}))throw w.error;if(d.getDefaultOptions().queries?._experimental_afterQuery?.(E,w),E.experimental_prefetchInRender&&!n.isServer&&y(w,m)){let e=S?b(E,R,g):d.getQueryCache().get(E.queryHash)?.promise;e?.catch(u).finally(()=>{R.updateResult()})}return E.notifyOnChangeProps?w:R.trackResult(w)}e.s(["ensureSuspenseTimers",0,p,"fetchOptimistic",0,b,"shouldSuspend",0,v,"willFetch",0,y],254440),e.s(["useBaseQuery",0,m],469637),e.s(["useQuery",0,function(e,r){return m(e,t.QueryObserver,r)}],266027)}]);
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.