PageSourceSearch

https://billetterie.etoile-noire.fr/_next/static/chunks/1dz27x7q_hfxc.js

js etoile-noire.fr collected 2026-09-30 20:19:06 UTC 27,100 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,273911,e=>{"use strict";var t=e.i(619273);let r=()=>t.isServer,s=()=>r();e.s(["environmentManager",0,{isServer:s,setIsServer(e){r=e}},"isServer",0,s])},540143,e=>{"use strict";let t,r,s,i,n,a,o=e.i(180166).systemSetTimeoutZero,u=(t=[],r=0,s=e=>{e()},i=e=>{e()},n=o,{batch:e=>{let a;r++;try{a=e()}finally{let e;--r||(e=t,t=[],e.length&&n(()=>{i(()=>{e.forEach(e=>{s(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{r?t.push(e):n(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{n=e}});e.s(["notifyManager",0,u])},936553,175555,814448,88587,e=>{"use strict";var t=e.i(619273),r=e.i(273911),s=e.i(915823);let i=new class extends s.Subscribable{#e;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&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,i],175555);var n=s;let a=new class extends n.Subscribable{#s=!0;#t;#r;constructor(){super(),this.#r=e=>{if("u">typeof window&&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.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function o(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||a.isOnline()}e.s(["onlineManager",0,a],814448);var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,c,"canFetch",0,u,"createRetryer",0,function(e){let s,n,l,h=!1,d=0,p="pending",f=new Promise((e,t)=>{n=e,l=t});f.catch(t.noop);let y=()=>i.isFocused()&&("always"===e.networkMode||a.isOnline())&&e.canRun(),v=()=>u(e.networkMode)&&e.canRun(),m=e=>{"pending"===p&&(s?.(),p="resolved",n(e))},b=e=>{"pending"===p&&(s?.(),p="rejected",l(e))},g=()=>new Promise(t=>{s=e=>{("pending"!==p||y())&&t(e)},e.onPause?.()}).then(()=>{s=void 0,"pending"===p&&e.onContinue?.()}),R=()=>{let s;if("pending"!==p)return;let i=0===d?e.initialPromise:void 0;try{s=i??e.fn()}catch(e){s=Promise.reject(e)}Promise.resolve(s).then(m).catch(s=>{if("pending"!==p)return;let i=e.retry??3*!(0,r.isServer)(),n=e.retryDelay??o,a="function"==typeof n?n(d,s):n,u=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,s);h||!u?b(s):(d++,e.onFail?.(d,s),(0,t.sleep)(a).then(()=>y()?void 0:g()).then(()=>{h?b(s):R()}))})};return{promise:f,status:()=>p,cancel:t=>{if("pending"===p){let r=new c(t);b(r),e.onCancel?.(r)}},continue:()=>(s?.(),f),cancelRetry:()=>{h=!0},continueRetry:()=>{h=!1},canStart:v,start:()=>(v()?R():g().then(R),f)}}],936553);var l=e.i(180166),h=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#i=l.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??((0,r.isServer)()?1/0:3e5))}clearGcTimeout(){void 0!==this.#i&&(l.timeoutManager.clearTimeout(this.#i),this.#i=void 0)}};e.s(["Removable",0,h],88587)},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,180166,e=>{"use strict";let t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#n=t;#a=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],180166);let s="u"<typeof window||"Deno"in globalThis;function i(e,t){return(t?.queryKeyHashFn||n)(e)}function n(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function a(e,t){if(e===t)return!0;
1if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!a(e[r],t[r]))return!1;return!0}for(let r of Object.keys(t))if(!a(e[r],t[r]))return!1;return!0}return!1}let o=Object.prototype.hasOwnProperty;function u(e,t,r=0){if(e===t)return e;if(r>500)return t;let s=c(e)&&c(t);if(!s&&!(l(e)&&l(t)))return t;let i=(s?e:Object.keys(e)).length,n=s?t:Object.keys(t),a=n.length,h=s?Array(a):{},d=0;for(let c=0;c<a;c++){let a=s?c:n[c],l=e[a],p=t[a];if(l===p){h[a]=l,(s?c<i:o.call(e,a))&&d++;continue}if(null===l||null===p||"object"!=typeof l||"object"!=typeof p){h[a]=p;continue}let f=u(l,p,r+1);h[a]=f,f===l&&d++}return i===a&&d===i?e:h}function c(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!h(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!h(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}let d=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let s,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e},"addToEnd",0,function(e,t,r=0){let s=[...e,t];return r&&s.length>r?s.slice(1):s},"addToStart",0,function(e,t,r=0){let s=[t,...e];return r&&s.length>r?s.slice(0,-1):s},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==d?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,i,"isServer",0,s,"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:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(n(t.options.mutationKey)!==n(o))return!1}else if(!a(t.options.mutationKey,o))return!1}return(!s||t.state.status===s)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:s,fetchStatus:n,predicate:o,queryKey:u,stale:c}=e;if(u){if(s){if(t.queryHash!==i(u,t.options))return!1}else if(!a(t.queryKey,u))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof c||t.isStale()===c)&&(!n||n===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,a,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?u(e,t):t},"replaceEqualDeep",0,u,"resolveQueryValue",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},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,d,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],619273)},381384,673664,427001,254440,e=>{"use strict";let t;var r=e.i(271645);let s=r.createContext(!1);s.Provider,e.s(["useIsRestoring",0,()=>r.useContext(s)],381384),e.i(843476);let i=r.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}));e.s(["useQueryErrorResetBoundary",0,()=>r.useContext(i)],673664);var n=e.i(619273);e.s(["ensurePreventErrorBoundaryRetry",0,(e,t,r)=>{let s=r?.state.error&&"function"==typeof e.throwOnError?(0,n.shouldThrowError)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||s)&&!t.isReset()&&(e.retryOnMount=!1)},"getHasError",0,({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,n.shouldThrowError)(r,[e.error,s])),"useClearResetErrorBoundary",0,e=>{r.useEffect(()=>{e.clearReset()},[e])}],427001),e.s(["ensureSuspenseTimers",0,e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},"fetchOptimistic",0,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),"shouldSuspend",0,(e,t)=>e?.suspense&&t.isPending],254440)},912598,e=>{"use strict";var t=e.i(271645),r=e.i(843476);let s=t.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:i})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(s.Provider,{value:e,children:i})),"useQueryClient",0,e=>{let r=t.useContext(s);if(e)return e;if(!r)throw Error("No QueryClient set, use QueryClientProvider to set one");return r}])},469637,e=>{"use strict";e.i(247167);var t=e.i(912598),r=e.i(381384),s=e.i(673664),i=e.i(427001),n=e.i(254440),a=e.i(271645),o=e.i(619273),u=e.i(540143);
1e.s(["useBaseQuery",0,function(e,c,l){let h=(0,r.useIsRestoring)(),d=(0,s.useQueryErrorResetBoundary)(),p=(0,t.useQueryClient)(l),f=p.defaultQueryOptions(e),y=p.getQueryCache().get(f.queryHash),v=!1!==e.subscribed;f._optimisticResults=h?"isRestoring":v?"optimistic":void 0,(0,n.ensureSuspenseTimers)(f),(0,i.ensurePreventErrorBoundaryRetry)(f,d,y),(0,i.useClearResetErrorBoundary)(d);let[m]=a.useState(()=>new c(p,f)),b=m.getOptimisticResult(f),g=!h&&v;if(a.useSyncExternalStore(a.useCallback(e=>{let t=g?m.subscribe(u.notifyManager.batchCalls(e)):o.noop;return m.updateResult(),t},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),a.useEffect(()=>{m.setOptions(f)},[f,m]),(0,n.shouldSuspend)(f,b))throw(0,n.fetchOptimistic)(f,m,d);if((0,i.getHasError)({result:b,errorResetBoundary:d,throwOnError:f.throwOnError,query:y,suspense:f.suspense}))throw b.error;return f.notifyOnChangeProps?b:m.trackResult(b)}])},266027,286491,e=>{"use strict";var t=e.i(469637),r=e.i(180166),s=e.i(619273),i=e.i(273911),n=e.i(915823),a=e.i(175555),o=e.i(540143),u=e.i(936553),c=e.i(88587);function l(e,{pages:t,pageParams:r}){let s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function h(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var d=class extends c.Removable{#o;#u;#c;#l;#h;#d;#p;#f;constructor(e){super(),this.#f=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#l=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=y(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#o}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=y(this.options);void 0!==e.data&&(this.setState(f(e.data,e.dataUpdatedAt)),this.#u=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){let r=(0,s.replaceData)(this.state.data,e,this.options);return this.#y({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#y({type:"setState",state:e})}cancel(e){let t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(s.noop).catch(s.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#u}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,s.resolveQueryValue)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===s.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,s.resolveQueryValue)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,s.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#d&&(this.#f||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#y({type:"invalidate"})}async fetch(e,t){var r;let i;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.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,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,n.signal)}
1)},o=()=>{let e,r=(0,s.ensureQueryFn)(this.options,t),i=(a(e={client:this.#h,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(r,i,this):r(i)},c=(a(i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:o}),i);("infinite"===this.#o?(r=this.options.pages,{onFetch:(e,t)=>{let i=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],o=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},c=0,d=async()=>{let t=!1,d=(0,s.ensureQueryFn)(e.options,e.fetchOptions),p=async(r,i,n)=>{let a;if(t)return Promise.reject(e.signal.reason);if(null==i&&r.pages.length)return Promise.resolve(r);let o=(a={client:e.client,queryKey:e.queryKey,pageParam:i,direction:n?"backward":"forward",meta:e.options.meta},(0,s.addConsumeAwareSignal)(a,()=>e.signal,()=>t=!0),a),u=await d(o),{maxPages:c}=e.options,l=n?s.addToStart:s.addToEnd;return{pages:l(r.pages,u,c),pageParams:l(r.pageParams,i,c)}};if(n&&a.length){let e="backward"===n,t=e?h:l,r={pages:a,pageParams:o};u=await p(r,t(i,r),e)}else{let e=r??a.length;do{let e=0===c?o[0]??i.initialPageParam:l(i,u);if(c>0&&null==e)break;u=await p(u,e),c++}while(c<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=d}}):this.options.behavior)?.onFetch(c,this),this.#c=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#y({type:"fetch",meta:c.fetchOptions?.meta});let d=this.#d=(0,u.createRetryer)({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof u.CancelledError&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#y({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#y({type:"pause"})},onContinue:()=>{this.#y({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{let e=await d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof u.CancelledError){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#y({type:"error",error:e}),this.#l.config.onError?.(e,this),this.#l.config.onSettled?.(this.state.data,e,this),e}finally{this.#d===d&&(this.#d=void 0),this.scheduleGc()}}#y(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":let r={...t,...f(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?r:void 0,r;case"error":let s=e.error;return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),o.notifyManager.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function p(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,u.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function f(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function y(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,d,"fetchState",0,p],286491);var v=class extends n.Subscribable{#h;#v=void 0;#m=void 0;#b=void 0;#g;#R;#S;#O;#Q;#T;#C;#w;#P;#E=new Set;constructor(e,t){super(),this.options=t,this.#h=e,this.#S=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#v.addObserver(this),m(this.#v,this.options)?this.#F():this.updateResult(),this.#I())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return b(this.#v,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return b(this.#v,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#q(),this.#v.removeObserver(this)}setOptions(e){let t=this.options,r=this.#v;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.resolveQueryValue)(this.options.enabled,this.#v))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");
1this.#U(),this.#v.setOptions(this.options),t._defaulted&&!(0,s.shallowEqualObjects)(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#v,observer:this});let i=this.hasListeners();i&&g(this.#v,r,this.options,t)&&this.#F(),this.updateResult(),i&&(this.#v!==r||(0,s.resolveQueryValue)(this.options.enabled,this.#v)!==(0,s.resolveQueryValue)(t.enabled,this.#v)||(0,s.resolveQueryValue)(this.options.staleTime,this.#v)!==(0,s.resolveQueryValue)(t.staleTime,this.#v))&&this.#D();let n=this.#A();i&&(this.#v!==r||(0,s.resolveQueryValue)(this.options.enabled,this.#v)!==(0,s.resolveQueryValue)(t.enabled,this.#v)||n!==this.#P)&&this.#M(n)}getOptimisticResult(e){let t=this.#h.getQueryCache().build(this.#h,e),r=this.createResult(t,e);return(0,s.shallowEqualObjects)(this.getCurrentResult(),r)||(this.#b=r,this.#R=this.options,this.#g=this.#v.state),r}getCurrentResult(){return this.#b}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#E.add(e)}getCurrentQuery(){return this.#v}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t,r=this.#h.defaultQueryOptions(e),s=this.#h.getQueryCache().build(this.#h,r),i=()=>{},n=new Promise(e=>{t=e,i=this.#h.getQueryCache().subscribe(t=>{"updated"===t.type&&t.query.queryHash===s.queryHash&&void 0!==s.state.data&&(i(),e(this.createResult(s,r)))})});return Promise.race([s.fetch().then(()=>{let e=this.createResult(s,r);return t?.(e),e}).finally(()=>{i()}),n])}fetch(e){return this.#F({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#b))}#F(e){this.#U();let t=this.#v.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.noop)),t}#j(e){return!(0,i.isServer)()&&!1!==(0,s.resolveQueryValue)(this.options.enabled,this.#v)&&(0,s.isValidTimeout)(e)}#D(){this.#k();let e=(0,s.resolveQueryValue)(this.options.staleTime,this.#v);if(this.#b.isStale||!this.#j(e))return;let t=(0,s.timeUntilStale)(this.#b.dataUpdatedAt,e)+1;this.#C=r.timeoutManager.setTimeout(()=>{this.#b.isStale||this.updateResult()},t)}#A(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#v):this.options.refetchInterval)??!1}#M(e){this.#q(),this.#P=e,0!==this.#P&&this.#j(this.#P)&&(this.#w=r.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||a.focusManager.isFocused())&&this.#F()},this.#P))}#I(){this.#D(),this.#M(this.#A())}#k(){void 0!==this.#C&&(r.timeoutManager.clearTimeout(this.#C),this.#C=void 0)}#q(){void 0!==this.#w&&(r.timeoutManager.clearInterval(this.#w),this.#w=void 0)}createResult(e,t){let r,i=this.#v,n=this.options,a=this.#b,o=this.#g,u=this.#R,c=e!==i?e.state:this.#m,{state:l}=e,h={...l},d=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&m(e,t),a=r&&g(e,i,t,n);(s||a)&&(h={...h,...p(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(h.fetchStatus="idle")}let{error:f,errorUpdatedAt:y,status:v}=h;r=h.data;let b=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;a?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(e=a.data,b=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(v="success",r=(0,s.replaceData)(a?.data,e,t),d=!0)}if(t.select&&void 0!==r&&!b)if(a&&r===o?.data&&t.select===this.#O)r=this.#Q;else try{this.#O=t.select,r=t.select(r),r=(0,s.replaceData)(a?.data,r,t),this.#Q=r,this.#S=null}catch(e){this.#S=e}else void 0===r&&(this.#S=null);this.#S&&(f=this.#S,r=this.#Q,y=Date.now(),v="error",d=!1);let S="fetching"===h.fetchStatus,O="pending"===v,Q="error"===v,T=O&&S,C=void 0!==r;return{status:v,fetchStatus:h.fetchStatus,isPending:O,isSuccess:"success"===v,isError:Q,isInitialLoading:T,isLoading:T,data:r,dataUpdatedAt:h.dataUpdatedAt,error:f,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!O,isLoadingError:Q&&!C,isPaused:"paused"===h.fetchStatus,isPlaceholderData:d,isRefetchError:Q&&C,isStale:R(e,t),refetch:this.refetch,isEnabled:!1!==(0,s.resolveQueryValue)(t.enabled,e)}}updateResult(){let e=this.#b,t=this.createResult(this.#v,this.options);if(this.#g=this.#v.state,this.#R=this.options,void 0!==this.#g.data&&(this.#T=this.#v),(0,s.shallowEqualObjects)(t,e))return;this.#b=t;let r=(()=>
1{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#E.size)return!0;let s=new Set(r??this.#E);return this.options.throwOnError&&s.add("error"),Object.keys(this.#b).some(t=>this.#b[t]!==e[t]&&s.has(t))})();o.notifyManager.batch(()=>{r&&this.listeners.forEach(e=>{e(this.#b)}),this.#h.getQueryCache().notify({query:this.#v,type:"observerResultsUpdated"})})}#U(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#v)return;let t=this.#v;this.#v=e,this.#m=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#I()}};function m(e,t){return!1!==(0,s.resolveQueryValue)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,s.resolveQueryValue)(t.retryOnMount,e))||void 0!==e.state.data&&b(e,t,t.refetchOnMount)}function b(e,t,r){if(!1!==(0,s.resolveQueryValue)(t.enabled,e)&&"static"!==(0,s.resolveQueryValue)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&R(e,t)}return!1}function g(e,t,r,i){return(e!==t||!1===(0,s.resolveQueryValue)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&R(e,r)}function R(e,t){return!1!==(0,s.resolveQueryValue)(t.enabled,e)&&e.isStaleByTime((0,s.resolveQueryValue)(t.staleTime,e))}e.s(["useQuery",0,function(e,r){return(0,t.useBaseQuery)(e,v,r)}],266027)},461613,e=>{"use strict";function t(e){return["pagination",e.offset??0,e.limit??5,...(e.sortBy?.map(e=>`${e.field}:${e.isAscending?"asc":"desc"}`)||[]).sort()]}e.s(["queryKeys",0,{customer:()=>["customer"],corporateAccountQuotaUsage:()=>["corporateAccountQuotaUsage"],homePacks:()=>["homePacks"],competitions:()=>["competitions"],homeOnSaleEvents:(e,r)=>["homeOnSaleEvents",t(e),r],subscriptionPage:(e,r)=>["subscriptions",t(e),r],eventPack:e=>["event","pack",e],eventPackEvents:e=>["event","pack","events",e],eventArenas:e=>["arenas","event",e??null],campaignPackArenas:e=>["arenas","campaign-pack",e??null],eventCategories:()=>["event","categories"],eventProducts:()=>["event","products"],eventCacheOffers:(e,t,r)=>["cacheOffers",e,t,r],event:e=>["events",e],eventOptions:(e,t,r,s)=>["options",e,t,r,s],eventPackOptions:e=>["options",e],eventCachePackOffers:(e,t,r)=>["getCachePackOffers",e,t,r],ticketPanelFormBlocks:e=>["ticketPanelsForm",e],cartOrder:()=>["cart","order"],cartOrderId:e=>["cart","order",e],cartPromoCode:()=>["cart","promoCode"],cartApplyPromoCode:()=>["cart","applyPromoCode"],cartEvaluatedPromoCode:e=>["cart","evaluatedPromoCode",e],cartEvaluatedFees:(e,t)=>["cart","evaluatedFees",e,t],billingPage:(e,r,s)=>["billing",e,t(r),s],ticketsPage:(e,r)=>["tickets",r,t(e)],ticketEvent:(e,t)=>["tickets","event",e,t],dashboardResaleOrder:e=>["resale","order",e],dashboardResalePage:(e,r)=>["resale",e,t(r)],order:e=>["order",e]}])}]);

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.