@webskill/sdk 0.6.0 → 0.7.0
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/agent.d.ts +2 -2
- package/dist/agent.js +217 -27
- package/dist/browser.d.ts +30 -4
- package/dist/browser.js +196 -12
- package/dist/{catalogComponents-Dr5dFMAb-Dacibl1e.js → catalogComponents-Dr5dFMAb-DKH_7VPI.js} +723 -931
- package/dist/{dist-DusANsrn.js → dist-D0qW6e40.js} +246 -39
- package/dist/eventTypes-DjIQpt8Y-Bj3vghj4.js +32 -0
- package/dist/governance.d.ts +78 -11
- package/dist/governance.js +172 -49
- package/dist/{index-BuTpBMzr.d.ts → index-Ba3xFtfz.d.ts} +156 -5
- package/dist/{index-BMocOEi0.d.ts → index-BwsK9lGk.d.ts} +2 -2
- package/dist/{index-C-KFAZoF.d.ts → index-DkbABR43.d.ts} +40 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/mcp.d.ts +123 -6
- package/dist/mcp.js +224 -27
- package/dist/node.d.ts +3 -3
- package/dist/node.js +3 -2
- package/dist/{openUiLibrary-Bdrji9qK-DzAxRlTY.js → openUiLibrary-Bdrji9qK-D2LxmM-a.js} +1 -1
- package/dist/{skillVersionStore-BzLbzFOL-CxdAFWO2.d.ts → skillVersionStore-Bl-ElD45-CWPvGvoq.d.ts} +8 -2
- package/dist/testing.d.ts +1 -1
- package/dist/{types-4pg-qp_I-Gq63X8Oa.d.ts → types-CcxRLdJG-DCXyw1US.d.ts} +31 -4
- package/dist/ui-react.d.ts +5 -3
- package/dist/ui-react.js +9 -27
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +1 -1
- package/package.json +1 -1
package/dist/{catalogComponents-Dr5dFMAb-Dacibl1e.js → catalogComponents-Dr5dFMAb-DKH_7VPI.js}
RENAMED
|
@@ -3453,8 +3453,8 @@ function useDarkAncestor() {
|
|
|
3453
3453
|
|
|
3454
3454
|
//#endregion
|
|
3455
3455
|
//#region ../../node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.5_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3456
|
-
var __defProp$
|
|
3457
|
-
var __name$
|
|
3456
|
+
var __defProp$28 = Object.defineProperty;
|
|
3457
|
+
var __name$26 = (target, value) => __defProp$28(target, "name", {
|
|
3458
3458
|
value,
|
|
3459
3459
|
configurable: true
|
|
3460
3460
|
});
|
|
@@ -3462,7 +3462,7 @@ function setRef$1(ref, value) {
|
|
|
3462
3462
|
if (typeof ref === "function") return ref(value);
|
|
3463
3463
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
3464
3464
|
}
|
|
3465
|
-
__name$
|
|
3465
|
+
__name$26(setRef$1, "setRef");
|
|
3466
3466
|
function composeRefs(...refs) {
|
|
3467
3467
|
return (node) => {
|
|
3468
3468
|
let hasCleanup = false;
|
|
@@ -3480,16 +3480,16 @@ function composeRefs(...refs) {
|
|
|
3480
3480
|
};
|
|
3481
3481
|
};
|
|
3482
3482
|
}
|
|
3483
|
-
__name$
|
|
3483
|
+
__name$26(composeRefs, "composeRefs");
|
|
3484
3484
|
function useComposedRefs(...refs) {
|
|
3485
3485
|
return React$10.useCallback(composeRefs(...refs), refs);
|
|
3486
3486
|
}
|
|
3487
|
-
__name$
|
|
3487
|
+
__name$26(useComposedRefs, "useComposedRefs");
|
|
3488
3488
|
|
|
3489
3489
|
//#endregion
|
|
3490
3490
|
//#region ../../node_modules/.pnpm/@radix-ui+react-context@1.2.2_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
3491
|
-
var __defProp$
|
|
3492
|
-
var __name$
|
|
3491
|
+
var __defProp$27 = Object.defineProperty;
|
|
3492
|
+
var __name$25 = (target, value) => __defProp$27(target, "name", {
|
|
3493
3493
|
value,
|
|
3494
3494
|
configurable: true
|
|
3495
3495
|
});
|
|
@@ -3497,7 +3497,7 @@ var __name$26 = (target, value) => __defProp$28(target, "name", {
|
|
|
3497
3497
|
function createContext2(rootComponentName, defaultContext) {
|
|
3498
3498
|
const Context = React$10.createContext(defaultContext);
|
|
3499
3499
|
Context.displayName = rootComponentName + "Context";
|
|
3500
|
-
const Provider = /* @__PURE__ */ __name$
|
|
3500
|
+
const Provider = /* @__PURE__ */ __name$25((props) => {
|
|
3501
3501
|
const { children, ...context } = props;
|
|
3502
3502
|
const value = React$10.useMemo(() => context, Object.values(context));
|
|
3503
3503
|
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
@@ -3514,10 +3514,10 @@ function createContext2(rootComponentName, defaultContext) {
|
|
|
3514
3514
|
if (optional) return void 0;
|
|
3515
3515
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
3516
3516
|
}
|
|
3517
|
-
__name$
|
|
3517
|
+
__name$25(useContext2, "useContext");
|
|
3518
3518
|
return [Provider, useContext2];
|
|
3519
3519
|
}
|
|
3520
|
-
__name$
|
|
3520
|
+
__name$25(createContext2, "createContext");
|
|
3521
3521
|
// @__NO_SIDE_EFFECTS__
|
|
3522
3522
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
3523
3523
|
let defaultContexts = [];
|
|
@@ -3526,7 +3526,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
3526
3526
|
BaseContext.displayName = rootComponentName + "Context";
|
|
3527
3527
|
const index = defaultContexts.length;
|
|
3528
3528
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
3529
|
-
const Provider = /* @__PURE__ */ __name$
|
|
3529
|
+
const Provider = /* @__PURE__ */ __name$25((props) => {
|
|
3530
3530
|
const { scope, children, ...context } = props;
|
|
3531
3531
|
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
3532
3532
|
const value = React$10.useMemo(() => context, Object.values(context));
|
|
@@ -3545,15 +3545,15 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
3545
3545
|
if (optional) return void 0;
|
|
3546
3546
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
3547
3547
|
}
|
|
3548
|
-
__name$
|
|
3548
|
+
__name$25(useContext2, "useContext");
|
|
3549
3549
|
return [Provider, useContext2];
|
|
3550
3550
|
}
|
|
3551
|
-
__name$
|
|
3552
|
-
const createScope = /* @__PURE__ */ __name$
|
|
3551
|
+
__name$25(createContext3, "createContext");
|
|
3552
|
+
const createScope = /* @__PURE__ */ __name$25(() => {
|
|
3553
3553
|
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
3554
3554
|
return React$10.createContext(defaultContext);
|
|
3555
3555
|
});
|
|
3556
|
-
return /* @__PURE__ */ __name$
|
|
3556
|
+
return /* @__PURE__ */ __name$25(function useScope(scope) {
|
|
3557
3557
|
const contexts = scope?.[scopeName] || scopeContexts;
|
|
3558
3558
|
return React$10.useMemo(() => ({ [`__scope${scopeName}`]: {
|
|
3559
3559
|
...scope,
|
|
@@ -3564,16 +3564,16 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
3564
3564
|
createScope.scopeName = scopeName;
|
|
3565
3565
|
return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
|
|
3566
3566
|
}
|
|
3567
|
-
__name$
|
|
3567
|
+
__name$25(createContextScope, "createContextScope");
|
|
3568
3568
|
function composeContextScopes(...scopes) {
|
|
3569
3569
|
const baseScope = scopes[0];
|
|
3570
3570
|
if (scopes.length === 1) return baseScope;
|
|
3571
|
-
const createScope = /* @__PURE__ */ __name$
|
|
3571
|
+
const createScope = /* @__PURE__ */ __name$25(() => {
|
|
3572
3572
|
const scopeHooks = scopes.map((createScope2) => ({
|
|
3573
3573
|
useScope: createScope2(),
|
|
3574
3574
|
scopeName: createScope2.scopeName
|
|
3575
3575
|
}));
|
|
3576
|
-
return /* @__PURE__ */ __name$
|
|
3576
|
+
return /* @__PURE__ */ __name$25(function useComposedScopes(overrideScopes) {
|
|
3577
3577
|
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
|
|
3578
3578
|
const currentScope = useScope(overrideScopes)[`__scope${scopeName}`];
|
|
3579
3579
|
return {
|
|
@@ -3587,33 +3587,33 @@ function composeContextScopes(...scopes) {
|
|
|
3587
3587
|
createScope.scopeName = baseScope.scopeName;
|
|
3588
3588
|
return createScope;
|
|
3589
3589
|
}
|
|
3590
|
-
__name$
|
|
3590
|
+
__name$25(composeContextScopes, "composeContextScopes");
|
|
3591
3591
|
|
|
3592
3592
|
//#endregion
|
|
3593
3593
|
//#region ../../node_modules/.pnpm/@radix-ui+primitive@1.1.7/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
3594
|
-
var __defProp$
|
|
3595
|
-
var __name$
|
|
3594
|
+
var __defProp$26 = Object.defineProperty;
|
|
3595
|
+
var __name$24 = (target, value) => __defProp$26(target, "name", {
|
|
3596
3596
|
value,
|
|
3597
3597
|
configurable: true
|
|
3598
3598
|
});
|
|
3599
3599
|
var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
3600
3600
|
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
3601
|
-
return /* @__PURE__ */ __name$
|
|
3601
|
+
return /* @__PURE__ */ __name$24(function handleEvent(event) {
|
|
3602
3602
|
originalEventHandler?.(event);
|
|
3603
3603
|
if (checkForDefaultPrevented === false || !event || !event.defaultPrevented) return ourEventHandler?.(event);
|
|
3604
3604
|
}, "handleEvent");
|
|
3605
3605
|
}
|
|
3606
|
-
__name$
|
|
3606
|
+
__name$24(composeEventHandlers, "composeEventHandlers");
|
|
3607
3607
|
function getOwnerWindow(element) {
|
|
3608
3608
|
if (!canUseDOM) throw new Error("Cannot access window outside of the DOM");
|
|
3609
3609
|
return element?.ownerDocument?.defaultView ?? window;
|
|
3610
3610
|
}
|
|
3611
|
-
__name$
|
|
3611
|
+
__name$24(getOwnerWindow, "getOwnerWindow");
|
|
3612
3612
|
function getOwnerDocument(element) {
|
|
3613
3613
|
if (!canUseDOM) throw new Error("Cannot access document outside of the DOM");
|
|
3614
3614
|
return element?.ownerDocument ?? document;
|
|
3615
3615
|
}
|
|
3616
|
-
__name$
|
|
3616
|
+
__name$24(getOwnerDocument, "getOwnerDocument");
|
|
3617
3617
|
function getActiveElement(node, activeDescendant = false) {
|
|
3618
3618
|
const { activeElement } = getOwnerDocument(node);
|
|
3619
3619
|
if (!activeElement?.nodeName) return null;
|
|
@@ -3627,11 +3627,11 @@ function getActiveElement(node, activeDescendant = false) {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
return activeElement;
|
|
3629
3629
|
}
|
|
3630
|
-
__name$
|
|
3630
|
+
__name$24(getActiveElement, "getActiveElement");
|
|
3631
3631
|
function isFrame(element) {
|
|
3632
3632
|
return element.tagName === "IFRAME";
|
|
3633
3633
|
}
|
|
3634
|
-
__name$
|
|
3634
|
+
__name$24(isFrame, "isFrame");
|
|
3635
3635
|
|
|
3636
3636
|
//#endregion
|
|
3637
3637
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.4_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
|
|
@@ -3639,8 +3639,8 @@ var useLayoutEffect2 = globalThis?.document ? React$10.useLayoutEffect : () => {
|
|
|
3639
3639
|
|
|
3640
3640
|
//#endregion
|
|
3641
3641
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-effect-event@0.0.5_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-effect-event/dist/index.mjs
|
|
3642
|
-
var __defProp$
|
|
3643
|
-
var __name$
|
|
3642
|
+
var __defProp$25 = Object.defineProperty;
|
|
3643
|
+
var __name$23 = (target, value) => __defProp$25(target, "name", {
|
|
3644
3644
|
value,
|
|
3645
3645
|
configurable: true
|
|
3646
3646
|
});
|
|
@@ -3659,17 +3659,17 @@ function useEffectEvent$2(callback) {
|
|
|
3659
3659
|
});
|
|
3660
3660
|
return React$10.useMemo(() => ((...args) => ref.current?.(...args)), []);
|
|
3661
3661
|
}
|
|
3662
|
-
__name$
|
|
3662
|
+
__name$23(useEffectEvent$2, "useEffectEvent");
|
|
3663
3663
|
|
|
3664
3664
|
//#endregion
|
|
3665
3665
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.2.6_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
|
|
3666
|
-
var __defProp$
|
|
3667
|
-
var __name$
|
|
3666
|
+
var __defProp$24 = Object.defineProperty;
|
|
3667
|
+
var __name$22 = (target, value) => __defProp$24(target, "name", {
|
|
3668
3668
|
value,
|
|
3669
3669
|
configurable: true
|
|
3670
3670
|
});
|
|
3671
3671
|
var useInsertionEffect$1 = React$10[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
|
|
3672
|
-
function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$
|
|
3672
|
+
function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __name$22(() => {}, "onChange"), caller }) {
|
|
3673
3673
|
const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
|
|
3674
3674
|
defaultProp,
|
|
3675
3675
|
onChange
|
|
@@ -3686,7 +3686,7 @@ function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __
|
|
|
3686
3686
|
}
|
|
3687
3687
|
return [value, React$10.useCallback((nextValue) => {
|
|
3688
3688
|
if (isControlled) {
|
|
3689
|
-
const value2 = isFunction$
|
|
3689
|
+
const value2 = isFunction$1(nextValue) ? nextValue(prop) : nextValue;
|
|
3690
3690
|
if (value2 !== prop) onChangeRef.current?.(value2);
|
|
3691
3691
|
} else setUncontrolledProp(nextValue);
|
|
3692
3692
|
}, [
|
|
@@ -3696,7 +3696,7 @@ function useControllableState({ prop, defaultProp, onChange = /* @__PURE__ */ __
|
|
|
3696
3696
|
onChangeRef
|
|
3697
3697
|
])];
|
|
3698
3698
|
}
|
|
3699
|
-
__name$
|
|
3699
|
+
__name$22(useControllableState, "useControllableState");
|
|
3700
3700
|
function useUncontrolledState({ defaultProp, onChange }) {
|
|
3701
3701
|
const [value, setValue] = React$10.useState(defaultProp);
|
|
3702
3702
|
const prevValueRef = React$10.useRef(value);
|
|
@@ -3716,11 +3716,11 @@ function useUncontrolledState({ defaultProp, onChange }) {
|
|
|
3716
3716
|
onChangeRef
|
|
3717
3717
|
];
|
|
3718
3718
|
}
|
|
3719
|
-
__name$
|
|
3720
|
-
function isFunction$
|
|
3719
|
+
__name$22(useUncontrolledState, "useUncontrolledState");
|
|
3720
|
+
function isFunction$1(value) {
|
|
3721
3721
|
return typeof value === "function";
|
|
3722
3722
|
}
|
|
3723
|
-
__name$
|
|
3723
|
+
__name$22(isFunction$1, "isFunction");
|
|
3724
3724
|
var SYNC_STATE = Symbol("RADIX:SYNC_STATE");
|
|
3725
3725
|
function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
3726
3726
|
const { prop: controlledState, defaultProp, onChange: onChangeProp, caller } = userArgs;
|
|
@@ -3779,12 +3779,12 @@ function useControllableStateReducer(reducer, userArgs, initialArg, init) {
|
|
|
3779
3779
|
]);
|
|
3780
3780
|
return [state, dispatch];
|
|
3781
3781
|
}
|
|
3782
|
-
__name$
|
|
3782
|
+
__name$22(useControllableStateReducer, "useControllableStateReducer");
|
|
3783
3783
|
|
|
3784
3784
|
//#endregion
|
|
3785
3785
|
//#region ../../node_modules/.pnpm/@radix-ui+react-use-size@1.1.4_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
3786
|
-
var __defProp$
|
|
3787
|
-
var __name$
|
|
3786
|
+
var __defProp$23 = Object.defineProperty;
|
|
3787
|
+
var __name$21 = (target, value) => __defProp$23(target, "name", {
|
|
3788
3788
|
value,
|
|
3789
3789
|
configurable: true
|
|
3790
3790
|
});
|
|
@@ -3822,12 +3822,12 @@ function useSize(element) {
|
|
|
3822
3822
|
}, [element]);
|
|
3823
3823
|
return size;
|
|
3824
3824
|
}
|
|
3825
|
-
__name$
|
|
3825
|
+
__name$21(useSize, "useSize");
|
|
3826
3826
|
|
|
3827
3827
|
//#endregion
|
|
3828
3828
|
//#region ../../node_modules/.pnpm/@radix-ui+react-presence@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+re_138587ba593102bdcf335a5673d92068/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
3829
|
-
var __defProp$
|
|
3830
|
-
var __name$
|
|
3829
|
+
var __defProp$22 = Object.defineProperty;
|
|
3830
|
+
var __name$20 = (target, value) => __defProp$22(target, "name", {
|
|
3831
3831
|
value,
|
|
3832
3832
|
configurable: true
|
|
3833
3833
|
});
|
|
@@ -3836,8 +3836,8 @@ function useStateMachine$1(initialState, machine) {
|
|
|
3836
3836
|
return machine[state][event] ?? state;
|
|
3837
3837
|
}, initialState);
|
|
3838
3838
|
}
|
|
3839
|
-
__name$
|
|
3840
|
-
var Presence = /* @__PURE__ */ __name$
|
|
3839
|
+
__name$20(useStateMachine$1, "useStateMachine");
|
|
3840
|
+
var Presence = /* @__PURE__ */ __name$20((props) => {
|
|
3841
3841
|
const { present, children } = props;
|
|
3842
3842
|
const presence = usePresence(present);
|
|
3843
3843
|
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React$10.Children.only(children);
|
|
@@ -3886,7 +3886,7 @@ function usePresence(present) {
|
|
|
3886
3886
|
if (node) {
|
|
3887
3887
|
let timeoutId;
|
|
3888
3888
|
const ownerWindow = node.ownerDocument.defaultView ?? window;
|
|
3889
|
-
const handleAnimationEnd = /* @__PURE__ */ __name$
|
|
3889
|
+
const handleAnimationEnd = /* @__PURE__ */ __name$20((event) => {
|
|
3890
3890
|
const isCurrentAnimation = getAnimationName(stylesRef.current).includes(CSS.escape(event.animationName));
|
|
3891
3891
|
if (event.target === node && isCurrentAnimation) {
|
|
3892
3892
|
send("ANIMATION_END");
|
|
@@ -3899,7 +3899,7 @@ function usePresence(present) {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
}
|
|
3901
3901
|
}, "handleAnimationEnd");
|
|
3902
|
-
const handleAnimationStart = /* @__PURE__ */ __name$
|
|
3902
|
+
const handleAnimationStart = /* @__PURE__ */ __name$20((event) => {
|
|
3903
3903
|
if (event.target === node) prevAnimationNameRef.current = getAnimationName(stylesRef.current);
|
|
3904
3904
|
}, "handleAnimationStart");
|
|
3905
3905
|
node.addEventListener("animationstart", handleAnimationStart);
|
|
@@ -3925,12 +3925,12 @@ function usePresence(present) {
|
|
|
3925
3925
|
}, [])
|
|
3926
3926
|
};
|
|
3927
3927
|
}
|
|
3928
|
-
__name$
|
|
3928
|
+
__name$20(usePresence, "usePresence");
|
|
3929
3929
|
function setRef(ref, value) {
|
|
3930
3930
|
if (typeof ref === "function") return ref(value);
|
|
3931
3931
|
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
3932
3932
|
}
|
|
3933
|
-
__name$
|
|
3933
|
+
__name$20(setRef, "setRef");
|
|
3934
3934
|
function useStableComposedRefs(...refs) {
|
|
3935
3935
|
const refsRef = React$10.useRef(refs);
|
|
3936
3936
|
refsRef.current = refs;
|
|
@@ -3951,11 +3951,11 @@ function useStableComposedRefs(...refs) {
|
|
|
3951
3951
|
};
|
|
3952
3952
|
}, []);
|
|
3953
3953
|
}
|
|
3954
|
-
__name$
|
|
3954
|
+
__name$20(useStableComposedRefs, "useStableComposedRefs");
|
|
3955
3955
|
function getAnimationName(styles) {
|
|
3956
3956
|
return styles?.animationName || "none";
|
|
3957
3957
|
}
|
|
3958
|
-
__name$
|
|
3958
|
+
__name$20(getAnimationName, "getAnimationName");
|
|
3959
3959
|
function getElementRef$1(element) {
|
|
3960
3960
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
3961
3961
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -3965,12 +3965,12 @@ function getElementRef$1(element) {
|
|
|
3965
3965
|
if (mayWarn) return element.props.ref;
|
|
3966
3966
|
return element.props.ref || element.ref;
|
|
3967
3967
|
}
|
|
3968
|
-
__name$
|
|
3968
|
+
__name$20(getElementRef$1, "getElementRef");
|
|
3969
3969
|
|
|
3970
3970
|
//#endregion
|
|
3971
3971
|
//#region ../../node_modules/.pnpm/@radix-ui+react-slot@1.3.3_@types+react@19.2.17_react@19.2.8/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
3972
|
-
var __defProp$
|
|
3973
|
-
var __name$
|
|
3972
|
+
var __defProp$21 = Object.defineProperty;
|
|
3973
|
+
var __name$19 = (target, value) => __defProp$21(target, "name", {
|
|
3974
3974
|
value,
|
|
3975
3975
|
configurable: true
|
|
3976
3976
|
});
|
|
@@ -4007,17 +4007,17 @@ function createSlot(ownerName) {
|
|
|
4007
4007
|
Slot2.displayName = `${ownerName}.Slot`;
|
|
4008
4008
|
return Slot2;
|
|
4009
4009
|
}
|
|
4010
|
-
__name$
|
|
4010
|
+
__name$19(createSlot, "createSlot");
|
|
4011
4011
|
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
4012
4012
|
// @__NO_SIDE_EFFECTS__
|
|
4013
4013
|
function createSlottable(ownerName) {
|
|
4014
|
-
const Slottable2 = /* @__PURE__ */ __name$
|
|
4014
|
+
const Slottable2 = /* @__PURE__ */ __name$19((props) => "child" in props ? props.children(props.child) : props.children, "Slottable");
|
|
4015
4015
|
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
4016
4016
|
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
4017
4017
|
return Slottable2;
|
|
4018
4018
|
}
|
|
4019
|
-
__name$
|
|
4020
|
-
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$
|
|
4019
|
+
__name$19(createSlottable, "createSlottable");
|
|
4020
|
+
var getSlottableElementFromSlottable = /* @__PURE__ */ __name$19((slottable, child) => {
|
|
4021
4021
|
if ("child" in slottable.props) {
|
|
4022
4022
|
const child2 = slottable.props.child;
|
|
4023
4023
|
if (!React$10.isValidElement(child2)) return null;
|
|
@@ -4048,7 +4048,7 @@ function mergeProps(slotProps, childProps) {
|
|
|
4048
4048
|
...overrideProps
|
|
4049
4049
|
};
|
|
4050
4050
|
}
|
|
4051
|
-
__name$
|
|
4051
|
+
__name$19(mergeProps, "mergeProps");
|
|
4052
4052
|
function getElementRef(element) {
|
|
4053
4053
|
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
4054
4054
|
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
@@ -4058,32 +4058,32 @@ function getElementRef(element) {
|
|
|
4058
4058
|
if (mayWarn) return element.props.ref;
|
|
4059
4059
|
return element.props.ref || element.ref;
|
|
4060
4060
|
}
|
|
4061
|
-
__name$
|
|
4061
|
+
__name$19(getElementRef, "getElementRef");
|
|
4062
4062
|
function isSlottable(child) {
|
|
4063
4063
|
return React$10.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
4064
4064
|
}
|
|
4065
|
-
__name$
|
|
4065
|
+
__name$19(isSlottable, "isSlottable");
|
|
4066
4066
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
4067
4067
|
function isLazyComponent(element) {
|
|
4068
4068
|
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
4069
4069
|
}
|
|
4070
|
-
__name$
|
|
4070
|
+
__name$19(isLazyComponent, "isLazyComponent");
|
|
4071
4071
|
function isPromiseLike(value) {
|
|
4072
4072
|
return typeof value === "object" && value !== null && "then" in value;
|
|
4073
4073
|
}
|
|
4074
|
-
__name$
|
|
4075
|
-
var createSlotError = /* @__PURE__ */ __name$
|
|
4074
|
+
__name$19(isPromiseLike, "isPromiseLike");
|
|
4075
|
+
var createSlotError = /* @__PURE__ */ __name$19((ownerName) => {
|
|
4076
4076
|
return `${ownerName} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`;
|
|
4077
4077
|
}, "createSlotError");
|
|
4078
|
-
var createSlottableError = /* @__PURE__ */ __name$
|
|
4078
|
+
var createSlottableError = /* @__PURE__ */ __name$19((ownerName) => {
|
|
4079
4079
|
return `${ownerName} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`;
|
|
4080
4080
|
}, "createSlottableError");
|
|
4081
4081
|
var use$2 = React$10[" use ".trim().toString()];
|
|
4082
4082
|
|
|
4083
4083
|
//#endregion
|
|
4084
4084
|
//#region ../../node_modules/.pnpm/@radix-ui+react-primitive@2.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_be17283a23f513d7b972453cc36e2a96/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
4085
|
-
var __defProp$
|
|
4086
|
-
var __name$
|
|
4085
|
+
var __defProp$20 = Object.defineProperty;
|
|
4086
|
+
var __name$18 = (target, value) => __defProp$20(target, "name", {
|
|
4087
4087
|
value,
|
|
4088
4088
|
configurable: true
|
|
4089
4089
|
});
|
|
@@ -4125,201 +4125,7 @@ var Primitive = [
|
|
|
4125
4125
|
function dispatchDiscreteCustomEvent(target, event) {
|
|
4126
4126
|
if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));
|
|
4127
4127
|
}
|
|
4128
|
-
__name$
|
|
4129
|
-
|
|
4130
|
-
//#endregion
|
|
4131
|
-
//#region ../../node_modules/.pnpm/@radix-ui+react-checkbox@1.3.11_@types+react-dom@19.2.3_@types+react@19.2.17__@types+re_f6e0f4835f2e28dbd2e5cb3844d005eb/node_modules/@radix-ui/react-checkbox/dist/index.mjs
|
|
4132
|
-
var __defProp$20 = Object.defineProperty;
|
|
4133
|
-
var __name$18 = (target, value) => __defProp$20(target, "name", {
|
|
4134
|
-
value,
|
|
4135
|
-
configurable: true
|
|
4136
|
-
});
|
|
4137
|
-
var CHECKBOX_NAME = "Checkbox";
|
|
4138
|
-
var [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME);
|
|
4139
|
-
var [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
4140
|
-
function CheckboxProvider(props) {
|
|
4141
|
-
const { __scopeCheckbox, checked: checkedProp, children, defaultChecked, disabled, form, name, onCheckedChange, required, value = "on", internal_do_not_use_render } = props;
|
|
4142
|
-
const [checked, setChecked] = useControllableState({
|
|
4143
|
-
prop: checkedProp,
|
|
4144
|
-
defaultProp: defaultChecked ?? false,
|
|
4145
|
-
onChange: onCheckedChange,
|
|
4146
|
-
caller: CHECKBOX_NAME
|
|
4147
|
-
});
|
|
4148
|
-
const [control, setControl] = React$10.useState(null);
|
|
4149
|
-
const [bubbleInput, setBubbleInput] = React$10.useState(null);
|
|
4150
|
-
const hasConsumerStoppedPropagationRef = React$10.useRef(false);
|
|
4151
|
-
const [userInteractionCount, onUserInteraction] = React$10.useReducer((count) => count + 1, 0);
|
|
4152
|
-
const isFormControl = control ? !!form || !!control.closest("form") : true;
|
|
4153
|
-
const context = {
|
|
4154
|
-
checked,
|
|
4155
|
-
disabled,
|
|
4156
|
-
setChecked,
|
|
4157
|
-
control,
|
|
4158
|
-
setControl,
|
|
4159
|
-
name,
|
|
4160
|
-
form,
|
|
4161
|
-
value,
|
|
4162
|
-
hasConsumerStoppedPropagationRef,
|
|
4163
|
-
userInteractionCount,
|
|
4164
|
-
onUserInteraction,
|
|
4165
|
-
required,
|
|
4166
|
-
defaultChecked: isIndeterminate$1(defaultChecked) ? false : defaultChecked,
|
|
4167
|
-
isFormControl,
|
|
4168
|
-
bubbleInput,
|
|
4169
|
-
setBubbleInput
|
|
4170
|
-
};
|
|
4171
|
-
return /* @__PURE__ */ jsx(CheckboxProviderImpl, {
|
|
4172
|
-
scope: __scopeCheckbox,
|
|
4173
|
-
...context,
|
|
4174
|
-
children: isFunction$1(internal_do_not_use_render) ? internal_do_not_use_render(context) : children
|
|
4175
|
-
});
|
|
4176
|
-
}
|
|
4177
|
-
__name$18(CheckboxProvider, "CheckboxProvider");
|
|
4178
|
-
var TRIGGER_NAME$2 = "CheckboxTrigger";
|
|
4179
|
-
var CheckboxTrigger = /* @__PURE__ */ React$10.forwardRef(/* @__PURE__ */ __name$18(function CheckboxTrigger2({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) {
|
|
4180
|
-
const { control, value, disabled, checked, required, setControl, setChecked, hasConsumerStoppedPropagationRef, onUserInteraction, isFormControl, bubbleInput } = useCheckboxContext(TRIGGER_NAME$2, __scopeCheckbox);
|
|
4181
|
-
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
4182
|
-
const initialCheckedStateRef = React$10.useRef(checked);
|
|
4183
|
-
React$10.useEffect(() => {
|
|
4184
|
-
const form = control?.form;
|
|
4185
|
-
if (form) {
|
|
4186
|
-
const reset = /* @__PURE__ */ __name$18(() => setChecked(initialCheckedStateRef.current), "reset");
|
|
4187
|
-
form.addEventListener("reset", reset);
|
|
4188
|
-
return () => form.removeEventListener("reset", reset);
|
|
4189
|
-
}
|
|
4190
|
-
}, [control, setChecked]);
|
|
4191
|
-
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
4192
|
-
type: "button",
|
|
4193
|
-
role: "checkbox",
|
|
4194
|
-
"aria-checked": isIndeterminate$1(checked) ? "mixed" : checked,
|
|
4195
|
-
"aria-required": required,
|
|
4196
|
-
"data-state": getState$2(checked),
|
|
4197
|
-
"data-disabled": disabled ? "" : void 0,
|
|
4198
|
-
disabled,
|
|
4199
|
-
value,
|
|
4200
|
-
...checkboxProps,
|
|
4201
|
-
ref: composedRefs,
|
|
4202
|
-
onKeyDown: composeEventHandlers(onKeyDown, (event) => {
|
|
4203
|
-
if (event.key === "Enter") event.preventDefault();
|
|
4204
|
-
}),
|
|
4205
|
-
onClick: composeEventHandlers(onClick, (event) => {
|
|
4206
|
-
onUserInteraction();
|
|
4207
|
-
setChecked((prevChecked) => isIndeterminate$1(prevChecked) ? true : !prevChecked);
|
|
4208
|
-
if (bubbleInput && isFormControl) {
|
|
4209
|
-
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
4210
|
-
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
|
4211
|
-
}
|
|
4212
|
-
})
|
|
4213
|
-
});
|
|
4214
|
-
}, "CheckboxTrigger"));
|
|
4215
|
-
var Checkbox$1 = /* @__PURE__ */ React$10.forwardRef(/* @__PURE__ */ __name$18(function Checkbox2(props, forwardedRef) {
|
|
4216
|
-
const { __scopeCheckbox, name, checked, defaultChecked, required, disabled, value, onCheckedChange, form, ...checkboxProps } = props;
|
|
4217
|
-
return /* @__PURE__ */ jsx(CheckboxProvider, {
|
|
4218
|
-
__scopeCheckbox,
|
|
4219
|
-
checked,
|
|
4220
|
-
defaultChecked,
|
|
4221
|
-
disabled,
|
|
4222
|
-
required,
|
|
4223
|
-
onCheckedChange,
|
|
4224
|
-
name,
|
|
4225
|
-
form,
|
|
4226
|
-
value,
|
|
4227
|
-
internal_do_not_use_render: ({ isFormControl }) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CheckboxTrigger, {
|
|
4228
|
-
...checkboxProps,
|
|
4229
|
-
ref: forwardedRef,
|
|
4230
|
-
__scopeCheckbox
|
|
4231
|
-
}), isFormControl && /* @__PURE__ */ jsx(CheckboxBubbleInput, { __scopeCheckbox })] })
|
|
4232
|
-
});
|
|
4233
|
-
}, "Checkbox"));
|
|
4234
|
-
var INDICATOR_NAME = "CheckboxIndicator";
|
|
4235
|
-
var CheckboxIndicator = /* @__PURE__ */ React$10.forwardRef(/* @__PURE__ */ __name$18(function CheckboxIndicator2(props, forwardedRef) {
|
|
4236
|
-
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
|
4237
|
-
const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
|
|
4238
|
-
return /* @__PURE__ */ jsx(Presence, {
|
|
4239
|
-
present: forceMount || isIndeterminate$1(context.checked) || context.checked === true,
|
|
4240
|
-
children: /* @__PURE__ */ jsx(Primitive.span, {
|
|
4241
|
-
"data-state": getState$2(context.checked),
|
|
4242
|
-
"data-disabled": context.disabled ? "" : void 0,
|
|
4243
|
-
...indicatorProps,
|
|
4244
|
-
ref: forwardedRef,
|
|
4245
|
-
style: {
|
|
4246
|
-
pointerEvents: "none",
|
|
4247
|
-
...props.style
|
|
4248
|
-
}
|
|
4249
|
-
})
|
|
4250
|
-
});
|
|
4251
|
-
}, "CheckboxIndicator"));
|
|
4252
|
-
var BUBBLE_INPUT_NAME$1 = "CheckboxBubbleInput";
|
|
4253
|
-
var CheckboxBubbleInput = /* @__PURE__ */ React$10.forwardRef(/* @__PURE__ */ __name$18(function CheckboxBubbleInput2({ __scopeCheckbox, onClick, ...props }, forwardedRef) {
|
|
4254
|
-
const { control, hasConsumerStoppedPropagationRef, userInteractionCount, checked, defaultChecked, required, disabled, name, value, form, bubbleInput, setBubbleInput } = useCheckboxContext(BUBBLE_INPUT_NAME$1, __scopeCheckbox);
|
|
4255
|
-
const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
|
|
4256
|
-
const controlSize = useSize(control);
|
|
4257
|
-
const shouldStopClickPropagationRef = React$10.useRef(false);
|
|
4258
|
-
const prevCheckedRef = React$10.useRef(checked);
|
|
4259
|
-
const prevUserInteractionCountRef = React$10.useRef(userInteractionCount);
|
|
4260
|
-
React$10.useEffect(() => {
|
|
4261
|
-
const input = bubbleInput;
|
|
4262
|
-
if (!input) return;
|
|
4263
|
-
const inputProto = window.HTMLInputElement.prototype;
|
|
4264
|
-
const setChecked = Object.getOwnPropertyDescriptor(inputProto, "checked").set;
|
|
4265
|
-
const isUserInteraction = userInteractionCount !== prevUserInteractionCountRef.current;
|
|
4266
|
-
prevUserInteractionCountRef.current = userInteractionCount;
|
|
4267
|
-
const checkedChanged = prevCheckedRef.current !== checked;
|
|
4268
|
-
prevCheckedRef.current = checked;
|
|
4269
|
-
const bubbles = !(isUserInteraction && hasConsumerStoppedPropagationRef.current);
|
|
4270
|
-
if (checkedChanged && setChecked) {
|
|
4271
|
-
shouldStopClickPropagationRef.current = !isUserInteraction;
|
|
4272
|
-
const event = new Event("click", { bubbles });
|
|
4273
|
-
input.indeterminate = isIndeterminate$1(checked);
|
|
4274
|
-
setChecked.call(input, isIndeterminate$1(checked) ? false : checked);
|
|
4275
|
-
input.dispatchEvent(event);
|
|
4276
|
-
shouldStopClickPropagationRef.current = false;
|
|
4277
|
-
}
|
|
4278
|
-
}, [
|
|
4279
|
-
bubbleInput,
|
|
4280
|
-
checked,
|
|
4281
|
-
hasConsumerStoppedPropagationRef,
|
|
4282
|
-
userInteractionCount
|
|
4283
|
-
]);
|
|
4284
|
-
const defaultCheckedRef = React$10.useRef(isIndeterminate$1(checked) ? false : checked);
|
|
4285
|
-
return /* @__PURE__ */ jsx(Primitive.input, {
|
|
4286
|
-
type: "checkbox",
|
|
4287
|
-
"aria-hidden": true,
|
|
4288
|
-
defaultChecked: defaultChecked ?? defaultCheckedRef.current,
|
|
4289
|
-
required,
|
|
4290
|
-
disabled,
|
|
4291
|
-
name,
|
|
4292
|
-
value,
|
|
4293
|
-
form,
|
|
4294
|
-
...props,
|
|
4295
|
-
tabIndex: -1,
|
|
4296
|
-
ref: composedRefs,
|
|
4297
|
-
onClick: composeEventHandlers(onClick, (event) => {
|
|
4298
|
-
if (shouldStopClickPropagationRef.current) event.stopPropagation();
|
|
4299
|
-
}),
|
|
4300
|
-
style: {
|
|
4301
|
-
...props.style,
|
|
4302
|
-
...controlSize,
|
|
4303
|
-
position: "absolute",
|
|
4304
|
-
pointerEvents: "none",
|
|
4305
|
-
opacity: 0,
|
|
4306
|
-
margin: 0,
|
|
4307
|
-
transform: "translateX(-100%)"
|
|
4308
|
-
}
|
|
4309
|
-
});
|
|
4310
|
-
}, "CheckboxBubbleInput"));
|
|
4311
|
-
function isFunction$1(value) {
|
|
4312
|
-
return typeof value === "function";
|
|
4313
|
-
}
|
|
4314
|
-
__name$18(isFunction$1, "isFunction");
|
|
4315
|
-
function isIndeterminate$1(checked) {
|
|
4316
|
-
return checked === "indeterminate";
|
|
4317
|
-
}
|
|
4318
|
-
__name$18(isIndeterminate$1, "isIndeterminate");
|
|
4319
|
-
function getState$2(checked) {
|
|
4320
|
-
return isIndeterminate$1(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
4321
|
-
}
|
|
4322
|
-
__name$18(getState$2, "getState");
|
|
4128
|
+
__name$18(dispatchDiscreteCustomEvent, "dispatchDiscreteCustomEvent");
|
|
4323
4129
|
|
|
4324
4130
|
//#endregion
|
|
4325
4131
|
//#region ../../node_modules/.pnpm/@radix-ui+react-switch@1.3.7_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react_e96baf15833549650471eefa4ffd78d0/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
@@ -99675,31 +99481,43 @@ function Button({ variant = "primary", size = "md", loading = false, icon, disab
|
|
|
99675
99481
|
}) : icon, children]
|
|
99676
99482
|
});
|
|
99677
99483
|
}
|
|
99678
|
-
/**
|
|
99484
|
+
/**
|
|
99485
|
+
* 全仓唯一一份复制到剪贴板的状态机(S12)。
|
|
99486
|
+
* `copied` 为真时忽略重复点击,`resetDelayMs` 后自动复位。
|
|
99487
|
+
*/
|
|
99488
|
+
function useCopyToClipboard(resetDelayMs = 2e3) {
|
|
99489
|
+
const [copied, setCopied] = useState(false);
|
|
99490
|
+
return {
|
|
99491
|
+
copied,
|
|
99492
|
+
copy: useCallback((value) => {
|
|
99493
|
+
if (copied || value === "") return;
|
|
99494
|
+
navigator.clipboard.writeText(value).then(() => {
|
|
99495
|
+
setCopied(true);
|
|
99496
|
+
setTimeout(() => setCopied(false), resetDelayMs);
|
|
99497
|
+
});
|
|
99498
|
+
}, [copied, resetDelayMs])
|
|
99499
|
+
};
|
|
99500
|
+
}
|
|
99501
|
+
/**
|
|
99502
|
+
* Source-owned input with a consistent form-control and validation surface.
|
|
99503
|
+
*
|
|
99504
|
+
* 宽/高/内边距的默认值在 `.webskill-input`(components 层),消费方的 `w-*` / `h-*` / `px-*` 能确定性地压过它;
|
|
99505
|
+
* 写在基类里则同层同特异性,全仓已有 8 个文件因此静默失效。
|
|
99506
|
+
* 基类锁定 `rounded`(className 覆盖不生效):表单控件圆角体系统一。
|
|
99507
|
+
*/
|
|
99679
99508
|
function Input({ className = "", invalid = false, type = "text", "aria-invalid": ariaInvalid, ...props }) {
|
|
99680
99509
|
return /* @__PURE__ */ jsx("input", {
|
|
99681
99510
|
type,
|
|
99682
99511
|
"aria-invalid": invalid ? true : ariaInvalid,
|
|
99683
|
-
className: `
|
|
99512
|
+
className: `webskill-input rounded-md border bg-surface text-sm text-ink shadow-xs outline-none transition-colors placeholder:text-muted disabled:cursor-not-allowed disabled:opacity-50 ${invalid ? "border-destructive focus-visible:ring-destructive/20" : "border-input focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/20"} ${className}`,
|
|
99684
99513
|
...props
|
|
99685
99514
|
});
|
|
99686
99515
|
}
|
|
99687
|
-
/**
|
|
99688
|
-
|
|
99689
|
-
|
|
99690
|
-
|
|
99691
|
-
|
|
99692
|
-
...props,
|
|
99693
|
-
children: /* @__PURE__ */ jsx(CheckboxIndicator, {
|
|
99694
|
-
className: "flex items-center justify-center",
|
|
99695
|
-
children: /* @__PURE__ */ jsx(Check, {
|
|
99696
|
-
className: "size-3",
|
|
99697
|
-
"aria-hidden": true
|
|
99698
|
-
})
|
|
99699
|
-
})
|
|
99700
|
-
});
|
|
99701
|
-
}
|
|
99702
|
-
/** Source-owned textarea with the same form-control states as Input. */
|
|
99516
|
+
/**
|
|
99517
|
+
* Source-owned textarea with the same form-control states as Input.
|
|
99518
|
+
*
|
|
99519
|
+
* 基类锁定 `w` `h` `p` `rounded`(className 覆盖不生效):同 `Input`。
|
|
99520
|
+
*/
|
|
99703
99521
|
function Textarea({ className = "", invalid = false, "aria-invalid": ariaInvalid, ...props }) {
|
|
99704
99522
|
return /* @__PURE__ */ jsx("textarea", {
|
|
99705
99523
|
"aria-invalid": invalid ? true : ariaInvalid,
|
|
@@ -99707,7 +99525,11 @@ function Textarea({ className = "", invalid = false, "aria-invalid": ariaInvalid
|
|
|
99707
99525
|
...props
|
|
99708
99526
|
});
|
|
99709
99527
|
}
|
|
99710
|
-
/**
|
|
99528
|
+
/**
|
|
99529
|
+
* Source-owned shadcn-style switch backed by Radix keyboard semantics.
|
|
99530
|
+
*
|
|
99531
|
+
* 基类锁定 `w` `h` `p` `rounded`(className 覆盖不生效):轨道与滑块尺寸互相计算,任改一项即错位。
|
|
99532
|
+
*/
|
|
99711
99533
|
function Switch({ className = "", label, ...props }) {
|
|
99712
99534
|
const control = /* @__PURE__ */ jsx(Switch$1, {
|
|
99713
99535
|
className: `inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full bg-border p-0.5 outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/20 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary ${className}`,
|
|
@@ -99744,6 +99566,7 @@ function usePortalContainer() {
|
|
|
99744
99566
|
return useContext(PortalContainerContext);
|
|
99745
99567
|
}
|
|
99746
99568
|
const DropdownMenu = Root2;
|
|
99569
|
+
/** 基类锁定 `h` `p` `rounded`(className 覆盖不生效):触发器与 `Button` 保持同高。 */
|
|
99747
99570
|
function DropdownMenuTrigger({ children, className = "", asChild, ...props }) {
|
|
99748
99571
|
const triggerClass = asChild ? className : `inline-flex h-9 items-center justify-center rounded-md border border-border bg-surface px-3 text-sm font-medium text-ink shadow-xs outline-none transition-colors hover:bg-subtle focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/20 ${className}`;
|
|
99749
99572
|
return /* @__PURE__ */ jsx(Trigger, {
|
|
@@ -99753,17 +99576,22 @@ function DropdownMenuTrigger({ children, className = "", asChild, ...props }) {
|
|
|
99753
99576
|
children
|
|
99754
99577
|
});
|
|
99755
99578
|
}
|
|
99579
|
+
/**
|
|
99580
|
+
* 浮层宽度下限默认值在 `.webskill-dropdown-content`(components 层),消费方的 `min-w-*` 能确定性地压过它。
|
|
99581
|
+
* 基类锁定 `p` `rounded` `z`(className 覆盖不生效):`z-50` 属 ui-kit 的整体层级契约,逐个覆盖会让层级关系变成运气。
|
|
99582
|
+
*/
|
|
99756
99583
|
function DropdownMenuContent({ children, className = "", sideOffset = 6, ...props }) {
|
|
99757
99584
|
return /* @__PURE__ */ jsx(Portal2, {
|
|
99758
99585
|
container: usePortalContainer(),
|
|
99759
99586
|
children: /* @__PURE__ */ jsx(Content2, {
|
|
99760
99587
|
sideOffset,
|
|
99761
|
-
className: `z-50
|
|
99588
|
+
className: `webskill-dropdown-content z-50 rounded-md border border-border bg-surface p-1 text-sm text-ink shadow-pop outline-none ${className}`,
|
|
99762
99589
|
...props,
|
|
99763
99590
|
children
|
|
99764
99591
|
})
|
|
99765
99592
|
});
|
|
99766
99593
|
}
|
|
99594
|
+
/** 基类锁定 `p` `rounded`(className 覆盖不生效):左内边距与勾选标记位置耦合。 */
|
|
99767
99595
|
function DropdownMenuCheckboxItem({ children, className = "", ...props }) {
|
|
99768
99596
|
return /* @__PURE__ */ jsxs(CheckboxItem2, {
|
|
99769
99597
|
className: `relative flex cursor-pointer items-center rounded-sm py-1.5 pr-2 pl-7 text-sm outline-none transition-colors data-[highlighted]:bg-subtle data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ${className}`,
|
|
@@ -99812,7 +99640,11 @@ function Separator({ className = "", orientation = "horizontal", decorative = tr
|
|
|
99812
99640
|
const CommandEmpty = _e.Empty;
|
|
99813
99641
|
const CommandGroup = _e.Group;
|
|
99814
99642
|
const CommandSeparator = _e.Separator;
|
|
99815
|
-
/**
|
|
99643
|
+
/**
|
|
99644
|
+
* Semantic table primitive for compact operational data.
|
|
99645
|
+
*
|
|
99646
|
+
* 基类锁定 `w`(className 覆盖不生效):`w-full` 是表格约定。
|
|
99647
|
+
*/
|
|
99816
99648
|
function Table({ className = "", ...props }) {
|
|
99817
99649
|
return /* @__PURE__ */ jsx("table", {
|
|
99818
99650
|
className: `w-full caption-bottom text-sm ${className}`,
|
|
@@ -99822,6 +99654,8 @@ function Table({ className = "", ...props }) {
|
|
|
99822
99654
|
/**
|
|
99823
99655
|
* Source-owned shadcn-style table foundation.
|
|
99824
99656
|
* The wrapper owns the visible frame and horizontal overflow; consumers own data behavior.
|
|
99657
|
+
*
|
|
99658
|
+
* 基类锁定 `min-w`(className 覆盖不生效):`min-w-max` 是横向滚动的前提。
|
|
99825
99659
|
*/
|
|
99826
99660
|
function DataTable({ children, className = "", containerClassName = "", ...props }) {
|
|
99827
99661
|
return /* @__PURE__ */ jsx(ScrollArea, {
|
|
@@ -99841,6 +99675,7 @@ const toneClasses$1 = {
|
|
|
99841
99675
|
info: "bg-info-soft text-info",
|
|
99842
99676
|
danger: "bg-destructive-soft text-destructive"
|
|
99843
99677
|
};
|
|
99678
|
+
/** 基类锁定 `p` `rounded`(className 覆盖不生效):药丸形状是组件身份,要换形状请换组件。 */
|
|
99844
99679
|
function Badge({ tone = "neutral", className = "", children, ...rest }) {
|
|
99845
99680
|
return /* @__PURE__ */ jsx("span", {
|
|
99846
99681
|
className: `inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium ${toneClasses$1[tone]} ${className}`,
|
|
@@ -116165,564 +116000,6 @@ function defaultUrlTransform(value) {
|
|
|
116165
116000
|
if (colon === -1 || slash !== -1 && colon > slash || questionMark !== -1 && colon > questionMark || numberSign !== -1 && colon > numberSign || safeProtocol.test(value.slice(0, colon))) return value;
|
|
116166
116001
|
return "";
|
|
116167
116002
|
}
|
|
116168
|
-
var one_dark_default = {
|
|
116169
|
-
"code[class*=\"language-\"]": {
|
|
116170
|
-
"background": "hsl(220, 13%, 18%)",
|
|
116171
|
-
"color": "hsl(220, 14%, 71%)",
|
|
116172
|
-
"textShadow": "0 1px rgba(0, 0, 0, 0.3)",
|
|
116173
|
-
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
116174
|
-
"direction": "ltr",
|
|
116175
|
-
"textAlign": "left",
|
|
116176
|
-
"whiteSpace": "pre",
|
|
116177
|
-
"wordSpacing": "normal",
|
|
116178
|
-
"wordBreak": "normal",
|
|
116179
|
-
"lineHeight": "1.5",
|
|
116180
|
-
"MozTabSize": "2",
|
|
116181
|
-
"OTabSize": "2",
|
|
116182
|
-
"tabSize": "2",
|
|
116183
|
-
"WebkitHyphens": "none",
|
|
116184
|
-
"MozHyphens": "none",
|
|
116185
|
-
"msHyphens": "none",
|
|
116186
|
-
"hyphens": "none"
|
|
116187
|
-
},
|
|
116188
|
-
"pre[class*=\"language-\"]": {
|
|
116189
|
-
"background": "hsl(220, 13%, 18%)",
|
|
116190
|
-
"color": "hsl(220, 14%, 71%)",
|
|
116191
|
-
"textShadow": "0 1px rgba(0, 0, 0, 0.3)",
|
|
116192
|
-
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
116193
|
-
"direction": "ltr",
|
|
116194
|
-
"textAlign": "left",
|
|
116195
|
-
"whiteSpace": "pre",
|
|
116196
|
-
"wordSpacing": "normal",
|
|
116197
|
-
"wordBreak": "normal",
|
|
116198
|
-
"lineHeight": "1.5",
|
|
116199
|
-
"MozTabSize": "2",
|
|
116200
|
-
"OTabSize": "2",
|
|
116201
|
-
"tabSize": "2",
|
|
116202
|
-
"WebkitHyphens": "none",
|
|
116203
|
-
"MozHyphens": "none",
|
|
116204
|
-
"msHyphens": "none",
|
|
116205
|
-
"hyphens": "none",
|
|
116206
|
-
"padding": "1em",
|
|
116207
|
-
"margin": "0.5em 0",
|
|
116208
|
-
"overflow": "auto",
|
|
116209
|
-
"borderRadius": "0.3em"
|
|
116210
|
-
},
|
|
116211
|
-
"code[class*=\"language-\"]::-moz-selection": {
|
|
116212
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116213
|
-
"color": "inherit",
|
|
116214
|
-
"textShadow": "none"
|
|
116215
|
-
},
|
|
116216
|
-
"code[class*=\"language-\"] *::-moz-selection": {
|
|
116217
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116218
|
-
"color": "inherit",
|
|
116219
|
-
"textShadow": "none"
|
|
116220
|
-
},
|
|
116221
|
-
"pre[class*=\"language-\"] *::-moz-selection": {
|
|
116222
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116223
|
-
"color": "inherit",
|
|
116224
|
-
"textShadow": "none"
|
|
116225
|
-
},
|
|
116226
|
-
"code[class*=\"language-\"]::selection": {
|
|
116227
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116228
|
-
"color": "inherit",
|
|
116229
|
-
"textShadow": "none"
|
|
116230
|
-
},
|
|
116231
|
-
"code[class*=\"language-\"] *::selection": {
|
|
116232
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116233
|
-
"color": "inherit",
|
|
116234
|
-
"textShadow": "none"
|
|
116235
|
-
},
|
|
116236
|
-
"pre[class*=\"language-\"] *::selection": {
|
|
116237
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116238
|
-
"color": "inherit",
|
|
116239
|
-
"textShadow": "none"
|
|
116240
|
-
},
|
|
116241
|
-
":not(pre) > code[class*=\"language-\"]": {
|
|
116242
|
-
"padding": "0.2em 0.3em",
|
|
116243
|
-
"borderRadius": "0.3em",
|
|
116244
|
-
"whiteSpace": "normal"
|
|
116245
|
-
},
|
|
116246
|
-
"comment": {
|
|
116247
|
-
"color": "hsl(220, 10%, 40%)",
|
|
116248
|
-
"fontStyle": "italic"
|
|
116249
|
-
},
|
|
116250
|
-
"prolog": { "color": "hsl(220, 10%, 40%)" },
|
|
116251
|
-
"cdata": { "color": "hsl(220, 10%, 40%)" },
|
|
116252
|
-
"doctype": { "color": "hsl(220, 14%, 71%)" },
|
|
116253
|
-
"punctuation": { "color": "hsl(220, 14%, 71%)" },
|
|
116254
|
-
"entity": {
|
|
116255
|
-
"color": "hsl(220, 14%, 71%)",
|
|
116256
|
-
"cursor": "help"
|
|
116257
|
-
},
|
|
116258
|
-
"attr-name": { "color": "hsl(29, 54%, 61%)" },
|
|
116259
|
-
"class-name": { "color": "hsl(29, 54%, 61%)" },
|
|
116260
|
-
"boolean": { "color": "hsl(29, 54%, 61%)" },
|
|
116261
|
-
"constant": { "color": "hsl(29, 54%, 61%)" },
|
|
116262
|
-
"number": { "color": "hsl(29, 54%, 61%)" },
|
|
116263
|
-
"atrule": { "color": "hsl(29, 54%, 61%)" },
|
|
116264
|
-
"keyword": { "color": "hsl(286, 60%, 67%)" },
|
|
116265
|
-
"property": { "color": "hsl(355, 65%, 65%)" },
|
|
116266
|
-
"tag": { "color": "hsl(355, 65%, 65%)" },
|
|
116267
|
-
"symbol": { "color": "hsl(355, 65%, 65%)" },
|
|
116268
|
-
"deleted": { "color": "hsl(355, 65%, 65%)" },
|
|
116269
|
-
"important": { "color": "hsl(355, 65%, 65%)" },
|
|
116270
|
-
"selector": { "color": "hsl(95, 38%, 62%)" },
|
|
116271
|
-
"string": { "color": "hsl(95, 38%, 62%)" },
|
|
116272
|
-
"char": { "color": "hsl(95, 38%, 62%)" },
|
|
116273
|
-
"builtin": { "color": "hsl(95, 38%, 62%)" },
|
|
116274
|
-
"inserted": { "color": "hsl(95, 38%, 62%)" },
|
|
116275
|
-
"regex": { "color": "hsl(95, 38%, 62%)" },
|
|
116276
|
-
"attr-value": { "color": "hsl(95, 38%, 62%)" },
|
|
116277
|
-
"attr-value > .token.punctuation": { "color": "hsl(95, 38%, 62%)" },
|
|
116278
|
-
"variable": { "color": "hsl(207, 82%, 66%)" },
|
|
116279
|
-
"operator": { "color": "hsl(207, 82%, 66%)" },
|
|
116280
|
-
"function": { "color": "hsl(207, 82%, 66%)" },
|
|
116281
|
-
"url": { "color": "hsl(187, 47%, 55%)" },
|
|
116282
|
-
"attr-value > .token.punctuation.attr-equals": { "color": "hsl(220, 14%, 71%)" },
|
|
116283
|
-
"special-attr > .token.attr-value > .token.value.css": { "color": "hsl(220, 14%, 71%)" },
|
|
116284
|
-
".language-css .token.selector": { "color": "hsl(355, 65%, 65%)" },
|
|
116285
|
-
".language-css .token.property": { "color": "hsl(220, 14%, 71%)" },
|
|
116286
|
-
".language-css .token.function": { "color": "hsl(187, 47%, 55%)" },
|
|
116287
|
-
".language-css .token.url > .token.function": { "color": "hsl(187, 47%, 55%)" },
|
|
116288
|
-
".language-css .token.url > .token.string.url": { "color": "hsl(95, 38%, 62%)" },
|
|
116289
|
-
".language-css .token.important": { "color": "hsl(286, 60%, 67%)" },
|
|
116290
|
-
".language-css .token.atrule .token.rule": { "color": "hsl(286, 60%, 67%)" },
|
|
116291
|
-
".language-javascript .token.operator": { "color": "hsl(286, 60%, 67%)" },
|
|
116292
|
-
".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": { "color": "hsl(5, 48%, 51%)" },
|
|
116293
|
-
".language-json .token.operator": { "color": "hsl(220, 14%, 71%)" },
|
|
116294
|
-
".language-json .token.null.keyword": { "color": "hsl(29, 54%, 61%)" },
|
|
116295
|
-
".language-markdown .token.url": { "color": "hsl(220, 14%, 71%)" },
|
|
116296
|
-
".language-markdown .token.url > .token.operator": { "color": "hsl(220, 14%, 71%)" },
|
|
116297
|
-
".language-markdown .token.url-reference.url > .token.string": { "color": "hsl(220, 14%, 71%)" },
|
|
116298
|
-
".language-markdown .token.url > .token.content": { "color": "hsl(207, 82%, 66%)" },
|
|
116299
|
-
".language-markdown .token.url > .token.url": { "color": "hsl(187, 47%, 55%)" },
|
|
116300
|
-
".language-markdown .token.url-reference.url": { "color": "hsl(187, 47%, 55%)" },
|
|
116301
|
-
".language-markdown .token.blockquote.punctuation": {
|
|
116302
|
-
"color": "hsl(220, 10%, 40%)",
|
|
116303
|
-
"fontStyle": "italic"
|
|
116304
|
-
},
|
|
116305
|
-
".language-markdown .token.hr.punctuation": {
|
|
116306
|
-
"color": "hsl(220, 10%, 40%)",
|
|
116307
|
-
"fontStyle": "italic"
|
|
116308
|
-
},
|
|
116309
|
-
".language-markdown .token.code-snippet": { "color": "hsl(95, 38%, 62%)" },
|
|
116310
|
-
".language-markdown .token.bold .token.content": { "color": "hsl(29, 54%, 61%)" },
|
|
116311
|
-
".language-markdown .token.italic .token.content": { "color": "hsl(286, 60%, 67%)" },
|
|
116312
|
-
".language-markdown .token.strike .token.content": { "color": "hsl(355, 65%, 65%)" },
|
|
116313
|
-
".language-markdown .token.strike .token.punctuation": { "color": "hsl(355, 65%, 65%)" },
|
|
116314
|
-
".language-markdown .token.list.punctuation": { "color": "hsl(355, 65%, 65%)" },
|
|
116315
|
-
".language-markdown .token.title.important > .token.punctuation": { "color": "hsl(355, 65%, 65%)" },
|
|
116316
|
-
"bold": { "fontWeight": "bold" },
|
|
116317
|
-
"italic": { "fontStyle": "italic" },
|
|
116318
|
-
"namespace": { "Opacity": "0.8" },
|
|
116319
|
-
"token.tab:not(:empty):before": {
|
|
116320
|
-
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
116321
|
-
"textShadow": "none"
|
|
116322
|
-
},
|
|
116323
|
-
"token.cr:before": {
|
|
116324
|
-
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
116325
|
-
"textShadow": "none"
|
|
116326
|
-
},
|
|
116327
|
-
"token.lf:before": {
|
|
116328
|
-
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
116329
|
-
"textShadow": "none"
|
|
116330
|
-
},
|
|
116331
|
-
"token.space:before": {
|
|
116332
|
-
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
116333
|
-
"textShadow": "none"
|
|
116334
|
-
},
|
|
116335
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item": { "marginRight": "0.4em" },
|
|
116336
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
|
|
116337
|
-
"background": "hsl(220, 13%, 26%)",
|
|
116338
|
-
"color": "hsl(220, 9%, 55%)",
|
|
116339
|
-
"padding": "0.1em 0.4em",
|
|
116340
|
-
"borderRadius": "0.3em"
|
|
116341
|
-
},
|
|
116342
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
|
|
116343
|
-
"background": "hsl(220, 13%, 26%)",
|
|
116344
|
-
"color": "hsl(220, 9%, 55%)",
|
|
116345
|
-
"padding": "0.1em 0.4em",
|
|
116346
|
-
"borderRadius": "0.3em"
|
|
116347
|
-
},
|
|
116348
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
|
|
116349
|
-
"background": "hsl(220, 13%, 26%)",
|
|
116350
|
-
"color": "hsl(220, 9%, 55%)",
|
|
116351
|
-
"padding": "0.1em 0.4em",
|
|
116352
|
-
"borderRadius": "0.3em"
|
|
116353
|
-
},
|
|
116354
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
|
|
116355
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116356
|
-
"color": "hsl(220, 14%, 71%)"
|
|
116357
|
-
},
|
|
116358
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
|
|
116359
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116360
|
-
"color": "hsl(220, 14%, 71%)"
|
|
116361
|
-
},
|
|
116362
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
|
|
116363
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116364
|
-
"color": "hsl(220, 14%, 71%)"
|
|
116365
|
-
},
|
|
116366
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
|
|
116367
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116368
|
-
"color": "hsl(220, 14%, 71%)"
|
|
116369
|
-
},
|
|
116370
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
|
|
116371
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116372
|
-
"color": "hsl(220, 14%, 71%)"
|
|
116373
|
-
},
|
|
116374
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
|
|
116375
|
-
"background": "hsl(220, 13%, 28%)",
|
|
116376
|
-
"color": "hsl(220, 14%, 71%)"
|
|
116377
|
-
},
|
|
116378
|
-
".line-highlight.line-highlight": { "background": "hsla(220, 100%, 80%, 0.04)" },
|
|
116379
|
-
".line-highlight.line-highlight:before": {
|
|
116380
|
-
"background": "hsl(220, 13%, 26%)",
|
|
116381
|
-
"color": "hsl(220, 14%, 71%)",
|
|
116382
|
-
"padding": "0.1em 0.6em",
|
|
116383
|
-
"borderRadius": "0.3em",
|
|
116384
|
-
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
116385
|
-
},
|
|
116386
|
-
".line-highlight.line-highlight[data-end]:after": {
|
|
116387
|
-
"background": "hsl(220, 13%, 26%)",
|
|
116388
|
-
"color": "hsl(220, 14%, 71%)",
|
|
116389
|
-
"padding": "0.1em 0.6em",
|
|
116390
|
-
"borderRadius": "0.3em",
|
|
116391
|
-
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
116392
|
-
},
|
|
116393
|
-
"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": { "backgroundColor": "hsla(220, 100%, 80%, 0.04)" },
|
|
116394
|
-
".line-numbers.line-numbers .line-numbers-rows": { "borderRightColor": "hsla(220, 14%, 71%, 0.15)" },
|
|
116395
|
-
".command-line .command-line-prompt": { "borderRightColor": "hsla(220, 14%, 71%, 0.15)" },
|
|
116396
|
-
".line-numbers .line-numbers-rows > span:before": { "color": "hsl(220, 14%, 45%)" },
|
|
116397
|
-
".command-line .command-line-prompt > span:before": { "color": "hsl(220, 14%, 45%)" },
|
|
116398
|
-
".rainbow-braces .token.token.punctuation.brace-level-1": { "color": "hsl(355, 65%, 65%)" },
|
|
116399
|
-
".rainbow-braces .token.token.punctuation.brace-level-5": { "color": "hsl(355, 65%, 65%)" },
|
|
116400
|
-
".rainbow-braces .token.token.punctuation.brace-level-9": { "color": "hsl(355, 65%, 65%)" },
|
|
116401
|
-
".rainbow-braces .token.token.punctuation.brace-level-2": { "color": "hsl(95, 38%, 62%)" },
|
|
116402
|
-
".rainbow-braces .token.token.punctuation.brace-level-6": { "color": "hsl(95, 38%, 62%)" },
|
|
116403
|
-
".rainbow-braces .token.token.punctuation.brace-level-10": { "color": "hsl(95, 38%, 62%)" },
|
|
116404
|
-
".rainbow-braces .token.token.punctuation.brace-level-3": { "color": "hsl(207, 82%, 66%)" },
|
|
116405
|
-
".rainbow-braces .token.token.punctuation.brace-level-7": { "color": "hsl(207, 82%, 66%)" },
|
|
116406
|
-
".rainbow-braces .token.token.punctuation.brace-level-11": { "color": "hsl(207, 82%, 66%)" },
|
|
116407
|
-
".rainbow-braces .token.token.punctuation.brace-level-4": { "color": "hsl(286, 60%, 67%)" },
|
|
116408
|
-
".rainbow-braces .token.token.punctuation.brace-level-8": { "color": "hsl(286, 60%, 67%)" },
|
|
116409
|
-
".rainbow-braces .token.token.punctuation.brace-level-12": { "color": "hsl(286, 60%, 67%)" },
|
|
116410
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
116411
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
116412
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116413
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116414
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116415
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116416
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116417
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116418
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116419
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116420
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
116421
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
116422
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116423
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116424
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116425
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116426
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116427
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116428
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116429
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116430
|
-
".prism-previewer.prism-previewer:before": { "borderColor": "hsl(224, 13%, 17%)" },
|
|
116431
|
-
".prism-previewer-gradient.prism-previewer-gradient div": {
|
|
116432
|
-
"borderColor": "hsl(224, 13%, 17%)",
|
|
116433
|
-
"borderRadius": "0.3em"
|
|
116434
|
-
},
|
|
116435
|
-
".prism-previewer-color.prism-previewer-color:before": { "borderRadius": "0.3em" },
|
|
116436
|
-
".prism-previewer-easing.prism-previewer-easing:before": { "borderRadius": "0.3em" },
|
|
116437
|
-
".prism-previewer.prism-previewer:after": { "borderTopColor": "hsl(224, 13%, 17%)" },
|
|
116438
|
-
".prism-previewer-flipped.prism-previewer-flipped.after": { "borderBottomColor": "hsl(224, 13%, 17%)" },
|
|
116439
|
-
".prism-previewer-angle.prism-previewer-angle:before": { "background": "hsl(219, 13%, 22%)" },
|
|
116440
|
-
".prism-previewer-time.prism-previewer-time:before": { "background": "hsl(219, 13%, 22%)" },
|
|
116441
|
-
".prism-previewer-easing.prism-previewer-easing": { "background": "hsl(219, 13%, 22%)" },
|
|
116442
|
-
".prism-previewer-angle.prism-previewer-angle circle": {
|
|
116443
|
-
"stroke": "hsl(220, 14%, 71%)",
|
|
116444
|
-
"strokeOpacity": "1"
|
|
116445
|
-
},
|
|
116446
|
-
".prism-previewer-time.prism-previewer-time circle": {
|
|
116447
|
-
"stroke": "hsl(220, 14%, 71%)",
|
|
116448
|
-
"strokeOpacity": "1"
|
|
116449
|
-
},
|
|
116450
|
-
".prism-previewer-easing.prism-previewer-easing circle": {
|
|
116451
|
-
"stroke": "hsl(220, 14%, 71%)",
|
|
116452
|
-
"fill": "transparent"
|
|
116453
|
-
},
|
|
116454
|
-
".prism-previewer-easing.prism-previewer-easing path": { "stroke": "hsl(220, 14%, 71%)" },
|
|
116455
|
-
".prism-previewer-easing.prism-previewer-easing line": { "stroke": "hsl(220, 14%, 71%)" }
|
|
116456
|
-
};
|
|
116457
|
-
var one_light_default = {
|
|
116458
|
-
"code[class*=\"language-\"]": {
|
|
116459
|
-
"background": "hsl(230, 1%, 98%)",
|
|
116460
|
-
"color": "hsl(230, 8%, 24%)",
|
|
116461
|
-
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
116462
|
-
"direction": "ltr",
|
|
116463
|
-
"textAlign": "left",
|
|
116464
|
-
"whiteSpace": "pre",
|
|
116465
|
-
"wordSpacing": "normal",
|
|
116466
|
-
"wordBreak": "normal",
|
|
116467
|
-
"lineHeight": "1.5",
|
|
116468
|
-
"MozTabSize": "2",
|
|
116469
|
-
"OTabSize": "2",
|
|
116470
|
-
"tabSize": "2",
|
|
116471
|
-
"WebkitHyphens": "none",
|
|
116472
|
-
"MozHyphens": "none",
|
|
116473
|
-
"msHyphens": "none",
|
|
116474
|
-
"hyphens": "none"
|
|
116475
|
-
},
|
|
116476
|
-
"pre[class*=\"language-\"]": {
|
|
116477
|
-
"background": "hsl(230, 1%, 98%)",
|
|
116478
|
-
"color": "hsl(230, 8%, 24%)",
|
|
116479
|
-
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
116480
|
-
"direction": "ltr",
|
|
116481
|
-
"textAlign": "left",
|
|
116482
|
-
"whiteSpace": "pre",
|
|
116483
|
-
"wordSpacing": "normal",
|
|
116484
|
-
"wordBreak": "normal",
|
|
116485
|
-
"lineHeight": "1.5",
|
|
116486
|
-
"MozTabSize": "2",
|
|
116487
|
-
"OTabSize": "2",
|
|
116488
|
-
"tabSize": "2",
|
|
116489
|
-
"WebkitHyphens": "none",
|
|
116490
|
-
"MozHyphens": "none",
|
|
116491
|
-
"msHyphens": "none",
|
|
116492
|
-
"hyphens": "none",
|
|
116493
|
-
"padding": "1em",
|
|
116494
|
-
"margin": "0.5em 0",
|
|
116495
|
-
"overflow": "auto",
|
|
116496
|
-
"borderRadius": "0.3em"
|
|
116497
|
-
},
|
|
116498
|
-
"code[class*=\"language-\"]::-moz-selection": {
|
|
116499
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116500
|
-
"color": "inherit"
|
|
116501
|
-
},
|
|
116502
|
-
"code[class*=\"language-\"] *::-moz-selection": {
|
|
116503
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116504
|
-
"color": "inherit"
|
|
116505
|
-
},
|
|
116506
|
-
"pre[class*=\"language-\"] *::-moz-selection": {
|
|
116507
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116508
|
-
"color": "inherit"
|
|
116509
|
-
},
|
|
116510
|
-
"code[class*=\"language-\"]::selection": {
|
|
116511
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116512
|
-
"color": "inherit"
|
|
116513
|
-
},
|
|
116514
|
-
"code[class*=\"language-\"] *::selection": {
|
|
116515
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116516
|
-
"color": "inherit"
|
|
116517
|
-
},
|
|
116518
|
-
"pre[class*=\"language-\"] *::selection": {
|
|
116519
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116520
|
-
"color": "inherit"
|
|
116521
|
-
},
|
|
116522
|
-
":not(pre) > code[class*=\"language-\"]": {
|
|
116523
|
-
"padding": "0.2em 0.3em",
|
|
116524
|
-
"borderRadius": "0.3em",
|
|
116525
|
-
"whiteSpace": "normal"
|
|
116526
|
-
},
|
|
116527
|
-
"comment": {
|
|
116528
|
-
"color": "hsl(230, 4%, 64%)",
|
|
116529
|
-
"fontStyle": "italic"
|
|
116530
|
-
},
|
|
116531
|
-
"prolog": { "color": "hsl(230, 4%, 64%)" },
|
|
116532
|
-
"cdata": { "color": "hsl(230, 4%, 64%)" },
|
|
116533
|
-
"doctype": { "color": "hsl(230, 8%, 24%)" },
|
|
116534
|
-
"punctuation": { "color": "hsl(230, 8%, 24%)" },
|
|
116535
|
-
"entity": {
|
|
116536
|
-
"color": "hsl(230, 8%, 24%)",
|
|
116537
|
-
"cursor": "help"
|
|
116538
|
-
},
|
|
116539
|
-
"attr-name": { "color": "hsl(35, 99%, 36%)" },
|
|
116540
|
-
"class-name": { "color": "hsl(35, 99%, 36%)" },
|
|
116541
|
-
"boolean": { "color": "hsl(35, 99%, 36%)" },
|
|
116542
|
-
"constant": { "color": "hsl(35, 99%, 36%)" },
|
|
116543
|
-
"number": { "color": "hsl(35, 99%, 36%)" },
|
|
116544
|
-
"atrule": { "color": "hsl(35, 99%, 36%)" },
|
|
116545
|
-
"keyword": { "color": "hsl(301, 63%, 40%)" },
|
|
116546
|
-
"property": { "color": "hsl(5, 74%, 59%)" },
|
|
116547
|
-
"tag": { "color": "hsl(5, 74%, 59%)" },
|
|
116548
|
-
"symbol": { "color": "hsl(5, 74%, 59%)" },
|
|
116549
|
-
"deleted": { "color": "hsl(5, 74%, 59%)" },
|
|
116550
|
-
"important": { "color": "hsl(5, 74%, 59%)" },
|
|
116551
|
-
"selector": { "color": "hsl(119, 34%, 47%)" },
|
|
116552
|
-
"string": { "color": "hsl(119, 34%, 47%)" },
|
|
116553
|
-
"char": { "color": "hsl(119, 34%, 47%)" },
|
|
116554
|
-
"builtin": { "color": "hsl(119, 34%, 47%)" },
|
|
116555
|
-
"inserted": { "color": "hsl(119, 34%, 47%)" },
|
|
116556
|
-
"regex": { "color": "hsl(119, 34%, 47%)" },
|
|
116557
|
-
"attr-value": { "color": "hsl(119, 34%, 47%)" },
|
|
116558
|
-
"attr-value > .token.punctuation": { "color": "hsl(119, 34%, 47%)" },
|
|
116559
|
-
"variable": { "color": "hsl(221, 87%, 60%)" },
|
|
116560
|
-
"operator": { "color": "hsl(221, 87%, 60%)" },
|
|
116561
|
-
"function": { "color": "hsl(221, 87%, 60%)" },
|
|
116562
|
-
"url": { "color": "hsl(198, 99%, 37%)" },
|
|
116563
|
-
"attr-value > .token.punctuation.attr-equals": { "color": "hsl(230, 8%, 24%)" },
|
|
116564
|
-
"special-attr > .token.attr-value > .token.value.css": { "color": "hsl(230, 8%, 24%)" },
|
|
116565
|
-
".language-css .token.selector": { "color": "hsl(5, 74%, 59%)" },
|
|
116566
|
-
".language-css .token.property": { "color": "hsl(230, 8%, 24%)" },
|
|
116567
|
-
".language-css .token.function": { "color": "hsl(198, 99%, 37%)" },
|
|
116568
|
-
".language-css .token.url > .token.function": { "color": "hsl(198, 99%, 37%)" },
|
|
116569
|
-
".language-css .token.url > .token.string.url": { "color": "hsl(119, 34%, 47%)" },
|
|
116570
|
-
".language-css .token.important": { "color": "hsl(301, 63%, 40%)" },
|
|
116571
|
-
".language-css .token.atrule .token.rule": { "color": "hsl(301, 63%, 40%)" },
|
|
116572
|
-
".language-javascript .token.operator": { "color": "hsl(301, 63%, 40%)" },
|
|
116573
|
-
".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": { "color": "hsl(344, 84%, 43%)" },
|
|
116574
|
-
".language-json .token.operator": { "color": "hsl(230, 8%, 24%)" },
|
|
116575
|
-
".language-json .token.null.keyword": { "color": "hsl(35, 99%, 36%)" },
|
|
116576
|
-
".language-markdown .token.url": { "color": "hsl(230, 8%, 24%)" },
|
|
116577
|
-
".language-markdown .token.url > .token.operator": { "color": "hsl(230, 8%, 24%)" },
|
|
116578
|
-
".language-markdown .token.url-reference.url > .token.string": { "color": "hsl(230, 8%, 24%)" },
|
|
116579
|
-
".language-markdown .token.url > .token.content": { "color": "hsl(221, 87%, 60%)" },
|
|
116580
|
-
".language-markdown .token.url > .token.url": { "color": "hsl(198, 99%, 37%)" },
|
|
116581
|
-
".language-markdown .token.url-reference.url": { "color": "hsl(198, 99%, 37%)" },
|
|
116582
|
-
".language-markdown .token.blockquote.punctuation": {
|
|
116583
|
-
"color": "hsl(230, 4%, 64%)",
|
|
116584
|
-
"fontStyle": "italic"
|
|
116585
|
-
},
|
|
116586
|
-
".language-markdown .token.hr.punctuation": {
|
|
116587
|
-
"color": "hsl(230, 4%, 64%)",
|
|
116588
|
-
"fontStyle": "italic"
|
|
116589
|
-
},
|
|
116590
|
-
".language-markdown .token.code-snippet": { "color": "hsl(119, 34%, 47%)" },
|
|
116591
|
-
".language-markdown .token.bold .token.content": { "color": "hsl(35, 99%, 36%)" },
|
|
116592
|
-
".language-markdown .token.italic .token.content": { "color": "hsl(301, 63%, 40%)" },
|
|
116593
|
-
".language-markdown .token.strike .token.content": { "color": "hsl(5, 74%, 59%)" },
|
|
116594
|
-
".language-markdown .token.strike .token.punctuation": { "color": "hsl(5, 74%, 59%)" },
|
|
116595
|
-
".language-markdown .token.list.punctuation": { "color": "hsl(5, 74%, 59%)" },
|
|
116596
|
-
".language-markdown .token.title.important > .token.punctuation": { "color": "hsl(5, 74%, 59%)" },
|
|
116597
|
-
"bold": { "fontWeight": "bold" },
|
|
116598
|
-
"italic": { "fontStyle": "italic" },
|
|
116599
|
-
"namespace": { "Opacity": "0.8" },
|
|
116600
|
-
"token.tab:not(:empty):before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
116601
|
-
"token.cr:before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
116602
|
-
"token.lf:before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
116603
|
-
"token.space:before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
116604
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item": { "marginRight": "0.4em" },
|
|
116605
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
|
|
116606
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116607
|
-
"color": "hsl(230, 6%, 44%)",
|
|
116608
|
-
"padding": "0.1em 0.4em",
|
|
116609
|
-
"borderRadius": "0.3em"
|
|
116610
|
-
},
|
|
116611
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
|
|
116612
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116613
|
-
"color": "hsl(230, 6%, 44%)",
|
|
116614
|
-
"padding": "0.1em 0.4em",
|
|
116615
|
-
"borderRadius": "0.3em"
|
|
116616
|
-
},
|
|
116617
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
|
|
116618
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116619
|
-
"color": "hsl(230, 6%, 44%)",
|
|
116620
|
-
"padding": "0.1em 0.4em",
|
|
116621
|
-
"borderRadius": "0.3em"
|
|
116622
|
-
},
|
|
116623
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
|
|
116624
|
-
"background": "hsl(230, 1%, 78%)",
|
|
116625
|
-
"color": "hsl(230, 8%, 24%)"
|
|
116626
|
-
},
|
|
116627
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
|
|
116628
|
-
"background": "hsl(230, 1%, 78%)",
|
|
116629
|
-
"color": "hsl(230, 8%, 24%)"
|
|
116630
|
-
},
|
|
116631
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
|
|
116632
|
-
"background": "hsl(230, 1%, 78%)",
|
|
116633
|
-
"color": "hsl(230, 8%, 24%)"
|
|
116634
|
-
},
|
|
116635
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
|
|
116636
|
-
"background": "hsl(230, 1%, 78%)",
|
|
116637
|
-
"color": "hsl(230, 8%, 24%)"
|
|
116638
|
-
},
|
|
116639
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
|
|
116640
|
-
"background": "hsl(230, 1%, 78%)",
|
|
116641
|
-
"color": "hsl(230, 8%, 24%)"
|
|
116642
|
-
},
|
|
116643
|
-
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
|
|
116644
|
-
"background": "hsl(230, 1%, 78%)",
|
|
116645
|
-
"color": "hsl(230, 8%, 24%)"
|
|
116646
|
-
},
|
|
116647
|
-
".line-highlight.line-highlight": { "background": "hsla(230, 8%, 24%, 0.05)" },
|
|
116648
|
-
".line-highlight.line-highlight:before": {
|
|
116649
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116650
|
-
"color": "hsl(230, 8%, 24%)",
|
|
116651
|
-
"padding": "0.1em 0.6em",
|
|
116652
|
-
"borderRadius": "0.3em",
|
|
116653
|
-
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
116654
|
-
},
|
|
116655
|
-
".line-highlight.line-highlight[data-end]:after": {
|
|
116656
|
-
"background": "hsl(230, 1%, 90%)",
|
|
116657
|
-
"color": "hsl(230, 8%, 24%)",
|
|
116658
|
-
"padding": "0.1em 0.6em",
|
|
116659
|
-
"borderRadius": "0.3em",
|
|
116660
|
-
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
116661
|
-
},
|
|
116662
|
-
"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": { "backgroundColor": "hsla(230, 8%, 24%, 0.05)" },
|
|
116663
|
-
".line-numbers.line-numbers .line-numbers-rows": { "borderRightColor": "hsla(230, 8%, 24%, 0.2)" },
|
|
116664
|
-
".command-line .command-line-prompt": { "borderRightColor": "hsla(230, 8%, 24%, 0.2)" },
|
|
116665
|
-
".line-numbers .line-numbers-rows > span:before": { "color": "hsl(230, 1%, 62%)" },
|
|
116666
|
-
".command-line .command-line-prompt > span:before": { "color": "hsl(230, 1%, 62%)" },
|
|
116667
|
-
".rainbow-braces .token.token.punctuation.brace-level-1": { "color": "hsl(5, 74%, 59%)" },
|
|
116668
|
-
".rainbow-braces .token.token.punctuation.brace-level-5": { "color": "hsl(5, 74%, 59%)" },
|
|
116669
|
-
".rainbow-braces .token.token.punctuation.brace-level-9": { "color": "hsl(5, 74%, 59%)" },
|
|
116670
|
-
".rainbow-braces .token.token.punctuation.brace-level-2": { "color": "hsl(119, 34%, 47%)" },
|
|
116671
|
-
".rainbow-braces .token.token.punctuation.brace-level-6": { "color": "hsl(119, 34%, 47%)" },
|
|
116672
|
-
".rainbow-braces .token.token.punctuation.brace-level-10": { "color": "hsl(119, 34%, 47%)" },
|
|
116673
|
-
".rainbow-braces .token.token.punctuation.brace-level-3": { "color": "hsl(221, 87%, 60%)" },
|
|
116674
|
-
".rainbow-braces .token.token.punctuation.brace-level-7": { "color": "hsl(221, 87%, 60%)" },
|
|
116675
|
-
".rainbow-braces .token.token.punctuation.brace-level-11": { "color": "hsl(221, 87%, 60%)" },
|
|
116676
|
-
".rainbow-braces .token.token.punctuation.brace-level-4": { "color": "hsl(301, 63%, 40%)" },
|
|
116677
|
-
".rainbow-braces .token.token.punctuation.brace-level-8": { "color": "hsl(301, 63%, 40%)" },
|
|
116678
|
-
".rainbow-braces .token.token.punctuation.brace-level-12": { "color": "hsl(301, 63%, 40%)" },
|
|
116679
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
116680
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
116681
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116682
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116683
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116684
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116685
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116686
|
-
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116687
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116688
|
-
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
116689
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
116690
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
116691
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116692
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116693
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116694
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116695
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116696
|
-
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116697
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116698
|
-
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
116699
|
-
".prism-previewer.prism-previewer:before": { "borderColor": "hsl(0, 0, 95%)" },
|
|
116700
|
-
".prism-previewer-gradient.prism-previewer-gradient div": {
|
|
116701
|
-
"borderColor": "hsl(0, 0, 95%)",
|
|
116702
|
-
"borderRadius": "0.3em"
|
|
116703
|
-
},
|
|
116704
|
-
".prism-previewer-color.prism-previewer-color:before": { "borderRadius": "0.3em" },
|
|
116705
|
-
".prism-previewer-easing.prism-previewer-easing:before": { "borderRadius": "0.3em" },
|
|
116706
|
-
".prism-previewer.prism-previewer:after": { "borderTopColor": "hsl(0, 0, 95%)" },
|
|
116707
|
-
".prism-previewer-flipped.prism-previewer-flipped.after": { "borderBottomColor": "hsl(0, 0, 95%)" },
|
|
116708
|
-
".prism-previewer-angle.prism-previewer-angle:before": { "background": "hsl(0, 0%, 100%)" },
|
|
116709
|
-
".prism-previewer-time.prism-previewer-time:before": { "background": "hsl(0, 0%, 100%)" },
|
|
116710
|
-
".prism-previewer-easing.prism-previewer-easing": { "background": "hsl(0, 0%, 100%)" },
|
|
116711
|
-
".prism-previewer-angle.prism-previewer-angle circle": {
|
|
116712
|
-
"stroke": "hsl(230, 8%, 24%)",
|
|
116713
|
-
"strokeOpacity": "1"
|
|
116714
|
-
},
|
|
116715
|
-
".prism-previewer-time.prism-previewer-time circle": {
|
|
116716
|
-
"stroke": "hsl(230, 8%, 24%)",
|
|
116717
|
-
"strokeOpacity": "1"
|
|
116718
|
-
},
|
|
116719
|
-
".prism-previewer-easing.prism-previewer-easing circle": {
|
|
116720
|
-
"stroke": "hsl(230, 8%, 24%)",
|
|
116721
|
-
"fill": "transparent"
|
|
116722
|
-
},
|
|
116723
|
-
".prism-previewer-easing.prism-previewer-easing path": { "stroke": "hsl(230, 8%, 24%)" },
|
|
116724
|
-
".prism-previewer-easing.prism-previewer-easing line": { "stroke": "hsl(230, 8%, 24%)" }
|
|
116725
|
-
};
|
|
116726
116003
|
function _objectWithoutPropertiesLoose(r, e) {
|
|
116727
116004
|
if (null == r) return {};
|
|
116728
116005
|
var t = {};
|
|
@@ -118870,11 +118147,11 @@ function attributes(record) {
|
|
|
118870
118147
|
for (key in record) if (Object.hasOwn(record, key)) record[key] = parseEntities(record[key]);
|
|
118871
118148
|
return record;
|
|
118872
118149
|
}
|
|
118873
|
-
var SyntaxHighlighter
|
|
118874
|
-
SyntaxHighlighter
|
|
118150
|
+
var SyntaxHighlighter = highlight_default(refractor, {});
|
|
118151
|
+
SyntaxHighlighter.registerLanguage = function(_, language) {
|
|
118875
118152
|
return refractor.register(language);
|
|
118876
118153
|
};
|
|
118877
|
-
SyntaxHighlighter
|
|
118154
|
+
SyntaxHighlighter.alias = function(name, aliases) {
|
|
118878
118155
|
return refractor.alias(name, aliases);
|
|
118879
118156
|
};
|
|
118880
118157
|
/**
|
|
@@ -119948,7 +119225,7 @@ const languages = {
|
|
|
119948
119225
|
markdown,
|
|
119949
119226
|
yaml
|
|
119950
119227
|
};
|
|
119951
|
-
for (const [name, language] of Object.entries(languages)) SyntaxHighlighter
|
|
119228
|
+
for (const [name, language] of Object.entries(languages)) SyntaxHighlighter.registerLanguage(name, language);
|
|
119952
119229
|
const languageAliases = {
|
|
119953
119230
|
ts: "typescript",
|
|
119954
119231
|
js: "javascript",
|
|
@@ -119963,6 +119240,567 @@ function resolveLanguage(raw) {
|
|
|
119963
119240
|
if (raw in languages) return raw;
|
|
119964
119241
|
return languageAliases[raw];
|
|
119965
119242
|
}
|
|
119243
|
+
/** 全站唯一的代码高亮主题对。引用相等是验收判据(AC-19.8),不导出到包外。 */
|
|
119244
|
+
const PRISM_THEME = {
|
|
119245
|
+
dark: {
|
|
119246
|
+
"code[class*=\"language-\"]": {
|
|
119247
|
+
"background": "hsl(220, 13%, 18%)",
|
|
119248
|
+
"color": "hsl(220, 14%, 71%)",
|
|
119249
|
+
"textShadow": "0 1px rgba(0, 0, 0, 0.3)",
|
|
119250
|
+
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
119251
|
+
"direction": "ltr",
|
|
119252
|
+
"textAlign": "left",
|
|
119253
|
+
"whiteSpace": "pre",
|
|
119254
|
+
"wordSpacing": "normal",
|
|
119255
|
+
"wordBreak": "normal",
|
|
119256
|
+
"lineHeight": "1.5",
|
|
119257
|
+
"MozTabSize": "2",
|
|
119258
|
+
"OTabSize": "2",
|
|
119259
|
+
"tabSize": "2",
|
|
119260
|
+
"WebkitHyphens": "none",
|
|
119261
|
+
"MozHyphens": "none",
|
|
119262
|
+
"msHyphens": "none",
|
|
119263
|
+
"hyphens": "none"
|
|
119264
|
+
},
|
|
119265
|
+
"pre[class*=\"language-\"]": {
|
|
119266
|
+
"background": "hsl(220, 13%, 18%)",
|
|
119267
|
+
"color": "hsl(220, 14%, 71%)",
|
|
119268
|
+
"textShadow": "0 1px rgba(0, 0, 0, 0.3)",
|
|
119269
|
+
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
119270
|
+
"direction": "ltr",
|
|
119271
|
+
"textAlign": "left",
|
|
119272
|
+
"whiteSpace": "pre",
|
|
119273
|
+
"wordSpacing": "normal",
|
|
119274
|
+
"wordBreak": "normal",
|
|
119275
|
+
"lineHeight": "1.5",
|
|
119276
|
+
"MozTabSize": "2",
|
|
119277
|
+
"OTabSize": "2",
|
|
119278
|
+
"tabSize": "2",
|
|
119279
|
+
"WebkitHyphens": "none",
|
|
119280
|
+
"MozHyphens": "none",
|
|
119281
|
+
"msHyphens": "none",
|
|
119282
|
+
"hyphens": "none",
|
|
119283
|
+
"padding": "1em",
|
|
119284
|
+
"margin": "0.5em 0",
|
|
119285
|
+
"overflow": "auto",
|
|
119286
|
+
"borderRadius": "0.3em"
|
|
119287
|
+
},
|
|
119288
|
+
"code[class*=\"language-\"]::-moz-selection": {
|
|
119289
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119290
|
+
"color": "inherit",
|
|
119291
|
+
"textShadow": "none"
|
|
119292
|
+
},
|
|
119293
|
+
"code[class*=\"language-\"] *::-moz-selection": {
|
|
119294
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119295
|
+
"color": "inherit",
|
|
119296
|
+
"textShadow": "none"
|
|
119297
|
+
},
|
|
119298
|
+
"pre[class*=\"language-\"] *::-moz-selection": {
|
|
119299
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119300
|
+
"color": "inherit",
|
|
119301
|
+
"textShadow": "none"
|
|
119302
|
+
},
|
|
119303
|
+
"code[class*=\"language-\"]::selection": {
|
|
119304
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119305
|
+
"color": "inherit",
|
|
119306
|
+
"textShadow": "none"
|
|
119307
|
+
},
|
|
119308
|
+
"code[class*=\"language-\"] *::selection": {
|
|
119309
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119310
|
+
"color": "inherit",
|
|
119311
|
+
"textShadow": "none"
|
|
119312
|
+
},
|
|
119313
|
+
"pre[class*=\"language-\"] *::selection": {
|
|
119314
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119315
|
+
"color": "inherit",
|
|
119316
|
+
"textShadow": "none"
|
|
119317
|
+
},
|
|
119318
|
+
":not(pre) > code[class*=\"language-\"]": {
|
|
119319
|
+
"padding": "0.2em 0.3em",
|
|
119320
|
+
"borderRadius": "0.3em",
|
|
119321
|
+
"whiteSpace": "normal"
|
|
119322
|
+
},
|
|
119323
|
+
"comment": {
|
|
119324
|
+
"color": "hsl(220, 10%, 40%)",
|
|
119325
|
+
"fontStyle": "italic"
|
|
119326
|
+
},
|
|
119327
|
+
"prolog": { "color": "hsl(220, 10%, 40%)" },
|
|
119328
|
+
"cdata": { "color": "hsl(220, 10%, 40%)" },
|
|
119329
|
+
"doctype": { "color": "hsl(220, 14%, 71%)" },
|
|
119330
|
+
"punctuation": { "color": "hsl(220, 14%, 71%)" },
|
|
119331
|
+
"entity": {
|
|
119332
|
+
"color": "hsl(220, 14%, 71%)",
|
|
119333
|
+
"cursor": "help"
|
|
119334
|
+
},
|
|
119335
|
+
"attr-name": { "color": "hsl(29, 54%, 61%)" },
|
|
119336
|
+
"class-name": { "color": "hsl(29, 54%, 61%)" },
|
|
119337
|
+
"boolean": { "color": "hsl(29, 54%, 61%)" },
|
|
119338
|
+
"constant": { "color": "hsl(29, 54%, 61%)" },
|
|
119339
|
+
"number": { "color": "hsl(29, 54%, 61%)" },
|
|
119340
|
+
"atrule": { "color": "hsl(29, 54%, 61%)" },
|
|
119341
|
+
"keyword": { "color": "hsl(286, 60%, 67%)" },
|
|
119342
|
+
"property": { "color": "hsl(355, 65%, 65%)" },
|
|
119343
|
+
"tag": { "color": "hsl(355, 65%, 65%)" },
|
|
119344
|
+
"symbol": { "color": "hsl(355, 65%, 65%)" },
|
|
119345
|
+
"deleted": { "color": "hsl(355, 65%, 65%)" },
|
|
119346
|
+
"important": { "color": "hsl(355, 65%, 65%)" },
|
|
119347
|
+
"selector": { "color": "hsl(95, 38%, 62%)" },
|
|
119348
|
+
"string": { "color": "hsl(95, 38%, 62%)" },
|
|
119349
|
+
"char": { "color": "hsl(95, 38%, 62%)" },
|
|
119350
|
+
"builtin": { "color": "hsl(95, 38%, 62%)" },
|
|
119351
|
+
"inserted": { "color": "hsl(95, 38%, 62%)" },
|
|
119352
|
+
"regex": { "color": "hsl(95, 38%, 62%)" },
|
|
119353
|
+
"attr-value": { "color": "hsl(95, 38%, 62%)" },
|
|
119354
|
+
"attr-value > .token.punctuation": { "color": "hsl(95, 38%, 62%)" },
|
|
119355
|
+
"variable": { "color": "hsl(207, 82%, 66%)" },
|
|
119356
|
+
"operator": { "color": "hsl(207, 82%, 66%)" },
|
|
119357
|
+
"function": { "color": "hsl(207, 82%, 66%)" },
|
|
119358
|
+
"url": { "color": "hsl(187, 47%, 55%)" },
|
|
119359
|
+
"attr-value > .token.punctuation.attr-equals": { "color": "hsl(220, 14%, 71%)" },
|
|
119360
|
+
"special-attr > .token.attr-value > .token.value.css": { "color": "hsl(220, 14%, 71%)" },
|
|
119361
|
+
".language-css .token.selector": { "color": "hsl(355, 65%, 65%)" },
|
|
119362
|
+
".language-css .token.property": { "color": "hsl(220, 14%, 71%)" },
|
|
119363
|
+
".language-css .token.function": { "color": "hsl(187, 47%, 55%)" },
|
|
119364
|
+
".language-css .token.url > .token.function": { "color": "hsl(187, 47%, 55%)" },
|
|
119365
|
+
".language-css .token.url > .token.string.url": { "color": "hsl(95, 38%, 62%)" },
|
|
119366
|
+
".language-css .token.important": { "color": "hsl(286, 60%, 67%)" },
|
|
119367
|
+
".language-css .token.atrule .token.rule": { "color": "hsl(286, 60%, 67%)" },
|
|
119368
|
+
".language-javascript .token.operator": { "color": "hsl(286, 60%, 67%)" },
|
|
119369
|
+
".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": { "color": "hsl(5, 48%, 51%)" },
|
|
119370
|
+
".language-json .token.operator": { "color": "hsl(220, 14%, 71%)" },
|
|
119371
|
+
".language-json .token.null.keyword": { "color": "hsl(29, 54%, 61%)" },
|
|
119372
|
+
".language-markdown .token.url": { "color": "hsl(220, 14%, 71%)" },
|
|
119373
|
+
".language-markdown .token.url > .token.operator": { "color": "hsl(220, 14%, 71%)" },
|
|
119374
|
+
".language-markdown .token.url-reference.url > .token.string": { "color": "hsl(220, 14%, 71%)" },
|
|
119375
|
+
".language-markdown .token.url > .token.content": { "color": "hsl(207, 82%, 66%)" },
|
|
119376
|
+
".language-markdown .token.url > .token.url": { "color": "hsl(187, 47%, 55%)" },
|
|
119377
|
+
".language-markdown .token.url-reference.url": { "color": "hsl(187, 47%, 55%)" },
|
|
119378
|
+
".language-markdown .token.blockquote.punctuation": {
|
|
119379
|
+
"color": "hsl(220, 10%, 40%)",
|
|
119380
|
+
"fontStyle": "italic"
|
|
119381
|
+
},
|
|
119382
|
+
".language-markdown .token.hr.punctuation": {
|
|
119383
|
+
"color": "hsl(220, 10%, 40%)",
|
|
119384
|
+
"fontStyle": "italic"
|
|
119385
|
+
},
|
|
119386
|
+
".language-markdown .token.code-snippet": { "color": "hsl(95, 38%, 62%)" },
|
|
119387
|
+
".language-markdown .token.bold .token.content": { "color": "hsl(29, 54%, 61%)" },
|
|
119388
|
+
".language-markdown .token.italic .token.content": { "color": "hsl(286, 60%, 67%)" },
|
|
119389
|
+
".language-markdown .token.strike .token.content": { "color": "hsl(355, 65%, 65%)" },
|
|
119390
|
+
".language-markdown .token.strike .token.punctuation": { "color": "hsl(355, 65%, 65%)" },
|
|
119391
|
+
".language-markdown .token.list.punctuation": { "color": "hsl(355, 65%, 65%)" },
|
|
119392
|
+
".language-markdown .token.title.important > .token.punctuation": { "color": "hsl(355, 65%, 65%)" },
|
|
119393
|
+
"bold": { "fontWeight": "bold" },
|
|
119394
|
+
"italic": { "fontStyle": "italic" },
|
|
119395
|
+
"namespace": { "Opacity": "0.8" },
|
|
119396
|
+
"token.tab:not(:empty):before": {
|
|
119397
|
+
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
119398
|
+
"textShadow": "none"
|
|
119399
|
+
},
|
|
119400
|
+
"token.cr:before": {
|
|
119401
|
+
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
119402
|
+
"textShadow": "none"
|
|
119403
|
+
},
|
|
119404
|
+
"token.lf:before": {
|
|
119405
|
+
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
119406
|
+
"textShadow": "none"
|
|
119407
|
+
},
|
|
119408
|
+
"token.space:before": {
|
|
119409
|
+
"color": "hsla(220, 14%, 71%, 0.15)",
|
|
119410
|
+
"textShadow": "none"
|
|
119411
|
+
},
|
|
119412
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item": { "marginRight": "0.4em" },
|
|
119413
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
|
|
119414
|
+
"background": "hsl(220, 13%, 26%)",
|
|
119415
|
+
"color": "hsl(220, 9%, 55%)",
|
|
119416
|
+
"padding": "0.1em 0.4em",
|
|
119417
|
+
"borderRadius": "0.3em"
|
|
119418
|
+
},
|
|
119419
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
|
|
119420
|
+
"background": "hsl(220, 13%, 26%)",
|
|
119421
|
+
"color": "hsl(220, 9%, 55%)",
|
|
119422
|
+
"padding": "0.1em 0.4em",
|
|
119423
|
+
"borderRadius": "0.3em"
|
|
119424
|
+
},
|
|
119425
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
|
|
119426
|
+
"background": "hsl(220, 13%, 26%)",
|
|
119427
|
+
"color": "hsl(220, 9%, 55%)",
|
|
119428
|
+
"padding": "0.1em 0.4em",
|
|
119429
|
+
"borderRadius": "0.3em"
|
|
119430
|
+
},
|
|
119431
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
|
|
119432
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119433
|
+
"color": "hsl(220, 14%, 71%)"
|
|
119434
|
+
},
|
|
119435
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
|
|
119436
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119437
|
+
"color": "hsl(220, 14%, 71%)"
|
|
119438
|
+
},
|
|
119439
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
|
|
119440
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119441
|
+
"color": "hsl(220, 14%, 71%)"
|
|
119442
|
+
},
|
|
119443
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
|
|
119444
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119445
|
+
"color": "hsl(220, 14%, 71%)"
|
|
119446
|
+
},
|
|
119447
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
|
|
119448
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119449
|
+
"color": "hsl(220, 14%, 71%)"
|
|
119450
|
+
},
|
|
119451
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
|
|
119452
|
+
"background": "hsl(220, 13%, 28%)",
|
|
119453
|
+
"color": "hsl(220, 14%, 71%)"
|
|
119454
|
+
},
|
|
119455
|
+
".line-highlight.line-highlight": { "background": "hsla(220, 100%, 80%, 0.04)" },
|
|
119456
|
+
".line-highlight.line-highlight:before": {
|
|
119457
|
+
"background": "hsl(220, 13%, 26%)",
|
|
119458
|
+
"color": "hsl(220, 14%, 71%)",
|
|
119459
|
+
"padding": "0.1em 0.6em",
|
|
119460
|
+
"borderRadius": "0.3em",
|
|
119461
|
+
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
119462
|
+
},
|
|
119463
|
+
".line-highlight.line-highlight[data-end]:after": {
|
|
119464
|
+
"background": "hsl(220, 13%, 26%)",
|
|
119465
|
+
"color": "hsl(220, 14%, 71%)",
|
|
119466
|
+
"padding": "0.1em 0.6em",
|
|
119467
|
+
"borderRadius": "0.3em",
|
|
119468
|
+
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
119469
|
+
},
|
|
119470
|
+
"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": { "backgroundColor": "hsla(220, 100%, 80%, 0.04)" },
|
|
119471
|
+
".line-numbers.line-numbers .line-numbers-rows": { "borderRightColor": "hsla(220, 14%, 71%, 0.15)" },
|
|
119472
|
+
".command-line .command-line-prompt": { "borderRightColor": "hsla(220, 14%, 71%, 0.15)" },
|
|
119473
|
+
".line-numbers .line-numbers-rows > span:before": { "color": "hsl(220, 14%, 45%)" },
|
|
119474
|
+
".command-line .command-line-prompt > span:before": { "color": "hsl(220, 14%, 45%)" },
|
|
119475
|
+
".rainbow-braces .token.token.punctuation.brace-level-1": { "color": "hsl(355, 65%, 65%)" },
|
|
119476
|
+
".rainbow-braces .token.token.punctuation.brace-level-5": { "color": "hsl(355, 65%, 65%)" },
|
|
119477
|
+
".rainbow-braces .token.token.punctuation.brace-level-9": { "color": "hsl(355, 65%, 65%)" },
|
|
119478
|
+
".rainbow-braces .token.token.punctuation.brace-level-2": { "color": "hsl(95, 38%, 62%)" },
|
|
119479
|
+
".rainbow-braces .token.token.punctuation.brace-level-6": { "color": "hsl(95, 38%, 62%)" },
|
|
119480
|
+
".rainbow-braces .token.token.punctuation.brace-level-10": { "color": "hsl(95, 38%, 62%)" },
|
|
119481
|
+
".rainbow-braces .token.token.punctuation.brace-level-3": { "color": "hsl(207, 82%, 66%)" },
|
|
119482
|
+
".rainbow-braces .token.token.punctuation.brace-level-7": { "color": "hsl(207, 82%, 66%)" },
|
|
119483
|
+
".rainbow-braces .token.token.punctuation.brace-level-11": { "color": "hsl(207, 82%, 66%)" },
|
|
119484
|
+
".rainbow-braces .token.token.punctuation.brace-level-4": { "color": "hsl(286, 60%, 67%)" },
|
|
119485
|
+
".rainbow-braces .token.token.punctuation.brace-level-8": { "color": "hsl(286, 60%, 67%)" },
|
|
119486
|
+
".rainbow-braces .token.token.punctuation.brace-level-12": { "color": "hsl(286, 60%, 67%)" },
|
|
119487
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
119488
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
119489
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119490
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119491
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119492
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119493
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119494
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119495
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119496
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119497
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
119498
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
119499
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119500
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119501
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119502
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119503
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119504
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119505
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119506
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119507
|
+
".prism-previewer.prism-previewer:before": { "borderColor": "hsl(224, 13%, 17%)" },
|
|
119508
|
+
".prism-previewer-gradient.prism-previewer-gradient div": {
|
|
119509
|
+
"borderColor": "hsl(224, 13%, 17%)",
|
|
119510
|
+
"borderRadius": "0.3em"
|
|
119511
|
+
},
|
|
119512
|
+
".prism-previewer-color.prism-previewer-color:before": { "borderRadius": "0.3em" },
|
|
119513
|
+
".prism-previewer-easing.prism-previewer-easing:before": { "borderRadius": "0.3em" },
|
|
119514
|
+
".prism-previewer.prism-previewer:after": { "borderTopColor": "hsl(224, 13%, 17%)" },
|
|
119515
|
+
".prism-previewer-flipped.prism-previewer-flipped.after": { "borderBottomColor": "hsl(224, 13%, 17%)" },
|
|
119516
|
+
".prism-previewer-angle.prism-previewer-angle:before": { "background": "hsl(219, 13%, 22%)" },
|
|
119517
|
+
".prism-previewer-time.prism-previewer-time:before": { "background": "hsl(219, 13%, 22%)" },
|
|
119518
|
+
".prism-previewer-easing.prism-previewer-easing": { "background": "hsl(219, 13%, 22%)" },
|
|
119519
|
+
".prism-previewer-angle.prism-previewer-angle circle": {
|
|
119520
|
+
"stroke": "hsl(220, 14%, 71%)",
|
|
119521
|
+
"strokeOpacity": "1"
|
|
119522
|
+
},
|
|
119523
|
+
".prism-previewer-time.prism-previewer-time circle": {
|
|
119524
|
+
"stroke": "hsl(220, 14%, 71%)",
|
|
119525
|
+
"strokeOpacity": "1"
|
|
119526
|
+
},
|
|
119527
|
+
".prism-previewer-easing.prism-previewer-easing circle": {
|
|
119528
|
+
"stroke": "hsl(220, 14%, 71%)",
|
|
119529
|
+
"fill": "transparent"
|
|
119530
|
+
},
|
|
119531
|
+
".prism-previewer-easing.prism-previewer-easing path": { "stroke": "hsl(220, 14%, 71%)" },
|
|
119532
|
+
".prism-previewer-easing.prism-previewer-easing line": { "stroke": "hsl(220, 14%, 71%)" }
|
|
119533
|
+
},
|
|
119534
|
+
light: {
|
|
119535
|
+
"code[class*=\"language-\"]": {
|
|
119536
|
+
"background": "hsl(230, 1%, 98%)",
|
|
119537
|
+
"color": "hsl(230, 8%, 24%)",
|
|
119538
|
+
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
119539
|
+
"direction": "ltr",
|
|
119540
|
+
"textAlign": "left",
|
|
119541
|
+
"whiteSpace": "pre",
|
|
119542
|
+
"wordSpacing": "normal",
|
|
119543
|
+
"wordBreak": "normal",
|
|
119544
|
+
"lineHeight": "1.5",
|
|
119545
|
+
"MozTabSize": "2",
|
|
119546
|
+
"OTabSize": "2",
|
|
119547
|
+
"tabSize": "2",
|
|
119548
|
+
"WebkitHyphens": "none",
|
|
119549
|
+
"MozHyphens": "none",
|
|
119550
|
+
"msHyphens": "none",
|
|
119551
|
+
"hyphens": "none"
|
|
119552
|
+
},
|
|
119553
|
+
"pre[class*=\"language-\"]": {
|
|
119554
|
+
"background": "hsl(230, 1%, 98%)",
|
|
119555
|
+
"color": "hsl(230, 8%, 24%)",
|
|
119556
|
+
"fontFamily": "\"Fira Code\", \"Fira Mono\", Menlo, Consolas, \"DejaVu Sans Mono\", monospace",
|
|
119557
|
+
"direction": "ltr",
|
|
119558
|
+
"textAlign": "left",
|
|
119559
|
+
"whiteSpace": "pre",
|
|
119560
|
+
"wordSpacing": "normal",
|
|
119561
|
+
"wordBreak": "normal",
|
|
119562
|
+
"lineHeight": "1.5",
|
|
119563
|
+
"MozTabSize": "2",
|
|
119564
|
+
"OTabSize": "2",
|
|
119565
|
+
"tabSize": "2",
|
|
119566
|
+
"WebkitHyphens": "none",
|
|
119567
|
+
"MozHyphens": "none",
|
|
119568
|
+
"msHyphens": "none",
|
|
119569
|
+
"hyphens": "none",
|
|
119570
|
+
"padding": "1em",
|
|
119571
|
+
"margin": "0.5em 0",
|
|
119572
|
+
"overflow": "auto",
|
|
119573
|
+
"borderRadius": "0.3em"
|
|
119574
|
+
},
|
|
119575
|
+
"code[class*=\"language-\"]::-moz-selection": {
|
|
119576
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119577
|
+
"color": "inherit"
|
|
119578
|
+
},
|
|
119579
|
+
"code[class*=\"language-\"] *::-moz-selection": {
|
|
119580
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119581
|
+
"color": "inherit"
|
|
119582
|
+
},
|
|
119583
|
+
"pre[class*=\"language-\"] *::-moz-selection": {
|
|
119584
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119585
|
+
"color": "inherit"
|
|
119586
|
+
},
|
|
119587
|
+
"code[class*=\"language-\"]::selection": {
|
|
119588
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119589
|
+
"color": "inherit"
|
|
119590
|
+
},
|
|
119591
|
+
"code[class*=\"language-\"] *::selection": {
|
|
119592
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119593
|
+
"color": "inherit"
|
|
119594
|
+
},
|
|
119595
|
+
"pre[class*=\"language-\"] *::selection": {
|
|
119596
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119597
|
+
"color": "inherit"
|
|
119598
|
+
},
|
|
119599
|
+
":not(pre) > code[class*=\"language-\"]": {
|
|
119600
|
+
"padding": "0.2em 0.3em",
|
|
119601
|
+
"borderRadius": "0.3em",
|
|
119602
|
+
"whiteSpace": "normal"
|
|
119603
|
+
},
|
|
119604
|
+
"comment": {
|
|
119605
|
+
"color": "hsl(230, 4%, 64%)",
|
|
119606
|
+
"fontStyle": "italic"
|
|
119607
|
+
},
|
|
119608
|
+
"prolog": { "color": "hsl(230, 4%, 64%)" },
|
|
119609
|
+
"cdata": { "color": "hsl(230, 4%, 64%)" },
|
|
119610
|
+
"doctype": { "color": "hsl(230, 8%, 24%)" },
|
|
119611
|
+
"punctuation": { "color": "hsl(230, 8%, 24%)" },
|
|
119612
|
+
"entity": {
|
|
119613
|
+
"color": "hsl(230, 8%, 24%)",
|
|
119614
|
+
"cursor": "help"
|
|
119615
|
+
},
|
|
119616
|
+
"attr-name": { "color": "hsl(35, 99%, 36%)" },
|
|
119617
|
+
"class-name": { "color": "hsl(35, 99%, 36%)" },
|
|
119618
|
+
"boolean": { "color": "hsl(35, 99%, 36%)" },
|
|
119619
|
+
"constant": { "color": "hsl(35, 99%, 36%)" },
|
|
119620
|
+
"number": { "color": "hsl(35, 99%, 36%)" },
|
|
119621
|
+
"atrule": { "color": "hsl(35, 99%, 36%)" },
|
|
119622
|
+
"keyword": { "color": "hsl(301, 63%, 40%)" },
|
|
119623
|
+
"property": { "color": "hsl(5, 74%, 59%)" },
|
|
119624
|
+
"tag": { "color": "hsl(5, 74%, 59%)" },
|
|
119625
|
+
"symbol": { "color": "hsl(5, 74%, 59%)" },
|
|
119626
|
+
"deleted": { "color": "hsl(5, 74%, 59%)" },
|
|
119627
|
+
"important": { "color": "hsl(5, 74%, 59%)" },
|
|
119628
|
+
"selector": { "color": "hsl(119, 34%, 47%)" },
|
|
119629
|
+
"string": { "color": "hsl(119, 34%, 47%)" },
|
|
119630
|
+
"char": { "color": "hsl(119, 34%, 47%)" },
|
|
119631
|
+
"builtin": { "color": "hsl(119, 34%, 47%)" },
|
|
119632
|
+
"inserted": { "color": "hsl(119, 34%, 47%)" },
|
|
119633
|
+
"regex": { "color": "hsl(119, 34%, 47%)" },
|
|
119634
|
+
"attr-value": { "color": "hsl(119, 34%, 47%)" },
|
|
119635
|
+
"attr-value > .token.punctuation": { "color": "hsl(119, 34%, 47%)" },
|
|
119636
|
+
"variable": { "color": "hsl(221, 87%, 60%)" },
|
|
119637
|
+
"operator": { "color": "hsl(221, 87%, 60%)" },
|
|
119638
|
+
"function": { "color": "hsl(221, 87%, 60%)" },
|
|
119639
|
+
"url": { "color": "hsl(198, 99%, 37%)" },
|
|
119640
|
+
"attr-value > .token.punctuation.attr-equals": { "color": "hsl(230, 8%, 24%)" },
|
|
119641
|
+
"special-attr > .token.attr-value > .token.value.css": { "color": "hsl(230, 8%, 24%)" },
|
|
119642
|
+
".language-css .token.selector": { "color": "hsl(5, 74%, 59%)" },
|
|
119643
|
+
".language-css .token.property": { "color": "hsl(230, 8%, 24%)" },
|
|
119644
|
+
".language-css .token.function": { "color": "hsl(198, 99%, 37%)" },
|
|
119645
|
+
".language-css .token.url > .token.function": { "color": "hsl(198, 99%, 37%)" },
|
|
119646
|
+
".language-css .token.url > .token.string.url": { "color": "hsl(119, 34%, 47%)" },
|
|
119647
|
+
".language-css .token.important": { "color": "hsl(301, 63%, 40%)" },
|
|
119648
|
+
".language-css .token.atrule .token.rule": { "color": "hsl(301, 63%, 40%)" },
|
|
119649
|
+
".language-javascript .token.operator": { "color": "hsl(301, 63%, 40%)" },
|
|
119650
|
+
".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": { "color": "hsl(344, 84%, 43%)" },
|
|
119651
|
+
".language-json .token.operator": { "color": "hsl(230, 8%, 24%)" },
|
|
119652
|
+
".language-json .token.null.keyword": { "color": "hsl(35, 99%, 36%)" },
|
|
119653
|
+
".language-markdown .token.url": { "color": "hsl(230, 8%, 24%)" },
|
|
119654
|
+
".language-markdown .token.url > .token.operator": { "color": "hsl(230, 8%, 24%)" },
|
|
119655
|
+
".language-markdown .token.url-reference.url > .token.string": { "color": "hsl(230, 8%, 24%)" },
|
|
119656
|
+
".language-markdown .token.url > .token.content": { "color": "hsl(221, 87%, 60%)" },
|
|
119657
|
+
".language-markdown .token.url > .token.url": { "color": "hsl(198, 99%, 37%)" },
|
|
119658
|
+
".language-markdown .token.url-reference.url": { "color": "hsl(198, 99%, 37%)" },
|
|
119659
|
+
".language-markdown .token.blockquote.punctuation": {
|
|
119660
|
+
"color": "hsl(230, 4%, 64%)",
|
|
119661
|
+
"fontStyle": "italic"
|
|
119662
|
+
},
|
|
119663
|
+
".language-markdown .token.hr.punctuation": {
|
|
119664
|
+
"color": "hsl(230, 4%, 64%)",
|
|
119665
|
+
"fontStyle": "italic"
|
|
119666
|
+
},
|
|
119667
|
+
".language-markdown .token.code-snippet": { "color": "hsl(119, 34%, 47%)" },
|
|
119668
|
+
".language-markdown .token.bold .token.content": { "color": "hsl(35, 99%, 36%)" },
|
|
119669
|
+
".language-markdown .token.italic .token.content": { "color": "hsl(301, 63%, 40%)" },
|
|
119670
|
+
".language-markdown .token.strike .token.content": { "color": "hsl(5, 74%, 59%)" },
|
|
119671
|
+
".language-markdown .token.strike .token.punctuation": { "color": "hsl(5, 74%, 59%)" },
|
|
119672
|
+
".language-markdown .token.list.punctuation": { "color": "hsl(5, 74%, 59%)" },
|
|
119673
|
+
".language-markdown .token.title.important > .token.punctuation": { "color": "hsl(5, 74%, 59%)" },
|
|
119674
|
+
"bold": { "fontWeight": "bold" },
|
|
119675
|
+
"italic": { "fontStyle": "italic" },
|
|
119676
|
+
"namespace": { "Opacity": "0.8" },
|
|
119677
|
+
"token.tab:not(:empty):before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
119678
|
+
"token.cr:before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
119679
|
+
"token.lf:before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
119680
|
+
"token.space:before": { "color": "hsla(230, 8%, 24%, 0.2)" },
|
|
119681
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item": { "marginRight": "0.4em" },
|
|
119682
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
|
|
119683
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119684
|
+
"color": "hsl(230, 6%, 44%)",
|
|
119685
|
+
"padding": "0.1em 0.4em",
|
|
119686
|
+
"borderRadius": "0.3em"
|
|
119687
|
+
},
|
|
119688
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
|
|
119689
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119690
|
+
"color": "hsl(230, 6%, 44%)",
|
|
119691
|
+
"padding": "0.1em 0.4em",
|
|
119692
|
+
"borderRadius": "0.3em"
|
|
119693
|
+
},
|
|
119694
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
|
|
119695
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119696
|
+
"color": "hsl(230, 6%, 44%)",
|
|
119697
|
+
"padding": "0.1em 0.4em",
|
|
119698
|
+
"borderRadius": "0.3em"
|
|
119699
|
+
},
|
|
119700
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
|
|
119701
|
+
"background": "hsl(230, 1%, 78%)",
|
|
119702
|
+
"color": "hsl(230, 8%, 24%)"
|
|
119703
|
+
},
|
|
119704
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
|
|
119705
|
+
"background": "hsl(230, 1%, 78%)",
|
|
119706
|
+
"color": "hsl(230, 8%, 24%)"
|
|
119707
|
+
},
|
|
119708
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
|
|
119709
|
+
"background": "hsl(230, 1%, 78%)",
|
|
119710
|
+
"color": "hsl(230, 8%, 24%)"
|
|
119711
|
+
},
|
|
119712
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
|
|
119713
|
+
"background": "hsl(230, 1%, 78%)",
|
|
119714
|
+
"color": "hsl(230, 8%, 24%)"
|
|
119715
|
+
},
|
|
119716
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
|
|
119717
|
+
"background": "hsl(230, 1%, 78%)",
|
|
119718
|
+
"color": "hsl(230, 8%, 24%)"
|
|
119719
|
+
},
|
|
119720
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
|
|
119721
|
+
"background": "hsl(230, 1%, 78%)",
|
|
119722
|
+
"color": "hsl(230, 8%, 24%)"
|
|
119723
|
+
},
|
|
119724
|
+
".line-highlight.line-highlight": { "background": "hsla(230, 8%, 24%, 0.05)" },
|
|
119725
|
+
".line-highlight.line-highlight:before": {
|
|
119726
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119727
|
+
"color": "hsl(230, 8%, 24%)",
|
|
119728
|
+
"padding": "0.1em 0.6em",
|
|
119729
|
+
"borderRadius": "0.3em",
|
|
119730
|
+
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
119731
|
+
},
|
|
119732
|
+
".line-highlight.line-highlight[data-end]:after": {
|
|
119733
|
+
"background": "hsl(230, 1%, 90%)",
|
|
119734
|
+
"color": "hsl(230, 8%, 24%)",
|
|
119735
|
+
"padding": "0.1em 0.6em",
|
|
119736
|
+
"borderRadius": "0.3em",
|
|
119737
|
+
"boxShadow": "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
119738
|
+
},
|
|
119739
|
+
"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": { "backgroundColor": "hsla(230, 8%, 24%, 0.05)" },
|
|
119740
|
+
".line-numbers.line-numbers .line-numbers-rows": { "borderRightColor": "hsla(230, 8%, 24%, 0.2)" },
|
|
119741
|
+
".command-line .command-line-prompt": { "borderRightColor": "hsla(230, 8%, 24%, 0.2)" },
|
|
119742
|
+
".line-numbers .line-numbers-rows > span:before": { "color": "hsl(230, 1%, 62%)" },
|
|
119743
|
+
".command-line .command-line-prompt > span:before": { "color": "hsl(230, 1%, 62%)" },
|
|
119744
|
+
".rainbow-braces .token.token.punctuation.brace-level-1": { "color": "hsl(5, 74%, 59%)" },
|
|
119745
|
+
".rainbow-braces .token.token.punctuation.brace-level-5": { "color": "hsl(5, 74%, 59%)" },
|
|
119746
|
+
".rainbow-braces .token.token.punctuation.brace-level-9": { "color": "hsl(5, 74%, 59%)" },
|
|
119747
|
+
".rainbow-braces .token.token.punctuation.brace-level-2": { "color": "hsl(119, 34%, 47%)" },
|
|
119748
|
+
".rainbow-braces .token.token.punctuation.brace-level-6": { "color": "hsl(119, 34%, 47%)" },
|
|
119749
|
+
".rainbow-braces .token.token.punctuation.brace-level-10": { "color": "hsl(119, 34%, 47%)" },
|
|
119750
|
+
".rainbow-braces .token.token.punctuation.brace-level-3": { "color": "hsl(221, 87%, 60%)" },
|
|
119751
|
+
".rainbow-braces .token.token.punctuation.brace-level-7": { "color": "hsl(221, 87%, 60%)" },
|
|
119752
|
+
".rainbow-braces .token.token.punctuation.brace-level-11": { "color": "hsl(221, 87%, 60%)" },
|
|
119753
|
+
".rainbow-braces .token.token.punctuation.brace-level-4": { "color": "hsl(301, 63%, 40%)" },
|
|
119754
|
+
".rainbow-braces .token.token.punctuation.brace-level-8": { "color": "hsl(301, 63%, 40%)" },
|
|
119755
|
+
".rainbow-braces .token.token.punctuation.brace-level-12": { "color": "hsl(301, 63%, 40%)" },
|
|
119756
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
119757
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)": { "backgroundColor": "hsla(353, 100%, 66%, 0.15)" },
|
|
119758
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119759
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119760
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119761
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119762
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119763
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119764
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119765
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": { "backgroundColor": "hsla(353, 95%, 66%, 0.25)" },
|
|
119766
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
119767
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)": { "backgroundColor": "hsla(137, 100%, 55%, 0.15)" },
|
|
119768
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119769
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119770
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119771
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119772
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119773
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119774
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119775
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": { "backgroundColor": "hsla(135, 73%, 55%, 0.25)" },
|
|
119776
|
+
".prism-previewer.prism-previewer:before": { "borderColor": "hsl(0, 0, 95%)" },
|
|
119777
|
+
".prism-previewer-gradient.prism-previewer-gradient div": {
|
|
119778
|
+
"borderColor": "hsl(0, 0, 95%)",
|
|
119779
|
+
"borderRadius": "0.3em"
|
|
119780
|
+
},
|
|
119781
|
+
".prism-previewer-color.prism-previewer-color:before": { "borderRadius": "0.3em" },
|
|
119782
|
+
".prism-previewer-easing.prism-previewer-easing:before": { "borderRadius": "0.3em" },
|
|
119783
|
+
".prism-previewer.prism-previewer:after": { "borderTopColor": "hsl(0, 0, 95%)" },
|
|
119784
|
+
".prism-previewer-flipped.prism-previewer-flipped.after": { "borderBottomColor": "hsl(0, 0, 95%)" },
|
|
119785
|
+
".prism-previewer-angle.prism-previewer-angle:before": { "background": "hsl(0, 0%, 100%)" },
|
|
119786
|
+
".prism-previewer-time.prism-previewer-time:before": { "background": "hsl(0, 0%, 100%)" },
|
|
119787
|
+
".prism-previewer-easing.prism-previewer-easing": { "background": "hsl(0, 0%, 100%)" },
|
|
119788
|
+
".prism-previewer-angle.prism-previewer-angle circle": {
|
|
119789
|
+
"stroke": "hsl(230, 8%, 24%)",
|
|
119790
|
+
"strokeOpacity": "1"
|
|
119791
|
+
},
|
|
119792
|
+
".prism-previewer-time.prism-previewer-time circle": {
|
|
119793
|
+
"stroke": "hsl(230, 8%, 24%)",
|
|
119794
|
+
"strokeOpacity": "1"
|
|
119795
|
+
},
|
|
119796
|
+
".prism-previewer-easing.prism-previewer-easing circle": {
|
|
119797
|
+
"stroke": "hsl(230, 8%, 24%)",
|
|
119798
|
+
"fill": "transparent"
|
|
119799
|
+
},
|
|
119800
|
+
".prism-previewer-easing.prism-previewer-easing path": { "stroke": "hsl(230, 8%, 24%)" },
|
|
119801
|
+
".prism-previewer-easing.prism-previewer-easing line": { "stroke": "hsl(230, 8%, 24%)" }
|
|
119802
|
+
}
|
|
119803
|
+
};
|
|
119966
119804
|
function CodeBlock({ node: _node, className, children, ...rest }) {
|
|
119967
119805
|
const [dark, themeRef] = useDarkAncestor();
|
|
119968
119806
|
const language = resolveLanguage(/language-(\w+)/.exec(className ?? "")?.[1]);
|
|
@@ -119972,8 +119810,8 @@ function CodeBlock({ node: _node, className, children, ...rest }) {
|
|
|
119972
119810
|
children: [/* @__PURE__ */ jsx("div", {
|
|
119973
119811
|
className: "border-b border-border bg-subtle px-3 py-1.5 font-mono text-xs text-muted",
|
|
119974
119812
|
children: language
|
|
119975
|
-
}), /* @__PURE__ */ jsx(SyntaxHighlighter
|
|
119976
|
-
style: dark ?
|
|
119813
|
+
}), /* @__PURE__ */ jsx(SyntaxHighlighter, {
|
|
119814
|
+
style: PRISM_THEME[dark ? "dark" : "light"],
|
|
119977
119815
|
language,
|
|
119978
119816
|
PreTag: "div",
|
|
119979
119817
|
customStyle: {
|
|
@@ -120025,78 +119863,18 @@ function Markdown({ children, className = "" }) {
|
|
|
120025
119863
|
})
|
|
120026
119864
|
});
|
|
120027
119865
|
}
|
|
120028
|
-
|
|
120029
|
-
|
|
120030
|
-
|
|
120031
|
-
|
|
120032
|
-
|
|
120033
|
-
|
|
120034
|
-
|
|
120035
|
-
|
|
119866
|
+
/** 高亮器按主题构造:`makePrismLightSyntaxHighlighter` 的 style 是静态的,只能在这里分叉 */
|
|
119867
|
+
function makeHighlighter(dark) {
|
|
119868
|
+
return makePrismLightSyntaxHighlighter({
|
|
119869
|
+
style: PRISM_THEME[dark ? "dark" : "light"],
|
|
119870
|
+
customStyle: {
|
|
119871
|
+
margin: 0,
|
|
119872
|
+
padding: "0.75rem 1rem",
|
|
119873
|
+
fontSize: "0.8125rem",
|
|
120036
119874
|
background: "transparent"
|
|
120037
119875
|
},
|
|
120038
|
-
|
|
120039
|
-
|
|
120040
|
-
fontStyle: "italic"
|
|
120041
|
-
},
|
|
120042
|
-
prolog: { color: "var(--color-muted)" },
|
|
120043
|
-
doctype: { color: "var(--color-muted)" },
|
|
120044
|
-
cdata: { color: "var(--color-muted)" },
|
|
120045
|
-
punctuation: { color: "var(--color-muted)" },
|
|
120046
|
-
operator: { color: "var(--color-muted)" },
|
|
120047
|
-
keyword: {
|
|
120048
|
-
color: "var(--color-ink)",
|
|
120049
|
-
fontWeight: 600
|
|
120050
|
-
},
|
|
120051
|
-
"attr-name": {
|
|
120052
|
-
color: "var(--color-ink)",
|
|
120053
|
-
fontWeight: 600
|
|
120054
|
-
},
|
|
120055
|
-
selector: {
|
|
120056
|
-
color: "var(--color-ink)",
|
|
120057
|
-
fontWeight: 600
|
|
120058
|
-
},
|
|
120059
|
-
tag: {
|
|
120060
|
-
color: "var(--color-ink)",
|
|
120061
|
-
fontWeight: 600
|
|
120062
|
-
},
|
|
120063
|
-
function: {
|
|
120064
|
-
color: "var(--color-ink)",
|
|
120065
|
-
fontWeight: 600
|
|
120066
|
-
},
|
|
120067
|
-
"class-name": {
|
|
120068
|
-
color: "var(--color-ink)",
|
|
120069
|
-
fontWeight: 600
|
|
120070
|
-
},
|
|
120071
|
-
string: { color: "var(--color-ink)" },
|
|
120072
|
-
char: { color: "var(--color-ink)" },
|
|
120073
|
-
"attr-value": { color: "var(--color-ink)" },
|
|
120074
|
-
number: { color: "var(--color-ink)" },
|
|
120075
|
-
boolean: { color: "var(--color-ink)" },
|
|
120076
|
-
regex: { color: "var(--color-ink)" },
|
|
120077
|
-
inserted: { color: "var(--color-success)" },
|
|
120078
|
-
deleted: { color: "var(--color-destructive)" }
|
|
120079
|
-
},
|
|
120080
|
-
customStyle: {
|
|
120081
|
-
margin: 0,
|
|
120082
|
-
padding: "0.75rem 1rem",
|
|
120083
|
-
fontSize: "0.8125rem",
|
|
120084
|
-
background: "transparent"
|
|
120085
|
-
},
|
|
120086
|
-
codeTagProps: { className: "font-mono" }
|
|
120087
|
-
});
|
|
120088
|
-
function useCopyToClipboard(resetDelayMs = 2e3) {
|
|
120089
|
-
const [copied, setCopied] = useState(false);
|
|
120090
|
-
return {
|
|
120091
|
-
copied,
|
|
120092
|
-
copy: useCallback((value) => {
|
|
120093
|
-
if (copied || value === "") return;
|
|
120094
|
-
navigator.clipboard.writeText(value).then(() => {
|
|
120095
|
-
setCopied(true);
|
|
120096
|
-
setTimeout(() => setCopied(false), resetDelayMs);
|
|
120097
|
-
});
|
|
120098
|
-
}, [copied, resetDelayMs])
|
|
120099
|
-
};
|
|
119876
|
+
codeTagProps: { className: "font-mono" }
|
|
119877
|
+
});
|
|
120100
119878
|
}
|
|
120101
119879
|
const CodeHeader = ({ language, code }) => {
|
|
120102
119880
|
const { copied, copy } = useCopyToClipboard();
|
|
@@ -120120,24 +119898,38 @@ const CodeHeader = ({ language, code }) => {
|
|
|
120120
119898
|
})]
|
|
120121
119899
|
});
|
|
120122
119900
|
};
|
|
120123
|
-
const
|
|
120124
|
-
|
|
120125
|
-
|
|
120126
|
-
pre: ({ className, ...props }) => /* @__PURE__ */ jsx("pre", {
|
|
120127
|
-
className: cn("overflow-x-auto rounded-b-lg border border-border bg-card", className),
|
|
120128
|
-
...props
|
|
120129
|
-
})
|
|
119901
|
+
const preComponent = ({ className, ...props }) => /* @__PURE__ */ jsx("pre", {
|
|
119902
|
+
className: cn("overflow-x-auto rounded-b-lg border border-border bg-card", className),
|
|
119903
|
+
...props
|
|
120130
119904
|
});
|
|
119905
|
+
const markdownComponents = {
|
|
119906
|
+
light: memoizeMarkdownComponents({
|
|
119907
|
+
SyntaxHighlighter: makeHighlighter(false),
|
|
119908
|
+
CodeHeader,
|
|
119909
|
+
pre: preComponent
|
|
119910
|
+
}),
|
|
119911
|
+
dark: memoizeMarkdownComponents({
|
|
119912
|
+
SyntaxHighlighter: makeHighlighter(true),
|
|
119913
|
+
CodeHeader,
|
|
119914
|
+
pre: preComponent
|
|
119915
|
+
})
|
|
119916
|
+
};
|
|
120131
119917
|
/**
|
|
120132
119918
|
* 流式 Markdown:消费当前 text part 的增量文本,边流边成形(标题/列表/表格/代码块),
|
|
120133
119919
|
* 终态与流式期是同一个组件、同一份数据,因此 run 结束时不重排。
|
|
120134
119920
|
*/
|
|
120135
119921
|
const MarkdownText = memo(function MarkdownText({ className }) {
|
|
120136
|
-
|
|
120137
|
-
|
|
120138
|
-
|
|
120139
|
-
|
|
120140
|
-
|
|
119922
|
+
const [dark, themeRef] = useDarkAncestor();
|
|
119923
|
+
const components = useMemo(() => markdownComponents[dark ? "dark" : "light"], [dark]);
|
|
119924
|
+
return /* @__PURE__ */ jsx("div", {
|
|
119925
|
+
ref: themeRef,
|
|
119926
|
+
className: "contents",
|
|
119927
|
+
children: /* @__PURE__ */ jsx(MarkdownTextPrimitive, {
|
|
119928
|
+
remarkPlugins: [remarkGfm],
|
|
119929
|
+
className: cn("aui-md", className),
|
|
119930
|
+
components,
|
|
119931
|
+
defer: true
|
|
119932
|
+
})
|
|
120141
119933
|
});
|
|
120142
119934
|
});
|
|
120143
119935
|
/**
|
|
@@ -120702,4 +120494,4 @@ const catalogComponentImpls = {
|
|
|
120702
120494
|
};
|
|
120703
120495
|
|
|
120704
120496
|
//#endregion
|
|
120705
|
-
export {
|
|
120497
|
+
export { Markdown as C, Input as S, DataTable as _, SpecProgress as a, DropdownMenuContent as b, SurfaceButton as c, catalogComponentImpls as d, str as f, Button as g, Badge as h, SpecGrid as i, SurfaceField as l, useSurfaceForm as m, CatalogSurfaceProvider as n, SpecTabs as o, useCatalogSurfaceForm as p, EChart as r, SpecTimeline as s, CatalogNode as t, SurfaceFormButtons as u, DropdownMenu as v, Separator as w, DropdownMenuTrigger as x, DropdownMenuCheckboxItem as y };
|