@powerhousedao/connect 1.0.0-dev.212 → 1.0.0-dev.214
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.env +1 -0
- package/dist/assets/{app-B4copOtg.js → app-W7iAsoHf.js} +838 -644
- package/dist/assets/{app-loader-B6zf9XDU.js → app-loader-LanbebVK.js} +9 -7
- package/dist/assets/{browser-CZOApPej.js → browser-BEcF-4CB.js} +2937 -909
- package/dist/assets/{ccip-DSVOeeDo.js → ccip-BNZSjQUf.js} +5 -5
- package/dist/assets/{content-gm9A__42.js → content-49TGKZ_h.js} +168 -162
- package/dist/assets/{getEnsName-CH6-GxaA.js → getEnsName-1uB64UDK.js} +75 -55
- package/dist/assets/{index-BcQMOuWz.js → index-CKWp1mJP.js} +3 -3
- package/dist/assets/{index-Dv_4E7Nh.js → index-Db-1OdLe.js} +88 -2732
- package/dist/assets/{index-BC1qgOnG.js → index-Dcyl8K2C.js} +3 -3
- package/dist/assets/{isAddressEqual-D8xUWIQc.js → isAddressEqual-CQzmygkA.js} +1 -1
- package/dist/assets/{main.DUq7r3yO.js → main.DUxl5yLh.js} +1 -1
- package/dist/assets/{react-error-boundary.esm-CCUHjIRz.js → react-error-boundary.esm-BAA82DIX.js} +10 -10
- package/dist/assets/{root-D_xEwT-n.js → root-xIgpitTd.js} +7 -7
- package/dist/assets/{router-626xhE7A.js → router-DCZy9Fg5.js} +7 -7
- package/dist/icon.ico +0 -0
- package/dist/index.html +5 -4
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-QP65GEDP.js → chunk-C5JXP4NO.js} +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-YAO66KBZ.js → chunk-FD4TUZZS.js} +353 -302
- package/dist/modules/@powerhousedao/reactor-browser/chunk-FD4TUZZS.js.map +7 -0
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-VNJW3K7R.js → chunk-GJOMXDVW.js} +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/chunk-GJOMXDVW.js.map +7 -0
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-VHDG2FTR.js → chunk-GXLBC3KA.js} +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-NCCSZUHV.js → chunk-IDBZA52T.js} +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-ENCBIPGB.js → chunk-LCQV2CEG.js} +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-PRKHJCY6.js → chunk-OJYBFBSZ.js} +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-XDWKADEF.js → chunk-UTLXXWAE.js} +5 -5
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-XDWKADEF.js.map → chunk-UTLXXWAE.js.map} +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-GYHJG3BX.js → chunk-WSWYH5W2.js} +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-L7DUL4YO.js → chunk-XNBBEHKQ.js} +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/document-state.js +99 -0
- package/dist/modules/@powerhousedao/reactor-browser/hooks/document-state.js.map +7 -0
- package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +8 -8
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useAddDebouncedOperations.js +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useConnectCrypto.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentDrives.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentEditor.js +5 -5
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/index.js +10 -10
- package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
- package/dist/swEnv.js +1 -0
- package/dist/vite-envs.sh +10 -1
- package/package.json +10 -10
- package/dist/modules/@powerhousedao/reactor-browser/chunk-VNJW3K7R.js.map +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/chunk-YAO66KBZ.js.map +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentsState.js +0 -44
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentsState.js.map +0 -7
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-QP65GEDP.js.map → chunk-C5JXP4NO.js.map} +0 -0
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-VHDG2FTR.js.map → chunk-GXLBC3KA.js.map} +0 -0
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-NCCSZUHV.js.map → chunk-IDBZA52T.js.map} +0 -0
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-ENCBIPGB.js.map → chunk-LCQV2CEG.js.map} +0 -0
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-PRKHJCY6.js.map → chunk-OJYBFBSZ.js.map} +0 -0
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-GYHJG3BX.js.map → chunk-WSWYH5W2.js.map} +0 -0
- /package/dist/modules/@powerhousedao/reactor-browser/{chunk-L7DUL4YO.js.map → chunk-XNBBEHKQ.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CKWp1mJP.js","assets/main.DUxl5yLh.js","assets/app-loader-LanbebVK.js","assets/app-loader-l6P2C9e2.css","assets/browser-BEcF-4CB.js","assets/getEnsName-1uB64UDK.js","assets/isAddressEqual-CQzmygkA.js","assets/router-DCZy9Fg5.js","assets/PeopleFill-BxcdOZRn.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -18,12 +18,12 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
return __privateGet(obj, member, getter);
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _i;
|
|
22
|
-
import { _ as __vitePreload } from "./main.
|
|
21
|
+
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _i;
|
|
22
|
+
import { _ as __vitePreload } from "./main.DUxl5yLh.js";
|
|
23
23
|
import { jsx as jsx$1, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
24
|
-
import { g as
|
|
24
|
+
import { g as getI18n, a as getDefaults, o as o$3, s as s$4, n as n$4, L as L$1, c as connectConfig, l as logger$2, b as childLogger, d as serviceWorkerManager, p as packageJson, t as t$4 } from "./app-loader-LanbebVK.js";
|
|
25
25
|
import * as React from "react";
|
|
26
|
-
import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useLayoutEffect, useCallback,
|
|
26
|
+
import React__default, { createElement, isValidElement, cloneElement, Children, createContext, useContext, useState, useRef, useEffect, useMemo, useLayoutEffect, useCallback, Suspense, lazy, forwardRef, Component, Fragment, useId as useId$1, useSyncExternalStore, useReducer, useDebugValue } from "react";
|
|
27
27
|
import * as ReactDOM from "react-dom";
|
|
28
28
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
29
29
|
import { useUiNodesContext, UiNodesContextProvider } from "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
|
|
@@ -3426,7 +3426,7 @@ function toPrimitive(t2, r2) {
|
|
|
3426
3426
|
if ("object" != _typeof(t2) || !t2) return t2;
|
|
3427
3427
|
var e2 = t2[Symbol.toPrimitive];
|
|
3428
3428
|
if (void 0 !== e2) {
|
|
3429
|
-
var i2 = e2.call(t2, r2
|
|
3429
|
+
var i2 = e2.call(t2, r2);
|
|
3430
3430
|
if ("object" != _typeof(i2)) return i2;
|
|
3431
3431
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3432
3432
|
}
|
|
@@ -3579,7 +3579,7 @@ function _defineProperties(e2, r2) {
|
|
|
3579
3579
|
}
|
|
3580
3580
|
}
|
|
3581
3581
|
function _createClass(e2, r2, t2) {
|
|
3582
|
-
return _defineProperties(e2.prototype, r2), _defineProperties(e2, t2), Object.defineProperty(e2, "prototype", {
|
|
3582
|
+
return r2 && _defineProperties(e2.prototype, r2), t2 && _defineProperties(e2, t2), Object.defineProperty(e2, "prototype", {
|
|
3583
3583
|
writable: false
|
|
3584
3584
|
}), e2;
|
|
3585
3585
|
}
|
|
@@ -5012,7 +5012,7 @@ var jsx = function jsx2(type, props) {
|
|
|
5012
5012
|
var JSX;
|
|
5013
5013
|
/* @__PURE__ */ (function(_JSX) {
|
|
5014
5014
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
5015
|
-
})(jsx);
|
|
5015
|
+
})(jsx || (jsx = {}));
|
|
5016
5016
|
function css() {
|
|
5017
5017
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5018
5018
|
args[_key] = arguments[_key];
|
|
@@ -10468,11 +10468,11 @@ var SlotClone = React.forwardRef((props, forwardedRef) => {
|
|
|
10468
10468
|
const { children, ...slotProps } = props;
|
|
10469
10469
|
if (React.isValidElement(children)) {
|
|
10470
10470
|
const childrenRef = getElementRef$1(children);
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10471
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
10472
|
+
if (children.type !== React.Fragment) {
|
|
10473
|
+
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
10474
|
+
}
|
|
10475
|
+
return React.cloneElement(children, props2);
|
|
10476
10476
|
}
|
|
10477
10477
|
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
10478
10478
|
});
|
|
@@ -11063,7 +11063,7 @@ var count = 0;
|
|
|
11063
11063
|
function useId(deterministicId) {
|
|
11064
11064
|
const [id, setId] = React.useState(useReactId());
|
|
11065
11065
|
useLayoutEffect2(() => {
|
|
11066
|
-
|
|
11066
|
+
setId((reactId) => reactId ?? String(count++));
|
|
11067
11067
|
}, [deterministicId]);
|
|
11068
11068
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
11069
11069
|
}
|
|
@@ -13819,7 +13819,7 @@ function b$5(r2) {
|
|
|
13819
13819
|
)) })
|
|
13820
13820
|
] });
|
|
13821
13821
|
}
|
|
13822
|
-
const version$1 = "2.
|
|
13822
|
+
const version$1 = "2.23.6";
|
|
13823
13823
|
let errorConfig = {
|
|
13824
13824
|
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
13825
13825
|
version: `viem@${version$1}`
|
|
@@ -15016,9 +15016,6 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait: wait2 = 0, sort
|
|
|
15016
15016
|
}
|
|
15017
15017
|
};
|
|
15018
15018
|
}
|
|
15019
|
-
async function wait(time) {
|
|
15020
|
-
return new Promise((res) => setTimeout(res, time));
|
|
15021
|
-
}
|
|
15022
15019
|
const promiseCache = /* @__PURE__ */ new LruMap(8192);
|
|
15023
15020
|
function withDedupe(fn, { enabled = true, id }) {
|
|
15024
15021
|
if (!enabled || !id)
|
|
@@ -15029,6 +15026,9 @@ function withDedupe(fn, { enabled = true, id }) {
|
|
|
15029
15026
|
promiseCache.set(id, promise);
|
|
15030
15027
|
return promise;
|
|
15031
15028
|
}
|
|
15029
|
+
async function wait(time) {
|
|
15030
|
+
return new Promise((res) => setTimeout(res, time));
|
|
15031
|
+
}
|
|
15032
15032
|
function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true } = {}) {
|
|
15033
15033
|
return new Promise((resolve, reject) => {
|
|
15034
15034
|
const attemptRetry = async ({ count: count2 = 0 } = {}) => {
|
|
@@ -15309,7 +15309,7 @@ function getHttpRpcClient(url, options = {}) {
|
|
|
15309
15309
|
}
|
|
15310
15310
|
};
|
|
15311
15311
|
}
|
|
15312
|
-
const version = "2.16.
|
|
15312
|
+
const version = "2.16.5";
|
|
15313
15313
|
const getVersion = () => `@wagmi/core@${version}`;
|
|
15314
15314
|
var __classPrivateFieldGet$2 = function(receiver, state, kind, f2) {
|
|
15315
15315
|
if (kind === "a" && !f2) throw new TypeError("Private accessor was defined without a getter");
|
|
@@ -15451,6 +15451,7 @@ function createTransport$1({ key, methods, name, request, retryCount = 3, retryD
|
|
|
15451
15451
|
return {
|
|
15452
15452
|
config: {
|
|
15453
15453
|
key,
|
|
15454
|
+
methods,
|
|
15454
15455
|
name,
|
|
15455
15456
|
request,
|
|
15456
15457
|
retryCount,
|
|
@@ -15471,7 +15472,7 @@ class UrlRequiredError extends BaseError {
|
|
|
15471
15472
|
}
|
|
15472
15473
|
}
|
|
15473
15474
|
function http(url, config = {}) {
|
|
15474
|
-
const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay } = config;
|
|
15475
|
+
const { batch, fetchOptions, key = "http", methods, name = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config;
|
|
15475
15476
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
15476
15477
|
const { batchSize = 1e3, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
|
|
15477
15478
|
const retryCount = config.retryCount ?? retryCount_;
|
|
@@ -15508,6 +15509,8 @@ function http(url, config = {}) {
|
|
|
15508
15509
|
})
|
|
15509
15510
|
];
|
|
15510
15511
|
const [{ error, result }] = await fn(body);
|
|
15512
|
+
if (raw)
|
|
15513
|
+
return { error, result };
|
|
15511
15514
|
if (error)
|
|
15512
15515
|
throw new RpcRequestError({
|
|
15513
15516
|
body,
|
|
@@ -16045,6 +16048,7 @@ const targetMap = {
|
|
|
16045
16048
|
"isOneInchIOSWallet",
|
|
16046
16049
|
"isOneInchAndroidWallet",
|
|
16047
16050
|
"isOpera",
|
|
16051
|
+
"isPhantom",
|
|
16048
16052
|
"isPortal",
|
|
16049
16053
|
"isRabby",
|
|
16050
16054
|
"isTokenPocket",
|
|
@@ -17779,6 +17783,7 @@ var Query = (_d = class extends Removable {
|
|
|
17779
17783
|
__privateAdd(this, _initialState);
|
|
17780
17784
|
__privateAdd(this, _revertState);
|
|
17781
17785
|
__privateAdd(this, _cache);
|
|
17786
|
+
__privateAdd(this, _client);
|
|
17782
17787
|
__privateAdd(this, _retryer);
|
|
17783
17788
|
__privateAdd(this, _defaultOptions);
|
|
17784
17789
|
__privateAdd(this, _abortSignalConsumed);
|
|
@@ -17786,7 +17791,8 @@ var Query = (_d = class extends Removable {
|
|
|
17786
17791
|
__privateSet(this, _defaultOptions, config.defaultOptions);
|
|
17787
17792
|
this.setOptions(config.options);
|
|
17788
17793
|
this.observers = [];
|
|
17789
|
-
__privateSet(this,
|
|
17794
|
+
__privateSet(this, _client, config.client);
|
|
17795
|
+
__privateSet(this, _cache, __privateGet(this, _client).getQueryCache());
|
|
17790
17796
|
this.queryKey = config.queryKey;
|
|
17791
17797
|
this.queryHash = config.queryHash;
|
|
17792
17798
|
__privateSet(this, _initialState, getDefaultState$1(this.options));
|
|
@@ -17936,6 +17942,7 @@ var Query = (_d = class extends Removable {
|
|
|
17936
17942
|
const fetchFn = () => {
|
|
17937
17943
|
const queryFn = ensureQueryFn(this.options, fetchOptions);
|
|
17938
17944
|
const queryFnContext = {
|
|
17945
|
+
client: __privateGet(this, _client),
|
|
17939
17946
|
queryKey: this.queryKey,
|
|
17940
17947
|
meta: this.meta
|
|
17941
17948
|
};
|
|
@@ -17954,6 +17961,7 @@ var Query = (_d = class extends Removable {
|
|
|
17954
17961
|
fetchOptions,
|
|
17955
17962
|
options: this.options,
|
|
17956
17963
|
queryKey: this.queryKey,
|
|
17964
|
+
client: __privateGet(this, _client),
|
|
17957
17965
|
state: this.state,
|
|
17958
17966
|
fetchFn
|
|
17959
17967
|
};
|
|
@@ -18031,7 +18039,7 @@ var Query = (_d = class extends Removable {
|
|
|
18031
18039
|
}));
|
|
18032
18040
|
return __privateGet(this, _retryer).start();
|
|
18033
18041
|
}
|
|
18034
|
-
}, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
18042
|
+
}, _initialState = new WeakMap(), _revertState = new WeakMap(), _cache = new WeakMap(), _client = new WeakMap(), _retryer = new WeakMap(), _defaultOptions = new WeakMap(), _abortSignalConsumed = new WeakMap(), _Query_instances = new WeakSet(), dispatch_fn = function(action) {
|
|
18035
18043
|
const reducer2 = (state) => {
|
|
18036
18044
|
switch (action.type) {
|
|
18037
18045
|
case "failed":
|
|
@@ -18149,7 +18157,7 @@ var QueryCache = (_e = class extends Subscribable {
|
|
|
18149
18157
|
let query = this.get(queryHash);
|
|
18150
18158
|
if (!query) {
|
|
18151
18159
|
query = new Query({
|
|
18152
|
-
|
|
18160
|
+
client,
|
|
18153
18161
|
queryKey,
|
|
18154
18162
|
queryHash,
|
|
18155
18163
|
options: client.defaultQueryOptions(options),
|
|
@@ -18611,6 +18619,7 @@ function infiniteQueryBehavior(pages) {
|
|
|
18611
18619
|
return Promise.resolve(data);
|
|
18612
18620
|
}
|
|
18613
18621
|
const queryFnContext = {
|
|
18622
|
+
client: context.client,
|
|
18614
18623
|
queryKey: context.queryKey,
|
|
18615
18624
|
pageParam: param,
|
|
18616
18625
|
direction: previous ? "backward" : "forward",
|
|
@@ -18656,6 +18665,7 @@ function infiniteQueryBehavior(pages) {
|
|
|
18656
18665
|
_a3,
|
|
18657
18666
|
fetchFn,
|
|
18658
18667
|
{
|
|
18668
|
+
client: context.client,
|
|
18659
18669
|
queryKey: context.queryKey,
|
|
18660
18670
|
meta: context.options.meta,
|
|
18661
18671
|
signal: context.signal
|
|
@@ -18792,15 +18802,17 @@ var QueryClient = (_h = class {
|
|
|
18792
18802
|
}
|
|
18793
18803
|
resetQueries(filters, options) {
|
|
18794
18804
|
const queryCache = __privateGet(this, _queryCache);
|
|
18795
|
-
const refetchFilters = {
|
|
18796
|
-
type: "active",
|
|
18797
|
-
...filters
|
|
18798
|
-
};
|
|
18799
18805
|
return notifyManager.batch(() => {
|
|
18800
18806
|
queryCache.findAll(filters).forEach((query) => {
|
|
18801
18807
|
query.reset();
|
|
18802
18808
|
});
|
|
18803
|
-
return this.refetchQueries(
|
|
18809
|
+
return this.refetchQueries(
|
|
18810
|
+
{
|
|
18811
|
+
type: "active",
|
|
18812
|
+
...filters
|
|
18813
|
+
},
|
|
18814
|
+
options
|
|
18815
|
+
);
|
|
18804
18816
|
});
|
|
18805
18817
|
}
|
|
18806
18818
|
cancelQueries(filters, cancelOptions = {}) {
|
|
@@ -18818,11 +18830,13 @@ var QueryClient = (_h = class {
|
|
|
18818
18830
|
if ((filters == null ? void 0 : filters.refetchType) === "none") {
|
|
18819
18831
|
return Promise.resolve();
|
|
18820
18832
|
}
|
|
18821
|
-
|
|
18822
|
-
|
|
18823
|
-
|
|
18824
|
-
|
|
18825
|
-
|
|
18833
|
+
return this.refetchQueries(
|
|
18834
|
+
{
|
|
18835
|
+
...filters,
|
|
18836
|
+
type: (filters == null ? void 0 : filters.refetchType) ?? (filters == null ? void 0 : filters.type) ?? "active"
|
|
18837
|
+
},
|
|
18838
|
+
options
|
|
18839
|
+
);
|
|
18826
18840
|
});
|
|
18827
18841
|
}
|
|
18828
18842
|
refetchQueries(filters, options = {}) {
|
|
@@ -18907,10 +18921,10 @@ var QueryClient = (_h = class {
|
|
|
18907
18921
|
}
|
|
18908
18922
|
getMutationDefaults(mutationKey) {
|
|
18909
18923
|
const defaults2 = [...__privateGet(this, _mutationDefaults).values()];
|
|
18910
|
-
|
|
18924
|
+
const result = {};
|
|
18911
18925
|
defaults2.forEach((queryDefault) => {
|
|
18912
18926
|
if (partialMatchKey(mutationKey, queryDefault.mutationKey)) {
|
|
18913
|
-
result
|
|
18927
|
+
Object.assign(result, queryDefault.defaultOptions);
|
|
18914
18928
|
}
|
|
18915
18929
|
});
|
|
18916
18930
|
return result;
|
|
@@ -19120,7 +19134,7 @@ function useSubscribe(props) {
|
|
|
19120
19134
|
}
|
|
19121
19135
|
function useFormState(props) {
|
|
19122
19136
|
const methods = useFormContext();
|
|
19123
|
-
const { control = methods.control, disabled, name, exact } = props;
|
|
19137
|
+
const { control = methods.control, disabled, name, exact } = props || {};
|
|
19124
19138
|
const [formState, updateFormState] = React__default.useState(control._formState);
|
|
19125
19139
|
const _mounted = React__default.useRef(true);
|
|
19126
19140
|
const _localProxyFormState = React__default.useRef({
|
|
@@ -19166,7 +19180,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) =>
|
|
|
19166
19180
|
};
|
|
19167
19181
|
function useWatch(props) {
|
|
19168
19182
|
const methods = useFormContext();
|
|
19169
|
-
const { control = methods.control, name, defaultValue, disabled, exact } = props;
|
|
19183
|
+
const { control = methods.control, name, defaultValue, disabled, exact } = props || {};
|
|
19170
19184
|
const _name = React__default.useRef(name);
|
|
19171
19185
|
_name.current = name;
|
|
19172
19186
|
useSubscribe({
|
|
@@ -20991,16 +21005,16 @@ function _$1(s2) {
|
|
|
20991
21005
|
t2().catch(console.error);
|
|
20992
21006
|
async function t2() {
|
|
20993
21007
|
try {
|
|
20994
|
-
const { id:
|
|
21008
|
+
const { id: a2, name: V2 } = await S2(l2);
|
|
20995
21009
|
m2({
|
|
20996
|
-
id:
|
|
21010
|
+
id: a2,
|
|
20997
21011
|
name: V2,
|
|
20998
21012
|
sharingType: c2,
|
|
20999
21013
|
location: L$1,
|
|
21000
21014
|
availableOffline: true
|
|
21001
21015
|
}), b2("availableOffline", true), f2(true), p2("");
|
|
21002
|
-
} catch (
|
|
21003
|
-
m2(void 0), f2(false), p2(
|
|
21016
|
+
} catch (a2) {
|
|
21017
|
+
m2(void 0), f2(false), p2(a2.message);
|
|
21004
21018
|
}
|
|
21005
21019
|
}
|
|
21006
21020
|
}, [l2, b2, c2]);
|
|
@@ -27067,6 +27081,77 @@ const h$2 = React__default.forwardRef(({ className: e2, ...a2 }, o2) => /* @__PU
|
|
|
27067
27081
|
}
|
|
27068
27082
|
));
|
|
27069
27083
|
h$2.displayName = Ve.Item.displayName;
|
|
27084
|
+
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
27085
|
+
const cx = clsx;
|
|
27086
|
+
const cva = (base, config) => (props) => {
|
|
27087
|
+
var _config_compoundVariants;
|
|
27088
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
27089
|
+
const { variants, defaultVariants } = config;
|
|
27090
|
+
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
27091
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
27092
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
27093
|
+
if (variantProp === null) return null;
|
|
27094
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
27095
|
+
return variants[variant][variantKey];
|
|
27096
|
+
});
|
|
27097
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
27098
|
+
let [key, value] = param;
|
|
27099
|
+
if (value === void 0) {
|
|
27100
|
+
return acc;
|
|
27101
|
+
}
|
|
27102
|
+
acc[key] = value;
|
|
27103
|
+
return acc;
|
|
27104
|
+
}, {});
|
|
27105
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
27106
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
27107
|
+
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
27108
|
+
let [key, value] = param2;
|
|
27109
|
+
return Array.isArray(value) ? value.includes({
|
|
27110
|
+
...defaultVariants,
|
|
27111
|
+
...propsWithoutUndefined
|
|
27112
|
+
}[key]) : {
|
|
27113
|
+
...defaultVariants,
|
|
27114
|
+
...propsWithoutUndefined
|
|
27115
|
+
}[key] === value;
|
|
27116
|
+
}) ? [
|
|
27117
|
+
...acc,
|
|
27118
|
+
cvClass,
|
|
27119
|
+
cvClassName
|
|
27120
|
+
] : acc;
|
|
27121
|
+
}, []);
|
|
27122
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
27123
|
+
};
|
|
27124
|
+
const u$3 = cva(
|
|
27125
|
+
n(
|
|
27126
|
+
"inline-flex items-center justify-center gap-2",
|
|
27127
|
+
"whitespace-nowrap rounded-md text-sm font-medium",
|
|
27128
|
+
"transition-colors",
|
|
27129
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
27130
|
+
"disabled:pointer-events-none",
|
|
27131
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
27132
|
+
),
|
|
27133
|
+
{
|
|
27134
|
+
variants: {
|
|
27135
|
+
variant: {
|
|
27136
|
+
default: "",
|
|
27137
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
27138
|
+
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
27139
|
+
}
|
|
27140
|
+
},
|
|
27141
|
+
defaultVariants: {
|
|
27142
|
+
variant: "default"
|
|
27143
|
+
}
|
|
27144
|
+
}
|
|
27145
|
+
), b$3 = React__default.forwardRef(
|
|
27146
|
+
({ variant: e2, className: o2, asChild: n$12 = false, ...r2 }, i2) => /* @__PURE__ */ jsx$1(
|
|
27147
|
+
n$12 ? Slot : "button",
|
|
27148
|
+
{
|
|
27149
|
+
className: n(u$3({ variant: e2, className: o2 })),
|
|
27150
|
+
ref: i2,
|
|
27151
|
+
...r2
|
|
27152
|
+
}
|
|
27153
|
+
)
|
|
27154
|
+
);
|
|
27070
27155
|
var POPOVER_NAME = "Popover";
|
|
27071
27156
|
var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
27072
27157
|
createPopperScope
|
|
@@ -27541,10 +27626,10 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27541
27626
|
commandListRef: i2,
|
|
27542
27627
|
multiple: h2,
|
|
27543
27628
|
selectedValues: d2,
|
|
27544
|
-
selectionIcon:
|
|
27545
|
-
selectionIconPosition:
|
|
27629
|
+
selectionIcon: g2,
|
|
27630
|
+
selectionIconPosition: n$12,
|
|
27546
27631
|
options: k2 = [],
|
|
27547
|
-
toggleAll:
|
|
27632
|
+
toggleAll: u2,
|
|
27548
27633
|
toggleOption: f2
|
|
27549
27634
|
}) => {
|
|
27550
27635
|
const m2 = k2.filter((r2) => !r2.disabled), x2 = k2.some((r2) => r2.icon), y2 = T$1((r2) => r2.search);
|
|
@@ -27566,7 +27651,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27566
27651
|
h$2,
|
|
27567
27652
|
{
|
|
27568
27653
|
value: "select-all",
|
|
27569
|
-
onSelect:
|
|
27654
|
+
onSelect: u2,
|
|
27570
27655
|
disabled: false,
|
|
27571
27656
|
className: n(
|
|
27572
27657
|
"cursor-pointer",
|
|
@@ -27575,7 +27660,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27575
27660
|
role: "option",
|
|
27576
27661
|
"aria-selected": d2.length === m2.length,
|
|
27577
27662
|
children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-2", children: [
|
|
27578
|
-
|
|
27663
|
+
g2 === "auto" && /* @__PURE__ */ jsx$1(
|
|
27579
27664
|
"div",
|
|
27580
27665
|
{
|
|
27581
27666
|
className: n(
|
|
@@ -27586,7 +27671,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27586
27671
|
children: d2.length === m2.length && /* @__PURE__ */ jsx$1(S$3, { name: "Checkmark", size: 16 })
|
|
27587
27672
|
}
|
|
27588
27673
|
),
|
|
27589
|
-
|
|
27674
|
+
g2 === "checkmark" && !(n$12 === "right" && x2) && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: n$12 === "left" && d2.length === m2.length && /* @__PURE__ */ jsx$1(
|
|
27590
27675
|
S$3,
|
|
27591
27676
|
{
|
|
27592
27677
|
name: "Checkmark",
|
|
@@ -27595,7 +27680,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27595
27680
|
}
|
|
27596
27681
|
) }),
|
|
27597
27682
|
/* @__PURE__ */ jsx$1("span", { className: "text-[14px] font-semibold leading-4 text-gray-900 dark:text-gray-50", children: d2.length === m2.length ? "Deselect All" : "Select All" }),
|
|
27598
|
-
|
|
27683
|
+
g2 === "checkmark" && n$12 === "right" && /* @__PURE__ */ jsx$1("div", { className: "ml-auto size-4", children: d2.length === m2.length && /* @__PURE__ */ jsx$1(
|
|
27599
27684
|
S$3,
|
|
27600
27685
|
{
|
|
27601
27686
|
name: "Checkmark",
|
|
@@ -27626,7 +27711,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27626
27711
|
role: "option",
|
|
27627
27712
|
"aria-selected": l2,
|
|
27628
27713
|
children: [
|
|
27629
|
-
|
|
27714
|
+
g2 === "auto" && (h2 ? /* @__PURE__ */ jsx$1(
|
|
27630
27715
|
"div",
|
|
27631
27716
|
{
|
|
27632
27717
|
className: n(
|
|
@@ -27647,7 +27732,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27647
27732
|
children: l2 && /* @__PURE__ */ jsx$1("div", { className: "absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full bg-gray-900 dark:bg-gray-400" })
|
|
27648
27733
|
}
|
|
27649
27734
|
)),
|
|
27650
|
-
|
|
27735
|
+
g2 === "checkmark" && !(n$12 === "right" && x2) && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: n$12 === "left" && l2 && /* @__PURE__ */ jsx$1(
|
|
27651
27736
|
S$3,
|
|
27652
27737
|
{
|
|
27653
27738
|
name: "Checkmark",
|
|
@@ -27667,7 +27752,7 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27667
27752
|
children: r2.label
|
|
27668
27753
|
}
|
|
27669
27754
|
),
|
|
27670
|
-
|
|
27755
|
+
g2 === "checkmark" && n$12 === "right" && /* @__PURE__ */ jsx$1("div", { className: "size-4", children: l2 && /* @__PURE__ */ jsx$1(
|
|
27671
27756
|
S$3,
|
|
27672
27757
|
{
|
|
27673
27758
|
name: "Checkmark",
|
|
@@ -27685,77 +27770,6 @@ const j = (t2) => typeof t2 == "string" ? /* @__PURE__ */ jsx$1(
|
|
|
27685
27770
|
] })
|
|
27686
27771
|
] });
|
|
27687
27772
|
};
|
|
27688
|
-
const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
27689
|
-
const cx = clsx;
|
|
27690
|
-
const cva = (base, config) => (props) => {
|
|
27691
|
-
var _config_compoundVariants;
|
|
27692
|
-
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
27693
|
-
const { variants, defaultVariants } = config;
|
|
27694
|
-
const getVariantClassNames = Object.keys(variants).map((variant) => {
|
|
27695
|
-
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
27696
|
-
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
27697
|
-
if (variantProp === null) return null;
|
|
27698
|
-
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
27699
|
-
return variants[variant][variantKey];
|
|
27700
|
-
});
|
|
27701
|
-
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
|
|
27702
|
-
let [key, value] = param;
|
|
27703
|
-
if (value === void 0) {
|
|
27704
|
-
return acc;
|
|
27705
|
-
}
|
|
27706
|
-
acc[key] = value;
|
|
27707
|
-
return acc;
|
|
27708
|
-
}, {});
|
|
27709
|
-
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
|
|
27710
|
-
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
27711
|
-
return Object.entries(compoundVariantOptions).every((param2) => {
|
|
27712
|
-
let [key, value] = param2;
|
|
27713
|
-
return Array.isArray(value) ? value.includes({
|
|
27714
|
-
...defaultVariants,
|
|
27715
|
-
...propsWithoutUndefined
|
|
27716
|
-
}[key]) : {
|
|
27717
|
-
...defaultVariants,
|
|
27718
|
-
...propsWithoutUndefined
|
|
27719
|
-
}[key] === value;
|
|
27720
|
-
}) ? [
|
|
27721
|
-
...acc,
|
|
27722
|
-
cvClass,
|
|
27723
|
-
cvClassName
|
|
27724
|
-
] : acc;
|
|
27725
|
-
}, []);
|
|
27726
|
-
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
27727
|
-
};
|
|
27728
|
-
const u$3 = cva(
|
|
27729
|
-
n(
|
|
27730
|
-
"inline-flex items-center justify-center gap-2",
|
|
27731
|
-
"whitespace-nowrap rounded-md text-sm font-medium",
|
|
27732
|
-
"transition-colors",
|
|
27733
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
27734
|
-
"disabled:pointer-events-none",
|
|
27735
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0"
|
|
27736
|
-
),
|
|
27737
|
-
{
|
|
27738
|
-
variants: {
|
|
27739
|
-
variant: {
|
|
27740
|
-
default: "",
|
|
27741
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
27742
|
-
ghost: "hover:bg-accent hover:text-accent-foreground"
|
|
27743
|
-
}
|
|
27744
|
-
},
|
|
27745
|
-
defaultVariants: {
|
|
27746
|
-
variant: "default"
|
|
27747
|
-
}
|
|
27748
|
-
}
|
|
27749
|
-
), b$3 = React__default.forwardRef(
|
|
27750
|
-
({ variant: e2, className: o2, asChild: n$12 = false, ...r2 }, i2) => /* @__PURE__ */ jsx$1(
|
|
27751
|
-
n$12 ? Slot : "button",
|
|
27752
|
-
{
|
|
27753
|
-
className: n(u$3({ variant: e2, className: o2 })),
|
|
27754
|
-
ref: i2,
|
|
27755
|
-
...r2
|
|
27756
|
-
}
|
|
27757
|
-
)
|
|
27758
|
-
);
|
|
27759
27773
|
const l$1 = ({ children: o2 }) => /* @__PURE__ */ jsx$1("div", { className: "flex flex-col gap-2", children: o2 });
|
|
27760
27774
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
27761
27775
|
createPopperScope
|
|
@@ -28223,11 +28237,11 @@ var Root3 = Tooltip;
|
|
|
28223
28237
|
var Trigger = TooltipTrigger;
|
|
28224
28238
|
var Portal = TooltipPortal;
|
|
28225
28239
|
var Content2 = TooltipContent;
|
|
28226
|
-
const b$2 = React.forwardRef(({ children: e2, className: r2, ...
|
|
28240
|
+
const b$2 = React.forwardRef(({ children: e2, className: r2, ...o2 }, a2) => /* @__PURE__ */ jsx$1(
|
|
28227
28241
|
Content2,
|
|
28228
28242
|
{
|
|
28229
28243
|
ref: a2,
|
|
28230
|
-
...
|
|
28244
|
+
...o2,
|
|
28231
28245
|
className: n(
|
|
28232
28246
|
// Base styles
|
|
28233
28247
|
"z-50 overflow-hidden rounded-md text-sm",
|
|
@@ -28250,7 +28264,7 @@ const b$2 = React.forwardRef(({ children: e2, className: r2, ...t2 }, a2) => /*
|
|
|
28250
28264
|
)), R$1 = ({
|
|
28251
28265
|
content: e2,
|
|
28252
28266
|
children: r2,
|
|
28253
|
-
triggerAsChild:
|
|
28267
|
+
triggerAsChild: o2 = false,
|
|
28254
28268
|
delayDuration: a2 = 0,
|
|
28255
28269
|
...d2
|
|
28256
28270
|
}) => {
|
|
@@ -28266,8 +28280,8 @@ const b$2 = React.forwardRef(({ children: e2, className: r2, ...t2 }, a2) => /*
|
|
|
28266
28280
|
/* @__PURE__ */ jsx$1(
|
|
28267
28281
|
Trigger,
|
|
28268
28282
|
{
|
|
28269
|
-
asChild:
|
|
28270
|
-
type:
|
|
28283
|
+
asChild: o2,
|
|
28284
|
+
type: o2 ? void 0 : "button",
|
|
28271
28285
|
children: r2
|
|
28272
28286
|
}
|
|
28273
28287
|
),
|
|
@@ -28403,11 +28417,11 @@ const B$1 = React__default.forwardRef(
|
|
|
28403
28417
|
id: F,
|
|
28404
28418
|
name: w2,
|
|
28405
28419
|
label: c2,
|
|
28406
|
-
required:
|
|
28420
|
+
required: s2,
|
|
28407
28421
|
disabled: d2,
|
|
28408
28422
|
// validation props
|
|
28409
28423
|
errors: i2 = [],
|
|
28410
|
-
warnings:
|
|
28424
|
+
warnings: f2 = [],
|
|
28411
28425
|
// behavior props
|
|
28412
28426
|
multiple: t2,
|
|
28413
28427
|
selectionIcon: x2 = "auto",
|
|
@@ -28446,7 +28460,7 @@ const B$1 = React__default.forwardRef(
|
|
|
28446
28460
|
N$2,
|
|
28447
28461
|
{
|
|
28448
28462
|
htmlFor: h2,
|
|
28449
|
-
required:
|
|
28463
|
+
required: s2,
|
|
28450
28464
|
disabled: d2,
|
|
28451
28465
|
hasError: i2.length > 0,
|
|
28452
28466
|
inline: false,
|
|
@@ -28469,7 +28483,7 @@ const B$1 = React__default.forwardRef(
|
|
|
28469
28483
|
disabled: d2,
|
|
28470
28484
|
"aria-invalid": i2.length > 0,
|
|
28471
28485
|
"aria-label": c2 ? void 0 : t2 ? "Multi select" : "Select",
|
|
28472
|
-
"aria-required":
|
|
28486
|
+
"aria-required": s2,
|
|
28473
28487
|
"aria-expanded": l2,
|
|
28474
28488
|
className: n(
|
|
28475
28489
|
"flex h-9 w-full items-center justify-between px-3 py-2",
|
|
@@ -28521,7 +28535,7 @@ const B$1 = React__default.forwardRef(
|
|
|
28521
28535
|
) })
|
|
28522
28536
|
] }),
|
|
28523
28537
|
g2 && /* @__PURE__ */ jsx$1(p$3, { children: g2 }),
|
|
28524
|
-
|
|
28538
|
+
f2.length > 0 && /* @__PURE__ */ jsx$1(u$2, { messages: f2, type: "warning" }),
|
|
28525
28539
|
i2.length > 0 && /* @__PURE__ */ jsx$1(u$2, { messages: i2, type: "error" })
|
|
28526
28540
|
] });
|
|
28527
28541
|
}
|
|
@@ -28580,14 +28594,14 @@ const t = n(
|
|
|
28580
28594
|
}
|
|
28581
28595
|
)
|
|
28582
28596
|
);
|
|
28583
|
-
const y$2 = (
|
|
28584
|
-
const { onInstall: l2, className:
|
|
28597
|
+
const y$2 = (h2) => {
|
|
28598
|
+
const { onInstall: l2, className: u2 } = h2, [s2, n2] = useState(""), [o2, c2] = useState(false), [e2, m2] = useState(), i2 = useCallback(() => {
|
|
28585
28599
|
const t2 = l2(s2);
|
|
28586
28600
|
t2 ? (c2(true), t2.then(() => n2("")).catch(m2).finally(() => c2(false))) : (n2(""), m2(void 0));
|
|
28587
28601
|
}, [l2, s2]), f2 = useCallback((t2) => {
|
|
28588
28602
|
n2(t2.target.value);
|
|
28589
28603
|
}, []), p2 = e2 ? typeof e2 == "string" ? e2 : e2 instanceof Error ? e2.message : e2 : " ";
|
|
28590
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
28604
|
+
return /* @__PURE__ */ jsxs("div", { className: u2, children: [
|
|
28591
28605
|
/* @__PURE__ */ jsx$1("h3", { className: "mb-4 font-semibold text-gray-900", children: "Install Package" }),
|
|
28592
28606
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
28593
28607
|
/* @__PURE__ */ jsx$1(
|
|
@@ -31607,7 +31621,6 @@ function processSkipOperation(document2, action, customReducer, skipValue, reuse
|
|
|
31607
31621
|
scopeState = resultingStateParser(lastRemainingOperation.resultingState);
|
|
31608
31622
|
} else {
|
|
31609
31623
|
const { state } = replayOperations(document2.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
|
|
31610
|
-
reuseHash: true,
|
|
31611
31624
|
reuseOperationResultingState,
|
|
31612
31625
|
operationResultingStateParser: resultingStateParser
|
|
31613
31626
|
});
|
|
@@ -31634,7 +31647,6 @@ function processUndoOperation(document2, scope, customReducer, reuseOperationRes
|
|
|
31634
31647
|
const clearedOperations = [...documentOperations[scope]];
|
|
31635
31648
|
const diff = diffOperations(garbageCollect(sortedOperations), clearedOperations);
|
|
31636
31649
|
const doc = replayOperations(document2.initialState, documentOperations, customReducer, void 0, void 0, void 0, void 0, {
|
|
31637
|
-
reuseHash: true,
|
|
31638
31650
|
reuseOperationResultingState,
|
|
31639
31651
|
operationResultingStateParser: resultingStateParser
|
|
31640
31652
|
});
|
|
@@ -36893,56 +36905,41 @@ function y(o2) {
|
|
|
36893
36905
|
const { children: i2, wagmiProviderProps: e2, queryClientProviderProps: t2 } = o2, { config: n2 = m, ...m$12 } = e2 ?? {}, { client: c2 = P, ...l2 } = t2 ?? {};
|
|
36894
36906
|
return /* @__PURE__ */ jsx$1(WagmiProvider, { config: n2, ...m$12, children: /* @__PURE__ */ jsx$1(QueryClientProvider, { client: c2, ...l2, children: i2 }) });
|
|
36895
36907
|
}
|
|
36896
|
-
|
|
36897
|
-
function atom(read, write) {
|
|
36898
|
-
const key = `atom${++keyCount}`;
|
|
36899
|
-
const config = {
|
|
36900
|
-
toString() {
|
|
36901
|
-
return key;
|
|
36902
|
-
}
|
|
36903
|
-
};
|
|
36904
|
-
if (typeof read === "function") {
|
|
36905
|
-
config.read = read;
|
|
36906
|
-
} else {
|
|
36907
|
-
config.init = read;
|
|
36908
|
-
config.read = defaultRead;
|
|
36909
|
-
config.write = defaultWrite;
|
|
36910
|
-
}
|
|
36911
|
-
if (write) {
|
|
36912
|
-
config.write = write;
|
|
36913
|
-
}
|
|
36914
|
-
return config;
|
|
36915
|
-
}
|
|
36916
|
-
function defaultRead(get2) {
|
|
36917
|
-
return get2(this);
|
|
36918
|
-
}
|
|
36919
|
-
function defaultWrite(get2, set2, arg) {
|
|
36920
|
-
return set2(
|
|
36921
|
-
this,
|
|
36922
|
-
typeof arg === "function" ? arg(get2(this)) : arg
|
|
36923
|
-
);
|
|
36924
|
-
}
|
|
36908
|
+
const __vite_import_meta_env__$3 = {};
|
|
36925
36909
|
const isSelfAtom = (atom2, a2) => atom2.unstable_is ? atom2.unstable_is(a2) : a2 === atom2;
|
|
36926
36910
|
const hasInitialValue = (atom2) => "init" in atom2;
|
|
36927
36911
|
const isActuallyWritableAtom = (atom2) => !!atom2.write;
|
|
36928
|
-
const
|
|
36912
|
+
const isAtomStateInitialized = (atomState) => "v" in atomState || "e" in atomState;
|
|
36913
|
+
const returnAtomValue = (atomState) => {
|
|
36914
|
+
if ("e" in atomState) {
|
|
36915
|
+
throw atomState.e;
|
|
36916
|
+
}
|
|
36917
|
+
if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && !("v" in atomState)) {
|
|
36918
|
+
throw new Error("[Bug] atom state is not initialized");
|
|
36919
|
+
}
|
|
36920
|
+
return atomState.v;
|
|
36921
|
+
};
|
|
36922
|
+
const PROMISE_STATE = Symbol();
|
|
36923
|
+
const getPromiseState = (promise) => promise[PROMISE_STATE];
|
|
36929
36924
|
const isPendingPromise = (value) => {
|
|
36930
36925
|
var _a2;
|
|
36931
|
-
return isPromiseLike$2(value) && !((_a2 =
|
|
36926
|
+
return isPromiseLike$2(value) && !((_a2 = getPromiseState(value)) == null ? void 0 : _a2[1]);
|
|
36932
36927
|
};
|
|
36933
36928
|
const cancelPromise = (promise, nextValue) => {
|
|
36934
|
-
const promiseState =
|
|
36929
|
+
const promiseState = getPromiseState(promise);
|
|
36935
36930
|
if (promiseState) {
|
|
36936
36931
|
promiseState[1] = true;
|
|
36937
36932
|
promiseState[0].forEach((fn) => fn(nextValue));
|
|
36933
|
+
} else if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production") {
|
|
36934
|
+
throw new Error("[Bug] cancelable promise not found");
|
|
36938
36935
|
}
|
|
36939
36936
|
};
|
|
36940
36937
|
const patchPromiseForCancelability = (promise) => {
|
|
36941
|
-
if (
|
|
36938
|
+
if (getPromiseState(promise)) {
|
|
36942
36939
|
return;
|
|
36943
36940
|
}
|
|
36944
36941
|
const promiseState = [/* @__PURE__ */ new Set(), false];
|
|
36945
|
-
|
|
36942
|
+
promise[PROMISE_STATE] = promiseState;
|
|
36946
36943
|
const settle = () => {
|
|
36947
36944
|
promiseState[1] = true;
|
|
36948
36945
|
};
|
|
@@ -36952,13 +36949,6 @@ const patchPromiseForCancelability = (promise) => {
|
|
|
36952
36949
|
};
|
|
36953
36950
|
};
|
|
36954
36951
|
const isPromiseLike$2 = (p2) => typeof (p2 == null ? void 0 : p2.then) === "function";
|
|
36955
|
-
const isAtomStateInitialized = (atomState) => "v" in atomState || "e" in atomState;
|
|
36956
|
-
const returnAtomValue = (atomState) => {
|
|
36957
|
-
if ("e" in atomState) {
|
|
36958
|
-
throw atomState.e;
|
|
36959
|
-
}
|
|
36960
|
-
return atomState.v;
|
|
36961
|
-
};
|
|
36962
36952
|
const addPendingPromiseToDependency = (atom2, promise, dependencyAtomState) => {
|
|
36963
36953
|
if (!dependencyAtomState.p.has(atom2)) {
|
|
36964
36954
|
dependencyAtomState.p.add(atom2);
|
|
@@ -36972,54 +36962,122 @@ const addPendingPromiseToDependency = (atom2, promise, dependencyAtomState) => {
|
|
|
36972
36962
|
);
|
|
36973
36963
|
}
|
|
36974
36964
|
};
|
|
36975
|
-
const
|
|
36965
|
+
const setAtomStateValueOrPromise = (atom2, valueOrPromise, ensureAtomState) => {
|
|
36966
|
+
const atomState = ensureAtomState(atom2);
|
|
36967
|
+
const hasPrevValue = "v" in atomState;
|
|
36968
|
+
const prevValue = atomState.v;
|
|
36969
|
+
const pendingPromise = isPendingPromise(atomState.v) ? atomState.v : null;
|
|
36970
|
+
if (isPromiseLike$2(valueOrPromise)) {
|
|
36971
|
+
patchPromiseForCancelability(valueOrPromise);
|
|
36972
|
+
for (const a2 of atomState.d.keys()) {
|
|
36973
|
+
addPendingPromiseToDependency(atom2, valueOrPromise, ensureAtomState(a2));
|
|
36974
|
+
}
|
|
36975
|
+
}
|
|
36976
|
+
atomState.v = valueOrPromise;
|
|
36977
|
+
delete atomState.e;
|
|
36978
|
+
if (!hasPrevValue || !Object.is(prevValue, atomState.v)) {
|
|
36979
|
+
++atomState.n;
|
|
36980
|
+
if (pendingPromise) {
|
|
36981
|
+
cancelPromise(pendingPromise, valueOrPromise);
|
|
36982
|
+
}
|
|
36983
|
+
}
|
|
36984
|
+
};
|
|
36985
|
+
const getMountedOrPendingDependents = (atom2, atomState, mountedMap) => {
|
|
36976
36986
|
var _a2;
|
|
36977
|
-
|
|
36978
|
-
|
|
36979
|
-
|
|
36987
|
+
const dependents = /* @__PURE__ */ new Set();
|
|
36988
|
+
for (const a2 of ((_a2 = mountedMap.get(atom2)) == null ? void 0 : _a2.t) || []) {
|
|
36989
|
+
if (mountedMap.has(a2)) {
|
|
36990
|
+
dependents.add(a2);
|
|
36991
|
+
}
|
|
36980
36992
|
}
|
|
36981
|
-
(
|
|
36993
|
+
for (const atomWithPendingPromise of atomState.p) {
|
|
36994
|
+
dependents.add(atomWithPendingPromise);
|
|
36995
|
+
}
|
|
36996
|
+
return dependents;
|
|
36982
36997
|
};
|
|
36983
|
-
const
|
|
36984
|
-
const
|
|
36985
|
-
const
|
|
36986
|
-
|
|
36987
|
-
|
|
36988
|
-
|
|
36989
|
-
|
|
36990
|
-
|
|
36991
|
-
|
|
36992
|
-
|
|
36993
|
-
|
|
36994
|
-
|
|
36998
|
+
const createStoreHook = () => {
|
|
36999
|
+
const callbacks = /* @__PURE__ */ new Set();
|
|
37000
|
+
const notify = () => {
|
|
37001
|
+
callbacks.forEach((fn) => fn());
|
|
37002
|
+
};
|
|
37003
|
+
notify.add = (fn) => {
|
|
37004
|
+
callbacks.add(fn);
|
|
37005
|
+
return () => {
|
|
37006
|
+
callbacks.delete(fn);
|
|
37007
|
+
};
|
|
37008
|
+
};
|
|
37009
|
+
return notify;
|
|
37010
|
+
};
|
|
37011
|
+
const createStoreHookForAtoms = () => {
|
|
37012
|
+
const all = {};
|
|
37013
|
+
const callbacks = /* @__PURE__ */ new WeakMap();
|
|
37014
|
+
const notify = (atom2) => {
|
|
37015
|
+
var _a2, _b2;
|
|
37016
|
+
(_a2 = callbacks.get(all)) == null ? void 0 : _a2.forEach((fn) => fn(atom2));
|
|
37017
|
+
(_b2 = callbacks.get(atom2)) == null ? void 0 : _b2.forEach((fn) => fn());
|
|
37018
|
+
};
|
|
37019
|
+
notify.add = (atom2, fn) => {
|
|
37020
|
+
const key = atom2 || all;
|
|
37021
|
+
const fns = (callbacks.has(key) ? callbacks : callbacks.set(key, /* @__PURE__ */ new Set())).get(key);
|
|
37022
|
+
fns.add(fn);
|
|
37023
|
+
return () => {
|
|
37024
|
+
fns == null ? void 0 : fns.delete(fn);
|
|
37025
|
+
if (!fns.size) {
|
|
37026
|
+
callbacks.delete(key);
|
|
37027
|
+
}
|
|
37028
|
+
};
|
|
37029
|
+
};
|
|
37030
|
+
return notify;
|
|
37031
|
+
};
|
|
37032
|
+
const initializeStoreHooks = (storeHooks) => {
|
|
37033
|
+
storeHooks.c || (storeHooks.c = createStoreHookForAtoms());
|
|
37034
|
+
storeHooks.m || (storeHooks.m = createStoreHookForAtoms());
|
|
37035
|
+
storeHooks.u || (storeHooks.u = createStoreHookForAtoms());
|
|
37036
|
+
storeHooks.f || (storeHooks.f = createStoreHook());
|
|
37037
|
+
return storeHooks;
|
|
37038
|
+
};
|
|
37039
|
+
const BUILDING_BLOCKS = Symbol();
|
|
37040
|
+
const buildStore = (atomStateMap = /* @__PURE__ */ new WeakMap(), mountedMap = /* @__PURE__ */ new WeakMap(), invalidatedAtoms = /* @__PURE__ */ new WeakMap(), changedAtoms = /* @__PURE__ */ new Set(), mountCallbacks = /* @__PURE__ */ new Set(), unmountCallbacks = /* @__PURE__ */ new Set(), storeHooks = {}, atomRead = (atom2, ...params) => atom2.read(...params), atomWrite = (atom2, ...params) => atom2.write(...params), atomOnInit = (atom2, store) => {
|
|
37041
|
+
var _a2;
|
|
37042
|
+
return (_a2 = atom2.unstable_onInit) == null ? void 0 : _a2.call(atom2, store);
|
|
37043
|
+
}, atomOnMount = (atom2, setAtom) => {
|
|
37044
|
+
var _a2;
|
|
37045
|
+
return (_a2 = atom2.onMount) == null ? void 0 : _a2.call(atom2, setAtom);
|
|
37046
|
+
}, ...buildingBlockFunctions) => {
|
|
37047
|
+
const ensureAtomState = buildingBlockFunctions[0] || ((atom2) => {
|
|
37048
|
+
if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && !atom2) {
|
|
37049
|
+
throw new Error("Atom is undefined or null");
|
|
37050
|
+
}
|
|
37051
|
+
let atomState = atomStateMap.get(atom2);
|
|
36995
37052
|
if (!atomState) {
|
|
36996
37053
|
atomState = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 };
|
|
36997
|
-
|
|
37054
|
+
atomStateMap.set(atom2, atomState);
|
|
36998
37055
|
atomOnInit == null ? void 0 : atomOnInit(atom2, store);
|
|
36999
37056
|
}
|
|
37000
37057
|
return atomState;
|
|
37001
|
-
};
|
|
37002
|
-
const
|
|
37003
|
-
|
|
37004
|
-
|
|
37005
|
-
const mountCallbacks = /* @__PURE__ */ new Set();
|
|
37006
|
-
const flushCallbacks = () => {
|
|
37007
|
-
var _a2;
|
|
37008
|
-
const errors = [];
|
|
37058
|
+
});
|
|
37059
|
+
const flushCallbacks = buildingBlockFunctions[1] || (() => {
|
|
37060
|
+
let hasError;
|
|
37061
|
+
let error;
|
|
37009
37062
|
const call = (fn) => {
|
|
37010
37063
|
try {
|
|
37011
37064
|
fn();
|
|
37012
37065
|
} catch (e2) {
|
|
37013
|
-
|
|
37066
|
+
if (!hasError) {
|
|
37067
|
+
hasError = true;
|
|
37068
|
+
error = e2;
|
|
37069
|
+
}
|
|
37014
37070
|
}
|
|
37015
37071
|
};
|
|
37016
37072
|
do {
|
|
37017
|
-
(
|
|
37073
|
+
if (storeHooks.f) {
|
|
37074
|
+
call(storeHooks.f);
|
|
37075
|
+
}
|
|
37018
37076
|
const callbacks = /* @__PURE__ */ new Set();
|
|
37019
37077
|
const add = callbacks.add.bind(callbacks);
|
|
37020
|
-
changedAtoms.forEach((
|
|
37021
|
-
var
|
|
37022
|
-
return (
|
|
37078
|
+
changedAtoms.forEach((atom2) => {
|
|
37079
|
+
var _a2;
|
|
37080
|
+
return (_a2 = mountedMap.get(atom2)) == null ? void 0 : _a2.l.forEach(add);
|
|
37023
37081
|
});
|
|
37024
37082
|
changedAtoms.clear();
|
|
37025
37083
|
unmountCallbacks.forEach(add);
|
|
@@ -37031,36 +37089,60 @@ const buildStore = (...storeArgs) => {
|
|
|
37031
37089
|
recomputeInvalidatedAtoms();
|
|
37032
37090
|
}
|
|
37033
37091
|
} while (changedAtoms.size || unmountCallbacks.size || mountCallbacks.size);
|
|
37034
|
-
if (
|
|
37035
|
-
throw
|
|
37092
|
+
if (hasError) {
|
|
37093
|
+
throw error;
|
|
37036
37094
|
}
|
|
37037
|
-
};
|
|
37038
|
-
const
|
|
37039
|
-
const
|
|
37040
|
-
const
|
|
37041
|
-
const
|
|
37042
|
-
|
|
37043
|
-
|
|
37044
|
-
|
|
37045
|
-
|
|
37095
|
+
});
|
|
37096
|
+
const recomputeInvalidatedAtoms = buildingBlockFunctions[2] || (() => {
|
|
37097
|
+
const topSortedReversed = [];
|
|
37098
|
+
const visiting = /* @__PURE__ */ new WeakSet();
|
|
37099
|
+
const visited = /* @__PURE__ */ new WeakSet();
|
|
37100
|
+
const stack = Array.from(changedAtoms);
|
|
37101
|
+
while (stack.length) {
|
|
37102
|
+
const a2 = stack[stack.length - 1];
|
|
37103
|
+
const aState = ensureAtomState(a2);
|
|
37104
|
+
if (visited.has(a2)) {
|
|
37105
|
+
stack.pop();
|
|
37106
|
+
continue;
|
|
37107
|
+
}
|
|
37108
|
+
if (visiting.has(a2)) {
|
|
37109
|
+
if (invalidatedAtoms.get(a2) === aState.n) {
|
|
37110
|
+
topSortedReversed.push([a2, aState]);
|
|
37111
|
+
} else if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && invalidatedAtoms.has(a2)) {
|
|
37112
|
+
throw new Error("[Bug] invalidated atom exists");
|
|
37113
|
+
}
|
|
37114
|
+
visited.add(a2);
|
|
37115
|
+
stack.pop();
|
|
37116
|
+
continue;
|
|
37117
|
+
}
|
|
37118
|
+
visiting.add(a2);
|
|
37119
|
+
for (const d2 of getMountedOrPendingDependents(a2, aState, mountedMap)) {
|
|
37120
|
+
if (!visiting.has(d2)) {
|
|
37121
|
+
stack.push(d2);
|
|
37122
|
+
}
|
|
37046
37123
|
}
|
|
37047
|
-
atomState.v = valueOrPromise;
|
|
37048
|
-
} else {
|
|
37049
|
-
atomState.v = valueOrPromise;
|
|
37050
37124
|
}
|
|
37051
|
-
|
|
37052
|
-
|
|
37053
|
-
|
|
37054
|
-
|
|
37055
|
-
|
|
37125
|
+
for (let i2 = topSortedReversed.length - 1; i2 >= 0; --i2) {
|
|
37126
|
+
const [a2, aState] = topSortedReversed[i2];
|
|
37127
|
+
let hasChangedDeps = false;
|
|
37128
|
+
for (const dep of aState.d.keys()) {
|
|
37129
|
+
if (dep !== a2 && changedAtoms.has(dep)) {
|
|
37130
|
+
hasChangedDeps = true;
|
|
37131
|
+
break;
|
|
37132
|
+
}
|
|
37056
37133
|
}
|
|
37134
|
+
if (hasChangedDeps) {
|
|
37135
|
+
readAtomState(a2);
|
|
37136
|
+
mountDependencies(a2);
|
|
37137
|
+
}
|
|
37138
|
+
invalidatedAtoms.delete(a2);
|
|
37057
37139
|
}
|
|
37058
|
-
};
|
|
37059
|
-
const readAtomState = (atom2) => {
|
|
37060
|
-
var _a2;
|
|
37140
|
+
});
|
|
37141
|
+
const readAtomState = buildingBlockFunctions[3] || ((atom2) => {
|
|
37142
|
+
var _a2, _b2;
|
|
37061
37143
|
const atomState = ensureAtomState(atom2);
|
|
37062
37144
|
if (isAtomStateInitialized(atomState)) {
|
|
37063
|
-
if (
|
|
37145
|
+
if (mountedMap.has(atom2) && invalidatedAtoms.get(atom2) !== atomState.n) {
|
|
37064
37146
|
return atomState;
|
|
37065
37147
|
}
|
|
37066
37148
|
if (Array.from(atomState.d).every(
|
|
@@ -37076,18 +37158,19 @@ const buildStore = (...storeArgs) => {
|
|
|
37076
37158
|
atomState.d.clear();
|
|
37077
37159
|
let isSync = true;
|
|
37078
37160
|
const mountDependenciesIfAsync = () => {
|
|
37079
|
-
if (
|
|
37080
|
-
mountDependencies(atom2
|
|
37161
|
+
if (mountedMap.has(atom2)) {
|
|
37162
|
+
mountDependencies(atom2);
|
|
37081
37163
|
recomputeInvalidatedAtoms();
|
|
37082
37164
|
flushCallbacks();
|
|
37083
37165
|
}
|
|
37084
37166
|
};
|
|
37085
37167
|
const getter = (a2) => {
|
|
37168
|
+
var _a22;
|
|
37086
37169
|
if (isSelfAtom(atom2, a2)) {
|
|
37087
37170
|
const aState2 = ensureAtomState(a2);
|
|
37088
37171
|
if (!isAtomStateInitialized(aState2)) {
|
|
37089
37172
|
if (hasInitialValue(a2)) {
|
|
37090
|
-
setAtomStateValueOrPromise(a2,
|
|
37173
|
+
setAtomStateValueOrPromise(a2, a2.init, ensureAtomState);
|
|
37091
37174
|
} else {
|
|
37092
37175
|
throw new Error("no atom init");
|
|
37093
37176
|
}
|
|
@@ -37098,7 +37181,11 @@ const buildStore = (...storeArgs) => {
|
|
|
37098
37181
|
try {
|
|
37099
37182
|
return returnAtomValue(aState);
|
|
37100
37183
|
} finally {
|
|
37101
|
-
|
|
37184
|
+
atomState.d.set(a2, aState.n);
|
|
37185
|
+
if (isPendingPromise(atomState.v)) {
|
|
37186
|
+
addPendingPromiseToDependency(atom2, atomState.v, aState);
|
|
37187
|
+
}
|
|
37188
|
+
(_a22 = mountedMap.get(a2)) == null ? void 0 : _a22.t.add(atom2);
|
|
37102
37189
|
if (!isSync) {
|
|
37103
37190
|
mountDependenciesIfAsync();
|
|
37104
37191
|
}
|
|
@@ -37114,22 +37201,37 @@ const buildStore = (...storeArgs) => {
|
|
|
37114
37201
|
return controller.signal;
|
|
37115
37202
|
},
|
|
37116
37203
|
get setSelf() {
|
|
37204
|
+
if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && !isActuallyWritableAtom(atom2)) {
|
|
37205
|
+
console.warn("setSelf function cannot be used with read-only atom");
|
|
37206
|
+
}
|
|
37117
37207
|
if (!setSelf && isActuallyWritableAtom(atom2)) {
|
|
37118
37208
|
setSelf = (...args) => {
|
|
37209
|
+
if ((__vite_import_meta_env__$3 ? "production" : void 0) !== "production" && isSync) {
|
|
37210
|
+
console.warn("setSelf function cannot be called in sync");
|
|
37211
|
+
}
|
|
37119
37212
|
if (!isSync) {
|
|
37120
|
-
|
|
37213
|
+
try {
|
|
37214
|
+
return writeAtomState(atom2, ...args);
|
|
37215
|
+
} finally {
|
|
37216
|
+
recomputeInvalidatedAtoms();
|
|
37217
|
+
flushCallbacks();
|
|
37218
|
+
}
|
|
37121
37219
|
}
|
|
37122
37220
|
};
|
|
37123
37221
|
}
|
|
37124
37222
|
return setSelf;
|
|
37125
37223
|
}
|
|
37126
37224
|
};
|
|
37225
|
+
const prevEpochNumber = atomState.n;
|
|
37127
37226
|
try {
|
|
37128
37227
|
const valueOrPromise = atomRead(atom2, getter, options);
|
|
37129
|
-
setAtomStateValueOrPromise(atom2,
|
|
37228
|
+
setAtomStateValueOrPromise(atom2, valueOrPromise, ensureAtomState);
|
|
37130
37229
|
if (isPromiseLike$2(valueOrPromise)) {
|
|
37131
37230
|
(_a2 = valueOrPromise.onCancel) == null ? void 0 : _a2.call(valueOrPromise, () => controller == null ? void 0 : controller.abort());
|
|
37132
|
-
valueOrPromise.then(
|
|
37231
|
+
valueOrPromise.then(
|
|
37232
|
+
mountDependenciesIfAsync,
|
|
37233
|
+
mountDependenciesIfAsync
|
|
37234
|
+
);
|
|
37133
37235
|
}
|
|
37134
37236
|
return atomState;
|
|
37135
37237
|
} catch (error) {
|
|
@@ -37139,89 +37241,26 @@ const buildStore = (...storeArgs) => {
|
|
|
37139
37241
|
return atomState;
|
|
37140
37242
|
} finally {
|
|
37141
37243
|
isSync = false;
|
|
37142
|
-
|
|
37143
|
-
|
|
37144
|
-
|
|
37145
|
-
|
|
37146
|
-
var _a2;
|
|
37147
|
-
const dependents = /* @__PURE__ */ new Map();
|
|
37148
|
-
for (const a2 of ((_a2 = atomState.m) == null ? void 0 : _a2.t) || []) {
|
|
37149
|
-
const aState = ensureAtomState(a2);
|
|
37150
|
-
if (aState.m) {
|
|
37151
|
-
dependents.set(a2, aState);
|
|
37244
|
+
if (prevEpochNumber !== atomState.n && invalidatedAtoms.get(atom2) === prevEpochNumber) {
|
|
37245
|
+
invalidatedAtoms.set(atom2, atomState.n);
|
|
37246
|
+
changedAtoms.add(atom2);
|
|
37247
|
+
(_b2 = storeHooks.c) == null ? void 0 : _b2.call(storeHooks, atom2);
|
|
37152
37248
|
}
|
|
37153
37249
|
}
|
|
37154
|
-
|
|
37155
|
-
|
|
37156
|
-
|
|
37157
|
-
ensureAtomState(atomWithPendingPromise)
|
|
37158
|
-
);
|
|
37159
|
-
}
|
|
37160
|
-
return dependents;
|
|
37161
|
-
};
|
|
37162
|
-
const invalidateDependents = (atomState) => {
|
|
37163
|
-
const stack = [atomState];
|
|
37164
|
-
while (stack.length) {
|
|
37165
|
-
const aState = stack.pop();
|
|
37166
|
-
for (const [d2, s2] of getMountedOrPendingDependents(aState)) {
|
|
37167
|
-
if (!invalidatedAtoms.has(d2)) {
|
|
37168
|
-
invalidatedAtoms.set(d2, s2.n);
|
|
37169
|
-
stack.push(s2);
|
|
37170
|
-
}
|
|
37171
|
-
}
|
|
37172
|
-
}
|
|
37173
|
-
};
|
|
37174
|
-
const recomputeInvalidatedAtoms = () => {
|
|
37175
|
-
var _a2;
|
|
37176
|
-
const topSortedReversed = [];
|
|
37177
|
-
const visiting = /* @__PURE__ */ new WeakSet();
|
|
37178
|
-
const visited = /* @__PURE__ */ new WeakSet();
|
|
37179
|
-
const stack = Array.from(changedAtoms);
|
|
37250
|
+
});
|
|
37251
|
+
const invalidateDependents = buildingBlockFunctions[4] || ((atom2) => {
|
|
37252
|
+
const stack = [atom2];
|
|
37180
37253
|
while (stack.length) {
|
|
37181
|
-
const
|
|
37182
|
-
|
|
37183
|
-
|
|
37184
|
-
|
|
37185
|
-
|
|
37186
|
-
|
|
37187
|
-
if (invalidatedAtoms.get(a2) === aState.n) {
|
|
37188
|
-
topSortedReversed.push([a2, aState, aState.n]);
|
|
37189
|
-
} else {
|
|
37190
|
-
invalidatedAtoms.delete(a2);
|
|
37191
|
-
changedAtoms.set(a2, aState);
|
|
37192
|
-
}
|
|
37193
|
-
visited.add(a2);
|
|
37194
|
-
stack.pop();
|
|
37195
|
-
continue;
|
|
37196
|
-
}
|
|
37197
|
-
visiting.add(a2);
|
|
37198
|
-
for (const [d2, s2] of getMountedOrPendingDependents(aState)) {
|
|
37199
|
-
if (!visiting.has(d2)) {
|
|
37200
|
-
stack.push([d2, s2]);
|
|
37201
|
-
}
|
|
37202
|
-
}
|
|
37203
|
-
}
|
|
37204
|
-
for (let i2 = topSortedReversed.length - 1; i2 >= 0; --i2) {
|
|
37205
|
-
const [a2, aState, prevEpochNumber] = topSortedReversed[i2];
|
|
37206
|
-
let hasChangedDeps = false;
|
|
37207
|
-
for (const dep of aState.d.keys()) {
|
|
37208
|
-
if (dep !== a2 && changedAtoms.has(dep)) {
|
|
37209
|
-
hasChangedDeps = true;
|
|
37210
|
-
break;
|
|
37211
|
-
}
|
|
37212
|
-
}
|
|
37213
|
-
if (hasChangedDeps) {
|
|
37214
|
-
readAtomState(a2);
|
|
37215
|
-
mountDependencies(a2, aState);
|
|
37216
|
-
if (prevEpochNumber !== aState.n) {
|
|
37217
|
-
changedAtoms.set(a2, aState);
|
|
37218
|
-
(_a2 = aState.u) == null ? void 0 : _a2.call(aState);
|
|
37219
|
-
}
|
|
37254
|
+
const a2 = stack.pop();
|
|
37255
|
+
const aState = ensureAtomState(a2);
|
|
37256
|
+
for (const d2 of getMountedOrPendingDependents(a2, aState, mountedMap)) {
|
|
37257
|
+
const dState = ensureAtomState(d2);
|
|
37258
|
+
invalidatedAtoms.set(d2, dState.n);
|
|
37259
|
+
stack.push(d2);
|
|
37220
37260
|
}
|
|
37221
|
-
invalidatedAtoms.delete(a2);
|
|
37222
37261
|
}
|
|
37223
|
-
};
|
|
37224
|
-
const writeAtomState = (atom2, ...args) => {
|
|
37262
|
+
});
|
|
37263
|
+
const writeAtomState = buildingBlockFunctions[5] || ((atom2, ...args) => {
|
|
37225
37264
|
let isSync = true;
|
|
37226
37265
|
const getter = (a2) => returnAtomValue(readAtomState(a2));
|
|
37227
37266
|
const setter = (a2, ...args2) => {
|
|
@@ -37234,12 +37273,12 @@ const buildStore = (...storeArgs) => {
|
|
|
37234
37273
|
}
|
|
37235
37274
|
const prevEpochNumber = aState.n;
|
|
37236
37275
|
const v2 = args2[0];
|
|
37237
|
-
setAtomStateValueOrPromise(a2,
|
|
37238
|
-
mountDependencies(a2
|
|
37276
|
+
setAtomStateValueOrPromise(a2, v2, ensureAtomState);
|
|
37277
|
+
mountDependencies(a2);
|
|
37239
37278
|
if (prevEpochNumber !== aState.n) {
|
|
37240
|
-
changedAtoms.
|
|
37241
|
-
(_a2 =
|
|
37242
|
-
invalidateDependents(
|
|
37279
|
+
changedAtoms.add(a2);
|
|
37280
|
+
(_a2 = storeHooks.c) == null ? void 0 : _a2.call(storeHooks, a2);
|
|
37281
|
+
invalidateDependents(a2);
|
|
37243
37282
|
}
|
|
37244
37283
|
return void 0;
|
|
37245
37284
|
} else {
|
|
@@ -37257,56 +37296,52 @@ const buildStore = (...storeArgs) => {
|
|
|
37257
37296
|
} finally {
|
|
37258
37297
|
isSync = false;
|
|
37259
37298
|
}
|
|
37260
|
-
};
|
|
37261
|
-
const
|
|
37262
|
-
try {
|
|
37263
|
-
return writeAtomState(atom2, ...args);
|
|
37264
|
-
} finally {
|
|
37265
|
-
recomputeInvalidatedAtoms();
|
|
37266
|
-
flushCallbacks();
|
|
37267
|
-
}
|
|
37268
|
-
};
|
|
37269
|
-
const mountDependencies = (atom2, atomState) => {
|
|
37299
|
+
});
|
|
37300
|
+
const mountDependencies = buildingBlockFunctions[6] || ((atom2) => {
|
|
37270
37301
|
var _a2;
|
|
37271
|
-
|
|
37302
|
+
const atomState = ensureAtomState(atom2);
|
|
37303
|
+
const mounted = mountedMap.get(atom2);
|
|
37304
|
+
if (mounted && !isPendingPromise(atomState.v)) {
|
|
37272
37305
|
for (const [a2, n2] of atomState.d) {
|
|
37273
|
-
if (!
|
|
37306
|
+
if (!mounted.d.has(a2)) {
|
|
37274
37307
|
const aState = ensureAtomState(a2);
|
|
37275
|
-
const aMounted = mountAtom(a2
|
|
37308
|
+
const aMounted = mountAtom(a2);
|
|
37276
37309
|
aMounted.t.add(atom2);
|
|
37277
|
-
|
|
37310
|
+
mounted.d.add(a2);
|
|
37278
37311
|
if (n2 !== aState.n) {
|
|
37279
|
-
changedAtoms.
|
|
37280
|
-
(_a2 =
|
|
37281
|
-
invalidateDependents(
|
|
37312
|
+
changedAtoms.add(a2);
|
|
37313
|
+
(_a2 = storeHooks.c) == null ? void 0 : _a2.call(storeHooks, a2);
|
|
37314
|
+
invalidateDependents(a2);
|
|
37282
37315
|
}
|
|
37283
37316
|
}
|
|
37284
37317
|
}
|
|
37285
|
-
for (const a2 of
|
|
37318
|
+
for (const a2 of mounted.d || []) {
|
|
37286
37319
|
if (!atomState.d.has(a2)) {
|
|
37287
|
-
|
|
37288
|
-
const aMounted = unmountAtom(a2
|
|
37320
|
+
mounted.d.delete(a2);
|
|
37321
|
+
const aMounted = unmountAtom(a2);
|
|
37289
37322
|
aMounted == null ? void 0 : aMounted.t.delete(atom2);
|
|
37290
37323
|
}
|
|
37291
37324
|
}
|
|
37292
37325
|
}
|
|
37293
|
-
};
|
|
37294
|
-
const mountAtom = (atom2
|
|
37326
|
+
});
|
|
37327
|
+
const mountAtom = buildingBlockFunctions[7] || ((atom2) => {
|
|
37295
37328
|
var _a2;
|
|
37296
|
-
|
|
37329
|
+
const atomState = ensureAtomState(atom2);
|
|
37330
|
+
let mounted = mountedMap.get(atom2);
|
|
37331
|
+
if (!mounted) {
|
|
37297
37332
|
readAtomState(atom2);
|
|
37298
37333
|
for (const a2 of atomState.d.keys()) {
|
|
37299
|
-
const aMounted = mountAtom(a2
|
|
37334
|
+
const aMounted = mountAtom(a2);
|
|
37300
37335
|
aMounted.t.add(atom2);
|
|
37301
37336
|
}
|
|
37302
|
-
|
|
37337
|
+
mounted = {
|
|
37303
37338
|
l: /* @__PURE__ */ new Set(),
|
|
37304
37339
|
d: new Set(atomState.d.keys()),
|
|
37305
37340
|
t: /* @__PURE__ */ new Set()
|
|
37306
37341
|
};
|
|
37307
|
-
(
|
|
37342
|
+
mountedMap.set(atom2, mounted);
|
|
37343
|
+
(_a2 = storeHooks.m) == null ? void 0 : _a2.call(storeHooks, atom2);
|
|
37308
37344
|
if (isActuallyWritableAtom(atom2)) {
|
|
37309
|
-
const mounted = atomState.m;
|
|
37310
37345
|
const processOnMount = () => {
|
|
37311
37346
|
let isSync = true;
|
|
37312
37347
|
const setAtom = (...args) => {
|
|
@@ -37338,74 +37373,192 @@ const buildStore = (...storeArgs) => {
|
|
|
37338
37373
|
mountCallbacks.add(processOnMount);
|
|
37339
37374
|
}
|
|
37340
37375
|
}
|
|
37341
|
-
return
|
|
37342
|
-
};
|
|
37343
|
-
const unmountAtom = (atom2
|
|
37376
|
+
return mounted;
|
|
37377
|
+
});
|
|
37378
|
+
const unmountAtom = buildingBlockFunctions[8] || ((atom2) => {
|
|
37344
37379
|
var _a2;
|
|
37345
|
-
|
|
37380
|
+
const atomState = ensureAtomState(atom2);
|
|
37381
|
+
let mounted = mountedMap.get(atom2);
|
|
37382
|
+
if (mounted && !mounted.l.size && !Array.from(mounted.t).some((a2) => {
|
|
37346
37383
|
var _a22;
|
|
37347
|
-
return (_a22 =
|
|
37384
|
+
return (_a22 = mountedMap.get(a2)) == null ? void 0 : _a22.d.has(atom2);
|
|
37348
37385
|
})) {
|
|
37349
|
-
|
|
37350
|
-
|
|
37351
|
-
unmountCallbacks.add(onUnmount);
|
|
37386
|
+
if (mounted.u) {
|
|
37387
|
+
unmountCallbacks.add(mounted.u);
|
|
37352
37388
|
}
|
|
37353
|
-
|
|
37354
|
-
|
|
37389
|
+
mounted = void 0;
|
|
37390
|
+
mountedMap.delete(atom2);
|
|
37391
|
+
(_a2 = storeHooks.u) == null ? void 0 : _a2.call(storeHooks, atom2);
|
|
37355
37392
|
for (const a2 of atomState.d.keys()) {
|
|
37356
|
-
const aMounted = unmountAtom(a2
|
|
37393
|
+
const aMounted = unmountAtom(a2);
|
|
37357
37394
|
aMounted == null ? void 0 : aMounted.t.delete(atom2);
|
|
37358
37395
|
}
|
|
37359
37396
|
return void 0;
|
|
37360
37397
|
}
|
|
37361
|
-
return
|
|
37362
|
-
};
|
|
37363
|
-
const
|
|
37364
|
-
|
|
37365
|
-
|
|
37366
|
-
|
|
37367
|
-
|
|
37368
|
-
|
|
37369
|
-
|
|
37370
|
-
|
|
37371
|
-
|
|
37372
|
-
|
|
37373
|
-
|
|
37374
|
-
|
|
37375
|
-
|
|
37398
|
+
return mounted;
|
|
37399
|
+
});
|
|
37400
|
+
const buildingBlocks = [
|
|
37401
|
+
// store state
|
|
37402
|
+
atomStateMap,
|
|
37403
|
+
mountedMap,
|
|
37404
|
+
invalidatedAtoms,
|
|
37405
|
+
changedAtoms,
|
|
37406
|
+
mountCallbacks,
|
|
37407
|
+
unmountCallbacks,
|
|
37408
|
+
storeHooks,
|
|
37409
|
+
// atom intercepters
|
|
37410
|
+
atomRead,
|
|
37411
|
+
atomWrite,
|
|
37412
|
+
atomOnInit,
|
|
37413
|
+
atomOnMount,
|
|
37414
|
+
// building-block functions
|
|
37415
|
+
ensureAtomState,
|
|
37416
|
+
flushCallbacks,
|
|
37417
|
+
recomputeInvalidatedAtoms,
|
|
37418
|
+
readAtomState,
|
|
37419
|
+
invalidateDependents,
|
|
37420
|
+
writeAtomState,
|
|
37421
|
+
mountDependencies,
|
|
37422
|
+
mountAtom,
|
|
37423
|
+
unmountAtom
|
|
37424
|
+
];
|
|
37376
37425
|
const store = {
|
|
37377
|
-
get:
|
|
37378
|
-
set:
|
|
37379
|
-
|
|
37380
|
-
|
|
37426
|
+
get: (atom2) => returnAtomValue(readAtomState(atom2)),
|
|
37427
|
+
set: (atom2, ...args) => {
|
|
37428
|
+
try {
|
|
37429
|
+
return writeAtomState(atom2, ...args);
|
|
37430
|
+
} finally {
|
|
37431
|
+
recomputeInvalidatedAtoms();
|
|
37432
|
+
flushCallbacks();
|
|
37433
|
+
}
|
|
37434
|
+
},
|
|
37435
|
+
sub: (atom2, listener) => {
|
|
37436
|
+
const mounted = mountAtom(atom2);
|
|
37437
|
+
const listeners = mounted.l;
|
|
37438
|
+
listeners.add(listener);
|
|
37439
|
+
flushCallbacks();
|
|
37440
|
+
return () => {
|
|
37441
|
+
listeners.delete(listener);
|
|
37442
|
+
unmountAtom(atom2);
|
|
37443
|
+
flushCallbacks();
|
|
37444
|
+
};
|
|
37445
|
+
}
|
|
37381
37446
|
};
|
|
37447
|
+
Object.defineProperty(store, BUILDING_BLOCKS, { value: buildingBlocks });
|
|
37382
37448
|
return store;
|
|
37383
37449
|
};
|
|
37384
|
-
const
|
|
37450
|
+
const INTERNAL_buildStoreRev1 = buildStore;
|
|
37451
|
+
const INTERNAL_initializeStoreHooks = initializeStoreHooks;
|
|
37452
|
+
const __vite_import_meta_env__$2 = {};
|
|
37453
|
+
let keyCount = 0;
|
|
37454
|
+
function atom(read, write) {
|
|
37455
|
+
const key = `atom${++keyCount}`;
|
|
37456
|
+
const config = {
|
|
37457
|
+
toString() {
|
|
37458
|
+
return (__vite_import_meta_env__$2 ? "production" : void 0) !== "production" && this.debugLabel ? key + ":" + this.debugLabel : key;
|
|
37459
|
+
}
|
|
37460
|
+
};
|
|
37461
|
+
if (typeof read === "function") {
|
|
37462
|
+
config.read = read;
|
|
37463
|
+
} else {
|
|
37464
|
+
config.init = read;
|
|
37465
|
+
config.read = defaultRead;
|
|
37466
|
+
config.write = defaultWrite;
|
|
37467
|
+
}
|
|
37468
|
+
if (write) {
|
|
37469
|
+
config.write = write;
|
|
37470
|
+
}
|
|
37471
|
+
return config;
|
|
37472
|
+
}
|
|
37473
|
+
function defaultRead(get2) {
|
|
37474
|
+
return get2(this);
|
|
37475
|
+
}
|
|
37476
|
+
function defaultWrite(get2, set2, arg) {
|
|
37477
|
+
return set2(
|
|
37478
|
+
this,
|
|
37479
|
+
typeof arg === "function" ? arg(get2(this)) : arg
|
|
37480
|
+
);
|
|
37481
|
+
}
|
|
37482
|
+
const createDevStoreRev4 = () => {
|
|
37483
|
+
let inRestoreAtom = 0;
|
|
37484
|
+
const storeHooks = INTERNAL_initializeStoreHooks({});
|
|
37385
37485
|
const atomStateMap = /* @__PURE__ */ new WeakMap();
|
|
37386
|
-
const
|
|
37387
|
-
|
|
37388
|
-
|
|
37389
|
-
|
|
37390
|
-
|
|
37391
|
-
|
|
37392
|
-
|
|
37393
|
-
|
|
37394
|
-
|
|
37395
|
-
|
|
37396
|
-
|
|
37397
|
-
|
|
37486
|
+
const mountedAtoms = /* @__PURE__ */ new WeakMap();
|
|
37487
|
+
const store = INTERNAL_buildStoreRev1(
|
|
37488
|
+
atomStateMap,
|
|
37489
|
+
mountedAtoms,
|
|
37490
|
+
void 0,
|
|
37491
|
+
void 0,
|
|
37492
|
+
void 0,
|
|
37493
|
+
void 0,
|
|
37494
|
+
storeHooks,
|
|
37495
|
+
void 0,
|
|
37496
|
+
(atom2, get2, set2, ...args) => {
|
|
37497
|
+
if (inRestoreAtom) {
|
|
37498
|
+
return set2(atom2, ...args);
|
|
37499
|
+
}
|
|
37500
|
+
return atom2.write(get2, set2, ...args);
|
|
37398
37501
|
}
|
|
37399
37502
|
);
|
|
37503
|
+
const debugMountedAtoms = /* @__PURE__ */ new Set();
|
|
37504
|
+
storeHooks.m.add(void 0, (atom2) => {
|
|
37505
|
+
debugMountedAtoms.add(atom2);
|
|
37506
|
+
const atomState = atomStateMap.get(atom2);
|
|
37507
|
+
atomState.m = mountedAtoms.get(atom2);
|
|
37508
|
+
});
|
|
37509
|
+
storeHooks.u.add(void 0, (atom2) => {
|
|
37510
|
+
debugMountedAtoms.delete(atom2);
|
|
37511
|
+
const atomState = atomStateMap.get(atom2);
|
|
37512
|
+
delete atomState.m;
|
|
37513
|
+
});
|
|
37514
|
+
const devStore = {
|
|
37515
|
+
// store dev methods (these are tentative and subject to change without notice)
|
|
37516
|
+
dev4_get_internal_weak_map: () => atomStateMap,
|
|
37517
|
+
dev4_get_mounted_atoms: () => debugMountedAtoms,
|
|
37518
|
+
dev4_restore_atoms: (values) => {
|
|
37519
|
+
const restoreAtom = {
|
|
37520
|
+
read: () => null,
|
|
37521
|
+
write: (_get, set2) => {
|
|
37522
|
+
++inRestoreAtom;
|
|
37523
|
+
try {
|
|
37524
|
+
for (const [atom2, value] of values) {
|
|
37525
|
+
if ("init" in atom2) {
|
|
37526
|
+
set2(atom2, value);
|
|
37527
|
+
}
|
|
37528
|
+
}
|
|
37529
|
+
} finally {
|
|
37530
|
+
--inRestoreAtom;
|
|
37531
|
+
}
|
|
37532
|
+
}
|
|
37533
|
+
};
|
|
37534
|
+
store.set(restoreAtom);
|
|
37535
|
+
}
|
|
37536
|
+
};
|
|
37537
|
+
return Object.assign(store, devStore);
|
|
37538
|
+
};
|
|
37539
|
+
const createStore = () => {
|
|
37540
|
+
if ((__vite_import_meta_env__$2 ? "production" : void 0) !== "production") {
|
|
37541
|
+
return createDevStoreRev4();
|
|
37542
|
+
}
|
|
37543
|
+
const store = INTERNAL_buildStoreRev1();
|
|
37400
37544
|
return store;
|
|
37401
37545
|
};
|
|
37402
37546
|
let defaultStore;
|
|
37403
37547
|
const getDefaultStore = () => {
|
|
37404
37548
|
if (!defaultStore) {
|
|
37405
37549
|
defaultStore = createStore();
|
|
37550
|
+
if ((__vite_import_meta_env__$2 ? "production" : void 0) !== "production") {
|
|
37551
|
+
globalThis.__JOTAI_DEFAULT_STORE__ || (globalThis.__JOTAI_DEFAULT_STORE__ = defaultStore);
|
|
37552
|
+
if (globalThis.__JOTAI_DEFAULT_STORE__ !== defaultStore) {
|
|
37553
|
+
console.warn(
|
|
37554
|
+
"Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"
|
|
37555
|
+
);
|
|
37556
|
+
}
|
|
37557
|
+
}
|
|
37406
37558
|
}
|
|
37407
37559
|
return defaultStore;
|
|
37408
37560
|
};
|
|
37561
|
+
const __vite_import_meta_env__$1 = {};
|
|
37409
37562
|
const StoreContext = createContext(
|
|
37410
37563
|
void 0
|
|
37411
37564
|
);
|
|
@@ -37474,6 +37627,9 @@ const createContinuablePromise = (promise) => {
|
|
|
37474
37627
|
const registerCancelHandler = (p2) => {
|
|
37475
37628
|
if ("onCancel" in p2 && typeof p2.onCancel === "function") {
|
|
37476
37629
|
p2.onCancel((nextValue) => {
|
|
37630
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && nextValue === p2) {
|
|
37631
|
+
throw new Error("[Bug] p is not updated even after cancelation");
|
|
37632
|
+
}
|
|
37477
37633
|
if (isPromiseLike$1(nextValue)) {
|
|
37478
37634
|
continuablePromiseMap.set(nextValue, continuablePromise);
|
|
37479
37635
|
curr = nextValue;
|
|
@@ -37529,6 +37685,9 @@ function useSetAtom(atom2, options) {
|
|
|
37529
37685
|
const store = useStore();
|
|
37530
37686
|
const setAtom = useCallback(
|
|
37531
37687
|
(...args) => {
|
|
37688
|
+
if ((__vite_import_meta_env__$1 ? "production" : void 0) !== "production" && !("write" in atom2)) {
|
|
37689
|
+
throw new Error("not writable atom");
|
|
37690
|
+
}
|
|
37532
37691
|
return store.set(atom2, ...args);
|
|
37533
37692
|
},
|
|
37534
37693
|
[store, atom2]
|
|
@@ -37542,8 +37701,9 @@ function useAtom(atom2, options) {
|
|
|
37542
37701
|
useSetAtom(atom2)
|
|
37543
37702
|
];
|
|
37544
37703
|
}
|
|
37704
|
+
const __vite_import_meta_env__ = {};
|
|
37545
37705
|
const RESET = Symbol(
|
|
37546
|
-
""
|
|
37706
|
+
(__vite_import_meta_env__ ? "production" : void 0) !== "production" ? "RESET" : ""
|
|
37547
37707
|
);
|
|
37548
37708
|
function atomFamily(initializeAtom, areEqual) {
|
|
37549
37709
|
let shouldRemove = null;
|
|
@@ -37551,8 +37711,15 @@ function atomFamily(initializeAtom, areEqual) {
|
|
|
37551
37711
|
const listeners = /* @__PURE__ */ new Set();
|
|
37552
37712
|
const createAtom = (param) => {
|
|
37553
37713
|
let item;
|
|
37554
|
-
{
|
|
37714
|
+
if (areEqual === void 0) {
|
|
37555
37715
|
item = atoms2.get(param);
|
|
37716
|
+
} else {
|
|
37717
|
+
for (const [key, value] of atoms2) {
|
|
37718
|
+
if (areEqual(key, param)) {
|
|
37719
|
+
item = value;
|
|
37720
|
+
break;
|
|
37721
|
+
}
|
|
37722
|
+
}
|
|
37556
37723
|
}
|
|
37557
37724
|
if (item !== void 0) {
|
|
37558
37725
|
if (shouldRemove == null ? void 0 : shouldRemove(item[1], param)) {
|
|
@@ -37603,6 +37770,11 @@ function createJSONStorage(getStringStorage = () => {
|
|
|
37603
37770
|
try {
|
|
37604
37771
|
return window.localStorage;
|
|
37605
37772
|
} catch (e2) {
|
|
37773
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
37774
|
+
if (typeof window !== "undefined") {
|
|
37775
|
+
console.warn(e2);
|
|
37776
|
+
}
|
|
37777
|
+
}
|
|
37606
37778
|
return void 0;
|
|
37607
37779
|
}
|
|
37608
37780
|
}, options) {
|
|
@@ -37683,6 +37855,9 @@ function atomWithStorage$1(key, initialValue, storage = defaultStorage, options)
|
|
|
37683
37855
|
const baseAtom = atom(
|
|
37684
37856
|
initialValue
|
|
37685
37857
|
);
|
|
37858
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
37859
|
+
baseAtom.debugPrivate = true;
|
|
37860
|
+
}
|
|
37686
37861
|
baseAtom.onMount = (setAtom) => {
|
|
37687
37862
|
setAtom(storage.getItem(key, initialValue));
|
|
37688
37863
|
let unsub;
|
|
@@ -37719,6 +37894,9 @@ function loadable(anAtom) {
|
|
|
37719
37894
|
return memo1(() => {
|
|
37720
37895
|
const loadableCache = /* @__PURE__ */ new WeakMap();
|
|
37721
37896
|
const refreshAtom = atom(0);
|
|
37897
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
37898
|
+
refreshAtom.debugPrivate = true;
|
|
37899
|
+
}
|
|
37722
37900
|
const derivedAtom = atom(
|
|
37723
37901
|
(get2, { setSelf }) => {
|
|
37724
37902
|
get2(refreshAtom);
|
|
@@ -37757,6 +37935,9 @@ function loadable(anAtom) {
|
|
|
37757
37935
|
set2(refreshAtom, (c2) => c2 + 1);
|
|
37758
37936
|
}
|
|
37759
37937
|
);
|
|
37938
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
37939
|
+
derivedAtom.debugPrivate = true;
|
|
37940
|
+
}
|
|
37760
37941
|
return atom((get2) => get2(derivedAtom));
|
|
37761
37942
|
}, anAtom);
|
|
37762
37943
|
}
|
|
@@ -37774,6 +37955,9 @@ function unwrap(anAtom, fallback = defaultFallback) {
|
|
|
37774
37955
|
const promiseErrorCache = /* @__PURE__ */ new WeakMap();
|
|
37775
37956
|
const promiseResultCache = /* @__PURE__ */ new WeakMap();
|
|
37776
37957
|
const refreshAtom = atom(0);
|
|
37958
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
37959
|
+
refreshAtom.debugPrivate = true;
|
|
37960
|
+
}
|
|
37777
37961
|
const promiseAndValueAtom = atom(
|
|
37778
37962
|
(get2, { setSelf }) => {
|
|
37779
37963
|
get2(refreshAtom);
|
|
@@ -37813,6 +37997,9 @@ function unwrap(anAtom, fallback = defaultFallback) {
|
|
|
37813
37997
|
}
|
|
37814
37998
|
);
|
|
37815
37999
|
promiseAndValueAtom.init = void 0;
|
|
38000
|
+
if ((__vite_import_meta_env__ ? "production" : void 0) !== "production") {
|
|
38001
|
+
promiseAndValueAtom.debugPrivate = true;
|
|
38002
|
+
}
|
|
37816
38003
|
return atom(
|
|
37817
38004
|
(get2) => {
|
|
37818
38005
|
const state = get2(promiseAndValueAtom);
|
|
@@ -55239,7 +55426,7 @@ const connectCrypto = (async () => {
|
|
|
55239
55426
|
return window.connectCrypto;
|
|
55240
55427
|
}
|
|
55241
55428
|
const { ConnectCrypto } = await __vitePreload(async () => {
|
|
55242
|
-
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-
|
|
55429
|
+
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-CKWp1mJP.js");
|
|
55243
55430
|
return { ConnectCrypto: ConnectCrypto2 };
|
|
55244
55431
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
55245
55432
|
const { BrowserKeyStorage } = await __vitePreload(async () => {
|
|
@@ -55292,7 +55479,7 @@ function useRenown() {
|
|
|
55292
55479
|
return;
|
|
55293
55480
|
}
|
|
55294
55481
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
55295
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./browser-
|
|
55482
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./browser-BEcF-4CB.js");
|
|
55296
55483
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
55297
55484
|
}, true ? __vite__mapDeps([4,5,1,6,2,3]) : void 0);
|
|
55298
55485
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -62172,7 +62359,7 @@ function msToSec(time) {
|
|
|
62172
62359
|
return time / 1e3;
|
|
62173
62360
|
}
|
|
62174
62361
|
function getBrowserPerformanceAPI() {
|
|
62175
|
-
return WINDOW$2.addEventListener && WINDOW$2.performance;
|
|
62362
|
+
return WINDOW$2 && WINDOW$2.addEventListener && WINDOW$2.performance;
|
|
62176
62363
|
}
|
|
62177
62364
|
let _performanceCursor = 0;
|
|
62178
62365
|
let _measurements = {};
|
|
@@ -65234,7 +65421,6 @@ function serializeNode(n2, options) {
|
|
|
65234
65421
|
keepIframeSrcFn,
|
|
65235
65422
|
newlyAddedElement,
|
|
65236
65423
|
rootId,
|
|
65237
|
-
maskAllText,
|
|
65238
65424
|
maskTextClass,
|
|
65239
65425
|
unmaskTextClass,
|
|
65240
65426
|
maskTextSelector,
|
|
@@ -65323,7 +65509,7 @@ function serializeTextNode(n2, options) {
|
|
|
65323
65509
|
};
|
|
65324
65510
|
}
|
|
65325
65511
|
function serializeElementNode(n2, options) {
|
|
65326
|
-
const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId,
|
|
65512
|
+
const { doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions = {}, maskAttributeFn, maskInputFn, dataURLOptions = {}, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement = false, rootId, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector } = options;
|
|
65327
65513
|
const needBlock = _isBlockedElement(n2, blockClass, blockSelector, unblockSelector);
|
|
65328
65514
|
const tagName = getValidTagName(n2);
|
|
65329
65515
|
let attributes = {};
|
|
@@ -65685,7 +65871,7 @@ function serializeNodeWithId(n2, options) {
|
|
|
65685
65871
|
return serializedNode;
|
|
65686
65872
|
}
|
|
65687
65873
|
function snapshot(n2, options) {
|
|
65688
|
-
const { mirror: mirror2 = new Mirror(), blockClass = "rr-block", blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = "rr-mask", unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false } = options;
|
|
65874
|
+
const { mirror: mirror2 = new Mirror(), blockClass = "rr-block", blockSelector = null, unblockSelector = null, maskAllText = false, maskTextClass = "rr-mask", unmaskTextClass = null, maskTextSelector = null, unmaskTextSelector = null, inlineStylesheet = true, inlineImages = false, recordCanvas = false, maskAllInputs = false, maskAttributeFn, maskTextFn, maskInputFn, slimDOM = false, dataURLOptions, preserveWhiteSpace, onSerialize, onIframeLoad, iframeLoadTimeout, onStylesheetLoad, stylesheetLoadTimeout, keepIframeSrcFn = () => false } = options || {};
|
|
65689
65875
|
const maskInputOptions = maskAllInputs === true ? {
|
|
65690
65876
|
color: true,
|
|
65691
65877
|
date: true,
|
|
@@ -70505,7 +70691,7 @@ function debounce(func, wait2, options) {
|
|
|
70505
70691
|
let callbackReturnValue;
|
|
70506
70692
|
let timerId;
|
|
70507
70693
|
let maxTimerId;
|
|
70508
|
-
const maxWait = options.maxWait ? Math.max(options.maxWait, wait2) : 0;
|
|
70694
|
+
const maxWait = options && options.maxWait ? Math.max(options.maxWait, wait2) : 0;
|
|
70509
70695
|
function invokeFunc() {
|
|
70510
70696
|
cancelTimers();
|
|
70511
70697
|
callbackReturnValue = func();
|
|
@@ -72479,7 +72665,7 @@ function reactRouterV6BrowserTracingIntegration(options) {
|
|
|
72479
72665
|
...integration,
|
|
72480
72666
|
afterAllSetup(client) {
|
|
72481
72667
|
integration.afterAllSetup(client);
|
|
72482
|
-
const initPathName = WINDOW$1.location && WINDOW$1.location.pathname;
|
|
72668
|
+
const initPathName = WINDOW$1 && WINDOW$1.location && WINDOW$1.location.pathname;
|
|
72483
72669
|
if (instrumentPageLoad && initPathName) {
|
|
72484
72670
|
startBrowserTracingPageLoadSpan(client, {
|
|
72485
72671
|
name: initPathName,
|
|
@@ -73149,14 +73335,14 @@ function useDocumentDriveServer() {
|
|
|
73149
73335
|
const driveDocument = documentDrives.find(
|
|
73150
73336
|
(documentDrive) => documentDrive.state.global.id === drive
|
|
73151
73337
|
);
|
|
73152
|
-
|
|
73338
|
+
driveDocument && driveDocument.state.local.listeners.length > 0;
|
|
73153
73339
|
uploadDocumentOperations(
|
|
73154
73340
|
drive,
|
|
73155
73341
|
fileNode.id,
|
|
73156
73342
|
document2,
|
|
73157
73343
|
reactor,
|
|
73158
73344
|
addOperations,
|
|
73159
|
-
{
|
|
73345
|
+
{}
|
|
73160
73346
|
).catch((error) => {
|
|
73161
73347
|
throw error;
|
|
73162
73348
|
});
|
|
@@ -74524,7 +74710,6 @@ function useDocumentDriveById(driveId) {
|
|
|
74524
74710
|
};
|
|
74525
74711
|
}
|
|
74526
74712
|
var lzString = { exports: {} };
|
|
74527
|
-
lzString.exports;
|
|
74528
74713
|
var hasRequiredLzString;
|
|
74529
74714
|
function requireLzString() {
|
|
74530
74715
|
if (hasRequiredLzString) return lzString.exports;
|
|
@@ -75972,7 +76157,7 @@ const CookieBanner = () => {
|
|
|
75972
76157
|
] });
|
|
75973
76158
|
};
|
|
75974
76159
|
/**
|
|
75975
|
-
* @remix-run/router v1.
|
|
76160
|
+
* @remix-run/router v1.23.0
|
|
75976
76161
|
*
|
|
75977
76162
|
* Copyright (c) Remix Software Inc.
|
|
75978
76163
|
*
|
|
@@ -77188,6 +77373,14 @@ function createRouter(init2) {
|
|
|
77188
77373
|
state.matches
|
|
77189
77374
|
) : matchRoutes(routesToUse, location, basename);
|
|
77190
77375
|
let flushSync = (opts && opts.flushSync) === true;
|
|
77376
|
+
if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {
|
|
77377
|
+
completeNavigation(location, {
|
|
77378
|
+
matches
|
|
77379
|
+
}, {
|
|
77380
|
+
flushSync
|
|
77381
|
+
});
|
|
77382
|
+
return;
|
|
77383
|
+
}
|
|
77191
77384
|
let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname);
|
|
77192
77385
|
if (fogOfWar.active && fogOfWar.matches) {
|
|
77193
77386
|
matches = fogOfWar.matches;
|
|
@@ -77209,14 +77402,6 @@ function createRouter(init2) {
|
|
|
77209
77402
|
});
|
|
77210
77403
|
return;
|
|
77211
77404
|
}
|
|
77212
|
-
if (state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {
|
|
77213
|
-
completeNavigation(location, {
|
|
77214
|
-
matches
|
|
77215
|
-
}, {
|
|
77216
|
-
flushSync
|
|
77217
|
-
});
|
|
77218
|
-
return;
|
|
77219
|
-
}
|
|
77220
77405
|
pendingNavigationController = new AbortController();
|
|
77221
77406
|
let request = createClientSideRequest(init2.history, location, pendingNavigationController.signal, opts && opts.submission);
|
|
77222
77407
|
let pendingActionResult;
|
|
@@ -77613,7 +77798,7 @@ function createRouter(init2) {
|
|
|
77613
77798
|
let abortController = new AbortController();
|
|
77614
77799
|
let fetchRequest = createClientSideRequest(init2.history, path, abortController.signal, submission);
|
|
77615
77800
|
if (isFogOfWar) {
|
|
77616
|
-
let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
|
|
77801
|
+
let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);
|
|
77617
77802
|
if (discoverResult.type === "aborted") {
|
|
77618
77803
|
return;
|
|
77619
77804
|
} else if (discoverResult.type === "error") {
|
|
@@ -77760,7 +77945,7 @@ function createRouter(init2) {
|
|
|
77760
77945
|
let abortController = new AbortController();
|
|
77761
77946
|
let fetchRequest = createClientSideRequest(init2.history, path, abortController.signal);
|
|
77762
77947
|
if (isFogOfWar) {
|
|
77763
|
-
let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal);
|
|
77948
|
+
let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key);
|
|
77764
77949
|
if (discoverResult.type === "aborted") {
|
|
77765
77950
|
return;
|
|
77766
77951
|
} else if (discoverResult.type === "error") {
|
|
@@ -78194,7 +78379,7 @@ function createRouter(init2) {
|
|
|
78194
78379
|
matches: null
|
|
78195
78380
|
};
|
|
78196
78381
|
}
|
|
78197
|
-
async function discoverRoutes(matches, pathname, signal) {
|
|
78382
|
+
async function discoverRoutes(matches, pathname, signal, fetcherKey) {
|
|
78198
78383
|
if (!patchRoutesOnNavigationImpl) {
|
|
78199
78384
|
return {
|
|
78200
78385
|
type: "success",
|
|
@@ -78211,6 +78396,7 @@ function createRouter(init2) {
|
|
|
78211
78396
|
signal,
|
|
78212
78397
|
path: pathname,
|
|
78213
78398
|
matches: partialMatches,
|
|
78399
|
+
fetcherKey,
|
|
78214
78400
|
patch: (routeId, children) => {
|
|
78215
78401
|
if (signal.aborted) return;
|
|
78216
78402
|
patchRoutesImpl(routeId, children, routesToUse, localManifest, mapRouteProperties2);
|
|
@@ -79440,7 +79626,7 @@ function persistAppliedTransitions(_window, transitions) {
|
|
|
79440
79626
|
}
|
|
79441
79627
|
}
|
|
79442
79628
|
/**
|
|
79443
|
-
* React Router v6.
|
|
79629
|
+
* React Router v6.30.0
|
|
79444
79630
|
*
|
|
79445
79631
|
* Copyright (c) Remix Software Inc.
|
|
79446
79632
|
*
|
|
@@ -79732,6 +79918,7 @@ function _renderMatches(matches, parentMatches, dataRouterState, future) {
|
|
|
79732
79918
|
errorElement = match2.route.errorElement || defaultErrorElement;
|
|
79733
79919
|
if (renderFallback) {
|
|
79734
79920
|
if (fallbackIndex < 0 && index2 === 0) {
|
|
79921
|
+
warningOnce("route-fallback");
|
|
79735
79922
|
shouldRenderHydrateFallback = true;
|
|
79736
79923
|
hydrateFallbackElement = null;
|
|
79737
79924
|
} else if (fallbackIndex === index2) {
|
|
@@ -79822,7 +80009,7 @@ function useRouteError() {
|
|
|
79822
80009
|
var _state$errors;
|
|
79823
80010
|
let error = React.useContext(RouteErrorContext);
|
|
79824
80011
|
let state = useDataRouterState(DataRouterStateHook.UseRouteError);
|
|
79825
|
-
let routeId = useCurrentRouteId(
|
|
80012
|
+
let routeId = useCurrentRouteId();
|
|
79826
80013
|
if (error !== void 0) {
|
|
79827
80014
|
return error;
|
|
79828
80015
|
}
|
|
@@ -79832,7 +80019,7 @@ function useNavigateStable() {
|
|
|
79832
80019
|
let {
|
|
79833
80020
|
router
|
|
79834
80021
|
} = useDataRouterContext(DataRouterHook.UseNavigateStable);
|
|
79835
|
-
let id = useCurrentRouteId(
|
|
80022
|
+
let id = useCurrentRouteId();
|
|
79836
80023
|
let activeRef = React.useRef(false);
|
|
79837
80024
|
useIsomorphicLayoutEffect(() => {
|
|
79838
80025
|
activeRef.current = true;
|
|
@@ -79852,6 +80039,12 @@ function useNavigateStable() {
|
|
|
79852
80039
|
}, [router, id]);
|
|
79853
80040
|
return navigate;
|
|
79854
80041
|
}
|
|
80042
|
+
const alreadyWarned$1 = {};
|
|
80043
|
+
function warningOnce(key, cond, message) {
|
|
80044
|
+
if (!alreadyWarned$1[key]) {
|
|
80045
|
+
alreadyWarned$1[key] = true;
|
|
80046
|
+
}
|
|
80047
|
+
}
|
|
79855
80048
|
function logV6DeprecationWarnings(renderFuture, routerFuture) {
|
|
79856
80049
|
if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === void 0) ;
|
|
79857
80050
|
if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === void 0 && (!routerFuture || !routerFuture.v7_relativeSplatPath)) ;
|
|
@@ -80093,7 +80286,7 @@ const Analytics = () => {
|
|
|
80093
80286
|
return null;
|
|
80094
80287
|
};
|
|
80095
80288
|
const Router = React__default.lazy(async () => {
|
|
80096
|
-
const createRouterComponent = await __vitePreload(() => import("./router-
|
|
80289
|
+
const createRouterComponent = await __vitePreload(() => import("./router-DCZy9Fg5.js").then((n2) => n2.r), true ? __vite__mapDeps([7,1,8,2,3]) : void 0);
|
|
80097
80290
|
const router = await createRouterComponent.default();
|
|
80098
80291
|
return { default: router };
|
|
80099
80292
|
});
|
|
@@ -80119,7 +80312,7 @@ const app = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80119
80312
|
default: App
|
|
80120
80313
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
80121
80314
|
export {
|
|
80122
|
-
|
|
80315
|
+
hexToBool as $,
|
|
80123
80316
|
aexists as A,
|
|
80124
80317
|
BaseError as B,
|
|
80125
80318
|
toBytes as C,
|
|
@@ -80132,238 +80325,239 @@ export {
|
|
|
80132
80325
|
toBytes$1 as J,
|
|
80133
80326
|
size$2 as K,
|
|
80134
80327
|
trim as L,
|
|
80135
|
-
|
|
80328
|
+
keccak_256 as M,
|
|
80136
80329
|
stringify$1 as N,
|
|
80137
|
-
|
|
80138
|
-
|
|
80139
|
-
|
|
80330
|
+
isAddress as O,
|
|
80331
|
+
InvalidAddressError as P,
|
|
80332
|
+
stringToHex as Q,
|
|
80140
80333
|
Router$1 as R,
|
|
80141
80334
|
S$3 as S,
|
|
80142
|
-
|
|
80143
|
-
|
|
80144
|
-
|
|
80145
|
-
|
|
80146
|
-
|
|
80147
|
-
|
|
80335
|
+
wait as T,
|
|
80336
|
+
InvalidInputRpcError as U,
|
|
80337
|
+
withResolvers as V,
|
|
80338
|
+
withRetry as W,
|
|
80339
|
+
ahash as X,
|
|
80340
|
+
abytes as Y,
|
|
80148
80341
|
randomBytes as Z,
|
|
80149
|
-
|
|
80150
|
-
|
|
80151
|
-
|
|
80152
|
-
|
|
80153
|
-
|
|
80154
|
-
|
|
80155
|
-
|
|
80156
|
-
|
|
80157
|
-
|
|
80158
|
-
|
|
80159
|
-
|
|
80160
|
-
|
|
80161
|
-
|
|
80162
|
-
|
|
80163
|
-
|
|
80164
|
-
|
|
80165
|
-
|
|
80166
|
-
|
|
80167
|
-
|
|
80168
|
-
|
|
80169
|
-
|
|
80170
|
-
|
|
80171
|
-
|
|
80172
|
-
|
|
80173
|
-
|
|
80174
|
-
|
|
80175
|
-
|
|
80176
|
-
|
|
80177
|
-
|
|
80178
|
-
|
|
80179
|
-
|
|
80180
|
-
|
|
80181
|
-
|
|
80182
|
-
|
|
80183
|
-
|
|
80184
|
-
|
|
80185
|
-
|
|
80186
|
-
|
|
80187
|
-
|
|
80188
|
-
|
|
80189
|
-
|
|
80190
|
-
|
|
80191
|
-
|
|
80192
|
-
|
|
80193
|
-
|
|
80194
|
-
|
|
80195
|
-
|
|
80196
|
-
|
|
80197
|
-
|
|
80198
|
-
|
|
80199
|
-
|
|
80200
|
-
|
|
80201
|
-
|
|
80202
|
-
|
|
80203
|
-
|
|
80204
|
-
|
|
80205
|
-
|
|
80206
|
-
|
|
80207
|
-
|
|
80342
|
+
concatBytes as _,
|
|
80343
|
+
createBrowserHistory as a,
|
|
80344
|
+
D$5 as a$,
|
|
80345
|
+
getAddress as a0,
|
|
80346
|
+
createClient as a1,
|
|
80347
|
+
defineChain as a2,
|
|
80348
|
+
pad as a3,
|
|
80349
|
+
mainnet as a4,
|
|
80350
|
+
http as a5,
|
|
80351
|
+
RENOWN_URL as a6,
|
|
80352
|
+
SliceOffsetOutOfBoundsError as a7,
|
|
80353
|
+
padHex as a8,
|
|
80354
|
+
boolToHex as a9,
|
|
80355
|
+
Subscribable as aA,
|
|
80356
|
+
pendingThenable as aB,
|
|
80357
|
+
resolveEnabled as aC,
|
|
80358
|
+
shallowEqualObjects as aD,
|
|
80359
|
+
resolveStaleTime as aE,
|
|
80360
|
+
noop$1 as aF,
|
|
80361
|
+
isServer as aG,
|
|
80362
|
+
isValidTimeout as aH,
|
|
80363
|
+
timeUntilStale as aI,
|
|
80364
|
+
focusManager as aJ,
|
|
80365
|
+
fetchState as aK,
|
|
80366
|
+
replaceData as aL,
|
|
80367
|
+
notifyManager as aM,
|
|
80368
|
+
useQueryClient as aN,
|
|
80369
|
+
n$2 as aO,
|
|
80370
|
+
useOnClickOutside as aP,
|
|
80371
|
+
useEventListener as aQ,
|
|
80372
|
+
c$7 as aR,
|
|
80373
|
+
N$4 as aS,
|
|
80374
|
+
S$1 as aT,
|
|
80375
|
+
t$1 as aU,
|
|
80376
|
+
I$6 as aV,
|
|
80377
|
+
y$6 as aW,
|
|
80378
|
+
u$8 as aX,
|
|
80379
|
+
b$5 as aY,
|
|
80380
|
+
i$5 as aZ,
|
|
80381
|
+
n$1 as a_,
|
|
80382
|
+
IntegerOutOfRangeError as aa,
|
|
80383
|
+
InvalidBytesLengthError as ab,
|
|
80384
|
+
assertSize as ac,
|
|
80385
|
+
InvalidBytesBooleanError as ad,
|
|
80386
|
+
getContractAddress as ae,
|
|
80387
|
+
stringToBytes as af,
|
|
80388
|
+
InternalRpcError as ag,
|
|
80389
|
+
RpcRequestError as ah,
|
|
80390
|
+
createBatchScheduler as ai,
|
|
80391
|
+
useTranslation as aj,
|
|
80392
|
+
useDocumentDrives as ak,
|
|
80393
|
+
useReadModeContext as al,
|
|
80394
|
+
useAsyncReactor as am,
|
|
80395
|
+
useConnectConfig as an,
|
|
80396
|
+
I$4 as ao,
|
|
80397
|
+
p as ap,
|
|
80398
|
+
C$1 as aq,
|
|
80399
|
+
s$1 as ar,
|
|
80400
|
+
useParams as as,
|
|
80208
80401
|
o$2 as at,
|
|
80209
|
-
|
|
80210
|
-
|
|
80211
|
-
|
|
80212
|
-
|
|
80213
|
-
|
|
80214
|
-
|
|
80402
|
+
E$1 as au,
|
|
80403
|
+
useModal as av,
|
|
80404
|
+
useLogin as aw,
|
|
80405
|
+
Outlet as ax,
|
|
80406
|
+
BaseError$1 as ay,
|
|
80407
|
+
WagmiContext as az,
|
|
80215
80408
|
DataRouterStateContext as b,
|
|
80216
|
-
|
|
80217
|
-
|
|
80218
|
-
|
|
80219
|
-
|
|
80220
|
-
|
|
80221
|
-
|
|
80222
|
-
|
|
80223
|
-
|
|
80224
|
-
|
|
80225
|
-
|
|
80226
|
-
|
|
80227
|
-
|
|
80228
|
-
|
|
80229
|
-
|
|
80230
|
-
|
|
80231
|
-
|
|
80232
|
-
|
|
80233
|
-
|
|
80234
|
-
|
|
80235
|
-
|
|
80236
|
-
|
|
80237
|
-
|
|
80238
|
-
|
|
80239
|
-
|
|
80240
|
-
|
|
80241
|
-
|
|
80409
|
+
DEFAULT_DEPRECATION_REASON as b$,
|
|
80410
|
+
a$2 as b0,
|
|
80411
|
+
A$1 as b1,
|
|
80412
|
+
m$7 as b2,
|
|
80413
|
+
Provider$1 as b3,
|
|
80414
|
+
Root3 as b4,
|
|
80415
|
+
Trigger as b5,
|
|
80416
|
+
Portal as b6,
|
|
80417
|
+
Content2 as b7,
|
|
80418
|
+
useCopyToClipboard as b8,
|
|
80419
|
+
B$5 as b9,
|
|
80420
|
+
addActionContext as bA,
|
|
80421
|
+
undo as bB,
|
|
80422
|
+
redo as bC,
|
|
80423
|
+
signOperation as bD,
|
|
80424
|
+
exportFile as bE,
|
|
80425
|
+
useUnwrappedReactor as bF,
|
|
80426
|
+
R$3 as bG,
|
|
80427
|
+
driveDocumentModelModule as bH,
|
|
80428
|
+
useFilteredDocumentModels as bI,
|
|
80429
|
+
useDriveEditor as bJ,
|
|
80430
|
+
useDocumentDriveById as bK,
|
|
80431
|
+
getUrl as bL,
|
|
80432
|
+
HttpRequestError as bM,
|
|
80433
|
+
inspect as bN,
|
|
80434
|
+
GraphQLError as bO,
|
|
80242
80435
|
getNamedType as bP,
|
|
80243
|
-
|
|
80244
|
-
|
|
80245
|
-
|
|
80246
|
-
|
|
80247
|
-
|
|
80248
|
-
|
|
80249
|
-
|
|
80436
|
+
invariant$1 as bQ,
|
|
80437
|
+
isInputObjectType as bR,
|
|
80438
|
+
isScalarType as bS,
|
|
80439
|
+
isObjectType as bT,
|
|
80440
|
+
isInterfaceType as bU,
|
|
80441
|
+
isUnionType as bV,
|
|
80442
|
+
isEnumType as bW,
|
|
80250
80443
|
print as bX,
|
|
80251
|
-
|
|
80444
|
+
isPrintableAsBlockString as bY,
|
|
80252
80445
|
Kind as bZ,
|
|
80253
|
-
|
|
80254
|
-
|
|
80255
|
-
|
|
80256
|
-
|
|
80257
|
-
|
|
80258
|
-
|
|
80259
|
-
|
|
80260
|
-
|
|
80261
|
-
|
|
80262
|
-
|
|
80263
|
-
|
|
80264
|
-
|
|
80265
|
-
|
|
80266
|
-
|
|
80267
|
-
|
|
80268
|
-
|
|
80269
|
-
|
|
80270
|
-
|
|
80271
|
-
|
|
80272
|
-
|
|
80273
|
-
|
|
80274
|
-
|
|
80275
|
-
|
|
80276
|
-
|
|
80277
|
-
|
|
80278
|
-
|
|
80279
|
-
|
|
80280
|
-
|
|
80281
|
-
|
|
80282
|
-
|
|
80283
|
-
|
|
80284
|
-
|
|
80285
|
-
|
|
80286
|
-
|
|
80287
|
-
|
|
80288
|
-
|
|
80289
|
-
|
|
80290
|
-
|
|
80291
|
-
|
|
80292
|
-
|
|
80293
|
-
|
|
80294
|
-
|
|
80295
|
-
|
|
80296
|
-
|
|
80297
|
-
|
|
80298
|
-
|
|
80299
|
-
|
|
80300
|
-
|
|
80301
|
-
|
|
80302
|
-
|
|
80303
|
-
|
|
80304
|
-
|
|
80305
|
-
|
|
80306
|
-
|
|
80307
|
-
|
|
80308
|
-
|
|
80309
|
-
|
|
80310
|
-
|
|
80311
|
-
|
|
80312
|
-
|
|
80313
|
-
|
|
80314
|
-
|
|
80315
|
-
|
|
80316
|
-
|
|
80317
|
-
|
|
80318
|
-
|
|
80319
|
-
|
|
80320
|
-
|
|
80321
|
-
|
|
80322
|
-
|
|
80323
|
-
|
|
80324
|
-
|
|
80325
|
-
|
|
80326
|
-
|
|
80327
|
-
|
|
80328
|
-
|
|
80329
|
-
|
|
80446
|
+
astFromValue as b_,
|
|
80447
|
+
w$4 as ba,
|
|
80448
|
+
garbageCollect as bb,
|
|
80449
|
+
sortOperations as bc,
|
|
80450
|
+
n as bd,
|
|
80451
|
+
M$2 as be,
|
|
80452
|
+
a$1 as bf,
|
|
80453
|
+
g$7 as bg,
|
|
80454
|
+
C$2 as bh,
|
|
80455
|
+
validateInitialState as bi,
|
|
80456
|
+
validateStateSchemaName as bj,
|
|
80457
|
+
validateModules as bk,
|
|
80458
|
+
useDefaultDocumentModelEditor as bl,
|
|
80459
|
+
useAtomValue as bm,
|
|
80460
|
+
unwrap as bn,
|
|
80461
|
+
atom as bo,
|
|
80462
|
+
atomWithLazy as bp,
|
|
80463
|
+
externalPackagesAtom as bq,
|
|
80464
|
+
loadable as br,
|
|
80465
|
+
themeAtom as bs,
|
|
80466
|
+
useUser as bt,
|
|
80467
|
+
useConnectDid as bu,
|
|
80468
|
+
useConnectCrypto as bv,
|
|
80469
|
+
useGetDocumentModelModule as bw,
|
|
80470
|
+
useDocumentDispatch as bx,
|
|
80471
|
+
useUserPermissions as by,
|
|
80472
|
+
isSameDocument as bz,
|
|
80473
|
+
createRouter as c,
|
|
80474
|
+
Content as c$,
|
|
80475
|
+
isSpecifiedDirective as c0,
|
|
80476
|
+
isSpecifiedScalarType as c1,
|
|
80477
|
+
isIntrospectionType as c2,
|
|
80478
|
+
z$1 as c3,
|
|
80479
|
+
GraphQLScalarType as c4,
|
|
80480
|
+
clsx as c5,
|
|
80481
|
+
pascalCase as c6,
|
|
80482
|
+
parse as c7,
|
|
80483
|
+
visit$1 as c8,
|
|
80484
|
+
buildASTSchema as c9,
|
|
80485
|
+
isOutputType as cA,
|
|
80486
|
+
isInputType as cB,
|
|
80487
|
+
GraphQLBoolean as cC,
|
|
80488
|
+
assertAbstractType as cD,
|
|
80489
|
+
doTypesOverlap as cE,
|
|
80490
|
+
DirectiveLocation as cF,
|
|
80491
|
+
specifiedRules as cG,
|
|
80492
|
+
NoUnusedFragmentsRule as cH,
|
|
80493
|
+
ExecutableDefinitionsRule as cI,
|
|
80494
|
+
validate as cJ,
|
|
80495
|
+
validateSchema as cK,
|
|
80496
|
+
GraphQLID as cL,
|
|
80497
|
+
GraphQLString as cM,
|
|
80498
|
+
GraphQLFloat as cN,
|
|
80499
|
+
GraphQLInt as cO,
|
|
80500
|
+
GraphQLDirective as cP,
|
|
80501
|
+
GraphQLUnionType as cQ,
|
|
80502
|
+
isNonNullType as cR,
|
|
80503
|
+
GraphQLNonNull as cS,
|
|
80504
|
+
isNamedType as cT,
|
|
80505
|
+
isLeafType as cU,
|
|
80506
|
+
GraphQLSchema as cV,
|
|
80507
|
+
buildSchema as cW,
|
|
80508
|
+
sentenceCase as cX,
|
|
80509
|
+
Root2$1 as cY,
|
|
80510
|
+
List as cZ,
|
|
80511
|
+
Trigger$2 as c_,
|
|
80512
|
+
extendSchema as ca,
|
|
80513
|
+
getNullableType as cb,
|
|
80514
|
+
isListType as cc,
|
|
80515
|
+
get$1 as cd,
|
|
80516
|
+
set$1 as ce,
|
|
80517
|
+
appendErrors as cf,
|
|
80518
|
+
snakeCase as cg,
|
|
80519
|
+
constantCase as ch,
|
|
80520
|
+
useFormContext as ci,
|
|
80521
|
+
Primitive as cj,
|
|
80522
|
+
cva as ck,
|
|
80330
80523
|
FormProvider as cl,
|
|
80331
80524
|
Controller as cm,
|
|
80332
|
-
|
|
80333
|
-
|
|
80334
|
-
|
|
80335
|
-
|
|
80336
|
-
|
|
80337
|
-
|
|
80338
|
-
|
|
80339
|
-
|
|
80340
|
-
|
|
80341
|
-
|
|
80342
|
-
|
|
80343
|
-
|
|
80344
|
-
|
|
80345
|
-
|
|
80346
|
-
|
|
80347
|
-
|
|
80348
|
-
|
|
80349
|
-
|
|
80350
|
-
|
|
80351
|
-
|
|
80352
|
-
|
|
80353
|
-
|
|
80354
|
-
|
|
80355
|
-
|
|
80356
|
-
|
|
80357
|
-
|
|
80358
|
-
|
|
80359
|
-
|
|
80360
|
-
|
|
80361
|
-
|
|
80362
|
-
|
|
80363
|
-
|
|
80364
|
-
|
|
80365
|
-
|
|
80366
|
-
|
|
80525
|
+
Slot as cn,
|
|
80526
|
+
useForm as co,
|
|
80527
|
+
isAbstractType as cp,
|
|
80528
|
+
BREAK as cq,
|
|
80529
|
+
GraphQLInputObjectType as cr,
|
|
80530
|
+
GraphQLList as cs,
|
|
80531
|
+
GraphQLEnumType as ct,
|
|
80532
|
+
GraphQLObjectType as cu,
|
|
80533
|
+
GraphQLInterfaceType as cv,
|
|
80534
|
+
SchemaMetaFieldDef as cw,
|
|
80535
|
+
TypeMetaFieldDef as cx,
|
|
80536
|
+
TypeNameMetaFieldDef as cy,
|
|
80537
|
+
isCompositeType as cz,
|
|
80538
|
+
useLocation as d,
|
|
80539
|
+
setModelName as d0,
|
|
80540
|
+
setModelId as d1,
|
|
80541
|
+
setModelDescription as d2,
|
|
80542
|
+
setModelExtension as d3,
|
|
80543
|
+
setAuthorName as d4,
|
|
80544
|
+
setAuthorWebsite as d5,
|
|
80545
|
+
setStateSchema as d6,
|
|
80546
|
+
setInitialState as d7,
|
|
80547
|
+
hashKey as d8,
|
|
80548
|
+
addModule as d9,
|
|
80549
|
+
setModuleName as da,
|
|
80550
|
+
deleteModule as db,
|
|
80551
|
+
addOperation as dc,
|
|
80552
|
+
setOperationName as dd,
|
|
80553
|
+
setOperationSchema as de,
|
|
80554
|
+
setOperationDescription as df,
|
|
80555
|
+
deleteOperation as dg,
|
|
80556
|
+
addOperationError as dh,
|
|
80557
|
+
deleteOperationError as di,
|
|
80558
|
+
setOperationErrorName as dj,
|
|
80559
|
+
app as dk,
|
|
80560
|
+
useNavigate as e,
|
|
80367
80561
|
useGetAppNameForEditorId as f,
|
|
80368
80562
|
useUiNodes as g,
|
|
80369
80563
|
useDocumentDriveServer as h,
|
|
@@ -80379,7 +80573,7 @@ export {
|
|
|
80379
80573
|
hexToBigInt as r,
|
|
80380
80574
|
hexToNumber as s,
|
|
80381
80575
|
twMerge as t,
|
|
80382
|
-
|
|
80576
|
+
useRoutesImpl as u,
|
|
80383
80577
|
bytesToHex as v,
|
|
80384
80578
|
hexToBytes as w,
|
|
80385
80579
|
numberToHex as x,
|