@stakekit/widget 0.0.284 → 0.0.286
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/bundle/index.bundle.js +58 -61
- package/dist/package/index.package.js +388 -2462
- package/dist/package/{xbull.module-C2cRKGsZ.js → xbull.module-C-UUZmRx.js} +238 -2
- package/dist/website/assets/index-DtK-tGS5.js +560 -0
- package/dist/website/index.html +1 -1
- package/package.json +10 -4
- package/dist/package/tslib.es6-Bdhxqx7j.js +0 -258
- package/dist/website/assets/index-ZW_QdTpW.js +0 -563
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { r as __exportAll, s as __toESM, t as __commonJSMin } from "./rolldown-runtime-D_CBzjfY.js";
|
|
3
3
|
import { Fn as process$1, Mn as global, Nn as init_dist$1, Pn as init_dist, cn as require_bs58 } from "./cosmos-kit-BKSLI2IB.js";
|
|
4
4
|
import { $ as BaseProto, At as isNotUndefined, Ct as hasProperty, Ft as isString$2, Gt as dual, Kt as flow, Mt as isObject$3, Ot as isIterable, Qt as pipeArguments, Rt as or, St as symbol, Ut as constVoid, Vt as constTrue, Wt as constant, X as assignProperty, Xt as pipe$1, _t as hash$1, a as isFailure$1, b as PipeInspectableProto, bt as string, c as map$4, d as succeed$1, dt as symbolRedactable, et as Class, f as try_, ft as equals, gt as combine, ht as array, it as format$2, l as mapError, mt as symbol$1, n as failVoid, nt as toJson, o as isResult, qt as identity$2, r as flatMap$2, s as isSuccess$1, t as fail$1, tt as NodeInspectSymbol, u as match$1, ut as redact$1, xt as structure, zt as constFalse } from "./Result-Cem4lYBf.js";
|
|
5
|
-
import { $ as shutdown, $i as merge$2, $n as upTo, $r as encodeBase64, A as share, Ai as filter$2, An as succeedSome, At as fail$4, B as zipLatestAll, Bi as isReadonlyArrayNonEmpty, Bn as updateContext, Br as onExit, Bt as forever, C as mapError$2, Ci as toSeconds, Cn as runSyncWith, Cr as NoSuchElementError, Ct as catchTag, D as runForEach, Da as strictEqual, Di as chunksOf, Dn as sleep$1, Dr as hasInterrupts, Dt as die$1, E as runDrain, Ea as make$21, Ei as appendAll, En as service, Er as findErrorOption, Et as contextWith, F as tap$2, Fi as get$10, Fn as tryPromise, G as failCauseUnsafe, Gi as Reference, Gn as withParentSpan, Gr as succeed$2, Gt as gen, H as make$20, Hi as makeEquivalence$1, Hn as void_$1, Hr as provideContext, Ht as forkIn, I as toPull, Ii as getSomes, In as try_$1, Ir as flatMap$3, It as fn, J as offerUnsafe, Ji as empty$7, Jn as exponential$1, Jr as void_, Jt as isEffect, K as make$18, Ki as Service, Kn as withSpan, Kr as suspend, Kt as ignore, L as toQueue, Li as head, Ln as undefined_, Lr as forEach$1, Lt as fnUntraced, M as suspend$2, Mi as findFirst, Mn as sync$2, Mr as map$9, N as switchMap, Ni as flatMap$6, Nn as tap$1, Nr as squash, Nt as filterOrFail, O as runForEachArray, Oi as dedupeWith, On as succeed$4, Or as hasInterruptsOnly, Ot as ensuring$1, P as take$1, Pi as fromIterable$1, Pn as tapError, Pr as andThen, Pt as flatMap$4, Q as publishUnsafe, Qi as make$17, Qn as spaced, Qr as decodeBase64, R as toReadableStreamEffect, Ri as headNonEmpty, Rn as uninterruptible, S as mapEffect, Si as toMinutes, St as catchIf, T as paginate, Ta as Tuple$1, Ti as append$1, Tn as scopedWith, Tr as filterInterruptors, Tt as context$1, U as makeUnsafe$4, Ui as map$10, Un as whileLoop, Ur as provideService, Ut as forkScoped, V as toPullScoped, Vi as lastNonEmpty, Vn as useSpan, Vr as orDie$1, Vt as forkDetach, W as dropping, Wi as empty$9, Wn as withFiber, Wr as scopeAddFinalizerExit, Wt as fromResult, X as take, Xi as getOrUndefined, Xn as modifyDelay, Xt as logWarning, Y as shutdown$1, Yi as get$9, Yn as isSchedule, Yt as logError, Z as publish, Zi as getUnsafe, Zn as passthrough, Zr as DisablePropagation, Zt as map$6, _ as fromReadableStream, _i as minutes, _n as runCallbackWith, _r as isExit, _t as cached, a as changes$1, aa as fromNullishOr, ai as Scheduler, an as onError, ar as forkUnsafe, at as interruptAll, b as isStream, bi as toHours, bn as runPromiseExit, br as succeed$3, bt as catchCause, c as empty$6, ca as getOrThrowWith, ci as toPredicate, cn as orDie$2, cr as _await, ct as runIn, d as filter$1, da as isSome, di as hours, dn as provideService$1, dr as into, dt as all$1, ea as mergeAll$1, ei as Class$1, en as mapError$1, er as isDoneCause, et as unbounded, f as filterEffect, fi as isFinite$1, fn as race, fr as make$22, ft as andThen$1, g as fromQueue, ga as some, gi as min$2, gn as retry, gr as failCause, gt as asVoid, h as fromPubSub, ha as none, hi as millis, hn as result$1, hr as fail$3, ht as asSome, i as catchCause$1, ia as flatMapNullishOr, ii as MixedScheduler, in as never, ir as close, it as interrupt$2, j as succeed$6, ji as filterMap, jn as suspend$1, jr as isTimeoutError, jt as failCause$1, k as runHead, ki as empty$8, kn as succeedNone, kr as interrupt, kt as exit, l as ensuring, la as getOrUndefined$1, li as days, ln as orElseSucceed, lr as done, lt as acquireRelease, m as fromEffectSchedule, ma as match$2, mi as max$2, mn as repeat, mr as succeed$5, mt as as, n as createConnector, na as filter$3, ni as TaggedClass, nn as matchCauseEffect, nr as Scope, nt as set$5, o as changesWith, oa as getOrElse$1, oi as compose$1, on as onExit$1, or as makeUnsafe$2, ot as join, p as fromEffect, pa as map$7, pi as isLessThan, pn as raceFirst, pr as makeUnsafe$3, pt as annotateLogs, q as offer, qi as add, qn as yieldNow, qr as sync$1, qt as interrupt$1, r as callback, ra as flatMap$5, ri as TaggedError, rn as matchEffect, rr as addFinalizer, rt as getCurrent, s as debounce$2, sa as getOrNull, si as has$1, sn as onInterrupt, sr as provide$1, st as joinAll, t as wagmiConnectResult, ta as exists$1, ti as Error$1, tr as currentTimeMillis, tt as make$19, u as fail$5, ua as isNone$1, ui as fromInputUnsafe, un as promise, ur as doneUnsafe, ut as addFinalizer$1, v as fromSchedule, vi as seconds$1, vn as runFork, vr as isFailure$2, vt as cachedWithTTL, w as never$1, wi as zero$2, wn as scope, wr as fail$2, wt as catch_, x as map$8, xi as toMillis, xn as runSync, xr as void_$2, y as interruptWhen, yi as toDays, yn as runForkWith, yr as isSuccess$2, yt as callback$1, z as unwrap$1, zi as isArrayNonEmpty, zn as uninterruptibleMask, zr as map$5, zt as forEach$2 } from "./wagmi-connect-result-BJ91_jis.js";
|
|
5
|
+
import { $ as shutdown, $i as merge$2, $n as upTo, $r as encodeBase64, A as share, Ai as filter$2, An as succeedSome, At as fail$4, B as zipLatestAll, Bi as isReadonlyArrayNonEmpty, Bn as updateContext, Br as onExit, Bt as forever, C as mapError$2, Ci as toSeconds, Cn as runSyncWith, Cr as NoSuchElementError, Ct as catchTag, D as runForEach, Da as strictEqual, Di as chunksOf, Dn as sleep$1, Dr as hasInterrupts, Dt as die$1, E as runDrain, Ea as make$21, Ei as appendAll, En as service, Er as findErrorOption, Et as contextWith, F as tap$2, Fi as get$10, Fn as tryPromise, G as failCauseUnsafe, Gi as Reference, Gn as withParentSpan, Gr as succeed$2, Gt as gen, H as make$20, Hi as makeEquivalence$1, Hn as void_$1, Hr as provideContext, Ht as forkIn, I as toPull, Ii as getSomes, In as try_$1, Ir as flatMap$3, It as fn, J as offerUnsafe, Ji as empty$7, Jn as exponential$1, Jr as void_, Jt as isEffect, K as make$18, Ki as Service, Kn as withSpan, Kr as suspend, Kt as ignore, L as toQueue, Li as head, Ln as undefined_, Lr as forEach$1, Lt as fnUntraced, M as suspend$2, Mi as findFirst, Mn as sync$2, Mr as map$9, N as switchMap, Ni as flatMap$6, Nn as tap$1, Nr as squash, Nt as filterOrFail, O as runForEachArray, Oi as dedupeWith, On as succeed$4, Or as hasInterruptsOnly, Ot as ensuring$1, P as take$1, Pi as fromIterable$1, Pn as tapError, Pr as andThen, Pt as flatMap$4, Q as publishUnsafe, Qi as make$17, Qn as spaced, Qr as decodeBase64, R as toReadableStreamEffect, Ri as headNonEmpty, Rn as uninterruptible, S as mapEffect, Si as toMinutes, St as catchIf, T as paginate, Ta as Tuple$1, Ti as append$1, Tn as scopedWith, Tr as filterInterruptors, Tt as context$1, U as makeUnsafe$4, Ui as map$10, Un as whileLoop, Ur as provideService, Ut as forkScoped, V as toPullScoped, Vi as lastNonEmpty, Vn as useSpan, Vr as orDie$1, Vt as forkDetach, W as dropping, Wi as empty$9, Wn as withFiber, Wr as scopeAddFinalizerExit, Wt as fromResult, X as take, Xi as getOrUndefined, Xn as modifyDelay, Xt as logWarning, Y as shutdown$1, Yi as get$9, Yn as isSchedule, Yt as logError, Z as publish, Zi as getUnsafe, Zn as passthrough, Zr as DisablePropagation, Zt as map$6, _ as fromReadableStream, _i as minutes, _n as runCallbackWith, _r as isExit, _t as cached, a as changes$1, aa as fromNullishOr, ai as Scheduler$1, an as onError, ar as forkUnsafe, at as interruptAll, b as isStream, bi as toHours, bn as runPromiseExit, br as succeed$3, bt as catchCause, c as empty$6, ca as getOrThrowWith, ci as toPredicate, cn as orDie$2, cr as _await, ct as runIn, d as filter$1, da as isSome, di as hours, dn as provideService$1, dr as into, dt as all$1, ea as mergeAll$1, ei as Class$1, en as mapError$1, er as isDoneCause, et as unbounded, f as filterEffect, fi as isFinite$1, fn as race, fr as make$22, ft as andThen$1, g as fromQueue, ga as some, gi as min$2, gn as retry, gr as failCause, gt as asVoid, h as fromPubSub, ha as none, hi as millis, hn as result$1, hr as fail$3, ht as asSome, i as catchCause$1, ia as flatMapNullishOr, ii as MixedScheduler, in as never, ir as close, it as interrupt$2, j as succeed$6, ji as filterMap, jn as suspend$1, jr as isTimeoutError, jt as failCause$1, k as runHead, ki as empty$8, kn as succeedNone, kr as interrupt, kt as exit, l as ensuring, la as getOrUndefined$1, li as days, ln as orElseSucceed, lr as done, lt as acquireRelease, m as fromEffectSchedule, ma as match$2, mi as max$2, mn as repeat, mr as succeed$5, mt as as, n as createConnector, na as filter$3, ni as TaggedClass, nn as matchCauseEffect, nr as Scope, nt as set$5, o as changesWith, oa as getOrElse$1, oi as compose$1, on as onExit$1, or as makeUnsafe$2, ot as join, p as fromEffect, pa as map$7, pi as isLessThan, pn as raceFirst, pr as makeUnsafe$3, pt as annotateLogs, q as offer, qi as add, qn as yieldNow, qr as sync$1, qt as interrupt$1, r as callback, ra as flatMap$5, ri as TaggedError, rn as matchEffect, rr as addFinalizer, rt as getCurrent, s as debounce$2, sa as getOrNull, si as has$1, sn as onInterrupt, sr as provide$1, st as joinAll, t as wagmiConnectResult, ta as exists$1, ti as Error$1, tr as currentTimeMillis, tt as make$19, u as fail$5, ua as isNone$1, ui as fromInputUnsafe, un as promise, ur as doneUnsafe, ut as addFinalizer$1, v as fromSchedule, vi as seconds$1, vn as runFork, vr as isFailure$2, vt as cachedWithTTL, w as never$1, wi as zero$2, wn as scope, wr as fail$2, wt as catch_, x as map$8, xi as toMillis, xn as runSync, xr as void_$2, y as interruptWhen, yi as toDays, yn as runForkWith, yr as isSuccess$2, yt as callback$1, z as unwrap$1, zi as isArrayNonEmpty, zn as uninterruptibleMask, zr as map$5, zt as forEach$2 } from "./wagmi-connect-result-BJ91_jis.js";
|
|
6
6
|
import { $ as isInt, A as UndefinedOr, B as decodeSync, Bt as filter$4, C as String$1, Ct as MissingKey, D as TemplateLiteral, Dt as formatLocal, E as TaggedError$1, F as declare, Ft as zoneMakeLocal, G as decodeUnknownSync, H as decodeUnknownEffect, Ht as map$11, I as decode, It as capitalize, J as fromJsonString, K as encodeEffect, L as decodeEffect, Lt as startsWith, M as Unknown, Mt as subtract, N as brand, Nt as toEpochMillis, O as Trim, Ot as isLessThanOrEqualTo$1, P as catchDecoding, Pt as toParts, Q as isGreaterThanOrEqualTo, R as decodeOption, Rt as toLowerCase$1, S as SchemaError, St as transformOrFail, T as StructWithRest, Tt as distance$1, U as decodeUnknownOption, V as decodeTo, Vt as makeEquivalence$2, W as decodeUnknownResult, Wt as union, X as is$2, Y as instanceOf, Z as isFinite$2, _ as Null, _t as transformOptional, a as DateTimeUtc, b as ReadonlySet, bt as forbidden, c as Error$2, ct as optionalKey, d as Json, dt as toCodecJson, et as isLessThanOrEqualTo, f as Literal, ft as toType, g as NonEmptyString, gt as transform$2, ht as toLowerCase, i as Boolean$1, j as Union, jt as setZone, k as Tuple$2, kt as now$1, l as Finite, lt as suspend$3, m as Natural$1, mt as decodeUnknownEffect$1, n as BigInt$1, nt as isMinLength, ot as makeFilter, p as Literals, pt as withConstructorDefault, q as extendTo, rt as isPattern, s as Defect, st as optional$1, t as ArraySchema, tt as isMaxLength, u as FiniteFromString, ut as tag$2, v as NullOr, vt as decodeUriComponent, w as Struct, wt as makeFormatterStandardSchemaV1, x as Record, xt as transform$3, y as Number$1, yt as encodeUriComponent, z as decodeResult, zt as empty$10 } from "./Schema-DFoi51wt.js";
|
|
7
7
|
import { S as sumExact, T as BigNumber, _ as TolerantOptionalUtcDateTimeFromString, a as decodeUnsignedBorrowEvmTransactionJson, b as exactDecimal, d as isLedgerLiveConnector, f as ExactBaseUnitAmount, g as TolerantNullableUtcDateTimeFromString, h as NonNegativeExactDecimal, i as decodeAndPrepareEvmTransaction, l as normalizeChainId, m as ExactDecimalInput, n as substratePayloadCodec, o as decodeUnsignedEvmTransactionJson, p as ExactDecimal, r as decodeAndPrepareBorrowEvmTransaction, t as unsignedTronTransactionCodec, v as UtcDateTimeFromString, w as truncateToTokenDecimals, x as exactZero, y as logDecodeRejection } from "./transaction-CmOScFm6.js";
|
|
8
8
|
import { a as TokenAddress$1, c as WalletAddress$1, i as ProviderId, l as YieldId, n as isCosmosConnector, o as TransactionId$1, r as ActionId$1, s as ValidatorAddress } from "./cosmos-connector-meta-UMFrkViG.js";
|
|
@@ -17,7 +17,6 @@ import { A as WalletPublicKeyError, C as WalletConfigError, D as WalletError, E
|
|
|
17
17
|
import { t as require_dijkstra } from "./dijkstra-DE6XLT2u.js";
|
|
18
18
|
import { a as WalletIntegrationError, c as WalletSwitchError, i as WalletDecodeError, n as WalletCapabilityUnavailableError, o as WalletRuntimeInvariantError, r as WalletConnectionError$1, s as WalletSigningError, t as WalletBroadcastError } from "./wallet-errors-B4cGcGNy.js";
|
|
19
19
|
import { t as en_US_default } from "./chunk-ONEAIJQL-Ckaogdi2.js";
|
|
20
|
-
import { f as init_tslib_es6, l as __rest, t as __assign, u as __spreadArray } from "./tslib.es6-Bdhxqx7j.js";
|
|
21
20
|
import { n as isTonConnector, r as require_ua_parser } from "./ton-connector-meta-CXcDGgc2.js";
|
|
22
21
|
import { n as miscChainsMap, s as getNetworkLogo } from "./configured-chains-BfQ8ESmR.js";
|
|
23
22
|
import { t as makeCurrentValueStream } from "./current-value-stream-BPaLLDf4.js";
|
|
@@ -28,10 +27,16 @@ import { n as isSubstrateConnector } from "./substrate-connector-meta-DlZ7kUy-.j
|
|
|
28
27
|
import { n as isTronConnector } from "./tron-connector-meta-Dy7RipKo.js";
|
|
29
28
|
import * as m from "react";
|
|
30
29
|
import React3, { Children, Component, Fragment, PureComponent, StrictMode, cloneElement, createContext, createElement, forwardRef, isValidElement, memo, useCallback, useContext, useEffect, useEffectEvent, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
30
|
+
import * as Scheduler from "scheduler";
|
|
31
31
|
import "react-dom/client";
|
|
32
32
|
import * as ReactDOM from "react-dom";
|
|
33
33
|
import { createPortal, flushSync } from "react-dom";
|
|
34
34
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
35
|
+
import { RemoveScroll } from "react-remove-scroll";
|
|
36
|
+
import { DismissableLayer, useDismissableLayerSurface } from "@radix-ui/react-dismissable-layer";
|
|
37
|
+
import { FocusScope } from "@radix-ui/react-focus-scope";
|
|
38
|
+
import { useFocusGuards } from "@radix-ui/react-focus-guards";
|
|
39
|
+
import { hideOthers } from "aria-hidden";
|
|
35
40
|
//#region builtin:esm-external-require-react
|
|
36
41
|
var require_builtin_esm_external_require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
37
42
|
module.exports = { ...m };
|
|
@@ -3165,7 +3170,7 @@ function makeEffect(ctx, effect, initialValue, services = empty$7(), uninterrupt
|
|
|
3165
3170
|
});
|
|
3166
3171
|
let syncResult;
|
|
3167
3172
|
let isAsync = false;
|
|
3168
|
-
const cancel = runCallbackSync(services.pipe(add(Scope, scope), add(AtomRegistry, ctx.registry), add(Scheduler, ctx.registry.scheduler)), effect, function(exit) {
|
|
3173
|
+
const cancel = runCallbackSync(services.pipe(add(Scope, scope), add(AtomRegistry, ctx.registry), add(Scheduler$1, ctx.registry.scheduler)), effect, function(exit) {
|
|
3169
3174
|
syncResult = fromExitWithPrevious(exit, previous);
|
|
3170
3175
|
if (isAsync) ctx.setSelf(syncResult);
|
|
3171
3176
|
}, uninterruptible);
|
|
@@ -3267,7 +3272,7 @@ function makeStream(ctx, stream, initialValue, services = empty$7()) {
|
|
|
3267
3272
|
else ctx.setSelf(failureWithPrevious(cause, { previous: ctx.self() }));
|
|
3268
3273
|
return void_$1;
|
|
3269
3274
|
}));
|
|
3270
|
-
const cancel = runCallbackSync(services.pipe(add(AtomRegistry, ctx.registry), add(Scheduler, ctx.registry.scheduler)), run, constVoid, false);
|
|
3275
|
+
const cancel = runCallbackSync(services.pipe(add(AtomRegistry, ctx.registry), add(Scheduler$1, ctx.registry.scheduler)), run, constVoid, false);
|
|
3271
3276
|
if (cancel !== void 0) ctx.addFinalizer(cancel);
|
|
3272
3277
|
if (previous._tag === "Some") return waitingFrom(previous);
|
|
3273
3278
|
return waiting(initialValue);
|
|
@@ -3645,505 +3650,6 @@ var ServerValueTypeId = "~effect-atom/atom/Atom/ServerValue";
|
|
|
3645
3650
|
*/
|
|
3646
3651
|
var getServerValue = /*#__PURE__*/ dual(2, (self, registry) => "~effect-atom/atom/Atom/ServerValue" in self ? self[ServerValueTypeId]((atom) => registry.get(atom)) : registry.get(self));
|
|
3647
3652
|
//#endregion
|
|
3648
|
-
//#region ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js
|
|
3649
|
-
/**
|
|
3650
|
-
* @license React
|
|
3651
|
-
* scheduler.production.js
|
|
3652
|
-
*
|
|
3653
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3654
|
-
*
|
|
3655
|
-
* This source code is licensed under the MIT license found in the
|
|
3656
|
-
* LICENSE file in the root directory of this source tree.
|
|
3657
|
-
*/
|
|
3658
|
-
var require_scheduler_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3659
|
-
function push(heap, node) {
|
|
3660
|
-
var index = heap.length;
|
|
3661
|
-
heap.push(node);
|
|
3662
|
-
a: for (; 0 < index;) {
|
|
3663
|
-
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
|
|
3664
|
-
if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
3665
|
-
else break a;
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
function peek(heap) {
|
|
3669
|
-
return 0 === heap.length ? null : heap[0];
|
|
3670
|
-
}
|
|
3671
|
-
function pop(heap) {
|
|
3672
|
-
if (0 === heap.length) return null;
|
|
3673
|
-
var first = heap[0], last = heap.pop();
|
|
3674
|
-
if (last !== first) {
|
|
3675
|
-
heap[0] = last;
|
|
3676
|
-
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength;) {
|
|
3677
|
-
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
3678
|
-
if (0 > compare(left, last)) rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
|
|
3679
|
-
else if (rightIndex < length && 0 > compare(right, last)) heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
3680
|
-
else break a;
|
|
3681
|
-
}
|
|
3682
|
-
}
|
|
3683
|
-
return first;
|
|
3684
|
-
}
|
|
3685
|
-
function compare(a, b) {
|
|
3686
|
-
var diff = a.sortIndex - b.sortIndex;
|
|
3687
|
-
return 0 !== diff ? diff : a.id - b.id;
|
|
3688
|
-
}
|
|
3689
|
-
exports.unstable_now = void 0;
|
|
3690
|
-
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
3691
|
-
var localPerformance = performance;
|
|
3692
|
-
exports.unstable_now = function() {
|
|
3693
|
-
return localPerformance.now();
|
|
3694
|
-
};
|
|
3695
|
-
} else {
|
|
3696
|
-
var localDate = Date, initialTime = localDate.now();
|
|
3697
|
-
exports.unstable_now = function() {
|
|
3698
|
-
return localDate.now() - initialTime;
|
|
3699
|
-
};
|
|
3700
|
-
}
|
|
3701
|
-
var taskQueue = [];
|
|
3702
|
-
var timerQueue = [];
|
|
3703
|
-
var taskIdCounter = 1;
|
|
3704
|
-
var currentTask = null;
|
|
3705
|
-
var currentPriorityLevel = 3;
|
|
3706
|
-
var isPerformingWork = !1;
|
|
3707
|
-
var isHostCallbackScheduled = !1;
|
|
3708
|
-
var isHostTimeoutScheduled = !1;
|
|
3709
|
-
var needsPaint = !1;
|
|
3710
|
-
var localSetTimeout = "function" === typeof setTimeout ? setTimeout : null;
|
|
3711
|
-
var localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null;
|
|
3712
|
-
var localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null;
|
|
3713
|
-
function advanceTimers(currentTime) {
|
|
3714
|
-
for (var timer = peek(timerQueue); null !== timer;) {
|
|
3715
|
-
if (null === timer.callback) pop(timerQueue);
|
|
3716
|
-
else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
|
|
3717
|
-
else break;
|
|
3718
|
-
timer = peek(timerQueue);
|
|
3719
|
-
}
|
|
3720
|
-
}
|
|
3721
|
-
function handleTimeout(currentTime) {
|
|
3722
|
-
isHostTimeoutScheduled = !1;
|
|
3723
|
-
advanceTimers(currentTime);
|
|
3724
|
-
if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline());
|
|
3725
|
-
else {
|
|
3726
|
-
var firstTimer = peek(timerQueue);
|
|
3727
|
-
null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
3728
|
-
}
|
|
3729
|
-
}
|
|
3730
|
-
var isMessageLoopRunning = !1;
|
|
3731
|
-
var taskTimeoutID = -1;
|
|
3732
|
-
var frameInterval = 5;
|
|
3733
|
-
var startTime = -1;
|
|
3734
|
-
function shouldYieldToHost() {
|
|
3735
|
-
return needsPaint ? !0 : exports.unstable_now() - startTime < frameInterval ? !1 : !0;
|
|
3736
|
-
}
|
|
3737
|
-
function performWorkUntilDeadline() {
|
|
3738
|
-
needsPaint = !1;
|
|
3739
|
-
if (isMessageLoopRunning) {
|
|
3740
|
-
var currentTime = exports.unstable_now();
|
|
3741
|
-
startTime = currentTime;
|
|
3742
|
-
var hasMoreWork = !0;
|
|
3743
|
-
try {
|
|
3744
|
-
a: {
|
|
3745
|
-
isHostCallbackScheduled = !1;
|
|
3746
|
-
isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
|
|
3747
|
-
isPerformingWork = !0;
|
|
3748
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
3749
|
-
try {
|
|
3750
|
-
b: {
|
|
3751
|
-
advanceTimers(currentTime);
|
|
3752
|
-
for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost());) {
|
|
3753
|
-
var callback = currentTask.callback;
|
|
3754
|
-
if ("function" === typeof callback) {
|
|
3755
|
-
currentTask.callback = null;
|
|
3756
|
-
currentPriorityLevel = currentTask.priorityLevel;
|
|
3757
|
-
var continuationCallback = callback(currentTask.expirationTime <= currentTime);
|
|
3758
|
-
currentTime = exports.unstable_now();
|
|
3759
|
-
if ("function" === typeof continuationCallback) {
|
|
3760
|
-
currentTask.callback = continuationCallback;
|
|
3761
|
-
advanceTimers(currentTime);
|
|
3762
|
-
hasMoreWork = !0;
|
|
3763
|
-
break b;
|
|
3764
|
-
}
|
|
3765
|
-
currentTask === peek(taskQueue) && pop(taskQueue);
|
|
3766
|
-
advanceTimers(currentTime);
|
|
3767
|
-
} else pop(taskQueue);
|
|
3768
|
-
currentTask = peek(taskQueue);
|
|
3769
|
-
}
|
|
3770
|
-
if (null !== currentTask) hasMoreWork = !0;
|
|
3771
|
-
else {
|
|
3772
|
-
var firstTimer = peek(timerQueue);
|
|
3773
|
-
null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
3774
|
-
hasMoreWork = !1;
|
|
3775
|
-
}
|
|
3776
|
-
}
|
|
3777
|
-
break a;
|
|
3778
|
-
} finally {
|
|
3779
|
-
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1;
|
|
3780
|
-
}
|
|
3781
|
-
hasMoreWork = void 0;
|
|
3782
|
-
}
|
|
3783
|
-
} finally {
|
|
3784
|
-
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1;
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
var schedulePerformWorkUntilDeadline;
|
|
3789
|
-
if ("function" === typeof localSetImmediate) schedulePerformWorkUntilDeadline = function() {
|
|
3790
|
-
localSetImmediate(performWorkUntilDeadline);
|
|
3791
|
-
};
|
|
3792
|
-
else if ("undefined" !== typeof MessageChannel) {
|
|
3793
|
-
var channel = new MessageChannel(), port = channel.port2;
|
|
3794
|
-
channel.port1.onmessage = performWorkUntilDeadline;
|
|
3795
|
-
schedulePerformWorkUntilDeadline = function() {
|
|
3796
|
-
port.postMessage(null);
|
|
3797
|
-
};
|
|
3798
|
-
} else schedulePerformWorkUntilDeadline = function() {
|
|
3799
|
-
localSetTimeout(performWorkUntilDeadline, 0);
|
|
3800
|
-
};
|
|
3801
|
-
function requestHostTimeout(callback, ms) {
|
|
3802
|
-
taskTimeoutID = localSetTimeout(function() {
|
|
3803
|
-
callback(exports.unstable_now());
|
|
3804
|
-
}, ms);
|
|
3805
|
-
}
|
|
3806
|
-
exports.unstable_IdlePriority = 5;
|
|
3807
|
-
exports.unstable_ImmediatePriority = 1;
|
|
3808
|
-
exports.unstable_LowPriority = 4;
|
|
3809
|
-
exports.unstable_NormalPriority = 3;
|
|
3810
|
-
exports.unstable_Profiling = null;
|
|
3811
|
-
exports.unstable_UserBlockingPriority = 2;
|
|
3812
|
-
exports.unstable_cancelCallback = function(task) {
|
|
3813
|
-
task.callback = null;
|
|
3814
|
-
};
|
|
3815
|
-
exports.unstable_forceFrameRate = function(fps) {
|
|
3816
|
-
0 > fps || 125 < fps ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
3817
|
-
};
|
|
3818
|
-
exports.unstable_getCurrentPriorityLevel = function() {
|
|
3819
|
-
return currentPriorityLevel;
|
|
3820
|
-
};
|
|
3821
|
-
exports.unstable_next = function(eventHandler) {
|
|
3822
|
-
switch (currentPriorityLevel) {
|
|
3823
|
-
case 1:
|
|
3824
|
-
case 2:
|
|
3825
|
-
case 3:
|
|
3826
|
-
var priorityLevel = 3;
|
|
3827
|
-
break;
|
|
3828
|
-
default: priorityLevel = currentPriorityLevel;
|
|
3829
|
-
}
|
|
3830
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
3831
|
-
currentPriorityLevel = priorityLevel;
|
|
3832
|
-
try {
|
|
3833
|
-
return eventHandler();
|
|
3834
|
-
} finally {
|
|
3835
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
3836
|
-
}
|
|
3837
|
-
};
|
|
3838
|
-
exports.unstable_requestPaint = function() {
|
|
3839
|
-
needsPaint = !0;
|
|
3840
|
-
};
|
|
3841
|
-
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
3842
|
-
switch (priorityLevel) {
|
|
3843
|
-
case 1:
|
|
3844
|
-
case 2:
|
|
3845
|
-
case 3:
|
|
3846
|
-
case 4:
|
|
3847
|
-
case 5: break;
|
|
3848
|
-
default: priorityLevel = 3;
|
|
3849
|
-
}
|
|
3850
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
3851
|
-
currentPriorityLevel = priorityLevel;
|
|
3852
|
-
try {
|
|
3853
|
-
return eventHandler();
|
|
3854
|
-
} finally {
|
|
3855
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
3856
|
-
}
|
|
3857
|
-
};
|
|
3858
|
-
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
3859
|
-
var currentTime = exports.unstable_now();
|
|
3860
|
-
"object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
|
|
3861
|
-
switch (priorityLevel) {
|
|
3862
|
-
case 1:
|
|
3863
|
-
var timeout = -1;
|
|
3864
|
-
break;
|
|
3865
|
-
case 2:
|
|
3866
|
-
timeout = 250;
|
|
3867
|
-
break;
|
|
3868
|
-
case 5:
|
|
3869
|
-
timeout = 1073741823;
|
|
3870
|
-
break;
|
|
3871
|
-
case 4:
|
|
3872
|
-
timeout = 1e4;
|
|
3873
|
-
break;
|
|
3874
|
-
default: timeout = 5e3;
|
|
3875
|
-
}
|
|
3876
|
-
timeout = options + timeout;
|
|
3877
|
-
priorityLevel = {
|
|
3878
|
-
id: taskIdCounter++,
|
|
3879
|
-
callback,
|
|
3880
|
-
priorityLevel,
|
|
3881
|
-
startTime: options,
|
|
3882
|
-
expirationTime: timeout,
|
|
3883
|
-
sortIndex: -1
|
|
3884
|
-
};
|
|
3885
|
-
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline())));
|
|
3886
|
-
return priorityLevel;
|
|
3887
|
-
};
|
|
3888
|
-
exports.unstable_shouldYield = shouldYieldToHost;
|
|
3889
|
-
exports.unstable_wrapCallback = function(callback) {
|
|
3890
|
-
var parentPriorityLevel = currentPriorityLevel;
|
|
3891
|
-
return function() {
|
|
3892
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
3893
|
-
currentPriorityLevel = parentPriorityLevel;
|
|
3894
|
-
try {
|
|
3895
|
-
return callback.apply(this, arguments);
|
|
3896
|
-
} finally {
|
|
3897
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
3898
|
-
}
|
|
3899
|
-
};
|
|
3900
|
-
};
|
|
3901
|
-
}));
|
|
3902
|
-
//#endregion
|
|
3903
|
-
//#region ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js
|
|
3904
|
-
/**
|
|
3905
|
-
* @license React
|
|
3906
|
-
* scheduler.development.js
|
|
3907
|
-
*
|
|
3908
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3909
|
-
*
|
|
3910
|
-
* This source code is licensed under the MIT license found in the
|
|
3911
|
-
* LICENSE file in the root directory of this source tree.
|
|
3912
|
-
*/
|
|
3913
|
-
var require_scheduler_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3914
|
-
init_dist();
|
|
3915
|
-
"production" !== process$1.env.NODE_ENV && (function() {
|
|
3916
|
-
function performWorkUntilDeadline() {
|
|
3917
|
-
needsPaint = !1;
|
|
3918
|
-
if (isMessageLoopRunning) {
|
|
3919
|
-
var currentTime = exports.unstable_now();
|
|
3920
|
-
startTime = currentTime;
|
|
3921
|
-
var hasMoreWork = !0;
|
|
3922
|
-
try {
|
|
3923
|
-
a: {
|
|
3924
|
-
isHostCallbackScheduled = !1;
|
|
3925
|
-
isHostTimeoutScheduled && (isHostTimeoutScheduled = !1, localClearTimeout(taskTimeoutID), taskTimeoutID = -1);
|
|
3926
|
-
isPerformingWork = !0;
|
|
3927
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
3928
|
-
try {
|
|
3929
|
-
b: {
|
|
3930
|
-
advanceTimers(currentTime);
|
|
3931
|
-
for (currentTask = peek(taskQueue); null !== currentTask && !(currentTask.expirationTime > currentTime && shouldYieldToHost());) {
|
|
3932
|
-
var callback = currentTask.callback;
|
|
3933
|
-
if ("function" === typeof callback) {
|
|
3934
|
-
currentTask.callback = null;
|
|
3935
|
-
currentPriorityLevel = currentTask.priorityLevel;
|
|
3936
|
-
var continuationCallback = callback(currentTask.expirationTime <= currentTime);
|
|
3937
|
-
currentTime = exports.unstable_now();
|
|
3938
|
-
if ("function" === typeof continuationCallback) {
|
|
3939
|
-
currentTask.callback = continuationCallback;
|
|
3940
|
-
advanceTimers(currentTime);
|
|
3941
|
-
hasMoreWork = !0;
|
|
3942
|
-
break b;
|
|
3943
|
-
}
|
|
3944
|
-
currentTask === peek(taskQueue) && pop(taskQueue);
|
|
3945
|
-
advanceTimers(currentTime);
|
|
3946
|
-
} else pop(taskQueue);
|
|
3947
|
-
currentTask = peek(taskQueue);
|
|
3948
|
-
}
|
|
3949
|
-
if (null !== currentTask) hasMoreWork = !0;
|
|
3950
|
-
else {
|
|
3951
|
-
var firstTimer = peek(timerQueue);
|
|
3952
|
-
null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
3953
|
-
hasMoreWork = !1;
|
|
3954
|
-
}
|
|
3955
|
-
}
|
|
3956
|
-
break a;
|
|
3957
|
-
} finally {
|
|
3958
|
-
currentTask = null, currentPriorityLevel = previousPriorityLevel, isPerformingWork = !1;
|
|
3959
|
-
}
|
|
3960
|
-
hasMoreWork = void 0;
|
|
3961
|
-
}
|
|
3962
|
-
} finally {
|
|
3963
|
-
hasMoreWork ? schedulePerformWorkUntilDeadline() : isMessageLoopRunning = !1;
|
|
3964
|
-
}
|
|
3965
|
-
}
|
|
3966
|
-
}
|
|
3967
|
-
function push(heap, node) {
|
|
3968
|
-
var index = heap.length;
|
|
3969
|
-
heap.push(node);
|
|
3970
|
-
a: for (; 0 < index;) {
|
|
3971
|
-
var parentIndex = index - 1 >>> 1, parent = heap[parentIndex];
|
|
3972
|
-
if (0 < compare(parent, node)) heap[parentIndex] = node, heap[index] = parent, index = parentIndex;
|
|
3973
|
-
else break a;
|
|
3974
|
-
}
|
|
3975
|
-
}
|
|
3976
|
-
function peek(heap) {
|
|
3977
|
-
return 0 === heap.length ? null : heap[0];
|
|
3978
|
-
}
|
|
3979
|
-
function pop(heap) {
|
|
3980
|
-
if (0 === heap.length) return null;
|
|
3981
|
-
var first = heap[0], last = heap.pop();
|
|
3982
|
-
if (last !== first) {
|
|
3983
|
-
heap[0] = last;
|
|
3984
|
-
a: for (var index = 0, length = heap.length, halfLength = length >>> 1; index < halfLength;) {
|
|
3985
|
-
var leftIndex = 2 * (index + 1) - 1, left = heap[leftIndex], rightIndex = leftIndex + 1, right = heap[rightIndex];
|
|
3986
|
-
if (0 > compare(left, last)) rightIndex < length && 0 > compare(right, left) ? (heap[index] = right, heap[rightIndex] = last, index = rightIndex) : (heap[index] = left, heap[leftIndex] = last, index = leftIndex);
|
|
3987
|
-
else if (rightIndex < length && 0 > compare(right, last)) heap[index] = right, heap[rightIndex] = last, index = rightIndex;
|
|
3988
|
-
else break a;
|
|
3989
|
-
}
|
|
3990
|
-
}
|
|
3991
|
-
return first;
|
|
3992
|
-
}
|
|
3993
|
-
function compare(a, b) {
|
|
3994
|
-
var diff = a.sortIndex - b.sortIndex;
|
|
3995
|
-
return 0 !== diff ? diff : a.id - b.id;
|
|
3996
|
-
}
|
|
3997
|
-
function advanceTimers(currentTime) {
|
|
3998
|
-
for (var timer = peek(timerQueue); null !== timer;) {
|
|
3999
|
-
if (null === timer.callback) pop(timerQueue);
|
|
4000
|
-
else if (timer.startTime <= currentTime) pop(timerQueue), timer.sortIndex = timer.expirationTime, push(taskQueue, timer);
|
|
4001
|
-
else break;
|
|
4002
|
-
timer = peek(timerQueue);
|
|
4003
|
-
}
|
|
4004
|
-
}
|
|
4005
|
-
function handleTimeout(currentTime) {
|
|
4006
|
-
isHostTimeoutScheduled = !1;
|
|
4007
|
-
advanceTimers(currentTime);
|
|
4008
|
-
if (!isHostCallbackScheduled) if (null !== peek(taskQueue)) isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline());
|
|
4009
|
-
else {
|
|
4010
|
-
var firstTimer = peek(timerQueue);
|
|
4011
|
-
null !== firstTimer && requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
|
|
4012
|
-
}
|
|
4013
|
-
}
|
|
4014
|
-
function shouldYieldToHost() {
|
|
4015
|
-
return needsPaint ? !0 : exports.unstable_now() - startTime < frameInterval ? !1 : !0;
|
|
4016
|
-
}
|
|
4017
|
-
function requestHostTimeout(callback, ms) {
|
|
4018
|
-
taskTimeoutID = localSetTimeout(function() {
|
|
4019
|
-
callback(exports.unstable_now());
|
|
4020
|
-
}, ms);
|
|
4021
|
-
}
|
|
4022
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
4023
|
-
exports.unstable_now = void 0;
|
|
4024
|
-
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
4025
|
-
var localPerformance = performance;
|
|
4026
|
-
exports.unstable_now = function() {
|
|
4027
|
-
return localPerformance.now();
|
|
4028
|
-
};
|
|
4029
|
-
} else {
|
|
4030
|
-
var localDate = Date, initialTime = localDate.now();
|
|
4031
|
-
exports.unstable_now = function() {
|
|
4032
|
-
return localDate.now() - initialTime;
|
|
4033
|
-
};
|
|
4034
|
-
}
|
|
4035
|
-
var taskQueue = [], timerQueue = [], taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout = "function" === typeof setTimeout ? setTimeout : null, localClearTimeout = "function" === typeof clearTimeout ? clearTimeout : null, localSetImmediate = "undefined" !== typeof setImmediate ? setImmediate : null, isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
|
|
4036
|
-
if ("function" === typeof localSetImmediate) var schedulePerformWorkUntilDeadline = function() {
|
|
4037
|
-
localSetImmediate(performWorkUntilDeadline);
|
|
4038
|
-
};
|
|
4039
|
-
else if ("undefined" !== typeof MessageChannel) {
|
|
4040
|
-
var channel = new MessageChannel(), port = channel.port2;
|
|
4041
|
-
channel.port1.onmessage = performWorkUntilDeadline;
|
|
4042
|
-
schedulePerformWorkUntilDeadline = function() {
|
|
4043
|
-
port.postMessage(null);
|
|
4044
|
-
};
|
|
4045
|
-
} else schedulePerformWorkUntilDeadline = function() {
|
|
4046
|
-
localSetTimeout(performWorkUntilDeadline, 0);
|
|
4047
|
-
};
|
|
4048
|
-
exports.unstable_IdlePriority = 5;
|
|
4049
|
-
exports.unstable_ImmediatePriority = 1;
|
|
4050
|
-
exports.unstable_LowPriority = 4;
|
|
4051
|
-
exports.unstable_NormalPriority = 3;
|
|
4052
|
-
exports.unstable_Profiling = null;
|
|
4053
|
-
exports.unstable_UserBlockingPriority = 2;
|
|
4054
|
-
exports.unstable_cancelCallback = function(task) {
|
|
4055
|
-
task.callback = null;
|
|
4056
|
-
};
|
|
4057
|
-
exports.unstable_forceFrameRate = function(fps) {
|
|
4058
|
-
0 > fps || 125 < fps ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
4059
|
-
};
|
|
4060
|
-
exports.unstable_getCurrentPriorityLevel = function() {
|
|
4061
|
-
return currentPriorityLevel;
|
|
4062
|
-
};
|
|
4063
|
-
exports.unstable_next = function(eventHandler) {
|
|
4064
|
-
switch (currentPriorityLevel) {
|
|
4065
|
-
case 1:
|
|
4066
|
-
case 2:
|
|
4067
|
-
case 3:
|
|
4068
|
-
var priorityLevel = 3;
|
|
4069
|
-
break;
|
|
4070
|
-
default: priorityLevel = currentPriorityLevel;
|
|
4071
|
-
}
|
|
4072
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
4073
|
-
currentPriorityLevel = priorityLevel;
|
|
4074
|
-
try {
|
|
4075
|
-
return eventHandler();
|
|
4076
|
-
} finally {
|
|
4077
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
4078
|
-
}
|
|
4079
|
-
};
|
|
4080
|
-
exports.unstable_requestPaint = function() {
|
|
4081
|
-
needsPaint = !0;
|
|
4082
|
-
};
|
|
4083
|
-
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
4084
|
-
switch (priorityLevel) {
|
|
4085
|
-
case 1:
|
|
4086
|
-
case 2:
|
|
4087
|
-
case 3:
|
|
4088
|
-
case 4:
|
|
4089
|
-
case 5: break;
|
|
4090
|
-
default: priorityLevel = 3;
|
|
4091
|
-
}
|
|
4092
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
4093
|
-
currentPriorityLevel = priorityLevel;
|
|
4094
|
-
try {
|
|
4095
|
-
return eventHandler();
|
|
4096
|
-
} finally {
|
|
4097
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
4098
|
-
}
|
|
4099
|
-
};
|
|
4100
|
-
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
4101
|
-
var currentTime = exports.unstable_now();
|
|
4102
|
-
"object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
|
|
4103
|
-
switch (priorityLevel) {
|
|
4104
|
-
case 1:
|
|
4105
|
-
var timeout = -1;
|
|
4106
|
-
break;
|
|
4107
|
-
case 2:
|
|
4108
|
-
timeout = 250;
|
|
4109
|
-
break;
|
|
4110
|
-
case 5:
|
|
4111
|
-
timeout = 1073741823;
|
|
4112
|
-
break;
|
|
4113
|
-
case 4:
|
|
4114
|
-
timeout = 1e4;
|
|
4115
|
-
break;
|
|
4116
|
-
default: timeout = 5e3;
|
|
4117
|
-
}
|
|
4118
|
-
timeout = options + timeout;
|
|
4119
|
-
priorityLevel = {
|
|
4120
|
-
id: taskIdCounter++,
|
|
4121
|
-
callback,
|
|
4122
|
-
priorityLevel,
|
|
4123
|
-
startTime: options,
|
|
4124
|
-
expirationTime: timeout,
|
|
4125
|
-
sortIndex: -1
|
|
4126
|
-
};
|
|
4127
|
-
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline())));
|
|
4128
|
-
return priorityLevel;
|
|
4129
|
-
};
|
|
4130
|
-
exports.unstable_shouldYield = shouldYieldToHost;
|
|
4131
|
-
exports.unstable_wrapCallback = function(callback) {
|
|
4132
|
-
var parentPriorityLevel = currentPriorityLevel;
|
|
4133
|
-
return function() {
|
|
4134
|
-
var previousPriorityLevel = currentPriorityLevel;
|
|
4135
|
-
currentPriorityLevel = parentPriorityLevel;
|
|
4136
|
-
try {
|
|
4137
|
-
return callback.apply(this, arguments);
|
|
4138
|
-
} finally {
|
|
4139
|
-
currentPriorityLevel = previousPriorityLevel;
|
|
4140
|
-
}
|
|
4141
|
-
};
|
|
4142
|
-
};
|
|
4143
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
4144
|
-
})();
|
|
4145
|
-
}));
|
|
4146
|
-
//#endregion
|
|
4147
3653
|
//#region ../../node_modules/.pnpm/@effect+atom-react@4.0.0-rc.112_effect@4.0.0-rc.112_react@19.2.8_scheduler@0.27.0/node_modules/@effect/atom-react/dist/RegistryContext.js
|
|
4148
3654
|
/**
|
|
4149
3655
|
* React context and provider for the Atom registry used by Effect Atom hooks.
|
|
@@ -4153,11 +3659,6 @@ var require_scheduler_development = /* @__PURE__ */ __commonJSMin(((exports) =>
|
|
|
4153
3659
|
*
|
|
4154
3660
|
* @since 4.0.0
|
|
4155
3661
|
*/
|
|
4156
|
-
var import_scheduler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4157
|
-
init_dist();
|
|
4158
|
-
if (process$1.env.NODE_ENV === "production") module.exports = require_scheduler_production();
|
|
4159
|
-
else module.exports = require_scheduler_development();
|
|
4160
|
-
})))(), 1);
|
|
4161
3662
|
/**
|
|
4162
3663
|
* Schedules Atom registry work with React's scheduler at low priority and
|
|
4163
3664
|
* returns a cancellation function for the scheduled task.
|
|
@@ -4166,8 +3667,8 @@ var import_scheduler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((
|
|
|
4166
3667
|
* @since 4.0.0
|
|
4167
3668
|
*/
|
|
4168
3669
|
function scheduleTask(f) {
|
|
4169
|
-
const node =
|
|
4170
|
-
return () =>
|
|
3670
|
+
const node = Scheduler.unstable_scheduleCallback(Scheduler.unstable_LowPriority, f);
|
|
3671
|
+
return () => Scheduler.unstable_cancelCallback(node);
|
|
4171
3672
|
}
|
|
4172
3673
|
/**
|
|
4173
3674
|
* Provides a React context that supplies the `AtomRegistry` used by Atom hooks and
|
|
@@ -7761,7 +7262,7 @@ function useMatch(pattern) {
|
|
|
7761
7262
|
return m.useMemo(() => matchPath(pattern, decodePath(pathname)), [pathname, pattern]);
|
|
7762
7263
|
}
|
|
7763
7264
|
var navigateEffectWarning = `You should call navigate() in a React.useEffect(), not when your component is first rendered.`;
|
|
7764
|
-
function useIsomorphicLayoutEffect$
|
|
7265
|
+
function useIsomorphicLayoutEffect$3(cb) {
|
|
7765
7266
|
if (!m.useContext(NavigationContext).static) m.useLayoutEffect(cb);
|
|
7766
7267
|
}
|
|
7767
7268
|
function useNavigate() {
|
|
@@ -7776,7 +7277,7 @@ function useNavigateUnstable() {
|
|
|
7776
7277
|
let { pathname: locationPathname } = useLocation();
|
|
7777
7278
|
let routePathnamesJson = JSON.stringify(getResolveToMatches(matches));
|
|
7778
7279
|
let activeRef = m.useRef(false);
|
|
7779
|
-
useIsomorphicLayoutEffect$
|
|
7280
|
+
useIsomorphicLayoutEffect$3(() => {
|
|
7780
7281
|
activeRef.current = true;
|
|
7781
7282
|
});
|
|
7782
7283
|
return m.useCallback((to, options = {}) => {
|
|
@@ -8105,7 +7606,7 @@ function useNavigateStable() {
|
|
|
8105
7606
|
let { router } = useDataRouterContext("useNavigate");
|
|
8106
7607
|
let id = useCurrentRouteId("useNavigate");
|
|
8107
7608
|
let activeRef = m.useRef(false);
|
|
8108
|
-
useIsomorphicLayoutEffect$
|
|
7609
|
+
useIsomorphicLayoutEffect$3(() => {
|
|
8109
7610
|
activeRef.current = true;
|
|
8110
7611
|
});
|
|
8111
7612
|
return m.useCallback(async (to, options = {}) => {
|
|
@@ -11503,7 +11004,7 @@ function restoreSentinels(nodes) {
|
|
|
11503
11004
|
if (node.children.length) restoreSentinels(node.children);
|
|
11504
11005
|
});
|
|
11505
11006
|
}
|
|
11506
|
-
function parse
|
|
11007
|
+
function parse(html, options) {
|
|
11507
11008
|
const components = options && options.components || empty$4;
|
|
11508
11009
|
const allowedTags = options && options.allowedTags;
|
|
11509
11010
|
let restoreNeeded = false;
|
|
@@ -11685,7 +11186,7 @@ function stringify(doc) {
|
|
|
11685
11186
|
}, "");
|
|
11686
11187
|
}
|
|
11687
11188
|
var index$2 = {
|
|
11688
|
-
parse
|
|
11189
|
+
parse,
|
|
11689
11190
|
stringify
|
|
11690
11191
|
};
|
|
11691
11192
|
//#endregion
|
|
@@ -30618,7 +30119,7 @@ var layer = /*#__PURE__*/ layerMergedContext(/*#__PURE__*/ succeed$4(/* @__PURE_
|
|
|
30618
30119
|
})));
|
|
30619
30120
|
//#endregion
|
|
30620
30121
|
//#region package.json
|
|
30621
|
-
var version$1 = "0.0.
|
|
30122
|
+
var version$1 = "0.0.286";
|
|
30622
30123
|
//#endregion
|
|
30623
30124
|
//#region src/generated/api/borrow-client.ts
|
|
30624
30125
|
var make$2 = (httpClient, options = {}) => {
|
|
@@ -47509,682 +47010,6 @@ function normalize$1(name) {
|
|
|
47509
47010
|
return normalize$2(name);
|
|
47510
47011
|
}
|
|
47511
47012
|
//#endregion
|
|
47512
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
47513
|
-
var zeroRightClassName = "right-scroll-bar-position";
|
|
47514
|
-
var fullWidthClassName = "width-before-scroll-bar";
|
|
47515
|
-
var noScrollbarsClassName = "with-scroll-bars-hidden";
|
|
47516
|
-
/**
|
|
47517
|
-
* Name of a CSS variable containing the amount of "hidden" scrollbar
|
|
47518
|
-
* ! might be undefined ! use will fallback!
|
|
47519
|
-
*/
|
|
47520
|
-
var removedBarSizeVariable = "--removed-body-scroll-bar-size";
|
|
47521
|
-
//#endregion
|
|
47522
|
-
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
47523
|
-
/**
|
|
47524
|
-
* Assigns a value for a given ref, no matter of the ref format
|
|
47525
|
-
* @param {RefObject} ref - a callback function or ref object
|
|
47526
|
-
* @param value - a new value
|
|
47527
|
-
*
|
|
47528
|
-
* @see https://github.com/theKashey/use-callback-ref#assignref
|
|
47529
|
-
* @example
|
|
47530
|
-
* const refObject = useRef();
|
|
47531
|
-
* const refFn = (ref) => {....}
|
|
47532
|
-
*
|
|
47533
|
-
* assignRef(refObject, "refValue");
|
|
47534
|
-
* assignRef(refFn, "refValue");
|
|
47535
|
-
*/
|
|
47536
|
-
function assignRef(ref, value) {
|
|
47537
|
-
if (typeof ref === "function") ref(value);
|
|
47538
|
-
else if (ref) ref.current = value;
|
|
47539
|
-
return ref;
|
|
47540
|
-
}
|
|
47541
|
-
//#endregion
|
|
47542
|
-
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
47543
|
-
/**
|
|
47544
|
-
* creates a MutableRef with ref change callback
|
|
47545
|
-
* @param initialValue - initial ref value
|
|
47546
|
-
* @param {Function} callback - a callback to run when value changes
|
|
47547
|
-
*
|
|
47548
|
-
* @example
|
|
47549
|
-
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
47550
|
-
* ref.current = 1;
|
|
47551
|
-
* // prints 0 -> 1
|
|
47552
|
-
*
|
|
47553
|
-
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
47554
|
-
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
47555
|
-
* @returns {MutableRefObject}
|
|
47556
|
-
*/
|
|
47557
|
-
function useCallbackRef$1(initialValue, callback) {
|
|
47558
|
-
var ref = useState(function() {
|
|
47559
|
-
return {
|
|
47560
|
-
value: initialValue,
|
|
47561
|
-
callback,
|
|
47562
|
-
facade: {
|
|
47563
|
-
get current() {
|
|
47564
|
-
return ref.value;
|
|
47565
|
-
},
|
|
47566
|
-
set current(value) {
|
|
47567
|
-
var last = ref.value;
|
|
47568
|
-
if (last !== value) {
|
|
47569
|
-
ref.value = value;
|
|
47570
|
-
ref.callback(value, last);
|
|
47571
|
-
}
|
|
47572
|
-
}
|
|
47573
|
-
}
|
|
47574
|
-
};
|
|
47575
|
-
})[0];
|
|
47576
|
-
ref.callback = callback;
|
|
47577
|
-
return ref.facade;
|
|
47578
|
-
}
|
|
47579
|
-
//#endregion
|
|
47580
|
-
//#region ../../node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
47581
|
-
var useIsomorphicLayoutEffect$3 = typeof window !== "undefined" ? m.useLayoutEffect : m.useEffect;
|
|
47582
|
-
var currentValues = /* @__PURE__ */ new WeakMap();
|
|
47583
|
-
/**
|
|
47584
|
-
* Merges two or more refs together providing a single interface to set their value
|
|
47585
|
-
* @param {RefObject|Ref} refs
|
|
47586
|
-
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
47587
|
-
*
|
|
47588
|
-
* @see {@link mergeRefs} a version without buit-in memoization
|
|
47589
|
-
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
47590
|
-
* @example
|
|
47591
|
-
* const Component = React.forwardRef((props, ref) => {
|
|
47592
|
-
* const ownRef = useRef();
|
|
47593
|
-
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
47594
|
-
* return <div ref={domRef}>...</div>
|
|
47595
|
-
* }
|
|
47596
|
-
*/
|
|
47597
|
-
function useMergeRefs(refs, defaultValue) {
|
|
47598
|
-
var callbackRef = useCallbackRef$1(defaultValue || null, function(newValue) {
|
|
47599
|
-
return refs.forEach(function(ref) {
|
|
47600
|
-
return assignRef(ref, newValue);
|
|
47601
|
-
});
|
|
47602
|
-
});
|
|
47603
|
-
useIsomorphicLayoutEffect$3(function() {
|
|
47604
|
-
var oldValue = currentValues.get(callbackRef);
|
|
47605
|
-
if (oldValue) {
|
|
47606
|
-
var prevRefs_1 = new Set(oldValue);
|
|
47607
|
-
var nextRefs_1 = new Set(refs);
|
|
47608
|
-
var current_1 = callbackRef.current;
|
|
47609
|
-
prevRefs_1.forEach(function(ref) {
|
|
47610
|
-
if (!nextRefs_1.has(ref)) assignRef(ref, null);
|
|
47611
|
-
});
|
|
47612
|
-
nextRefs_1.forEach(function(ref) {
|
|
47613
|
-
if (!prevRefs_1.has(ref)) assignRef(ref, current_1);
|
|
47614
|
-
});
|
|
47615
|
-
}
|
|
47616
|
-
currentValues.set(callbackRef, refs);
|
|
47617
|
-
}, [refs]);
|
|
47618
|
-
return callbackRef;
|
|
47619
|
-
}
|
|
47620
|
-
//#endregion
|
|
47621
|
-
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.18_react@19.2.8/node_modules/use-sidecar/dist/es2015/medium.js
|
|
47622
|
-
init_tslib_es6();
|
|
47623
|
-
function ItoI(a) {
|
|
47624
|
-
return a;
|
|
47625
|
-
}
|
|
47626
|
-
function innerCreateMedium(defaults, middleware) {
|
|
47627
|
-
if (middleware === void 0) middleware = ItoI;
|
|
47628
|
-
var buffer = [];
|
|
47629
|
-
var assigned = false;
|
|
47630
|
-
return {
|
|
47631
|
-
read: function() {
|
|
47632
|
-
if (assigned) throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
47633
|
-
if (buffer.length) return buffer[buffer.length - 1];
|
|
47634
|
-
return defaults;
|
|
47635
|
-
},
|
|
47636
|
-
useMedium: function(data) {
|
|
47637
|
-
var item = middleware(data, assigned);
|
|
47638
|
-
buffer.push(item);
|
|
47639
|
-
return function() {
|
|
47640
|
-
buffer = buffer.filter(function(x) {
|
|
47641
|
-
return x !== item;
|
|
47642
|
-
});
|
|
47643
|
-
};
|
|
47644
|
-
},
|
|
47645
|
-
assignSyncMedium: function(cb) {
|
|
47646
|
-
assigned = true;
|
|
47647
|
-
while (buffer.length) {
|
|
47648
|
-
var cbs = buffer;
|
|
47649
|
-
buffer = [];
|
|
47650
|
-
cbs.forEach(cb);
|
|
47651
|
-
}
|
|
47652
|
-
buffer = {
|
|
47653
|
-
push: function(x) {
|
|
47654
|
-
return cb(x);
|
|
47655
|
-
},
|
|
47656
|
-
filter: function() {
|
|
47657
|
-
return buffer;
|
|
47658
|
-
}
|
|
47659
|
-
};
|
|
47660
|
-
},
|
|
47661
|
-
assignMedium: function(cb) {
|
|
47662
|
-
assigned = true;
|
|
47663
|
-
var pendingQueue = [];
|
|
47664
|
-
if (buffer.length) {
|
|
47665
|
-
var cbs = buffer;
|
|
47666
|
-
buffer = [];
|
|
47667
|
-
cbs.forEach(cb);
|
|
47668
|
-
pendingQueue = buffer;
|
|
47669
|
-
}
|
|
47670
|
-
var executeQueue = function() {
|
|
47671
|
-
var cbs = pendingQueue;
|
|
47672
|
-
pendingQueue = [];
|
|
47673
|
-
cbs.forEach(cb);
|
|
47674
|
-
};
|
|
47675
|
-
var cycle = function() {
|
|
47676
|
-
return Promise.resolve().then(executeQueue);
|
|
47677
|
-
};
|
|
47678
|
-
cycle();
|
|
47679
|
-
buffer = {
|
|
47680
|
-
push: function(x) {
|
|
47681
|
-
pendingQueue.push(x);
|
|
47682
|
-
cycle();
|
|
47683
|
-
},
|
|
47684
|
-
filter: function(filter) {
|
|
47685
|
-
pendingQueue = pendingQueue.filter(filter);
|
|
47686
|
-
return buffer;
|
|
47687
|
-
}
|
|
47688
|
-
};
|
|
47689
|
-
}
|
|
47690
|
-
};
|
|
47691
|
-
}
|
|
47692
|
-
function createSidecarMedium(options) {
|
|
47693
|
-
if (options === void 0) options = {};
|
|
47694
|
-
var medium = innerCreateMedium(null);
|
|
47695
|
-
medium.options = __assign({
|
|
47696
|
-
async: true,
|
|
47697
|
-
ssr: false
|
|
47698
|
-
}, options);
|
|
47699
|
-
return medium;
|
|
47700
|
-
}
|
|
47701
|
-
//#endregion
|
|
47702
|
-
//#region ../../node_modules/.pnpm/use-sidecar@1.1.3_@types+react@19.2.18_react@19.2.8/node_modules/use-sidecar/dist/es2015/exports.js
|
|
47703
|
-
init_tslib_es6();
|
|
47704
|
-
var SideCar = function(_a) {
|
|
47705
|
-
var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
|
|
47706
|
-
if (!sideCar) throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
47707
|
-
var Target = sideCar.read();
|
|
47708
|
-
if (!Target) throw new Error("Sidecar medium not found");
|
|
47709
|
-
return m.createElement(Target, __assign({}, rest));
|
|
47710
|
-
};
|
|
47711
|
-
SideCar.isSideCarExport = true;
|
|
47712
|
-
function exportSidecar(medium, exported) {
|
|
47713
|
-
medium.useMedium(exported);
|
|
47714
|
-
return SideCar;
|
|
47715
|
-
}
|
|
47716
|
-
//#endregion
|
|
47717
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
47718
|
-
var effectCar$1 = createSidecarMedium();
|
|
47719
|
-
//#endregion
|
|
47720
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
47721
|
-
init_tslib_es6();
|
|
47722
|
-
var nothing$1 = function() {};
|
|
47723
|
-
/**
|
|
47724
|
-
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
47725
|
-
*/
|
|
47726
|
-
var RemoveScroll$1 = m.forwardRef(function(props, parentRef) {
|
|
47727
|
-
var ref = m.useRef(null);
|
|
47728
|
-
var _a = m.useState({
|
|
47729
|
-
onScrollCapture: nothing$1,
|
|
47730
|
-
onWheelCapture: nothing$1,
|
|
47731
|
-
onTouchMoveCapture: nothing$1
|
|
47732
|
-
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
47733
|
-
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, [
|
|
47734
|
-
"forwardProps",
|
|
47735
|
-
"children",
|
|
47736
|
-
"className",
|
|
47737
|
-
"removeScrollBar",
|
|
47738
|
-
"enabled",
|
|
47739
|
-
"shards",
|
|
47740
|
-
"sideCar",
|
|
47741
|
-
"noIsolation",
|
|
47742
|
-
"inert",
|
|
47743
|
-
"allowPinchZoom",
|
|
47744
|
-
"as",
|
|
47745
|
-
"gapMode"
|
|
47746
|
-
]);
|
|
47747
|
-
var SideCar = sideCar;
|
|
47748
|
-
var containerRef = useMergeRefs([ref, parentRef]);
|
|
47749
|
-
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
47750
|
-
return m.createElement(m.Fragment, null, enabled && m.createElement(SideCar, {
|
|
47751
|
-
sideCar: effectCar$1,
|
|
47752
|
-
removeScrollBar,
|
|
47753
|
-
shards,
|
|
47754
|
-
noIsolation,
|
|
47755
|
-
inert,
|
|
47756
|
-
setCallbacks,
|
|
47757
|
-
allowPinchZoom: !!allowPinchZoom,
|
|
47758
|
-
lockRef: ref,
|
|
47759
|
-
gapMode
|
|
47760
|
-
}), forwardProps ? m.cloneElement(m.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : m.createElement(Container, __assign({}, containerProps, {
|
|
47761
|
-
className,
|
|
47762
|
-
ref: containerRef
|
|
47763
|
-
}), children));
|
|
47764
|
-
});
|
|
47765
|
-
RemoveScroll$1.defaultProps = {
|
|
47766
|
-
enabled: true,
|
|
47767
|
-
removeScrollBar: true,
|
|
47768
|
-
inert: false
|
|
47769
|
-
};
|
|
47770
|
-
RemoveScroll$1.classNames = {
|
|
47771
|
-
fullWidth: fullWidthClassName,
|
|
47772
|
-
zeroRight: zeroRightClassName
|
|
47773
|
-
};
|
|
47774
|
-
var getNonce = function() {
|
|
47775
|
-
if (typeof __webpack_nonce__ !== "undefined") return __webpack_nonce__;
|
|
47776
|
-
};
|
|
47777
|
-
//#endregion
|
|
47778
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
47779
|
-
function makeStyleTag() {
|
|
47780
|
-
if (!document) return null;
|
|
47781
|
-
var tag = document.createElement("style");
|
|
47782
|
-
tag.type = "text/css";
|
|
47783
|
-
var nonce = getNonce();
|
|
47784
|
-
if (nonce) tag.setAttribute("nonce", nonce);
|
|
47785
|
-
return tag;
|
|
47786
|
-
}
|
|
47787
|
-
function injectStyles(tag, css) {
|
|
47788
|
-
if (tag.styleSheet) tag.styleSheet.cssText = css;
|
|
47789
|
-
else tag.appendChild(document.createTextNode(css));
|
|
47790
|
-
}
|
|
47791
|
-
function insertStyleTag(tag) {
|
|
47792
|
-
(document.head || document.getElementsByTagName("head")[0]).appendChild(tag);
|
|
47793
|
-
}
|
|
47794
|
-
var stylesheetSingleton = function() {
|
|
47795
|
-
var counter = 0;
|
|
47796
|
-
var stylesheet = null;
|
|
47797
|
-
return {
|
|
47798
|
-
add: function(style) {
|
|
47799
|
-
if (counter == 0) {
|
|
47800
|
-
if (stylesheet = makeStyleTag()) {
|
|
47801
|
-
injectStyles(stylesheet, style);
|
|
47802
|
-
insertStyleTag(stylesheet);
|
|
47803
|
-
}
|
|
47804
|
-
}
|
|
47805
|
-
counter++;
|
|
47806
|
-
},
|
|
47807
|
-
remove: function() {
|
|
47808
|
-
counter--;
|
|
47809
|
-
if (!counter && stylesheet) {
|
|
47810
|
-
stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
|
|
47811
|
-
stylesheet = null;
|
|
47812
|
-
}
|
|
47813
|
-
}
|
|
47814
|
-
};
|
|
47815
|
-
};
|
|
47816
|
-
//#endregion
|
|
47817
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/hook.js
|
|
47818
|
-
/**
|
|
47819
|
-
* creates a hook to control style singleton
|
|
47820
|
-
* @see {@link styleSingleton} for a safer component version
|
|
47821
|
-
* @example
|
|
47822
|
-
* ```tsx
|
|
47823
|
-
* const useStyle = styleHookSingleton();
|
|
47824
|
-
* ///
|
|
47825
|
-
* useStyle('body { overflow: hidden}');
|
|
47826
|
-
*/
|
|
47827
|
-
var styleHookSingleton = function() {
|
|
47828
|
-
var sheet = stylesheetSingleton();
|
|
47829
|
-
return function(styles, isDynamic) {
|
|
47830
|
-
m.useEffect(function() {
|
|
47831
|
-
sheet.add(styles);
|
|
47832
|
-
return function() {
|
|
47833
|
-
sheet.remove();
|
|
47834
|
-
};
|
|
47835
|
-
}, [styles && isDynamic]);
|
|
47836
|
-
};
|
|
47837
|
-
};
|
|
47838
|
-
//#endregion
|
|
47839
|
-
//#region ../../node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@19.2.18_react@19.2.8/node_modules/react-style-singleton/dist/es2015/component.js
|
|
47840
|
-
/**
|
|
47841
|
-
* create a Component to add styles on demand
|
|
47842
|
-
* - styles are added when first instance is mounted
|
|
47843
|
-
* - styles are removed when the last instance is unmounted
|
|
47844
|
-
* - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
|
|
47845
|
-
*/
|
|
47846
|
-
var styleSingleton = function() {
|
|
47847
|
-
var useStyle = styleHookSingleton();
|
|
47848
|
-
var Sheet = function(_a) {
|
|
47849
|
-
var styles = _a.styles, dynamic = _a.dynamic;
|
|
47850
|
-
useStyle(styles, dynamic);
|
|
47851
|
-
return null;
|
|
47852
|
-
};
|
|
47853
|
-
return Sheet;
|
|
47854
|
-
};
|
|
47855
|
-
//#endregion
|
|
47856
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/utils.js
|
|
47857
|
-
var zeroGap = {
|
|
47858
|
-
left: 0,
|
|
47859
|
-
top: 0,
|
|
47860
|
-
right: 0,
|
|
47861
|
-
gap: 0
|
|
47862
|
-
};
|
|
47863
|
-
var parse = function(x) {
|
|
47864
|
-
return parseInt(x || "", 10) || 0;
|
|
47865
|
-
};
|
|
47866
|
-
var getOffset = function(gapMode) {
|
|
47867
|
-
var cs = window.getComputedStyle(document.body);
|
|
47868
|
-
var left = cs[gapMode === "padding" ? "paddingLeft" : "marginLeft"];
|
|
47869
|
-
var top = cs[gapMode === "padding" ? "paddingTop" : "marginTop"];
|
|
47870
|
-
var right = cs[gapMode === "padding" ? "paddingRight" : "marginRight"];
|
|
47871
|
-
return [
|
|
47872
|
-
parse(left),
|
|
47873
|
-
parse(top),
|
|
47874
|
-
parse(right)
|
|
47875
|
-
];
|
|
47876
|
-
};
|
|
47877
|
-
var getGapWidth = function(gapMode) {
|
|
47878
|
-
if (gapMode === void 0) gapMode = "margin";
|
|
47879
|
-
if (typeof window === "undefined") return zeroGap;
|
|
47880
|
-
var offsets = getOffset(gapMode);
|
|
47881
|
-
var documentWidth = document.documentElement.clientWidth;
|
|
47882
|
-
var windowWidth = window.innerWidth;
|
|
47883
|
-
return {
|
|
47884
|
-
left: offsets[0],
|
|
47885
|
-
top: offsets[1],
|
|
47886
|
-
right: offsets[2],
|
|
47887
|
-
gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0])
|
|
47888
|
-
};
|
|
47889
|
-
};
|
|
47890
|
-
//#endregion
|
|
47891
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
47892
|
-
var Style = styleSingleton();
|
|
47893
|
-
var lockAttribute = "data-scroll-locked";
|
|
47894
|
-
var getStyles = function(_a, allowRelative, gapMode, important) {
|
|
47895
|
-
var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
|
|
47896
|
-
if (gapMode === void 0) gapMode = "margin";
|
|
47897
|
-
return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
|
|
47898
|
-
allowRelative && "position: relative ".concat(important, ";"),
|
|
47899
|
-
gapMode === "margin" && "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
|
|
47900
|
-
gapMode === "padding" && "padding-right: ".concat(gap, "px ").concat(important, ";")
|
|
47901
|
-
].filter(Boolean).join(""), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
|
|
47902
|
-
};
|
|
47903
|
-
var getCurrentUseCounter = function() {
|
|
47904
|
-
var counter = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
47905
|
-
return isFinite(counter) ? counter : 0;
|
|
47906
|
-
};
|
|
47907
|
-
var useLockAttribute = function() {
|
|
47908
|
-
m.useEffect(function() {
|
|
47909
|
-
document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
|
|
47910
|
-
return function() {
|
|
47911
|
-
var newCounter = getCurrentUseCounter() - 1;
|
|
47912
|
-
if (newCounter <= 0) document.body.removeAttribute(lockAttribute);
|
|
47913
|
-
else document.body.setAttribute(lockAttribute, newCounter.toString());
|
|
47914
|
-
};
|
|
47915
|
-
}, []);
|
|
47916
|
-
};
|
|
47917
|
-
/**
|
|
47918
|
-
* Removes page scrollbar and blocks page scroll when mounted
|
|
47919
|
-
*/
|
|
47920
|
-
var RemoveScrollBar = function(_a) {
|
|
47921
|
-
var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
|
|
47922
|
-
useLockAttribute();
|
|
47923
|
-
var gap = m.useMemo(function() {
|
|
47924
|
-
return getGapWidth(gapMode);
|
|
47925
|
-
}, [gapMode]);
|
|
47926
|
-
return m.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
|
|
47927
|
-
};
|
|
47928
|
-
//#endregion
|
|
47929
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
47930
|
-
var passiveSupported$1 = false;
|
|
47931
|
-
if (typeof window !== "undefined") try {
|
|
47932
|
-
var options$1 = Object.defineProperty({}, "passive", { get: function() {
|
|
47933
|
-
passiveSupported$1 = true;
|
|
47934
|
-
return true;
|
|
47935
|
-
} });
|
|
47936
|
-
window.addEventListener("test", options$1, options$1);
|
|
47937
|
-
window.removeEventListener("test", options$1, options$1);
|
|
47938
|
-
} catch (err) {
|
|
47939
|
-
passiveSupported$1 = false;
|
|
47940
|
-
}
|
|
47941
|
-
var nonPassive$1 = passiveSupported$1 ? { passive: false } : false;
|
|
47942
|
-
//#endregion
|
|
47943
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
|
|
47944
|
-
var alwaysContainsScroll$1 = function(node) {
|
|
47945
|
-
return node.tagName === "TEXTAREA";
|
|
47946
|
-
};
|
|
47947
|
-
var elementCanBeScrolled$1 = function(node, overflow) {
|
|
47948
|
-
if (!(node instanceof Element)) return false;
|
|
47949
|
-
var styles = window.getComputedStyle(node);
|
|
47950
|
-
return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll$1(node) && styles[overflow] === "visible");
|
|
47951
|
-
};
|
|
47952
|
-
var elementCouldBeVScrolled$1 = function(node) {
|
|
47953
|
-
return elementCanBeScrolled$1(node, "overflowY");
|
|
47954
|
-
};
|
|
47955
|
-
var elementCouldBeHScrolled$1 = function(node) {
|
|
47956
|
-
return elementCanBeScrolled$1(node, "overflowX");
|
|
47957
|
-
};
|
|
47958
|
-
var locationCouldBeScrolled$1 = function(axis, node) {
|
|
47959
|
-
var ownerDocument = node.ownerDocument;
|
|
47960
|
-
var current = node;
|
|
47961
|
-
do {
|
|
47962
|
-
if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
|
|
47963
|
-
if (elementCouldBeScrolled$1(axis, current)) {
|
|
47964
|
-
var _a = getScrollVariables$1(axis, current);
|
|
47965
|
-
if (_a[1] > _a[2]) return true;
|
|
47966
|
-
}
|
|
47967
|
-
current = current.parentNode;
|
|
47968
|
-
} while (current && current !== ownerDocument.body);
|
|
47969
|
-
return false;
|
|
47970
|
-
};
|
|
47971
|
-
var getVScrollVariables$1 = function(_a) {
|
|
47972
|
-
return [
|
|
47973
|
-
_a.scrollTop,
|
|
47974
|
-
_a.scrollHeight,
|
|
47975
|
-
_a.clientHeight
|
|
47976
|
-
];
|
|
47977
|
-
};
|
|
47978
|
-
var getHScrollVariables$1 = function(_a) {
|
|
47979
|
-
return [
|
|
47980
|
-
_a.scrollLeft,
|
|
47981
|
-
_a.scrollWidth,
|
|
47982
|
-
_a.clientWidth
|
|
47983
|
-
];
|
|
47984
|
-
};
|
|
47985
|
-
var elementCouldBeScrolled$1 = function(axis, node) {
|
|
47986
|
-
return axis === "v" ? elementCouldBeVScrolled$1(node) : elementCouldBeHScrolled$1(node);
|
|
47987
|
-
};
|
|
47988
|
-
var getScrollVariables$1 = function(axis, node) {
|
|
47989
|
-
return axis === "v" ? getVScrollVariables$1(node) : getHScrollVariables$1(node);
|
|
47990
|
-
};
|
|
47991
|
-
var getDirectionFactor$1 = function(axis, direction) {
|
|
47992
|
-
/**
|
|
47993
|
-
* If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
|
|
47994
|
-
* and then increasingly negative as you scroll towards the end of the content.
|
|
47995
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
|
|
47996
|
-
*/
|
|
47997
|
-
return axis === "h" && direction === "rtl" ? -1 : 1;
|
|
47998
|
-
};
|
|
47999
|
-
var handleScroll$1 = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
48000
|
-
var directionFactor = getDirectionFactor$1(axis, window.getComputedStyle(endTarget).direction);
|
|
48001
|
-
var delta = directionFactor * sourceDelta;
|
|
48002
|
-
var target = event.target;
|
|
48003
|
-
var targetInLock = endTarget.contains(target);
|
|
48004
|
-
var shouldCancelScroll = false;
|
|
48005
|
-
var isDeltaPositive = delta > 0;
|
|
48006
|
-
var availableScroll = 0;
|
|
48007
|
-
var availableScrollTop = 0;
|
|
48008
|
-
do {
|
|
48009
|
-
var _a = getScrollVariables$1(axis, target), position = _a[0];
|
|
48010
|
-
var elementScroll = _a[1] - _a[2] - directionFactor * position;
|
|
48011
|
-
if (position || elementScroll) {
|
|
48012
|
-
if (elementCouldBeScrolled$1(axis, target)) {
|
|
48013
|
-
availableScroll += elementScroll;
|
|
48014
|
-
availableScrollTop += position;
|
|
48015
|
-
}
|
|
48016
|
-
}
|
|
48017
|
-
if (target instanceof ShadowRoot) target = target.host;
|
|
48018
|
-
else target = target.parentNode;
|
|
48019
|
-
} while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
|
|
48020
|
-
if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
|
|
48021
|
-
else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
|
|
48022
|
-
return shouldCancelScroll;
|
|
48023
|
-
};
|
|
48024
|
-
//#endregion
|
|
48025
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
48026
|
-
init_tslib_es6();
|
|
48027
|
-
var getTouchXY$1 = function(event) {
|
|
48028
|
-
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
48029
|
-
};
|
|
48030
|
-
var getDeltaXY$1 = function(event) {
|
|
48031
|
-
return [event.deltaX, event.deltaY];
|
|
48032
|
-
};
|
|
48033
|
-
var extractRef$1 = function(ref) {
|
|
48034
|
-
return ref && "current" in ref ? ref.current : ref;
|
|
48035
|
-
};
|
|
48036
|
-
var deltaCompare$1 = function(x, y) {
|
|
48037
|
-
return x[0] === y[0] && x[1] === y[1];
|
|
48038
|
-
};
|
|
48039
|
-
var generateStyle$1 = function(id) {
|
|
48040
|
-
return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
|
|
48041
|
-
};
|
|
48042
|
-
var idCounter$2 = 0;
|
|
48043
|
-
var lockStack$1 = [];
|
|
48044
|
-
function RemoveScrollSideCar$1(props) {
|
|
48045
|
-
var shouldPreventQueue = m.useRef([]);
|
|
48046
|
-
var touchStartRef = m.useRef([0, 0]);
|
|
48047
|
-
var activeAxis = m.useRef();
|
|
48048
|
-
var id = m.useState(idCounter$2++)[0];
|
|
48049
|
-
var Style = m.useState(styleSingleton)[0];
|
|
48050
|
-
var lastProps = m.useRef(props);
|
|
48051
|
-
m.useEffect(function() {
|
|
48052
|
-
lastProps.current = props;
|
|
48053
|
-
}, [props]);
|
|
48054
|
-
m.useEffect(function() {
|
|
48055
|
-
if (props.inert) {
|
|
48056
|
-
document.body.classList.add("block-interactivity-".concat(id));
|
|
48057
|
-
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef$1), true).filter(Boolean);
|
|
48058
|
-
allow_1.forEach(function(el) {
|
|
48059
|
-
return el.classList.add("allow-interactivity-".concat(id));
|
|
48060
|
-
});
|
|
48061
|
-
return function() {
|
|
48062
|
-
document.body.classList.remove("block-interactivity-".concat(id));
|
|
48063
|
-
allow_1.forEach(function(el) {
|
|
48064
|
-
return el.classList.remove("allow-interactivity-".concat(id));
|
|
48065
|
-
});
|
|
48066
|
-
};
|
|
48067
|
-
}
|
|
48068
|
-
}, [
|
|
48069
|
-
props.inert,
|
|
48070
|
-
props.lockRef.current,
|
|
48071
|
-
props.shards
|
|
48072
|
-
]);
|
|
48073
|
-
var shouldCancelEvent = m.useCallback(function(event, parent) {
|
|
48074
|
-
if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
|
|
48075
|
-
var touch = getTouchXY$1(event);
|
|
48076
|
-
var touchStart = touchStartRef.current;
|
|
48077
|
-
var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
|
|
48078
|
-
var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
|
|
48079
|
-
var currentAxis;
|
|
48080
|
-
var target = event.target;
|
|
48081
|
-
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
|
|
48082
|
-
if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
|
|
48083
|
-
var canBeScrolledInMainDirection = locationCouldBeScrolled$1(moveDirection, target);
|
|
48084
|
-
if (!canBeScrolledInMainDirection) return true;
|
|
48085
|
-
if (canBeScrolledInMainDirection) currentAxis = moveDirection;
|
|
48086
|
-
else {
|
|
48087
|
-
currentAxis = moveDirection === "v" ? "h" : "v";
|
|
48088
|
-
canBeScrolledInMainDirection = locationCouldBeScrolled$1(moveDirection, target);
|
|
48089
|
-
}
|
|
48090
|
-
if (!canBeScrolledInMainDirection) return false;
|
|
48091
|
-
if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
|
|
48092
|
-
if (!currentAxis) return true;
|
|
48093
|
-
var cancelingAxis = activeAxis.current || currentAxis;
|
|
48094
|
-
return handleScroll$1(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
48095
|
-
}, []);
|
|
48096
|
-
var shouldPrevent = m.useCallback(function(_event) {
|
|
48097
|
-
var event = _event;
|
|
48098
|
-
if (!lockStack$1.length || lockStack$1[lockStack$1.length - 1] !== Style) return;
|
|
48099
|
-
var delta = "deltaY" in event ? getDeltaXY$1(event) : getTouchXY$1(event);
|
|
48100
|
-
var sourceEvent = shouldPreventQueue.current.filter(function(e) {
|
|
48101
|
-
return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare$1(e.delta, delta);
|
|
48102
|
-
})[0];
|
|
48103
|
-
if (sourceEvent && sourceEvent.should) {
|
|
48104
|
-
if (event.cancelable) event.preventDefault();
|
|
48105
|
-
return;
|
|
48106
|
-
}
|
|
48107
|
-
if (!sourceEvent) {
|
|
48108
|
-
var shardNodes = (lastProps.current.shards || []).map(extractRef$1).filter(Boolean).filter(function(node) {
|
|
48109
|
-
return node.contains(event.target);
|
|
48110
|
-
});
|
|
48111
|
-
if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
|
|
48112
|
-
if (event.cancelable) event.preventDefault();
|
|
48113
|
-
}
|
|
48114
|
-
}
|
|
48115
|
-
}, []);
|
|
48116
|
-
var shouldCancel = m.useCallback(function(name, delta, target, should) {
|
|
48117
|
-
var event = {
|
|
48118
|
-
name,
|
|
48119
|
-
delta,
|
|
48120
|
-
target,
|
|
48121
|
-
should,
|
|
48122
|
-
shadowParent: getOutermostShadowParent$1(target)
|
|
48123
|
-
};
|
|
48124
|
-
shouldPreventQueue.current.push(event);
|
|
48125
|
-
setTimeout(function() {
|
|
48126
|
-
shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
|
|
48127
|
-
return e !== event;
|
|
48128
|
-
});
|
|
48129
|
-
}, 1);
|
|
48130
|
-
}, []);
|
|
48131
|
-
var scrollTouchStart = m.useCallback(function(event) {
|
|
48132
|
-
touchStartRef.current = getTouchXY$1(event);
|
|
48133
|
-
activeAxis.current = void 0;
|
|
48134
|
-
}, []);
|
|
48135
|
-
var scrollWheel = m.useCallback(function(event) {
|
|
48136
|
-
shouldCancel(event.type, getDeltaXY$1(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
48137
|
-
}, []);
|
|
48138
|
-
var scrollTouchMove = m.useCallback(function(event) {
|
|
48139
|
-
shouldCancel(event.type, getTouchXY$1(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
48140
|
-
}, []);
|
|
48141
|
-
m.useEffect(function() {
|
|
48142
|
-
lockStack$1.push(Style);
|
|
48143
|
-
props.setCallbacks({
|
|
48144
|
-
onScrollCapture: scrollWheel,
|
|
48145
|
-
onWheelCapture: scrollWheel,
|
|
48146
|
-
onTouchMoveCapture: scrollTouchMove
|
|
48147
|
-
});
|
|
48148
|
-
document.addEventListener("wheel", shouldPrevent, nonPassive$1);
|
|
48149
|
-
document.addEventListener("touchmove", shouldPrevent, nonPassive$1);
|
|
48150
|
-
document.addEventListener("touchstart", scrollTouchStart, nonPassive$1);
|
|
48151
|
-
return function() {
|
|
48152
|
-
lockStack$1 = lockStack$1.filter(function(inst) {
|
|
48153
|
-
return inst !== Style;
|
|
48154
|
-
});
|
|
48155
|
-
document.removeEventListener("wheel", shouldPrevent, nonPassive$1);
|
|
48156
|
-
document.removeEventListener("touchmove", shouldPrevent, nonPassive$1);
|
|
48157
|
-
document.removeEventListener("touchstart", scrollTouchStart, nonPassive$1);
|
|
48158
|
-
};
|
|
48159
|
-
}, []);
|
|
48160
|
-
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
48161
|
-
return m.createElement(m.Fragment, null, inert ? m.createElement(Style, { styles: generateStyle$1(id) }) : null, removeScrollBar ? m.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null);
|
|
48162
|
-
}
|
|
48163
|
-
function getOutermostShadowParent$1(node) {
|
|
48164
|
-
var shadowParent = null;
|
|
48165
|
-
while (node !== null) {
|
|
48166
|
-
if (node instanceof ShadowRoot) {
|
|
48167
|
-
shadowParent = node.host;
|
|
48168
|
-
node = node.host;
|
|
48169
|
-
}
|
|
48170
|
-
node = node.parentNode;
|
|
48171
|
-
}
|
|
48172
|
-
return shadowParent;
|
|
48173
|
-
}
|
|
48174
|
-
//#endregion
|
|
48175
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
48176
|
-
var sidecar_default$1 = exportSidecar(effectCar$1, RemoveScrollSideCar$1);
|
|
48177
|
-
//#endregion
|
|
48178
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.6.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
48179
|
-
init_tslib_es6();
|
|
48180
|
-
var ReactRemoveScroll$1 = m.forwardRef(function(props, ref) {
|
|
48181
|
-
return m.createElement(RemoveScroll$1, __assign({}, props, {
|
|
48182
|
-
ref,
|
|
48183
|
-
sideCar: sidecar_default$1
|
|
48184
|
-
}));
|
|
48185
|
-
});
|
|
48186
|
-
ReactRemoveScroll$1.classNames = RemoveScroll$1.classNames;
|
|
48187
|
-
//#endregion
|
|
48188
47013
|
//#region ../../node_modules/.pnpm/@vanilla-extract+private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js
|
|
48189
47014
|
function getVarName(variable) {
|
|
48190
47015
|
var matches = variable.match(/^var\((.*)\)$/);
|
|
@@ -54027,7 +52852,7 @@ function Dialog$1({ children, onClose, open, titleId, dialogRoot }) {
|
|
|
54027
52852
|
const handleBackdropClick = useCallback(() => onClose(), [onClose]);
|
|
54028
52853
|
const themeRootProps = useThemeRootProps();
|
|
54029
52854
|
const mobile = isMobile$2();
|
|
54030
|
-
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, open ? createPortal(/* @__PURE__ */ React3.createElement(
|
|
52855
|
+
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, open ? createPortal(/* @__PURE__ */ React3.createElement(RemoveScroll, { enabled: bodyScrollable }, /* @__PURE__ */ React3.createElement(Box$1, { ...themeRootProps }, /* @__PURE__ */ React3.createElement(Box$1, {
|
|
54031
52856
|
...themeRootProps,
|
|
54032
52857
|
alignItems: mobile ? "flex-end" : "center",
|
|
54033
52858
|
"aria-labelledby": titleId,
|
|
@@ -58484,20 +57309,24 @@ var ExternalProvider = class {
|
|
|
58484
57309
|
this.variantProvider = variantProvider;
|
|
58485
57310
|
}
|
|
58486
57311
|
sendTransaction(tx, txMeta) {
|
|
58487
|
-
|
|
58488
|
-
|
|
58489
|
-
|
|
58490
|
-
|
|
58491
|
-
|
|
58492
|
-
|
|
57312
|
+
return suspend$1(() => {
|
|
57313
|
+
const sendTransaction = this.variantProvider.current.provider.sendTransaction;
|
|
57314
|
+
if (!sendTransaction) return fail$4(new ExternalProviderError({
|
|
57315
|
+
customMessage: null,
|
|
57316
|
+
message: "Invalid provider type"
|
|
57317
|
+
}));
|
|
57318
|
+
return sendExternalTransaction(() => sendTransaction(tx, txMeta));
|
|
57319
|
+
});
|
|
58493
57320
|
}
|
|
58494
57321
|
sendBorrowTransaction(tx, txMeta) {
|
|
58495
|
-
|
|
58496
|
-
|
|
58497
|
-
|
|
58498
|
-
|
|
58499
|
-
|
|
58500
|
-
|
|
57322
|
+
return suspend$1(() => {
|
|
57323
|
+
const config = this.variantProvider.current;
|
|
57324
|
+
if (!isBorrowExternalProvider(config)) return fail$4(new ExternalProviderError({
|
|
57325
|
+
customMessage: null,
|
|
57326
|
+
message: "Borrow transaction capability is unavailable"
|
|
57327
|
+
}));
|
|
57328
|
+
return sendExternalTransaction(() => config.provider.sendBorrowTransaction(tx, txMeta));
|
|
57329
|
+
});
|
|
58501
57330
|
}
|
|
58502
57331
|
switchChain({ chainId }) {
|
|
58503
57332
|
return tryPromise({
|
|
@@ -58516,14 +57345,16 @@ var ExternalProvider = class {
|
|
|
58516
57345
|
});
|
|
58517
57346
|
}
|
|
58518
57347
|
signTypedData(typedData) {
|
|
58519
|
-
|
|
58520
|
-
|
|
58521
|
-
|
|
58522
|
-
|
|
58523
|
-
|
|
58524
|
-
|
|
58525
|
-
|
|
58526
|
-
|
|
57348
|
+
return suspend$1(() => {
|
|
57349
|
+
const signTypedData = this.variantProvider.current.provider.signTypedData;
|
|
57350
|
+
if (!signTypedData) return fail$4(new ExternalProviderError({
|
|
57351
|
+
customMessage: null,
|
|
57352
|
+
message: "Typed-data signing capability is unavailable"
|
|
57353
|
+
}));
|
|
57354
|
+
return tryPromise({
|
|
57355
|
+
try: () => signTypedData(typedData),
|
|
57356
|
+
catch: toExternalProviderError
|
|
57357
|
+
});
|
|
58527
57358
|
});
|
|
58528
57359
|
}
|
|
58529
57360
|
};
|
|
@@ -58572,15 +57403,21 @@ var externalProviderConnector = (variant, runWalletEffect) => ({
|
|
|
58572
57403
|
iconUrl: config.appIcon
|
|
58573
57404
|
},
|
|
58574
57405
|
createConnector: () => createConnector((connectorConfig) => {
|
|
58575
|
-
const
|
|
58576
|
-
|
|
57406
|
+
const resolveSupportedChains = (supportedChainIds) => {
|
|
57407
|
+
const supported = supportedChainIds === void 0 ? null : new Set(supportedChainIds);
|
|
57408
|
+
const chains = supported ? connectorConfig.chains.filter((chain) => supported.has(chain.id)) : connectorConfig.chains;
|
|
57409
|
+
if (chains.length === 0) throw new WalletRuntimeInvariantError({ reason: "external-provider-no-supported-chains" });
|
|
57410
|
+
return chains;
|
|
57411
|
+
};
|
|
57412
|
+
const filteredChains = makeCurrentValueStream(resolveSupportedChains(variant.current.supportedChainIds));
|
|
58577
57413
|
const provider = new ExternalProvider(variant);
|
|
58578
57414
|
const getFirstFilteredChain = () => head(filteredChains.get()).pipe(getOrThrowWith(() => /* @__PURE__ */ new Error("No supported chains found!")));
|
|
58579
|
-
const getAccounts = async () => [variant.current.currentAddress];
|
|
58580
|
-
const getChainId = async () => getFirstFilteredChain().id;
|
|
57415
|
+
const getAccounts = async () => variant.current.currentAddress ? [variant.current.currentAddress] : [];
|
|
57416
|
+
const getChainId = async () => variant.current.currentChain ?? getFirstFilteredChain().id;
|
|
58581
57417
|
const connect = async (args) => {
|
|
58582
57418
|
connectorConfig.emitter.emit("message", { type: "connecting" });
|
|
58583
57419
|
const [accounts, chainId] = await Promise.all([getAccounts(), getChainId()]);
|
|
57420
|
+
if (accounts.length === 0) throw new Error("External provider has no connected account");
|
|
58584
57421
|
return wagmiConnectResult(args?.withCapabilities, accounts, chainId);
|
|
58585
57422
|
};
|
|
58586
57423
|
const switchChain = async ({ chainId }) => {
|
|
@@ -58592,7 +57429,7 @@ var externalProviderConnector = (variant, runWalletEffect) => ({
|
|
|
58592
57429
|
};
|
|
58593
57430
|
const disconnect = async () => {};
|
|
58594
57431
|
const getProvider = async () => ({});
|
|
58595
|
-
const isAuthorized = async () =>
|
|
57432
|
+
const isAuthorized = async () => Boolean(variant.current.currentAddress);
|
|
58596
57433
|
const onDisconnect = () => {
|
|
58597
57434
|
connectorConfig.emitter.emit("disconnect");
|
|
58598
57435
|
};
|
|
@@ -58600,11 +57437,16 @@ var externalProviderConnector = (variant, runWalletEffect) => ({
|
|
|
58600
57437
|
connectorConfig.emitter.emit("change", { chainId: normalizeChainId(chainId) });
|
|
58601
57438
|
};
|
|
58602
57439
|
const onAccountsChanged = (accounts) => {
|
|
58603
|
-
|
|
57440
|
+
const connectedAccounts = accounts.filter((account) => !!account);
|
|
57441
|
+
if (connectedAccounts.length === 0) {
|
|
57442
|
+
onDisconnect();
|
|
57443
|
+
return;
|
|
57444
|
+
}
|
|
57445
|
+
connectorConfig.emitter.emit("change", { accounts: connectedAccounts });
|
|
58604
57446
|
};
|
|
58605
57447
|
const onSupportedChainsChanged = ({ currentChainId, supportedChainIds }) => {
|
|
58606
|
-
filteredChains.set(
|
|
58607
|
-
if (filteredChains.get().every((c) => c.id !== currentChainId))
|
|
57448
|
+
filteredChains.set(resolveSupportedChains(supportedChainIds));
|
|
57449
|
+
if (variant.current.currentChain === void 0 && filteredChains.get().every((c) => c.id !== currentChainId)) onChainChanged(getFirstFilteredChain().id.toString());
|
|
58608
57450
|
};
|
|
58609
57451
|
return {
|
|
58610
57452
|
id: configMeta.id,
|
|
@@ -58977,15 +57819,22 @@ var buildWagmiConfig = (opts, buildActions, stellarWalletsKitPlatform) => gen(fu
|
|
|
58977
57819
|
const connectors = walletList.length > 0 ? connectorsForWallets(walletList, connectorOptions) : [];
|
|
58978
57820
|
const queryNetwork = val.queryParams.network;
|
|
58979
57821
|
const queryParamsInitChainId = queryNetwork ? (val.evmConfig.evmChainsMap[queryNetwork] ?? val.cosmosConfig.cosmosChainsMap[queryNetwork] ?? val.miscConfig.miscChainsMap[queryNetwork] ?? val.substrateConfig.substrateChainsMap[queryNetwork])?.wagmiChain.id : void 0;
|
|
58980
|
-
const wagmiConfig =
|
|
58981
|
-
|
|
58982
|
-
|
|
58983
|
-
chain
|
|
58984
|
-
|
|
57822
|
+
const wagmiConfig = yield* try_$1({
|
|
57823
|
+
try: () => createConfig({
|
|
57824
|
+
chains: wagmiChains,
|
|
57825
|
+
client: ({ chain }) => createClient({
|
|
57826
|
+
chain,
|
|
57827
|
+
transport: http()
|
|
57828
|
+
}),
|
|
57829
|
+
multiInjectedProviderDiscovery: false,
|
|
57830
|
+
storage: opts.externalProviders ? null : void 0,
|
|
57831
|
+
connectors
|
|
58985
57832
|
}),
|
|
58986
|
-
|
|
58987
|
-
|
|
58988
|
-
|
|
57833
|
+
catch: (cause) => new WalletIntegrationError({
|
|
57834
|
+
cause,
|
|
57835
|
+
message: "Could not create wallet configuration",
|
|
57836
|
+
operation: "create-config"
|
|
57837
|
+
})
|
|
58989
57838
|
});
|
|
58990
57839
|
if (multiInjectedProviderDiscovery && evmConfig.evmChains.length > 0) {
|
|
58991
57840
|
const mipdStore = createStore$2();
|
|
@@ -59146,7 +57995,7 @@ var initializeKit = tryPromise({
|
|
|
59146
57995
|
import("./albedo.module-CRVsyAst.js"),
|
|
59147
57996
|
import("./freighter.module-BeMgcM-N.js"),
|
|
59148
57997
|
import("./lobstr.module-DMSUePxW.js"),
|
|
59149
|
-
import("./xbull.module-
|
|
57998
|
+
import("./xbull.module-C-UUZmRx.js"),
|
|
59150
57999
|
import("./wallet-connect.module-DU9WV6lg.js"),
|
|
59151
58000
|
import("./types-DO_reoxw.js").then((n) => n.r),
|
|
59152
58001
|
import("./state-DcAcOoYZ.js")
|
|
@@ -59544,18 +58393,22 @@ var installExternalProviderSynchronization = fn("installExternalProviderSynchron
|
|
|
59544
58393
|
if (connection.connector && !isExternalProviderConnector(connection.connector)) return yield* failInvariant("external-provider-connector-mismatch");
|
|
59545
58394
|
const snapshot = bootstrap.externalProviders.current;
|
|
59546
58395
|
const currentChainId = snapshot.currentChain ?? connection.chainId ?? bootstrap.controller.wagmiConfig.state.chainId;
|
|
59547
|
-
const supportedChainIds = snapshot.supportedChainIds
|
|
58396
|
+
const supportedChainIds = snapshot.supportedChainIds;
|
|
59548
58397
|
const currentMemory = yield* get$5(memory);
|
|
59549
|
-
const supportedChainsKey = `${connector.uid}:${currentChainId}:${supportedChainIds
|
|
58398
|
+
const supportedChainsKey = `${connector.uid}:${currentChainId}:${supportedChainIds?.join(",") ?? "all"}`;
|
|
59550
58399
|
if (currentMemory.supportedChainsNotification !== supportedChainsKey) {
|
|
59551
58400
|
yield* update(memory, (current) => ({
|
|
59552
58401
|
...current,
|
|
59553
58402
|
supportedChainsNotification: supportedChainsKey
|
|
59554
58403
|
}));
|
|
59555
|
-
yield*
|
|
58404
|
+
const notification = yield* try_$1(() => connector.onSupportedChainsChanged({
|
|
59556
58405
|
currentChainId,
|
|
59557
58406
|
supportedChainIds
|
|
59558
|
-
}));
|
|
58407
|
+
})).pipe(result$1);
|
|
58408
|
+
if (isFailure$1(notification)) {
|
|
58409
|
+
const cause = notification.failure.cause;
|
|
58410
|
+
return yield* failInvariant(cause instanceof WalletRuntimeInvariantError ? cause.reason : "external-provider-supported-chains-update-failed", { cause });
|
|
58411
|
+
}
|
|
59559
58412
|
}
|
|
59560
58413
|
if (connection.status === "disconnected" && snapshot.currentAddress && currentMemory.connecting === null) {
|
|
59561
58414
|
const address = snapshot.currentAddress;
|
|
@@ -59651,7 +58504,7 @@ var makeWalletLifecyclePolicy = gen(function* () {
|
|
|
59651
58504
|
}];
|
|
59652
58505
|
}
|
|
59653
58506
|
if (state.status === "connecting") return [null, current];
|
|
59654
|
-
if (state.status !== "unsupported" || !state.connector || !state.chain) return [null, initialMemory];
|
|
58507
|
+
if (state.status !== "unsupported" || !state.connector || !state.chain || isExternalProviderConnector(state.connector)) return [null, initialMemory];
|
|
59655
58508
|
const connectionKey = `${state.connector.uid}:${state.address}:${state.chain.id}`;
|
|
59656
58509
|
if (current.unsupportedConnection === connectionKey) return [null, {
|
|
59657
58510
|
...current,
|
|
@@ -60156,14 +59009,16 @@ var decodeProjectionFacts = ({ additionalAddresses, connection, connectorChains,
|
|
|
60156
59009
|
const rawAddress = forceAddress || connection.address || null;
|
|
60157
59010
|
const address = rawAddress ? decodeSync(WalletAddress$1)(rawAddress) : null;
|
|
60158
59011
|
const chain = connection.chain ?? null;
|
|
59012
|
+
const connector = connection.connector ?? null;
|
|
59013
|
+
const isChainExcluded = chain !== null && connector !== null && isExternalProviderConnector(connector) && !connectorChains.some((supportedChain) => supportedChain.id === chain.id);
|
|
60159
59014
|
return {
|
|
60160
59015
|
additionalAddresses,
|
|
60161
59016
|
address,
|
|
60162
59017
|
chain,
|
|
60163
59018
|
common,
|
|
60164
|
-
connector
|
|
59019
|
+
connector,
|
|
60165
59020
|
ledgerState,
|
|
60166
|
-
network: chain ? wagmiNetworkToSKNetwork({
|
|
59021
|
+
network: chain && !isChainExcluded ? wagmiNetworkToSKNetwork({
|
|
60167
59022
|
chain,
|
|
60168
59023
|
cosmosChainsMap: controller.cosmosConfig.cosmosChainsMap,
|
|
60169
59024
|
evmChainsMap: controller.evmConfig.evmChainsMap,
|
|
@@ -60205,11 +59060,22 @@ var connectingWalletState = (facts) => {
|
|
|
60205
59060
|
status: "connecting"
|
|
60206
59061
|
};
|
|
60207
59062
|
}
|
|
60208
|
-
if (previous?.address && previous.network && previous.chain && previous.connector && previous.ledgerAccounts)
|
|
60209
|
-
|
|
60210
|
-
|
|
60211
|
-
|
|
60212
|
-
|
|
59063
|
+
if (previous?.address && previous.network && previous.chain && previous.connector && previous.ledgerAccounts) {
|
|
59064
|
+
if (isExternalProviderConnector(previous.connector) && !common.connectorChains.some((supportedChain) => supportedChain.id === previous.chain.id)) return {
|
|
59065
|
+
...previous,
|
|
59066
|
+
...common,
|
|
59067
|
+
additionalAddresses: null,
|
|
59068
|
+
isLedgerLiveAccountPlaceholder: false,
|
|
59069
|
+
ledgerAccounts: null,
|
|
59070
|
+
network: null,
|
|
59071
|
+
status: "unsupported"
|
|
59072
|
+
};
|
|
59073
|
+
return {
|
|
59074
|
+
...previous,
|
|
59075
|
+
...common,
|
|
59076
|
+
status: "connecting"
|
|
59077
|
+
};
|
|
59078
|
+
}
|
|
60213
59079
|
return {
|
|
60214
59080
|
...disconnectedNormalizedWalletState,
|
|
60215
59081
|
...common,
|
|
@@ -60260,7 +59126,12 @@ var normalizeWalletState = (input) => {
|
|
|
60260
59126
|
};
|
|
60261
59127
|
var transitionalWalletState = (input) => {
|
|
60262
59128
|
if (input.connection.status === "disconnected") return normalizeWalletState(input);
|
|
60263
|
-
|
|
59129
|
+
const previous = input.previous;
|
|
59130
|
+
const connectorChains = previous?.connector && isExternalProviderConnector(previous.connector) && (!input.connection.connector || previous.connector.uid === input.connection.connector.uid) ? previous.connectorChains : input.connectorChains;
|
|
59131
|
+
return connectingWalletState(decodeProjectionFacts({
|
|
59132
|
+
...input,
|
|
59133
|
+
connectorChains
|
|
59134
|
+
}));
|
|
60264
59135
|
};
|
|
60265
59136
|
var makeConnectorChainsStream = ({ connector, defaultEvmChains }) => {
|
|
60266
59137
|
if (!connector || !isConnectorWithFilteredChains(connector)) return succeed$6(defaultEvmChains);
|
|
@@ -62335,6 +61206,7 @@ var WagmiConfigProvider = (t0) => {
|
|
|
62335
61206
|
const $ = (0, import_compiler_runtime.c)(5);
|
|
62336
61207
|
const { children } = t0;
|
|
62337
61208
|
const walletConfigResult = useWalletConfig();
|
|
61209
|
+
const walletStateResult = useAtomValue(currentWalletStateResultAtom);
|
|
62338
61210
|
let t1;
|
|
62339
61211
|
if ($[0] !== walletConfigResult) {
|
|
62340
61212
|
t1 = walletConfigResult.pipe(value$2, getOrUndefined$1);
|
|
@@ -62343,9 +61215,11 @@ var WagmiConfigProvider = (t0) => {
|
|
|
62343
61215
|
} else t1 = $[1];
|
|
62344
61216
|
const walletConfig = t1;
|
|
62345
61217
|
const walletConfigError = walletConfigResult.pipe(error, getOrUndefined$1);
|
|
61218
|
+
const walletStateError = walletStateResult.pipe(error, getOrUndefined$1);
|
|
62346
61219
|
const [fallbackConfig] = useState(makeDefaultConfig);
|
|
62347
61220
|
const geoBlock = useGeoBlock();
|
|
62348
61221
|
if (walletConfigError && !geoBlock) throw walletConfigError;
|
|
61222
|
+
if (walletStateError && !geoBlock) throw walletStateError;
|
|
62349
61223
|
const value = walletConfig ?? fallbackConfig;
|
|
62350
61224
|
let t2;
|
|
62351
61225
|
if ($[2] !== children || $[3] !== value) {
|
|
@@ -93772,29 +92646,29 @@ var usePendingActionReview = () => {
|
|
|
93772
92646
|
};
|
|
93773
92647
|
//#endregion
|
|
93774
92648
|
//#region ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
93775
|
-
var __defProp$
|
|
93776
|
-
var __name$
|
|
92649
|
+
var __defProp$22 = Object.defineProperty;
|
|
92650
|
+
var __name$22 = (target, value) => __defProp$22(target, "name", {
|
|
93777
92651
|
value,
|
|
93778
92652
|
configurable: true
|
|
93779
92653
|
});
|
|
93780
92654
|
var canUseDOM$1 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
93781
92655
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
93782
|
-
return /* @__PURE__ */ __name$
|
|
92656
|
+
return /* @__PURE__ */ __name$22(function handleEvent(event) {
|
|
93783
92657
|
originalEventHandler?.(event);
|
|
93784
92658
|
if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) return ourEventHandler?.(event);
|
|
93785
92659
|
}, "handleEvent");
|
|
93786
92660
|
}
|
|
93787
|
-
__name$
|
|
92661
|
+
__name$22(composeEventHandlers, "composeEventHandlers");
|
|
93788
92662
|
function getOwnerWindow(element) {
|
|
93789
92663
|
if (!canUseDOM$1) throw new Error("Cannot access window outside of the DOM");
|
|
93790
92664
|
return element?.ownerDocument?.defaultView ?? window;
|
|
93791
92665
|
}
|
|
93792
|
-
__name$
|
|
92666
|
+
__name$22(getOwnerWindow, "getOwnerWindow");
|
|
93793
92667
|
function getOwnerDocument(element) {
|
|
93794
92668
|
if (!canUseDOM$1) throw new Error("Cannot access document outside of the DOM");
|
|
93795
92669
|
return element?.ownerDocument ?? document;
|
|
93796
92670
|
}
|
|
93797
|
-
__name$
|
|
92671
|
+
__name$22(getOwnerDocument, "getOwnerDocument");
|
|
93798
92672
|
function getActiveElement(node, activeDescendant = false) {
|
|
93799
92673
|
const { activeElement } = getOwnerDocument(node);
|
|
93800
92674
|
if (!activeElement?.nodeName) return null;
|
|
@@ -93808,15 +92682,15 @@ function getActiveElement(node, activeDescendant = false) {
|
|
|
93808
92682
|
}
|
|
93809
92683
|
return activeElement;
|
|
93810
92684
|
}
|
|
93811
|
-
__name$
|
|
92685
|
+
__name$22(getActiveElement, "getActiveElement");
|
|
93812
92686
|
function isFrame(element) {
|
|
93813
92687
|
return element.tagName === "IFRAME";
|
|
93814
92688
|
}
|
|
93815
|
-
__name$
|
|
92689
|
+
__name$22(isFrame, "isFrame");
|
|
93816
92690
|
//#endregion
|
|
93817
92691
|
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
93818
|
-
var __defProp$
|
|
93819
|
-
var __name$
|
|
92692
|
+
var __defProp$21 = Object.defineProperty;
|
|
92693
|
+
var __name$21 = (target, value) => __defProp$21(target, "name", {
|
|
93820
92694
|
value,
|
|
93821
92695
|
configurable: true
|
|
93822
92696
|
});
|
|
@@ -93824,7 +92698,7 @@ function setRef$1(ref, value) {
|
|
|
93824
92698
|
if (typeof ref === "function") return ref(value);
|
|
93825
92699
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
93826
92700
|
}
|
|
93827
|
-
__name$
|
|
92701
|
+
__name$21(setRef$1, "setRef");
|
|
93828
92702
|
function composeRefs(...refs) {
|
|
93829
92703
|
return (node) => {
|
|
93830
92704
|
let hasCleanup = false;
|
|
@@ -93842,15 +92716,15 @@ function composeRefs(...refs) {
|
|
|
93842
92716
|
};
|
|
93843
92717
|
};
|
|
93844
92718
|
}
|
|
93845
|
-
__name$
|
|
92719
|
+
__name$21(composeRefs, "composeRefs");
|
|
93846
92720
|
function useComposedRefs(...refs) {
|
|
93847
92721
|
return m.useCallback(composeRefs(...refs), refs);
|
|
93848
92722
|
}
|
|
93849
|
-
__name$
|
|
92723
|
+
__name$21(useComposedRefs, "useComposedRefs");
|
|
93850
92724
|
//#endregion
|
|
93851
92725
|
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
93852
|
-
var __defProp$
|
|
93853
|
-
var __name$
|
|
92726
|
+
var __defProp$20 = Object.defineProperty;
|
|
92727
|
+
var __name$20 = (target, value) => __defProp$20(target, "name", {
|
|
93854
92728
|
value,
|
|
93855
92729
|
configurable: true
|
|
93856
92730
|
});
|
|
@@ -93858,7 +92732,7 @@ var __name$23 = (target, value) => __defProp$23(target, "name", {
|
|
|
93858
92732
|
function createContext2(rootComponentName, defaultContext) {
|
|
93859
92733
|
const Context = m.createContext(defaultContext);
|
|
93860
92734
|
Context.displayName = rootComponentName + "Context";
|
|
93861
|
-
const Provider = /* @__PURE__ */ __name$
|
|
92735
|
+
const Provider = /* @__PURE__ */ __name$20((props) => {
|
|
93862
92736
|
const { children, ...context } = props;
|
|
93863
92737
|
const value = m.useMemo(() => context, Object.values(context));
|
|
93864
92738
|
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
@@ -93875,10 +92749,10 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
93875
92749
|
if (optional) return void 0;
|
|
93876
92750
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
93877
92751
|
}
|
|
93878
|
-
__name$
|
|
92752
|
+
__name$20(useContext2, "useContext");
|
|
93879
92753
|
return [Provider, useContext2];
|
|
93880
92754
|
}
|
|
93881
|
-
__name$
|
|
92755
|
+
__name$20(createContext2, "createContext");
|
|
93882
92756
|
// @__NO_SIDE_EFFECTS__
|
|
93883
92757
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
93884
92758
|
let defaultContexts = [];
|
|
@@ -93887,7 +92761,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
93887
92761
|
BaseContext.displayName = rootComponentName + "Context";
|
|
93888
92762
|
const index = defaultContexts.length;
|
|
93889
92763
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
93890
|
-
const Provider = /* @__PURE__ */ __name$
|
|
92764
|
+
const Provider = /* @__PURE__ */ __name$20((props) => {
|
|
93891
92765
|
const { scope, children, ...context } = props;
|
|
93892
92766
|
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
93893
92767
|
const value = m.useMemo(() => context, Object.values(context));
|
|
@@ -93906,15 +92780,15 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
93906
92780
|
if (optional) return void 0;
|
|
93907
92781
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
93908
92782
|
}
|
|
93909
|
-
__name$
|
|
92783
|
+
__name$20(useContext2, "useContext");
|
|
93910
92784
|
return [Provider, useContext2];
|
|
93911
92785
|
}
|
|
93912
|
-
__name$
|
|
93913
|
-
const createScope = /* @__PURE__ */ __name$
|
|
92786
|
+
__name$20(createContext3, "createContext");
|
|
92787
|
+
const createScope = /* @__PURE__ */ __name$20(() => {
|
|
93914
92788
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
93915
92789
|
return m.createContext(defaultContext);
|
|
93916
92790
|
});
|
|
93917
|
-
return /* @__PURE__ */ __name$
|
|
92791
|
+
return /* @__PURE__ */ __name$20(function useScope(scope) {
|
|
93918
92792
|
const contexts = scope?.[scopeName] || scopeContexts;
|
|
93919
92793
|
return m.useMemo(() => ({ [`__scope${scopeName}`]: {
|
|
93920
92794
|
...scope,
|
|
@@ -93925,16 +92799,16 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
93925
92799
|
createScope.scopeName = scopeName;
|
|
93926
92800
|
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
93927
92801
|
}
|
|
93928
|
-
__name$
|
|
92802
|
+
__name$20(createContextScope, "createContextScope");
|
|
93929
92803
|
function composeContextScopes(...scopes) {
|
|
93930
92804
|
const baseScope = scopes[0];
|
|
93931
92805
|
if (scopes.length === 1) return baseScope;
|
|
93932
|
-
const createScope = /* @__PURE__ */ __name$
|
|
92806
|
+
const createScope = /* @__PURE__ */ __name$20(() => {
|
|
93933
92807
|
const scopeHooks = scopes.map((createScope2) => ({
|
|
93934
92808
|
useScope: createScope2(),
|
|
93935
92809
|
scopeName: createScope2.scopeName
|
|
93936
92810
|
}));
|
|
93937
|
-
return /* @__PURE__ */ __name$
|
|
92811
|
+
return /* @__PURE__ */ __name$20(function useComposedScopes(overrideScopes) {
|
|
93938
92812
|
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
93939
92813
|
const currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
|
|
93940
92814
|
return {
|
|
@@ -93948,464 +92822,27 @@ function composeContextScopes(...scopes) {
|
|
|
93948
92822
|
createScope.scopeName = baseScope.scopeName;
|
|
93949
92823
|
return createScope;
|
|
93950
92824
|
}
|
|
93951
|
-
__name$
|
|
93952
|
-
//#endregion
|
|
93953
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
93954
|
-
var __defProp$22 = Object.defineProperty;
|
|
93955
|
-
var __name$22 = (target, value) => __defProp$22(target, "name", {
|
|
93956
|
-
value,
|
|
93957
|
-
configurable: true
|
|
93958
|
-
});
|
|
93959
|
-
// @__NO_SIDE_EFFECTS__
|
|
93960
|
-
function createSlot(ownerName) {
|
|
93961
|
-
const Slot2 = m.forwardRef((props, forwardedRef) => {
|
|
93962
|
-
let { children, ...slotProps } = props;
|
|
93963
|
-
let slottableElement = null;
|
|
93964
|
-
let hasSlottable = false;
|
|
93965
|
-
const newChildren = [];
|
|
93966
|
-
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
93967
|
-
m.Children.forEach(children, (maybeSlottable) => {
|
|
93968
|
-
if (isSlottable(maybeSlottable)) {
|
|
93969
|
-
hasSlottable = true;
|
|
93970
|
-
const slottable = maybeSlottable;
|
|
93971
|
-
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
93972
|
-
if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
|
|
93973
|
-
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
93974
|
-
newChildren.push(slottableElement?.props?.children);
|
|
93975
|
-
} else newChildren.push(maybeSlottable);
|
|
93976
|
-
});
|
|
93977
|
-
if (slottableElement) slottableElement = m.cloneElement(slottableElement, void 0, newChildren);
|
|
93978
|
-
else if (!hasSlottable && m.Children.count(children) === 1 && m.isValidElement(children)) slottableElement = children;
|
|
93979
|
-
const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
|
|
93980
|
-
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
93981
|
-
if (!slottableElement) {
|
|
93982
|
-
if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
93983
|
-
return children;
|
|
93984
|
-
}
|
|
93985
|
-
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
93986
|
-
if (slottableElement.type !== m.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
93987
|
-
return m.cloneElement(slottableElement, mergedProps);
|
|
93988
|
-
});
|
|
93989
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
93990
|
-
return Slot2;
|
|
93991
|
-
}
|
|
93992
|
-
__name$22(createSlot, "createSlot");
|
|
93993
|
-
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
93994
|
-
// @__NO_SIDE_EFFECTS__
|
|
93995
|
-
function createSlottable(ownerName) {
|
|
93996
|
-
const Slottable2 = /* @__PURE__ */ __name$22((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
|
|
93997
|
-
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
93998
|
-
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
93999
|
-
return Slottable2;
|
|
94000
|
-
}
|
|
94001
|
-
__name$22(createSlottable, "createSlottable");
|
|
94002
|
-
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$22((slottable, child) => {
|
|
94003
|
-
if ("child" in slottable.props) {
|
|
94004
|
-
const child2 = slottable.props.child;
|
|
94005
|
-
if (!m.isValidElement(child2)) return null;
|
|
94006
|
-
return m.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
94007
|
-
}
|
|
94008
|
-
return m.isValidElement(child) ? child : null;
|
|
94009
|
-
}, "getSlottableElementFromSlottable");
|
|
94010
|
-
function mergeProps(slotProps, childProps) {
|
|
94011
|
-
const overrideProps = { ...childProps };
|
|
94012
|
-
for (const propName in childProps) {
|
|
94013
|
-
const slotPropValue = slotProps[propName];
|
|
94014
|
-
const childPropValue = childProps[propName];
|
|
94015
|
-
if (/^on[A-Z]/.test(propName)) {
|
|
94016
|
-
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
94017
|
-
const result = childPropValue(...args);
|
|
94018
|
-
slotPropValue(...args);
|
|
94019
|
-
return result;
|
|
94020
|
-
};
|
|
94021
|
-
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
94022
|
-
} else if (propName === "style") overrideProps[propName] = {
|
|
94023
|
-
...slotPropValue,
|
|
94024
|
-
...childPropValue
|
|
94025
|
-
};
|
|
94026
|
-
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
94027
|
-
}
|
|
94028
|
-
return {
|
|
94029
|
-
...slotProps,
|
|
94030
|
-
...overrideProps
|
|
94031
|
-
};
|
|
94032
|
-
}
|
|
94033
|
-
__name$22(mergeProps, "mergeProps");
|
|
94034
|
-
function getElementRef$1(element) {
|
|
94035
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
94036
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94037
|
-
if (mayWarn) return element.ref;
|
|
94038
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
94039
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94040
|
-
if (mayWarn) return element.props.ref;
|
|
94041
|
-
return element.props.ref || element.ref;
|
|
94042
|
-
}
|
|
94043
|
-
__name$22(getElementRef$1, "getElementRef");
|
|
94044
|
-
function isSlottable(child) {
|
|
94045
|
-
return m.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
94046
|
-
}
|
|
94047
|
-
__name$22(isSlottable, "isSlottable");
|
|
94048
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
94049
|
-
function isLazyComponent(element) {
|
|
94050
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
94051
|
-
}
|
|
94052
|
-
__name$22(isLazyComponent, "isLazyComponent");
|
|
94053
|
-
function isPromiseLike(value) {
|
|
94054
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
94055
|
-
}
|
|
94056
|
-
__name$22(isPromiseLike, "isPromiseLike");
|
|
94057
|
-
var createSlotError = /* @__PURE__ */ __name$22((ownerName) => {
|
|
94058
|
-
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
94059
|
-
}, "createSlotError");
|
|
94060
|
-
var createSlottableError = /* @__PURE__ */ __name$22((ownerName) => {
|
|
94061
|
-
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
94062
|
-
}, "createSlottableError");
|
|
94063
|
-
var use = m[" use ".trim().toString()];
|
|
94064
|
-
//#endregion
|
|
94065
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+r_89d529a1bae70a6b01b956c8b2bdbce1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
94066
|
-
var __defProp$21 = Object.defineProperty;
|
|
94067
|
-
var __name$21 = (target, value) => __defProp$21(target, "name", {
|
|
94068
|
-
value,
|
|
94069
|
-
configurable: true
|
|
94070
|
-
});
|
|
94071
|
-
var Primitive = [
|
|
94072
|
-
"a",
|
|
94073
|
-
"button",
|
|
94074
|
-
"div",
|
|
94075
|
-
"form",
|
|
94076
|
-
"h2",
|
|
94077
|
-
"h3",
|
|
94078
|
-
"img",
|
|
94079
|
-
"input",
|
|
94080
|
-
"label",
|
|
94081
|
-
"li",
|
|
94082
|
-
"nav",
|
|
94083
|
-
"ol",
|
|
94084
|
-
"p",
|
|
94085
|
-
"select",
|
|
94086
|
-
"span",
|
|
94087
|
-
"svg",
|
|
94088
|
-
"ul"
|
|
94089
|
-
].reduce((primitive, node) => {
|
|
94090
|
-
const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
|
|
94091
|
-
const Node = m.forwardRef((props, forwardedRef) => {
|
|
94092
|
-
const { asChild, ...primitiveProps } = props;
|
|
94093
|
-
const Comp = asChild ? Slot : node;
|
|
94094
|
-
if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
|
|
94095
|
-
return /* @__PURE__ */ jsx(Comp, {
|
|
94096
|
-
...primitiveProps,
|
|
94097
|
-
ref: forwardedRef
|
|
94098
|
-
});
|
|
94099
|
-
});
|
|
94100
|
-
Node.displayName = `Primitive.${node}`;
|
|
94101
|
-
return {
|
|
94102
|
-
...primitive,
|
|
94103
|
-
[node]: Node
|
|
94104
|
-
};
|
|
94105
|
-
}, {});
|
|
94106
|
-
function dispatchDiscreteCustomEvent(target, event) {
|
|
94107
|
-
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
94108
|
-
}
|
|
94109
|
-
__name$21(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
94110
|
-
//#endregion
|
|
94111
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
94112
|
-
var __defProp$20 = Object.defineProperty;
|
|
94113
|
-
var __name$20 = (target, value) => __defProp$20(target, "name", {
|
|
94114
|
-
value,
|
|
94115
|
-
configurable: true
|
|
94116
|
-
});
|
|
94117
|
-
function useCallbackRef(callback) {
|
|
94118
|
-
const callbackRef = m.useRef(callback);
|
|
94119
|
-
m.useEffect(() => {
|
|
94120
|
-
callbackRef.current = callback;
|
|
94121
|
-
});
|
|
94122
|
-
return m.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
|
|
94123
|
-
}
|
|
94124
|
-
__name$20(useCallbackRef, "useCallbackRef");
|
|
94125
|
-
//#endregion
|
|
94126
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-dismissable-layer@1.1.19_@types+react-dom@19.2.4_@types+react@19.2.18___40e495cae3a960f65f80435c18b02650/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
94127
|
-
var __defProp$19 = Object.defineProperty;
|
|
94128
|
-
var __name$19 = (target, value) => __defProp$19(target, "name", {
|
|
94129
|
-
value,
|
|
94130
|
-
configurable: true
|
|
94131
|
-
});
|
|
94132
|
-
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
94133
|
-
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
94134
|
-
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
94135
|
-
var originalBodyPointerEvents;
|
|
94136
|
-
var DismissableLayerContext = m.createContext({
|
|
94137
|
-
layers: /* @__PURE__ */ new Set(),
|
|
94138
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
94139
|
-
branches: /* @__PURE__ */ new Set(),
|
|
94140
|
-
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
94141
|
-
});
|
|
94142
|
-
var DismissableLayer = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$19(function DismissableLayer2(props, forwardedRef) {
|
|
94143
|
-
const { disableOutsidePointerEvents = false, deferPointerDownOutside = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
|
|
94144
|
-
const context = m.useContext(DismissableLayerContext);
|
|
94145
|
-
const [node, setNode] = m.useState(null);
|
|
94146
|
-
const ownerDocument = node?.ownerDocument ?? globalThis?.document;
|
|
94147
|
-
const [, force] = m.useState({});
|
|
94148
|
-
const composedRefs = useComposedRefs(forwardedRef, setNode);
|
|
94149
|
-
const layers = Array.from(context.layers);
|
|
94150
|
-
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
94151
|
-
const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;
|
|
94152
|
-
const index = node ? layers.indexOf(node) : -1;
|
|
94153
|
-
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
94154
|
-
const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
94155
|
-
const isDeferredPointerDownOutsideRef = m.useRef(false);
|
|
94156
|
-
const pointerDownOutside = usePointerDownOutside((event) => {
|
|
94157
|
-
onPointerDownOutside?.(event);
|
|
94158
|
-
onInteractOutside?.(event);
|
|
94159
|
-
if (!event.defaultPrevented) onDismiss?.();
|
|
94160
|
-
}, {
|
|
94161
|
-
ownerDocument,
|
|
94162
|
-
deferPointerDownOutside,
|
|
94163
|
-
isDeferredPointerDownOutsideRef,
|
|
94164
|
-
dismissableSurfaces: context.dismissableSurfaces,
|
|
94165
|
-
shouldHandlePointerDownOutside: m.useCallback((target) => {
|
|
94166
|
-
if (!(target instanceof Node)) return false;
|
|
94167
|
-
const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
|
|
94168
|
-
return isPointerEventsEnabled && !isPointerDownOnBranch;
|
|
94169
|
-
}, [context.branches, isPointerEventsEnabled])
|
|
94170
|
-
});
|
|
94171
|
-
const focusOutside = useFocusOutside((event) => {
|
|
94172
|
-
if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) return;
|
|
94173
|
-
const target = event.target;
|
|
94174
|
-
if ([...context.branches].some((branch) => branch.contains(target))) return;
|
|
94175
|
-
onFocusOutside?.(event);
|
|
94176
|
-
onInteractOutside?.(event);
|
|
94177
|
-
if (!event.defaultPrevented) onDismiss?.();
|
|
94178
|
-
}, ownerDocument);
|
|
94179
|
-
const isHighestLayer = node ? index === layers.length - 1 : false;
|
|
94180
|
-
const handleKeyDown = useCallbackRef((event) => {
|
|
94181
|
-
if (event.key !== "Escape") return;
|
|
94182
|
-
onEscapeKeyDown?.(event);
|
|
94183
|
-
if (!event.defaultPrevented && onDismiss) {
|
|
94184
|
-
event.preventDefault();
|
|
94185
|
-
onDismiss();
|
|
94186
|
-
}
|
|
94187
|
-
});
|
|
94188
|
-
m.useEffect(() => {
|
|
94189
|
-
if (!isHighestLayer) return;
|
|
94190
|
-
ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
|
|
94191
|
-
return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
|
|
94192
|
-
}, [
|
|
94193
|
-
ownerDocument,
|
|
94194
|
-
isHighestLayer,
|
|
94195
|
-
handleKeyDown
|
|
94196
|
-
]);
|
|
94197
|
-
m.useEffect(() => {
|
|
94198
|
-
if (!node) return;
|
|
94199
|
-
if (disableOutsidePointerEvents) {
|
|
94200
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
94201
|
-
originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
|
|
94202
|
-
ownerDocument.body.style.pointerEvents = "none";
|
|
94203
|
-
}
|
|
94204
|
-
context.layersWithOutsidePointerEventsDisabled.add(node);
|
|
94205
|
-
}
|
|
94206
|
-
context.layers.add(node);
|
|
94207
|
-
dispatchUpdate();
|
|
94208
|
-
return () => {
|
|
94209
|
-
if (disableOutsidePointerEvents) {
|
|
94210
|
-
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
94211
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0) ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
|
|
94212
|
-
}
|
|
94213
|
-
};
|
|
94214
|
-
}, [
|
|
94215
|
-
node,
|
|
94216
|
-
ownerDocument,
|
|
94217
|
-
disableOutsidePointerEvents,
|
|
94218
|
-
context
|
|
94219
|
-
]);
|
|
94220
|
-
m.useEffect(() => {
|
|
94221
|
-
return () => {
|
|
94222
|
-
if (!node) return;
|
|
94223
|
-
context.layers.delete(node);
|
|
94224
|
-
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
94225
|
-
dispatchUpdate();
|
|
94226
|
-
};
|
|
94227
|
-
}, [node, context]);
|
|
94228
|
-
m.useEffect(() => {
|
|
94229
|
-
const handleUpdate = /* @__PURE__ */ __name$19(() => force({}), "handleUpdate");
|
|
94230
|
-
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
94231
|
-
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
94232
|
-
}, []);
|
|
94233
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
94234
|
-
...layerProps,
|
|
94235
|
-
ref: composedRefs,
|
|
94236
|
-
style: {
|
|
94237
|
-
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
|
94238
|
-
...props.style
|
|
94239
|
-
},
|
|
94240
|
-
onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
|
|
94241
|
-
onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
|
|
94242
|
-
onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
|
|
94243
|
-
});
|
|
94244
|
-
}, "DismissableLayer"));
|
|
94245
|
-
function useDismissableLayerSurface() {
|
|
94246
|
-
const context = m.useContext(DismissableLayerContext);
|
|
94247
|
-
const [node, setNode] = m.useState(null);
|
|
94248
|
-
m.useEffect(() => {
|
|
94249
|
-
if (!node) return;
|
|
94250
|
-
context.dismissableSurfaces.add(node);
|
|
94251
|
-
return () => {
|
|
94252
|
-
context.dismissableSurfaces.delete(node);
|
|
94253
|
-
};
|
|
94254
|
-
}, [node, context.dismissableSurfaces]);
|
|
94255
|
-
return setNode;
|
|
94256
|
-
}
|
|
94257
|
-
__name$19(useDismissableLayerSurface, "useDismissableLayerSurface");
|
|
94258
|
-
var IS_TRUE = /* @__PURE__ */ __name$19(() => true, "IS_TRUE");
|
|
94259
|
-
function usePointerDownOutside(onPointerDownOutside, args) {
|
|
94260
|
-
const { ownerDocument = globalThis?.document, deferPointerDownOutside = false, isDeferredPointerDownOutsideRef, dismissableSurfaces, shouldHandlePointerDownOutside = IS_TRUE } = args;
|
|
94261
|
-
const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
|
|
94262
|
-
const isPointerInsideReactTreeRef = m.useRef(false);
|
|
94263
|
-
const isPointerDownOutsideRef = m.useRef(false);
|
|
94264
|
-
const interceptedOutsideInteractionEventsRef = m.useRef(/* @__PURE__ */ new Map());
|
|
94265
|
-
const handleClickRef = m.useRef(() => {});
|
|
94266
|
-
m.useEffect(() => {
|
|
94267
|
-
function resetOutsideInteraction() {
|
|
94268
|
-
isPointerDownOutsideRef.current = false;
|
|
94269
|
-
isDeferredPointerDownOutsideRef.current = false;
|
|
94270
|
-
interceptedOutsideInteractionEventsRef.current.clear();
|
|
94271
|
-
}
|
|
94272
|
-
__name$19(resetOutsideInteraction, "resetOutsideInteraction");
|
|
94273
|
-
function isOutsideInteractionIntercepted() {
|
|
94274
|
-
return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);
|
|
94275
|
-
}
|
|
94276
|
-
__name$19(isOutsideInteractionIntercepted, "isOutsideInteractionIntercepted");
|
|
94277
|
-
function handleInteractionCapture(event) {
|
|
94278
|
-
if (!isPointerDownOutsideRef.current) return;
|
|
94279
|
-
const target = event.target;
|
|
94280
|
-
if (!(target instanceof Node && [...dismissableSurfaces].some((surface) => surface.contains(target)))) interceptedOutsideInteractionEventsRef.current.set(event.type, true);
|
|
94281
|
-
if (event.type === "click") window.setTimeout(() => {
|
|
94282
|
-
if (isPointerDownOutsideRef.current) handleClickRef.current();
|
|
94283
|
-
}, 0);
|
|
94284
|
-
}
|
|
94285
|
-
__name$19(handleInteractionCapture, "handleInteractionCapture");
|
|
94286
|
-
function handleInteractionBubble(event) {
|
|
94287
|
-
if (isPointerDownOutsideRef.current) interceptedOutsideInteractionEventsRef.current.set(event.type, false);
|
|
94288
|
-
}
|
|
94289
|
-
__name$19(handleInteractionBubble, "handleInteractionBubble");
|
|
94290
|
-
const handlePointerDown = /* @__PURE__ */ __name$19((event) => {
|
|
94291
|
-
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
94292
|
-
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
|
94293
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94294
|
-
const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();
|
|
94295
|
-
resetOutsideInteraction();
|
|
94296
|
-
if (!wasOutsideInteractionIntercepted) handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, { discrete: true });
|
|
94297
|
-
};
|
|
94298
|
-
__name$19(handleAndDispatchPointerDownOutsideEvent2, "handleAndDispatchPointerDownOutsideEvent");
|
|
94299
|
-
if (!shouldHandlePointerDownOutside(event.target)) {
|
|
94300
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94301
|
-
resetOutsideInteraction();
|
|
94302
|
-
isPointerInsideReactTreeRef.current = false;
|
|
94303
|
-
return;
|
|
94304
|
-
}
|
|
94305
|
-
const eventDetail = { originalEvent: event };
|
|
94306
|
-
isPointerDownOutsideRef.current = true;
|
|
94307
|
-
isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;
|
|
94308
|
-
interceptedOutsideInteractionEventsRef.current.clear();
|
|
94309
|
-
if (!deferPointerDownOutside || event.button !== 0) handleAndDispatchPointerDownOutsideEvent2();
|
|
94310
|
-
else {
|
|
94311
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94312
|
-
handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
|
|
94313
|
-
ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
|
|
94314
|
-
}
|
|
94315
|
-
} else {
|
|
94316
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94317
|
-
resetOutsideInteraction();
|
|
94318
|
-
}
|
|
94319
|
-
isPointerInsideReactTreeRef.current = false;
|
|
94320
|
-
}, "handlePointerDown");
|
|
94321
|
-
const outsideInteractionEvents = [
|
|
94322
|
-
"pointerup",
|
|
94323
|
-
"mousedown",
|
|
94324
|
-
"mouseup",
|
|
94325
|
-
"touchstart",
|
|
94326
|
-
"touchend",
|
|
94327
|
-
"click"
|
|
94328
|
-
];
|
|
94329
|
-
for (const eventName of outsideInteractionEvents) {
|
|
94330
|
-
ownerDocument.addEventListener(eventName, handleInteractionCapture, true);
|
|
94331
|
-
ownerDocument.addEventListener(eventName, handleInteractionBubble);
|
|
94332
|
-
}
|
|
94333
|
-
const timerId = window.setTimeout(() => {
|
|
94334
|
-
ownerDocument.addEventListener("pointerdown", handlePointerDown);
|
|
94335
|
-
}, 0);
|
|
94336
|
-
return () => {
|
|
94337
|
-
window.clearTimeout(timerId);
|
|
94338
|
-
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
|
94339
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94340
|
-
for (const eventName of outsideInteractionEvents) {
|
|
94341
|
-
ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);
|
|
94342
|
-
ownerDocument.removeEventListener(eventName, handleInteractionBubble);
|
|
94343
|
-
}
|
|
94344
|
-
};
|
|
94345
|
-
}, [
|
|
94346
|
-
ownerDocument,
|
|
94347
|
-
handlePointerDownOutside,
|
|
94348
|
-
deferPointerDownOutside,
|
|
94349
|
-
isDeferredPointerDownOutsideRef,
|
|
94350
|
-
dismissableSurfaces,
|
|
94351
|
-
shouldHandlePointerDownOutside
|
|
94352
|
-
]);
|
|
94353
|
-
return { onPointerDownCapture: /* @__PURE__ */ __name$19(() => isPointerInsideReactTreeRef.current = true, "onPointerDownCapture") };
|
|
94354
|
-
}
|
|
94355
|
-
__name$19(usePointerDownOutside, "usePointerDownOutside");
|
|
94356
|
-
function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
|
|
94357
|
-
const handleFocusOutside = useCallbackRef(onFocusOutside);
|
|
94358
|
-
const isFocusInsideReactTreeRef = m.useRef(false);
|
|
94359
|
-
m.useEffect(() => {
|
|
94360
|
-
const handleFocus = /* @__PURE__ */ __name$19((event) => {
|
|
94361
|
-
if (event.target && !isFocusInsideReactTreeRef.current) handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, { originalEvent: event }, { discrete: false });
|
|
94362
|
-
}, "handleFocus");
|
|
94363
|
-
ownerDocument.addEventListener("focusin", handleFocus);
|
|
94364
|
-
return () => ownerDocument.removeEventListener("focusin", handleFocus);
|
|
94365
|
-
}, [ownerDocument, handleFocusOutside]);
|
|
94366
|
-
return {
|
|
94367
|
-
onFocusCapture: /* @__PURE__ */ __name$19(() => isFocusInsideReactTreeRef.current = true, "onFocusCapture"),
|
|
94368
|
-
onBlurCapture: /* @__PURE__ */ __name$19(() => isFocusInsideReactTreeRef.current = false, "onBlurCapture")
|
|
94369
|
-
};
|
|
94370
|
-
}
|
|
94371
|
-
__name$19(useFocusOutside, "useFocusOutside");
|
|
94372
|
-
function dispatchUpdate() {
|
|
94373
|
-
const event = new CustomEvent(CONTEXT_UPDATE);
|
|
94374
|
-
document.dispatchEvent(event);
|
|
94375
|
-
}
|
|
94376
|
-
__name$19(dispatchUpdate, "dispatchUpdate");
|
|
94377
|
-
function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
94378
|
-
const target = detail.originalEvent.target;
|
|
94379
|
-
const event = new CustomEvent(name, {
|
|
94380
|
-
bubbles: false,
|
|
94381
|
-
cancelable: true,
|
|
94382
|
-
detail
|
|
94383
|
-
});
|
|
94384
|
-
if (handler) target.addEventListener(name, handler, { once: true });
|
|
94385
|
-
if (discrete) dispatchDiscreteCustomEvent(target, event);
|
|
94386
|
-
else target.dispatchEvent(event);
|
|
94387
|
-
}
|
|
94388
|
-
__name$19(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
|
|
92825
|
+
__name$20(composeContextScopes, "composeContextScopes");
|
|
94389
92826
|
//#endregion
|
|
94390
92827
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
94391
92828
|
var useLayoutEffect2 = globalThis?.document ? m.useLayoutEffect : () => {};
|
|
94392
92829
|
//#endregion
|
|
94393
92830
|
//#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
94394
|
-
var __defProp$
|
|
94395
|
-
var __name$
|
|
92831
|
+
var __defProp$19 = Object.defineProperty;
|
|
92832
|
+
var __name$19 = (target, value) => __defProp$19(target, "name", {
|
|
94396
92833
|
value,
|
|
94397
92834
|
configurable: true
|
|
94398
92835
|
});
|
|
94399
92836
|
var useReactId = m[" useId ".trim().toString()] || (() => void 0);
|
|
94400
|
-
var count
|
|
92837
|
+
var count = 0;
|
|
94401
92838
|
function useId$2(deterministicId) {
|
|
94402
92839
|
const [id, setId] = m.useState(useReactId());
|
|
94403
92840
|
useLayoutEffect2(() => {
|
|
94404
|
-
if (!deterministicId) setId((reactId) => reactId ?? String(count
|
|
92841
|
+
if (!deterministicId) setId((reactId) => reactId ?? String(count++));
|
|
94405
92842
|
}, [deterministicId]);
|
|
94406
92843
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
94407
92844
|
}
|
|
94408
|
-
__name$
|
|
92845
|
+
__name$19(useId$2, "useId");
|
|
94409
92846
|
//#endregion
|
|
94410
92847
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
94411
92848
|
/**
|
|
@@ -96038,13 +94475,171 @@ var arrow = (options, deps) => {
|
|
|
96038
94475
|
};
|
|
96039
94476
|
};
|
|
96040
94477
|
//#endregion
|
|
96041
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-
|
|
94478
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.3_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
94479
|
+
var __defProp$18 = Object.defineProperty;
|
|
94480
|
+
var __name$18 = (target, value) => __defProp$18(target, "name", {
|
|
94481
|
+
value,
|
|
94482
|
+
configurable: true
|
|
94483
|
+
});
|
|
94484
|
+
// @__NO_SIDE_EFFECTS__
|
|
94485
|
+
function createSlot(ownerName) {
|
|
94486
|
+
const Slot2 = m.forwardRef((props, forwardedRef) => {
|
|
94487
|
+
let { children, ...slotProps } = props;
|
|
94488
|
+
let slottableElement = null;
|
|
94489
|
+
let hasSlottable = false;
|
|
94490
|
+
const newChildren = [];
|
|
94491
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
94492
|
+
m.Children.forEach(children, (maybeSlottable) => {
|
|
94493
|
+
if (isSlottable(maybeSlottable)) {
|
|
94494
|
+
hasSlottable = true;
|
|
94495
|
+
const slottable = maybeSlottable;
|
|
94496
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
94497
|
+
if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
|
|
94498
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
94499
|
+
newChildren.push(slottableElement?.props?.children);
|
|
94500
|
+
} else newChildren.push(maybeSlottable);
|
|
94501
|
+
});
|
|
94502
|
+
if (slottableElement) slottableElement = m.cloneElement(slottableElement, void 0, newChildren);
|
|
94503
|
+
else if (!hasSlottable && m.Children.count(children) === 1 && m.isValidElement(children)) slottableElement = children;
|
|
94504
|
+
const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
|
|
94505
|
+
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
94506
|
+
if (!slottableElement) {
|
|
94507
|
+
if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
94508
|
+
return children;
|
|
94509
|
+
}
|
|
94510
|
+
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
94511
|
+
if (slottableElement.type !== m.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
94512
|
+
return m.cloneElement(slottableElement, mergedProps);
|
|
94513
|
+
});
|
|
94514
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
94515
|
+
return Slot2;
|
|
94516
|
+
}
|
|
94517
|
+
__name$18(createSlot, "createSlot");
|
|
94518
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
94519
|
+
// @__NO_SIDE_EFFECTS__
|
|
94520
|
+
function createSlottable(ownerName) {
|
|
94521
|
+
const Slottable2 = /* @__PURE__ */ __name$18((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
|
|
94522
|
+
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
94523
|
+
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
94524
|
+
return Slottable2;
|
|
94525
|
+
}
|
|
94526
|
+
__name$18(createSlottable, "createSlottable");
|
|
94527
|
+
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$18((slottable, child) => {
|
|
94528
|
+
if ("child" in slottable.props) {
|
|
94529
|
+
const child2 = slottable.props.child;
|
|
94530
|
+
if (!m.isValidElement(child2)) return null;
|
|
94531
|
+
return m.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
94532
|
+
}
|
|
94533
|
+
return m.isValidElement(child) ? child : null;
|
|
94534
|
+
}, "getSlottableElementFromSlottable");
|
|
94535
|
+
function mergeProps(slotProps, childProps) {
|
|
94536
|
+
const overrideProps = { ...childProps };
|
|
94537
|
+
for (const propName in childProps) {
|
|
94538
|
+
const slotPropValue = slotProps[propName];
|
|
94539
|
+
const childPropValue = childProps[propName];
|
|
94540
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
94541
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
94542
|
+
const result = childPropValue(...args);
|
|
94543
|
+
slotPropValue(...args);
|
|
94544
|
+
return result;
|
|
94545
|
+
};
|
|
94546
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
94547
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
94548
|
+
...slotPropValue,
|
|
94549
|
+
...childPropValue
|
|
94550
|
+
};
|
|
94551
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
94552
|
+
}
|
|
94553
|
+
return {
|
|
94554
|
+
...slotProps,
|
|
94555
|
+
...overrideProps
|
|
94556
|
+
};
|
|
94557
|
+
}
|
|
94558
|
+
__name$18(mergeProps, "mergeProps");
|
|
94559
|
+
function getElementRef$1(element) {
|
|
94560
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
94561
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94562
|
+
if (mayWarn) return element.ref;
|
|
94563
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
94564
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94565
|
+
if (mayWarn) return element.props.ref;
|
|
94566
|
+
return element.props.ref || element.ref;
|
|
94567
|
+
}
|
|
94568
|
+
__name$18(getElementRef$1, "getElementRef");
|
|
94569
|
+
function isSlottable(child) {
|
|
94570
|
+
return m.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
94571
|
+
}
|
|
94572
|
+
__name$18(isSlottable, "isSlottable");
|
|
94573
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
94574
|
+
function isLazyComponent(element) {
|
|
94575
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
94576
|
+
}
|
|
94577
|
+
__name$18(isLazyComponent, "isLazyComponent");
|
|
94578
|
+
function isPromiseLike(value) {
|
|
94579
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
94580
|
+
}
|
|
94581
|
+
__name$18(isPromiseLike, "isPromiseLike");
|
|
94582
|
+
var createSlotError = /* @__PURE__ */ __name$18((ownerName) => {
|
|
94583
|
+
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
94584
|
+
}, "createSlotError");
|
|
94585
|
+
var createSlottableError = /* @__PURE__ */ __name$18((ownerName) => {
|
|
94586
|
+
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
94587
|
+
}, "createSlottableError");
|
|
94588
|
+
var use = m[" use ".trim().toString()];
|
|
94589
|
+
//#endregion
|
|
94590
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+r_89d529a1bae70a6b01b956c8b2bdbce1/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
96042
94591
|
var __defProp$17 = Object.defineProperty;
|
|
96043
94592
|
var __name$17 = (target, value) => __defProp$17(target, "name", {
|
|
96044
94593
|
value,
|
|
96045
94594
|
configurable: true
|
|
96046
94595
|
});
|
|
96047
|
-
var
|
|
94596
|
+
var Primitive = [
|
|
94597
|
+
"a",
|
|
94598
|
+
"button",
|
|
94599
|
+
"div",
|
|
94600
|
+
"form",
|
|
94601
|
+
"h2",
|
|
94602
|
+
"h3",
|
|
94603
|
+
"img",
|
|
94604
|
+
"input",
|
|
94605
|
+
"label",
|
|
94606
|
+
"li",
|
|
94607
|
+
"nav",
|
|
94608
|
+
"ol",
|
|
94609
|
+
"p",
|
|
94610
|
+
"select",
|
|
94611
|
+
"span",
|
|
94612
|
+
"svg",
|
|
94613
|
+
"ul"
|
|
94614
|
+
].reduce((primitive, node) => {
|
|
94615
|
+
const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
|
|
94616
|
+
const Node = m.forwardRef((props, forwardedRef) => {
|
|
94617
|
+
const { asChild, ...primitiveProps } = props;
|
|
94618
|
+
const Comp = asChild ? Slot : node;
|
|
94619
|
+
if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
|
|
94620
|
+
return /* @__PURE__ */ jsx(Comp, {
|
|
94621
|
+
...primitiveProps,
|
|
94622
|
+
ref: forwardedRef
|
|
94623
|
+
});
|
|
94624
|
+
});
|
|
94625
|
+
Node.displayName = `Primitive.${node}`;
|
|
94626
|
+
return {
|
|
94627
|
+
...primitive,
|
|
94628
|
+
[node]: Node
|
|
94629
|
+
};
|
|
94630
|
+
}, {});
|
|
94631
|
+
function dispatchDiscreteCustomEvent(target, event) {
|
|
94632
|
+
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
94633
|
+
}
|
|
94634
|
+
__name$17(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
94635
|
+
//#endregion
|
|
94636
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-arrow@1.1.15_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react_6577d6e6e2d46022fd9b70c70126e397/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
94637
|
+
var __defProp$16 = Object.defineProperty;
|
|
94638
|
+
var __name$16 = (target, value) => __defProp$16(target, "name", {
|
|
94639
|
+
value,
|
|
94640
|
+
configurable: true
|
|
94641
|
+
});
|
|
94642
|
+
var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$16(function Arrow2(props, forwardedRef) {
|
|
96048
94643
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
96049
94644
|
return /* @__PURE__ */ jsx(Primitive.svg, {
|
|
96050
94645
|
...arrowProps,
|
|
@@ -96057,9 +94652,24 @@ var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$17(function Arr
|
|
|
96057
94652
|
});
|
|
96058
94653
|
}, "Arrow"));
|
|
96059
94654
|
//#endregion
|
|
94655
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
94656
|
+
var __defProp$15 = Object.defineProperty;
|
|
94657
|
+
var __name$15 = (target, value) => __defProp$15(target, "name", {
|
|
94658
|
+
value,
|
|
94659
|
+
configurable: true
|
|
94660
|
+
});
|
|
94661
|
+
function useCallbackRef(callback) {
|
|
94662
|
+
const callbackRef = m.useRef(callback);
|
|
94663
|
+
m.useEffect(() => {
|
|
94664
|
+
callbackRef.current = callback;
|
|
94665
|
+
});
|
|
94666
|
+
return m.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
|
|
94667
|
+
}
|
|
94668
|
+
__name$15(useCallbackRef, "useCallbackRef");
|
|
94669
|
+
//#endregion
|
|
96060
94670
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.4_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
96061
|
-
var __defProp$
|
|
96062
|
-
var __name$
|
|
94671
|
+
var __defProp$14 = Object.defineProperty;
|
|
94672
|
+
var __name$14 = (target, value) => __defProp$14(target, "name", {
|
|
96063
94673
|
value,
|
|
96064
94674
|
configurable: true
|
|
96065
94675
|
});
|
|
@@ -96097,18 +94707,18 @@ function useSize(element) {
|
|
|
96097
94707
|
}, [element]);
|
|
96098
94708
|
return size;
|
|
96099
94709
|
}
|
|
96100
|
-
__name$
|
|
94710
|
+
__name$14(useSize, "useSize");
|
|
96101
94711
|
//#endregion
|
|
96102
94712
|
//#region ../../node_modules/.pnpm/@radix-ui+react-popper@1.3.7_@types+react-dom@19.2.4_@types+react@19.2.18__@types+react_f6861641c26545c70c318e31f73f8643/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
96103
|
-
var __defProp$
|
|
96104
|
-
var __name$
|
|
94713
|
+
var __defProp$13 = Object.defineProperty;
|
|
94714
|
+
var __name$13 = (target, value) => __defProp$13(target, "name", {
|
|
96105
94715
|
value,
|
|
96106
94716
|
configurable: true
|
|
96107
94717
|
});
|
|
96108
94718
|
var POPPER_NAME = "Popper";
|
|
96109
94719
|
var [createPopperContext, createPopperScope] = /* @__PURE__ */ createContextScope(POPPER_NAME);
|
|
96110
94720
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
96111
|
-
var Popper = /* @__PURE__ */ __name$
|
|
94721
|
+
var Popper = /* @__PURE__ */ __name$13((props) => {
|
|
96112
94722
|
const { __scopePopper, children } = props;
|
|
96113
94723
|
const [anchor, setAnchor] = m.useState(null);
|
|
96114
94724
|
const [placementState, setPlacementState] = m.useState(void 0);
|
|
@@ -96122,7 +94732,7 @@ var Popper = /* @__PURE__ */ __name$15((props) => {
|
|
|
96122
94732
|
});
|
|
96123
94733
|
}, "Popper");
|
|
96124
94734
|
var ANCHOR_NAME = "PopperAnchor";
|
|
96125
|
-
var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94735
|
+
var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperAnchor2(props, forwardedRef) {
|
|
96126
94736
|
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
96127
94737
|
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
96128
94738
|
const ref = m.useRef(null);
|
|
@@ -96150,7 +94760,7 @@ var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(functi
|
|
|
96150
94760
|
}, "PopperAnchor"));
|
|
96151
94761
|
var CONTENT_NAME$4 = "PopperContent";
|
|
96152
94762
|
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$4);
|
|
96153
|
-
var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94763
|
+
var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperContent2(props, forwardedRef) {
|
|
96154
94764
|
const { __scopePopper, side = "bottom", sideOffset = 0, align = "center", alignOffset = 0, arrowPadding = 0, avoidCollisions = true, collisionBoundary = [], collisionPadding: collisionPaddingProp = 0, sticky = "partial", hideWhenDetached = false, updatePositionStrategy = "optimized", onPlaced, ...contentProps } = props;
|
|
96155
94765
|
const context = usePopperContext(CONTENT_NAME$4, __scopePopper);
|
|
96156
94766
|
const [content, setContent] = m.useState(null);
|
|
@@ -96177,7 +94787,7 @@ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(funct
|
|
|
96177
94787
|
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
96178
94788
|
strategy: "fixed",
|
|
96179
94789
|
placement: desiredPlacement,
|
|
96180
|
-
whileElementsMounted: /* @__PURE__ */ __name$
|
|
94790
|
+
whileElementsMounted: /* @__PURE__ */ __name$13((...args) => {
|
|
96181
94791
|
return autoUpdate(...args, { animationFrame: updatePositionStrategy === "always" });
|
|
96182
94792
|
}, "whileElementsMounted"),
|
|
96183
94793
|
elements: { reference: context.anchor },
|
|
@@ -96195,7 +94805,7 @@ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(funct
|
|
|
96195
94805
|
avoidCollisions && flip({ ...detectOverflowOptions }),
|
|
96196
94806
|
size({
|
|
96197
94807
|
...detectOverflowOptions,
|
|
96198
|
-
apply: /* @__PURE__ */ __name$
|
|
94808
|
+
apply: /* @__PURE__ */ __name$13(({ elements, rects, availableWidth, availableHeight }) => {
|
|
96199
94809
|
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
96200
94810
|
const contentStyle = elements.floating.style;
|
|
96201
94811
|
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
@@ -96281,7 +94891,7 @@ var OPPOSITE_SIDE = {
|
|
|
96281
94891
|
bottom: "top",
|
|
96282
94892
|
left: "right"
|
|
96283
94893
|
};
|
|
96284
|
-
var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94894
|
+
var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperArrow2(props, forwardedRef) {
|
|
96285
94895
|
const { __scopePopper, ...arrowProps } = props;
|
|
96286
94896
|
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
96287
94897
|
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
@@ -96319,8 +94929,8 @@ var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(functio
|
|
|
96319
94929
|
function isNotNull(value) {
|
|
96320
94930
|
return value !== null;
|
|
96321
94931
|
}
|
|
96322
|
-
__name$
|
|
96323
|
-
var transformOrigin = /* @__PURE__ */ __name$
|
|
94932
|
+
__name$13(isNotNull, "isNotNull");
|
|
94933
|
+
var transformOrigin = /* @__PURE__ */ __name$13((options) => ({
|
|
96324
94934
|
name: "transformOrigin",
|
|
96325
94935
|
options,
|
|
96326
94936
|
fn(data) {
|
|
@@ -96361,19 +94971,19 @@ function getSideAndAlignFromPlacement(placement) {
|
|
|
96361
94971
|
const [side, align = "center"] = placement.split("-");
|
|
96362
94972
|
return [side, align];
|
|
96363
94973
|
}
|
|
96364
|
-
__name$
|
|
94974
|
+
__name$13(getSideAndAlignFromPlacement, "getSideAndAlignFromPlacement");
|
|
96365
94975
|
var Root2$1 = Popper;
|
|
96366
94976
|
var Anchor = PopperAnchor;
|
|
96367
94977
|
var Content = PopperContent;
|
|
96368
94978
|
var Arrow = PopperArrow;
|
|
96369
94979
|
//#endregion
|
|
96370
94980
|
//#region ../../node_modules/.pnpm/@radix-ui+react-portal@1.1.17_@types+react-dom@19.2.4_@types+react@19.2.18__@types+reac_7d49bbd59f67da7ea06e84940374bb40/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
96371
|
-
var __defProp$
|
|
96372
|
-
var __name$
|
|
94981
|
+
var __defProp$12 = Object.defineProperty;
|
|
94982
|
+
var __name$12 = (target, value) => __defProp$12(target, "name", {
|
|
96373
94983
|
value,
|
|
96374
94984
|
configurable: true
|
|
96375
94985
|
});
|
|
96376
|
-
var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94986
|
+
var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$12(function Portal2(props, forwardedRef) {
|
|
96377
94987
|
const { container: containerProp, ...portalProps } = props;
|
|
96378
94988
|
const [mounted, setMounted] = m.useState(false);
|
|
96379
94989
|
useLayoutEffect2(() => setMounted(true), []);
|
|
@@ -96385,8 +94995,8 @@ var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$14(function P
|
|
|
96385
94995
|
}, "Portal"));
|
|
96386
94996
|
//#endregion
|
|
96387
94997
|
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.2.4_@types+react@19.2.18__@types+re_c16522d094fa2977c5a9a5cd628ab890/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
96388
|
-
var __defProp$
|
|
96389
|
-
var __name$
|
|
94998
|
+
var __defProp$11 = Object.defineProperty;
|
|
94999
|
+
var __name$11 = (target, value) => __defProp$11(target, "name", {
|
|
96390
95000
|
value,
|
|
96391
95001
|
configurable: true
|
|
96392
95002
|
});
|
|
@@ -96395,8 +95005,8 @@ function useStateMachine(initialState, machine) {
|
|
|
96395
95005
|
return machine[state][event] ?? state;
|
|
96396
95006
|
}, initialState);
|
|
96397
95007
|
}
|
|
96398
|
-
__name$
|
|
96399
|
-
var Presence = /* @__PURE__ */ __name$
|
|
95008
|
+
__name$11(useStateMachine, "useStateMachine");
|
|
95009
|
+
var Presence = /* @__PURE__ */ __name$11((props) => {
|
|
96400
95010
|
const { present, children } = props;
|
|
96401
95011
|
const presence = usePresence(present);
|
|
96402
95012
|
const child = typeof children === "function" ? children({ present: presence.isPresent }) : m.Children.only(children);
|
|
@@ -96445,7 +95055,7 @@ function usePresence(present) {
|
|
|
96445
95055
|
if (node) {
|
|
96446
95056
|
let timeoutId;
|
|
96447
95057
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
96448
|
-
const handleAnimationEnd = /* @__PURE__ */ __name$
|
|
95058
|
+
const handleAnimationEnd = /* @__PURE__ */ __name$11((event) => {
|
|
96449
95059
|
const isCurrentAnimation = getAnimationName(stylesRef.current).includes(CSS.escape(event.animationName));
|
|
96450
95060
|
if (event.target === node && isCurrentAnimation) {
|
|
96451
95061
|
send("ANIMATION_END");
|
|
@@ -96458,7 +95068,7 @@ function usePresence(present) {
|
|
|
96458
95068
|
}
|
|
96459
95069
|
}
|
|
96460
95070
|
}, "handleAnimationEnd");
|
|
96461
|
-
const handleAnimationStart = /* @__PURE__ */ __name$
|
|
95071
|
+
const handleAnimationStart = /* @__PURE__ */ __name$11((event) => {
|
|
96462
95072
|
if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
96463
95073
|
}, "handleAnimationStart");
|
|
96464
95074
|
node.addEventListener("animationstart", handleAnimationStart);
|
|
@@ -96484,12 +95094,12 @@ function usePresence(present) {
|
|
|
96484
95094
|
}, [])
|
|
96485
95095
|
};
|
|
96486
95096
|
}
|
|
96487
|
-
__name$
|
|
95097
|
+
__name$11(usePresence, "usePresence");
|
|
96488
95098
|
function setRef(ref, value) {
|
|
96489
95099
|
if (typeof ref === "function") return ref(value);
|
|
96490
95100
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
96491
95101
|
}
|
|
96492
|
-
__name$
|
|
95102
|
+
__name$11(setRef, "setRef");
|
|
96493
95103
|
function useStableComposedRefs(...refs) {
|
|
96494
95104
|
const refsRef = m.useRef(refs);
|
|
96495
95105
|
refsRef.current = refs;
|
|
@@ -96510,11 +95120,11 @@ function useStableComposedRefs(...refs) {
|
|
|
96510
95120
|
};
|
|
96511
95121
|
}, []);
|
|
96512
95122
|
}
|
|
96513
|
-
__name$
|
|
95123
|
+
__name$11(useStableComposedRefs, "useStableComposedRefs");
|
|
96514
95124
|
function getAnimationName(styles) {
|
|
96515
95125
|
return styles?.animationName || "none";
|
|
96516
95126
|
}
|
|
96517
|
-
__name$
|
|
95127
|
+
__name$11(getAnimationName, "getAnimationName");
|
|
96518
95128
|
function getElementRef(element) {
|
|
96519
95129
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
96520
95130
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -96524,11 +95134,11 @@ function getElementRef(element) {
|
|
|
96524
95134
|
if (mayWarn) return element.props.ref;
|
|
96525
95135
|
return element.props.ref || element.ref;
|
|
96526
95136
|
}
|
|
96527
|
-
__name$
|
|
95137
|
+
__name$11(getElementRef, "getElementRef");
|
|
96528
95138
|
//#endregion
|
|
96529
95139
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
96530
|
-
var __defProp$
|
|
96531
|
-
var __name$
|
|
95140
|
+
var __defProp$10 = Object.defineProperty;
|
|
95141
|
+
var __name$10 = (target, value) => __defProp$10(target, "name", {
|
|
96532
95142
|
value,
|
|
96533
95143
|
configurable: true
|
|
96534
95144
|
});
|
|
@@ -96547,16 +95157,16 @@ function useEffectEvent$1(callback) {
|
|
|
96547
95157
|
});
|
|
96548
95158
|
return m.useMemo(() => ((...args) => ref.current?.(...args)), []);
|
|
96549
95159
|
}
|
|
96550
|
-
__name$
|
|
95160
|
+
__name$10(useEffectEvent$1, "useEffectEvent");
|
|
96551
95161
|
//#endregion
|
|
96552
95162
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
96553
|
-
var __defProp$
|
|
96554
|
-
var __name$
|
|
95163
|
+
var __defProp$9 = Object.defineProperty;
|
|
95164
|
+
var __name$9 = (target, value) => __defProp$9(target, "name", {
|
|
96555
95165
|
value,
|
|
96556
95166
|
configurable: true
|
|
96557
95167
|
});
|
|
96558
95168
|
var useInsertionEffect$1 = m[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
96559
|
-
function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$
|
|
95169
|
+
function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$9(() => {}, "onChange"), caller }) {
|
|
96560
95170
|
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
|
96561
95171
|
defaultProp,
|
|
96562
95172
|
onChange
|
|
@@ -96574,7 +95184,7 @@ function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __
|
|
|
96574
95184
|
onChangeRef
|
|
96575
95185
|
])];
|
|
96576
95186
|
}
|
|
96577
|
-
__name$
|
|
95187
|
+
__name$9(useControllableState, "useControllableState");
|
|
96578
95188
|
function useUncontrolledState({ defaultProp, onChange }) {
|
|
96579
95189
|
const [value, setValue] = m.useState(defaultProp);
|
|
96580
95190
|
const prevValueRef = m.useRef(value);
|
|
@@ -96594,11 +95204,11 @@ function useUncontrolledState({ defaultProp, onChange }) {
|
|
|
96594
95204
|
onChangeRef
|
|
96595
95205
|
];
|
|
96596
95206
|
}
|
|
96597
|
-
__name$
|
|
95207
|
+
__name$9(useUncontrolledState, "useUncontrolledState");
|
|
96598
95208
|
function isFunction$1(value) {
|
|
96599
95209
|
return typeof value === "function";
|
|
96600
95210
|
}
|
|
96601
|
-
__name$
|
|
95211
|
+
__name$9(isFunction$1, "isFunction");
|
|
96602
95212
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
96603
95213
|
function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
96604
95214
|
const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;
|
|
@@ -96649,11 +95259,11 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
|
96649
95259
|
]);
|
|
96650
95260
|
return [state, dispatch];
|
|
96651
95261
|
}
|
|
96652
|
-
__name$
|
|
95262
|
+
__name$9(useControllableStateReducer, "useControllableStateReducer");
|
|
96653
95263
|
//#endregion
|
|
96654
95264
|
//#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.11_@types+react-dom@19.2.4_@types+react@19.2.18__@t_2cce8cec3540600cb30cf9ee478f6dd9/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
96655
|
-
var __defProp$
|
|
96656
|
-
var __name$
|
|
95265
|
+
var __defProp$8 = Object.defineProperty;
|
|
95266
|
+
var __name$8 = (target, value) => __defProp$8(target, "name", {
|
|
96657
95267
|
value,
|
|
96658
95268
|
configurable: true
|
|
96659
95269
|
});
|
|
@@ -96669,7 +95279,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
96669
95279
|
whiteSpace: "nowrap",
|
|
96670
95280
|
wordWrap: "normal"
|
|
96671
95281
|
});
|
|
96672
|
-
var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95282
|
+
var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$8(function VisuallyHidden2(props, forwardedRef) {
|
|
96673
95283
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
96674
95284
|
...props,
|
|
96675
95285
|
ref: forwardedRef,
|
|
@@ -96681,8 +95291,8 @@ var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$10(function Vis
|
|
|
96681
95291
|
}, "VisuallyHidden"));
|
|
96682
95292
|
//#endregion
|
|
96683
95293
|
//#region ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.16_@types+react-dom@19.2.4_@types+react@19.2.18__@types+rea_7f45cb25ab1b09815e2bf3469d23d568/node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
96684
|
-
var __defProp$
|
|
96685
|
-
var __name$
|
|
95294
|
+
var __defProp$7 = Object.defineProperty;
|
|
95295
|
+
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
96686
95296
|
value,
|
|
96687
95297
|
configurable: true
|
|
96688
95298
|
});
|
|
@@ -96692,7 +95302,7 @@ var PROVIDER_NAME = "TooltipProvider";
|
|
|
96692
95302
|
var DEFAULT_DELAY_DURATION = 700;
|
|
96693
95303
|
var TOOLTIP_OPEN = "tooltip.open";
|
|
96694
95304
|
var [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);
|
|
96695
|
-
var TooltipProvider = /* @__PURE__ */ __name$
|
|
95305
|
+
var TooltipProvider = /* @__PURE__ */ __name$7((props) => {
|
|
96696
95306
|
const { __scopeTooltip, delayDuration = DEFAULT_DELAY_DURATION, skipDelayDuration = 300, disableHoverableContent = false, children } = props;
|
|
96697
95307
|
const isOpenDelayedRef = m.useRef(true);
|
|
96698
95308
|
const isPointerInTransitRef = m.useRef(false);
|
|
@@ -96725,7 +95335,7 @@ var TooltipProvider = /* @__PURE__ */ __name$9((props) => {
|
|
|
96725
95335
|
}, "TooltipProvider");
|
|
96726
95336
|
var TOOLTIP_NAME = "Tooltip";
|
|
96727
95337
|
var [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);
|
|
96728
|
-
var Tooltip = /* @__PURE__ */ __name$
|
|
95338
|
+
var Tooltip = /* @__PURE__ */ __name$7((props) => {
|
|
96729
95339
|
const { __scopeTooltip, children, open: openProp, defaultOpen, onOpenChange, disableHoverableContent: disableHoverableContentProp, delayDuration: delayDurationProp } = props;
|
|
96730
95340
|
const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
|
|
96731
95341
|
const popperScope = usePopperScope$1(__scopeTooltip);
|
|
@@ -96739,7 +95349,7 @@ var Tooltip = /* @__PURE__ */ __name$9((props) => {
|
|
|
96739
95349
|
const [open, setOpen] = useControllableState({
|
|
96740
95350
|
prop: openProp,
|
|
96741
95351
|
defaultProp: defaultOpen ?? false,
|
|
96742
|
-
onChange: /* @__PURE__ */ __name$
|
|
95352
|
+
onChange: /* @__PURE__ */ __name$7((open2) => {
|
|
96743
95353
|
if (open2) {
|
|
96744
95354
|
providerContext.onOpen();
|
|
96745
95355
|
document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN));
|
|
@@ -96812,7 +95422,7 @@ var Tooltip = /* @__PURE__ */ __name$9((props) => {
|
|
|
96812
95422
|
});
|
|
96813
95423
|
}, "Tooltip");
|
|
96814
95424
|
var TRIGGER_NAME$2 = "TooltipTrigger";
|
|
96815
|
-
var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95425
|
+
var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipTrigger2(props, forwardedRef) {
|
|
96816
95426
|
const { __scopeTooltip, ...triggerProps } = props;
|
|
96817
95427
|
const context = useTooltipContext(TRIGGER_NAME$2, __scopeTooltip);
|
|
96818
95428
|
const providerContext = useTooltipProviderContext(TRIGGER_NAME$2, __scopeTooltip);
|
|
@@ -96858,7 +95468,7 @@ var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(funct
|
|
|
96858
95468
|
}, "TooltipTrigger"));
|
|
96859
95469
|
var PORTAL_NAME$2 = "TooltipPortal";
|
|
96860
95470
|
var [PortalProvider$2, usePortalContext$2] = createTooltipContext(PORTAL_NAME$2, { forceMount: void 0 });
|
|
96861
|
-
var TooltipPortal = /* @__PURE__ */ __name$
|
|
95471
|
+
var TooltipPortal = /* @__PURE__ */ __name$7((props) => {
|
|
96862
95472
|
const { __scopeTooltip, forceMount, children, container } = props;
|
|
96863
95473
|
const context = useTooltipContext(PORTAL_NAME$2, __scopeTooltip);
|
|
96864
95474
|
return /* @__PURE__ */ jsx(PortalProvider$2, {
|
|
@@ -96875,7 +95485,7 @@ var TooltipPortal = /* @__PURE__ */ __name$9((props) => {
|
|
|
96875
95485
|
});
|
|
96876
95486
|
}, "TooltipPortal");
|
|
96877
95487
|
var CONTENT_NAME$3 = "TooltipContent";
|
|
96878
|
-
var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95488
|
+
var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContent2(props, forwardedRef) {
|
|
96879
95489
|
const portalContext = usePortalContext$2(CONTENT_NAME$3, props.__scopeTooltip);
|
|
96880
95490
|
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
96881
95491
|
const context = useTooltipContext(CONTENT_NAME$3, props.__scopeTooltip);
|
|
@@ -96892,7 +95502,7 @@ var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(funct
|
|
|
96892
95502
|
})
|
|
96893
95503
|
});
|
|
96894
95504
|
}, "TooltipContent"));
|
|
96895
|
-
var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95505
|
+
var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContentHoverable2(props, forwardedRef) {
|
|
96896
95506
|
const context = useTooltipContext(CONTENT_NAME$3, props.__scopeTooltip);
|
|
96897
95507
|
const providerContext = useTooltipProviderContext(CONTENT_NAME$3, props.__scopeTooltip);
|
|
96898
95508
|
const ref = m.useRef(null);
|
|
@@ -96922,8 +95532,8 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
|
|
|
96922
95532
|
}, [handleRemoveGraceArea]);
|
|
96923
95533
|
m.useEffect(() => {
|
|
96924
95534
|
if (trigger && content) {
|
|
96925
|
-
const handleTriggerLeave = /* @__PURE__ */ __name$
|
|
96926
|
-
const handleContentLeave = /* @__PURE__ */ __name$
|
|
95535
|
+
const handleTriggerLeave = /* @__PURE__ */ __name$7((event) => handleCreateGraceArea(event, content), "handleTriggerLeave");
|
|
95536
|
+
const handleContentLeave = /* @__PURE__ */ __name$7((event) => handleCreateGraceArea(event, trigger), "handleContentLeave");
|
|
96927
95537
|
trigger.addEventListener("pointerleave", handleTriggerLeave);
|
|
96928
95538
|
content.addEventListener("pointerleave", handleContentLeave);
|
|
96929
95539
|
return () => {
|
|
@@ -96939,7 +95549,7 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
|
|
|
96939
95549
|
]);
|
|
96940
95550
|
m.useEffect(() => {
|
|
96941
95551
|
if (pointerGraceArea) {
|
|
96942
|
-
const handleTrackPointerGrace = /* @__PURE__ */ __name$
|
|
95552
|
+
const handleTrackPointerGrace = /* @__PURE__ */ __name$7((event) => {
|
|
96943
95553
|
const target = event.target;
|
|
96944
95554
|
const pointerPosition = {
|
|
96945
95555
|
x: event.clientX,
|
|
@@ -96969,7 +95579,7 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
|
|
|
96969
95579
|
});
|
|
96970
95580
|
}, "TooltipContentHoverable"));
|
|
96971
95581
|
var Slottable = /* @__PURE__ */ createSlottable("TooltipContent");
|
|
96972
|
-
var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95582
|
+
var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContentImpl2(props, forwardedRef) {
|
|
96973
95583
|
const { __scopeTooltip, children, "aria-label": ariaLabel, id: idProp, onEscapeKeyDown, onPointerDownOutside, ...contentProps } = props;
|
|
96974
95584
|
const context = useTooltipContext(CONTENT_NAME$3, __scopeTooltip);
|
|
96975
95585
|
const popperScope = usePopperScope$1(__scopeTooltip);
|
|
@@ -96980,7 +95590,7 @@ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(f
|
|
|
96980
95590
|
}, [onClose]);
|
|
96981
95591
|
m.useEffect(() => {
|
|
96982
95592
|
if (context.trigger) {
|
|
96983
|
-
const handleScroll = /* @__PURE__ */ __name$
|
|
95593
|
+
const handleScroll = /* @__PURE__ */ __name$7((event) => {
|
|
96984
95594
|
if (event.target instanceof Node && event.target.contains(context.trigger)) onClose();
|
|
96985
95595
|
}, "handleScroll");
|
|
96986
95596
|
window.addEventListener("scroll", handleScroll, { capture: true });
|
|
@@ -97024,7 +95634,7 @@ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(f
|
|
|
97024
95634
|
})
|
|
97025
95635
|
});
|
|
97026
95636
|
}, "TooltipContentImpl"));
|
|
97027
|
-
var TooltipArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95637
|
+
var TooltipArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipArrow2(props, forwardedRef) {
|
|
97028
95638
|
const { __scopeTooltip, ...arrowProps } = props;
|
|
97029
95639
|
const popperScope = usePopperScope$1(__scopeTooltip);
|
|
97030
95640
|
return /* @__PURE__ */ jsx(Arrow, {
|
|
@@ -97046,7 +95656,7 @@ function getExitSideFromRect(point, rect) {
|
|
|
97046
95656
|
default: throw new Error("unreachable");
|
|
97047
95657
|
}
|
|
97048
95658
|
}
|
|
97049
|
-
__name$
|
|
95659
|
+
__name$7(getExitSideFromRect, "getExitSideFromRect");
|
|
97050
95660
|
function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
97051
95661
|
const paddedExitPoints = [];
|
|
97052
95662
|
switch (exitSide) {
|
|
@@ -97087,7 +95697,7 @@ function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
|
97087
95697
|
}
|
|
97088
95698
|
return paddedExitPoints;
|
|
97089
95699
|
}
|
|
97090
|
-
__name$
|
|
95700
|
+
__name$7(getPaddedExitPoints, "getPaddedExitPoints");
|
|
97091
95701
|
function getPointsFromRect(rect) {
|
|
97092
95702
|
const { top, right, bottom, left } = rect;
|
|
97093
95703
|
return [
|
|
@@ -97109,7 +95719,7 @@ function getPointsFromRect(rect) {
|
|
|
97109
95719
|
}
|
|
97110
95720
|
];
|
|
97111
95721
|
}
|
|
97112
|
-
__name$
|
|
95722
|
+
__name$7(getPointsFromRect, "getPointsFromRect");
|
|
97113
95723
|
function isPointInPolygon$1(point, polygon) {
|
|
97114
95724
|
const { x, y } = point;
|
|
97115
95725
|
let inside = false;
|
|
@@ -97124,7 +95734,7 @@ function isPointInPolygon$1(point, polygon) {
|
|
|
97124
95734
|
}
|
|
97125
95735
|
return inside;
|
|
97126
95736
|
}
|
|
97127
|
-
__name$
|
|
95737
|
+
__name$7(isPointInPolygon$1, "isPointInPolygon");
|
|
97128
95738
|
function getHull(points) {
|
|
97129
95739
|
const newPoints = points.slice();
|
|
97130
95740
|
newPoints.sort((a, b) => {
|
|
@@ -97136,7 +95746,7 @@ function getHull(points) {
|
|
|
97136
95746
|
});
|
|
97137
95747
|
return getHullPresorted(newPoints);
|
|
97138
95748
|
}
|
|
97139
|
-
__name$
|
|
95749
|
+
__name$7(getHull, "getHull");
|
|
97140
95750
|
function getHullPresorted(points) {
|
|
97141
95751
|
if (points.length <= 1) return points.slice();
|
|
97142
95752
|
const upperHull = [];
|
|
@@ -97166,7 +95776,7 @@ function getHullPresorted(points) {
|
|
|
97166
95776
|
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;
|
|
97167
95777
|
else return upperHull.concat(lowerHull);
|
|
97168
95778
|
}
|
|
97169
|
-
__name$
|
|
95779
|
+
__name$7(getHullPresorted, "getHullPresorted");
|
|
97170
95780
|
var Provider$2 = TooltipProvider;
|
|
97171
95781
|
var Root3$1 = Tooltip;
|
|
97172
95782
|
var Trigger$1 = TooltipTrigger;
|
|
@@ -97989,690 +96599,6 @@ var verificationModalHeaderStyle = "_1c7tq6rm _1c7tq6rl _1irym63l9 _1irym63jr _1
|
|
|
97989
96599
|
var verificationModalCloseStyle = "_1c7tq6ro _1c7tq6rn _1irym63mn _1irym636r _1irym63n5";
|
|
97990
96600
|
var verificationModalFrameStyle = "_1c7tq6rp";
|
|
97991
96601
|
//#endregion
|
|
97992
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.16_@types+react-dom@19.2.4_@types+react@19.2.18__@types_3b4e29b84c639c7da7ed6c275ef9f34b/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
97993
|
-
var __defProp$8 = Object.defineProperty;
|
|
97994
|
-
var __name$8 = (target, value) => __defProp$8(target, "name", {
|
|
97995
|
-
value,
|
|
97996
|
-
configurable: true
|
|
97997
|
-
});
|
|
97998
|
-
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
97999
|
-
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
98000
|
-
var EVENT_OPTIONS$1 = {
|
|
98001
|
-
bubbles: false,
|
|
98002
|
-
cancelable: true
|
|
98003
|
-
};
|
|
98004
|
-
var FocusScope = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$8(function FocusScope2(props, forwardedRef) {
|
|
98005
|
-
const { loop = false, trapped = false, onMountAutoFocus: onMountAutoFocusProp, onUnmountAutoFocus: onUnmountAutoFocusProp, ...scopeProps } = props;
|
|
98006
|
-
const [container, setContainer] = m.useState(null);
|
|
98007
|
-
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
|
|
98008
|
-
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
|
|
98009
|
-
const lastFocusedElementRef = m.useRef(null);
|
|
98010
|
-
const composedRefs = useComposedRefs(forwardedRef, setContainer);
|
|
98011
|
-
const focusScope = m.useRef({
|
|
98012
|
-
paused: false,
|
|
98013
|
-
pause() {
|
|
98014
|
-
this.paused = true;
|
|
98015
|
-
},
|
|
98016
|
-
resume() {
|
|
98017
|
-
this.paused = false;
|
|
98018
|
-
}
|
|
98019
|
-
}).current;
|
|
98020
|
-
m.useEffect(() => {
|
|
98021
|
-
if (trapped) {
|
|
98022
|
-
let handleFocusIn2 = function(event) {
|
|
98023
|
-
if (focusScope.paused || !container) return;
|
|
98024
|
-
const target = event.target;
|
|
98025
|
-
if (container.contains(target)) lastFocusedElementRef.current = target;
|
|
98026
|
-
else focus(lastFocusedElementRef.current, { select: true });
|
|
98027
|
-
}, handleFocusOut2 = function(event) {
|
|
98028
|
-
if (focusScope.paused || !container) return;
|
|
98029
|
-
const relatedTarget = event.relatedTarget;
|
|
98030
|
-
if (relatedTarget === null) return;
|
|
98031
|
-
if (!container.contains(relatedTarget)) focus(lastFocusedElementRef.current, { select: true });
|
|
98032
|
-
}, handleMutations2 = function(mutations) {
|
|
98033
|
-
if (document.activeElement !== document.body) return;
|
|
98034
|
-
for (const mutation of mutations) if (mutation.removedNodes.length > 0) focus(container);
|
|
98035
|
-
};
|
|
98036
|
-
__name$8(handleFocusIn2, "handleFocusIn");
|
|
98037
|
-
__name$8(handleFocusOut2, "handleFocusOut");
|
|
98038
|
-
__name$8(handleMutations2, "handleMutations");
|
|
98039
|
-
document.addEventListener("focusin", handleFocusIn2);
|
|
98040
|
-
document.addEventListener("focusout", handleFocusOut2);
|
|
98041
|
-
const mutationObserver = new MutationObserver(handleMutations2);
|
|
98042
|
-
if (container) mutationObserver.observe(container, {
|
|
98043
|
-
childList: true,
|
|
98044
|
-
subtree: true
|
|
98045
|
-
});
|
|
98046
|
-
return () => {
|
|
98047
|
-
document.removeEventListener("focusin", handleFocusIn2);
|
|
98048
|
-
document.removeEventListener("focusout", handleFocusOut2);
|
|
98049
|
-
mutationObserver.disconnect();
|
|
98050
|
-
};
|
|
98051
|
-
}
|
|
98052
|
-
}, [
|
|
98053
|
-
trapped,
|
|
98054
|
-
container,
|
|
98055
|
-
focusScope.paused
|
|
98056
|
-
]);
|
|
98057
|
-
m.useEffect(() => {
|
|
98058
|
-
if (container) {
|
|
98059
|
-
focusScopesStack.add(focusScope);
|
|
98060
|
-
const previouslyFocusedElement = document.activeElement;
|
|
98061
|
-
if (!container.contains(previouslyFocusedElement)) {
|
|
98062
|
-
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS$1);
|
|
98063
|
-
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
98064
|
-
container.dispatchEvent(mountEvent);
|
|
98065
|
-
if (!mountEvent.defaultPrevented) {
|
|
98066
|
-
focusFirst$2(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
98067
|
-
if (document.activeElement === previouslyFocusedElement) focus(container);
|
|
98068
|
-
}
|
|
98069
|
-
}
|
|
98070
|
-
return () => {
|
|
98071
|
-
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
98072
|
-
setTimeout(() => {
|
|
98073
|
-
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS$1);
|
|
98074
|
-
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
98075
|
-
container.dispatchEvent(unmountEvent);
|
|
98076
|
-
if (!unmountEvent.defaultPrevented) focus(previouslyFocusedElement ?? document.body, { select: true });
|
|
98077
|
-
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
98078
|
-
focusScopesStack.remove(focusScope);
|
|
98079
|
-
}, 0);
|
|
98080
|
-
};
|
|
98081
|
-
}
|
|
98082
|
-
}, [
|
|
98083
|
-
container,
|
|
98084
|
-
onMountAutoFocus,
|
|
98085
|
-
onUnmountAutoFocus,
|
|
98086
|
-
focusScope
|
|
98087
|
-
]);
|
|
98088
|
-
const handleKeyDown = m.useCallback((event) => {
|
|
98089
|
-
if (!loop && !trapped) return;
|
|
98090
|
-
if (focusScope.paused) return;
|
|
98091
|
-
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
98092
|
-
const focusedElement = document.activeElement;
|
|
98093
|
-
if (isTabKey && focusedElement) {
|
|
98094
|
-
const container2 = event.currentTarget;
|
|
98095
|
-
const [first, last] = getTabbableEdges(container2);
|
|
98096
|
-
if (!(first && last)) {
|
|
98097
|
-
if (focusedElement === container2) event.preventDefault();
|
|
98098
|
-
} else if (!event.shiftKey && focusedElement === last) {
|
|
98099
|
-
event.preventDefault();
|
|
98100
|
-
if (loop) focus(first, { select: true });
|
|
98101
|
-
} else if (event.shiftKey && focusedElement === first) {
|
|
98102
|
-
event.preventDefault();
|
|
98103
|
-
if (loop) focus(last, { select: true });
|
|
98104
|
-
}
|
|
98105
|
-
}
|
|
98106
|
-
}, [
|
|
98107
|
-
loop,
|
|
98108
|
-
trapped,
|
|
98109
|
-
focusScope.paused
|
|
98110
|
-
]);
|
|
98111
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
98112
|
-
tabIndex: -1,
|
|
98113
|
-
...scopeProps,
|
|
98114
|
-
ref: composedRefs,
|
|
98115
|
-
onKeyDown: handleKeyDown
|
|
98116
|
-
});
|
|
98117
|
-
}, "FocusScope"));
|
|
98118
|
-
function focusFirst$2(candidates, { select = false } = {}) {
|
|
98119
|
-
const previouslyFocusedElement = document.activeElement;
|
|
98120
|
-
for (const candidate of candidates) {
|
|
98121
|
-
focus(candidate, { select });
|
|
98122
|
-
if (document.activeElement !== previouslyFocusedElement) return;
|
|
98123
|
-
}
|
|
98124
|
-
}
|
|
98125
|
-
__name$8(focusFirst$2, "focusFirst");
|
|
98126
|
-
function getTabbableEdges(container) {
|
|
98127
|
-
const candidates = getTabbableCandidates(container);
|
|
98128
|
-
return [findVisible(candidates, container), findVisible(candidates.reverse(), container)];
|
|
98129
|
-
}
|
|
98130
|
-
__name$8(getTabbableEdges, "getTabbableEdges");
|
|
98131
|
-
function getTabbableCandidates(container) {
|
|
98132
|
-
const nodes = [];
|
|
98133
|
-
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ __name$8((node) => {
|
|
98134
|
-
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
98135
|
-
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
98136
|
-
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
98137
|
-
}, "acceptNode") });
|
|
98138
|
-
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
98139
|
-
return nodes;
|
|
98140
|
-
}
|
|
98141
|
-
__name$8(getTabbableCandidates, "getTabbableCandidates");
|
|
98142
|
-
function findVisible(elements, container) {
|
|
98143
|
-
const canUseCheckVisibility = typeof container.checkVisibility === "function" && container.checkVisibility({ checkVisibilityCSS: true });
|
|
98144
|
-
for (const element of elements) if (!(canUseCheckVisibility ? !element.checkVisibility({ checkVisibilityCSS: true }) : isHidden(element, { upTo: container }))) return element;
|
|
98145
|
-
}
|
|
98146
|
-
__name$8(findVisible, "findVisible");
|
|
98147
|
-
function isHidden(node, { upTo }) {
|
|
98148
|
-
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
98149
|
-
while (node) {
|
|
98150
|
-
if (upTo !== void 0 && node === upTo) return false;
|
|
98151
|
-
if (getComputedStyle(node).display === "none") return true;
|
|
98152
|
-
node = node.parentElement;
|
|
98153
|
-
}
|
|
98154
|
-
return false;
|
|
98155
|
-
}
|
|
98156
|
-
__name$8(isHidden, "isHidden");
|
|
98157
|
-
function isSelectableInput(element) {
|
|
98158
|
-
return element instanceof HTMLInputElement && "select" in element;
|
|
98159
|
-
}
|
|
98160
|
-
__name$8(isSelectableInput, "isSelectableInput");
|
|
98161
|
-
function focus(element, { select = false } = {}) {
|
|
98162
|
-
if (element && element.focus) {
|
|
98163
|
-
const previouslyFocusedElement = document.activeElement;
|
|
98164
|
-
element.focus({ preventScroll: true });
|
|
98165
|
-
if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
|
|
98166
|
-
}
|
|
98167
|
-
}
|
|
98168
|
-
__name$8(focus, "focus");
|
|
98169
|
-
var focusScopesStack = createFocusScopesStack();
|
|
98170
|
-
function createFocusScopesStack() {
|
|
98171
|
-
let stack = [];
|
|
98172
|
-
return {
|
|
98173
|
-
add(focusScope) {
|
|
98174
|
-
const activeFocusScope = stack[0];
|
|
98175
|
-
if (focusScope !== activeFocusScope) activeFocusScope?.pause();
|
|
98176
|
-
stack = arrayRemove(stack, focusScope);
|
|
98177
|
-
stack.unshift(focusScope);
|
|
98178
|
-
},
|
|
98179
|
-
remove(focusScope) {
|
|
98180
|
-
stack = arrayRemove(stack, focusScope);
|
|
98181
|
-
stack[0]?.resume();
|
|
98182
|
-
}
|
|
98183
|
-
};
|
|
98184
|
-
}
|
|
98185
|
-
__name$8(createFocusScopesStack, "createFocusScopesStack");
|
|
98186
|
-
function arrayRemove(array, item) {
|
|
98187
|
-
const updatedArray = [...array];
|
|
98188
|
-
const index = updatedArray.indexOf(item);
|
|
98189
|
-
if (index !== -1) updatedArray.splice(index, 1);
|
|
98190
|
-
return updatedArray;
|
|
98191
|
-
}
|
|
98192
|
-
__name$8(arrayRemove, "arrayRemove");
|
|
98193
|
-
function removeLinks(items) {
|
|
98194
|
-
return items.filter((item) => item.tagName !== "A");
|
|
98195
|
-
}
|
|
98196
|
-
__name$8(removeLinks, "removeLinks");
|
|
98197
|
-
//#endregion
|
|
98198
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.6_@types+react@19.2.18_react@19.2.8/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
98199
|
-
var __defProp$7 = Object.defineProperty;
|
|
98200
|
-
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
98201
|
-
value,
|
|
98202
|
-
configurable: true
|
|
98203
|
-
});
|
|
98204
|
-
var count = 0;
|
|
98205
|
-
var guards = null;
|
|
98206
|
-
function FocusGuards(props) {
|
|
98207
|
-
useFocusGuards();
|
|
98208
|
-
return props.children;
|
|
98209
|
-
}
|
|
98210
|
-
__name$7(FocusGuards, "FocusGuards");
|
|
98211
|
-
function useFocusGuards() {
|
|
98212
|
-
m.useEffect(() => {
|
|
98213
|
-
if (!guards) guards = {
|
|
98214
|
-
start: createFocusGuard(),
|
|
98215
|
-
end: createFocusGuard()
|
|
98216
|
-
};
|
|
98217
|
-
const { start, end } = guards;
|
|
98218
|
-
if (document.body.firstElementChild !== start) document.body.insertAdjacentElement("afterbegin", start);
|
|
98219
|
-
if (document.body.lastElementChild !== end) document.body.insertAdjacentElement("beforeend", end);
|
|
98220
|
-
count++;
|
|
98221
|
-
return () => {
|
|
98222
|
-
if (count === 1) {
|
|
98223
|
-
guards?.start.remove();
|
|
98224
|
-
guards?.end.remove();
|
|
98225
|
-
guards = null;
|
|
98226
|
-
}
|
|
98227
|
-
count = Math.max(0, count - 1);
|
|
98228
|
-
};
|
|
98229
|
-
}, []);
|
|
98230
|
-
}
|
|
98231
|
-
__name$7(useFocusGuards, "useFocusGuards");
|
|
98232
|
-
function createFocusGuard() {
|
|
98233
|
-
const element = document.createElement("span");
|
|
98234
|
-
element.setAttribute("data-radix-focus-guard", "");
|
|
98235
|
-
element.tabIndex = 0;
|
|
98236
|
-
element.style.outline = "none";
|
|
98237
|
-
element.style.opacity = "0";
|
|
98238
|
-
element.style.position = "fixed";
|
|
98239
|
-
element.style.pointerEvents = "none";
|
|
98240
|
-
return element;
|
|
98241
|
-
}
|
|
98242
|
-
__name$7(createFocusGuard, "createFocusGuard");
|
|
98243
|
-
//#endregion
|
|
98244
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
98245
|
-
var effectCar = createSidecarMedium();
|
|
98246
|
-
//#endregion
|
|
98247
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/UI.js
|
|
98248
|
-
init_tslib_es6();
|
|
98249
|
-
var nothing = function() {};
|
|
98250
|
-
/**
|
|
98251
|
-
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
98252
|
-
*/
|
|
98253
|
-
var RemoveScroll = m.forwardRef(function(props, parentRef) {
|
|
98254
|
-
var ref = m.useRef(null);
|
|
98255
|
-
var _a = m.useState({
|
|
98256
|
-
onScrollCapture: nothing,
|
|
98257
|
-
onWheelCapture: nothing,
|
|
98258
|
-
onTouchMoveCapture: nothing
|
|
98259
|
-
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
98260
|
-
var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noRelative = props.noRelative, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? "div" : _b, gapMode = props.gapMode, rest = __rest(props, [
|
|
98261
|
-
"forwardProps",
|
|
98262
|
-
"children",
|
|
98263
|
-
"className",
|
|
98264
|
-
"removeScrollBar",
|
|
98265
|
-
"enabled",
|
|
98266
|
-
"shards",
|
|
98267
|
-
"sideCar",
|
|
98268
|
-
"noRelative",
|
|
98269
|
-
"noIsolation",
|
|
98270
|
-
"inert",
|
|
98271
|
-
"allowPinchZoom",
|
|
98272
|
-
"as",
|
|
98273
|
-
"gapMode"
|
|
98274
|
-
]);
|
|
98275
|
-
var SideCar = sideCar;
|
|
98276
|
-
var containerRef = useMergeRefs([ref, parentRef]);
|
|
98277
|
-
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
98278
|
-
return m.createElement(m.Fragment, null, enabled && m.createElement(SideCar, {
|
|
98279
|
-
sideCar: effectCar,
|
|
98280
|
-
removeScrollBar,
|
|
98281
|
-
shards,
|
|
98282
|
-
noRelative,
|
|
98283
|
-
noIsolation,
|
|
98284
|
-
inert,
|
|
98285
|
-
setCallbacks,
|
|
98286
|
-
allowPinchZoom: !!allowPinchZoom,
|
|
98287
|
-
lockRef: ref,
|
|
98288
|
-
gapMode
|
|
98289
|
-
}), forwardProps ? m.cloneElement(m.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : m.createElement(Container, __assign({}, containerProps, {
|
|
98290
|
-
className,
|
|
98291
|
-
ref: containerRef
|
|
98292
|
-
}), children));
|
|
98293
|
-
});
|
|
98294
|
-
RemoveScroll.defaultProps = {
|
|
98295
|
-
enabled: true,
|
|
98296
|
-
removeScrollBar: true,
|
|
98297
|
-
inert: false
|
|
98298
|
-
};
|
|
98299
|
-
RemoveScroll.classNames = {
|
|
98300
|
-
fullWidth: fullWidthClassName,
|
|
98301
|
-
zeroRight: zeroRightClassName
|
|
98302
|
-
};
|
|
98303
|
-
//#endregion
|
|
98304
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
98305
|
-
var passiveSupported = false;
|
|
98306
|
-
if (typeof window !== "undefined") try {
|
|
98307
|
-
var options = Object.defineProperty({}, "passive", { get: function() {
|
|
98308
|
-
passiveSupported = true;
|
|
98309
|
-
return true;
|
|
98310
|
-
} });
|
|
98311
|
-
window.addEventListener("test", options, options);
|
|
98312
|
-
window.removeEventListener("test", options, options);
|
|
98313
|
-
} catch (err) {
|
|
98314
|
-
passiveSupported = false;
|
|
98315
|
-
}
|
|
98316
|
-
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
98317
|
-
//#endregion
|
|
98318
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/handleScroll.js
|
|
98319
|
-
var alwaysContainsScroll = function(node) {
|
|
98320
|
-
return node.tagName === "TEXTAREA";
|
|
98321
|
-
};
|
|
98322
|
-
var elementCanBeScrolled = function(node, overflow) {
|
|
98323
|
-
if (!(node instanceof Element)) return false;
|
|
98324
|
-
var styles = window.getComputedStyle(node);
|
|
98325
|
-
return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === "visible");
|
|
98326
|
-
};
|
|
98327
|
-
var elementCouldBeVScrolled = function(node) {
|
|
98328
|
-
return elementCanBeScrolled(node, "overflowY");
|
|
98329
|
-
};
|
|
98330
|
-
var elementCouldBeHScrolled = function(node) {
|
|
98331
|
-
return elementCanBeScrolled(node, "overflowX");
|
|
98332
|
-
};
|
|
98333
|
-
var locationCouldBeScrolled = function(axis, node) {
|
|
98334
|
-
var ownerDocument = node.ownerDocument;
|
|
98335
|
-
var current = node;
|
|
98336
|
-
do {
|
|
98337
|
-
if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
|
|
98338
|
-
if (elementCouldBeScrolled(axis, current)) {
|
|
98339
|
-
var _a = getScrollVariables(axis, current);
|
|
98340
|
-
if (_a[1] > _a[2]) return true;
|
|
98341
|
-
}
|
|
98342
|
-
current = current.parentNode;
|
|
98343
|
-
} while (current && current !== ownerDocument.body);
|
|
98344
|
-
return false;
|
|
98345
|
-
};
|
|
98346
|
-
var getVScrollVariables = function(_a) {
|
|
98347
|
-
return [
|
|
98348
|
-
_a.scrollTop,
|
|
98349
|
-
_a.scrollHeight,
|
|
98350
|
-
_a.clientHeight
|
|
98351
|
-
];
|
|
98352
|
-
};
|
|
98353
|
-
var getHScrollVariables = function(_a) {
|
|
98354
|
-
return [
|
|
98355
|
-
_a.scrollLeft,
|
|
98356
|
-
_a.scrollWidth,
|
|
98357
|
-
_a.clientWidth
|
|
98358
|
-
];
|
|
98359
|
-
};
|
|
98360
|
-
var elementCouldBeScrolled = function(axis, node) {
|
|
98361
|
-
return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
|
|
98362
|
-
};
|
|
98363
|
-
var getScrollVariables = function(axis, node) {
|
|
98364
|
-
return axis === "v" ? getVScrollVariables(node) : getHScrollVariables(node);
|
|
98365
|
-
};
|
|
98366
|
-
var getDirectionFactor = function(axis, direction) {
|
|
98367
|
-
/**
|
|
98368
|
-
* If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
|
|
98369
|
-
* and then increasingly negative as you scroll towards the end of the content.
|
|
98370
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
|
|
98371
|
-
*/
|
|
98372
|
-
return axis === "h" && direction === "rtl" ? -1 : 1;
|
|
98373
|
-
};
|
|
98374
|
-
var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
98375
|
-
var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
|
|
98376
|
-
var delta = directionFactor * sourceDelta;
|
|
98377
|
-
var target = event.target;
|
|
98378
|
-
var targetInLock = endTarget.contains(target);
|
|
98379
|
-
var shouldCancelScroll = false;
|
|
98380
|
-
var isDeltaPositive = delta > 0;
|
|
98381
|
-
var availableScroll = 0;
|
|
98382
|
-
var availableScrollTop = 0;
|
|
98383
|
-
do {
|
|
98384
|
-
if (!target) break;
|
|
98385
|
-
var _a = getScrollVariables(axis, target), position = _a[0];
|
|
98386
|
-
var elementScroll = _a[1] - _a[2] - directionFactor * position;
|
|
98387
|
-
if (position || elementScroll) {
|
|
98388
|
-
if (elementCouldBeScrolled(axis, target)) {
|
|
98389
|
-
availableScroll += elementScroll;
|
|
98390
|
-
availableScrollTop += position;
|
|
98391
|
-
}
|
|
98392
|
-
}
|
|
98393
|
-
var parent_1 = target.parentNode;
|
|
98394
|
-
target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
|
|
98395
|
-
} while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
|
|
98396
|
-
if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
|
|
98397
|
-
else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
|
|
98398
|
-
return shouldCancelScroll;
|
|
98399
|
-
};
|
|
98400
|
-
//#endregion
|
|
98401
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
98402
|
-
init_tslib_es6();
|
|
98403
|
-
var getTouchXY = function(event) {
|
|
98404
|
-
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
98405
|
-
};
|
|
98406
|
-
var getDeltaXY = function(event) {
|
|
98407
|
-
return [event.deltaX, event.deltaY];
|
|
98408
|
-
};
|
|
98409
|
-
var extractRef = function(ref) {
|
|
98410
|
-
return ref && "current" in ref ? ref.current : ref;
|
|
98411
|
-
};
|
|
98412
|
-
var deltaCompare = function(x, y) {
|
|
98413
|
-
return x[0] === y[0] && x[1] === y[1];
|
|
98414
|
-
};
|
|
98415
|
-
var generateStyle = function(id) {
|
|
98416
|
-
return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
|
|
98417
|
-
};
|
|
98418
|
-
var idCounter$1 = 0;
|
|
98419
|
-
var lockStack = [];
|
|
98420
|
-
function RemoveScrollSideCar(props) {
|
|
98421
|
-
var shouldPreventQueue = m.useRef([]);
|
|
98422
|
-
var touchStartRef = m.useRef([0, 0]);
|
|
98423
|
-
var activeAxis = m.useRef();
|
|
98424
|
-
var id = m.useState(idCounter$1++)[0];
|
|
98425
|
-
var Style = m.useState(styleSingleton)[0];
|
|
98426
|
-
var lastProps = m.useRef(props);
|
|
98427
|
-
m.useEffect(function() {
|
|
98428
|
-
lastProps.current = props;
|
|
98429
|
-
}, [props]);
|
|
98430
|
-
m.useEffect(function() {
|
|
98431
|
-
if (props.inert) {
|
|
98432
|
-
document.body.classList.add("block-interactivity-".concat(id));
|
|
98433
|
-
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
98434
|
-
allow_1.forEach(function(el) {
|
|
98435
|
-
return el.classList.add("allow-interactivity-".concat(id));
|
|
98436
|
-
});
|
|
98437
|
-
return function() {
|
|
98438
|
-
document.body.classList.remove("block-interactivity-".concat(id));
|
|
98439
|
-
allow_1.forEach(function(el) {
|
|
98440
|
-
return el.classList.remove("allow-interactivity-".concat(id));
|
|
98441
|
-
});
|
|
98442
|
-
};
|
|
98443
|
-
}
|
|
98444
|
-
}, [
|
|
98445
|
-
props.inert,
|
|
98446
|
-
props.lockRef.current,
|
|
98447
|
-
props.shards
|
|
98448
|
-
]);
|
|
98449
|
-
var shouldCancelEvent = m.useCallback(function(event, parent) {
|
|
98450
|
-
if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
|
|
98451
|
-
var touch = getTouchXY(event);
|
|
98452
|
-
var touchStart = touchStartRef.current;
|
|
98453
|
-
var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
|
|
98454
|
-
var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
|
|
98455
|
-
var currentAxis;
|
|
98456
|
-
var target = event.target;
|
|
98457
|
-
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
|
|
98458
|
-
if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
|
|
98459
|
-
var selection = window.getSelection();
|
|
98460
|
-
var anchorNode = selection && selection.anchorNode;
|
|
98461
|
-
if (anchorNode ? anchorNode === target || anchorNode.contains(target) : false) return false;
|
|
98462
|
-
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
98463
|
-
if (!canBeScrolledInMainDirection) return true;
|
|
98464
|
-
if (canBeScrolledInMainDirection) currentAxis = moveDirection;
|
|
98465
|
-
else {
|
|
98466
|
-
currentAxis = moveDirection === "v" ? "h" : "v";
|
|
98467
|
-
canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
98468
|
-
}
|
|
98469
|
-
if (!canBeScrolledInMainDirection) return false;
|
|
98470
|
-
if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
|
|
98471
|
-
if (!currentAxis) return true;
|
|
98472
|
-
var cancelingAxis = activeAxis.current || currentAxis;
|
|
98473
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
98474
|
-
}, []);
|
|
98475
|
-
var shouldPrevent = m.useCallback(function(_event) {
|
|
98476
|
-
var event = _event;
|
|
98477
|
-
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) return;
|
|
98478
|
-
var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
|
|
98479
|
-
var sourceEvent = shouldPreventQueue.current.filter(function(e) {
|
|
98480
|
-
return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
|
|
98481
|
-
})[0];
|
|
98482
|
-
if (sourceEvent && sourceEvent.should) {
|
|
98483
|
-
if (event.cancelable) event.preventDefault();
|
|
98484
|
-
return;
|
|
98485
|
-
}
|
|
98486
|
-
if (!sourceEvent) {
|
|
98487
|
-
var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node) {
|
|
98488
|
-
return node.contains(event.target);
|
|
98489
|
-
});
|
|
98490
|
-
if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
|
|
98491
|
-
if (event.cancelable) event.preventDefault();
|
|
98492
|
-
}
|
|
98493
|
-
}
|
|
98494
|
-
}, []);
|
|
98495
|
-
var shouldCancel = m.useCallback(function(name, delta, target, should) {
|
|
98496
|
-
var event = {
|
|
98497
|
-
name,
|
|
98498
|
-
delta,
|
|
98499
|
-
target,
|
|
98500
|
-
should,
|
|
98501
|
-
shadowParent: getOutermostShadowParent(target)
|
|
98502
|
-
};
|
|
98503
|
-
shouldPreventQueue.current.push(event);
|
|
98504
|
-
setTimeout(function() {
|
|
98505
|
-
shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
|
|
98506
|
-
return e !== event;
|
|
98507
|
-
});
|
|
98508
|
-
}, 1);
|
|
98509
|
-
}, []);
|
|
98510
|
-
var scrollTouchStart = m.useCallback(function(event) {
|
|
98511
|
-
touchStartRef.current = getTouchXY(event);
|
|
98512
|
-
activeAxis.current = void 0;
|
|
98513
|
-
}, []);
|
|
98514
|
-
var scrollWheel = m.useCallback(function(event) {
|
|
98515
|
-
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
98516
|
-
}, []);
|
|
98517
|
-
var scrollTouchMove = m.useCallback(function(event) {
|
|
98518
|
-
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
98519
|
-
}, []);
|
|
98520
|
-
m.useEffect(function() {
|
|
98521
|
-
lockStack.push(Style);
|
|
98522
|
-
props.setCallbacks({
|
|
98523
|
-
onScrollCapture: scrollWheel,
|
|
98524
|
-
onWheelCapture: scrollWheel,
|
|
98525
|
-
onTouchMoveCapture: scrollTouchMove
|
|
98526
|
-
});
|
|
98527
|
-
document.addEventListener("wheel", shouldPrevent, nonPassive);
|
|
98528
|
-
document.addEventListener("touchmove", shouldPrevent, nonPassive);
|
|
98529
|
-
document.addEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
98530
|
-
return function() {
|
|
98531
|
-
lockStack = lockStack.filter(function(inst) {
|
|
98532
|
-
return inst !== Style;
|
|
98533
|
-
});
|
|
98534
|
-
document.removeEventListener("wheel", shouldPrevent, nonPassive);
|
|
98535
|
-
document.removeEventListener("touchmove", shouldPrevent, nonPassive);
|
|
98536
|
-
document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
98537
|
-
};
|
|
98538
|
-
}, []);
|
|
98539
|
-
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
98540
|
-
return m.createElement(m.Fragment, null, inert ? m.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? m.createElement(RemoveScrollBar, {
|
|
98541
|
-
noRelative: props.noRelative,
|
|
98542
|
-
gapMode: props.gapMode
|
|
98543
|
-
}) : null);
|
|
98544
|
-
}
|
|
98545
|
-
function getOutermostShadowParent(node) {
|
|
98546
|
-
var shadowParent = null;
|
|
98547
|
-
while (node !== null) {
|
|
98548
|
-
if (node instanceof ShadowRoot) {
|
|
98549
|
-
shadowParent = node.host;
|
|
98550
|
-
node = node.host;
|
|
98551
|
-
}
|
|
98552
|
-
node = node.parentNode;
|
|
98553
|
-
}
|
|
98554
|
-
return shadowParent;
|
|
98555
|
-
}
|
|
98556
|
-
//#endregion
|
|
98557
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
98558
|
-
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
98559
|
-
//#endregion
|
|
98560
|
-
//#region ../../node_modules/.pnpm/react-remove-scroll@2.7.2_@types+react@19.2.18_react@19.2.8/node_modules/react-remove-scroll/dist/es2015/Combination.js
|
|
98561
|
-
init_tslib_es6();
|
|
98562
|
-
var ReactRemoveScroll = m.forwardRef(function(props, ref) {
|
|
98563
|
-
return m.createElement(RemoveScroll, __assign({}, props, {
|
|
98564
|
-
ref,
|
|
98565
|
-
sideCar: sidecar_default
|
|
98566
|
-
}));
|
|
98567
|
-
});
|
|
98568
|
-
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
98569
|
-
//#endregion
|
|
98570
|
-
//#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
98571
|
-
var getDefaultParent = function(originalTarget) {
|
|
98572
|
-
if (typeof document === "undefined") return null;
|
|
98573
|
-
return (Array.isArray(originalTarget) ? originalTarget[0] : originalTarget).ownerDocument.body;
|
|
98574
|
-
};
|
|
98575
|
-
var counterMap = /* @__PURE__ */ new WeakMap();
|
|
98576
|
-
var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
98577
|
-
var markerMap = {};
|
|
98578
|
-
var lockCount = 0;
|
|
98579
|
-
var unwrapHost = function(node) {
|
|
98580
|
-
return node && (node.host || unwrapHost(node.parentNode));
|
|
98581
|
-
};
|
|
98582
|
-
var correctTargets = function(parent, targets) {
|
|
98583
|
-
return targets.map(function(target) {
|
|
98584
|
-
if (parent.contains(target)) return target;
|
|
98585
|
-
var correctedTarget = unwrapHost(target);
|
|
98586
|
-
if (correctedTarget && parent.contains(correctedTarget)) return correctedTarget;
|
|
98587
|
-
console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
|
|
98588
|
-
return null;
|
|
98589
|
-
}).filter(function(x) {
|
|
98590
|
-
return Boolean(x);
|
|
98591
|
-
});
|
|
98592
|
-
};
|
|
98593
|
-
/**
|
|
98594
|
-
* Marks everything except given node(or nodes) as aria-hidden
|
|
98595
|
-
* @param {Element | Element[]} originalTarget - elements to keep on the page
|
|
98596
|
-
* @param [parentNode] - top element, defaults to document.body
|
|
98597
|
-
* @param {String} [markerName] - a special attribute to mark every node
|
|
98598
|
-
* @param {String} [controlAttribute] - html Attribute to control
|
|
98599
|
-
* @return {Undo} undo command
|
|
98600
|
-
*/
|
|
98601
|
-
var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
|
|
98602
|
-
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
98603
|
-
if (!markerMap[markerName]) markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
98604
|
-
var markerCounter = markerMap[markerName];
|
|
98605
|
-
var hiddenNodes = [];
|
|
98606
|
-
var elementsToKeep = /* @__PURE__ */ new Set();
|
|
98607
|
-
var elementsToStop = new Set(targets);
|
|
98608
|
-
var keep = function(el) {
|
|
98609
|
-
if (!el || elementsToKeep.has(el)) return;
|
|
98610
|
-
elementsToKeep.add(el);
|
|
98611
|
-
keep(el.parentNode);
|
|
98612
|
-
};
|
|
98613
|
-
targets.forEach(keep);
|
|
98614
|
-
var deep = function(parent) {
|
|
98615
|
-
if (!parent || elementsToStop.has(parent)) return;
|
|
98616
|
-
Array.prototype.forEach.call(parent.children, function(node) {
|
|
98617
|
-
if (elementsToKeep.has(node)) deep(node);
|
|
98618
|
-
else try {
|
|
98619
|
-
var attr = node.getAttribute(controlAttribute);
|
|
98620
|
-
var alreadyHidden = attr !== null && attr !== "false";
|
|
98621
|
-
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
98622
|
-
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
98623
|
-
counterMap.set(node, counterValue);
|
|
98624
|
-
markerCounter.set(node, markerValue);
|
|
98625
|
-
hiddenNodes.push(node);
|
|
98626
|
-
if (counterValue === 1 && alreadyHidden) uncontrolledNodes.set(node, true);
|
|
98627
|
-
if (markerValue === 1) node.setAttribute(markerName, "true");
|
|
98628
|
-
if (!alreadyHidden) node.setAttribute(controlAttribute, "true");
|
|
98629
|
-
} catch (e) {
|
|
98630
|
-
console.error("aria-hidden: cannot operate on ", node, e);
|
|
98631
|
-
}
|
|
98632
|
-
});
|
|
98633
|
-
};
|
|
98634
|
-
deep(parentNode);
|
|
98635
|
-
elementsToKeep.clear();
|
|
98636
|
-
lockCount++;
|
|
98637
|
-
return function() {
|
|
98638
|
-
hiddenNodes.forEach(function(node) {
|
|
98639
|
-
var counterValue = counterMap.get(node) - 1;
|
|
98640
|
-
var markerValue = markerCounter.get(node) - 1;
|
|
98641
|
-
counterMap.set(node, counterValue);
|
|
98642
|
-
markerCounter.set(node, markerValue);
|
|
98643
|
-
if (!counterValue) {
|
|
98644
|
-
if (!uncontrolledNodes.has(node)) node.removeAttribute(controlAttribute);
|
|
98645
|
-
uncontrolledNodes.delete(node);
|
|
98646
|
-
}
|
|
98647
|
-
if (!markerValue) node.removeAttribute(markerName);
|
|
98648
|
-
});
|
|
98649
|
-
lockCount--;
|
|
98650
|
-
if (!lockCount) {
|
|
98651
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
98652
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
98653
|
-
uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
98654
|
-
markerMap = {};
|
|
98655
|
-
}
|
|
98656
|
-
};
|
|
98657
|
-
};
|
|
98658
|
-
/**
|
|
98659
|
-
* Marks everything except given node(or nodes) as aria-hidden
|
|
98660
|
-
* @param {Element | Element[]} originalTarget - elements to keep on the page
|
|
98661
|
-
* @param [parentNode] - top element, defaults to document.body
|
|
98662
|
-
* @param {String} [markerName] - a special attribute to mark every node
|
|
98663
|
-
* @return {Undo} undo command
|
|
98664
|
-
*/
|
|
98665
|
-
var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
98666
|
-
if (markerName === void 0) markerName = "data-aria-hidden";
|
|
98667
|
-
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
98668
|
-
var activeParentNode = parentNode || getDefaultParent(originalTarget);
|
|
98669
|
-
if (!activeParentNode) return function() {
|
|
98670
|
-
return null;
|
|
98671
|
-
};
|
|
98672
|
-
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
|
98673
|
-
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
98674
|
-
};
|
|
98675
|
-
//#endregion
|
|
98676
96602
|
//#region ../../node_modules/.pnpm/@radix-ui+react-dialog@1.1.23_@types+react-dom@19.2.4_@types+react@19.2.18__@types+reac_f43cda4f5f60c6fd8f384ced683c6d90/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
98677
96603
|
var __defProp$6 = Object.defineProperty;
|
|
98678
96604
|
var __name$6 = (target, value) => __defProp$6(target, "name", {
|
|
@@ -98764,7 +96690,7 @@ var DialogOverlayImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$6(fu
|
|
|
98764
96690
|
const { __scopeDialog, ...overlayProps } = props;
|
|
98765
96691
|
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
98766
96692
|
const composedRefs = useComposedRefs(forwardedRef, useDismissableLayerSurface());
|
|
98767
|
-
return /* @__PURE__ */ jsx(
|
|
96693
|
+
return /* @__PURE__ */ jsx(RemoveScroll, {
|
|
98768
96694
|
as: Slot$1,
|
|
98769
96695
|
allowPinchZoom: true,
|
|
98770
96696
|
shards: [context.contentRef],
|
|
@@ -103482,7 +101408,7 @@ var MenuContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$1(func
|
|
|
103482
101408
|
const pointerGraceIntentRef = m.useRef(null);
|
|
103483
101409
|
const pointerDirRef = m.useRef("right");
|
|
103484
101410
|
const lastPointerXRef = m.useRef(0);
|
|
103485
|
-
const ScrollLockWrapper = disableOutsideScroll ?
|
|
101411
|
+
const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : m.Fragment;
|
|
103486
101412
|
const scrollLockWrapperProps = disableOutsideScroll ? {
|
|
103487
101413
|
as: Slot,
|
|
103488
101414
|
allowPinchZoom: true
|