PageSourceSearch

https://banzhuan.ai/_next/static/chunks/800-71d58ea115a5db34.js

js banzhuan.ai collected 2026-10-05 14:38:09 UTC 54,987 bytes, 17 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[800],{9808:function(e,t,n){/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var r=n(2265),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,c=r.useLayoutEffect,u=r.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return c(function(){o.value=n,o.getSnapshot=t,a(o)&&l({inst:o})},[e,n,t]),s(function(){return a(o)&&l({inst:o}),e(function(){a(o)&&l({inst:o})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},3176:function(e,t,n){/**
10 * @license React
11 * use-sync-external-store-shim/with-selector.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var r=n(2265),o=n(6272),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,a=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=c(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=s(e,(d=a(function(){function e(e){if(!u){if(u=!0,s=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(s=e,t):(s=e,c=n)}var s,c,u=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,o]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=h},[h]),l(h),h}},6272:function(e,t,n){e.exports=n(9808)},5401:function(e,t,n){e.exports=n(3176)},4949:function(e,t,n){n.d(t,{g7:function(){return l}});var r=n(2265),o=n.t(r,2);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var s=n(7437),c=Symbol.for("react.lazy"),u=o[" use ".trim().toString()];function a(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var l=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(a(n)&&"function"==typeof u&&(n=u(n._payload)),r.isValidElement(n)){var s;let e,c;let u=(s=n,(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?s.ref:(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?s.props.ref:s.props.ref||s.ref),a=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}(t,u):u),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...i}=e;a(o)&&"function"==typeof u&&(o=u(o._payload));let c=r.Children.toArray(o),l=c.find(f);if(l){let e=l.props.children,o=c.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,s.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}("Slot"),d=Symbol("radix.slottable");function f(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===d}},9198:function(e,t,n){n.d(t,{j:function(){return i}});var r=n(2996),o=n(300),i=new class extends r.l{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!o.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
17this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},7470:function(e,t,n){n.d(t,{R:function(){return c},m:function(){return s}});var r=n(7987),o=n(9024),i=n(2769),s=class extends o.F{#r;#o;#i;#s;constructor(e){super(),this.#r=e.client,this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#o=[],this.state=e.state||c(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#o.includes(e)||(this.#o.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#o=this.#o.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#o.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#c({type:"continue"})},n={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=(0,i.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#c({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#c({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let r="pending"===this.state.status,o=!this.#s.canStart();try{if(r)t();else{this.#c({type:"pending",variables:e,isPaused:o}),this.#i.config.onMutate&&await this.#i.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#c({type:"pending",context:t,variables:e,isPaused:o})}let i=await this.#s.start();return await this.#i.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#i.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#c({type:"success",data:i}),i}catch(t){try{await this.#i.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#c({type:"error",error:t}),t}finally{this.#i.runNext(this)}}#c(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.Vr.batch(()=>{this.#o.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function c(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},7987:function(e,t,n){n.d(t,{Vr:function(){return o}});var r=n(3295).Hp,o=function(){let e=[],t=0,n=e=>{e()},o=e=>{e()},i=r,s=r=>{t?e.push(r):i(()=>{n(r)})},c=()=>{let t=e;e=[],t.length&&i(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||c()}return n},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e},setScheduler:e=>{i=e}}}()},436:function(e,t,n){n.d(t,{N:function(){return i}});var r=n(2996),o=n(300),i=new class extends r.l{#u=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!o.sk&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
17)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#u!==e&&(this.#u=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#u}}},9024:function(e,t,n){n.d(t,{F:function(){return i}});var r=n(3295),o=n(300),i=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,o.PN)(this.gcTime)&&(this.#a=r.mr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(o.sk?1/0:3e5))}clearGcTimeout(){this.#a&&(r.mr.clearTimeout(this.#a),this.#a=void 0)}}},2769:function(e,t,n){n.d(t,{p8:function(){return u},Kw:function(){return c},Mz:function(){return a}});var r=n(9198),o=n(436),i=n(300);function s(e){return Math.min(1e3*2**e,3e4)}function c(e){return(e??"online")!=="online"||o.N.isOnline()}var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function a(e){let t,n=!1,a=0,l=function(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}(),d=()=>"pending"!==l.status,f=()=>r.j.isFocused()&&("always"===e.networkMode||o.N.isOnline())&&e.canRun(),h=()=>c(e.networkMode)&&e.canRun(),p=e=>{d()||(t?.(),l.resolve(e))},b=e=>{d()||(t?.(),l.reject(e))},m=()=>new Promise(n=>{t=e=>{(d()||f())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,d()||e.onContinue?.()}),v=()=>{let t;if(d())return;let r=0===a?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(p).catch(t=>{if(d())return;let r=e.retry??(i.sk?0:3),o=e.retryDelay??s,c="function"==typeof o?o(a,t):o,u=!0===r||"number"==typeof r&&a<r||"function"==typeof r&&r(a,t);if(n||!u){b(t);return}a++,e.onFail?.(a,t),(0,i._v)(c).then(()=>f()?void 0:m()).then(()=>{n?b(t):v()})})};return{promise:l,status:()=>l.status,cancel:t=>{if(!d()){let n=new u(t);b(n),e.onCancel?.(n)}},continue:()=>(t?.(),l),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:h,start:()=>(h()?v():m().then(v),l)}}},2996:function(e,t,n){n.d(t,{l:function(){return r}});var r=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(){}}},3295:function(e,t,n){n.d(t,{Hp:function(){return i},mr:function(){return o}});var r={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},o=new class{#l=r;#d=!1;setTimeoutProvider(e){this.#l=e}setTimeout(e,t){return this.#l.setTimeout(e,t)}clearTimeout(e){this.#l.clearTimeout(e)}setInterval(e,t){return this.#l.setInterval(e,t)}clearInterval(e){this.#l.clearInterval(e)}};function i(e){setTimeout(e,0)}},300:function(e,t,n){n.d(t,{CN:function(){return E},Ht:function(){return j},I4:function(){return C},KC:function(){return a},Kp:function(){return u},L3:function(){return M},Nc:function(){return l},PN:function(){return c},Rm:function(){return h},SE:function(){return s},VS:function(){return v},VX:function(){return P},X7:function(){return f},Ym:function(){return p},ZT:function(){return i},_v:function(){return O},_x:function(){return d},cG:function(){return S},oE:function(){return x},sk:function(){return o},to:function(){return b}});var r=n(3295),o="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function c(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e,t){return Math.max(e+(t||0)-Date.now(),0)}function a(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function d(e,t){let{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:c}=e;if(s){if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!b(t.queryKey,s))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof c||t.isStale()===c)&&(!o||o===t.state.fetchStatus)&&(!i||!!i(t))}function f(e,t){let{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(i))return!1}else if(!b(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&(!o||!!o(t))}function h(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function b(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>b(e[n],t[n]))}var m=Object.prototype.hasOwnProperty;function v(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(w(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function O(e){return new Promise(t=>{r.mr.setTimeout(t,e)})}function x(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n,r=0){if(t===n)return t;if(r>500)return n;let o=g(t)&&g(n);if(!o&&!(y(t)&&y(n)))return n;let i=(o?t:Object.keys(t)).length,s=o?n:Object.keys(n),c=s.length,u=o?Array(c):{},a=0;for(let l=0;l<c;l++){let c=o?l:s[l],d=t[c],f=n[c];if(d===f){u[c]=d,(o?l<i:m.call(t,c))&&a++;continue}if(null===d||null===f||"object"!=typeof d||"object"!=typeof f){u[c]=f;continue}let h=e(d,f,r+1);u[c]=h,h===d&&a++}return i===c&&a===i?t:u}(e,t):t}function P(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function j(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var E=Symbol();function S(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==E?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function M(e,t){return"function"==typeof e?e(...t):!!e}
17function C(e,t,n){let r,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),o||(o=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}},8038:function(e,t,n){n.d(t,{NL:function(){return s},aH:function(){return c}});var r=n(2265),o=n(7437),i=r.createContext(void 0),s=e=>{let t=r.useContext(i);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},c=({client:e,children:t})=>(r.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o.jsx)(i.Provider,{value:e,children:t}))},3588:function(e,t,n){n.d(t,{D:function(){return l}});var r=n(2265),o=n(7470),i=n(7987),s=n(2996),c=n(300),u=class extends s.l{#r;#f=void 0;#h;#p;constructor(e,t){super(),this.#r=e,this.setOptions(t),this.bindMethods(),this.#b()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#r.defaultMutationOptions(e),(0,c.VS)(this.options,t)||this.#r.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#h,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,c.Ym)(t.mutationKey)!==(0,c.Ym)(this.options.mutationKey)?this.reset():this.#h?.state.status==="pending"&&this.#h.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#h?.removeObserver(this)}onMutationUpdate(e){this.#b(),this.#m(e)}getCurrentResult(){return this.#f}reset(){this.#h?.removeObserver(this),this.#h=void 0,this.#b(),this.#m()}mutate(e,t){return this.#p=t,this.#h?.removeObserver(this),this.#h=this.#r.getMutationCache().build(this.#r,this.options),this.#h.addObserver(this),this.#h.execute(e)}#b(){let e=this.#h?.state??(0,o.R)();this.#f={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#m(e){i.Vr.batch(()=>{if(this.#p&&this.hasListeners()){let t=this.#f.variables,n=this.#f.context,r={client:this.#r,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#p.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#p.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#p.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#p.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#f)})})}},a=n(8038);function l(e,t){let n=(0,a.NL)(t),[o]=r.useState(()=>new u(n,e));r.useEffect(()=>{o.setOptions(e)},[o,e]);let s=r.useSyncExternalStore(r.useCallback(e=>o.subscribe(i.Vr.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=r.useCallback((e,t)=>{o.mutate(e,t).catch(c.ZT)},[o]);if(s.error&&(0,c.L3)(o.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}},8306:function(e,t,n){n.d(t,{G:function(){return u}});var r,o,i=n(1784);let s=()=>`@wagmi/core@${i.i}`;var c=function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class u extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return s()}constructor(e,t={}){super(),r.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});let n=t.cause instanceof u?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof u&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=o,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return c(this,r,"m",o).call(this,this,e)}}r=new WeakSet,o=function e(t,n){return n?.(t)?t:t.cause?c(this,r,"m",e).call(this,t.cause,n):t}},6026:function(e,t,n){n.d(t,{$S:function(){return a},JK:function(){return c},X4:function(){return o},XZ:function(){return u},aH:function(){return s},wi:function(){return i}});var r=n(8306);class o extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class i extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class s extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class c extends r.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class u extends r.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class a extends r.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},8369:function(e,t,n){n.d(t,{v:function(){return function e(t,n){if(t===n)return!0;
17if(t&&n&&"object"==typeof t&&"object"==typeof n){let r,o;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)&&Array.isArray(n)){if((r=t.length)!==n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if("function"==typeof t.valueOf&&t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString()===n.toString();let i=Object.keys(t);if((r=i.length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.hasOwn(n,i[o]))return!1;for(o=r;0!=o--;){let r=i[o];if(r&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}}})},1784:function(e,t,n){n.d(t,{i:function(){return r}});let r="2.22.1"},6061:function(e,t,n){n.d(t,{j:function(){return s}});var r=n(7042);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.W,s=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:s,defaultVariants:c}=t,u=Object.keys(s).map(e=>{let t=null==n?void 0:n[e],r=null==c?void 0:c[e];if(null===t)return null;let i=o(t)||o(r);return s[e][i]}),a=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,u,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...c,...a}[t]):({...c,...a})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},4832:function(e,t,n){n.d(t,{T:function(){return r}});function r(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}},5583:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(4832),o=n(5006);function i(e){let{batch:t,chain:n,ccipRead:i,dataSuffix:s,key:c="base",name:u="Base Client",type:a="base"}=e,l=e.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),d=n?.blockTime??12e3,f=e.pollingInterval??Math.min(Math.max(Math.floor(d/2),500),4e3),h=e.cacheTime??f,p=e.account?(0,r.T)(e.account):void 0,{config:b,request:m,value:v}=e.transport({account:p,chain:n,pollingInterval:f}),g={account:p,batch:t,cacheTime:h,ccipRead:i,chain:n,dataSuffix:s,key:c,name:u,pollingInterval:f,request:m,transport:{...b,...v},type:a,uid:(0,o.h)(),...l?{experimental_blockTag:l}:{}};return Object.assign(g,{extend:function e(t){return n=>{let r=n(t);for(let e in g)delete r[e];let o={...t,...r};return Object.assign(o,{extend:e(o)})}}(g)})}},1980:function(e,t,n){n.d(t,{q:function(){return d}});var r=n(9230),o=n(9413),i=n(8519),s=n(1693);let c=new(n(6108)).k(8192);var u=n(652),a=n(1891),l=n(5006);function d({key:e,methods:t,name:n,request:d,retryCount:f=3,retryDelay:h=150,timeout:p,type:b},m){return{config:{key:e,methods:t,name:n,request:d,retryCount:f,retryDelay:h,timeout:p,type:b},request:function(e,t={}){return async(n,l={})=>{let{dedupe:d=!1,methods:f,retryDelay:h=150,retryCount:p=3,uid:b}={...t,...l},{method:m}=n;if(f?.exclude?.includes(m)||f?.include&&!f.include.includes(m))throw new i.gS(Error("method not supported"),{method:m});let v=d?(0,s.$G)(`${b}.${(0,a.P)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(c.get(n))return c.get(n);let r=e().finally(()=>c.delete(n));return c.set(n,r),r}(()=>(0,u.J)(async()=>{try{return await e(n)}catch(e){switch(e.code){case i.s7.code:throw new i.s7(e);case i.B.code:throw new i.B(e);case i.LX.code:throw new i.LX(e,{method:n.method});case i.nY.code:throw new i.nY(e);case i.XS.code:throw new i.XS(e);case i.yR.code:throw new i.yR(e);case i.Og.code:throw new i.Og(e);case i.pT.code:throw new i.pT(e);case i.KB.code:throw new i.KB(e);case i.gS.code:throw new i.gS(e,{method:n.method});case i.Pv.code:throw new i.Pv(e);case i.GD.code:throw new i.GD(e);case i.ab.code:throw new i.ab(e);case i.PE.code:throw new i.PE(e);case i.Ts.code:throw new i.Ts(e);case i.u5.code:throw new i.u5(e);case i.I0.code:throw new i.I0(e);case i.x3.code:throw new i.x3(e);case i.vl.code:throw new i.vl(e);case i.Uu.code:throw new i.Uu(e);case i.Nt.code:throw new i.Nt(e);case i.EJ.code:throw new i.EJ(e);case i.fl.code:throw new i.fl(e);case i.NO.code:throw new i.NO(e);case i.r0.code:throw new i.r0(e);case 5e3:throw new i.ab(e);case i.UF.code:throw new i.UF(e);default:if(e instanceof r.G)throw e;throw new i.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof o.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e,10)}return~~(1<<e)*h},retryCount:p,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===i.Pv.code||e.code===i.XS.code:!(e instanceof o.Gg)||!e.status||403===e.status||408===e.status||413===e.status||429===e.status||500===e.status||502===e.status||503===e.status||504===e.status}),{enabled:d,id:v})}}(d,{methods:t,retryCount:f,retryDelay:h,uid:(0,l.h)()}),value:m}}},1485:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(9230);class o extends r.G{constructor({address:e}){super(`Address "${e}
17" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},9230:function(e,t,n){n.d(t,{G:function(){return i}});let r="2.47.0",o={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${r}`};class i extends Error{constructor(e,t={}){let n=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof i&&t.cause.docsPath||t.docsPath,c=o.getDocsUrl?.({...t,docsPath:s});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...c?[`Docs: ${c}`]:[],...n?[`Details: ${n}`]:[],...o.version?[`Version: ${o.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=s,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=r}walk(e){return function e(t,n){return n?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,n):n?null:t}(this,e)}}},6714:function(e,t,n){n.d(t,{J5:function(){return o},M6:function(){return i}});var r=n(9230);class o extends r.G{constructor({max:e,min:t,signed:n,size:r,value:o}){super(`Number "${o}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class i extends r.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},9413:function(e,t,n){n.d(t,{Gg:function(){return s},bs:function(){return c},W5:function(){return u}});var r=n(1891),o=n(9230);let i=e=>e;class s extends o.G{constructor({body:e,cause:t,details:n,headers:o,status:s,url:c}){super("HTTP request failed.",{cause:t,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${i(c)}`,e&&`Request body: ${(0,r.P)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=o,this.status=s,this.url=c}}class c extends o.G{constructor({body:e,error:t,url:n}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${i(n)}`,`Request body: ${(0,r.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}class u extends o.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${i(t)}`,`Request body: ${(0,r.P)(e)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t}}},8519:function(e,t,n){n.d(t,{B:function(){return u},EJ:function(){return C},GD:function(){return g},I0:function(){return P},KB:function(){return b},LX:function(){return a},NO:function(){return $},Nt:function(){return M},Og:function(){return h},PE:function(){return w},Pv:function(){return v},Ts:function(){return O},UF:function(){return T},Uu:function(){return S},XS:function(){return d},ab:function(){return y},fl:function(){return R},gS:function(){return m},ir:function(){return A},nY:function(){return l},pT:function(){return p},r0:function(){return I},s7:function(){return c},u5:function(){return x},vl:function(){return E},x3:function(){return j},yR:function(){return f}});var r=n(9230),o=n(9413);class i extends r.G{constructor(e,{code:t,docsPath:n,metaMessages:r,name:i,shortMessage:s}){super(s,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:i||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
vendor: 4,542 bytes, line 17
17),this.name=i||e.name,this.code=e instanceof o.bs?e.code:t??-1}}class s extends i{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class c extends i{constructor(e){super(e,{code:c.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends i{constructor(e){super(e,{code:u.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class a extends i{constructor(e,{method:t}={}){super(e,{code:a.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends i{constructor(e){super(e,{code:l.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends i{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class f extends i{constructor(e){super(e,{code:f.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class h extends i{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends i{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends i{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends i{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class v extends i{constructor(e){super(e,{code:v.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends i{constructor(e){super(e,{code:g.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class y extends s{constructor(e){super(e,{code:y.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends s{constructor(e){super(e,{code:w.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class O extends s{constructor(e,{method:t}={}){super(e,{code:O.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class x extends s{constructor(e){super(e,{code:x.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends s{constructor(e){super(e,{code:P.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});
17class j extends s{constructor(e){super(e,{code:j.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class E extends s{constructor(e){super(e,{code:E.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class S extends s{constructor(e){super(e,{code:S.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class M extends s{constructor(e){super(e,{code:M.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class C extends s{constructor(e){super(e,{code:C.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class R extends s{constructor(e){super(e,{code:R.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class $ extends s{constructor(e){super(e,{code:$.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty($,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class I extends s{constructor(e){super(e,{code:I.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class T extends s{constructor(e){super(e,{code:T.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class A extends i{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},5664:function(e,t,n){n.d(t,{x:function(){return K},K:function(){return W}});var r=n(1485),o=n(9230),i=n(5008),s=n(9635),c=n(838),u=n(1693);let a=new TextEncoder,l={zero:48,nine:57,A:65,F:70,a:97,f:102};function d(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function f(e,t={}){let n=e;t.size&&((0,c.Yf)(n,{size:t.size}),n=(0,s.vk)(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);let i=r.length/2,u=new Uint8Array(i);for(let e=0,t=0;e<i;e++){let n=d(r.charCodeAt(t++)),i=d(r.charCodeAt(t++));if(void 0===n||void 0===i)throw new o.G(`Invalid byte sequence ("${r[t-2]}${r[t-1]}" in "${r}").`);u[e]=16*n+i}return u}function h(e,t={}){let n=a.encode(e);return"number"==typeof t.size?((0,c.Yf)(n,{size:t.size}),(0,s.vk)(n,{dir:"right",size:t.size})):n}let p=BigInt(4294967296-1),b=BigInt(32),m=(e,t,n)=>e<<n|t>>>32-n,v=(e,t,n)=>t<<n|e>>>32-n,g=(e,t,n)=>t<<n-32|e>>>64-n,y=(e,t,n)=>e<<n-32|t>>>64-n;function w(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function O(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function x(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function P(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}let j=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}return e};function E(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),O(e),e}class S{}let M=BigInt(0),C=BigInt(1),R=BigInt(2),$=BigInt(7),I=BigInt(256),T=BigInt(113),A=[],k=[],N=[];for(let e=0,t=C,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],A.push(2*(5*r+n)),k.push((e+1)*(e+2)/2%64);let o=M;for(let e=0;e<7;e++)(t=(t<<C^(t>>$)*T)%I)&R&&(o^=C<<(C<<BigInt(e))-C);N.push(o)}let U=function(e,t=!1){let n=e.length,r=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){let{h:n,l:s}=function(e,t=!1){return t?{h:Number(e&p),l:Number(e>>b&p)}:{h:0|Number(e>>b&p),l:0|Number(e&p)}}(e[i],t);[r[i],o[i]]=[n,s]}return[r,o]}(N,!0),z=U[0],F=U[1],L=(e,t,n)=>n>32?g(e,t,n):m(e,t,n),G=(e,t,n)=>n>
1732?y(e,t,n):v(e,t,n);class _ extends S{constructor(e,t,n,r=!1,o=24){var i;if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=o,w(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(i=this.state,new Uint32Array(i.buffer,i.byteOffset,Math.floor(i.byteLength/4)))}clone(){return this._cloneInto()}keccak(){j(this.state32),function(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,o=(t+2)%10,i=n[o],s=n[o+1],c=L(i,s,1)^n[r],u=G(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=c,e[t+n+1]^=u}let t=e[2],o=e[3];for(let n=0;n<24;n++){let r=k[n],i=L(t,o,r),s=G(t,o,r),c=A[n];t=e[c],o=e[c+1],e[c]=i,e[c+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=z[r],e[1]^=F[r]}P(n)}(this.state32,this.rounds),j(this.state32),this.posOut=0,this.pos=0}update(e){x(this),O(e=E(e));let{blockLen:t,state:n}=this,r=e.length;for(let o=0;o<r;){let i=Math.min(t-this.pos,r-o);for(let t=0;t<i;t++)n[this.pos++]^=e[o++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){x(this,!1),O(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,o=e.length;r<o;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,o-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return w(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(!function(e,t){O(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,P(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:o,enableXOF:i}=this;return e||(e=new _(t,n,r,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=n,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}let q=function(e){let t=t=>e().update(E(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}(()=>new _(136,1,32));var D=n(6108),B=n(7364);let V=new D.k(8192);function K(e,t){if(V.has(`${e}.${t}`))return V.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=function(e,t){let n=q((0,i.v)(e,{strict:!1})?function(e,t={}){return"number"==typeof e||"bigint"==typeof e?f((0,u.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let n=new Uint8Array(1);return(n[0]=Number(e),"number"==typeof t.size)?((0,c.Yf)(n,{size:t.size}),(0,s.vk)(n,{size:t.size})):n}(e,t):(0,i.v)(e)?f(e,t):h(e,t)}(e):e);return"bytes"===(t||"hex")?n:(0,u.NC)(n)}(h(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return V.set(`${e}.${t}`,a),a}function W(e,t){if(!(0,B.U)(e,{strict:!1}))throw new r.b({address:e});return K(e,t)}},7364:function(e,t,n){n.d(t,{U:function(){return c}});var r=n(6108),o=n(5664);let i=/^0x[a-fA-F0-9]{40}$/,s=new r.k(8192);function c(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(s.has(r))return s.get(r);let c=!!i.test(e)&&(e.toLowerCase()===e||!n||(0,o.x)(e)===e);return s.set(r,c),c}},5008:function(e,t,n){n.d(t,{v:function(){return r}});function r(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},9635:function(e,t,n){n.d(t,{vk:function(){return i}});var r=n(9230);class o extends r.G{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}function i(e,{dir:t,size:n=32}={}){return"string"==typeof e?function(e,{dir:t,size:n=32}={}){if(null===n)return e;let r=e.replace("0x","");if(r.length>2*n)throw new o({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===t?"padEnd":"padStart"](2*n,"0")}`}(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new o({size:e.length,targetSize:n,type:"bytes"});let r=new Uint8Array(n);for(let o=0;o<n;o++){let i="right"===t;r[i?o:n-o-1]=e[i?o:e.length-o-1]}return r}(e,{dir:t,size:n})}},9868:function(e,t,n){n.d(t,{d:function(){return o}});var r=n(5008);function o(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},838:function(e,t,n){n.d(t,{Yf:function(){return i}});var r=n(6714),o=n(9868);function i(e,{size:t}){if((0,o.d)(e)>t)throw new r.M6({givenSize:(0,o.d)(e),maxSize:t})}},1693:function(e,t,n){n.d(t,{$G:function(){return d},NC:function(){return c},eC:function(){return a}});var r=n(6714),o=n(9635),i=n(838);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?a(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?function(e,t={}){let n=`0x${Number(e)}`;return"number"==typeof t.size?((0,i.Yf)(n,{size:t.size}),(0,o.vk)(n,{size:t.size})):n}(e,t):u(e,t)}function u(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let r=`0x${n}`;return"number"==typeof t.size?((0,i.Yf)(r,{size:t.size}),(0,o.vk)(r,{dir:"right",size:t.size})):r}function a(e,t={}){let n;let{signed:i,size:s}=t,c=BigInt(e);s?n=i?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(n=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof n&&i?-n-1n:0;if(n&&c>n||c<u){let t="bigint"==typeof e?"n":"";throw new r.J5({max:n?`${n}${t}`:void 0,min:`${u}${t}`,signed:i,size:s,value:`${e}${t}`})}let a=`0x${(i&&c<0?(1n<<BigInt(8*s))+BigInt(c):c).toString(16)}`;return s?(0,o.vk)(a,{size:s}):a}let l=new TextEncoder;function d(e,t={}){return u(l.encode(e),t)}},6108:function(e,t,n){n.d(t,{k:function(){return r}});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}},652:function(e,t,n){async function r(e){return new Promise(t=>setTimeout(t,e))}function o(e,{delay:t=100,retryCount:n=2,shouldRetry:o=()=>!0}={}){return new Promise((i,s)=>{let c=async({count:u=0}={})=>{let a=async({error:e})=>{let n="function"==typeof t?t({count:u,error:e}):t;n&&await r(n),c({count:u+1})};try{let t=await e();i(t)}catch(e){if(u<n&&await o({count:u,error:e}))return a({error:e});s(e)}};c()})}n.d(t,{J:function(){return o}})},1891:function(e,t,n){n.d(t,{P:function(){return r}});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},5006:function(e,t,n){let r;n.d(t,{h:function(){return i}});let o=256;function i(e=11){if(!r||o+e>512){r="",o=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(o,o+++e)}},1229:function(e,t,n){n.d(t,{V:function(){return c},F:function(){return u}});var r=n(2265);let o=!1;async function i(e,t={}){let n;if(o)return[];o=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let r=[];if(t.connectors?.length)for(let n of t.connectors){let t;t="function"==typeof n?e._internal.connectors.setup(n):n,r.push(t)}else r.push(...e.connectors);try{n=await e.storage?.getItem("recentConnectorId")}catch{}let i={};for(let[,t]of e.state.connections)i[t.connector.id]=1;n&&(i[n]=0);let s=Object.keys(i).length>0?[...r].sort((e,t)=>
17(i[e.id]??10)-(i[t.id]??10)):r,c=!1,u=[],a=[];for(let t of s){let n=await t.getProvider().catch(()=>void 0);if(!n||a.some(e=>e===n)||!await t.isAuthorized())continue;let r=await t.connect({isReconnecting:!0}).catch(()=>null);r&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let n=new Map(c?e.connections:new Map).set(t.uid,{accounts:r.accounts,chainId:r.chainId,connector:t});return{...e,current:c?e.current:t.uid,connections:n}}),u.push({accounts:r.accounts,chainId:r.chainId,connector:t}),a.push(n),c=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(c?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),o=!1,u}function s(e){let{children:t,config:n,initialState:o,reconnectOnMount:s=!0}=e,{onMount:c}=function(e,t){let{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(e=>e.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(t=>{let n=new Set;for(let e of t??[])if(e.rdns)for(let t of Array.isArray(e.rdns)?e.rdns:[e.rdns])n.add(t);let r=[];for(let t of e._internal.mipd?.getProviders()??[]){if(n.has(t.info.rdns))continue;let o=e._internal.connectors.providerDetailToConnector(t),i=e._internal.connectors.setup(o);r.push(i)}return[...t,...r]})),r?i(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(n,{initialState:o,reconnectOnMount:s});n._internal.ssr||c();let u=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(u.current&&n._internal.ssr)return c(),()=>{u.current=!1}},[]),t}let c=(0,r.createContext)(void 0);function u(e){let{children:t,config:n}=e;return(0,r.createElement)(s,e,(0,r.createElement)(c.Provider,{value:n},t))}},9835:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(8369);function o(e){let t=e.state.current,n=e.state.connections.get(t),r=n?.accounts,o=r?.[0],i=e.chains.find(e=>e.id===n?.chainId),s=e.state.status;switch(s){case"connected":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:s};case"reconnecting":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!!o,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:s};case"connecting":return{address:o,addresses:r,chain:i,chainId:n?.chainId,connector:n?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:s};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:s}}}var i=n(1012),s=n(2265),c=n(5401);let u=e=>"object"==typeof e&&!Array.isArray(e);function a(e={}){let t=(0,i.Z)(e);return function(e,t,n=t,o=r.v){let i=(0,s.useRef)([]),a=(0,c.useSyncExternalStoreWithSelector)(e,t,n,e=>e,(e,t)=>{if(u(e)&&u(t)&&i.current.length){for(let n of i.current)if(!o(e[n],t[n]))return!1;return!0}return o(e,t)});return(0,s.useMemo)(()=>{if(u(a)){let e={...a},t={};
17for(let[n,r]of Object.entries(e))t={...t,[n]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(n)||i.current.push(n),r)}};return Object.defineProperties(e,t),e}return a},[a])}(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>o(e),n,{equalityFn(e,t){let{connector:n,...o}=e,{connector:i,...s}=t;return(0,r.v)(o,s)&&n?.id===i?.id&&n?.uid===i?.uid}})})(t,{onChange:e}),()=>o(t))}},1012:function(e,t,n){n.d(t,{Z:function(){return a}});var r=n(2265),o=n(1229),i=n(8306);let s=()=>"[email protected]";class c extends i.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return s()}}class u extends c{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function a(e={}){let t=e.config??(0,r.useContext)(o.V);if(!t)throw new u;return t}},1684:function(e,t,n){n.d(t,{q:function(){return l}});var r=n(3588);async function o(e,t={}){let n;if(t.connector)n=t.connector;else{let{connections:t,current:r}=e.state,o=t.get(r);n=o?.connector}let r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let n=e.state.connections.get(t)?.connector;if(!n)return;await e.storage?.setItem("recentConnectorId",n.id)}}var i=n(1012),s=n(8369);let c=[];function u(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,s.v)(c,t)?c:(c=t,t)}var a=n(2265);function l(e={}){let{mutation:t}=e,n=(0,i.Z)(e),{mutate:c,mutateAsync:l,...d}=(0,r.D)({...t,mutationFn:e=>o(n,e),mutationKey:["disconnect"]});return{...d,connectors:(function(e={}){let t=(0,i.Z)(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:n}=t;return e.subscribe(()=>u(e),n,{equalityFn:s.v})})(t,{onChange:e}),()=>u(t),()=>u(t))})({config:n}).map(e=>e.connector),disconnect:c,disconnectAsync:l}}}}]);

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.