@stakekit/widget 0.0.283 → 0.0.285
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.css +1 -1
- package/dist/bundle/index.bundle.js +62 -65
- package/dist/package/index.package.css +61 -61
- package/dist/package/index.package.js +568 -2717
- package/dist/package/{xbull.module-C2cRKGsZ.js → xbull.module-C-UUZmRx.js} +238 -2
- package/dist/website/assets/{index-CdVZR9mf.css → index-CYwddl65.css} +1 -1
- package/dist/website/assets/index-Ct_QW1zs.js +560 -0
- package/dist/website/index.html +2 -2
- package/package.json +10 -4
- package/dist/package/tslib.es6-Bdhxqx7j.js +0 -258
- package/dist/website/assets/index-CaWDsm13.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.285";
|
|
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,
|
|
@@ -59146,7 +57971,7 @@ var initializeKit = tryPromise({
|
|
|
59146
57971
|
import("./albedo.module-CRVsyAst.js"),
|
|
59147
57972
|
import("./freighter.module-BeMgcM-N.js"),
|
|
59148
57973
|
import("./lobstr.module-DMSUePxW.js"),
|
|
59149
|
-
import("./xbull.module-
|
|
57974
|
+
import("./xbull.module-C-UUZmRx.js"),
|
|
59150
57975
|
import("./wallet-connect.module-DU9WV6lg.js"),
|
|
59151
57976
|
import("./types-DO_reoxw.js").then((n) => n.r),
|
|
59152
57977
|
import("./state-DcAcOoYZ.js")
|
|
@@ -68221,72 +67046,6 @@ var SKAtomRegistryProvider = (t0) => {
|
|
|
68221
67046
|
return t4;
|
|
68222
67047
|
};
|
|
68223
67048
|
//#endregion
|
|
68224
|
-
//#region src/app/embedding/widget-instance-claim.ts
|
|
68225
|
-
var widgetInstanceClaimKey = Symbol.for("@stakekit/widget/widget-instance-claim");
|
|
68226
|
-
var alreadyMountedMessage = "Only one StakeKit Widget may be mounted in a browser document at a time.";
|
|
68227
|
-
var StakeKitWidgetInstanceAlreadyMountedError = class extends Error {
|
|
68228
|
-
name = "StakeKitWidgetInstanceAlreadyMountedError";
|
|
68229
|
-
constructor() {
|
|
68230
|
-
super(alreadyMountedMessage);
|
|
68231
|
-
}
|
|
68232
|
-
};
|
|
68233
|
-
var acquireWidgetInstanceClaim = (browserDocument) => {
|
|
68234
|
-
if (Reflect.has(browserDocument, widgetInstanceClaimKey)) throw new StakeKitWidgetInstanceAlreadyMountedError();
|
|
68235
|
-
const claimOwnerToken = {};
|
|
68236
|
-
Reflect.set(browserDocument, widgetInstanceClaimKey, claimOwnerToken);
|
|
68237
|
-
return () => {
|
|
68238
|
-
if (Reflect.get(browserDocument, widgetInstanceClaimKey) === claimOwnerToken) Reflect.deleteProperty(browserDocument, widgetInstanceClaimKey);
|
|
68239
|
-
};
|
|
68240
|
-
};
|
|
68241
|
-
//#endregion
|
|
68242
|
-
//#region src/app/embedding/widget-instance-react-boundary.tsx
|
|
68243
|
-
/**
|
|
68244
|
-
* The non-rendering template discovers the actual mounting document before
|
|
68245
|
-
* application providers render.
|
|
68246
|
-
*/
|
|
68247
|
-
var WidgetInstanceReactBoundary = (t0) => {
|
|
68248
|
-
const $ = (0, import_compiler_runtime.c)(7);
|
|
68249
|
-
const { children } = t0;
|
|
68250
|
-
const [claimAcquired, setClaimAcquired] = useState(false);
|
|
68251
|
-
const releaseClaimRef = useRef(null);
|
|
68252
|
-
let t1;
|
|
68253
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
68254
|
-
t1 = (element) => {
|
|
68255
|
-
if (element) {
|
|
68256
|
-
releaseClaimRef.current = acquireWidgetInstanceClaim(element.ownerDocument);
|
|
68257
|
-
setClaimAcquired(true);
|
|
68258
|
-
return;
|
|
68259
|
-
}
|
|
68260
|
-
releaseClaimRef.current?.();
|
|
68261
|
-
releaseClaimRef.current = null;
|
|
68262
|
-
};
|
|
68263
|
-
$[0] = t1;
|
|
68264
|
-
} else t1 = $[0];
|
|
68265
|
-
const claimBoundaryRef = t1;
|
|
68266
|
-
let t2;
|
|
68267
|
-
if ($[1] !== children || $[2] !== claimAcquired) {
|
|
68268
|
-
t2 = claimAcquired ? /* @__PURE__ */ jsx(Fragment, { children }, "widget-instance-content") : null;
|
|
68269
|
-
$[1] = children;
|
|
68270
|
-
$[2] = claimAcquired;
|
|
68271
|
-
$[3] = t2;
|
|
68272
|
-
} else t2 = $[3];
|
|
68273
|
-
let t3;
|
|
68274
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
68275
|
-
t3 = /* @__PURE__ */ jsx("template", {
|
|
68276
|
-
"data-sk-widget-instance-boundary": "",
|
|
68277
|
-
ref: claimBoundaryRef
|
|
68278
|
-
}, "widget-instance-claim");
|
|
68279
|
-
$[4] = t3;
|
|
68280
|
-
} else t3 = $[4];
|
|
68281
|
-
let t4;
|
|
68282
|
-
if ($[5] !== t2) {
|
|
68283
|
-
t4 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t2, t3] });
|
|
68284
|
-
$[5] = t2;
|
|
68285
|
-
$[6] = t4;
|
|
68286
|
-
} else t4 = $[6];
|
|
68287
|
-
return t4;
|
|
68288
|
-
};
|
|
68289
|
-
//#endregion
|
|
68290
67049
|
//#region src/app/routes/application-routes.ts
|
|
68291
67050
|
var applicationRoutes = [{
|
|
68292
67051
|
path: "*",
|
|
@@ -69083,8 +67842,9 @@ var borrowPositionsResourceAtom = makePresentableResourceFamily(family((key) =>
|
|
|
69083
67842
|
//#endregion
|
|
69084
67843
|
//#region src/features/borrow-transaction-flow/state/atoms/borrow-flow.ts
|
|
69085
67844
|
var borrowTransactionFlowServiceAtom = walletRuntime.atom(service(BorrowTransactionFlowService)).pipe(keepAlive, withLabel("borrowTransactionFlowServiceAtom"));
|
|
69086
|
-
var
|
|
69087
|
-
var
|
|
67845
|
+
var makeBorrowFlowRouteSessionAtom = () => walletRuntime.atom((context) => unwrap$1(context.result(borrowTransactionFlowServiceAtom).pipe(map$6((service) => service.currentSession)))).pipe(withLabel("borrowFlowRouteSession"));
|
|
67846
|
+
var currentBorrowFlowSessionResultAtom = makeBorrowFlowRouteSessionAtom().pipe(keepAlive, withLabel("currentBorrowFlowSessionResultAtom"));
|
|
67847
|
+
make$11((get) => getOrElse(get(currentBorrowFlowSessionResultAtom), () => null)).pipe(withLabel("currentBorrowFlowSessionAtom"));
|
|
69088
67848
|
var startBorrowTransactionFlowAtom = walletRuntime.fn((intake, context) => context.result(borrowTransactionFlowServiceAtom).pipe(flatMap$4((service) => service.start(intake)))).pipe(withLabel("startBorrowTransactionFlowAtom"));
|
|
69089
67849
|
//#endregion
|
|
69090
67850
|
//#region src/domain/portfolio/positions.ts
|
|
@@ -72719,9 +71479,153 @@ var projectYieldEntry = ({ input, submitted }) => {
|
|
|
72719
71479
|
};
|
|
72720
71480
|
};
|
|
72721
71481
|
//#endregion
|
|
71482
|
+
//#region ../../node_modules/.pnpm/react-loading-skeleton@3.5.0_react@19.2.8/node_modules/react-loading-skeleton/dist/index.js
|
|
71483
|
+
/**
|
|
71484
|
+
* @internal
|
|
71485
|
+
*/
|
|
71486
|
+
var SkeletonThemeContext = React3.createContext({});
|
|
71487
|
+
var defaultEnableAnimation = true;
|
|
71488
|
+
function styleOptionsToCssProperties({ baseColor, highlightColor, width, height, borderRadius, circle, direction, duration, enableAnimation = defaultEnableAnimation, customHighlightBackground }) {
|
|
71489
|
+
const style = {};
|
|
71490
|
+
if (direction === "rtl") style["--animation-direction"] = "reverse";
|
|
71491
|
+
if (typeof duration === "number") style["--animation-duration"] = `${duration}s`;
|
|
71492
|
+
if (!enableAnimation) style["--pseudo-element-display"] = "none";
|
|
71493
|
+
if (typeof width === "string" || typeof width === "number") style.width = width;
|
|
71494
|
+
if (typeof height === "string" || typeof height === "number") style.height = height;
|
|
71495
|
+
if (typeof borderRadius === "string" || typeof borderRadius === "number") style.borderRadius = borderRadius;
|
|
71496
|
+
if (circle) style.borderRadius = "50%";
|
|
71497
|
+
if (typeof baseColor !== "undefined") style["--base-color"] = baseColor;
|
|
71498
|
+
if (typeof highlightColor !== "undefined") style["--highlight-color"] = highlightColor;
|
|
71499
|
+
if (typeof customHighlightBackground === "string") style["--custom-highlight-background"] = customHighlightBackground;
|
|
71500
|
+
return style;
|
|
71501
|
+
}
|
|
71502
|
+
function Skeleton({ count = 1, wrapper: Wrapper, className: customClassName, containerClassName, containerTestId, circle = false, style: styleProp, ...originalPropsStyleOptions }) {
|
|
71503
|
+
var _a, _b, _c;
|
|
71504
|
+
const contextStyleOptions = React3.useContext(SkeletonThemeContext);
|
|
71505
|
+
const propsStyleOptions = { ...originalPropsStyleOptions };
|
|
71506
|
+
for (const [key, value] of Object.entries(originalPropsStyleOptions)) if (typeof value === "undefined") delete propsStyleOptions[key];
|
|
71507
|
+
const styleOptions = {
|
|
71508
|
+
...contextStyleOptions,
|
|
71509
|
+
...propsStyleOptions,
|
|
71510
|
+
circle
|
|
71511
|
+
};
|
|
71512
|
+
const style = {
|
|
71513
|
+
...styleProp,
|
|
71514
|
+
...styleOptionsToCssProperties(styleOptions)
|
|
71515
|
+
};
|
|
71516
|
+
let className = "react-loading-skeleton";
|
|
71517
|
+
if (customClassName) className += ` ${customClassName}`;
|
|
71518
|
+
const inline = (_a = styleOptions.inline) !== null && _a !== void 0 ? _a : false;
|
|
71519
|
+
const elements = [];
|
|
71520
|
+
const countCeil = Math.ceil(count);
|
|
71521
|
+
for (let i = 0; i < countCeil; i++) {
|
|
71522
|
+
let thisStyle = style;
|
|
71523
|
+
if (countCeil > count && i === countCeil - 1) {
|
|
71524
|
+
const width = (_b = thisStyle.width) !== null && _b !== void 0 ? _b : "100%";
|
|
71525
|
+
const fractionalPart = count % 1;
|
|
71526
|
+
const fractionalWidth = typeof width === "number" ? width * fractionalPart : `calc(${width} * ${fractionalPart})`;
|
|
71527
|
+
thisStyle = {
|
|
71528
|
+
...thisStyle,
|
|
71529
|
+
width: fractionalWidth
|
|
71530
|
+
};
|
|
71531
|
+
}
|
|
71532
|
+
const skeletonSpan = React3.createElement("span", {
|
|
71533
|
+
className,
|
|
71534
|
+
style: thisStyle,
|
|
71535
|
+
key: i
|
|
71536
|
+
}, "");
|
|
71537
|
+
if (inline) elements.push(skeletonSpan);
|
|
71538
|
+
else elements.push(React3.createElement(React3.Fragment, { key: i }, skeletonSpan, React3.createElement("br", null)));
|
|
71539
|
+
}
|
|
71540
|
+
return React3.createElement("span", {
|
|
71541
|
+
className: containerClassName,
|
|
71542
|
+
"data-testid": containerTestId,
|
|
71543
|
+
"aria-live": "polite",
|
|
71544
|
+
"aria-busy": (_c = styleOptions.enableAnimation) !== null && _c !== void 0 ? _c : defaultEnableAnimation
|
|
71545
|
+
}, Wrapper ? elements.map((el, i) => React3.createElement(Wrapper, { key: i }, el)) : elements);
|
|
71546
|
+
}
|
|
71547
|
+
//#endregion
|
|
71548
|
+
//#region src/shared/ui/primitives/content-loader/index.tsx
|
|
71549
|
+
var ContentLoaderSquare = (t0) => {
|
|
71550
|
+
const $ = (0, import_compiler_runtime.c)(4);
|
|
71551
|
+
const { heightPx, variant, containerClassName } = t0;
|
|
71552
|
+
const t1 = variant?.size === "medium" ? vars.borderRadius.baseContract.md : vars.borderRadius.baseContract.xl;
|
|
71553
|
+
let t2;
|
|
71554
|
+
if ($[0] !== containerClassName || $[1] !== heightPx || $[2] !== t1) {
|
|
71555
|
+
t2 = /* @__PURE__ */ jsx(Skeleton, {
|
|
71556
|
+
height: heightPx,
|
|
71557
|
+
containerClassName,
|
|
71558
|
+
baseColor: vars.color.skeletonLoaderBase,
|
|
71559
|
+
highlightColor: vars.color.skeletonLoaderHighlight,
|
|
71560
|
+
enableAnimation: true,
|
|
71561
|
+
borderRadius: t1
|
|
71562
|
+
});
|
|
71563
|
+
$[0] = containerClassName;
|
|
71564
|
+
$[1] = heightPx;
|
|
71565
|
+
$[2] = t1;
|
|
71566
|
+
$[3] = t2;
|
|
71567
|
+
} else t2 = $[3];
|
|
71568
|
+
return t2;
|
|
71569
|
+
};
|
|
71570
|
+
var ContentLoaderLine = (t0) => {
|
|
71571
|
+
const $ = (0, import_compiler_runtime.c)(4);
|
|
71572
|
+
const { heightPx: t1, widthPx, containerClassName } = t0;
|
|
71573
|
+
const heightPx = t1 === void 0 ? 12 : t1;
|
|
71574
|
+
let t2;
|
|
71575
|
+
if ($[0] !== containerClassName || $[1] !== heightPx || $[2] !== widthPx) {
|
|
71576
|
+
t2 = /* @__PURE__ */ jsx(Skeleton, {
|
|
71577
|
+
height: heightPx,
|
|
71578
|
+
width: widthPx,
|
|
71579
|
+
containerClassName,
|
|
71580
|
+
baseColor: vars.color.skeletonLoaderBase,
|
|
71581
|
+
highlightColor: vars.color.skeletonLoaderHighlight,
|
|
71582
|
+
enableAnimation: true,
|
|
71583
|
+
borderRadius: vars.borderRadius.baseContract.md
|
|
71584
|
+
});
|
|
71585
|
+
$[0] = containerClassName;
|
|
71586
|
+
$[1] = heightPx;
|
|
71587
|
+
$[2] = widthPx;
|
|
71588
|
+
$[3] = t2;
|
|
71589
|
+
} else t2 = $[3];
|
|
71590
|
+
return t2;
|
|
71591
|
+
};
|
|
71592
|
+
var ContentLoaderCircle = (t0) => {
|
|
71593
|
+
const $ = (0, import_compiler_runtime.c)(2);
|
|
71594
|
+
const { sizePx } = t0;
|
|
71595
|
+
let t1;
|
|
71596
|
+
if ($[0] !== sizePx) {
|
|
71597
|
+
t1 = /* @__PURE__ */ jsx(Skeleton, {
|
|
71598
|
+
circle: true,
|
|
71599
|
+
height: sizePx,
|
|
71600
|
+
width: sizePx,
|
|
71601
|
+
baseColor: vars.color.skeletonLoaderBase,
|
|
71602
|
+
highlightColor: vars.color.skeletonLoaderHighlight,
|
|
71603
|
+
enableAnimation: true
|
|
71604
|
+
});
|
|
71605
|
+
$[0] = sizePx;
|
|
71606
|
+
$[1] = t1;
|
|
71607
|
+
} else t1 = $[1];
|
|
71608
|
+
return t1;
|
|
71609
|
+
};
|
|
71610
|
+
//#endregion
|
|
71611
|
+
//#region src/shared/ui/components/loading-skeleton/index.tsx
|
|
71612
|
+
var LoadingSkeleton = () => {
|
|
71613
|
+
const $ = (0, import_compiler_runtime.c)(1);
|
|
71614
|
+
let t0;
|
|
71615
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
71616
|
+
t0 = /* @__PURE__ */ jsx("div", {
|
|
71617
|
+
"aria-busy": "true",
|
|
71618
|
+
children: /* @__PURE__ */ jsx(ContentLoaderSquare, { heightPx: 320 })
|
|
71619
|
+
});
|
|
71620
|
+
$[0] = t0;
|
|
71621
|
+
} else t0 = $[0];
|
|
71622
|
+
return t0;
|
|
71623
|
+
};
|
|
71624
|
+
//#endregion
|
|
72722
71625
|
//#region src/features/classic-transaction-flow/state/atoms/classic-flow.ts
|
|
72723
71626
|
var classicTransactionFlowServiceAtom = walletRuntime.atom(service(ClassicTransactionFlowService)).pipe(keepAlive, withLabel("classicTransactionFlowServiceAtom"));
|
|
72724
|
-
var
|
|
71627
|
+
var makeClassicFlowRouteSessionAtom = () => walletRuntime.atom((context) => unwrap$1(context.result(classicTransactionFlowServiceAtom).pipe(map$6((service) => service.currentSession)))).pipe(withLabel("classicFlowRouteSession"));
|
|
71628
|
+
var currentClassicFlowSessionResultAtom = makeClassicFlowRouteSessionAtom().pipe(keepAlive, withLabel("currentClassicFlowSessionResultAtom"));
|
|
72725
71629
|
var currentClassicFlowSessionAtom = make$11((get) => getOrElse(get(currentClassicFlowSessionResultAtom), () => null)).pipe(withLabel("currentClassicFlowSessionAtom"));
|
|
72726
71630
|
var currentYieldActionContinuationIdAtom = make$11((get) => {
|
|
72727
71631
|
const session = get(currentClassicFlowSessionAtom);
|
|
@@ -73207,10 +72111,6 @@ var makeClassicFlowSessionModule = (session) => makeScopedEffectAtom({
|
|
|
73207
72111
|
var makeClassicFlowReviewScope = (session) => session.ports.makeReviewScopeAtom();
|
|
73208
72112
|
var makeClassicFlowExecutionScope = (session) => session.ports.makeExecutionScopeAtom();
|
|
73209
72113
|
var classicFlowSessionRootAtomFamily = family(makeClassicFlowSessionModule);
|
|
73210
|
-
var currentClassicFlowSessionRootAtom = make$11((get) => {
|
|
73211
|
-
const session = get(currentClassicFlowSessionAtom);
|
|
73212
|
-
return session ? classicFlowSessionRootAtomFamily(session) : null;
|
|
73213
|
-
}).pipe(withLabel("currentClassicFlowSessionRootAtom"));
|
|
73214
72114
|
//#endregion
|
|
73215
72115
|
//#region src/features/classic-transaction-flow/react/classic-flow-route.tsx
|
|
73216
72116
|
var useClassicFlowSessionModule = () => {
|
|
@@ -73243,51 +72143,58 @@ var useClassicFlowIntake = (variant) => {
|
|
|
73243
72143
|
return t0;
|
|
73244
72144
|
};
|
|
73245
72145
|
var ClassicFlowRoute = (t0) => {
|
|
73246
|
-
const $ = (0, import_compiler_runtime.c)(
|
|
72146
|
+
const $ = (0, import_compiler_runtime.c)(8);
|
|
73247
72147
|
const { expected } = t0;
|
|
73248
|
-
const
|
|
73249
|
-
const
|
|
73250
|
-
if (
|
|
72148
|
+
const [sessionAtom] = useState(makeClassicFlowRouteSessionAtom);
|
|
72149
|
+
const result = useAtomValue(sessionAtom);
|
|
72150
|
+
if (result._tag === "Initial") {
|
|
73251
72151
|
let t1;
|
|
73252
|
-
if ($[0]
|
|
73253
|
-
t1 = /* @__PURE__ */ jsx(
|
|
73254
|
-
$[0] =
|
|
72152
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
72153
|
+
t1 = /* @__PURE__ */ jsx(LoadingSkeleton, {});
|
|
72154
|
+
$[0] = t1;
|
|
72155
|
+
} else t1 = $[0];
|
|
72156
|
+
return t1;
|
|
72157
|
+
}
|
|
72158
|
+
if (result._tag === "Failure") {
|
|
72159
|
+
let t1;
|
|
72160
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
72161
|
+
t1 = /* @__PURE__ */ jsx(Navigate, {
|
|
72162
|
+
to: "/",
|
|
72163
|
+
replace: true
|
|
72164
|
+
});
|
|
73255
72165
|
$[1] = t1;
|
|
73256
72166
|
} else t1 = $[1];
|
|
73257
72167
|
return t1;
|
|
73258
72168
|
}
|
|
72169
|
+
const session = result.value;
|
|
72170
|
+
const intake = session ? getClassicTransactionFlowIntakeVariant(session.intake, expected) : null;
|
|
72171
|
+
if (session && intake) {
|
|
72172
|
+
const t1 = session.epoch;
|
|
72173
|
+
let t2;
|
|
72174
|
+
if ($[2] !== session) {
|
|
72175
|
+
t2 = classicFlowSessionRootAtomFamily(session);
|
|
72176
|
+
$[2] = session;
|
|
72177
|
+
$[3] = t2;
|
|
72178
|
+
} else t2 = $[3];
|
|
72179
|
+
let t3;
|
|
72180
|
+
if ($[4] !== session.epoch || $[5] !== t2) {
|
|
72181
|
+
t3 = /* @__PURE__ */ jsx(MountedSessionBinding$1, { rootAtom: t2 }, t1);
|
|
72182
|
+
$[4] = session.epoch;
|
|
72183
|
+
$[5] = t2;
|
|
72184
|
+
$[6] = t3;
|
|
72185
|
+
} else t3 = $[6];
|
|
72186
|
+
return t3;
|
|
72187
|
+
}
|
|
73259
72188
|
let t1;
|
|
73260
|
-
if ($[
|
|
72189
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73261
72190
|
t1 = /* @__PURE__ */ jsx(Navigate, {
|
|
73262
72191
|
to: "/",
|
|
73263
72192
|
replace: true
|
|
73264
72193
|
});
|
|
73265
|
-
$[
|
|
73266
|
-
} else t1 = $[
|
|
72194
|
+
$[7] = t1;
|
|
72195
|
+
} else t1 = $[7];
|
|
73267
72196
|
return t1;
|
|
73268
72197
|
};
|
|
73269
|
-
var SessionBinding$1 = () => {
|
|
73270
|
-
const $ = (0, import_compiler_runtime.c)(3);
|
|
73271
|
-
const rootAtom = useAtomValue(currentClassicFlowSessionRootAtom);
|
|
73272
|
-
if (!rootAtom) {
|
|
73273
|
-
let t0;
|
|
73274
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73275
|
-
t0 = /* @__PURE__ */ jsx(Navigate, {
|
|
73276
|
-
to: "/",
|
|
73277
|
-
replace: true
|
|
73278
|
-
});
|
|
73279
|
-
$[0] = t0;
|
|
73280
|
-
} else t0 = $[0];
|
|
73281
|
-
return t0;
|
|
73282
|
-
}
|
|
73283
|
-
let t0;
|
|
73284
|
-
if ($[1] !== rootAtom) {
|
|
73285
|
-
t0 = /* @__PURE__ */ jsx(MountedSessionBinding$1, { rootAtom });
|
|
73286
|
-
$[1] = rootAtom;
|
|
73287
|
-
$[2] = t0;
|
|
73288
|
-
} else t0 = $[2];
|
|
73289
|
-
return t0;
|
|
73290
|
-
};
|
|
73291
72198
|
var MountedSessionBinding$1 = (t0) => {
|
|
73292
72199
|
const $ = (0, import_compiler_runtime.c)(3);
|
|
73293
72200
|
const { rootAtom } = t0;
|
|
@@ -89487,135 +88394,6 @@ var YieldActionContinuationStepsPage = () => {
|
|
|
89487
88394
|
};
|
|
89488
88395
|
var YieldActionContinuationCompletePage = ActivityCompletePage;
|
|
89489
88396
|
//#endregion
|
|
89490
|
-
//#region ../../node_modules/.pnpm/react-loading-skeleton@3.5.0_react@19.2.8/node_modules/react-loading-skeleton/dist/index.js
|
|
89491
|
-
/**
|
|
89492
|
-
* @internal
|
|
89493
|
-
*/
|
|
89494
|
-
var SkeletonThemeContext = React3.createContext({});
|
|
89495
|
-
var defaultEnableAnimation = true;
|
|
89496
|
-
function styleOptionsToCssProperties({ baseColor, highlightColor, width, height, borderRadius, circle, direction, duration, enableAnimation = defaultEnableAnimation, customHighlightBackground }) {
|
|
89497
|
-
const style = {};
|
|
89498
|
-
if (direction === "rtl") style["--animation-direction"] = "reverse";
|
|
89499
|
-
if (typeof duration === "number") style["--animation-duration"] = `${duration}s`;
|
|
89500
|
-
if (!enableAnimation) style["--pseudo-element-display"] = "none";
|
|
89501
|
-
if (typeof width === "string" || typeof width === "number") style.width = width;
|
|
89502
|
-
if (typeof height === "string" || typeof height === "number") style.height = height;
|
|
89503
|
-
if (typeof borderRadius === "string" || typeof borderRadius === "number") style.borderRadius = borderRadius;
|
|
89504
|
-
if (circle) style.borderRadius = "50%";
|
|
89505
|
-
if (typeof baseColor !== "undefined") style["--base-color"] = baseColor;
|
|
89506
|
-
if (typeof highlightColor !== "undefined") style["--highlight-color"] = highlightColor;
|
|
89507
|
-
if (typeof customHighlightBackground === "string") style["--custom-highlight-background"] = customHighlightBackground;
|
|
89508
|
-
return style;
|
|
89509
|
-
}
|
|
89510
|
-
function Skeleton({ count = 1, wrapper: Wrapper, className: customClassName, containerClassName, containerTestId, circle = false, style: styleProp, ...originalPropsStyleOptions }) {
|
|
89511
|
-
var _a, _b, _c;
|
|
89512
|
-
const contextStyleOptions = React3.useContext(SkeletonThemeContext);
|
|
89513
|
-
const propsStyleOptions = { ...originalPropsStyleOptions };
|
|
89514
|
-
for (const [key, value] of Object.entries(originalPropsStyleOptions)) if (typeof value === "undefined") delete propsStyleOptions[key];
|
|
89515
|
-
const styleOptions = {
|
|
89516
|
-
...contextStyleOptions,
|
|
89517
|
-
...propsStyleOptions,
|
|
89518
|
-
circle
|
|
89519
|
-
};
|
|
89520
|
-
const style = {
|
|
89521
|
-
...styleProp,
|
|
89522
|
-
...styleOptionsToCssProperties(styleOptions)
|
|
89523
|
-
};
|
|
89524
|
-
let className = "react-loading-skeleton";
|
|
89525
|
-
if (customClassName) className += ` ${customClassName}`;
|
|
89526
|
-
const inline = (_a = styleOptions.inline) !== null && _a !== void 0 ? _a : false;
|
|
89527
|
-
const elements = [];
|
|
89528
|
-
const countCeil = Math.ceil(count);
|
|
89529
|
-
for (let i = 0; i < countCeil; i++) {
|
|
89530
|
-
let thisStyle = style;
|
|
89531
|
-
if (countCeil > count && i === countCeil - 1) {
|
|
89532
|
-
const width = (_b = thisStyle.width) !== null && _b !== void 0 ? _b : "100%";
|
|
89533
|
-
const fractionalPart = count % 1;
|
|
89534
|
-
const fractionalWidth = typeof width === "number" ? width * fractionalPart : `calc(${width} * ${fractionalPart})`;
|
|
89535
|
-
thisStyle = {
|
|
89536
|
-
...thisStyle,
|
|
89537
|
-
width: fractionalWidth
|
|
89538
|
-
};
|
|
89539
|
-
}
|
|
89540
|
-
const skeletonSpan = React3.createElement("span", {
|
|
89541
|
-
className,
|
|
89542
|
-
style: thisStyle,
|
|
89543
|
-
key: i
|
|
89544
|
-
}, "");
|
|
89545
|
-
if (inline) elements.push(skeletonSpan);
|
|
89546
|
-
else elements.push(React3.createElement(React3.Fragment, { key: i }, skeletonSpan, React3.createElement("br", null)));
|
|
89547
|
-
}
|
|
89548
|
-
return React3.createElement("span", {
|
|
89549
|
-
className: containerClassName,
|
|
89550
|
-
"data-testid": containerTestId,
|
|
89551
|
-
"aria-live": "polite",
|
|
89552
|
-
"aria-busy": (_c = styleOptions.enableAnimation) !== null && _c !== void 0 ? _c : defaultEnableAnimation
|
|
89553
|
-
}, Wrapper ? elements.map((el, i) => React3.createElement(Wrapper, { key: i }, el)) : elements);
|
|
89554
|
-
}
|
|
89555
|
-
//#endregion
|
|
89556
|
-
//#region src/shared/ui/primitives/content-loader/index.tsx
|
|
89557
|
-
var ContentLoaderSquare = (t0) => {
|
|
89558
|
-
const $ = (0, import_compiler_runtime.c)(4);
|
|
89559
|
-
const { heightPx, variant, containerClassName } = t0;
|
|
89560
|
-
const t1 = variant?.size === "medium" ? vars.borderRadius.baseContract.md : vars.borderRadius.baseContract.xl;
|
|
89561
|
-
let t2;
|
|
89562
|
-
if ($[0] !== containerClassName || $[1] !== heightPx || $[2] !== t1) {
|
|
89563
|
-
t2 = /* @__PURE__ */ jsx(Skeleton, {
|
|
89564
|
-
height: heightPx,
|
|
89565
|
-
containerClassName,
|
|
89566
|
-
baseColor: vars.color.skeletonLoaderBase,
|
|
89567
|
-
highlightColor: vars.color.skeletonLoaderHighlight,
|
|
89568
|
-
enableAnimation: true,
|
|
89569
|
-
borderRadius: t1
|
|
89570
|
-
});
|
|
89571
|
-
$[0] = containerClassName;
|
|
89572
|
-
$[1] = heightPx;
|
|
89573
|
-
$[2] = t1;
|
|
89574
|
-
$[3] = t2;
|
|
89575
|
-
} else t2 = $[3];
|
|
89576
|
-
return t2;
|
|
89577
|
-
};
|
|
89578
|
-
var ContentLoaderLine = (t0) => {
|
|
89579
|
-
const $ = (0, import_compiler_runtime.c)(4);
|
|
89580
|
-
const { heightPx: t1, widthPx, containerClassName } = t0;
|
|
89581
|
-
const heightPx = t1 === void 0 ? 12 : t1;
|
|
89582
|
-
let t2;
|
|
89583
|
-
if ($[0] !== containerClassName || $[1] !== heightPx || $[2] !== widthPx) {
|
|
89584
|
-
t2 = /* @__PURE__ */ jsx(Skeleton, {
|
|
89585
|
-
height: heightPx,
|
|
89586
|
-
width: widthPx,
|
|
89587
|
-
containerClassName,
|
|
89588
|
-
baseColor: vars.color.skeletonLoaderBase,
|
|
89589
|
-
highlightColor: vars.color.skeletonLoaderHighlight,
|
|
89590
|
-
enableAnimation: true,
|
|
89591
|
-
borderRadius: vars.borderRadius.baseContract.md
|
|
89592
|
-
});
|
|
89593
|
-
$[0] = containerClassName;
|
|
89594
|
-
$[1] = heightPx;
|
|
89595
|
-
$[2] = widthPx;
|
|
89596
|
-
$[3] = t2;
|
|
89597
|
-
} else t2 = $[3];
|
|
89598
|
-
return t2;
|
|
89599
|
-
};
|
|
89600
|
-
var ContentLoaderCircle = (t0) => {
|
|
89601
|
-
const $ = (0, import_compiler_runtime.c)(2);
|
|
89602
|
-
const { sizePx } = t0;
|
|
89603
|
-
let t1;
|
|
89604
|
-
if ($[0] !== sizePx) {
|
|
89605
|
-
t1 = /* @__PURE__ */ jsx(Skeleton, {
|
|
89606
|
-
circle: true,
|
|
89607
|
-
height: sizePx,
|
|
89608
|
-
width: sizePx,
|
|
89609
|
-
baseColor: vars.color.skeletonLoaderBase,
|
|
89610
|
-
highlightColor: vars.color.skeletonLoaderHighlight,
|
|
89611
|
-
enableAnimation: true
|
|
89612
|
-
});
|
|
89613
|
-
$[0] = sizePx;
|
|
89614
|
-
$[1] = t1;
|
|
89615
|
-
} else t1 = $[1];
|
|
89616
|
-
return t1;
|
|
89617
|
-
};
|
|
89618
|
-
//#endregion
|
|
89619
88397
|
//#region src/features/activity/state/page.ts
|
|
89620
88398
|
var shouldShowActivityDashboardSplit = (view) => view.status === "ready" && view.actions.length > 0;
|
|
89621
88399
|
var resolveActivityPageWalletStatus = ({ configResult, connectionStatus }) => {
|
|
@@ -93819,29 +92597,29 @@ var usePendingActionReview = () => {
|
|
|
93819
92597
|
};
|
|
93820
92598
|
//#endregion
|
|
93821
92599
|
//#region ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
93822
|
-
var __defProp$
|
|
93823
|
-
var __name$
|
|
92600
|
+
var __defProp$22 = Object.defineProperty;
|
|
92601
|
+
var __name$22 = (target, value) => __defProp$22(target, "name", {
|
|
93824
92602
|
value,
|
|
93825
92603
|
configurable: true
|
|
93826
92604
|
});
|
|
93827
92605
|
var canUseDOM$1 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
93828
92606
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
93829
|
-
return /* @__PURE__ */ __name$
|
|
92607
|
+
return /* @__PURE__ */ __name$22(function handleEvent(event) {
|
|
93830
92608
|
originalEventHandler?.(event);
|
|
93831
92609
|
if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) return ourEventHandler?.(event);
|
|
93832
92610
|
}, "handleEvent");
|
|
93833
92611
|
}
|
|
93834
|
-
__name$
|
|
92612
|
+
__name$22(composeEventHandlers, "composeEventHandlers");
|
|
93835
92613
|
function getOwnerWindow(element) {
|
|
93836
92614
|
if (!canUseDOM$1) throw new Error("Cannot access window outside of the DOM");
|
|
93837
92615
|
return element?.ownerDocument?.defaultView ?? window;
|
|
93838
92616
|
}
|
|
93839
|
-
__name$
|
|
92617
|
+
__name$22(getOwnerWindow, "getOwnerWindow");
|
|
93840
92618
|
function getOwnerDocument(element) {
|
|
93841
92619
|
if (!canUseDOM$1) throw new Error("Cannot access document outside of the DOM");
|
|
93842
92620
|
return element?.ownerDocument ?? document;
|
|
93843
92621
|
}
|
|
93844
|
-
__name$
|
|
92622
|
+
__name$22(getOwnerDocument, "getOwnerDocument");
|
|
93845
92623
|
function getActiveElement(node, activeDescendant = false) {
|
|
93846
92624
|
const { activeElement } = getOwnerDocument(node);
|
|
93847
92625
|
if (!activeElement?.nodeName) return null;
|
|
@@ -93855,15 +92633,15 @@ function getActiveElement(node, activeDescendant = false) {
|
|
|
93855
92633
|
}
|
|
93856
92634
|
return activeElement;
|
|
93857
92635
|
}
|
|
93858
|
-
__name$
|
|
92636
|
+
__name$22(getActiveElement, "getActiveElement");
|
|
93859
92637
|
function isFrame(element) {
|
|
93860
92638
|
return element.tagName === "IFRAME";
|
|
93861
92639
|
}
|
|
93862
|
-
__name$
|
|
92640
|
+
__name$22(isFrame, "isFrame");
|
|
93863
92641
|
//#endregion
|
|
93864
92642
|
//#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
|
|
93865
|
-
var __defProp$
|
|
93866
|
-
var __name$
|
|
92643
|
+
var __defProp$21 = Object.defineProperty;
|
|
92644
|
+
var __name$21 = (target, value) => __defProp$21(target, "name", {
|
|
93867
92645
|
value,
|
|
93868
92646
|
configurable: true
|
|
93869
92647
|
});
|
|
@@ -93871,7 +92649,7 @@ function setRef$1(ref, value) {
|
|
|
93871
92649
|
if (typeof ref === "function") return ref(value);
|
|
93872
92650
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
93873
92651
|
}
|
|
93874
|
-
__name$
|
|
92652
|
+
__name$21(setRef$1, "setRef");
|
|
93875
92653
|
function composeRefs(...refs) {
|
|
93876
92654
|
return (node) => {
|
|
93877
92655
|
let hasCleanup = false;
|
|
@@ -93889,15 +92667,15 @@ function composeRefs(...refs) {
|
|
|
93889
92667
|
};
|
|
93890
92668
|
};
|
|
93891
92669
|
}
|
|
93892
|
-
__name$
|
|
92670
|
+
__name$21(composeRefs, "composeRefs");
|
|
93893
92671
|
function useComposedRefs(...refs) {
|
|
93894
92672
|
return m.useCallback(composeRefs(...refs), refs);
|
|
93895
92673
|
}
|
|
93896
|
-
__name$
|
|
92674
|
+
__name$21(useComposedRefs, "useComposedRefs");
|
|
93897
92675
|
//#endregion
|
|
93898
92676
|
//#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
|
|
93899
|
-
var __defProp$
|
|
93900
|
-
var __name$
|
|
92677
|
+
var __defProp$20 = Object.defineProperty;
|
|
92678
|
+
var __name$20 = (target, value) => __defProp$20(target, "name", {
|
|
93901
92679
|
value,
|
|
93902
92680
|
configurable: true
|
|
93903
92681
|
});
|
|
@@ -93905,7 +92683,7 @@ var __name$23 = (target, value) => __defProp$23(target, "name", {
|
|
|
93905
92683
|
function createContext2(rootComponentName, defaultContext) {
|
|
93906
92684
|
const Context = m.createContext(defaultContext);
|
|
93907
92685
|
Context.displayName = rootComponentName + "Context";
|
|
93908
|
-
const Provider = /* @__PURE__ */ __name$
|
|
92686
|
+
const Provider = /* @__PURE__ */ __name$20((props) => {
|
|
93909
92687
|
const { children, ...context } = props;
|
|
93910
92688
|
const value = m.useMemo(() => context, Object.values(context));
|
|
93911
92689
|
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
@@ -93922,10 +92700,10 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
93922
92700
|
if (optional) return void 0;
|
|
93923
92701
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
93924
92702
|
}
|
|
93925
|
-
__name$
|
|
92703
|
+
__name$20(useContext2, "useContext");
|
|
93926
92704
|
return [Provider, useContext2];
|
|
93927
92705
|
}
|
|
93928
|
-
__name$
|
|
92706
|
+
__name$20(createContext2, "createContext");
|
|
93929
92707
|
// @__NO_SIDE_EFFECTS__
|
|
93930
92708
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
93931
92709
|
let defaultContexts = [];
|
|
@@ -93934,7 +92712,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
93934
92712
|
BaseContext.displayName = rootComponentName + "Context";
|
|
93935
92713
|
const index = defaultContexts.length;
|
|
93936
92714
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
93937
|
-
const Provider = /* @__PURE__ */ __name$
|
|
92715
|
+
const Provider = /* @__PURE__ */ __name$20((props) => {
|
|
93938
92716
|
const { scope, children, ...context } = props;
|
|
93939
92717
|
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
93940
92718
|
const value = m.useMemo(() => context, Object.values(context));
|
|
@@ -93953,15 +92731,15 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
93953
92731
|
if (optional) return void 0;
|
|
93954
92732
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
93955
92733
|
}
|
|
93956
|
-
__name$
|
|
92734
|
+
__name$20(useContext2, "useContext");
|
|
93957
92735
|
return [Provider, useContext2];
|
|
93958
92736
|
}
|
|
93959
|
-
__name$
|
|
93960
|
-
const createScope = /* @__PURE__ */ __name$
|
|
92737
|
+
__name$20(createContext3, "createContext");
|
|
92738
|
+
const createScope = /* @__PURE__ */ __name$20(() => {
|
|
93961
92739
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
93962
92740
|
return m.createContext(defaultContext);
|
|
93963
92741
|
});
|
|
93964
|
-
return /* @__PURE__ */ __name$
|
|
92742
|
+
return /* @__PURE__ */ __name$20(function useScope(scope) {
|
|
93965
92743
|
const contexts = scope?.[scopeName] || scopeContexts;
|
|
93966
92744
|
return m.useMemo(() => ({ [`__scope${scopeName}`]: {
|
|
93967
92745
|
...scope,
|
|
@@ -93972,16 +92750,16 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
93972
92750
|
createScope.scopeName = scopeName;
|
|
93973
92751
|
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
93974
92752
|
}
|
|
93975
|
-
__name$
|
|
92753
|
+
__name$20(createContextScope, "createContextScope");
|
|
93976
92754
|
function composeContextScopes(...scopes) {
|
|
93977
92755
|
const baseScope = scopes[0];
|
|
93978
92756
|
if (scopes.length === 1) return baseScope;
|
|
93979
|
-
const createScope = /* @__PURE__ */ __name$
|
|
92757
|
+
const createScope = /* @__PURE__ */ __name$20(() => {
|
|
93980
92758
|
const scopeHooks = scopes.map((createScope2) => ({
|
|
93981
92759
|
useScope: createScope2(),
|
|
93982
92760
|
scopeName: createScope2.scopeName
|
|
93983
92761
|
}));
|
|
93984
|
-
return /* @__PURE__ */ __name$
|
|
92762
|
+
return /* @__PURE__ */ __name$20(function useComposedScopes(overrideScopes) {
|
|
93985
92763
|
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
93986
92764
|
const currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
|
|
93987
92765
|
return {
|
|
@@ -93995,464 +92773,27 @@ function composeContextScopes(...scopes) {
|
|
|
93995
92773
|
createScope.scopeName = baseScope.scopeName;
|
|
93996
92774
|
return createScope;
|
|
93997
92775
|
}
|
|
93998
|
-
__name$
|
|
93999
|
-
//#endregion
|
|
94000
|
-
//#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
|
|
94001
|
-
var __defProp$22 = Object.defineProperty;
|
|
94002
|
-
var __name$22 = (target, value) => __defProp$22(target, "name", {
|
|
94003
|
-
value,
|
|
94004
|
-
configurable: true
|
|
94005
|
-
});
|
|
94006
|
-
// @__NO_SIDE_EFFECTS__
|
|
94007
|
-
function createSlot(ownerName) {
|
|
94008
|
-
const Slot2 = m.forwardRef((props, forwardedRef) => {
|
|
94009
|
-
let { children, ...slotProps } = props;
|
|
94010
|
-
let slottableElement = null;
|
|
94011
|
-
let hasSlottable = false;
|
|
94012
|
-
const newChildren = [];
|
|
94013
|
-
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
94014
|
-
m.Children.forEach(children, (maybeSlottable) => {
|
|
94015
|
-
if (isSlottable(maybeSlottable)) {
|
|
94016
|
-
hasSlottable = true;
|
|
94017
|
-
const slottable = maybeSlottable;
|
|
94018
|
-
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
94019
|
-
if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
|
|
94020
|
-
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
94021
|
-
newChildren.push(slottableElement?.props?.children);
|
|
94022
|
-
} else newChildren.push(maybeSlottable);
|
|
94023
|
-
});
|
|
94024
|
-
if (slottableElement) slottableElement = m.cloneElement(slottableElement, void 0, newChildren);
|
|
94025
|
-
else if (!hasSlottable && m.Children.count(children) === 1 && m.isValidElement(children)) slottableElement = children;
|
|
94026
|
-
const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
|
|
94027
|
-
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
94028
|
-
if (!slottableElement) {
|
|
94029
|
-
if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
94030
|
-
return children;
|
|
94031
|
-
}
|
|
94032
|
-
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
94033
|
-
if (slottableElement.type !== m.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
94034
|
-
return m.cloneElement(slottableElement, mergedProps);
|
|
94035
|
-
});
|
|
94036
|
-
Slot2.displayName = `${ownerName}.Slot`;
|
|
94037
|
-
return Slot2;
|
|
94038
|
-
}
|
|
94039
|
-
__name$22(createSlot, "createSlot");
|
|
94040
|
-
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
94041
|
-
// @__NO_SIDE_EFFECTS__
|
|
94042
|
-
function createSlottable(ownerName) {
|
|
94043
|
-
const Slottable2 = /* @__PURE__ */ __name$22((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
|
|
94044
|
-
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
94045
|
-
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
94046
|
-
return Slottable2;
|
|
94047
|
-
}
|
|
94048
|
-
__name$22(createSlottable, "createSlottable");
|
|
94049
|
-
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$22((slottable, child) => {
|
|
94050
|
-
if ("child" in slottable.props) {
|
|
94051
|
-
const child2 = slottable.props.child;
|
|
94052
|
-
if (!m.isValidElement(child2)) return null;
|
|
94053
|
-
return m.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
94054
|
-
}
|
|
94055
|
-
return m.isValidElement(child) ? child : null;
|
|
94056
|
-
}, "getSlottableElementFromSlottable");
|
|
94057
|
-
function mergeProps(slotProps, childProps) {
|
|
94058
|
-
const overrideProps = { ...childProps };
|
|
94059
|
-
for (const propName in childProps) {
|
|
94060
|
-
const slotPropValue = slotProps[propName];
|
|
94061
|
-
const childPropValue = childProps[propName];
|
|
94062
|
-
if (/^on[A-Z]/.test(propName)) {
|
|
94063
|
-
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
94064
|
-
const result = childPropValue(...args);
|
|
94065
|
-
slotPropValue(...args);
|
|
94066
|
-
return result;
|
|
94067
|
-
};
|
|
94068
|
-
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
94069
|
-
} else if (propName === "style") overrideProps[propName] = {
|
|
94070
|
-
...slotPropValue,
|
|
94071
|
-
...childPropValue
|
|
94072
|
-
};
|
|
94073
|
-
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
94074
|
-
}
|
|
94075
|
-
return {
|
|
94076
|
-
...slotProps,
|
|
94077
|
-
...overrideProps
|
|
94078
|
-
};
|
|
94079
|
-
}
|
|
94080
|
-
__name$22(mergeProps, "mergeProps");
|
|
94081
|
-
function getElementRef$1(element) {
|
|
94082
|
-
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
94083
|
-
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94084
|
-
if (mayWarn) return element.ref;
|
|
94085
|
-
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
94086
|
-
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94087
|
-
if (mayWarn) return element.props.ref;
|
|
94088
|
-
return element.props.ref || element.ref;
|
|
94089
|
-
}
|
|
94090
|
-
__name$22(getElementRef$1, "getElementRef");
|
|
94091
|
-
function isSlottable(child) {
|
|
94092
|
-
return m.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
94093
|
-
}
|
|
94094
|
-
__name$22(isSlottable, "isSlottable");
|
|
94095
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
94096
|
-
function isLazyComponent(element) {
|
|
94097
|
-
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
94098
|
-
}
|
|
94099
|
-
__name$22(isLazyComponent, "isLazyComponent");
|
|
94100
|
-
function isPromiseLike(value) {
|
|
94101
|
-
return typeof value === "object" && value !== null && "then" in value;
|
|
94102
|
-
}
|
|
94103
|
-
__name$22(isPromiseLike, "isPromiseLike");
|
|
94104
|
-
var createSlotError = /* @__PURE__ */ __name$22((ownerName) => {
|
|
94105
|
-
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
94106
|
-
}, "createSlotError");
|
|
94107
|
-
var createSlottableError = /* @__PURE__ */ __name$22((ownerName) => {
|
|
94108
|
-
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
94109
|
-
}, "createSlottableError");
|
|
94110
|
-
var use = m[" use ".trim().toString()];
|
|
94111
|
-
//#endregion
|
|
94112
|
-
//#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
|
|
94113
|
-
var __defProp$21 = Object.defineProperty;
|
|
94114
|
-
var __name$21 = (target, value) => __defProp$21(target, "name", {
|
|
94115
|
-
value,
|
|
94116
|
-
configurable: true
|
|
94117
|
-
});
|
|
94118
|
-
var Primitive = [
|
|
94119
|
-
"a",
|
|
94120
|
-
"button",
|
|
94121
|
-
"div",
|
|
94122
|
-
"form",
|
|
94123
|
-
"h2",
|
|
94124
|
-
"h3",
|
|
94125
|
-
"img",
|
|
94126
|
-
"input",
|
|
94127
|
-
"label",
|
|
94128
|
-
"li",
|
|
94129
|
-
"nav",
|
|
94130
|
-
"ol",
|
|
94131
|
-
"p",
|
|
94132
|
-
"select",
|
|
94133
|
-
"span",
|
|
94134
|
-
"svg",
|
|
94135
|
-
"ul"
|
|
94136
|
-
].reduce((primitive, node) => {
|
|
94137
|
-
const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
|
|
94138
|
-
const Node = m.forwardRef((props, forwardedRef) => {
|
|
94139
|
-
const { asChild, ...primitiveProps } = props;
|
|
94140
|
-
const Comp = asChild ? Slot : node;
|
|
94141
|
-
if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
|
|
94142
|
-
return /* @__PURE__ */ jsx(Comp, {
|
|
94143
|
-
...primitiveProps,
|
|
94144
|
-
ref: forwardedRef
|
|
94145
|
-
});
|
|
94146
|
-
});
|
|
94147
|
-
Node.displayName = `Primitive.${node}`;
|
|
94148
|
-
return {
|
|
94149
|
-
...primitive,
|
|
94150
|
-
[node]: Node
|
|
94151
|
-
};
|
|
94152
|
-
}, {});
|
|
94153
|
-
function dispatchDiscreteCustomEvent(target, event) {
|
|
94154
|
-
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
94155
|
-
}
|
|
94156
|
-
__name$21(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
94157
|
-
//#endregion
|
|
94158
|
-
//#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
|
|
94159
|
-
var __defProp$20 = Object.defineProperty;
|
|
94160
|
-
var __name$20 = (target, value) => __defProp$20(target, "name", {
|
|
94161
|
-
value,
|
|
94162
|
-
configurable: true
|
|
94163
|
-
});
|
|
94164
|
-
function useCallbackRef(callback) {
|
|
94165
|
-
const callbackRef = m.useRef(callback);
|
|
94166
|
-
m.useEffect(() => {
|
|
94167
|
-
callbackRef.current = callback;
|
|
94168
|
-
});
|
|
94169
|
-
return m.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
|
|
94170
|
-
}
|
|
94171
|
-
__name$20(useCallbackRef, "useCallbackRef");
|
|
94172
|
-
//#endregion
|
|
94173
|
-
//#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
|
|
94174
|
-
var __defProp$19 = Object.defineProperty;
|
|
94175
|
-
var __name$19 = (target, value) => __defProp$19(target, "name", {
|
|
94176
|
-
value,
|
|
94177
|
-
configurable: true
|
|
94178
|
-
});
|
|
94179
|
-
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
94180
|
-
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
94181
|
-
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
94182
|
-
var originalBodyPointerEvents;
|
|
94183
|
-
var DismissableLayerContext = m.createContext({
|
|
94184
|
-
layers: /* @__PURE__ */ new Set(),
|
|
94185
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
94186
|
-
branches: /* @__PURE__ */ new Set(),
|
|
94187
|
-
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
94188
|
-
});
|
|
94189
|
-
var DismissableLayer = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$19(function DismissableLayer2(props, forwardedRef) {
|
|
94190
|
-
const { disableOutsidePointerEvents = false, deferPointerDownOutside = false, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, ...layerProps } = props;
|
|
94191
|
-
const context = m.useContext(DismissableLayerContext);
|
|
94192
|
-
const [node, setNode] = m.useState(null);
|
|
94193
|
-
const ownerDocument = node?.ownerDocument ?? globalThis?.document;
|
|
94194
|
-
const [, force] = m.useState({});
|
|
94195
|
-
const composedRefs = useComposedRefs(forwardedRef, setNode);
|
|
94196
|
-
const layers = Array.from(context.layers);
|
|
94197
|
-
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
94198
|
-
const highestLayerWithOutsidePointerEventsDisabledIndex = highestLayerWithOutsidePointerEventsDisabled ? layers.indexOf(highestLayerWithOutsidePointerEventsDisabled) : -1;
|
|
94199
|
-
const index = node ? layers.indexOf(node) : -1;
|
|
94200
|
-
const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
94201
|
-
const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
94202
|
-
const isDeferredPointerDownOutsideRef = m.useRef(false);
|
|
94203
|
-
const pointerDownOutside = usePointerDownOutside((event) => {
|
|
94204
|
-
onPointerDownOutside?.(event);
|
|
94205
|
-
onInteractOutside?.(event);
|
|
94206
|
-
if (!event.defaultPrevented) onDismiss?.();
|
|
94207
|
-
}, {
|
|
94208
|
-
ownerDocument,
|
|
94209
|
-
deferPointerDownOutside,
|
|
94210
|
-
isDeferredPointerDownOutsideRef,
|
|
94211
|
-
dismissableSurfaces: context.dismissableSurfaces,
|
|
94212
|
-
shouldHandlePointerDownOutside: m.useCallback((target) => {
|
|
94213
|
-
if (!(target instanceof Node)) return false;
|
|
94214
|
-
const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));
|
|
94215
|
-
return isPointerEventsEnabled && !isPointerDownOnBranch;
|
|
94216
|
-
}, [context.branches, isPointerEventsEnabled])
|
|
94217
|
-
});
|
|
94218
|
-
const focusOutside = useFocusOutside((event) => {
|
|
94219
|
-
if (deferPointerDownOutside && isDeferredPointerDownOutsideRef.current) return;
|
|
94220
|
-
const target = event.target;
|
|
94221
|
-
if ([...context.branches].some((branch) => branch.contains(target))) return;
|
|
94222
|
-
onFocusOutside?.(event);
|
|
94223
|
-
onInteractOutside?.(event);
|
|
94224
|
-
if (!event.defaultPrevented) onDismiss?.();
|
|
94225
|
-
}, ownerDocument);
|
|
94226
|
-
const isHighestLayer = node ? index === layers.length - 1 : false;
|
|
94227
|
-
const handleKeyDown = useCallbackRef((event) => {
|
|
94228
|
-
if (event.key !== "Escape") return;
|
|
94229
|
-
onEscapeKeyDown?.(event);
|
|
94230
|
-
if (!event.defaultPrevented && onDismiss) {
|
|
94231
|
-
event.preventDefault();
|
|
94232
|
-
onDismiss();
|
|
94233
|
-
}
|
|
94234
|
-
});
|
|
94235
|
-
m.useEffect(() => {
|
|
94236
|
-
if (!isHighestLayer) return;
|
|
94237
|
-
ownerDocument.addEventListener("keydown", handleKeyDown, { capture: true });
|
|
94238
|
-
return () => ownerDocument.removeEventListener("keydown", handleKeyDown, { capture: true });
|
|
94239
|
-
}, [
|
|
94240
|
-
ownerDocument,
|
|
94241
|
-
isHighestLayer,
|
|
94242
|
-
handleKeyDown
|
|
94243
|
-
]);
|
|
94244
|
-
m.useEffect(() => {
|
|
94245
|
-
if (!node) return;
|
|
94246
|
-
if (disableOutsidePointerEvents) {
|
|
94247
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
94248
|
-
originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;
|
|
94249
|
-
ownerDocument.body.style.pointerEvents = "none";
|
|
94250
|
-
}
|
|
94251
|
-
context.layersWithOutsidePointerEventsDisabled.add(node);
|
|
94252
|
-
}
|
|
94253
|
-
context.layers.add(node);
|
|
94254
|
-
dispatchUpdate();
|
|
94255
|
-
return () => {
|
|
94256
|
-
if (disableOutsidePointerEvents) {
|
|
94257
|
-
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
94258
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0) ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;
|
|
94259
|
-
}
|
|
94260
|
-
};
|
|
94261
|
-
}, [
|
|
94262
|
-
node,
|
|
94263
|
-
ownerDocument,
|
|
94264
|
-
disableOutsidePointerEvents,
|
|
94265
|
-
context
|
|
94266
|
-
]);
|
|
94267
|
-
m.useEffect(() => {
|
|
94268
|
-
return () => {
|
|
94269
|
-
if (!node) return;
|
|
94270
|
-
context.layers.delete(node);
|
|
94271
|
-
context.layersWithOutsidePointerEventsDisabled.delete(node);
|
|
94272
|
-
dispatchUpdate();
|
|
94273
|
-
};
|
|
94274
|
-
}, [node, context]);
|
|
94275
|
-
m.useEffect(() => {
|
|
94276
|
-
const handleUpdate = /* @__PURE__ */ __name$19(() => force({}), "handleUpdate");
|
|
94277
|
-
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
94278
|
-
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
94279
|
-
}, []);
|
|
94280
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
94281
|
-
...layerProps,
|
|
94282
|
-
ref: composedRefs,
|
|
94283
|
-
style: {
|
|
94284
|
-
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : void 0,
|
|
94285
|
-
...props.style
|
|
94286
|
-
},
|
|
94287
|
-
onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),
|
|
94288
|
-
onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),
|
|
94289
|
-
onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
|
|
94290
|
-
});
|
|
94291
|
-
}, "DismissableLayer"));
|
|
94292
|
-
function useDismissableLayerSurface() {
|
|
94293
|
-
const context = m.useContext(DismissableLayerContext);
|
|
94294
|
-
const [node, setNode] = m.useState(null);
|
|
94295
|
-
m.useEffect(() => {
|
|
94296
|
-
if (!node) return;
|
|
94297
|
-
context.dismissableSurfaces.add(node);
|
|
94298
|
-
return () => {
|
|
94299
|
-
context.dismissableSurfaces.delete(node);
|
|
94300
|
-
};
|
|
94301
|
-
}, [node, context.dismissableSurfaces]);
|
|
94302
|
-
return setNode;
|
|
94303
|
-
}
|
|
94304
|
-
__name$19(useDismissableLayerSurface, "useDismissableLayerSurface");
|
|
94305
|
-
var IS_TRUE = /* @__PURE__ */ __name$19(() => true, "IS_TRUE");
|
|
94306
|
-
function usePointerDownOutside(onPointerDownOutside, args) {
|
|
94307
|
-
const { ownerDocument = globalThis?.document, deferPointerDownOutside = false, isDeferredPointerDownOutsideRef, dismissableSurfaces, shouldHandlePointerDownOutside = IS_TRUE } = args;
|
|
94308
|
-
const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
|
|
94309
|
-
const isPointerInsideReactTreeRef = m.useRef(false);
|
|
94310
|
-
const isPointerDownOutsideRef = m.useRef(false);
|
|
94311
|
-
const interceptedOutsideInteractionEventsRef = m.useRef(/* @__PURE__ */ new Map());
|
|
94312
|
-
const handleClickRef = m.useRef(() => {});
|
|
94313
|
-
m.useEffect(() => {
|
|
94314
|
-
function resetOutsideInteraction() {
|
|
94315
|
-
isPointerDownOutsideRef.current = false;
|
|
94316
|
-
isDeferredPointerDownOutsideRef.current = false;
|
|
94317
|
-
interceptedOutsideInteractionEventsRef.current.clear();
|
|
94318
|
-
}
|
|
94319
|
-
__name$19(resetOutsideInteraction, "resetOutsideInteraction");
|
|
94320
|
-
function isOutsideInteractionIntercepted() {
|
|
94321
|
-
return Array.from(interceptedOutsideInteractionEventsRef.current.values()).some(Boolean);
|
|
94322
|
-
}
|
|
94323
|
-
__name$19(isOutsideInteractionIntercepted, "isOutsideInteractionIntercepted");
|
|
94324
|
-
function handleInteractionCapture(event) {
|
|
94325
|
-
if (!isPointerDownOutsideRef.current) return;
|
|
94326
|
-
const target = event.target;
|
|
94327
|
-
if (!(target instanceof Node && [...dismissableSurfaces].some((surface) => surface.contains(target)))) interceptedOutsideInteractionEventsRef.current.set(event.type, true);
|
|
94328
|
-
if (event.type === "click") window.setTimeout(() => {
|
|
94329
|
-
if (isPointerDownOutsideRef.current) handleClickRef.current();
|
|
94330
|
-
}, 0);
|
|
94331
|
-
}
|
|
94332
|
-
__name$19(handleInteractionCapture, "handleInteractionCapture");
|
|
94333
|
-
function handleInteractionBubble(event) {
|
|
94334
|
-
if (isPointerDownOutsideRef.current) interceptedOutsideInteractionEventsRef.current.set(event.type, false);
|
|
94335
|
-
}
|
|
94336
|
-
__name$19(handleInteractionBubble, "handleInteractionBubble");
|
|
94337
|
-
const handlePointerDown = /* @__PURE__ */ __name$19((event) => {
|
|
94338
|
-
if (event.target && !isPointerInsideReactTreeRef.current) {
|
|
94339
|
-
let handleAndDispatchPointerDownOutsideEvent2 = function() {
|
|
94340
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94341
|
-
const wasOutsideInteractionIntercepted = isOutsideInteractionIntercepted();
|
|
94342
|
-
resetOutsideInteraction();
|
|
94343
|
-
if (!wasOutsideInteractionIntercepted) handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE, handlePointerDownOutside, eventDetail, { discrete: true });
|
|
94344
|
-
};
|
|
94345
|
-
__name$19(handleAndDispatchPointerDownOutsideEvent2, "handleAndDispatchPointerDownOutsideEvent");
|
|
94346
|
-
if (!shouldHandlePointerDownOutside(event.target)) {
|
|
94347
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94348
|
-
resetOutsideInteraction();
|
|
94349
|
-
isPointerInsideReactTreeRef.current = false;
|
|
94350
|
-
return;
|
|
94351
|
-
}
|
|
94352
|
-
const eventDetail = { originalEvent: event };
|
|
94353
|
-
isPointerDownOutsideRef.current = true;
|
|
94354
|
-
isDeferredPointerDownOutsideRef.current = deferPointerDownOutside && event.button === 0;
|
|
94355
|
-
interceptedOutsideInteractionEventsRef.current.clear();
|
|
94356
|
-
if (!deferPointerDownOutside || event.button !== 0) handleAndDispatchPointerDownOutsideEvent2();
|
|
94357
|
-
else {
|
|
94358
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94359
|
-
handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;
|
|
94360
|
-
ownerDocument.addEventListener("click", handleClickRef.current, { once: true });
|
|
94361
|
-
}
|
|
94362
|
-
} else {
|
|
94363
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94364
|
-
resetOutsideInteraction();
|
|
94365
|
-
}
|
|
94366
|
-
isPointerInsideReactTreeRef.current = false;
|
|
94367
|
-
}, "handlePointerDown");
|
|
94368
|
-
const outsideInteractionEvents = [
|
|
94369
|
-
"pointerup",
|
|
94370
|
-
"mousedown",
|
|
94371
|
-
"mouseup",
|
|
94372
|
-
"touchstart",
|
|
94373
|
-
"touchend",
|
|
94374
|
-
"click"
|
|
94375
|
-
];
|
|
94376
|
-
for (const eventName of outsideInteractionEvents) {
|
|
94377
|
-
ownerDocument.addEventListener(eventName, handleInteractionCapture, true);
|
|
94378
|
-
ownerDocument.addEventListener(eventName, handleInteractionBubble);
|
|
94379
|
-
}
|
|
94380
|
-
const timerId = window.setTimeout(() => {
|
|
94381
|
-
ownerDocument.addEventListener("pointerdown", handlePointerDown);
|
|
94382
|
-
}, 0);
|
|
94383
|
-
return () => {
|
|
94384
|
-
window.clearTimeout(timerId);
|
|
94385
|
-
ownerDocument.removeEventListener("pointerdown", handlePointerDown);
|
|
94386
|
-
ownerDocument.removeEventListener("click", handleClickRef.current);
|
|
94387
|
-
for (const eventName of outsideInteractionEvents) {
|
|
94388
|
-
ownerDocument.removeEventListener(eventName, handleInteractionCapture, true);
|
|
94389
|
-
ownerDocument.removeEventListener(eventName, handleInteractionBubble);
|
|
94390
|
-
}
|
|
94391
|
-
};
|
|
94392
|
-
}, [
|
|
94393
|
-
ownerDocument,
|
|
94394
|
-
handlePointerDownOutside,
|
|
94395
|
-
deferPointerDownOutside,
|
|
94396
|
-
isDeferredPointerDownOutsideRef,
|
|
94397
|
-
dismissableSurfaces,
|
|
94398
|
-
shouldHandlePointerDownOutside
|
|
94399
|
-
]);
|
|
94400
|
-
return { onPointerDownCapture: /* @__PURE__ */ __name$19(() => isPointerInsideReactTreeRef.current = true, "onPointerDownCapture") };
|
|
94401
|
-
}
|
|
94402
|
-
__name$19(usePointerDownOutside, "usePointerDownOutside");
|
|
94403
|
-
function useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {
|
|
94404
|
-
const handleFocusOutside = useCallbackRef(onFocusOutside);
|
|
94405
|
-
const isFocusInsideReactTreeRef = m.useRef(false);
|
|
94406
|
-
m.useEffect(() => {
|
|
94407
|
-
const handleFocus = /* @__PURE__ */ __name$19((event) => {
|
|
94408
|
-
if (event.target && !isFocusInsideReactTreeRef.current) handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, { originalEvent: event }, { discrete: false });
|
|
94409
|
-
}, "handleFocus");
|
|
94410
|
-
ownerDocument.addEventListener("focusin", handleFocus);
|
|
94411
|
-
return () => ownerDocument.removeEventListener("focusin", handleFocus);
|
|
94412
|
-
}, [ownerDocument, handleFocusOutside]);
|
|
94413
|
-
return {
|
|
94414
|
-
onFocusCapture: /* @__PURE__ */ __name$19(() => isFocusInsideReactTreeRef.current = true, "onFocusCapture"),
|
|
94415
|
-
onBlurCapture: /* @__PURE__ */ __name$19(() => isFocusInsideReactTreeRef.current = false, "onBlurCapture")
|
|
94416
|
-
};
|
|
94417
|
-
}
|
|
94418
|
-
__name$19(useFocusOutside, "useFocusOutside");
|
|
94419
|
-
function dispatchUpdate() {
|
|
94420
|
-
const event = new CustomEvent(CONTEXT_UPDATE);
|
|
94421
|
-
document.dispatchEvent(event);
|
|
94422
|
-
}
|
|
94423
|
-
__name$19(dispatchUpdate, "dispatchUpdate");
|
|
94424
|
-
function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
|
|
94425
|
-
const target = detail.originalEvent.target;
|
|
94426
|
-
const event = new CustomEvent(name, {
|
|
94427
|
-
bubbles: false,
|
|
94428
|
-
cancelable: true,
|
|
94429
|
-
detail
|
|
94430
|
-
});
|
|
94431
|
-
if (handler) target.addEventListener(name, handler, { once: true });
|
|
94432
|
-
if (discrete) dispatchDiscreteCustomEvent(target, event);
|
|
94433
|
-
else target.dispatchEvent(event);
|
|
94434
|
-
}
|
|
94435
|
-
__name$19(handleAndDispatchCustomEvent, "handleAndDispatchCustomEvent");
|
|
92776
|
+
__name$20(composeContextScopes, "composeContextScopes");
|
|
94436
92777
|
//#endregion
|
|
94437
92778
|
//#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
|
|
94438
92779
|
var useLayoutEffect2 = globalThis?.document ? m.useLayoutEffect : () => {};
|
|
94439
92780
|
//#endregion
|
|
94440
92781
|
//#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
|
|
94441
|
-
var __defProp$
|
|
94442
|
-
var __name$
|
|
92782
|
+
var __defProp$19 = Object.defineProperty;
|
|
92783
|
+
var __name$19 = (target, value) => __defProp$19(target, "name", {
|
|
94443
92784
|
value,
|
|
94444
92785
|
configurable: true
|
|
94445
92786
|
});
|
|
94446
92787
|
var useReactId = m[" useId ".trim().toString()] || (() => void 0);
|
|
94447
|
-
var count
|
|
92788
|
+
var count = 0;
|
|
94448
92789
|
function useId$2(deterministicId) {
|
|
94449
92790
|
const [id, setId] = m.useState(useReactId());
|
|
94450
92791
|
useLayoutEffect2(() => {
|
|
94451
|
-
if (!deterministicId) setId((reactId) => reactId ?? String(count
|
|
92792
|
+
if (!deterministicId) setId((reactId) => reactId ?? String(count++));
|
|
94452
92793
|
}, [deterministicId]);
|
|
94453
92794
|
return deterministicId || (id ? `radix-${id}` : "");
|
|
94454
92795
|
}
|
|
94455
|
-
__name$
|
|
92796
|
+
__name$19(useId$2, "useId");
|
|
94456
92797
|
//#endregion
|
|
94457
92798
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
94458
92799
|
/**
|
|
@@ -96085,13 +94426,171 @@ var arrow = (options, deps) => {
|
|
|
96085
94426
|
};
|
|
96086
94427
|
};
|
|
96087
94428
|
//#endregion
|
|
96088
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-
|
|
94429
|
+
//#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
|
|
94430
|
+
var __defProp$18 = Object.defineProperty;
|
|
94431
|
+
var __name$18 = (target, value) => __defProp$18(target, "name", {
|
|
94432
|
+
value,
|
|
94433
|
+
configurable: true
|
|
94434
|
+
});
|
|
94435
|
+
// @__NO_SIDE_EFFECTS__
|
|
94436
|
+
function createSlot(ownerName) {
|
|
94437
|
+
const Slot2 = m.forwardRef((props, forwardedRef) => {
|
|
94438
|
+
let { children, ...slotProps } = props;
|
|
94439
|
+
let slottableElement = null;
|
|
94440
|
+
let hasSlottable = false;
|
|
94441
|
+
const newChildren = [];
|
|
94442
|
+
if (isLazyComponent(children) && typeof use === "function") children = use(children._payload);
|
|
94443
|
+
m.Children.forEach(children, (maybeSlottable) => {
|
|
94444
|
+
if (isSlottable(maybeSlottable)) {
|
|
94445
|
+
hasSlottable = true;
|
|
94446
|
+
const slottable = maybeSlottable;
|
|
94447
|
+
let child = "child" in slottable.props ? slottable.props.child : slottable.props.children;
|
|
94448
|
+
if (isLazyComponent(child) && typeof use === "function") child = use(child._payload);
|
|
94449
|
+
slottableElement = getSlottableElementFromSlottable(slottable, child);
|
|
94450
|
+
newChildren.push(slottableElement?.props?.children);
|
|
94451
|
+
} else newChildren.push(maybeSlottable);
|
|
94452
|
+
});
|
|
94453
|
+
if (slottableElement) slottableElement = m.cloneElement(slottableElement, void 0, newChildren);
|
|
94454
|
+
else if (!hasSlottable && m.Children.count(children) === 1 && m.isValidElement(children)) slottableElement = children;
|
|
94455
|
+
const slottableElementRef = slottableElement ? getElementRef$1(slottableElement) : void 0;
|
|
94456
|
+
const composedRef = useComposedRefs(forwardedRef, slottableElementRef);
|
|
94457
|
+
if (!slottableElement) {
|
|
94458
|
+
if (children || children === 0) throw new Error(hasSlottable ? createSlottableError(ownerName) : createSlotError(ownerName));
|
|
94459
|
+
return children;
|
|
94460
|
+
}
|
|
94461
|
+
const mergedProps = mergeProps(slotProps, slottableElement.props ?? {});
|
|
94462
|
+
if (slottableElement.type !== m.Fragment) mergedProps.ref = forwardedRef ? composedRef : slottableElementRef;
|
|
94463
|
+
return m.cloneElement(slottableElement, mergedProps);
|
|
94464
|
+
});
|
|
94465
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
94466
|
+
return Slot2;
|
|
94467
|
+
}
|
|
94468
|
+
__name$18(createSlot, "createSlot");
|
|
94469
|
+
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
94470
|
+
// @__NO_SIDE_EFFECTS__
|
|
94471
|
+
function createSlottable(ownerName) {
|
|
94472
|
+
const Slottable2 = /* @__PURE__ */ __name$18((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
|
|
94473
|
+
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
94474
|
+
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
94475
|
+
return Slottable2;
|
|
94476
|
+
}
|
|
94477
|
+
__name$18(createSlottable, "createSlottable");
|
|
94478
|
+
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$18((slottable, child) => {
|
|
94479
|
+
if ("child" in slottable.props) {
|
|
94480
|
+
const child2 = slottable.props.child;
|
|
94481
|
+
if (!m.isValidElement(child2)) return null;
|
|
94482
|
+
return m.cloneElement(child2, void 0, slottable.props.children(child2.props.children));
|
|
94483
|
+
}
|
|
94484
|
+
return m.isValidElement(child) ? child : null;
|
|
94485
|
+
}, "getSlottableElementFromSlottable");
|
|
94486
|
+
function mergeProps(slotProps, childProps) {
|
|
94487
|
+
const overrideProps = { ...childProps };
|
|
94488
|
+
for (const propName in childProps) {
|
|
94489
|
+
const slotPropValue = slotProps[propName];
|
|
94490
|
+
const childPropValue = childProps[propName];
|
|
94491
|
+
if (/^on[A-Z]/.test(propName)) {
|
|
94492
|
+
if (slotPropValue && childPropValue) overrideProps[propName] = (...args) => {
|
|
94493
|
+
const result = childPropValue(...args);
|
|
94494
|
+
slotPropValue(...args);
|
|
94495
|
+
return result;
|
|
94496
|
+
};
|
|
94497
|
+
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
94498
|
+
} else if (propName === "style") overrideProps[propName] = {
|
|
94499
|
+
...slotPropValue,
|
|
94500
|
+
...childPropValue
|
|
94501
|
+
};
|
|
94502
|
+
else if (propName === "className") overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
94503
|
+
}
|
|
94504
|
+
return {
|
|
94505
|
+
...slotProps,
|
|
94506
|
+
...overrideProps
|
|
94507
|
+
};
|
|
94508
|
+
}
|
|
94509
|
+
__name$18(mergeProps, "mergeProps");
|
|
94510
|
+
function getElementRef$1(element) {
|
|
94511
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
94512
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94513
|
+
if (mayWarn) return element.ref;
|
|
94514
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
94515
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
94516
|
+
if (mayWarn) return element.props.ref;
|
|
94517
|
+
return element.props.ref || element.ref;
|
|
94518
|
+
}
|
|
94519
|
+
__name$18(getElementRef$1, "getElementRef");
|
|
94520
|
+
function isSlottable(child) {
|
|
94521
|
+
return m.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
94522
|
+
}
|
|
94523
|
+
__name$18(isSlottable, "isSlottable");
|
|
94524
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
94525
|
+
function isLazyComponent(element) {
|
|
94526
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
94527
|
+
}
|
|
94528
|
+
__name$18(isLazyComponent, "isLazyComponent");
|
|
94529
|
+
function isPromiseLike(value) {
|
|
94530
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
94531
|
+
}
|
|
94532
|
+
__name$18(isPromiseLike, "isPromiseLike");
|
|
94533
|
+
var createSlotError = /* @__PURE__ */ __name$18((ownerName) => {
|
|
94534
|
+
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
94535
|
+
}, "createSlotError");
|
|
94536
|
+
var createSlottableError = /* @__PURE__ */ __name$18((ownerName) => {
|
|
94537
|
+
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
94538
|
+
}, "createSlottableError");
|
|
94539
|
+
var use = m[" use ".trim().toString()];
|
|
94540
|
+
//#endregion
|
|
94541
|
+
//#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
|
|
96089
94542
|
var __defProp$17 = Object.defineProperty;
|
|
96090
94543
|
var __name$17 = (target, value) => __defProp$17(target, "name", {
|
|
96091
94544
|
value,
|
|
96092
94545
|
configurable: true
|
|
96093
94546
|
});
|
|
96094
|
-
var
|
|
94547
|
+
var Primitive = [
|
|
94548
|
+
"a",
|
|
94549
|
+
"button",
|
|
94550
|
+
"div",
|
|
94551
|
+
"form",
|
|
94552
|
+
"h2",
|
|
94553
|
+
"h3",
|
|
94554
|
+
"img",
|
|
94555
|
+
"input",
|
|
94556
|
+
"label",
|
|
94557
|
+
"li",
|
|
94558
|
+
"nav",
|
|
94559
|
+
"ol",
|
|
94560
|
+
"p",
|
|
94561
|
+
"select",
|
|
94562
|
+
"span",
|
|
94563
|
+
"svg",
|
|
94564
|
+
"ul"
|
|
94565
|
+
].reduce((primitive, node) => {
|
|
94566
|
+
const Slot = /* @__PURE__ */ createSlot(`Primitive.${node}`);
|
|
94567
|
+
const Node = m.forwardRef((props, forwardedRef) => {
|
|
94568
|
+
const { asChild, ...primitiveProps } = props;
|
|
94569
|
+
const Comp = asChild ? Slot : node;
|
|
94570
|
+
if (typeof window !== "undefined") window[Symbol.for("radix-ui")] = true;
|
|
94571
|
+
return /* @__PURE__ */ jsx(Comp, {
|
|
94572
|
+
...primitiveProps,
|
|
94573
|
+
ref: forwardedRef
|
|
94574
|
+
});
|
|
94575
|
+
});
|
|
94576
|
+
Node.displayName = `Primitive.${node}`;
|
|
94577
|
+
return {
|
|
94578
|
+
...primitive,
|
|
94579
|
+
[node]: Node
|
|
94580
|
+
};
|
|
94581
|
+
}, {});
|
|
94582
|
+
function dispatchDiscreteCustomEvent(target, event) {
|
|
94583
|
+
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
94584
|
+
}
|
|
94585
|
+
__name$17(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
94586
|
+
//#endregion
|
|
94587
|
+
//#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
|
|
94588
|
+
var __defProp$16 = Object.defineProperty;
|
|
94589
|
+
var __name$16 = (target, value) => __defProp$16(target, "name", {
|
|
94590
|
+
value,
|
|
94591
|
+
configurable: true
|
|
94592
|
+
});
|
|
94593
|
+
var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$16(function Arrow2(props, forwardedRef) {
|
|
96095
94594
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
96096
94595
|
return /* @__PURE__ */ jsx(Primitive.svg, {
|
|
96097
94596
|
...arrowProps,
|
|
@@ -96104,9 +94603,24 @@ var Root$5 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$17(function Arr
|
|
|
96104
94603
|
});
|
|
96105
94604
|
}, "Arrow"));
|
|
96106
94605
|
//#endregion
|
|
94606
|
+
//#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
|
|
94607
|
+
var __defProp$15 = Object.defineProperty;
|
|
94608
|
+
var __name$15 = (target, value) => __defProp$15(target, "name", {
|
|
94609
|
+
value,
|
|
94610
|
+
configurable: true
|
|
94611
|
+
});
|
|
94612
|
+
function useCallbackRef(callback) {
|
|
94613
|
+
const callbackRef = m.useRef(callback);
|
|
94614
|
+
m.useEffect(() => {
|
|
94615
|
+
callbackRef.current = callback;
|
|
94616
|
+
});
|
|
94617
|
+
return m.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
|
|
94618
|
+
}
|
|
94619
|
+
__name$15(useCallbackRef, "useCallbackRef");
|
|
94620
|
+
//#endregion
|
|
96107
94621
|
//#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
|
|
96108
|
-
var __defProp$
|
|
96109
|
-
var __name$
|
|
94622
|
+
var __defProp$14 = Object.defineProperty;
|
|
94623
|
+
var __name$14 = (target, value) => __defProp$14(target, "name", {
|
|
96110
94624
|
value,
|
|
96111
94625
|
configurable: true
|
|
96112
94626
|
});
|
|
@@ -96144,18 +94658,18 @@ function useSize(element) {
|
|
|
96144
94658
|
}, [element]);
|
|
96145
94659
|
return size;
|
|
96146
94660
|
}
|
|
96147
|
-
__name$
|
|
94661
|
+
__name$14(useSize, "useSize");
|
|
96148
94662
|
//#endregion
|
|
96149
94663
|
//#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
|
|
96150
|
-
var __defProp$
|
|
96151
|
-
var __name$
|
|
94664
|
+
var __defProp$13 = Object.defineProperty;
|
|
94665
|
+
var __name$13 = (target, value) => __defProp$13(target, "name", {
|
|
96152
94666
|
value,
|
|
96153
94667
|
configurable: true
|
|
96154
94668
|
});
|
|
96155
94669
|
var POPPER_NAME = "Popper";
|
|
96156
94670
|
var [createPopperContext, createPopperScope] = /* @__PURE__ */ createContextScope(POPPER_NAME);
|
|
96157
94671
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
96158
|
-
var Popper = /* @__PURE__ */ __name$
|
|
94672
|
+
var Popper = /* @__PURE__ */ __name$13((props) => {
|
|
96159
94673
|
const { __scopePopper, children } = props;
|
|
96160
94674
|
const [anchor, setAnchor] = m.useState(null);
|
|
96161
94675
|
const [placementState, setPlacementState] = m.useState(void 0);
|
|
@@ -96169,7 +94683,7 @@ var Popper = /* @__PURE__ */ __name$15((props) => {
|
|
|
96169
94683
|
});
|
|
96170
94684
|
}, "Popper");
|
|
96171
94685
|
var ANCHOR_NAME = "PopperAnchor";
|
|
96172
|
-
var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94686
|
+
var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperAnchor2(props, forwardedRef) {
|
|
96173
94687
|
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
96174
94688
|
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
96175
94689
|
const ref = m.useRef(null);
|
|
@@ -96197,7 +94711,7 @@ var PopperAnchor = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(functi
|
|
|
96197
94711
|
}, "PopperAnchor"));
|
|
96198
94712
|
var CONTENT_NAME$4 = "PopperContent";
|
|
96199
94713
|
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$4);
|
|
96200
|
-
var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94714
|
+
var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperContent2(props, forwardedRef) {
|
|
96201
94715
|
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;
|
|
96202
94716
|
const context = usePopperContext(CONTENT_NAME$4, __scopePopper);
|
|
96203
94717
|
const [content, setContent] = m.useState(null);
|
|
@@ -96224,7 +94738,7 @@ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(funct
|
|
|
96224
94738
|
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
96225
94739
|
strategy: "fixed",
|
|
96226
94740
|
placement: desiredPlacement,
|
|
96227
|
-
whileElementsMounted: /* @__PURE__ */ __name$
|
|
94741
|
+
whileElementsMounted: /* @__PURE__ */ __name$13((...args) => {
|
|
96228
94742
|
return autoUpdate(...args, { animationFrame: updatePositionStrategy === "always" });
|
|
96229
94743
|
}, "whileElementsMounted"),
|
|
96230
94744
|
elements: { reference: context.anchor },
|
|
@@ -96242,7 +94756,7 @@ var PopperContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(funct
|
|
|
96242
94756
|
avoidCollisions && flip({ ...detectOverflowOptions }),
|
|
96243
94757
|
size({
|
|
96244
94758
|
...detectOverflowOptions,
|
|
96245
|
-
apply: /* @__PURE__ */ __name$
|
|
94759
|
+
apply: /* @__PURE__ */ __name$13(({ elements, rects, availableWidth, availableHeight }) => {
|
|
96246
94760
|
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
96247
94761
|
const contentStyle = elements.floating.style;
|
|
96248
94762
|
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
@@ -96328,7 +94842,7 @@ var OPPOSITE_SIDE = {
|
|
|
96328
94842
|
bottom: "top",
|
|
96329
94843
|
left: "right"
|
|
96330
94844
|
};
|
|
96331
|
-
var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94845
|
+
var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$13(function PopperArrow2(props, forwardedRef) {
|
|
96332
94846
|
const { __scopePopper, ...arrowProps } = props;
|
|
96333
94847
|
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
96334
94848
|
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
@@ -96366,8 +94880,8 @@ var PopperArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$15(functio
|
|
|
96366
94880
|
function isNotNull(value) {
|
|
96367
94881
|
return value !== null;
|
|
96368
94882
|
}
|
|
96369
|
-
__name$
|
|
96370
|
-
var transformOrigin = /* @__PURE__ */ __name$
|
|
94883
|
+
__name$13(isNotNull, "isNotNull");
|
|
94884
|
+
var transformOrigin = /* @__PURE__ */ __name$13((options) => ({
|
|
96371
94885
|
name: "transformOrigin",
|
|
96372
94886
|
options,
|
|
96373
94887
|
fn(data) {
|
|
@@ -96408,19 +94922,19 @@ function getSideAndAlignFromPlacement(placement) {
|
|
|
96408
94922
|
const [side, align = "center"] = placement.split("-");
|
|
96409
94923
|
return [side, align];
|
|
96410
94924
|
}
|
|
96411
|
-
__name$
|
|
94925
|
+
__name$13(getSideAndAlignFromPlacement, "getSideAndAlignFromPlacement");
|
|
96412
94926
|
var Root2$1 = Popper;
|
|
96413
94927
|
var Anchor = PopperAnchor;
|
|
96414
94928
|
var Content = PopperContent;
|
|
96415
94929
|
var Arrow = PopperArrow;
|
|
96416
94930
|
//#endregion
|
|
96417
94931
|
//#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
|
|
96418
|
-
var __defProp$
|
|
96419
|
-
var __name$
|
|
94932
|
+
var __defProp$12 = Object.defineProperty;
|
|
94933
|
+
var __name$12 = (target, value) => __defProp$12(target, "name", {
|
|
96420
94934
|
value,
|
|
96421
94935
|
configurable: true
|
|
96422
94936
|
});
|
|
96423
|
-
var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
94937
|
+
var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$12(function Portal2(props, forwardedRef) {
|
|
96424
94938
|
const { container: containerProp, ...portalProps } = props;
|
|
96425
94939
|
const [mounted, setMounted] = m.useState(false);
|
|
96426
94940
|
useLayoutEffect2(() => setMounted(true), []);
|
|
@@ -96432,8 +94946,8 @@ var Portal$2 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$14(function P
|
|
|
96432
94946
|
}, "Portal"));
|
|
96433
94947
|
//#endregion
|
|
96434
94948
|
//#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
|
|
96435
|
-
var __defProp$
|
|
96436
|
-
var __name$
|
|
94949
|
+
var __defProp$11 = Object.defineProperty;
|
|
94950
|
+
var __name$11 = (target, value) => __defProp$11(target, "name", {
|
|
96437
94951
|
value,
|
|
96438
94952
|
configurable: true
|
|
96439
94953
|
});
|
|
@@ -96442,8 +94956,8 @@ function useStateMachine(initialState, machine) {
|
|
|
96442
94956
|
return machine[state][event] ?? state;
|
|
96443
94957
|
}, initialState);
|
|
96444
94958
|
}
|
|
96445
|
-
__name$
|
|
96446
|
-
var Presence = /* @__PURE__ */ __name$
|
|
94959
|
+
__name$11(useStateMachine, "useStateMachine");
|
|
94960
|
+
var Presence = /* @__PURE__ */ __name$11((props) => {
|
|
96447
94961
|
const { present, children } = props;
|
|
96448
94962
|
const presence = usePresence(present);
|
|
96449
94963
|
const child = typeof children === "function" ? children({ present: presence.isPresent }) : m.Children.only(children);
|
|
@@ -96492,7 +95006,7 @@ function usePresence(present) {
|
|
|
96492
95006
|
if (node) {
|
|
96493
95007
|
let timeoutId;
|
|
96494
95008
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
96495
|
-
const handleAnimationEnd = /* @__PURE__ */ __name$
|
|
95009
|
+
const handleAnimationEnd = /* @__PURE__ */ __name$11((event) => {
|
|
96496
95010
|
const isCurrentAnimation = getAnimationName(stylesRef.current).includes(CSS.escape(event.animationName));
|
|
96497
95011
|
if (event.target === node && isCurrentAnimation) {
|
|
96498
95012
|
send("ANIMATION_END");
|
|
@@ -96505,7 +95019,7 @@ function usePresence(present) {
|
|
|
96505
95019
|
}
|
|
96506
95020
|
}
|
|
96507
95021
|
}, "handleAnimationEnd");
|
|
96508
|
-
const handleAnimationStart = /* @__PURE__ */ __name$
|
|
95022
|
+
const handleAnimationStart = /* @__PURE__ */ __name$11((event) => {
|
|
96509
95023
|
if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
96510
95024
|
}, "handleAnimationStart");
|
|
96511
95025
|
node.addEventListener("animationstart", handleAnimationStart);
|
|
@@ -96531,12 +95045,12 @@ function usePresence(present) {
|
|
|
96531
95045
|
}, [])
|
|
96532
95046
|
};
|
|
96533
95047
|
}
|
|
96534
|
-
__name$
|
|
95048
|
+
__name$11(usePresence, "usePresence");
|
|
96535
95049
|
function setRef(ref, value) {
|
|
96536
95050
|
if (typeof ref === "function") return ref(value);
|
|
96537
95051
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
96538
95052
|
}
|
|
96539
|
-
__name$
|
|
95053
|
+
__name$11(setRef, "setRef");
|
|
96540
95054
|
function useStableComposedRefs(...refs) {
|
|
96541
95055
|
const refsRef = m.useRef(refs);
|
|
96542
95056
|
refsRef.current = refs;
|
|
@@ -96557,11 +95071,11 @@ function useStableComposedRefs(...refs) {
|
|
|
96557
95071
|
};
|
|
96558
95072
|
}, []);
|
|
96559
95073
|
}
|
|
96560
|
-
__name$
|
|
95074
|
+
__name$11(useStableComposedRefs, "useStableComposedRefs");
|
|
96561
95075
|
function getAnimationName(styles) {
|
|
96562
95076
|
return styles?.animationName || "none";
|
|
96563
95077
|
}
|
|
96564
|
-
__name$
|
|
95078
|
+
__name$11(getAnimationName, "getAnimationName");
|
|
96565
95079
|
function getElementRef(element) {
|
|
96566
95080
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
96567
95081
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -96571,11 +95085,11 @@ function getElementRef(element) {
|
|
|
96571
95085
|
if (mayWarn) return element.props.ref;
|
|
96572
95086
|
return element.props.ref || element.ref;
|
|
96573
95087
|
}
|
|
96574
|
-
__name$
|
|
95088
|
+
__name$11(getElementRef, "getElementRef");
|
|
96575
95089
|
//#endregion
|
|
96576
95090
|
//#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
|
|
96577
|
-
var __defProp$
|
|
96578
|
-
var __name$
|
|
95091
|
+
var __defProp$10 = Object.defineProperty;
|
|
95092
|
+
var __name$10 = (target, value) => __defProp$10(target, "name", {
|
|
96579
95093
|
value,
|
|
96580
95094
|
configurable: true
|
|
96581
95095
|
});
|
|
@@ -96594,16 +95108,16 @@ function useEffectEvent$1(callback) {
|
|
|
96594
95108
|
});
|
|
96595
95109
|
return m.useMemo(() => ((...args) => ref.current?.(...args)), []);
|
|
96596
95110
|
}
|
|
96597
|
-
__name$
|
|
95111
|
+
__name$10(useEffectEvent$1, "useEffectEvent");
|
|
96598
95112
|
//#endregion
|
|
96599
95113
|
//#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
|
|
96600
|
-
var __defProp$
|
|
96601
|
-
var __name$
|
|
95114
|
+
var __defProp$9 = Object.defineProperty;
|
|
95115
|
+
var __name$9 = (target, value) => __defProp$9(target, "name", {
|
|
96602
95116
|
value,
|
|
96603
95117
|
configurable: true
|
|
96604
95118
|
});
|
|
96605
95119
|
var useInsertionEffect$1 = m[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
96606
|
-
function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$
|
|
95120
|
+
function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$9(() => {}, "onChange"), caller }) {
|
|
96607
95121
|
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
|
96608
95122
|
defaultProp,
|
|
96609
95123
|
onChange
|
|
@@ -96621,7 +95135,7 @@ function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __
|
|
|
96621
95135
|
onChangeRef
|
|
96622
95136
|
])];
|
|
96623
95137
|
}
|
|
96624
|
-
__name$
|
|
95138
|
+
__name$9(useControllableState, "useControllableState");
|
|
96625
95139
|
function useUncontrolledState({ defaultProp, onChange }) {
|
|
96626
95140
|
const [value, setValue] = m.useState(defaultProp);
|
|
96627
95141
|
const prevValueRef = m.useRef(value);
|
|
@@ -96641,11 +95155,11 @@ function useUncontrolledState({ defaultProp, onChange }) {
|
|
|
96641
95155
|
onChangeRef
|
|
96642
95156
|
];
|
|
96643
95157
|
}
|
|
96644
|
-
__name$
|
|
95158
|
+
__name$9(useUncontrolledState, "useUncontrolledState");
|
|
96645
95159
|
function isFunction$1(value) {
|
|
96646
95160
|
return typeof value === "function";
|
|
96647
95161
|
}
|
|
96648
|
-
__name$
|
|
95162
|
+
__name$9(isFunction$1, "isFunction");
|
|
96649
95163
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
96650
95164
|
function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
96651
95165
|
const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;
|
|
@@ -96696,11 +95210,11 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
|
96696
95210
|
]);
|
|
96697
95211
|
return [state, dispatch];
|
|
96698
95212
|
}
|
|
96699
|
-
__name$
|
|
95213
|
+
__name$9(useControllableStateReducer, "useControllableStateReducer");
|
|
96700
95214
|
//#endregion
|
|
96701
95215
|
//#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
|
|
96702
|
-
var __defProp$
|
|
96703
|
-
var __name$
|
|
95216
|
+
var __defProp$8 = Object.defineProperty;
|
|
95217
|
+
var __name$8 = (target, value) => __defProp$8(target, "name", {
|
|
96704
95218
|
value,
|
|
96705
95219
|
configurable: true
|
|
96706
95220
|
});
|
|
@@ -96716,7 +95230,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
96716
95230
|
whiteSpace: "nowrap",
|
|
96717
95231
|
wordWrap: "normal"
|
|
96718
95232
|
});
|
|
96719
|
-
var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95233
|
+
var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$8(function VisuallyHidden2(props, forwardedRef) {
|
|
96720
95234
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
96721
95235
|
...props,
|
|
96722
95236
|
ref: forwardedRef,
|
|
@@ -96728,8 +95242,8 @@ var Root$4 = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$10(function Vis
|
|
|
96728
95242
|
}, "VisuallyHidden"));
|
|
96729
95243
|
//#endregion
|
|
96730
95244
|
//#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
|
|
96731
|
-
var __defProp$
|
|
96732
|
-
var __name$
|
|
95245
|
+
var __defProp$7 = Object.defineProperty;
|
|
95246
|
+
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
96733
95247
|
value,
|
|
96734
95248
|
configurable: true
|
|
96735
95249
|
});
|
|
@@ -96739,7 +95253,7 @@ var PROVIDER_NAME = "TooltipProvider";
|
|
|
96739
95253
|
var DEFAULT_DELAY_DURATION = 700;
|
|
96740
95254
|
var TOOLTIP_OPEN = "tooltip.open";
|
|
96741
95255
|
var [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);
|
|
96742
|
-
var TooltipProvider = /* @__PURE__ */ __name$
|
|
95256
|
+
var TooltipProvider = /* @__PURE__ */ __name$7((props) => {
|
|
96743
95257
|
const { __scopeTooltip, delayDuration = DEFAULT_DELAY_DURATION, skipDelayDuration = 300, disableHoverableContent = false, children } = props;
|
|
96744
95258
|
const isOpenDelayedRef = m.useRef(true);
|
|
96745
95259
|
const isPointerInTransitRef = m.useRef(false);
|
|
@@ -96772,7 +95286,7 @@ var TooltipProvider = /* @__PURE__ */ __name$9((props) => {
|
|
|
96772
95286
|
}, "TooltipProvider");
|
|
96773
95287
|
var TOOLTIP_NAME = "Tooltip";
|
|
96774
95288
|
var [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);
|
|
96775
|
-
var Tooltip = /* @__PURE__ */ __name$
|
|
95289
|
+
var Tooltip = /* @__PURE__ */ __name$7((props) => {
|
|
96776
95290
|
const { __scopeTooltip, children, open: openProp, defaultOpen, onOpenChange, disableHoverableContent: disableHoverableContentProp, delayDuration: delayDurationProp } = props;
|
|
96777
95291
|
const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
|
|
96778
95292
|
const popperScope = usePopperScope$1(__scopeTooltip);
|
|
@@ -96786,7 +95300,7 @@ var Tooltip = /* @__PURE__ */ __name$9((props) => {
|
|
|
96786
95300
|
const [open, setOpen] = useControllableState({
|
|
96787
95301
|
prop: openProp,
|
|
96788
95302
|
defaultProp: defaultOpen ?? false,
|
|
96789
|
-
onChange: /* @__PURE__ */ __name$
|
|
95303
|
+
onChange: /* @__PURE__ */ __name$7((open2) => {
|
|
96790
95304
|
if (open2) {
|
|
96791
95305
|
providerContext.onOpen();
|
|
96792
95306
|
document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN));
|
|
@@ -96859,7 +95373,7 @@ var Tooltip = /* @__PURE__ */ __name$9((props) => {
|
|
|
96859
95373
|
});
|
|
96860
95374
|
}, "Tooltip");
|
|
96861
95375
|
var TRIGGER_NAME$2 = "TooltipTrigger";
|
|
96862
|
-
var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95376
|
+
var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipTrigger2(props, forwardedRef) {
|
|
96863
95377
|
const { __scopeTooltip, ...triggerProps } = props;
|
|
96864
95378
|
const context = useTooltipContext(TRIGGER_NAME$2, __scopeTooltip);
|
|
96865
95379
|
const providerContext = useTooltipProviderContext(TRIGGER_NAME$2, __scopeTooltip);
|
|
@@ -96905,7 +95419,7 @@ var TooltipTrigger = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(funct
|
|
|
96905
95419
|
}, "TooltipTrigger"));
|
|
96906
95420
|
var PORTAL_NAME$2 = "TooltipPortal";
|
|
96907
95421
|
var [PortalProvider$2, usePortalContext$2] = createTooltipContext(PORTAL_NAME$2, { forceMount: void 0 });
|
|
96908
|
-
var TooltipPortal = /* @__PURE__ */ __name$
|
|
95422
|
+
var TooltipPortal = /* @__PURE__ */ __name$7((props) => {
|
|
96909
95423
|
const { __scopeTooltip, forceMount, children, container } = props;
|
|
96910
95424
|
const context = useTooltipContext(PORTAL_NAME$2, __scopeTooltip);
|
|
96911
95425
|
return /* @__PURE__ */ jsx(PortalProvider$2, {
|
|
@@ -96922,7 +95436,7 @@ var TooltipPortal = /* @__PURE__ */ __name$9((props) => {
|
|
|
96922
95436
|
});
|
|
96923
95437
|
}, "TooltipPortal");
|
|
96924
95438
|
var CONTENT_NAME$3 = "TooltipContent";
|
|
96925
|
-
var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95439
|
+
var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContent2(props, forwardedRef) {
|
|
96926
95440
|
const portalContext = usePortalContext$2(CONTENT_NAME$3, props.__scopeTooltip);
|
|
96927
95441
|
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
96928
95442
|
const context = useTooltipContext(CONTENT_NAME$3, props.__scopeTooltip);
|
|
@@ -96939,7 +95453,7 @@ var TooltipContent = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(funct
|
|
|
96939
95453
|
})
|
|
96940
95454
|
});
|
|
96941
95455
|
}, "TooltipContent"));
|
|
96942
|
-
var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95456
|
+
var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContentHoverable2(props, forwardedRef) {
|
|
96943
95457
|
const context = useTooltipContext(CONTENT_NAME$3, props.__scopeTooltip);
|
|
96944
95458
|
const providerContext = useTooltipProviderContext(CONTENT_NAME$3, props.__scopeTooltip);
|
|
96945
95459
|
const ref = m.useRef(null);
|
|
@@ -96969,8 +95483,8 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
|
|
|
96969
95483
|
}, [handleRemoveGraceArea]);
|
|
96970
95484
|
m.useEffect(() => {
|
|
96971
95485
|
if (trigger && content) {
|
|
96972
|
-
const handleTriggerLeave = /* @__PURE__ */ __name$
|
|
96973
|
-
const handleContentLeave = /* @__PURE__ */ __name$
|
|
95486
|
+
const handleTriggerLeave = /* @__PURE__ */ __name$7((event) => handleCreateGraceArea(event, content), "handleTriggerLeave");
|
|
95487
|
+
const handleContentLeave = /* @__PURE__ */ __name$7((event) => handleCreateGraceArea(event, trigger), "handleContentLeave");
|
|
96974
95488
|
trigger.addEventListener("pointerleave", handleTriggerLeave);
|
|
96975
95489
|
content.addEventListener("pointerleave", handleContentLeave);
|
|
96976
95490
|
return () => {
|
|
@@ -96986,7 +95500,7 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
|
|
|
96986
95500
|
]);
|
|
96987
95501
|
m.useEffect(() => {
|
|
96988
95502
|
if (pointerGraceArea) {
|
|
96989
|
-
const handleTrackPointerGrace = /* @__PURE__ */ __name$
|
|
95503
|
+
const handleTrackPointerGrace = /* @__PURE__ */ __name$7((event) => {
|
|
96990
95504
|
const target = event.target;
|
|
96991
95505
|
const pointerPosition = {
|
|
96992
95506
|
x: event.clientX,
|
|
@@ -97016,7 +95530,7 @@ var TooltipContentHoverable = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __nam
|
|
|
97016
95530
|
});
|
|
97017
95531
|
}, "TooltipContentHoverable"));
|
|
97018
95532
|
var Slottable = /* @__PURE__ */ createSlottable("TooltipContent");
|
|
97019
|
-
var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95533
|
+
var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipContentImpl2(props, forwardedRef) {
|
|
97020
95534
|
const { __scopeTooltip, children, "aria-label": ariaLabel, id: idProp, onEscapeKeyDown, onPointerDownOutside, ...contentProps } = props;
|
|
97021
95535
|
const context = useTooltipContext(CONTENT_NAME$3, __scopeTooltip);
|
|
97022
95536
|
const popperScope = usePopperScope$1(__scopeTooltip);
|
|
@@ -97027,7 +95541,7 @@ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(f
|
|
|
97027
95541
|
}, [onClose]);
|
|
97028
95542
|
m.useEffect(() => {
|
|
97029
95543
|
if (context.trigger) {
|
|
97030
|
-
const handleScroll = /* @__PURE__ */ __name$
|
|
95544
|
+
const handleScroll = /* @__PURE__ */ __name$7((event) => {
|
|
97031
95545
|
if (event.target instanceof Node && event.target.contains(context.trigger)) onClose();
|
|
97032
95546
|
}, "handleScroll");
|
|
97033
95547
|
window.addEventListener("scroll", handleScroll, { capture: true });
|
|
@@ -97071,7 +95585,7 @@ var TooltipContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$9(f
|
|
|
97071
95585
|
})
|
|
97072
95586
|
});
|
|
97073
95587
|
}, "TooltipContentImpl"));
|
|
97074
|
-
var TooltipArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$
|
|
95588
|
+
var TooltipArrow = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$7(function TooltipArrow2(props, forwardedRef) {
|
|
97075
95589
|
const { __scopeTooltip, ...arrowProps } = props;
|
|
97076
95590
|
const popperScope = usePopperScope$1(__scopeTooltip);
|
|
97077
95591
|
return /* @__PURE__ */ jsx(Arrow, {
|
|
@@ -97093,7 +95607,7 @@ function getExitSideFromRect(point, rect) {
|
|
|
97093
95607
|
default: throw new Error("unreachable");
|
|
97094
95608
|
}
|
|
97095
95609
|
}
|
|
97096
|
-
__name$
|
|
95610
|
+
__name$7(getExitSideFromRect, "getExitSideFromRect");
|
|
97097
95611
|
function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
97098
95612
|
const paddedExitPoints = [];
|
|
97099
95613
|
switch (exitSide) {
|
|
@@ -97134,7 +95648,7 @@ function getPaddedExitPoints(exitPoint, exitSide, padding = 5) {
|
|
|
97134
95648
|
}
|
|
97135
95649
|
return paddedExitPoints;
|
|
97136
95650
|
}
|
|
97137
|
-
__name$
|
|
95651
|
+
__name$7(getPaddedExitPoints, "getPaddedExitPoints");
|
|
97138
95652
|
function getPointsFromRect(rect) {
|
|
97139
95653
|
const { top, right, bottom, left } = rect;
|
|
97140
95654
|
return [
|
|
@@ -97156,7 +95670,7 @@ function getPointsFromRect(rect) {
|
|
|
97156
95670
|
}
|
|
97157
95671
|
];
|
|
97158
95672
|
}
|
|
97159
|
-
__name$
|
|
95673
|
+
__name$7(getPointsFromRect, "getPointsFromRect");
|
|
97160
95674
|
function isPointInPolygon$1(point, polygon) {
|
|
97161
95675
|
const { x, y } = point;
|
|
97162
95676
|
let inside = false;
|
|
@@ -97171,7 +95685,7 @@ function isPointInPolygon$1(point, polygon) {
|
|
|
97171
95685
|
}
|
|
97172
95686
|
return inside;
|
|
97173
95687
|
}
|
|
97174
|
-
__name$
|
|
95688
|
+
__name$7(isPointInPolygon$1, "isPointInPolygon");
|
|
97175
95689
|
function getHull(points) {
|
|
97176
95690
|
const newPoints = points.slice();
|
|
97177
95691
|
newPoints.sort((a, b) => {
|
|
@@ -97183,7 +95697,7 @@ function getHull(points) {
|
|
|
97183
95697
|
});
|
|
97184
95698
|
return getHullPresorted(newPoints);
|
|
97185
95699
|
}
|
|
97186
|
-
__name$
|
|
95700
|
+
__name$7(getHull, "getHull");
|
|
97187
95701
|
function getHullPresorted(points) {
|
|
97188
95702
|
if (points.length <= 1) return points.slice();
|
|
97189
95703
|
const upperHull = [];
|
|
@@ -97213,7 +95727,7 @@ function getHullPresorted(points) {
|
|
|
97213
95727
|
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) return upperHull;
|
|
97214
95728
|
else return upperHull.concat(lowerHull);
|
|
97215
95729
|
}
|
|
97216
|
-
__name$
|
|
95730
|
+
__name$7(getHullPresorted, "getHullPresorted");
|
|
97217
95731
|
var Provider$2 = TooltipProvider;
|
|
97218
95732
|
var Root3$1 = Tooltip;
|
|
97219
95733
|
var Trigger$1 = TooltipTrigger;
|
|
@@ -98036,690 +96550,6 @@ var verificationModalHeaderStyle = "_1c7tq6rm _1c7tq6rl _1irym63l9 _1irym63jr _1
|
|
|
98036
96550
|
var verificationModalCloseStyle = "_1c7tq6ro _1c7tq6rn _1irym63mn _1irym636r _1irym63n5";
|
|
98037
96551
|
var verificationModalFrameStyle = "_1c7tq6rp";
|
|
98038
96552
|
//#endregion
|
|
98039
|
-
//#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
|
|
98040
|
-
var __defProp$8 = Object.defineProperty;
|
|
98041
|
-
var __name$8 = (target, value) => __defProp$8(target, "name", {
|
|
98042
|
-
value,
|
|
98043
|
-
configurable: true
|
|
98044
|
-
});
|
|
98045
|
-
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
98046
|
-
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
98047
|
-
var EVENT_OPTIONS$1 = {
|
|
98048
|
-
bubbles: false,
|
|
98049
|
-
cancelable: true
|
|
98050
|
-
};
|
|
98051
|
-
var FocusScope = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$8(function FocusScope2(props, forwardedRef) {
|
|
98052
|
-
const { loop = false, trapped = false, onMountAutoFocus: onMountAutoFocusProp, onUnmountAutoFocus: onUnmountAutoFocusProp, ...scopeProps } = props;
|
|
98053
|
-
const [container, setContainer] = m.useState(null);
|
|
98054
|
-
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
|
|
98055
|
-
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
|
|
98056
|
-
const lastFocusedElementRef = m.useRef(null);
|
|
98057
|
-
const composedRefs = useComposedRefs(forwardedRef, setContainer);
|
|
98058
|
-
const focusScope = m.useRef({
|
|
98059
|
-
paused: false,
|
|
98060
|
-
pause() {
|
|
98061
|
-
this.paused = true;
|
|
98062
|
-
},
|
|
98063
|
-
resume() {
|
|
98064
|
-
this.paused = false;
|
|
98065
|
-
}
|
|
98066
|
-
}).current;
|
|
98067
|
-
m.useEffect(() => {
|
|
98068
|
-
if (trapped) {
|
|
98069
|
-
let handleFocusIn2 = function(event) {
|
|
98070
|
-
if (focusScope.paused || !container) return;
|
|
98071
|
-
const target = event.target;
|
|
98072
|
-
if (container.contains(target)) lastFocusedElementRef.current = target;
|
|
98073
|
-
else focus(lastFocusedElementRef.current, { select: true });
|
|
98074
|
-
}, handleFocusOut2 = function(event) {
|
|
98075
|
-
if (focusScope.paused || !container) return;
|
|
98076
|
-
const relatedTarget = event.relatedTarget;
|
|
98077
|
-
if (relatedTarget === null) return;
|
|
98078
|
-
if (!container.contains(relatedTarget)) focus(lastFocusedElementRef.current, { select: true });
|
|
98079
|
-
}, handleMutations2 = function(mutations) {
|
|
98080
|
-
if (document.activeElement !== document.body) return;
|
|
98081
|
-
for (const mutation of mutations) if (mutation.removedNodes.length > 0) focus(container);
|
|
98082
|
-
};
|
|
98083
|
-
__name$8(handleFocusIn2, "handleFocusIn");
|
|
98084
|
-
__name$8(handleFocusOut2, "handleFocusOut");
|
|
98085
|
-
__name$8(handleMutations2, "handleMutations");
|
|
98086
|
-
document.addEventListener("focusin", handleFocusIn2);
|
|
98087
|
-
document.addEventListener("focusout", handleFocusOut2);
|
|
98088
|
-
const mutationObserver = new MutationObserver(handleMutations2);
|
|
98089
|
-
if (container) mutationObserver.observe(container, {
|
|
98090
|
-
childList: true,
|
|
98091
|
-
subtree: true
|
|
98092
|
-
});
|
|
98093
|
-
return () => {
|
|
98094
|
-
document.removeEventListener("focusin", handleFocusIn2);
|
|
98095
|
-
document.removeEventListener("focusout", handleFocusOut2);
|
|
98096
|
-
mutationObserver.disconnect();
|
|
98097
|
-
};
|
|
98098
|
-
}
|
|
98099
|
-
}, [
|
|
98100
|
-
trapped,
|
|
98101
|
-
container,
|
|
98102
|
-
focusScope.paused
|
|
98103
|
-
]);
|
|
98104
|
-
m.useEffect(() => {
|
|
98105
|
-
if (container) {
|
|
98106
|
-
focusScopesStack.add(focusScope);
|
|
98107
|
-
const previouslyFocusedElement = document.activeElement;
|
|
98108
|
-
if (!container.contains(previouslyFocusedElement)) {
|
|
98109
|
-
const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS$1);
|
|
98110
|
-
container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
98111
|
-
container.dispatchEvent(mountEvent);
|
|
98112
|
-
if (!mountEvent.defaultPrevented) {
|
|
98113
|
-
focusFirst$2(removeLinks(getTabbableCandidates(container)), { select: true });
|
|
98114
|
-
if (document.activeElement === previouslyFocusedElement) focus(container);
|
|
98115
|
-
}
|
|
98116
|
-
}
|
|
98117
|
-
return () => {
|
|
98118
|
-
container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);
|
|
98119
|
-
setTimeout(() => {
|
|
98120
|
-
const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS$1);
|
|
98121
|
-
container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
98122
|
-
container.dispatchEvent(unmountEvent);
|
|
98123
|
-
if (!unmountEvent.defaultPrevented) focus(previouslyFocusedElement ?? document.body, { select: true });
|
|
98124
|
-
container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);
|
|
98125
|
-
focusScopesStack.remove(focusScope);
|
|
98126
|
-
}, 0);
|
|
98127
|
-
};
|
|
98128
|
-
}
|
|
98129
|
-
}, [
|
|
98130
|
-
container,
|
|
98131
|
-
onMountAutoFocus,
|
|
98132
|
-
onUnmountAutoFocus,
|
|
98133
|
-
focusScope
|
|
98134
|
-
]);
|
|
98135
|
-
const handleKeyDown = m.useCallback((event) => {
|
|
98136
|
-
if (!loop && !trapped) return;
|
|
98137
|
-
if (focusScope.paused) return;
|
|
98138
|
-
const isTabKey = event.key === "Tab" && !event.altKey && !event.ctrlKey && !event.metaKey;
|
|
98139
|
-
const focusedElement = document.activeElement;
|
|
98140
|
-
if (isTabKey && focusedElement) {
|
|
98141
|
-
const container2 = event.currentTarget;
|
|
98142
|
-
const [first, last] = getTabbableEdges(container2);
|
|
98143
|
-
if (!(first && last)) {
|
|
98144
|
-
if (focusedElement === container2) event.preventDefault();
|
|
98145
|
-
} else if (!event.shiftKey && focusedElement === last) {
|
|
98146
|
-
event.preventDefault();
|
|
98147
|
-
if (loop) focus(first, { select: true });
|
|
98148
|
-
} else if (event.shiftKey && focusedElement === first) {
|
|
98149
|
-
event.preventDefault();
|
|
98150
|
-
if (loop) focus(last, { select: true });
|
|
98151
|
-
}
|
|
98152
|
-
}
|
|
98153
|
-
}, [
|
|
98154
|
-
loop,
|
|
98155
|
-
trapped,
|
|
98156
|
-
focusScope.paused
|
|
98157
|
-
]);
|
|
98158
|
-
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
98159
|
-
tabIndex: -1,
|
|
98160
|
-
...scopeProps,
|
|
98161
|
-
ref: composedRefs,
|
|
98162
|
-
onKeyDown: handleKeyDown
|
|
98163
|
-
});
|
|
98164
|
-
}, "FocusScope"));
|
|
98165
|
-
function focusFirst$2(candidates, { select = false } = {}) {
|
|
98166
|
-
const previouslyFocusedElement = document.activeElement;
|
|
98167
|
-
for (const candidate of candidates) {
|
|
98168
|
-
focus(candidate, { select });
|
|
98169
|
-
if (document.activeElement !== previouslyFocusedElement) return;
|
|
98170
|
-
}
|
|
98171
|
-
}
|
|
98172
|
-
__name$8(focusFirst$2, "focusFirst");
|
|
98173
|
-
function getTabbableEdges(container) {
|
|
98174
|
-
const candidates = getTabbableCandidates(container);
|
|
98175
|
-
return [findVisible(candidates, container), findVisible(candidates.reverse(), container)];
|
|
98176
|
-
}
|
|
98177
|
-
__name$8(getTabbableEdges, "getTabbableEdges");
|
|
98178
|
-
function getTabbableCandidates(container) {
|
|
98179
|
-
const nodes = [];
|
|
98180
|
-
const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ __name$8((node) => {
|
|
98181
|
-
const isHiddenInput = node.tagName === "INPUT" && node.type === "hidden";
|
|
98182
|
-
if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;
|
|
98183
|
-
return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
98184
|
-
}, "acceptNode") });
|
|
98185
|
-
while (walker.nextNode()) nodes.push(walker.currentNode);
|
|
98186
|
-
return nodes;
|
|
98187
|
-
}
|
|
98188
|
-
__name$8(getTabbableCandidates, "getTabbableCandidates");
|
|
98189
|
-
function findVisible(elements, container) {
|
|
98190
|
-
const canUseCheckVisibility = typeof container.checkVisibility === "function" && container.checkVisibility({ checkVisibilityCSS: true });
|
|
98191
|
-
for (const element of elements) if (!(canUseCheckVisibility ? !element.checkVisibility({ checkVisibilityCSS: true }) : isHidden(element, { upTo: container }))) return element;
|
|
98192
|
-
}
|
|
98193
|
-
__name$8(findVisible, "findVisible");
|
|
98194
|
-
function isHidden(node, { upTo }) {
|
|
98195
|
-
if (getComputedStyle(node).visibility === "hidden") return true;
|
|
98196
|
-
while (node) {
|
|
98197
|
-
if (upTo !== void 0 && node === upTo) return false;
|
|
98198
|
-
if (getComputedStyle(node).display === "none") return true;
|
|
98199
|
-
node = node.parentElement;
|
|
98200
|
-
}
|
|
98201
|
-
return false;
|
|
98202
|
-
}
|
|
98203
|
-
__name$8(isHidden, "isHidden");
|
|
98204
|
-
function isSelectableInput(element) {
|
|
98205
|
-
return element instanceof HTMLInputElement && "select" in element;
|
|
98206
|
-
}
|
|
98207
|
-
__name$8(isSelectableInput, "isSelectableInput");
|
|
98208
|
-
function focus(element, { select = false } = {}) {
|
|
98209
|
-
if (element && element.focus) {
|
|
98210
|
-
const previouslyFocusedElement = document.activeElement;
|
|
98211
|
-
element.focus({ preventScroll: true });
|
|
98212
|
-
if (element !== previouslyFocusedElement && isSelectableInput(element) && select) element.select();
|
|
98213
|
-
}
|
|
98214
|
-
}
|
|
98215
|
-
__name$8(focus, "focus");
|
|
98216
|
-
var focusScopesStack = createFocusScopesStack();
|
|
98217
|
-
function createFocusScopesStack() {
|
|
98218
|
-
let stack = [];
|
|
98219
|
-
return {
|
|
98220
|
-
add(focusScope) {
|
|
98221
|
-
const activeFocusScope = stack[0];
|
|
98222
|
-
if (focusScope !== activeFocusScope) activeFocusScope?.pause();
|
|
98223
|
-
stack = arrayRemove(stack, focusScope);
|
|
98224
|
-
stack.unshift(focusScope);
|
|
98225
|
-
},
|
|
98226
|
-
remove(focusScope) {
|
|
98227
|
-
stack = arrayRemove(stack, focusScope);
|
|
98228
|
-
stack[0]?.resume();
|
|
98229
|
-
}
|
|
98230
|
-
};
|
|
98231
|
-
}
|
|
98232
|
-
__name$8(createFocusScopesStack, "createFocusScopesStack");
|
|
98233
|
-
function arrayRemove(array, item) {
|
|
98234
|
-
const updatedArray = [...array];
|
|
98235
|
-
const index = updatedArray.indexOf(item);
|
|
98236
|
-
if (index !== -1) updatedArray.splice(index, 1);
|
|
98237
|
-
return updatedArray;
|
|
98238
|
-
}
|
|
98239
|
-
__name$8(arrayRemove, "arrayRemove");
|
|
98240
|
-
function removeLinks(items) {
|
|
98241
|
-
return items.filter((item) => item.tagName !== "A");
|
|
98242
|
-
}
|
|
98243
|
-
__name$8(removeLinks, "removeLinks");
|
|
98244
|
-
//#endregion
|
|
98245
|
-
//#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
|
|
98246
|
-
var __defProp$7 = Object.defineProperty;
|
|
98247
|
-
var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
98248
|
-
value,
|
|
98249
|
-
configurable: true
|
|
98250
|
-
});
|
|
98251
|
-
var count = 0;
|
|
98252
|
-
var guards = null;
|
|
98253
|
-
function FocusGuards(props) {
|
|
98254
|
-
useFocusGuards();
|
|
98255
|
-
return props.children;
|
|
98256
|
-
}
|
|
98257
|
-
__name$7(FocusGuards, "FocusGuards");
|
|
98258
|
-
function useFocusGuards() {
|
|
98259
|
-
m.useEffect(() => {
|
|
98260
|
-
if (!guards) guards = {
|
|
98261
|
-
start: createFocusGuard(),
|
|
98262
|
-
end: createFocusGuard()
|
|
98263
|
-
};
|
|
98264
|
-
const { start, end } = guards;
|
|
98265
|
-
if (document.body.firstElementChild !== start) document.body.insertAdjacentElement("afterbegin", start);
|
|
98266
|
-
if (document.body.lastElementChild !== end) document.body.insertAdjacentElement("beforeend", end);
|
|
98267
|
-
count++;
|
|
98268
|
-
return () => {
|
|
98269
|
-
if (count === 1) {
|
|
98270
|
-
guards?.start.remove();
|
|
98271
|
-
guards?.end.remove();
|
|
98272
|
-
guards = null;
|
|
98273
|
-
}
|
|
98274
|
-
count = Math.max(0, count - 1);
|
|
98275
|
-
};
|
|
98276
|
-
}, []);
|
|
98277
|
-
}
|
|
98278
|
-
__name$7(useFocusGuards, "useFocusGuards");
|
|
98279
|
-
function createFocusGuard() {
|
|
98280
|
-
const element = document.createElement("span");
|
|
98281
|
-
element.setAttribute("data-radix-focus-guard", "");
|
|
98282
|
-
element.tabIndex = 0;
|
|
98283
|
-
element.style.outline = "none";
|
|
98284
|
-
element.style.opacity = "0";
|
|
98285
|
-
element.style.position = "fixed";
|
|
98286
|
-
element.style.pointerEvents = "none";
|
|
98287
|
-
return element;
|
|
98288
|
-
}
|
|
98289
|
-
__name$7(createFocusGuard, "createFocusGuard");
|
|
98290
|
-
//#endregion
|
|
98291
|
-
//#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
|
|
98292
|
-
var effectCar = createSidecarMedium();
|
|
98293
|
-
//#endregion
|
|
98294
|
-
//#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
|
|
98295
|
-
init_tslib_es6();
|
|
98296
|
-
var nothing = function() {};
|
|
98297
|
-
/**
|
|
98298
|
-
* Removes scrollbar from the page and contain the scroll within the Lock
|
|
98299
|
-
*/
|
|
98300
|
-
var RemoveScroll = m.forwardRef(function(props, parentRef) {
|
|
98301
|
-
var ref = m.useRef(null);
|
|
98302
|
-
var _a = m.useState({
|
|
98303
|
-
onScrollCapture: nothing,
|
|
98304
|
-
onWheelCapture: nothing,
|
|
98305
|
-
onTouchMoveCapture: nothing
|
|
98306
|
-
}), callbacks = _a[0], setCallbacks = _a[1];
|
|
98307
|
-
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, [
|
|
98308
|
-
"forwardProps",
|
|
98309
|
-
"children",
|
|
98310
|
-
"className",
|
|
98311
|
-
"removeScrollBar",
|
|
98312
|
-
"enabled",
|
|
98313
|
-
"shards",
|
|
98314
|
-
"sideCar",
|
|
98315
|
-
"noRelative",
|
|
98316
|
-
"noIsolation",
|
|
98317
|
-
"inert",
|
|
98318
|
-
"allowPinchZoom",
|
|
98319
|
-
"as",
|
|
98320
|
-
"gapMode"
|
|
98321
|
-
]);
|
|
98322
|
-
var SideCar = sideCar;
|
|
98323
|
-
var containerRef = useMergeRefs([ref, parentRef]);
|
|
98324
|
-
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
98325
|
-
return m.createElement(m.Fragment, null, enabled && m.createElement(SideCar, {
|
|
98326
|
-
sideCar: effectCar,
|
|
98327
|
-
removeScrollBar,
|
|
98328
|
-
shards,
|
|
98329
|
-
noRelative,
|
|
98330
|
-
noIsolation,
|
|
98331
|
-
inert,
|
|
98332
|
-
setCallbacks,
|
|
98333
|
-
allowPinchZoom: !!allowPinchZoom,
|
|
98334
|
-
lockRef: ref,
|
|
98335
|
-
gapMode
|
|
98336
|
-
}), forwardProps ? m.cloneElement(m.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : m.createElement(Container, __assign({}, containerProps, {
|
|
98337
|
-
className,
|
|
98338
|
-
ref: containerRef
|
|
98339
|
-
}), children));
|
|
98340
|
-
});
|
|
98341
|
-
RemoveScroll.defaultProps = {
|
|
98342
|
-
enabled: true,
|
|
98343
|
-
removeScrollBar: true,
|
|
98344
|
-
inert: false
|
|
98345
|
-
};
|
|
98346
|
-
RemoveScroll.classNames = {
|
|
98347
|
-
fullWidth: fullWidthClassName,
|
|
98348
|
-
zeroRight: zeroRightClassName
|
|
98349
|
-
};
|
|
98350
|
-
//#endregion
|
|
98351
|
-
//#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
|
|
98352
|
-
var passiveSupported = false;
|
|
98353
|
-
if (typeof window !== "undefined") try {
|
|
98354
|
-
var options = Object.defineProperty({}, "passive", { get: function() {
|
|
98355
|
-
passiveSupported = true;
|
|
98356
|
-
return true;
|
|
98357
|
-
} });
|
|
98358
|
-
window.addEventListener("test", options, options);
|
|
98359
|
-
window.removeEventListener("test", options, options);
|
|
98360
|
-
} catch (err) {
|
|
98361
|
-
passiveSupported = false;
|
|
98362
|
-
}
|
|
98363
|
-
var nonPassive = passiveSupported ? { passive: false } : false;
|
|
98364
|
-
//#endregion
|
|
98365
|
-
//#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
|
|
98366
|
-
var alwaysContainsScroll = function(node) {
|
|
98367
|
-
return node.tagName === "TEXTAREA";
|
|
98368
|
-
};
|
|
98369
|
-
var elementCanBeScrolled = function(node, overflow) {
|
|
98370
|
-
if (!(node instanceof Element)) return false;
|
|
98371
|
-
var styles = window.getComputedStyle(node);
|
|
98372
|
-
return styles[overflow] !== "hidden" && !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === "visible");
|
|
98373
|
-
};
|
|
98374
|
-
var elementCouldBeVScrolled = function(node) {
|
|
98375
|
-
return elementCanBeScrolled(node, "overflowY");
|
|
98376
|
-
};
|
|
98377
|
-
var elementCouldBeHScrolled = function(node) {
|
|
98378
|
-
return elementCanBeScrolled(node, "overflowX");
|
|
98379
|
-
};
|
|
98380
|
-
var locationCouldBeScrolled = function(axis, node) {
|
|
98381
|
-
var ownerDocument = node.ownerDocument;
|
|
98382
|
-
var current = node;
|
|
98383
|
-
do {
|
|
98384
|
-
if (typeof ShadowRoot !== "undefined" && current instanceof ShadowRoot) current = current.host;
|
|
98385
|
-
if (elementCouldBeScrolled(axis, current)) {
|
|
98386
|
-
var _a = getScrollVariables(axis, current);
|
|
98387
|
-
if (_a[1] > _a[2]) return true;
|
|
98388
|
-
}
|
|
98389
|
-
current = current.parentNode;
|
|
98390
|
-
} while (current && current !== ownerDocument.body);
|
|
98391
|
-
return false;
|
|
98392
|
-
};
|
|
98393
|
-
var getVScrollVariables = function(_a) {
|
|
98394
|
-
return [
|
|
98395
|
-
_a.scrollTop,
|
|
98396
|
-
_a.scrollHeight,
|
|
98397
|
-
_a.clientHeight
|
|
98398
|
-
];
|
|
98399
|
-
};
|
|
98400
|
-
var getHScrollVariables = function(_a) {
|
|
98401
|
-
return [
|
|
98402
|
-
_a.scrollLeft,
|
|
98403
|
-
_a.scrollWidth,
|
|
98404
|
-
_a.clientWidth
|
|
98405
|
-
];
|
|
98406
|
-
};
|
|
98407
|
-
var elementCouldBeScrolled = function(axis, node) {
|
|
98408
|
-
return axis === "v" ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
|
|
98409
|
-
};
|
|
98410
|
-
var getScrollVariables = function(axis, node) {
|
|
98411
|
-
return axis === "v" ? getVScrollVariables(node) : getHScrollVariables(node);
|
|
98412
|
-
};
|
|
98413
|
-
var getDirectionFactor = function(axis, direction) {
|
|
98414
|
-
/**
|
|
98415
|
-
* If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
|
|
98416
|
-
* and then increasingly negative as you scroll towards the end of the content.
|
|
98417
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
|
|
98418
|
-
*/
|
|
98419
|
-
return axis === "h" && direction === "rtl" ? -1 : 1;
|
|
98420
|
-
};
|
|
98421
|
-
var handleScroll = function(axis, endTarget, event, sourceDelta, noOverscroll) {
|
|
98422
|
-
var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
|
|
98423
|
-
var delta = directionFactor * sourceDelta;
|
|
98424
|
-
var target = event.target;
|
|
98425
|
-
var targetInLock = endTarget.contains(target);
|
|
98426
|
-
var shouldCancelScroll = false;
|
|
98427
|
-
var isDeltaPositive = delta > 0;
|
|
98428
|
-
var availableScroll = 0;
|
|
98429
|
-
var availableScrollTop = 0;
|
|
98430
|
-
do {
|
|
98431
|
-
if (!target) break;
|
|
98432
|
-
var _a = getScrollVariables(axis, target), position = _a[0];
|
|
98433
|
-
var elementScroll = _a[1] - _a[2] - directionFactor * position;
|
|
98434
|
-
if (position || elementScroll) {
|
|
98435
|
-
if (elementCouldBeScrolled(axis, target)) {
|
|
98436
|
-
availableScroll += elementScroll;
|
|
98437
|
-
availableScrollTop += position;
|
|
98438
|
-
}
|
|
98439
|
-
}
|
|
98440
|
-
var parent_1 = target.parentNode;
|
|
98441
|
-
target = parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1;
|
|
98442
|
-
} while (!targetInLock && target !== document.body || targetInLock && (endTarget.contains(target) || endTarget === target));
|
|
98443
|
-
if (isDeltaPositive && (noOverscroll && Math.abs(availableScroll) < 1 || !noOverscroll && delta > availableScroll)) shouldCancelScroll = true;
|
|
98444
|
-
else if (!isDeltaPositive && (noOverscroll && Math.abs(availableScrollTop) < 1 || !noOverscroll && -delta > availableScrollTop)) shouldCancelScroll = true;
|
|
98445
|
-
return shouldCancelScroll;
|
|
98446
|
-
};
|
|
98447
|
-
//#endregion
|
|
98448
|
-
//#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
|
|
98449
|
-
init_tslib_es6();
|
|
98450
|
-
var getTouchXY = function(event) {
|
|
98451
|
-
return "changedTouches" in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];
|
|
98452
|
-
};
|
|
98453
|
-
var getDeltaXY = function(event) {
|
|
98454
|
-
return [event.deltaX, event.deltaY];
|
|
98455
|
-
};
|
|
98456
|
-
var extractRef = function(ref) {
|
|
98457
|
-
return ref && "current" in ref ? ref.current : ref;
|
|
98458
|
-
};
|
|
98459
|
-
var deltaCompare = function(x, y) {
|
|
98460
|
-
return x[0] === y[0] && x[1] === y[1];
|
|
98461
|
-
};
|
|
98462
|
-
var generateStyle = function(id) {
|
|
98463
|
-
return "\n .block-interactivity-".concat(id, " {pointer-events: none;}\n .allow-interactivity-").concat(id, " {pointer-events: all;}\n");
|
|
98464
|
-
};
|
|
98465
|
-
var idCounter$1 = 0;
|
|
98466
|
-
var lockStack = [];
|
|
98467
|
-
function RemoveScrollSideCar(props) {
|
|
98468
|
-
var shouldPreventQueue = m.useRef([]);
|
|
98469
|
-
var touchStartRef = m.useRef([0, 0]);
|
|
98470
|
-
var activeAxis = m.useRef();
|
|
98471
|
-
var id = m.useState(idCounter$1++)[0];
|
|
98472
|
-
var Style = m.useState(styleSingleton)[0];
|
|
98473
|
-
var lastProps = m.useRef(props);
|
|
98474
|
-
m.useEffect(function() {
|
|
98475
|
-
lastProps.current = props;
|
|
98476
|
-
}, [props]);
|
|
98477
|
-
m.useEffect(function() {
|
|
98478
|
-
if (props.inert) {
|
|
98479
|
-
document.body.classList.add("block-interactivity-".concat(id));
|
|
98480
|
-
var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
|
|
98481
|
-
allow_1.forEach(function(el) {
|
|
98482
|
-
return el.classList.add("allow-interactivity-".concat(id));
|
|
98483
|
-
});
|
|
98484
|
-
return function() {
|
|
98485
|
-
document.body.classList.remove("block-interactivity-".concat(id));
|
|
98486
|
-
allow_1.forEach(function(el) {
|
|
98487
|
-
return el.classList.remove("allow-interactivity-".concat(id));
|
|
98488
|
-
});
|
|
98489
|
-
};
|
|
98490
|
-
}
|
|
98491
|
-
}, [
|
|
98492
|
-
props.inert,
|
|
98493
|
-
props.lockRef.current,
|
|
98494
|
-
props.shards
|
|
98495
|
-
]);
|
|
98496
|
-
var shouldCancelEvent = m.useCallback(function(event, parent) {
|
|
98497
|
-
if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) return !lastProps.current.allowPinchZoom;
|
|
98498
|
-
var touch = getTouchXY(event);
|
|
98499
|
-
var touchStart = touchStartRef.current;
|
|
98500
|
-
var deltaX = "deltaX" in event ? event.deltaX : touchStart[0] - touch[0];
|
|
98501
|
-
var deltaY = "deltaY" in event ? event.deltaY : touchStart[1] - touch[1];
|
|
98502
|
-
var currentAxis;
|
|
98503
|
-
var target = event.target;
|
|
98504
|
-
var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? "h" : "v";
|
|
98505
|
-
if ("touches" in event && moveDirection === "h" && target.type === "range") return false;
|
|
98506
|
-
var selection = window.getSelection();
|
|
98507
|
-
var anchorNode = selection && selection.anchorNode;
|
|
98508
|
-
if (anchorNode ? anchorNode === target || anchorNode.contains(target) : false) return false;
|
|
98509
|
-
var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
98510
|
-
if (!canBeScrolledInMainDirection) return true;
|
|
98511
|
-
if (canBeScrolledInMainDirection) currentAxis = moveDirection;
|
|
98512
|
-
else {
|
|
98513
|
-
currentAxis = moveDirection === "v" ? "h" : "v";
|
|
98514
|
-
canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);
|
|
98515
|
-
}
|
|
98516
|
-
if (!canBeScrolledInMainDirection) return false;
|
|
98517
|
-
if (!activeAxis.current && "changedTouches" in event && (deltaX || deltaY)) activeAxis.current = currentAxis;
|
|
98518
|
-
if (!currentAxis) return true;
|
|
98519
|
-
var cancelingAxis = activeAxis.current || currentAxis;
|
|
98520
|
-
return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
|
|
98521
|
-
}, []);
|
|
98522
|
-
var shouldPrevent = m.useCallback(function(_event) {
|
|
98523
|
-
var event = _event;
|
|
98524
|
-
if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) return;
|
|
98525
|
-
var delta = "deltaY" in event ? getDeltaXY(event) : getTouchXY(event);
|
|
98526
|
-
var sourceEvent = shouldPreventQueue.current.filter(function(e) {
|
|
98527
|
-
return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta);
|
|
98528
|
-
})[0];
|
|
98529
|
-
if (sourceEvent && sourceEvent.should) {
|
|
98530
|
-
if (event.cancelable) event.preventDefault();
|
|
98531
|
-
return;
|
|
98532
|
-
}
|
|
98533
|
-
if (!sourceEvent) {
|
|
98534
|
-
var shardNodes = (lastProps.current.shards || []).map(extractRef).filter(Boolean).filter(function(node) {
|
|
98535
|
-
return node.contains(event.target);
|
|
98536
|
-
});
|
|
98537
|
-
if (shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation) {
|
|
98538
|
-
if (event.cancelable) event.preventDefault();
|
|
98539
|
-
}
|
|
98540
|
-
}
|
|
98541
|
-
}, []);
|
|
98542
|
-
var shouldCancel = m.useCallback(function(name, delta, target, should) {
|
|
98543
|
-
var event = {
|
|
98544
|
-
name,
|
|
98545
|
-
delta,
|
|
98546
|
-
target,
|
|
98547
|
-
should,
|
|
98548
|
-
shadowParent: getOutermostShadowParent(target)
|
|
98549
|
-
};
|
|
98550
|
-
shouldPreventQueue.current.push(event);
|
|
98551
|
-
setTimeout(function() {
|
|
98552
|
-
shouldPreventQueue.current = shouldPreventQueue.current.filter(function(e) {
|
|
98553
|
-
return e !== event;
|
|
98554
|
-
});
|
|
98555
|
-
}, 1);
|
|
98556
|
-
}, []);
|
|
98557
|
-
var scrollTouchStart = m.useCallback(function(event) {
|
|
98558
|
-
touchStartRef.current = getTouchXY(event);
|
|
98559
|
-
activeAxis.current = void 0;
|
|
98560
|
-
}, []);
|
|
98561
|
-
var scrollWheel = m.useCallback(function(event) {
|
|
98562
|
-
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
98563
|
-
}, []);
|
|
98564
|
-
var scrollTouchMove = m.useCallback(function(event) {
|
|
98565
|
-
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
|
|
98566
|
-
}, []);
|
|
98567
|
-
m.useEffect(function() {
|
|
98568
|
-
lockStack.push(Style);
|
|
98569
|
-
props.setCallbacks({
|
|
98570
|
-
onScrollCapture: scrollWheel,
|
|
98571
|
-
onWheelCapture: scrollWheel,
|
|
98572
|
-
onTouchMoveCapture: scrollTouchMove
|
|
98573
|
-
});
|
|
98574
|
-
document.addEventListener("wheel", shouldPrevent, nonPassive);
|
|
98575
|
-
document.addEventListener("touchmove", shouldPrevent, nonPassive);
|
|
98576
|
-
document.addEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
98577
|
-
return function() {
|
|
98578
|
-
lockStack = lockStack.filter(function(inst) {
|
|
98579
|
-
return inst !== Style;
|
|
98580
|
-
});
|
|
98581
|
-
document.removeEventListener("wheel", shouldPrevent, nonPassive);
|
|
98582
|
-
document.removeEventListener("touchmove", shouldPrevent, nonPassive);
|
|
98583
|
-
document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
98584
|
-
};
|
|
98585
|
-
}, []);
|
|
98586
|
-
var removeScrollBar = props.removeScrollBar, inert = props.inert;
|
|
98587
|
-
return m.createElement(m.Fragment, null, inert ? m.createElement(Style, { styles: generateStyle(id) }) : null, removeScrollBar ? m.createElement(RemoveScrollBar, {
|
|
98588
|
-
noRelative: props.noRelative,
|
|
98589
|
-
gapMode: props.gapMode
|
|
98590
|
-
}) : null);
|
|
98591
|
-
}
|
|
98592
|
-
function getOutermostShadowParent(node) {
|
|
98593
|
-
var shadowParent = null;
|
|
98594
|
-
while (node !== null) {
|
|
98595
|
-
if (node instanceof ShadowRoot) {
|
|
98596
|
-
shadowParent = node.host;
|
|
98597
|
-
node = node.host;
|
|
98598
|
-
}
|
|
98599
|
-
node = node.parentNode;
|
|
98600
|
-
}
|
|
98601
|
-
return shadowParent;
|
|
98602
|
-
}
|
|
98603
|
-
//#endregion
|
|
98604
|
-
//#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
|
|
98605
|
-
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
98606
|
-
//#endregion
|
|
98607
|
-
//#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
|
|
98608
|
-
init_tslib_es6();
|
|
98609
|
-
var ReactRemoveScroll = m.forwardRef(function(props, ref) {
|
|
98610
|
-
return m.createElement(RemoveScroll, __assign({}, props, {
|
|
98611
|
-
ref,
|
|
98612
|
-
sideCar: sidecar_default
|
|
98613
|
-
}));
|
|
98614
|
-
});
|
|
98615
|
-
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
98616
|
-
//#endregion
|
|
98617
|
-
//#region ../../node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
98618
|
-
var getDefaultParent = function(originalTarget) {
|
|
98619
|
-
if (typeof document === "undefined") return null;
|
|
98620
|
-
return (Array.isArray(originalTarget) ? originalTarget[0] : originalTarget).ownerDocument.body;
|
|
98621
|
-
};
|
|
98622
|
-
var counterMap = /* @__PURE__ */ new WeakMap();
|
|
98623
|
-
var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
98624
|
-
var markerMap = {};
|
|
98625
|
-
var lockCount = 0;
|
|
98626
|
-
var unwrapHost = function(node) {
|
|
98627
|
-
return node && (node.host || unwrapHost(node.parentNode));
|
|
98628
|
-
};
|
|
98629
|
-
var correctTargets = function(parent, targets) {
|
|
98630
|
-
return targets.map(function(target) {
|
|
98631
|
-
if (parent.contains(target)) return target;
|
|
98632
|
-
var correctedTarget = unwrapHost(target);
|
|
98633
|
-
if (correctedTarget && parent.contains(correctedTarget)) return correctedTarget;
|
|
98634
|
-
console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
|
|
98635
|
-
return null;
|
|
98636
|
-
}).filter(function(x) {
|
|
98637
|
-
return Boolean(x);
|
|
98638
|
-
});
|
|
98639
|
-
};
|
|
98640
|
-
/**
|
|
98641
|
-
* Marks everything except given node(or nodes) as aria-hidden
|
|
98642
|
-
* @param {Element | Element[]} originalTarget - elements to keep on the page
|
|
98643
|
-
* @param [parentNode] - top element, defaults to document.body
|
|
98644
|
-
* @param {String} [markerName] - a special attribute to mark every node
|
|
98645
|
-
* @param {String} [controlAttribute] - html Attribute to control
|
|
98646
|
-
* @return {Undo} undo command
|
|
98647
|
-
*/
|
|
98648
|
-
var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
|
|
98649
|
-
var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
98650
|
-
if (!markerMap[markerName]) markerMap[markerName] = /* @__PURE__ */ new WeakMap();
|
|
98651
|
-
var markerCounter = markerMap[markerName];
|
|
98652
|
-
var hiddenNodes = [];
|
|
98653
|
-
var elementsToKeep = /* @__PURE__ */ new Set();
|
|
98654
|
-
var elementsToStop = new Set(targets);
|
|
98655
|
-
var keep = function(el) {
|
|
98656
|
-
if (!el || elementsToKeep.has(el)) return;
|
|
98657
|
-
elementsToKeep.add(el);
|
|
98658
|
-
keep(el.parentNode);
|
|
98659
|
-
};
|
|
98660
|
-
targets.forEach(keep);
|
|
98661
|
-
var deep = function(parent) {
|
|
98662
|
-
if (!parent || elementsToStop.has(parent)) return;
|
|
98663
|
-
Array.prototype.forEach.call(parent.children, function(node) {
|
|
98664
|
-
if (elementsToKeep.has(node)) deep(node);
|
|
98665
|
-
else try {
|
|
98666
|
-
var attr = node.getAttribute(controlAttribute);
|
|
98667
|
-
var alreadyHidden = attr !== null && attr !== "false";
|
|
98668
|
-
var counterValue = (counterMap.get(node) || 0) + 1;
|
|
98669
|
-
var markerValue = (markerCounter.get(node) || 0) + 1;
|
|
98670
|
-
counterMap.set(node, counterValue);
|
|
98671
|
-
markerCounter.set(node, markerValue);
|
|
98672
|
-
hiddenNodes.push(node);
|
|
98673
|
-
if (counterValue === 1 && alreadyHidden) uncontrolledNodes.set(node, true);
|
|
98674
|
-
if (markerValue === 1) node.setAttribute(markerName, "true");
|
|
98675
|
-
if (!alreadyHidden) node.setAttribute(controlAttribute, "true");
|
|
98676
|
-
} catch (e) {
|
|
98677
|
-
console.error("aria-hidden: cannot operate on ", node, e);
|
|
98678
|
-
}
|
|
98679
|
-
});
|
|
98680
|
-
};
|
|
98681
|
-
deep(parentNode);
|
|
98682
|
-
elementsToKeep.clear();
|
|
98683
|
-
lockCount++;
|
|
98684
|
-
return function() {
|
|
98685
|
-
hiddenNodes.forEach(function(node) {
|
|
98686
|
-
var counterValue = counterMap.get(node) - 1;
|
|
98687
|
-
var markerValue = markerCounter.get(node) - 1;
|
|
98688
|
-
counterMap.set(node, counterValue);
|
|
98689
|
-
markerCounter.set(node, markerValue);
|
|
98690
|
-
if (!counterValue) {
|
|
98691
|
-
if (!uncontrolledNodes.has(node)) node.removeAttribute(controlAttribute);
|
|
98692
|
-
uncontrolledNodes.delete(node);
|
|
98693
|
-
}
|
|
98694
|
-
if (!markerValue) node.removeAttribute(markerName);
|
|
98695
|
-
});
|
|
98696
|
-
lockCount--;
|
|
98697
|
-
if (!lockCount) {
|
|
98698
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
98699
|
-
counterMap = /* @__PURE__ */ new WeakMap();
|
|
98700
|
-
uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
98701
|
-
markerMap = {};
|
|
98702
|
-
}
|
|
98703
|
-
};
|
|
98704
|
-
};
|
|
98705
|
-
/**
|
|
98706
|
-
* Marks everything except given node(or nodes) as aria-hidden
|
|
98707
|
-
* @param {Element | Element[]} originalTarget - elements to keep on the page
|
|
98708
|
-
* @param [parentNode] - top element, defaults to document.body
|
|
98709
|
-
* @param {String} [markerName] - a special attribute to mark every node
|
|
98710
|
-
* @return {Undo} undo command
|
|
98711
|
-
*/
|
|
98712
|
-
var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
98713
|
-
if (markerName === void 0) markerName = "data-aria-hidden";
|
|
98714
|
-
var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
|
|
98715
|
-
var activeParentNode = parentNode || getDefaultParent(originalTarget);
|
|
98716
|
-
if (!activeParentNode) return function() {
|
|
98717
|
-
return null;
|
|
98718
|
-
};
|
|
98719
|
-
targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
|
|
98720
|
-
return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
|
|
98721
|
-
};
|
|
98722
|
-
//#endregion
|
|
98723
96553
|
//#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
|
|
98724
96554
|
var __defProp$6 = Object.defineProperty;
|
|
98725
96555
|
var __name$6 = (target, value) => __defProp$6(target, "name", {
|
|
@@ -98811,7 +96641,7 @@ var DialogOverlayImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$6(fu
|
|
|
98811
96641
|
const { __scopeDialog, ...overlayProps } = props;
|
|
98812
96642
|
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
98813
96643
|
const composedRefs = useComposedRefs(forwardedRef, useDismissableLayerSurface());
|
|
98814
|
-
return /* @__PURE__ */ jsx(
|
|
96644
|
+
return /* @__PURE__ */ jsx(RemoveScroll, {
|
|
98815
96645
|
as: Slot$1,
|
|
98816
96646
|
allowPinchZoom: true,
|
|
98817
96647
|
shards: [context.contentRef],
|
|
@@ -103529,7 +101359,7 @@ var MenuContentImpl = /* @__PURE__ */ m.forwardRef(/* @__PURE__ */ __name$1(func
|
|
|
103529
101359
|
const pointerGraceIntentRef = m.useRef(null);
|
|
103530
101360
|
const pointerDirRef = m.useRef("right");
|
|
103531
101361
|
const lastPointerXRef = m.useRef(0);
|
|
103532
|
-
const ScrollLockWrapper = disableOutsideScroll ?
|
|
101362
|
+
const ScrollLockWrapper = disableOutsideScroll ? RemoveScroll : m.Fragment;
|
|
103533
101363
|
const scrollLockWrapperProps = disableOutsideScroll ? {
|
|
103534
101364
|
as: Slot,
|
|
103535
101365
|
allowPinchZoom: true
|
|
@@ -145872,6 +143702,7 @@ var makeBorrowFlowExecutionScopeAtom = (sessionOutcomeAtom) => makeScopedEffectS
|
|
|
145872
143702
|
getStates: (outcome) => outcome._tag === "Acquired" ? outcome.execution.states : never$1,
|
|
145873
143703
|
label: "borrowFlowExecutionScope",
|
|
145874
143704
|
makeValue: ({ handleAtom, stateAtom }) => {
|
|
143705
|
+
const makeCompletionStateAtom = () => walletRuntime.atom((context) => unwrap$1(context.result(handleAtom).pipe(map$6((outcome) => outcome._tag === "Acquired" ? outcome.execution.states.pipe(map$8((state) => state._tag === "Completed")) : succeed$6(false))))).pipe(withLabel("borrowFlowCompletionState"));
|
|
145875
143706
|
const viewAtom = make$11((get) => {
|
|
145876
143707
|
const result = get(stateAtom);
|
|
145877
143708
|
const state = getOrNull(value$2(result));
|
|
@@ -145890,6 +143721,7 @@ var makeBorrowFlowExecutionScopeAtom = (sessionOutcomeAtom) => makeScopedEffectS
|
|
|
145890
143721
|
facade: {
|
|
145891
143722
|
backAtom: walletRuntime.fn((_input, context) => context.result(handleAtom).pipe(flatMap$4((outcome) => outcome._tag === "Acquired" ? outcome.execution.back() : succeed$4({ _tag: "RejectedStale" }))), { initialValue: void 0 }).pipe(withLabel("backBorrowFlowExecution")),
|
|
145892
143723
|
finishAtom: walletRuntime.fn((_input, context) => context.result(handleAtom).pipe(flatMap$4((outcome) => outcome._tag === "Acquired" ? outcome.execution.finish() : succeed$4({ _tag: "RejectedStale" }))), { initialValue: void 0 }).pipe(withLabel("finishBorrowFlowExecution")),
|
|
143724
|
+
makeCompletionStateAtom,
|
|
145893
143725
|
viewAtom,
|
|
145894
143726
|
workflowCommandAtom
|
|
145895
143727
|
},
|
|
@@ -145945,10 +143777,6 @@ var makeBorrowFlowSessionModule = (session) => makeScopedEffectAtom({
|
|
|
145945
143777
|
var makeBorrowFlowReviewScope = (session) => session.ports.makeReviewScopeAtom();
|
|
145946
143778
|
var makeBorrowFlowExecutionScope = (session) => session.ports.makeExecutionScopeAtom();
|
|
145947
143779
|
var borrowFlowSessionRootAtomFamily = family(makeBorrowFlowSessionModule);
|
|
145948
|
-
var currentBorrowFlowSessionRootAtom = make$11((get) => {
|
|
145949
|
-
const session = get(currentBorrowFlowSessionAtom);
|
|
145950
|
-
return session ? borrowFlowSessionRootAtomFamily(session) : null;
|
|
145951
|
-
}).pipe(withLabel("currentBorrowFlowSessionRootAtom"));
|
|
145952
143780
|
//#endregion
|
|
145953
143781
|
//#region src/features/borrow-transaction-flow/react/borrow-flow-route.tsx
|
|
145954
143782
|
var BorrowFlowSessionContext = createContext(null);
|
|
@@ -145975,61 +143803,52 @@ var getEntryFallbackPath = (expected, marketId) => {
|
|
|
145975
143803
|
return "/positions";
|
|
145976
143804
|
};
|
|
145977
143805
|
var BorrowTransactionFlowRoute = (t0) => {
|
|
145978
|
-
const $ = (0, import_compiler_runtime.c)(
|
|
143806
|
+
const $ = (0, import_compiler_runtime.c)(8);
|
|
145979
143807
|
const { expected } = t0;
|
|
145980
143808
|
const routeParams = useParams();
|
|
145981
143809
|
const marketId = routeParams.marketId ? decodeSync(MarketId)(routeParams.marketId) : void 0;
|
|
145982
|
-
const
|
|
145983
|
-
|
|
143810
|
+
const [sessionAtom] = useState(makeBorrowFlowRouteSessionAtom);
|
|
143811
|
+
const result = useAtomValue(sessionAtom);
|
|
143812
|
+
const fallbackPath = getEntryFallbackPath(expected, marketId);
|
|
143813
|
+
if (result._tag === "Initial") {
|
|
145984
143814
|
let t1;
|
|
145985
|
-
if ($[0]
|
|
145986
|
-
t1 = /* @__PURE__ */ jsx(
|
|
145987
|
-
$[0] =
|
|
145988
|
-
|
|
145989
|
-
$[2] = t1;
|
|
145990
|
-
} else t1 = $[2];
|
|
143815
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
143816
|
+
t1 = /* @__PURE__ */ jsx(LoadingSkeleton, {});
|
|
143817
|
+
$[0] = t1;
|
|
143818
|
+
} else t1 = $[0];
|
|
145991
143819
|
return t1;
|
|
145992
143820
|
}
|
|
145993
|
-
|
|
143821
|
+
if (result._tag === "Failure") return /* @__PURE__ */ jsx(Navigate, {
|
|
143822
|
+
replace: true,
|
|
143823
|
+
to: fallbackPath
|
|
143824
|
+
});
|
|
143825
|
+
const session = result.value;
|
|
143826
|
+
if (session && matchesEntry(session.intake.entry, expected, marketId)) {
|
|
143827
|
+
const t1 = session.epoch;
|
|
143828
|
+
let t2;
|
|
143829
|
+
if ($[1] !== session) {
|
|
143830
|
+
t2 = borrowFlowSessionRootAtomFamily(session);
|
|
143831
|
+
$[1] = session;
|
|
143832
|
+
$[2] = t2;
|
|
143833
|
+
} else t2 = $[2];
|
|
143834
|
+
let t3;
|
|
143835
|
+
if ($[3] !== session.epoch || $[4] !== t2) {
|
|
143836
|
+
t3 = /* @__PURE__ */ jsx(MountedSessionBinding, { rootAtom: t2 }, t1);
|
|
143837
|
+
$[3] = session.epoch;
|
|
143838
|
+
$[4] = t2;
|
|
143839
|
+
$[5] = t3;
|
|
143840
|
+
} else t3 = $[5];
|
|
143841
|
+
return t3;
|
|
143842
|
+
}
|
|
145994
143843
|
let t1;
|
|
145995
|
-
if ($[
|
|
143844
|
+
if ($[6] !== fallbackPath) {
|
|
145996
143845
|
t1 = /* @__PURE__ */ jsx(Navigate, {
|
|
145997
143846
|
replace: true,
|
|
145998
143847
|
to: fallbackPath
|
|
145999
143848
|
});
|
|
146000
|
-
$[
|
|
146001
|
-
$[
|
|
146002
|
-
} else t1 = $[
|
|
146003
|
-
return t1;
|
|
146004
|
-
};
|
|
146005
|
-
var SessionBinding = (t0) => {
|
|
146006
|
-
const $ = (0, import_compiler_runtime.c)(6);
|
|
146007
|
-
const { entry } = t0;
|
|
146008
|
-
const rootAtom = useAtomValue(currentBorrowFlowSessionRootAtom);
|
|
146009
|
-
if (!rootAtom) {
|
|
146010
|
-
let t1;
|
|
146011
|
-
if ($[0] !== entry) {
|
|
146012
|
-
t1 = getBorrowTransactionFlowRoutes(entry);
|
|
146013
|
-
$[0] = entry;
|
|
146014
|
-
$[1] = t1;
|
|
146015
|
-
} else t1 = $[1];
|
|
146016
|
-
let t2;
|
|
146017
|
-
if ($[2] !== t1.basePath) {
|
|
146018
|
-
t2 = /* @__PURE__ */ jsx(Navigate, {
|
|
146019
|
-
replace: true,
|
|
146020
|
-
to: t1.basePath
|
|
146021
|
-
});
|
|
146022
|
-
$[2] = t1.basePath;
|
|
146023
|
-
$[3] = t2;
|
|
146024
|
-
} else t2 = $[3];
|
|
146025
|
-
return t2;
|
|
146026
|
-
}
|
|
146027
|
-
let t1;
|
|
146028
|
-
if ($[4] !== rootAtom) {
|
|
146029
|
-
t1 = /* @__PURE__ */ jsx(MountedSessionBinding, { rootAtom });
|
|
146030
|
-
$[4] = rootAtom;
|
|
146031
|
-
$[5] = t1;
|
|
146032
|
-
} else t1 = $[5];
|
|
143849
|
+
$[6] = fallbackPath;
|
|
143850
|
+
$[7] = t1;
|
|
143851
|
+
} else t1 = $[7];
|
|
146033
143852
|
return t1;
|
|
146034
143853
|
};
|
|
146035
143854
|
var MountedSessionBinding = (t0) => {
|
|
@@ -146178,27 +143997,59 @@ var ExecutionBinding = (t0) => {
|
|
|
146178
143997
|
return t3;
|
|
146179
143998
|
};
|
|
146180
143999
|
var BorrowTransactionFlowCompletionGuard = () => {
|
|
146181
|
-
const $ = (0, import_compiler_runtime.c)(
|
|
146182
|
-
const
|
|
146183
|
-
|
|
146184
|
-
|
|
146185
|
-
|
|
146186
|
-
|
|
146187
|
-
$[
|
|
146188
|
-
|
|
146189
|
-
|
|
146190
|
-
const
|
|
144000
|
+
const $ = (0, import_compiler_runtime.c)(9);
|
|
144001
|
+
const execution = useBorrowTransactionFlowExecution();
|
|
144002
|
+
let t0;
|
|
144003
|
+
if ($[0] !== execution) {
|
|
144004
|
+
t0 = () => execution.makeCompletionStateAtom();
|
|
144005
|
+
$[0] = execution;
|
|
144006
|
+
$[1] = t0;
|
|
144007
|
+
} else t0 = $[1];
|
|
144008
|
+
const [completionAtom] = useState(t0);
|
|
144009
|
+
const result = useAtomValue(completionAtom);
|
|
144010
|
+
const view = useAtomValue(execution.viewAtom);
|
|
144011
|
+
const t1 = useBorrowTransactionFlow();
|
|
146191
144012
|
let t2;
|
|
146192
|
-
if ($[2] !==
|
|
146193
|
-
t2 =
|
|
146194
|
-
|
|
146195
|
-
|
|
146196
|
-
|
|
146197
|
-
|
|
146198
|
-
|
|
146199
|
-
|
|
146200
|
-
|
|
146201
|
-
|
|
144013
|
+
if ($[2] !== t1.intake.entry) {
|
|
144014
|
+
t2 = getBorrowTransactionFlowRoutes(t1.intake.entry);
|
|
144015
|
+
$[2] = t1.intake.entry;
|
|
144016
|
+
$[3] = t2;
|
|
144017
|
+
} else t2 = $[3];
|
|
144018
|
+
const { stepsPath } = t2;
|
|
144019
|
+
if (result._tag === "Initial") {
|
|
144020
|
+
let t3;
|
|
144021
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
144022
|
+
t3 = /* @__PURE__ */ jsx(LoadingSkeleton, {});
|
|
144023
|
+
$[4] = t3;
|
|
144024
|
+
} else t3 = $[4];
|
|
144025
|
+
return t3;
|
|
144026
|
+
}
|
|
144027
|
+
if (result._tag === "Failure" || !result.value) {
|
|
144028
|
+
let t3;
|
|
144029
|
+
if ($[5] !== stepsPath) {
|
|
144030
|
+
t3 = /* @__PURE__ */ jsx(Navigate, {
|
|
144031
|
+
replace: true,
|
|
144032
|
+
to: stepsPath
|
|
144033
|
+
});
|
|
144034
|
+
$[5] = stepsPath;
|
|
144035
|
+
$[6] = t3;
|
|
144036
|
+
} else t3 = $[6];
|
|
144037
|
+
return t3;
|
|
144038
|
+
}
|
|
144039
|
+
if (!view.isDone) {
|
|
144040
|
+
let t3;
|
|
144041
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
144042
|
+
t3 = /* @__PURE__ */ jsx(LoadingSkeleton, {});
|
|
144043
|
+
$[7] = t3;
|
|
144044
|
+
} else t3 = $[7];
|
|
144045
|
+
return t3;
|
|
144046
|
+
}
|
|
144047
|
+
let t3;
|
|
144048
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
144049
|
+
t3 = /* @__PURE__ */ jsx(Outlet, {});
|
|
144050
|
+
$[8] = t3;
|
|
144051
|
+
} else t3 = $[8];
|
|
144052
|
+
return t3;
|
|
146202
144053
|
};
|
|
146203
144054
|
//#endregion
|
|
146204
144055
|
//#region src/features/borrow-transaction-flow/ui/use-borrow-execution.ts
|
|
@@ -148509,10 +146360,10 @@ var SKApp = (t0) => {
|
|
|
148509
146360
|
}
|
|
148510
146361
|
let t1;
|
|
148511
146362
|
if ($[3] !== children || $[4] !== hostConfiguration) {
|
|
148512
|
-
t1 = /* @__PURE__ */ jsx(
|
|
146363
|
+
t1 = /* @__PURE__ */ jsx(SKAppProductionContent, {
|
|
148513
146364
|
...hostConfiguration,
|
|
148514
146365
|
children
|
|
148515
|
-
})
|
|
146366
|
+
});
|
|
148516
146367
|
$[3] = children;
|
|
148517
146368
|
$[4] = hostConfiguration;
|
|
148518
146369
|
$[5] = t1;
|