-
Notifications
You must be signed in to change notification settings - Fork 0
/
345.e3bc335d.iframe.bundle.js
2 lines (2 loc) · 78.9 KB
/
345.e3bc335d.iframe.bundle.js
1
2
/*! For license information please see 345.e3bc335d.iframe.bundle.js.LICENSE.txt */
(self.webpackChunk_haaretz_a_htz_sg=self.webpackChunk_haaretz_a_htz_sg||[]).push([[345],{"../../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{NF:()=>withMDXComponents,Zo:()=>MDXProvider,ah:()=>useMDXComponents,pC:()=>MDXContext});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js");const MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext({});function withMDXComponents(Component){return function boundMDXComponent(props){const allComponents=useMDXComponents(props.components);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,{...props,allComponents})}}function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>"function"==typeof components?components(contextComponents):{...contextComponents,...components}),[contextComponents,components])}const emptyObject={};function MDXProvider({components,children,disableParentContext}){let allComponents;return allComponents=disableParentContext?"function"==typeof components?components({}):components||emptyObject:useMDXComponents(components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},children)}},"../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/queryObserver.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>QueryObserver});var _utils_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/utils.mjs"),_notifyManager_mjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/notifyManager.mjs"),_focusManager_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/focusManager.mjs"),_subscribable_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/subscribable.mjs"),_retryer_mjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/retryer.mjs");class QueryObserver extends _subscribable_mjs__WEBPACK_IMPORTED_MODULE_0__.l{constructor(client,options){super(),this.client=client,this.options=options,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(options)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(options,notifyOptions){const prevOptions=this.options,prevQuery=this.currentQuery;if(this.options=this.client.defaultQueryOptions(options),(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.VS)(prevOptions,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=prevOptions.queryKey),this.updateQuery();const mounted=this.hasListeners();mounted&&shouldFetchOptionally(this.currentQuery,prevQuery,this.options,prevOptions)&&this.executeFetch(),this.updateResult(notifyOptions),!mounted||this.currentQuery===prevQuery&&this.options.enabled===prevOptions.enabled&&this.options.staleTime===prevOptions.staleTime||this.updateStaleTimeout();const nextRefetchInterval=this.computeRefetchInterval();!mounted||this.currentQuery===prevQuery&&this.options.enabled===prevOptions.enabled&&nextRefetchInterval===this.currentRefetchInterval||this.updateRefetchInterval(nextRefetchInterval)}getOptimisticResult(options){const query=this.client.getQueryCache().build(this.client,options),result=this.createResult(query,options);return function shouldAssignObserverCurrentProperties(observer,optimisticResult,options){if(options.keepPreviousData)return!1;if(void 0!==options.placeholderData)return optimisticResult.isPlaceholderData;if(!(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.VS)(observer.getCurrentResult(),optimisticResult))return!0;return!1}(this,result,options)&&(this.currentResult=result,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),result}getCurrentResult(){return this.currentResult}trackResult(result){const trackedResult={};return Object.keys(result).forEach((key=>{Object.defineProperty(trackedResult,key,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(key),result[key])})})),trackedResult}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage,...options}={}){return this.fetch({...options,meta:{refetchPage}})}fetchOptimistic(options){const defaultedOptions=this.client.defaultQueryOptions(options),query=this.client.getQueryCache().build(this.client,defaultedOptions);return query.isFetchingOptimistic=!0,query.fetch().then((()=>this.createResult(query,defaultedOptions)))}fetch(fetchOptions){var _fetchOptions$cancelR;return this.executeFetch({...fetchOptions,cancelRefetch:null==(_fetchOptions$cancelR=fetchOptions.cancelRefetch)||_fetchOptions$cancelR}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(fetchOptions){this.updateQuery();let promise=this.currentQuery.fetch(this.options,fetchOptions);return null!=fetchOptions&&fetchOptions.throwOnError||(promise=promise.catch(_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.ZT)),promise}updateStaleTimeout(){if(this.clearStaleTimeout(),_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.sk||this.currentResult.isStale||!(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.PN)(this.options.staleTime))return;const timeout=(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),timeout)}computeRefetchInterval(){var _this$options$refetch;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(_this$options$refetch=this.options.refetchInterval)&&_this$options$refetch}updateRefetchInterval(nextInterval){this.clearRefetchInterval(),this.currentRefetchInterval=nextInterval,!_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.sk&&!1!==this.options.enabled&&(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||_focusManager_mjs__WEBPACK_IMPORTED_MODULE_2__.j.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(query,options){const prevQuery=this.currentQuery,prevOptions=this.options,prevResult=this.currentResult,prevResultState=this.currentResultState,prevResultOptions=this.currentResultOptions,queryChange=query!==prevQuery,queryInitialState=queryChange?query.state:this.currentQueryInitialState,prevQueryResult=queryChange?this.currentResult:this.previousQueryResult,{state}=query;let data,{dataUpdatedAt,error,errorUpdatedAt,fetchStatus,status}=state,isPreviousData=!1,isPlaceholderData=!1;if(options._optimisticResults){const mounted=this.hasListeners(),fetchOnMount=!mounted&&shouldFetchOnMount(query,options),fetchOptionally=mounted&&shouldFetchOptionally(query,prevQuery,options,prevOptions);(fetchOnMount||fetchOptionally)&&(fetchStatus=(0,_retryer_mjs__WEBPACK_IMPORTED_MODULE_3__.Kw)(query.options.networkMode)?"fetching":"paused",dataUpdatedAt||(status="loading")),"isRestoring"===options._optimisticResults&&(fetchStatus="idle")}if(options.keepPreviousData&&!state.dataUpdatedAt&&null!=prevQueryResult&&prevQueryResult.isSuccess&&"error"!==status)data=prevQueryResult.data,dataUpdatedAt=prevQueryResult.dataUpdatedAt,status=prevQueryResult.status,isPreviousData=!0;else if(options.select&&void 0!==state.data)if(prevResult&&state.data===(null==prevResultState?void 0:prevResultState.data)&&options.select===this.selectFn)data=this.selectResult;else try{this.selectFn=options.select,data=options.select(state.data),data=(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.oE)(null==prevResult?void 0:prevResult.data,data,options),this.selectResult=data,this.selectError=null}catch(selectError){0,this.selectError=selectError}else data=state.data;if(void 0!==options.placeholderData&&void 0===data&&"loading"===status){let placeholderData;if(null!=prevResult&&prevResult.isPlaceholderData&&options.placeholderData===(null==prevResultOptions?void 0:prevResultOptions.placeholderData))placeholderData=prevResult.data;else if(placeholderData="function"==typeof options.placeholderData?options.placeholderData():options.placeholderData,options.select&&void 0!==placeholderData)try{placeholderData=options.select(placeholderData),this.selectError=null}catch(selectError){0,this.selectError=selectError}void 0!==placeholderData&&(status="success",data=(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.oE)(null==prevResult?void 0:prevResult.data,placeholderData,options),isPlaceholderData=!0)}this.selectError&&(error=this.selectError,data=this.selectResult,errorUpdatedAt=Date.now(),status="error");const isFetching="fetching"===fetchStatus,isLoading="loading"===status,isError="error"===status;return{status,fetchStatus,isLoading,isSuccess:"success"===status,isError,isInitialLoading:isLoading&&isFetching,data,dataUpdatedAt,error,errorUpdatedAt,failureCount:state.fetchFailureCount,failureReason:state.fetchFailureReason,errorUpdateCount:state.errorUpdateCount,isFetched:state.dataUpdateCount>0||state.errorUpdateCount>0,isFetchedAfterMount:state.dataUpdateCount>queryInitialState.dataUpdateCount||state.errorUpdateCount>queryInitialState.errorUpdateCount,isFetching,isRefetching:isFetching&&!isLoading,isLoadingError:isError&&0===state.dataUpdatedAt,isPaused:"paused"===fetchStatus,isPlaceholderData,isPreviousData,isRefetchError:isError&&0!==state.dataUpdatedAt,isStale:isStale(query,options),refetch:this.refetch,remove:this.remove}}updateResult(notifyOptions){const prevResult=this.currentResult,nextResult=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,_utils_mjs__WEBPACK_IMPORTED_MODULE_1__.VS)(nextResult,prevResult))return;this.currentResult=nextResult;const defaultNotifyOptions={cache:!0};!1!==(null==notifyOptions?void 0:notifyOptions.listeners)&&(()=>{if(!prevResult)return!0;const{notifyOnChangeProps}=this.options,notifyOnChangePropsValue="function"==typeof notifyOnChangeProps?notifyOnChangeProps():notifyOnChangeProps;if("all"===notifyOnChangePropsValue||!notifyOnChangePropsValue&&!this.trackedProps.size)return!0;const includedProps=new Set(null!=notifyOnChangePropsValue?notifyOnChangePropsValue:this.trackedProps);return this.options.useErrorBoundary&&includedProps.add("error"),Object.keys(this.currentResult).some((key=>{const typedKey=key;return this.currentResult[typedKey]!==prevResult[typedKey]&&includedProps.has(typedKey)}))})()&&(defaultNotifyOptions.listeners=!0),this.notify({...defaultNotifyOptions,...notifyOptions})}updateQuery(){const query=this.client.getQueryCache().build(this.client,this.options);if(query===this.currentQuery)return;const prevQuery=this.currentQuery;this.currentQuery=query,this.currentQueryInitialState=query.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==prevQuery||prevQuery.removeObserver(this),query.addObserver(this))}onQueryUpdate(action){const notifyOptions={};"success"===action.type?notifyOptions.onSuccess=!action.manual:"error"!==action.type||(0,_retryer_mjs__WEBPACK_IMPORTED_MODULE_3__.DV)(action.error)||(notifyOptions.onError=!0),this.updateResult(notifyOptions),this.hasListeners()&&this.updateTimers()}notify(notifyOptions){_notifyManager_mjs__WEBPACK_IMPORTED_MODULE_4__.V.batch((()=>{var _this$options$onSucce,_this$options,_this$options$onSettl,_this$options2;if(notifyOptions.onSuccess)null==(_this$options$onSucce=(_this$options=this.options).onSuccess)||_this$options$onSucce.call(_this$options,this.currentResult.data),null==(_this$options$onSettl=(_this$options2=this.options).onSettled)||_this$options$onSettl.call(_this$options2,this.currentResult.data,null);else if(notifyOptions.onError){var _this$options$onError,_this$options3,_this$options$onSettl2,_this$options4;null==(_this$options$onError=(_this$options3=this.options).onError)||_this$options$onError.call(_this$options3,this.currentResult.error),null==(_this$options$onSettl2=(_this$options4=this.options).onSettled)||_this$options$onSettl2.call(_this$options4,void 0,this.currentResult.error)}notifyOptions.listeners&&this.listeners.forEach((({listener})=>{listener(this.currentResult)})),notifyOptions.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function shouldFetchOnMount(query,options){return function shouldLoadOnMount(query,options){return!(!1===options.enabled||query.state.dataUpdatedAt||"error"===query.state.status&&!1===options.retryOnMount)}(query,options)||query.state.dataUpdatedAt>0&&shouldFetchOn(query,options,options.refetchOnMount)}function shouldFetchOn(query,options,field){if(!1!==options.enabled){const value="function"==typeof field?field(query):field;return"always"===value||!1!==value&&isStale(query,options)}return!1}function shouldFetchOptionally(query,prevQuery,options,prevOptions){return!1!==options.enabled&&(query!==prevQuery||!1===prevOptions.enabled)&&(!options.suspense||"error"!==query.state.status)&&isStale(query,options)}function isStale(query,options){return query.isStaleByTime(options.staleTime)}},"../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useBaseQuery.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>useBaseQuery});var react=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js"),notifyManager=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/notifyManager.mjs"),useSyncExternalStore=__webpack_require__("../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.mjs");function createValue(){let isReset=!1;return{clearReset:()=>{isReset=!1},reset:()=>{isReset=!0},isReset:()=>isReset}}const QueryErrorResetBoundaryContext=react.createContext(createValue()),useQueryErrorResetBoundary=()=>react.useContext(QueryErrorResetBoundaryContext);var QueryClientProvider=__webpack_require__("../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/QueryClientProvider.mjs");const IsRestoringContext=react.createContext(!1),useIsRestoring=()=>react.useContext(IsRestoringContext);IsRestoringContext.Provider;var utils=__webpack_require__("../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/utils.mjs");const ensurePreventErrorBoundaryRetry=(options,errorResetBoundary)=>{(options.suspense||options.useErrorBoundary)&&(errorResetBoundary.isReset()||(options.retryOnMount=!1))},useClearResetErrorBoundary=errorResetBoundary=>{react.useEffect((()=>{errorResetBoundary.clearReset()}),[errorResetBoundary])},getHasError=({result,errorResetBoundary,useErrorBoundary,query})=>result.isError&&!errorResetBoundary.isReset()&&!result.isFetching&&(0,utils.L)(useErrorBoundary,[result.error,query]),ensureStaleTime=defaultedOptions=>{defaultedOptions.suspense&&"number"!=typeof defaultedOptions.staleTime&&(defaultedOptions.staleTime=1e3)},shouldSuspend=(defaultedOptions,result,isRestoring)=>(null==defaultedOptions?void 0:defaultedOptions.suspense)&&((result,isRestoring)=>result.isLoading&&result.isFetching&&!isRestoring)(result,isRestoring),fetchOptimistic=(defaultedOptions,observer,errorResetBoundary)=>observer.fetchOptimistic(defaultedOptions).then((({data})=>{null==defaultedOptions.onSuccess||defaultedOptions.onSuccess(data),null==defaultedOptions.onSettled||defaultedOptions.onSettled(data,null)})).catch((error=>{errorResetBoundary.clearReset(),null==defaultedOptions.onError||defaultedOptions.onError(error),null==defaultedOptions.onSettled||defaultedOptions.onSettled(void 0,error)}));function useBaseQuery(options,Observer){const queryClient=(0,QueryClientProvider.NL)({context:options.context}),isRestoring=useIsRestoring(),errorResetBoundary=useQueryErrorResetBoundary(),defaultedOptions=queryClient.defaultQueryOptions(options);defaultedOptions._optimisticResults=isRestoring?"isRestoring":"optimistic",defaultedOptions.onError&&(defaultedOptions.onError=notifyManager.V.batchCalls(defaultedOptions.onError)),defaultedOptions.onSuccess&&(defaultedOptions.onSuccess=notifyManager.V.batchCalls(defaultedOptions.onSuccess)),defaultedOptions.onSettled&&(defaultedOptions.onSettled=notifyManager.V.batchCalls(defaultedOptions.onSettled)),ensureStaleTime(defaultedOptions),ensurePreventErrorBoundaryRetry(defaultedOptions,errorResetBoundary),useClearResetErrorBoundary(errorResetBoundary);const[observer]=react.useState((()=>new Observer(queryClient,defaultedOptions))),result=observer.getOptimisticResult(defaultedOptions);if((0,useSyncExternalStore.$)(react.useCallback((onStoreChange=>{const unsubscribe=isRestoring?()=>{}:observer.subscribe(notifyManager.V.batchCalls(onStoreChange));return observer.updateResult(),unsubscribe}),[observer,isRestoring]),(()=>observer.getCurrentResult()),(()=>observer.getCurrentResult())),react.useEffect((()=>{observer.setOptions(defaultedOptions,{listeners:!1})}),[defaultedOptions,observer]),shouldSuspend(defaultedOptions,result,isRestoring))throw fetchOptimistic(defaultedOptions,observer,errorResetBoundary);if(getHasError({result,errorResetBoundary,useErrorBoundary:defaultedOptions.useErrorBoundary,query:observer.getCurrentQuery()}))throw result.error;return defaultedOptions.notifyOnChangeProps?result:observer.trackResult(result)}},"../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useInfiniteQuery.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{N:()=>useInfiniteQuery});var utils=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/utils.mjs"),queryObserver=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/queryObserver.mjs"),infiniteQueryBehavior=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.mjs");class InfiniteQueryObserver extends queryObserver.z{constructor(client,options){super(client,options)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(options,notifyOptions){super.setOptions({...options,behavior:(0,infiniteQueryBehavior.Gm)()},notifyOptions)}getOptimisticResult(options){return options.behavior=(0,infiniteQueryBehavior.Gm)(),super.getOptimisticResult(options)}fetchNextPage({pageParam,...options}={}){return this.fetch({...options,meta:{fetchMore:{direction:"forward",pageParam}}})}fetchPreviousPage({pageParam,...options}={}){return this.fetch({...options,meta:{fetchMore:{direction:"backward",pageParam}}})}createResult(query,options){var _state$fetchMeta,_state$fetchMeta$fetc,_state$fetchMeta2,_state$fetchMeta2$fet,_state$data,_state$data2;const{state}=query,result=super.createResult(query,options),{isFetching,isRefetching}=result,isFetchingNextPage=isFetching&&"forward"===(null==(_state$fetchMeta=state.fetchMeta)||null==(_state$fetchMeta$fetc=_state$fetchMeta.fetchMore)?void 0:_state$fetchMeta$fetc.direction),isFetchingPreviousPage=isFetching&&"backward"===(null==(_state$fetchMeta2=state.fetchMeta)||null==(_state$fetchMeta2$fet=_state$fetchMeta2.fetchMore)?void 0:_state$fetchMeta2$fet.direction);return{...result,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,infiniteQueryBehavior.Qy)(options,null==(_state$data=state.data)?void 0:_state$data.pages),hasPreviousPage:(0,infiniteQueryBehavior.ZF)(options,null==(_state$data2=state.data)?void 0:_state$data2.pages),isFetchingNextPage,isFetchingPreviousPage,isRefetching:isRefetching&&!isFetchingNextPage&&!isFetchingPreviousPage}}}var useBaseQuery=__webpack_require__("../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useBaseQuery.mjs");function useInfiniteQuery(arg1,arg2,arg3){const options=(0,utils._v)(arg1,arg2,arg3);return(0,useBaseQuery.r)(options,InfiniteQueryObserver)}},"../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useQuery.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>useQuery});var _tanstack_query_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/utils.mjs"),_tanstack_query_core__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../../node_modules/.pnpm/@[email protected]/node_modules/@tanstack/query-core/build/lib/queryObserver.mjs"),_useBaseQuery_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useBaseQuery.mjs");function useQuery(arg1,arg2,arg3){const parsedOptions=(0,_tanstack_query_core__WEBPACK_IMPORTED_MODULE_0__._v)(arg1,arg2,arg3);return(0,_useBaseQuery_mjs__WEBPACK_IMPORTED_MODULE_1__.r)(parsedOptions,_tanstack_query_core__WEBPACK_IMPORTED_MODULE_2__.z)}},"../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>useSyncExternalStore});const useSyncExternalStore=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/use-sync-external-store/shim/index.js").useSyncExternalStore},"../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@tanstack/react-query/build/lib/utils.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function shouldThrowError(_useErrorBoundary,params){return"function"==typeof _useErrorBoundary?_useErrorBoundary(...params):!!_useErrorBoundary}__webpack_require__.d(__webpack_exports__,{L:()=>shouldThrowError})},"../../../node_modules/.pnpm/[email protected]/node_modules/crypto-js/core.js":function(module,exports,__webpack_require__){var CryptoJS;module.exports=(CryptoJS=CryptoJS||function(Math,undefined){var crypto;if("undefined"!=typeof window&&window.crypto&&(crypto=window.crypto),"undefined"!=typeof self&&self.crypto&&(crypto=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(crypto=globalThis.crypto),!crypto&&"undefined"!=typeof window&&window.msCrypto&&(crypto=window.msCrypto),!crypto&&void 0!==__webpack_require__.g&&__webpack_require__.g.crypto&&(crypto=__webpack_require__.g.crypto),!crypto)try{crypto=__webpack_require__("?8823")}catch(err){}var cryptoSecureRandomInt=function(){if(crypto){if("function"==typeof crypto.getRandomValues)try{return crypto.getRandomValues(new Uint32Array(1))[0]}catch(err){}if("function"==typeof crypto.randomBytes)try{return crypto.randomBytes(4).readInt32LE()}catch(err){}}throw new Error("Native crypto module could not be used to get secure random number.")},create=Object.create||function(){function F(){}return function(obj){var subtype;return F.prototype=obj,subtype=new F,F.prototype=null,subtype}}(),C={},C_lib=C.lib={},Base=C_lib.Base={extend:function(overrides){var subtype=create(this);return overrides&&subtype.mixIn(overrides),subtype.hasOwnProperty("init")&&this.init!==subtype.init||(subtype.init=function(){subtype.$super.init.apply(this,arguments)}),subtype.init.prototype=subtype,subtype.$super=this,subtype},create:function(){var instance=this.extend();return instance.init.apply(instance,arguments),instance},init:function(){},mixIn:function(properties){for(var propertyName in properties)properties.hasOwnProperty(propertyName)&&(this[propertyName]=properties[propertyName]);properties.hasOwnProperty("toString")&&(this.toString=properties.toString)},clone:function(){return this.init.prototype.extend(this)}},WordArray=C_lib.WordArray=Base.extend({init:function(words,sigBytes){words=this.words=words||[],this.sigBytes=sigBytes!=undefined?sigBytes:4*words.length},toString:function(encoder){return(encoder||Hex).stringify(this)},concat:function(wordArray){var thisWords=this.words,thatWords=wordArray.words,thisSigBytes=this.sigBytes,thatSigBytes=wordArray.sigBytes;if(this.clamp(),thisSigBytes%4)for(var i=0;i<thatSigBytes;i++){var thatByte=thatWords[i>>>2]>>>24-i%4*8&255;thisWords[thisSigBytes+i>>>2]|=thatByte<<24-(thisSigBytes+i)%4*8}else for(var j=0;j<thatSigBytes;j+=4)thisWords[thisSigBytes+j>>>2]=thatWords[j>>>2];return this.sigBytes+=thatSigBytes,this},clamp:function(){var words=this.words,sigBytes=this.sigBytes;words[sigBytes>>>2]&=4294967295<<32-sigBytes%4*8,words.length=Math.ceil(sigBytes/4)},clone:function(){var clone=Base.clone.call(this);return clone.words=this.words.slice(0),clone},random:function(nBytes){for(var words=[],i=0;i<nBytes;i+=4)words.push(cryptoSecureRandomInt());return new WordArray.init(words,nBytes)}}),C_enc=C.enc={},Hex=C_enc.Hex={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,hexChars=[],i=0;i<sigBytes;i++){var bite=words[i>>>2]>>>24-i%4*8&255;hexChars.push((bite>>>4).toString(16)),hexChars.push((15&bite).toString(16))}return hexChars.join("")},parse:function(hexStr){for(var hexStrLength=hexStr.length,words=[],i=0;i<hexStrLength;i+=2)words[i>>>3]|=parseInt(hexStr.substr(i,2),16)<<24-i%8*4;return new WordArray.init(words,hexStrLength/2)}},Latin1=C_enc.Latin1={stringify:function(wordArray){for(var words=wordArray.words,sigBytes=wordArray.sigBytes,latin1Chars=[],i=0;i<sigBytes;i++){var bite=words[i>>>2]>>>24-i%4*8&255;latin1Chars.push(String.fromCharCode(bite))}return latin1Chars.join("")},parse:function(latin1Str){for(var latin1StrLength=latin1Str.length,words=[],i=0;i<latin1StrLength;i++)words[i>>>2]|=(255&latin1Str.charCodeAt(i))<<24-i%4*8;return new WordArray.init(words,latin1StrLength)}},Utf8=C_enc.Utf8={stringify:function(wordArray){try{return decodeURIComponent(escape(Latin1.stringify(wordArray)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(utf8Str){return Latin1.parse(unescape(encodeURIComponent(utf8Str)))}},BufferedBlockAlgorithm=C_lib.BufferedBlockAlgorithm=Base.extend({reset:function(){this._data=new WordArray.init,this._nDataBytes=0},_append:function(data){"string"==typeof data&&(data=Utf8.parse(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes},_process:function(doFlush){var processedWords,data=this._data,dataWords=data.words,dataSigBytes=data.sigBytes,blockSize=this.blockSize,nBlocksReady=dataSigBytes/(4*blockSize),nWordsReady=(nBlocksReady=doFlush?Math.ceil(nBlocksReady):Math.max((0|nBlocksReady)-this._minBufferSize,0))*blockSize,nBytesReady=Math.min(4*nWordsReady,dataSigBytes);if(nWordsReady){for(var offset=0;offset<nWordsReady;offset+=blockSize)this._doProcessBlock(dataWords,offset);processedWords=dataWords.splice(0,nWordsReady),data.sigBytes-=nBytesReady}return new WordArray.init(processedWords,nBytesReady)},clone:function(){var clone=Base.clone.call(this);return clone._data=this._data.clone(),clone},_minBufferSize:0}),C_algo=(C_lib.Hasher=BufferedBlockAlgorithm.extend({cfg:Base.extend(),init:function(cfg){this.cfg=this.cfg.extend(cfg),this.reset()},reset:function(){BufferedBlockAlgorithm.reset.call(this),this._doReset()},update:function(messageUpdate){return this._append(messageUpdate),this._process(),this},finalize:function(messageUpdate){return messageUpdate&&this._append(messageUpdate),this._doFinalize()},blockSize:16,_createHelper:function(hasher){return function(message,cfg){return new hasher.init(cfg).finalize(message)}},_createHmacHelper:function(hasher){return function(message,key){return new C_algo.HMAC.init(hasher,key).finalize(message)}}}),C.algo={});return C}(Math),CryptoJS)},"../../../node_modules/.pnpm/[email protected]/node_modules/crypto-js/enc-hex.js":function(module,exports,__webpack_require__){var CryptoJS;module.exports=(CryptoJS=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/crypto-js/core.js"),CryptoJS.enc.Hex)},"../../../node_modules/.pnpm/[email protected]/node_modules/crypto-js/sha256.js":function(module,exports,__webpack_require__){var CryptoJS;module.exports=(CryptoJS=__webpack_require__("../../../node_modules/.pnpm/[email protected]/node_modules/crypto-js/core.js"),function(Math){var C=CryptoJS,C_lib=C.lib,WordArray=C_lib.WordArray,Hasher=C_lib.Hasher,C_algo=C.algo,H=[],K=[];!function(){function isPrime(n){for(var sqrtN=Math.sqrt(n),factor=2;factor<=sqrtN;factor++)if(!(n%factor))return!1;return!0}function getFractionalBits(n){return 4294967296*(n-(0|n))|0}for(var n=2,nPrime=0;nPrime<64;)isPrime(n)&&(nPrime<8&&(H[nPrime]=getFractionalBits(Math.pow(n,.5))),K[nPrime]=getFractionalBits(Math.pow(n,1/3)),nPrime++),n++}();var W=[],SHA256=C_algo.SHA256=Hasher.extend({_doReset:function(){this._hash=new WordArray.init(H.slice(0))},_doProcessBlock:function(M,offset){for(var H=this._hash.words,a=H[0],b=H[1],c=H[2],d=H[3],e=H[4],f=H[5],g=H[6],h=H[7],i=0;i<64;i++){if(i<16)W[i]=0|M[offset+i];else{var gamma0x=W[i-15],gamma0=(gamma0x<<25|gamma0x>>>7)^(gamma0x<<14|gamma0x>>>18)^gamma0x>>>3,gamma1x=W[i-2],gamma1=(gamma1x<<15|gamma1x>>>17)^(gamma1x<<13|gamma1x>>>19)^gamma1x>>>10;W[i]=gamma0+W[i-7]+gamma1+W[i-16]}var maj=a&b^a&c^b&c,sigma0=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),t1=h+((e<<26|e>>>6)^(e<<21|e>>>11)^(e<<7|e>>>25))+(e&f^~e&g)+K[i]+W[i];h=g,g=f,f=e,e=d+t1|0,d=c,c=b,b=a,a=t1+(sigma0+maj)|0}H[0]=H[0]+a|0,H[1]=H[1]+b|0,H[2]=H[2]+c|0,H[3]=H[3]+d|0,H[4]=H[4]+e|0,H[5]=H[5]+f|0,H[6]=H[6]+g|0,H[7]=H[7]+h|0},_doFinalize:function(){var data=this._data,dataWords=data.words,nBitsTotal=8*this._nDataBytes,nBitsLeft=8*data.sigBytes;return dataWords[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,dataWords[14+(nBitsLeft+64>>>9<<4)]=Math.floor(nBitsTotal/4294967296),dataWords[15+(nBitsLeft+64>>>9<<4)]=nBitsTotal,data.sigBytes=4*dataWords.length,this._process(),this._hash},clone:function(){var clone=Hasher.clone.call(this);return clone._hash=this._hash.clone(),clone}});C.SHA256=Hasher._createHelper(SHA256),C.HmacSHA256=Hasher._createHmacHelper(SHA256)}(Math),CryptoJS.SHA256)},"../../../node_modules/.pnpm/[email protected]/node_modules/graphql/language/parser.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function invariant(condition,message){if(!Boolean(condition))throw new Error(null!=message?message:"Unexpected invariant triggered.")}__webpack_require__.d(__webpack_exports__,{Qc:()=>parse});const LineRegExp=/\r\n|[\n\r]/g;function getLocation(source,position){let lastLineStart=0,line=1;for(const match of source.body.matchAll(LineRegExp)){if("number"==typeof match.index||invariant(!1),match.index>=position)break;lastLineStart=match.index+match[0].length,line+=1}return{line,column:position+1-lastLineStart}}function printSourceLocation(source,sourceLocation){const firstLineColumnOffset=source.locationOffset.column-1,body="".padStart(firstLineColumnOffset)+source.body,lineIndex=sourceLocation.line-1,lineOffset=source.locationOffset.line-1,lineNum=sourceLocation.line+lineOffset,columnOffset=1===sourceLocation.line?firstLineColumnOffset:0,columnNum=sourceLocation.column+columnOffset,locationStr=`${source.name}:${lineNum}:${columnNum}\n`,lines=body.split(/\r\n|[\n\r]/g),locationLine=lines[lineIndex];if(locationLine.length>120){const subLineIndex=Math.floor(columnNum/80),subLineColumnNum=columnNum%80,subLines=[];for(let i=0;i<locationLine.length;i+=80)subLines.push(locationLine.slice(i,i+80));return locationStr+printPrefixedLines([[`${lineNum} |`,subLines[0]],...subLines.slice(1,subLineIndex+1).map((subLine=>["|",subLine])),["|","^".padStart(subLineColumnNum)],["|",subLines[subLineIndex+1]]])}return locationStr+printPrefixedLines([[lineNum-1+" |",lines[lineIndex-1]],[`${lineNum} |`,locationLine],["|","^".padStart(columnNum)],[`${lineNum+1} |`,lines[lineIndex+1]]])}function printPrefixedLines(lines){const existingLines=lines.filter((([_,line])=>void 0!==line)),padLen=Math.max(...existingLines.map((([prefix])=>prefix.length)));return existingLines.map((([prefix,line])=>prefix.padStart(padLen)+(line?" "+line:""))).join("\n")}class GraphQLError extends Error{constructor(message,...rawArgs){var _this$nodes,_nodeLocations$,_ref;const{nodes,source,positions,path,originalError,extensions}=function toNormalizedOptions(args){const firstArg=args[0];return null==firstArg||"kind"in firstArg||"length"in firstArg?{nodes:firstArg,source:args[1],positions:args[2],path:args[3],originalError:args[4],extensions:args[5]}:firstArg}(rawArgs);super(message),this.name="GraphQLError",this.path=null!=path?path:void 0,this.originalError=null!=originalError?originalError:void 0,this.nodes=undefinedIfEmpty(Array.isArray(nodes)?nodes:nodes?[nodes]:void 0);const nodeLocations=undefinedIfEmpty(null===(_this$nodes=this.nodes)||void 0===_this$nodes?void 0:_this$nodes.map((node=>node.loc)).filter((loc=>null!=loc)));this.source=null!=source?source:null==nodeLocations||null===(_nodeLocations$=nodeLocations[0])||void 0===_nodeLocations$?void 0:_nodeLocations$.source,this.positions=null!=positions?positions:null==nodeLocations?void 0:nodeLocations.map((loc=>loc.start)),this.locations=positions&&source?positions.map((pos=>getLocation(source,pos))):null==nodeLocations?void 0:nodeLocations.map((loc=>getLocation(loc.source,loc.start)));const originalExtensions=function isObjectLike(value){return"object"==typeof value&&null!==value}(null==originalError?void 0:originalError.extensions)?null==originalError?void 0:originalError.extensions:void 0;this.extensions=null!==(_ref=null!=extensions?extensions:originalExtensions)&&void 0!==_ref?_ref:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=originalError&&originalError.stack?Object.defineProperty(this,"stack",{value:originalError.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,GraphQLError):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let output=this.message;if(this.nodes)for(const node of this.nodes)node.loc&&(output+="\n\n"+printSourceLocation((location=node.loc).source,getLocation(location.source,location.start)));else if(this.source&&this.locations)for(const location of this.locations)output+="\n\n"+printSourceLocation(this.source,location);var location;return output}toJSON(){const formattedError={message:this.message};return null!=this.locations&&(formattedError.locations=this.locations),null!=this.path&&(formattedError.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(formattedError.extensions=this.extensions),formattedError}}function undefinedIfEmpty(array){return void 0===array||0===array.length?void 0:array}function syntaxError(source,position,description){return new GraphQLError(`Syntax Error: ${description}`,{source,positions:[position]})}class Location{constructor(startToken,endToken,source){this.start=startToken.start,this.end=endToken.end,this.startToken=startToken,this.endToken=endToken,this.source=source}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Token{constructor(kind,start,end,line,column,value){this.kind=kind,this.start=start,this.end=end,this.line=line,this.column=column,this.value=value,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}new Set(Object.keys({Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]}));var OperationTypeNode,DirectiveLocation,Kind,tokenKind_TokenKind;function isDigit(code){return code>=48&&code<=57}function isLetter(code){return code>=97&&code<=122||code>=65&&code<=90}function isNameStart(code){return isLetter(code)||95===code}function isNameContinue(code){return isLetter(code)||isDigit(code)||95===code}function dedentBlockStringLines(lines){var _firstNonEmptyLine2;let commonIndent=Number.MAX_SAFE_INTEGER,firstNonEmptyLine=null,lastNonEmptyLine=-1;for(let i=0;i<lines.length;++i){var _firstNonEmptyLine;const line=lines[i],indent=leadingWhitespace(line);indent!==line.length&&(firstNonEmptyLine=null!==(_firstNonEmptyLine=firstNonEmptyLine)&&void 0!==_firstNonEmptyLine?_firstNonEmptyLine:i,lastNonEmptyLine=i,0!==i&&indent<commonIndent&&(commonIndent=indent))}return lines.map(((line,i)=>0===i?line:line.slice(commonIndent))).slice(null!==(_firstNonEmptyLine2=firstNonEmptyLine)&&void 0!==_firstNonEmptyLine2?_firstNonEmptyLine2:0,lastNonEmptyLine+1)}function leadingWhitespace(str){let i=0;for(;i<str.length&&(9===(code=str.charCodeAt(i))||32===code);)++i;var code;return i}!function(OperationTypeNode){OperationTypeNode.QUERY="query",OperationTypeNode.MUTATION="mutation",OperationTypeNode.SUBSCRIPTION="subscription"}(OperationTypeNode||(OperationTypeNode={})),function(DirectiveLocation){DirectiveLocation.QUERY="QUERY",DirectiveLocation.MUTATION="MUTATION",DirectiveLocation.SUBSCRIPTION="SUBSCRIPTION",DirectiveLocation.FIELD="FIELD",DirectiveLocation.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",DirectiveLocation.FRAGMENT_SPREAD="FRAGMENT_SPREAD",DirectiveLocation.INLINE_FRAGMENT="INLINE_FRAGMENT",DirectiveLocation.VARIABLE_DEFINITION="VARIABLE_DEFINITION",DirectiveLocation.SCHEMA="SCHEMA",DirectiveLocation.SCALAR="SCALAR",DirectiveLocation.OBJECT="OBJECT",DirectiveLocation.FIELD_DEFINITION="FIELD_DEFINITION",DirectiveLocation.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",DirectiveLocation.INTERFACE="INTERFACE",DirectiveLocation.UNION="UNION",DirectiveLocation.ENUM="ENUM",DirectiveLocation.ENUM_VALUE="ENUM_VALUE",DirectiveLocation.INPUT_OBJECT="INPUT_OBJECT",DirectiveLocation.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(DirectiveLocation||(DirectiveLocation={})),function(Kind){Kind.NAME="Name",Kind.DOCUMENT="Document",Kind.OPERATION_DEFINITION="OperationDefinition",Kind.VARIABLE_DEFINITION="VariableDefinition",Kind.SELECTION_SET="SelectionSet",Kind.FIELD="Field",Kind.ARGUMENT="Argument",Kind.FRAGMENT_SPREAD="FragmentSpread",Kind.INLINE_FRAGMENT="InlineFragment",Kind.FRAGMENT_DEFINITION="FragmentDefinition",Kind.VARIABLE="Variable",Kind.INT="IntValue",Kind.FLOAT="FloatValue",Kind.STRING="StringValue",Kind.BOOLEAN="BooleanValue",Kind.NULL="NullValue",Kind.ENUM="EnumValue",Kind.LIST="ListValue",Kind.OBJECT="ObjectValue",Kind.OBJECT_FIELD="ObjectField",Kind.DIRECTIVE="Directive",Kind.NAMED_TYPE="NamedType",Kind.LIST_TYPE="ListType",Kind.NON_NULL_TYPE="NonNullType",Kind.SCHEMA_DEFINITION="SchemaDefinition",Kind.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",Kind.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",Kind.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",Kind.FIELD_DEFINITION="FieldDefinition",Kind.INPUT_VALUE_DEFINITION="InputValueDefinition",Kind.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",Kind.UNION_TYPE_DEFINITION="UnionTypeDefinition",Kind.ENUM_TYPE_DEFINITION="EnumTypeDefinition",Kind.ENUM_VALUE_DEFINITION="EnumValueDefinition",Kind.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",Kind.DIRECTIVE_DEFINITION="DirectiveDefinition",Kind.SCHEMA_EXTENSION="SchemaExtension",Kind.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",Kind.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",Kind.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",Kind.UNION_TYPE_EXTENSION="UnionTypeExtension",Kind.ENUM_TYPE_EXTENSION="EnumTypeExtension",Kind.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Kind||(Kind={})),function(TokenKind){TokenKind.SOF="<SOF>",TokenKind.EOF="<EOF>",TokenKind.BANG="!",TokenKind.DOLLAR="$",TokenKind.AMP="&",TokenKind.PAREN_L="(",TokenKind.PAREN_R=")",TokenKind.SPREAD="...",TokenKind.COLON=":",TokenKind.EQUALS="=",TokenKind.AT="@",TokenKind.BRACKET_L="[",TokenKind.BRACKET_R="]",TokenKind.BRACE_L="{",TokenKind.PIPE="|",TokenKind.BRACE_R="}",TokenKind.NAME="Name",TokenKind.INT="Int",TokenKind.FLOAT="Float",TokenKind.STRING="String",TokenKind.BLOCK_STRING="BlockString",TokenKind.COMMENT="Comment"}(tokenKind_TokenKind||(tokenKind_TokenKind={}));class Lexer{constructor(source){const startOfFileToken=new Token(tokenKind_TokenKind.SOF,0,0,0,0);this.source=source,this.lastToken=startOfFileToken,this.token=startOfFileToken,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let token=this.token;if(token.kind!==tokenKind_TokenKind.EOF)do{if(token.next)token=token.next;else{const nextToken=readNextToken(this,token.end);token.next=nextToken,nextToken.prev=token,token=nextToken}}while(token.kind===tokenKind_TokenKind.COMMENT);return token}}function isUnicodeScalarValue(code){return code>=0&&code<=55295||code>=57344&&code<=1114111}function isSupplementaryCodePoint(body,location){return isLeadingSurrogate(body.charCodeAt(location))&&isTrailingSurrogate(body.charCodeAt(location+1))}function isLeadingSurrogate(code){return code>=55296&&code<=56319}function isTrailingSurrogate(code){return code>=56320&&code<=57343}function printCodePointAt(lexer,location){const code=lexer.source.body.codePointAt(location);if(void 0===code)return tokenKind_TokenKind.EOF;if(code>=32&&code<=126){const char=String.fromCodePoint(code);return'"'===char?"'\"'":`"${char}"`}return"U+"+code.toString(16).toUpperCase().padStart(4,"0")}function createToken(lexer,kind,start,end,value){const line=lexer.line,col=1+start-lexer.lineStart;return new Token(kind,start,end,line,col,value)}function readNextToken(lexer,start){const body=lexer.source.body,bodyLength=body.length;let position=start;for(;position<bodyLength;){const code=body.charCodeAt(position);switch(code){case 65279:case 9:case 32:case 44:++position;continue;case 10:++position,++lexer.line,lexer.lineStart=position;continue;case 13:10===body.charCodeAt(position+1)?position+=2:++position,++lexer.line,lexer.lineStart=position;continue;case 35:return readComment(lexer,position);case 33:return createToken(lexer,tokenKind_TokenKind.BANG,position,position+1);case 36:return createToken(lexer,tokenKind_TokenKind.DOLLAR,position,position+1);case 38:return createToken(lexer,tokenKind_TokenKind.AMP,position,position+1);case 40:return createToken(lexer,tokenKind_TokenKind.PAREN_L,position,position+1);case 41:return createToken(lexer,tokenKind_TokenKind.PAREN_R,position,position+1);case 46:if(46===body.charCodeAt(position+1)&&46===body.charCodeAt(position+2))return createToken(lexer,tokenKind_TokenKind.SPREAD,position,position+3);break;case 58:return createToken(lexer,tokenKind_TokenKind.COLON,position,position+1);case 61:return createToken(lexer,tokenKind_TokenKind.EQUALS,position,position+1);case 64:return createToken(lexer,tokenKind_TokenKind.AT,position,position+1);case 91:return createToken(lexer,tokenKind_TokenKind.BRACKET_L,position,position+1);case 93:return createToken(lexer,tokenKind_TokenKind.BRACKET_R,position,position+1);case 123:return createToken(lexer,tokenKind_TokenKind.BRACE_L,position,position+1);case 124:return createToken(lexer,tokenKind_TokenKind.PIPE,position,position+1);case 125:return createToken(lexer,tokenKind_TokenKind.BRACE_R,position,position+1);case 34:return 34===body.charCodeAt(position+1)&&34===body.charCodeAt(position+2)?readBlockString(lexer,position):readString(lexer,position)}if(isDigit(code)||45===code)return readNumber(lexer,position,code);if(isNameStart(code))return readName(lexer,position);throw syntaxError(lexer.source,position,39===code?"Unexpected single quote character ('), did you mean to use a double quote (\")?":isUnicodeScalarValue(code)||isSupplementaryCodePoint(body,position)?`Unexpected character: ${printCodePointAt(lexer,position)}.`:`Invalid character: ${printCodePointAt(lexer,position)}.`)}return createToken(lexer,tokenKind_TokenKind.EOF,bodyLength,bodyLength)}function readComment(lexer,start){const body=lexer.source.body,bodyLength=body.length;let position=start+1;for(;position<bodyLength;){const code=body.charCodeAt(position);if(10===code||13===code)break;if(isUnicodeScalarValue(code))++position;else{if(!isSupplementaryCodePoint(body,position))break;position+=2}}return createToken(lexer,tokenKind_TokenKind.COMMENT,start,position,body.slice(start+1,position))}function readNumber(lexer,start,firstCode){const body=lexer.source.body;let position=start,code=firstCode,isFloat=!1;if(45===code&&(code=body.charCodeAt(++position)),48===code){if(code=body.charCodeAt(++position),isDigit(code))throw syntaxError(lexer.source,position,`Invalid number, unexpected digit after 0: ${printCodePointAt(lexer,position)}.`)}else position=readDigits(lexer,position,code),code=body.charCodeAt(position);if(46===code&&(isFloat=!0,code=body.charCodeAt(++position),position=readDigits(lexer,position,code),code=body.charCodeAt(position)),69!==code&&101!==code||(isFloat=!0,code=body.charCodeAt(++position),43!==code&&45!==code||(code=body.charCodeAt(++position)),position=readDigits(lexer,position,code),code=body.charCodeAt(position)),46===code||isNameStart(code))throw syntaxError(lexer.source,position,`Invalid number, expected digit but got: ${printCodePointAt(lexer,position)}.`);return createToken(lexer,isFloat?tokenKind_TokenKind.FLOAT:tokenKind_TokenKind.INT,start,position,body.slice(start,position))}function readDigits(lexer,start,firstCode){if(!isDigit(firstCode))throw syntaxError(lexer.source,start,`Invalid number, expected digit but got: ${printCodePointAt(lexer,start)}.`);const body=lexer.source.body;let position=start+1;for(;isDigit(body.charCodeAt(position));)++position;return position}function readString(lexer,start){const body=lexer.source.body,bodyLength=body.length;let position=start+1,chunkStart=position,value="";for(;position<bodyLength;){const code=body.charCodeAt(position);if(34===code)return value+=body.slice(chunkStart,position),createToken(lexer,tokenKind_TokenKind.STRING,start,position+1,value);if(92!==code){if(10===code||13===code)break;if(isUnicodeScalarValue(code))++position;else{if(!isSupplementaryCodePoint(body,position))throw syntaxError(lexer.source,position,`Invalid character within String: ${printCodePointAt(lexer,position)}.`);position+=2}}else{value+=body.slice(chunkStart,position);const escape=117===body.charCodeAt(position+1)?123===body.charCodeAt(position+2)?readEscapedUnicodeVariableWidth(lexer,position):readEscapedUnicodeFixedWidth(lexer,position):readEscapedCharacter(lexer,position);value+=escape.value,position+=escape.size,chunkStart=position}}throw syntaxError(lexer.source,position,"Unterminated string.")}function readEscapedUnicodeVariableWidth(lexer,position){const body=lexer.source.body;let point=0,size=3;for(;size<12;){const code=body.charCodeAt(position+size++);if(125===code){if(size<5||!isUnicodeScalarValue(point))break;return{value:String.fromCodePoint(point),size}}if(point=point<<4|readHexDigit(code),point<0)break}throw syntaxError(lexer.source,position,`Invalid Unicode escape sequence: "${body.slice(position,position+size)}".`)}function readEscapedUnicodeFixedWidth(lexer,position){const body=lexer.source.body,code=read16BitHexCode(body,position+2);if(isUnicodeScalarValue(code))return{value:String.fromCodePoint(code),size:6};if(isLeadingSurrogate(code)&&92===body.charCodeAt(position+6)&&117===body.charCodeAt(position+7)){const trailingCode=read16BitHexCode(body,position+8);if(isTrailingSurrogate(trailingCode))return{value:String.fromCodePoint(code,trailingCode),size:12}}throw syntaxError(lexer.source,position,`Invalid Unicode escape sequence: "${body.slice(position,position+6)}".`)}function read16BitHexCode(body,position){return readHexDigit(body.charCodeAt(position))<<12|readHexDigit(body.charCodeAt(position+1))<<8|readHexDigit(body.charCodeAt(position+2))<<4|readHexDigit(body.charCodeAt(position+3))}function readHexDigit(code){return code>=48&&code<=57?code-48:code>=65&&code<=70?code-55:code>=97&&code<=102?code-87:-1}function readEscapedCharacter(lexer,position){const body=lexer.source.body;switch(body.charCodeAt(position+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw syntaxError(lexer.source,position,`Invalid character escape sequence: "${body.slice(position,position+2)}".`)}function readBlockString(lexer,start){const body=lexer.source.body,bodyLength=body.length;let lineStart=lexer.lineStart,position=start+3,chunkStart=position,currentLine="";const blockLines=[];for(;position<bodyLength;){const code=body.charCodeAt(position);if(34===code&&34===body.charCodeAt(position+1)&&34===body.charCodeAt(position+2)){currentLine+=body.slice(chunkStart,position),blockLines.push(currentLine);const token=createToken(lexer,tokenKind_TokenKind.BLOCK_STRING,start,position+3,dedentBlockStringLines(blockLines).join("\n"));return lexer.line+=blockLines.length-1,lexer.lineStart=lineStart,token}if(92!==code||34!==body.charCodeAt(position+1)||34!==body.charCodeAt(position+2)||34!==body.charCodeAt(position+3))if(10!==code&&13!==code)if(isUnicodeScalarValue(code))++position;else{if(!isSupplementaryCodePoint(body,position))throw syntaxError(lexer.source,position,`Invalid character within String: ${printCodePointAt(lexer,position)}.`);position+=2}else currentLine+=body.slice(chunkStart,position),blockLines.push(currentLine),13===code&&10===body.charCodeAt(position+1)?position+=2:++position,currentLine="",chunkStart=position,lineStart=position;else currentLine+=body.slice(chunkStart,position),chunkStart=position+1,position+=4}throw syntaxError(lexer.source,position,"Unterminated string.")}function readName(lexer,start){const body=lexer.source.body,bodyLength=body.length;let position=start+1;for(;position<bodyLength;){if(!isNameContinue(body.charCodeAt(position)))break;++position}return createToken(lexer,tokenKind_TokenKind.NAME,start,position,body.slice(start,position))}function devAssert(condition,message){if(!Boolean(condition))throw new Error(message)}const MAX_ARRAY_LENGTH=10,MAX_RECURSIVE_DEPTH=2;function inspect(value){return formatValue(value,[])}function formatValue(value,seenValues){switch(typeof value){case"string":return JSON.stringify(value);case"function":return value.name?`[function ${value.name}]`:"[function]";case"object":return function formatObjectValue(value,previouslySeenValues){if(null===value)return"null";if(previouslySeenValues.includes(value))return"[Circular]";const seenValues=[...previouslySeenValues,value];if(function isJSONable(value){return"function"==typeof value.toJSON}(value)){const jsonValue=value.toJSON();if(jsonValue!==value)return"string"==typeof jsonValue?jsonValue:formatValue(jsonValue,seenValues)}else if(Array.isArray(value))return function formatArray(array,seenValues){if(0===array.length)return"[]";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"[Array]";const len=Math.min(MAX_ARRAY_LENGTH,array.length),remaining=array.length-len,items=[];for(let i=0;i<len;++i)items.push(formatValue(array[i],seenValues));1===remaining?items.push("... 1 more item"):remaining>1&&items.push(`... ${remaining} more items`);return"["+items.join(", ")+"]"}(value,seenValues);return function formatObject(object,seenValues){const entries=Object.entries(object);if(0===entries.length)return"{}";if(seenValues.length>MAX_RECURSIVE_DEPTH)return"["+function getObjectTag(object){const tag=Object.prototype.toString.call(object).replace(/^\[object /,"").replace(/]$/,"");if("Object"===tag&&"function"==typeof object.constructor){const name=object.constructor.name;if("string"==typeof name&&""!==name)return name}return tag}(object)+"]";const properties=entries.map((([key,value])=>key+": "+formatValue(value,seenValues)));return"{ "+properties.join(", ")+" }"}(value,seenValues)}(value,seenValues);default:return String(value)}}const instanceOf=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function instanceOf(value,constructor){return value instanceof constructor}:function instanceOf(value,constructor){if(value instanceof constructor)return!0;if("object"==typeof value&&null!==value){var _value$constructor;const className=constructor.prototype[Symbol.toStringTag];if(className===(Symbol.toStringTag in value?value[Symbol.toStringTag]:null===(_value$constructor=value.constructor)||void 0===_value$constructor?void 0:_value$constructor.name)){const stringifiedValue=inspect(value);throw new Error(`Cannot use ${className} "${stringifiedValue}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Source{constructor(body,name="GraphQL request",locationOffset={line:1,column:1}){"string"==typeof body||devAssert(!1,`Body must be a string. Received: ${inspect(body)}.`),this.body=body,this.name=name,this.locationOffset=locationOffset,this.locationOffset.line>0||devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function parse(source,options){return new Parser(source,options).parseDocument()}class Parser{constructor(source,options={}){const sourceObj=function isSource(source){return instanceOf(source,Source)}(source)?source:new Source(source);this._lexer=new Lexer(sourceObj),this._options=options,this._tokenCounter=0}parseName(){const token=this.expectToken(tokenKind_TokenKind.NAME);return this.node(token,{kind:Kind.NAME,value:token.value})}parseDocument(){return this.node(this._lexer.token,{kind:Kind.DOCUMENT,definitions:this.many(tokenKind_TokenKind.SOF,this.parseDefinition,tokenKind_TokenKind.EOF)})}parseDefinition(){if(this.peek(tokenKind_TokenKind.BRACE_L))return this.parseOperationDefinition();const hasDescription=this.peekDescription(),keywordToken=hasDescription?this._lexer.lookahead():this._lexer.token;if(keywordToken.kind===tokenKind_TokenKind.NAME){switch(keywordToken.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(hasDescription)throw syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(keywordToken.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(keywordToken)}parseOperationDefinition(){const start=this._lexer.token;if(this.peek(tokenKind_TokenKind.BRACE_L))return this.node(start,{kind:Kind.OPERATION_DEFINITION,operation:OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const operation=this.parseOperationType();let name;return this.peek(tokenKind_TokenKind.NAME)&&(name=this.parseName()),this.node(start,{kind:Kind.OPERATION_DEFINITION,operation,name,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const operationToken=this.expectToken(tokenKind_TokenKind.NAME);switch(operationToken.value){case"query":return OperationTypeNode.QUERY;case"mutation":return OperationTypeNode.MUTATION;case"subscription":return OperationTypeNode.SUBSCRIPTION}throw this.unexpected(operationToken)}parseVariableDefinitions(){return this.optionalMany(tokenKind_TokenKind.PAREN_L,this.parseVariableDefinition,tokenKind_TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(tokenKind_TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(tokenKind_TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const start=this._lexer.token;return this.expectToken(tokenKind_TokenKind.DOLLAR),this.node(start,{kind:Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Kind.SELECTION_SET,selections:this.many(tokenKind_TokenKind.BRACE_L,this.parseSelection,tokenKind_TokenKind.BRACE_R)})}parseSelection(){return this.peek(tokenKind_TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const start=this._lexer.token,nameOrAlias=this.parseName();let alias,name;return this.expectOptionalToken(tokenKind_TokenKind.COLON)?(alias=nameOrAlias,name=this.parseName()):name=nameOrAlias,this.node(start,{kind:Kind.FIELD,alias,name,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(tokenKind_TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(isConst){const item=isConst?this.parseConstArgument:this.parseArgument;return this.optionalMany(tokenKind_TokenKind.PAREN_L,item,tokenKind_TokenKind.PAREN_R)}parseArgument(isConst=!1){const start=this._lexer.token,name=this.parseName();return this.expectToken(tokenKind_TokenKind.COLON),this.node(start,{kind:Kind.ARGUMENT,name,value:this.parseValueLiteral(isConst)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const start=this._lexer.token;this.expectToken(tokenKind_TokenKind.SPREAD);const hasTypeCondition=this.expectOptionalKeyword("on");return!hasTypeCondition&&this.peek(tokenKind_TokenKind.NAME)?this.node(start,{kind:Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(start,{kind:Kind.INLINE_FRAGMENT,typeCondition:hasTypeCondition?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const start=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(start,{kind:Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(start,{kind:Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(isConst){const token=this._lexer.token;switch(token.kind){case tokenKind_TokenKind.BRACKET_L:return this.parseList(isConst);case tokenKind_TokenKind.BRACE_L:return this.parseObject(isConst);case tokenKind_TokenKind.INT:return this.advanceLexer(),this.node(token,{kind:Kind.INT,value:token.value});case tokenKind_TokenKind.FLOAT:return this.advanceLexer(),this.node(token,{kind:Kind.FLOAT,value:token.value});case tokenKind_TokenKind.STRING:case tokenKind_TokenKind.BLOCK_STRING:return this.parseStringLiteral();case tokenKind_TokenKind.NAME:switch(this.advanceLexer(),token.value){case"true":return this.node(token,{kind:Kind.BOOLEAN,value:!0});case"false":return this.node(token,{kind:Kind.BOOLEAN,value:!1});case"null":return this.node(token,{kind:Kind.NULL});default:return this.node(token,{kind:Kind.ENUM,value:token.value})}case tokenKind_TokenKind.DOLLAR:if(isConst){if(this.expectToken(tokenKind_TokenKind.DOLLAR),this._lexer.token.kind===tokenKind_TokenKind.NAME){const varName=this._lexer.token.value;throw syntaxError(this._lexer.source,token.start,`Unexpected variable "$${varName}" in constant value.`)}throw this.unexpected(token)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const token=this._lexer.token;return this.advanceLexer(),this.node(token,{kind:Kind.STRING,value:token.value,block:token.kind===tokenKind_TokenKind.BLOCK_STRING})}parseList(isConst){return this.node(this._lexer.token,{kind:Kind.LIST,values:this.any(tokenKind_TokenKind.BRACKET_L,(()=>this.parseValueLiteral(isConst)),tokenKind_TokenKind.BRACKET_R)})}parseObject(isConst){return this.node(this._lexer.token,{kind:Kind.OBJECT,fields:this.any(tokenKind_TokenKind.BRACE_L,(()=>this.parseObjectField(isConst)),tokenKind_TokenKind.BRACE_R)})}parseObjectField(isConst){const start=this._lexer.token,name=this.parseName();return this.expectToken(tokenKind_TokenKind.COLON),this.node(start,{kind:Kind.OBJECT_FIELD,name,value:this.parseValueLiteral(isConst)})}parseDirectives(isConst){const directives=[];for(;this.peek(tokenKind_TokenKind.AT);)directives.push(this.parseDirective(isConst));return directives}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(isConst){const start=this._lexer.token;return this.expectToken(tokenKind_TokenKind.AT),this.node(start,{kind:Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(isConst)})}parseTypeReference(){const start=this._lexer.token;let type;if(this.expectOptionalToken(tokenKind_TokenKind.BRACKET_L)){const innerType=this.parseTypeReference();this.expectToken(tokenKind_TokenKind.BRACKET_R),type=this.node(start,{kind:Kind.LIST_TYPE,type:innerType})}else type=this.parseNamedType();return this.expectOptionalToken(tokenKind_TokenKind.BANG)?this.node(start,{kind:Kind.NON_NULL_TYPE,type}):type}parseNamedType(){return this.node(this._lexer.token,{kind:Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(tokenKind_TokenKind.STRING)||this.peek(tokenKind_TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("schema");const directives=this.parseConstDirectives(),operationTypes=this.many(tokenKind_TokenKind.BRACE_L,this.parseOperationTypeDefinition,tokenKind_TokenKind.BRACE_R);return this.node(start,{kind:Kind.SCHEMA_DEFINITION,description,directives,operationTypes})}parseOperationTypeDefinition(){const start=this._lexer.token,operation=this.parseOperationType();this.expectToken(tokenKind_TokenKind.COLON);const type=this.parseNamedType();return this.node(start,{kind:Kind.OPERATION_TYPE_DEFINITION,operation,type})}parseScalarTypeDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("scalar");const name=this.parseName(),directives=this.parseConstDirectives();return this.node(start,{kind:Kind.SCALAR_TYPE_DEFINITION,description,name,directives})}parseObjectTypeDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("type");const name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseConstDirectives(),fields=this.parseFieldsDefinition();return this.node(start,{kind:Kind.OBJECT_TYPE_DEFINITION,description,name,interfaces,directives,fields})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(tokenKind_TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(tokenKind_TokenKind.BRACE_L,this.parseFieldDefinition,tokenKind_TokenKind.BRACE_R)}parseFieldDefinition(){const start=this._lexer.token,description=this.parseDescription(),name=this.parseName(),args=this.parseArgumentDefs();this.expectToken(tokenKind_TokenKind.COLON);const type=this.parseTypeReference(),directives=this.parseConstDirectives();return this.node(start,{kind:Kind.FIELD_DEFINITION,description,name,arguments:args,type,directives})}parseArgumentDefs(){return this.optionalMany(tokenKind_TokenKind.PAREN_L,this.parseInputValueDef,tokenKind_TokenKind.PAREN_R)}parseInputValueDef(){const start=this._lexer.token,description=this.parseDescription(),name=this.parseName();this.expectToken(tokenKind_TokenKind.COLON);const type=this.parseTypeReference();let defaultValue;this.expectOptionalToken(tokenKind_TokenKind.EQUALS)&&(defaultValue=this.parseConstValueLiteral());const directives=this.parseConstDirectives();return this.node(start,{kind:Kind.INPUT_VALUE_DEFINITION,description,name,type,defaultValue,directives})}parseInterfaceTypeDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("interface");const name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseConstDirectives(),fields=this.parseFieldsDefinition();return this.node(start,{kind:Kind.INTERFACE_TYPE_DEFINITION,description,name,interfaces,directives,fields})}parseUnionTypeDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("union");const name=this.parseName(),directives=this.parseConstDirectives(),types=this.parseUnionMemberTypes();return this.node(start,{kind:Kind.UNION_TYPE_DEFINITION,description,name,directives,types})}parseUnionMemberTypes(){return this.expectOptionalToken(tokenKind_TokenKind.EQUALS)?this.delimitedMany(tokenKind_TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("enum");const name=this.parseName(),directives=this.parseConstDirectives(),values=this.parseEnumValuesDefinition();return this.node(start,{kind:Kind.ENUM_TYPE_DEFINITION,description,name,directives,values})}parseEnumValuesDefinition(){return this.optionalMany(tokenKind_TokenKind.BRACE_L,this.parseEnumValueDefinition,tokenKind_TokenKind.BRACE_R)}parseEnumValueDefinition(){const start=this._lexer.token,description=this.parseDescription(),name=this.parseEnumValueName(),directives=this.parseConstDirectives();return this.node(start,{kind:Kind.ENUM_VALUE_DEFINITION,description,name,directives})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw syntaxError(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("input");const name=this.parseName(),directives=this.parseConstDirectives(),fields=this.parseInputFieldsDefinition();return this.node(start,{kind:Kind.INPUT_OBJECT_TYPE_DEFINITION,description,name,directives,fields})}parseInputFieldsDefinition(){return this.optionalMany(tokenKind_TokenKind.BRACE_L,this.parseInputValueDef,tokenKind_TokenKind.BRACE_R)}parseTypeSystemExtension(){const keywordToken=this._lexer.lookahead();if(keywordToken.kind===tokenKind_TokenKind.NAME)switch(keywordToken.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(keywordToken)}parseSchemaExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const directives=this.parseConstDirectives(),operationTypes=this.optionalMany(tokenKind_TokenKind.BRACE_L,this.parseOperationTypeDefinition,tokenKind_TokenKind.BRACE_R);if(0===directives.length&&0===operationTypes.length)throw this.unexpected();return this.node(start,{kind:Kind.SCHEMA_EXTENSION,directives,operationTypes})}parseScalarTypeExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const name=this.parseName(),directives=this.parseConstDirectives();if(0===directives.length)throw this.unexpected();return this.node(start,{kind:Kind.SCALAR_TYPE_EXTENSION,name,directives})}parseObjectTypeExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseConstDirectives(),fields=this.parseFieldsDefinition();if(0===interfaces.length&&0===directives.length&&0===fields.length)throw this.unexpected();return this.node(start,{kind:Kind.OBJECT_TYPE_EXTENSION,name,interfaces,directives,fields})}parseInterfaceTypeExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const name=this.parseName(),interfaces=this.parseImplementsInterfaces(),directives=this.parseConstDirectives(),fields=this.parseFieldsDefinition();if(0===interfaces.length&&0===directives.length&&0===fields.length)throw this.unexpected();return this.node(start,{kind:Kind.INTERFACE_TYPE_EXTENSION,name,interfaces,directives,fields})}parseUnionTypeExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const name=this.parseName(),directives=this.parseConstDirectives(),types=this.parseUnionMemberTypes();if(0===directives.length&&0===types.length)throw this.unexpected();return this.node(start,{kind:Kind.UNION_TYPE_EXTENSION,name,directives,types})}parseEnumTypeExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const name=this.parseName(),directives=this.parseConstDirectives(),values=this.parseEnumValuesDefinition();if(0===directives.length&&0===values.length)throw this.unexpected();return this.node(start,{kind:Kind.ENUM_TYPE_EXTENSION,name,directives,values})}parseInputObjectTypeExtension(){const start=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const name=this.parseName(),directives=this.parseConstDirectives(),fields=this.parseInputFieldsDefinition();if(0===directives.length&&0===fields.length)throw this.unexpected();return this.node(start,{kind:Kind.INPUT_OBJECT_TYPE_EXTENSION,name,directives,fields})}parseDirectiveDefinition(){const start=this._lexer.token,description=this.parseDescription();this.expectKeyword("directive"),this.expectToken(tokenKind_TokenKind.AT);const name=this.parseName(),args=this.parseArgumentDefs(),repeatable=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const locations=this.parseDirectiveLocations();return this.node(start,{kind:Kind.DIRECTIVE_DEFINITION,description,name,arguments:args,repeatable,locations})}parseDirectiveLocations(){return this.delimitedMany(tokenKind_TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const start=this._lexer.token,name=this.parseName();if(Object.prototype.hasOwnProperty.call(DirectiveLocation,name.value))return name;throw this.unexpected(start)}node(startToken,node){return!0!==this._options.noLocation&&(node.loc=new Location(startToken,this._lexer.lastToken,this._lexer.source)),node}peek(kind){return this._lexer.token.kind===kind}expectToken(kind){const token=this._lexer.token;if(token.kind===kind)return this.advanceLexer(),token;throw syntaxError(this._lexer.source,token.start,`Expected ${getTokenKindDesc(kind)}, found ${getTokenDesc(token)}.`)}expectOptionalToken(kind){return this._lexer.token.kind===kind&&(this.advanceLexer(),!0)}expectKeyword(value){const token=this._lexer.token;if(token.kind!==tokenKind_TokenKind.NAME||token.value!==value)throw syntaxError(this._lexer.source,token.start,`Expected "${value}", found ${getTokenDesc(token)}.`);this.advanceLexer()}expectOptionalKeyword(value){const token=this._lexer.token;return token.kind===tokenKind_TokenKind.NAME&&token.value===value&&(this.advanceLexer(),!0)}unexpected(atToken){const token=null!=atToken?atToken:this._lexer.token;return syntaxError(this._lexer.source,token.start,`Unexpected ${getTokenDesc(token)}.`)}any(openKind,parseFn,closeKind){this.expectToken(openKind);const nodes=[];for(;!this.expectOptionalToken(closeKind);)nodes.push(parseFn.call(this));return nodes}optionalMany(openKind,parseFn,closeKind){if(this.expectOptionalToken(openKind)){const nodes=[];do{nodes.push(parseFn.call(this))}while(!this.expectOptionalToken(closeKind));return nodes}return[]}many(openKind,parseFn,closeKind){this.expectToken(openKind);const nodes=[];do{nodes.push(parseFn.call(this))}while(!this.expectOptionalToken(closeKind));return nodes}delimitedMany(delimiterKind,parseFn){this.expectOptionalToken(delimiterKind);const nodes=[];do{nodes.push(parseFn.call(this))}while(this.expectOptionalToken(delimiterKind));return nodes}advanceLexer(){const{maxTokens}=this._options,token=this._lexer.advance();if(void 0!==maxTokens&&token.kind!==tokenKind_TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>maxTokens))throw syntaxError(this._lexer.source,token.start,`Document contains more that ${maxTokens} tokens. Parsing aborted.`)}}function getTokenDesc(token){const value=token.value;return getTokenKindDesc(token.kind)+(null!=value?` "${value}"`:"")}function getTokenKindDesc(kind){return function isPunctuatorTokenKind(kind){return kind===tokenKind_TokenKind.BANG||kind===tokenKind_TokenKind.DOLLAR||kind===tokenKind_TokenKind.AMP||kind===tokenKind_TokenKind.PAREN_L||kind===tokenKind_TokenKind.PAREN_R||kind===tokenKind_TokenKind.SPREAD||kind===tokenKind_TokenKind.COLON||kind===tokenKind_TokenKind.EQUALS||kind===tokenKind_TokenKind.AT||kind===tokenKind_TokenKind.BRACKET_L||kind===tokenKind_TokenKind.BRACKET_R||kind===tokenKind_TokenKind.BRACE_L||kind===tokenKind_TokenKind.PIPE||kind===tokenKind_TokenKind.BRACE_R}(kind)?`"${kind}"`:kind}},"../../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/style9/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function merge(target,source){for(const key in source)"object"==typeof source[key]?target[key]=merge({...target[key]},source[key]):target[key]=source[key];return target}function getValues(obj){const values=[];for(const key in obj){const val=obj[key];"object"==typeof val?values.push(...getValues(val)):values.push(val)}return values}function style9(...styles){return getValues(styles.reduce(merge,{})).join(" ")}__webpack_require__.d(__webpack_exports__,{Z:()=>style9}),style9.create=()=>{throw new Error("style9.create calls should be compiled away")},style9.keyframes=()=>{throw new Error("style9.keyframes calls should be compiled away")}},"../../../node_modules/.pnpm/[email protected][email protected]/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var e=__webpack_require__("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/compiled/react/index.js");var k="function"==typeof Object.is?Object.is:function h(a,b){return a===b&&(0!==a||1/a==1/b)||a!=a&&b!=b},l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return!k(a,d)}catch(f){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function t(a,b){return b()}:function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];return n((function(){c.value=d,c.getSnapshot=b,r(c)&&g({inst:c})}),[a,d,b]),m((function(){return r(c)&&g({inst:c}),a((function(){r(c)&&g({inst:c})}))}),[a]),p(d),d};exports.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u},"../../../node_modules/.pnpm/[email protected][email protected]/node_modules/use-sync-external-store/shim/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js")}}]);