1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41931,e=>{"use strict";class t extends Error{status;body;constructor(e,t,s){super(s),this.name="ApiError",this.status=e,this.body=t}}let s=null;async function n(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{skipAuth:i,...r}=n,a=e.startsWith("http")?e:`https://api.wadoozie.com${e.startsWith("/")?"":"/"}${e}`,o=new Headers(r.headers);!o.has("Content-Type")&&r.body&&"string"==typeof r.body&&o.set("Content-Type","application/json");let u="wdz_f7422005bb1ce363f8d883ce6fbe957048e4e28dbe0e18ae".trim()??"";if(u&&o.set("X-API-Key",u),!i&&s)try{let e=await s();e&&o.set("Authorization",`Bearer ${e}`)}catch{}let l="next"in r&&null!=r.next,c=await fetch(a,{...r,headers:o,cache:r.cache??(i&&!l?"no-store":void 0)}),h=await c.text(),d=h?function(e){try{return JSON.parse(e)}catch{return e}}(h):null;if(!c.ok){let e=d&&"object"==typeof d&&"error"in d?String(d.error):`Request failed: ${c.status}`;throw new t(c.status,d,e)}return d}e.s(["ApiError",0,t,"api",0,n,"setTokenProvider",0,function(e){s=e}])},843614,674615,21042,e=>{"use strict";e.i(735910);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},s=new class{#e=t;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,s],674615);var n="u"<typeof window||"Deno"in globalThis;function i(){}function r(e,t){return(t?.queryKeyHashFn||a)(e)}function a(e){return JSON.stringify(e,(e,t)=>h(t)?Object.keys(t).sort().reduce((e,s)=>(e[s]=t[s],e),{}):t)}function o(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(s=>o(e[s],t[s]))}var u=Object.prototype.hasOwnProperty;function l(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e===t)return e;if(s>500)return t;let n=c(e)&&c(t);if(!n&&!(h(e)&&h(t)))return t;let i=(n?e:Object.keys(e)).length,r=n?t:Object.keys(t),a=r.length,o=n?Array(a):{},d=0;for(let c=0;c<a;c++){let a=n?c:r[c],h=e[a],f=t[a];if(h===f){o[a]=h,(n?c<i:u.call(e,a))&&d++;continue}if(null===h||null===f||"object"!=typeof h||"object"!=typeof f){o[a]=f;continue}let p=l(h,f,s+1);o[a]=p,p===h&&d++}return i===a&&d===i?e:o}function c(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function h(e){if(!d(e))return!1;let t=e.constructor;if(void 0===t)return!0;let s=t.prototype;return!!d(s)&&!!s.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}var f=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,s){let n,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),i||(i=!0,n.aborted?s():n.addEventListener("abort",s,{once:!0})),n)}),e},"addToEnd",0,function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[...e,t];return s&&n.length>s?n.slice(1):n},"addToStart",0,function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[t,...e];return s&&n.length>s?n.slice(0,-1):n},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==f?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,a,"hashQueryKeyByOptions",0,r,"isServer",0,n,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:s,status:n,predicate:i,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(s){if(a(t.options.mutationKey)!==a(r))return!1}else if(!o(t.options.mutationKey,r))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:s="all",exact:n,fetchStatus:i,predicate:a,queryKey:u,stale:l}=e;if(u){if(n){if(t.queryHash!==r(u,t.options))return!1}else if(!o(t.queryKey,u))return!1}if("all"!==s){let e=t.isActive();if("active"===s&&!e||"inactive"===s&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!i||i===t.state.fetchStatus)&&(!a||!!a(t))},"noop",0,i,"partialMatchKey",0,o,"replaceData",0,function(e,t,s){return"function"==typeof s.structuralSharing?s.structuralSharing(e,t):!1!==s.structuralSharing?l(e,t):t},"replaceEqualDeep",0,l,"resolveQueryBoolean",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let s in e)if(e[s]!==t[s])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,f,"sleep",0,function(e){return new Promise(t=>{s.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],21042),e.s(["pendingThenable",0,function(){let e,t,s=new Promise((s,n)=>{e=s,t=n});function n(e){Object.assign(s,e),delete s.resolve,delete s.reject}return s.status="pending",s.catch(()=>{}),s.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},s.reject=e=>{n({status:"rejected",reason:e}),t(e)},s},"tryResolveSync",0,function(e){let t;if(e.then(e=>(t=e,e),i)?.catch(i),void 0!==t)return{data:t}}],843614)},83574,e=>{"use strict";var t=e.i(807744),s=e.i(309735),n=t.createContext(void 0);e.s(["QueryClientProvider",0,e=>{let{client:i,children:r}=e;return t.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),(0,s.jsx)(n.Provider,{value:i,children:r})},"useQueryClient",0,e=>{let s=t.useContext(n);if(e)return e;if(!s)throw Error("No QueryClient set, use QueryClientProvider to set one");return s}])},930879,e=>{"use strict";let t,s,n,i,r,a;var o=e.i(674615).systemSetTimeoutZero,u=(t=[],s=0,n=e=>{e()},i=e=>{e()},r=o,{batch:e=>{let a;s++;try{a=e()}finally{let e;--s||(e=t,t=[],e.length&&r(()=>{i(()=>
1{e.forEach(e=>{n(e)})})}))}return a},batchCalls:e=>function(){for(var t=arguments.length,s=Array(t),n=0;n<t;n++)s[n]=arguments[n];a(()=>{e(...s)})},schedule:a=e=>{s?t.push(e):r(()=>{n(e)})},setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{r=e}});e.s(["notifyManager",0,u])},990113,371828,e=>{"use strict";var t=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(){}};e.s(["Subscribable",0,t],371828);var s=new class extends t{#s;#n;#i;constructor(){super(),this.#i=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#i=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#s!==e&&(this.#s=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#s?this.#s:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,s],990113)},832033,e=>{"use strict";var t=e.i(371828),s=new class extends t.Subscribable{#r=!0;#n;#i;constructor(){super(),this.#i=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#i)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#i=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}};e.s(["onlineManager",0,s])},950473,e=>{"use strict";let t;var s=e.i(21042),n=(t=()=>s.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,n])},595862,e=>{"use strict";var t=e.i(990113),s=e.i(832033),n=e.i(843614),i=e.i(950473),r=e.i(21042);function a(e){return Math.min(1e3*2**e,3e4)}function o(e){return(e??"online")!=="online"||s.onlineManager.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};e.s(["CancelledError",0,u,"canFetch",0,o,"createRetryer",0,function(e){let l,c=!1,h=0,d=(0,n.pendingThenable)(),f=()=>t.focusManager.isFocused()&&("always"===e.networkMode||s.onlineManager.isOnline())&&e.canRun(),p=()=>o(e.networkMode)&&e.canRun(),y=e=>{"pending"===d.status&&(l?.(),d.resolve(e))},v=e=>{"pending"===d.status&&(l?.(),d.reject(e))},g=()=>new Promise(t=>{l=e=>{("pending"!==d.status||f())&&t(e)},e.onPause?.()}).then(()=>{l=void 0,"pending"===d.status&&e.onContinue?.()}),m=()=>{let t;if("pending"!==d.status)return;let s=0===h?e.initialPromise:void 0;try{t=s??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(y).catch(t=>{if("pending"!==d.status)return;let s=e.retry??3*!i.environmentManager.isServer(),n=e.retryDelay??a,o="function"==typeof n?n(h,t):n,u=!0===s||"number"==typeof s&&h<s||"function"==typeof s&&s(h,t);c||!u?v(t):(h++,e.onFail?.(h,t),(0,r.sleep)(o).then(()=>f()?void 0:g()).then(()=>{c?v(t):m()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let s=new u(t);v(s),e.onCancel?.(s)}},continue:()=>(l?.(),d),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:p,start:()=>(p()?m():g().then(m),d)}}])},887911,e=>{"use strict";var t=e.i(674615),s=e.i(950473),n=e.i(21042),i=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.isValidTimeout)(this.gcTime)&&(this.#a=t.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(s.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(t.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",0,i])},742210,2169,e=>{"use strict";e.i(735910);var t=e.i(21042),s=e.i(930879),n=e.i(595862),i=e.i(887911);function r(e){return{onFetch:(s,n)=>
1{let i=s.options,r=s.fetchOptions?.meta?.fetchMore?.direction,u=s.state.data?.pages||[],l=s.state.data?.pageParams||[],c={pages:[],pageParams:[]},h=0,d=async()=>{let n=!1,d=(0,t.ensureQueryFn)(s.options,s.fetchOptions),f=async(e,i,r)=>{let a;if(n)return Promise.reject(s.signal.reason);if(null==i&&e.pages.length)return Promise.resolve(e);let o=(a={client:s.client,queryKey:s.queryKey,pageParam:i,direction:r?"backward":"forward",meta:s.options.meta},(0,t.addConsumeAwareSignal)(a,()=>s.signal,()=>n=!0),a),u=await d(o),{maxPages:l}=s.options,c=r?t.addToStart:t.addToEnd;return{pages:c(e.pages,u,l),pageParams:c(e.pageParams,i,l)}};if(r&&u.length){let e="backward"===r,t={pages:u,pageParams:l},s=(e?o:a)(i,t);c=await f(t,s,e)}else{let t=e??u.length;do{let e=0===h?l[0]??i.initialPageParam:a(i,c);if(h>0&&null==e)break;c=await f(c,e),h++}while(h<t)}return c};s.options.persister?s.fetchFn=()=>s.options.persister?.(d,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},n):s.fetchFn=d}}}function a(e,t){let{pages:s,pageParams:n}=t,i=s.length-1;return s.length>0?e.getNextPageParam(s[i],s,n[i],n):void 0}function o(e,t){let{pages:s,pageParams:n}=t;return s.length>0?e.getPreviousPageParam?.(s[0],s,n[0],n):void 0}e.s(["hasNextPage",0,function(e,t){return!!t&&null!=a(e,t)},"hasPreviousPage",0,function(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)},"infiniteQueryBehavior",0,r],2169);var u=class extends i.Removable{#o;#u;#l;#c;#h;#d;#f;#p;constructor(e){super(),this.#p=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#c=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=h(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.#f,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=h(this.options);void 0!==e.data&&(this.setState(c(e.data,e.dataUpdatedAt)),this.#u=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,s){let n=(0,t.replaceData)(this.state.data,e,this.options);return this.#y({data:n,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),n}setState(e){this.#y({type:"setState",state:e})}cancel(e){let s=this.#d?.promise;return this.#d?.cancel(e),s?s.then(t.noop).catch(t.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,t.resolveQueryBoolean)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#p||this.#v()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#v(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#y({type:"invalidate"})}async fetch(e,s){let i;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&s?.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 a=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,a.signal)}
1)},u=()=>{let e,n=(0,t.ensureQueryFn)(this.options,s),i=(o(e={client:this.#h,queryKey:this.queryKey,meta:this.meta}),e);return(this.#p=!1,this.options.persister)?this.options.persister(n,i,this):n(i)},l=(o(i={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:u}),i),c="infinite"===this.#o?r(this.options.pages):this.options.behavior;c?.onFetch(l,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#y({type:"fetch",meta:l.fetchOptions?.meta}),this.#d=(0,n.createRetryer)({initialPromise:s?.initialPromise,fn:l.fetchFn,onCancel:e=>{e instanceof n.CancelledError&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),a.abort()},onFail:(e,t)=>{this.#y({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#y({type:"pause"})},onContinue:()=>{this.#y({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{let e=await this.#d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof n.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.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{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,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":let s={...t,...c(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?s:void 0,s;case"error":let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),s.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,n.canFetch)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function h(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,s=void 0!==t,n=s?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,u,"fetchState",0,l],742210)},942831,e=>{"use strict";e.s(["queryKeys",0,{governor:{all:["governor"],config:()=>["governor","config"],treasury:()=>["governor","treasury"],stats:()=>["governor","stats"],proposals:{all:()=>["governor","proposals"],list:e=>["governor","proposals","list",e],detail:e=>["governor","proposals","detail",e],votes:e=>["governor","proposals",e,"votes"]},voter:e=>["governor","voter",e.toLowerCase()]},market:{all:["market"],snapshot:()=>["market","snapshot"],wallet:{all:e=>["market","wallet",e.toLowerCase()],stats:e=>["market","wallet",e.toLowerCase(),"stats"],transfers:(e,t)=>["market","wallet",e.toLowerCase(),"transfers",t]}},notifications:{all:["notifications"],public:()=>["notifications","public"]},users:{me:()=>["users","me"],activity:e=>["users","me","activity",e]},social:{tiktokPending:()=>["social","tiktok","pending"]},leaderboard:{all:["leaderboard"],list:e=>["leaderboard",e]},submissions:{all:["submissions"],me:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["submissions","me",e]},summary:()=>["submissions","me","summary"],stats:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["submissions","me","stats",e]}},rewards:{all:["rewards"],summary:()=>["rewards","summary"],monitoring:()=>["rewards","monitoring"]},creator:{all:["creator"],tiles:()=>["creator","tiles"],clips:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["creator","clips",e]},nodeProgress:()=>["creator","node-progress"],publisherStats:()=>["creator","publisher-stats"]},wadz:{all:["wadz"],page:()=>["wadz","page"]},dao:{all:["dao"],delegation:e=>["dao","delegation",e.toLowerCase()]},acts:{all:["acts"],detail:e=>["acts","detail",e]},reels:{all:["reels"],feed:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["reels","feed",e]}},liveStream:{all:["live-stream"],state:()=>["live-stream","state"]},fragments:{all:["fragments"],list:()=>["fragments","list"],stats:()=>["fragments","stats"],detail:e=>["fragments","detail",e]}}])},932623,e=>{"use strict";let t="wadoozie:rq:v1";e.s(["PERSISTENCE_STORAGE_KEY",0,t,"clearPersistedQueryCache",0,function(){try{window.localStorage.removeItem(t)}catch{}}])},559897,386908,e=>{"use strict";var t=e.i(309735),s=e.i(338966),n=e.i(831730);e.s(["useWallets",()=>n.u],386908);var n=n,i=e.i(83574),r=e.i(807744),a=e.i(360112),o=e.i(547413),u=e.i(685866),l=e.i(360684);async function c(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.connector)t=s.connector;else{let{connections:s,current:n}=e.state,i=s.get(n);t=i?.connector}let n=e.state.connections;t&&(await t.disconnect(),t.emitter.off("change",e._internal.events.change),t.emitter.off("disconnect",e._internal.events.disconnect),t.emitter.on("connect",e._internal.events.connect),n.delete(t.uid)),e.setState(e=>{if(0===n.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=n.values().next().value;return{...e,connections:new Map(n),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let s=e.state.connections.get(t)?.connector;if(!s)return;await e.storage?.setItem("recentConnectorId",s.id)}}var h=e.i(199039);let d=[];function f(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,h.deepEqual)(d,t)?d:(d=t,t)}var p=e.i(41931);async function y(e){return(0,p.api)("/v1/auth/privy/verify",{method:"POST",body:JSON.stringify(e??{})})}async function v(){return(0,p.api)("/v1/auth/privy/me")}async function g(){try{await (0,p.api)("/v1/auth/privy/sign-out",{method:"POST",body:JSON.stringify({})})}catch{}}var m=e.i(942831),b=e.i(932623);let w={status:"loading",user:null,session:null},S=(0,r.createContext)(null),C={state:w,isReady:!1,isAuthenticated:!1,isPrivyAuthenticated:!1,user:null,session:null,login:()=>{},logout:async()=>{},refresh:async()=>{},getAccessToken:async()=>null};e.s(["AuthProvider",0,function(e){let{children:d}=e,{ready:C,authenticated:T,login:P,logout:O,getAccessToken:F}=(0,s.usePrivy)(),{wallets:E}=(0,n.u)(),A=(0,i.useQueryClient)(),{disconnectAsync:k}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mutation:t}=e,s=(0,u.useConfig)(e),n={mutationFn:e=>c(s,e),mutationKey:["disconnect"]},{mutate:i,mutateAsync:a,...o}=(0,l.useMutation)({...t,...n});return{...o,connectors:(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,u.useConfig)(e);return(0,r.useSyncExternalStore)(e=>(function(e,t){let{onChange:s}=t;return e.subscribe(()=>f(e),s,{equalityFn:h.deepEqual})})(t,{onChange:e}),()=>f(t),()=>f(t))})({config:s}).map(e=>e.connector),disconnect:i,disconnectAsync:a}}(),[q,R]=(0,r.useState)(w),j=(0,r.useRef)(null),M=(0,r.useRef)(null),U=(0,r.useRef)(!1),K=(0,r.useRef)(q.status);K.current=q.status,(0,r.useEffect)(()=>
1{if(C)return(0,p.setTokenProvider)(async()=>{try{if(!T)return null;return await F()??null}catch{return null}}),()=>{(0,p.setTokenProvider)(null)}},[C,T,F]);let I=(0,r.useCallback)(()=>{let e=E[0];if(e?.address)return{address:e.address,chainId:1,isEmbedded:"privy"===e.walletClientType}},[E]),L=(0,r.useMemo)(()=>{for(let e of E)if("privy"!==e.walletClientType&&e.address)return e.address.toLowerCase();return null},[E]),x=(0,r.useCallback)(async()=>{try{let e=await v();R({status:"authenticated",user:e.user,session:e.session})}catch(e){R({status:"error",user:null,session:null,error:e instanceof Error?e.message:"Failed to load profile."})}},[]);(0,r.useEffect)(()=>{if(!C)return void R(w);if(!T){j.current=null,M.current=null,R({status:"unauthenticated",user:null,session:null});return}let e=!1;return R(e=>"authenticated"===e.status?e:{status:"authenticating",user:null,session:null}),(async()=>{try{let t=await y({wallet:I()});if(e)return;j.current=t.session.privy_did,M.current=t.session.primary_wallet?.toLowerCase()??L,R({status:"authenticated",user:t.user,session:t.session}
1),A.invalidateQueries({queryKey:m.queryKeys.users.me()})}catch(t){if(e)return;R({status:"error",user:null,session:null,error:t instanceof Error?t.message:"Auth verification failed."})}})(),()=>{e=!0}},[C,T,I]);let D=(0,r.useCallback)(async()=>{try{await P()}catch{}},[P]),Q=(0,r.useCallback)(async()=>{U.current=!0;try{await g(),await O();try{await k()}catch{}j.current=null,M.current=null,R({status:"unauthenticated",user:null,session:null}),A.clear(),(0,b.clearPersistedQueryCache)()}finally{U.current=!1}},[O,A,k]),G=(0,r.useCallback)(async()=>{try{return await F()??null}catch{return null}},[F]);!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onConnect:t,onDisconnect:s}=e,n=(0,u.useConfig)(e);(0,r.useEffect)(()=>(0,o.watchAccount)(n,{onChange(e,n){if(("reconnecting"===n.status||"connecting"===n.status&&void 0===n.address)&&"connected"===e.status){let{address:s,addresses:i,chain:r,chainId:a,connector:o}=e,u="reconnecting"===n.status||void 0===n.status;t?.({address:s,addresses:i,chain:r,chainId:a,connector:o,isReconnected:u})}else"connected"===n.status&&"disconnected"===e.status&&s?.()}}),[n,t,s])}({onDisconnect:(0,r.useCallback)(()=>{U.current||"authenticated"===K.current&&Q()},[Q])}),(0,r.useEffect)(()=>{if(!C||"authenticated"!==q.status)return;let e=M.current;if(!e||L){if(!e&&L){M.current=L,(async()=>{try{var e;await y({wallet:{address:L,chainId:1,isEmbedded:!1}}),await x(),a.toast.success("Wallet linked",{description:`Connected ${(e=L).length<=12?e:`${e.slice(0,6)}â¦${e.slice(-4)}`} to your account.`})}catch{}})();return}e&&L&&e!==L&&(a.toast.warning("Wallet changed â signing out",{description:"Each wallet signs in as its own account. Sign in again to continue with the new wallet."}),Q())}},[C,q.status,L,x,Q]);let N=(0,r.useMemo)(()=>({state:q,isReady:C,isAuthenticated:"authenticated"===q.status,isPrivyAuthenticated:C&&T,user:q.user,session:q.session,login:D,logout:Q,refresh:x,getAccessToken:G}),[q,C,T,D,Q,x,G]);return(0,t.jsx)(S.Provider,{value:N,children:d})},"AuthProviderUnconfigured",0,function(e){let{children:s}=e,n=(0,r.useMemo)(()=>({state:{status:"unauthenticated",user:null,session:null},isReady:!0,isAuthenticated:!1,isPrivyAuthenticated:!1,user:null,session:null,login:()=>{},logout:async()=>{},refresh:async()=>{},getAccessToken:async()=>null}),[]);return(0,t.jsx)(S.Provider,{value:n,children:s})},"useAuth",0,function(){let e=(0,r.useContext)(S);return e||C}],559897)}]);
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.