update
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,43 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.clear = clear;
|
||||
exports.clearPath = clearPath;
|
||||
exports.clearScope = clearScope;
|
||||
exports.getCachedPaths = getCachedPaths;
|
||||
exports.getOrCreateCachedPaths = getOrCreateCachedPaths;
|
||||
exports.scope = exports.path = void 0;
|
||||
let pathsCache = exports.path = new WeakMap();
|
||||
let scope = exports.scope = new WeakMap();
|
||||
function clear() {
|
||||
clearPath();
|
||||
clearScope();
|
||||
}
|
||||
function clearPath() {
|
||||
exports.path = pathsCache = new WeakMap();
|
||||
}
|
||||
function clearScope() {
|
||||
exports.scope = scope = new WeakMap();
|
||||
}
|
||||
const nullHub = Object.freeze({});
|
||||
function getCachedPaths(hub, parent) {
|
||||
var _pathsCache$get;
|
||||
{
|
||||
hub = null;
|
||||
}
|
||||
return (_pathsCache$get = pathsCache.get(hub != null ? hub : nullHub)) == null ? void 0 : _pathsCache$get.get(parent);
|
||||
}
|
||||
function getOrCreateCachedPaths(hub, parent) {
|
||||
{
|
||||
hub = null;
|
||||
}
|
||||
let parents = pathsCache.get(hub != null ? hub : nullHub);
|
||||
if (!parents) pathsCache.set(hub != null ? hub : nullHub, parents = new WeakMap());
|
||||
let paths = parents.get(parent);
|
||||
if (!paths) parents.set(parent, paths = new Map());
|
||||
return paths;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=cache.js.map
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
const forEachBail = require("./forEachBail");
|
||||
const getPaths = require("./getPaths");
|
||||
|
||||
/** @typedef {import("./Resolver")} Resolver */
|
||||
/** @typedef {import("./Resolver").ResolveRequest} ResolveRequest */
|
||||
/** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */
|
||||
|
||||
module.exports = class ModulesInHierarchicalDirectoriesPlugin {
|
||||
/**
|
||||
* @param {string | ResolveStepHook} source source
|
||||
* @param {string | Array<string>} directories directories
|
||||
* @param {string | ResolveStepHook} target target
|
||||
*/
|
||||
constructor(source, directories, target) {
|
||||
this.source = source;
|
||||
this.directories = /** @type {Array<string>} */ ([]).concat(directories);
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Resolver} resolver the resolver
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(resolver) {
|
||||
const target = resolver.ensureHook(this.target);
|
||||
resolver
|
||||
.getHook(this.source)
|
||||
.tapAsync(
|
||||
"ModulesInHierarchicalDirectoriesPlugin",
|
||||
(request, resolveContext, callback) => {
|
||||
const fs = resolver.fileSystem;
|
||||
const addrs = getPaths(/** @type {string} */ (request.path))
|
||||
.paths.map(p => {
|
||||
return this.directories.map(d => resolver.join(p, d));
|
||||
})
|
||||
.reduce((array, p) => {
|
||||
array.push.apply(array, p);
|
||||
return array;
|
||||
}, []);
|
||||
forEachBail(
|
||||
addrs,
|
||||
/**
|
||||
* @param {string} addr addr
|
||||
* @param {(err?: null|Error, result?: null|ResolveRequest) => void} callback callback
|
||||
* @returns {void}
|
||||
*/
|
||||
(addr, callback) => {
|
||||
fs.stat(addr, (err, stat) => {
|
||||
if (!err && stat && stat.isDirectory()) {
|
||||
/** @type {ResolveRequest} */
|
||||
const obj = {
|
||||
...request,
|
||||
path: addr,
|
||||
request: "./" + request.request,
|
||||
module: false
|
||||
};
|
||||
const message = "looking for modules in " + addr;
|
||||
return resolver.doResolve(
|
||||
target,
|
||||
obj,
|
||||
message,
|
||||
resolveContext,
|
||||
callback
|
||||
);
|
||||
}
|
||||
if (resolveContext.log)
|
||||
resolveContext.log(
|
||||
addr + " doesn't exist or is not a directory"
|
||||
);
|
||||
if (resolveContext.missingDependencies)
|
||||
resolveContext.missingDependencies.add(addr);
|
||||
return callback();
|
||||
});
|
||||
},
|
||||
callback
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,250 @@
|
||||
import * as React from 'react'
|
||||
import warning from 'tiny-warning'
|
||||
import { CatchBoundary, ErrorComponent } from './CatchBoundary'
|
||||
import { useRouterState } from './useRouterState'
|
||||
import { useRouter } from './useRouter'
|
||||
import { Transitioner } from './Transitioner'
|
||||
import { matchContext } from './matchContext'
|
||||
import { Match } from './Match'
|
||||
import { SafeFragment } from './SafeFragment'
|
||||
import type {
|
||||
StructuralSharingOption,
|
||||
ValidateSelected,
|
||||
} from './structuralSharing'
|
||||
import type { ReactNode } from './route'
|
||||
import type {
|
||||
AnyRouter,
|
||||
DeepPartial,
|
||||
MakeOptionalPathParams,
|
||||
MakeOptionalSearchParams,
|
||||
MakeRouteMatchUnion,
|
||||
MaskOptions,
|
||||
MatchRouteOptions,
|
||||
NoInfer,
|
||||
RegisteredRouter,
|
||||
ResolveRelativePath,
|
||||
ResolveRoute,
|
||||
RouteByPath,
|
||||
RouterState,
|
||||
ToSubOptionsProps,
|
||||
} from '@tanstack/router-core'
|
||||
|
||||
declare module '@tanstack/router-core' {
|
||||
export interface RouteMatchExtensions {
|
||||
meta?: Array<React.JSX.IntrinsicElements['meta'] | undefined>
|
||||
links?: Array<React.JSX.IntrinsicElements['link'] | undefined>
|
||||
scripts?: Array<React.JSX.IntrinsicElements['script'] | undefined>
|
||||
headScripts?: Array<React.JSX.IntrinsicElements['script'] | undefined>
|
||||
}
|
||||
}
|
||||
|
||||
export function Matches() {
|
||||
const router = useRouter()
|
||||
|
||||
const pendingElement = router.options.defaultPendingComponent ? (
|
||||
<router.options.defaultPendingComponent />
|
||||
) : null
|
||||
|
||||
// Do not render a root Suspense during SSR or hydrating from SSR
|
||||
const ResolvedSuspense =
|
||||
router.isServer || (typeof document !== 'undefined' && router.clientSsr)
|
||||
? SafeFragment
|
||||
: React.Suspense
|
||||
|
||||
const inner = (
|
||||
<ResolvedSuspense fallback={pendingElement}>
|
||||
<Transitioner />
|
||||
<MatchesInner />
|
||||
</ResolvedSuspense>
|
||||
)
|
||||
|
||||
return router.options.InnerWrap ? (
|
||||
<router.options.InnerWrap>{inner}</router.options.InnerWrap>
|
||||
) : (
|
||||
inner
|
||||
)
|
||||
}
|
||||
|
||||
function MatchesInner() {
|
||||
const matchId = useRouterState({
|
||||
select: (s) => {
|
||||
return s.matches[0]?.id
|
||||
},
|
||||
})
|
||||
|
||||
const resetKey = useRouterState({
|
||||
select: (s) => s.loadedAt,
|
||||
})
|
||||
|
||||
return (
|
||||
<matchContext.Provider value={matchId}>
|
||||
<CatchBoundary
|
||||
getResetKey={() => resetKey}
|
||||
errorComponent={ErrorComponent}
|
||||
onCatch={(error) => {
|
||||
warning(
|
||||
false,
|
||||
`The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`,
|
||||
)
|
||||
warning(false, error.message || error.toString())
|
||||
}}
|
||||
>
|
||||
{matchId ? <Match matchId={matchId} /> : null}
|
||||
</CatchBoundary>
|
||||
</matchContext.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
export type UseMatchRouteOptions<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
TFrom extends string = string,
|
||||
TTo extends string | undefined = undefined,
|
||||
TMaskFrom extends string = TFrom,
|
||||
TMaskTo extends string = '',
|
||||
> = ToSubOptionsProps<TRouter, TFrom, TTo> &
|
||||
DeepPartial<MakeOptionalSearchParams<TRouter, TFrom, TTo>> &
|
||||
DeepPartial<MakeOptionalPathParams<TRouter, TFrom, TTo>> &
|
||||
MaskOptions<TRouter, TMaskFrom, TMaskTo> &
|
||||
MatchRouteOptions
|
||||
|
||||
export function useMatchRoute<TRouter extends AnyRouter = RegisteredRouter>() {
|
||||
const router = useRouter()
|
||||
|
||||
useRouterState({
|
||||
select: (s) => [s.location.href, s.resolvedLocation?.href, s.status],
|
||||
structuralSharing: true as any,
|
||||
})
|
||||
|
||||
return React.useCallback(
|
||||
<
|
||||
const TFrom extends string = string,
|
||||
const TTo extends string | undefined = undefined,
|
||||
const TMaskFrom extends string = TFrom,
|
||||
const TMaskTo extends string = '',
|
||||
>(
|
||||
opts: UseMatchRouteOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>,
|
||||
): false | ResolveRoute<TRouter, TFrom, TTo>['types']['allParams'] => {
|
||||
const { pending, caseSensitive, fuzzy, includeSearch, ...rest } = opts
|
||||
|
||||
return router.matchRoute(rest as any, {
|
||||
pending,
|
||||
caseSensitive,
|
||||
fuzzy,
|
||||
includeSearch,
|
||||
})
|
||||
},
|
||||
[router],
|
||||
)
|
||||
}
|
||||
|
||||
export type MakeMatchRouteOptions<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
TFrom extends string = string,
|
||||
TTo extends string | undefined = undefined,
|
||||
TMaskFrom extends string = TFrom,
|
||||
TMaskTo extends string = '',
|
||||
> = UseMatchRouteOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & {
|
||||
// If a function is passed as a child, it will be given the `isActive` boolean to aid in further styling on the element it returns
|
||||
children?:
|
||||
| ((
|
||||
params?: RouteByPath<
|
||||
TRouter['routeTree'],
|
||||
ResolveRelativePath<TFrom, NoInfer<TTo>>
|
||||
>['types']['allParams'],
|
||||
) => ReactNode)
|
||||
| React.ReactNode
|
||||
}
|
||||
|
||||
export function MatchRoute<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
const TFrom extends string = string,
|
||||
const TTo extends string | undefined = undefined,
|
||||
const TMaskFrom extends string = TFrom,
|
||||
const TMaskTo extends string = '',
|
||||
>(props: MakeMatchRouteOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>): any {
|
||||
const matchRoute = useMatchRoute()
|
||||
const params = matchRoute(props as any) as boolean
|
||||
|
||||
if (typeof props.children === 'function') {
|
||||
return (props.children as any)(params)
|
||||
}
|
||||
|
||||
return params ? props.children : null
|
||||
}
|
||||
|
||||
export interface UseMatchesBaseOptions<
|
||||
TRouter extends AnyRouter,
|
||||
TSelected,
|
||||
TStructuralSharing,
|
||||
> {
|
||||
select?: (
|
||||
matches: Array<MakeRouteMatchUnion<TRouter>>,
|
||||
) => ValidateSelected<TRouter, TSelected, TStructuralSharing>
|
||||
}
|
||||
|
||||
export type UseMatchesResult<
|
||||
TRouter extends AnyRouter,
|
||||
TSelected,
|
||||
> = unknown extends TSelected ? Array<MakeRouteMatchUnion<TRouter>> : TSelected
|
||||
|
||||
export function useMatches<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
TSelected = unknown,
|
||||
TStructuralSharing extends boolean = boolean,
|
||||
>(
|
||||
opts?: UseMatchesBaseOptions<TRouter, TSelected, TStructuralSharing> &
|
||||
StructuralSharingOption<TRouter, TSelected, TStructuralSharing>,
|
||||
): UseMatchesResult<TRouter, TSelected> {
|
||||
return useRouterState({
|
||||
select: (state: RouterState<TRouter['routeTree']>) => {
|
||||
const matches = state.matches
|
||||
return opts?.select
|
||||
? opts.select(matches as Array<MakeRouteMatchUnion<TRouter>>)
|
||||
: matches
|
||||
},
|
||||
structuralSharing: opts?.structuralSharing,
|
||||
} as any) as UseMatchesResult<TRouter, TSelected>
|
||||
}
|
||||
|
||||
export function useParentMatches<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
TSelected = unknown,
|
||||
TStructuralSharing extends boolean = boolean,
|
||||
>(
|
||||
opts?: UseMatchesBaseOptions<TRouter, TSelected, TStructuralSharing> &
|
||||
StructuralSharingOption<TRouter, TSelected, TStructuralSharing>,
|
||||
): UseMatchesResult<TRouter, TSelected> {
|
||||
const contextMatchId = React.useContext(matchContext)
|
||||
|
||||
return useMatches({
|
||||
select: (matches: Array<MakeRouteMatchUnion<TRouter>>) => {
|
||||
matches = matches.slice(
|
||||
0,
|
||||
matches.findIndex((d) => d.id === contextMatchId),
|
||||
)
|
||||
return opts?.select ? opts.select(matches) : matches
|
||||
},
|
||||
structuralSharing: opts?.structuralSharing,
|
||||
} as any)
|
||||
}
|
||||
|
||||
export function useChildMatches<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
TSelected = unknown,
|
||||
TStructuralSharing extends boolean = boolean,
|
||||
>(
|
||||
opts?: UseMatchesBaseOptions<TRouter, TSelected, TStructuralSharing> &
|
||||
StructuralSharingOption<TRouter, TSelected, TStructuralSharing>,
|
||||
): UseMatchesResult<TRouter, TSelected> {
|
||||
const contextMatchId = React.useContext(matchContext)
|
||||
|
||||
return useMatches({
|
||||
select: (matches: Array<MakeRouteMatchUnion<TRouter>>) => {
|
||||
matches = matches.slice(
|
||||
matches.findIndex((d) => d.id === contextMatchId) + 1,
|
||||
)
|
||||
return opts?.select ? opts.select(matches) : matches
|
||||
},
|
||||
structuralSharing: opts?.structuralSharing,
|
||||
} as any)
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = buildChildren;
|
||||
var _index = require("../../validators/generated/index.js");
|
||||
var _cleanJSXElementLiteralChild = require("../../utils/react/cleanJSXElementLiteralChild.js");
|
||||
function buildChildren(node) {
|
||||
const elements = [];
|
||||
for (let i = 0; i < node.children.length; i++) {
|
||||
let child = node.children[i];
|
||||
if ((0, _index.isJSXText)(child)) {
|
||||
(0, _cleanJSXElementLiteralChild.default)(child, elements);
|
||||
continue;
|
||||
}
|
||||
if ((0, _index.isJSXExpressionContainer)(child)) child = child.expression;
|
||||
if ((0, _index.isJSXEmptyExpression)(child)) continue;
|
||||
elements.push(child);
|
||||
}
|
||||
return elements;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=buildChildren.js.map
|
||||
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
type Colors = {
|
||||
[key: string | number]: string | Colors;
|
||||
};
|
||||
declare function flattenColorPalette(colors: Colors): Record<string, string>;
|
||||
|
||||
export { flattenColorPalette as default };
|
||||
@@ -0,0 +1,23 @@
|
||||
export type DrawLayerBuilderOptions = {
|
||||
pageIndex: number;
|
||||
};
|
||||
/**
|
||||
* @typedef {Object} DrawLayerBuilderOptions
|
||||
* @property {number} pageIndex
|
||||
*/
|
||||
export class DrawLayerBuilder {
|
||||
/**
|
||||
* @param {DrawLayerBuilderOptions} options
|
||||
*/
|
||||
constructor(options: DrawLayerBuilderOptions);
|
||||
pageIndex: number;
|
||||
/**
|
||||
* @param {string} intent (default value is 'display')
|
||||
*/
|
||||
render(intent?: string): Promise<void>;
|
||||
cancel(): void;
|
||||
_cancelled: boolean | undefined;
|
||||
setParent(parent: any): void;
|
||||
getDrawLayer(): null;
|
||||
#private;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"52":0.00379,"78":0.00758,"102":0.00758,"115":0.06445,"121":0.01137,"128":0.05307,"130":0.00379,"132":0.00379,"134":0.00758,"135":0.26916,"136":0.81507,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 120 122 123 124 125 126 127 129 131 133 137 138 139 140 3.5 3.6"},D:{"39":0.00379,"40":0.00758,"41":0.00758,"42":0.00758,"43":0.00379,"44":0.00379,"45":0.00758,"46":0.00379,"47":0.01137,"48":0.00379,"49":0.00758,"50":0.00758,"51":0.00379,"52":0.00379,"53":0.00758,"54":0.00379,"55":0.00379,"56":0.00758,"57":0.00758,"58":0.00758,"59":0.00379,"60":0.00758,"65":0.02654,"66":0.00379,"69":0.02654,"73":0.00379,"74":0.00758,"76":0.01137,"79":0.06445,"80":0.00379,"81":0.00379,"83":0.01896,"85":0.00379,"87":0.03412,"90":0.00379,"91":0.01137,"93":0.01516,"94":0.01137,"95":0.00379,"98":0.00379,"99":0.00379,"101":0.01137,"103":0.1251,"104":0.26158,"106":0.01137,"108":0.06066,"109":1.25103,"110":0.01137,"111":0.01516,"112":0.00379,"113":0.00758,"114":0.00379,"116":0.07203,"119":0.01896,"120":0.02275,"121":0.01896,"122":0.0417,"123":0.01516,"124":0.01137,"125":0.02654,"126":0.05687,"127":0.04928,"128":0.5459,"129":0.00758,"130":0.07582,"131":0.34498,"132":0.53832,"133":6.77831,"134":13.82957,"135":0.01896,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 61 62 63 64 67 68 70 71 72 75 77 78 84 86 88 89 92 96 97 100 102 105 107 115 117 118 136 137 138"},F:{"87":0.00758,"88":0.00379,"95":0.00379,"114":0.00758,"116":0.47767,"117":1.23208,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"90":0.01516,"92":0.00379,"109":0.02275,"114":0.00758,"117":0.00379,"126":0.01137,"129":0.00379,"130":0.00758,"131":0.0417,"132":0.12889,"133":1.42542,"134":3.35883,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 118 119 120 121 122 123 124 125 127 128"},E:{"14":0.00379,"15":0.00758,_:"0 4 5 6 7 8 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4","13.1":0.03033,"14.1":0.02654,"15.1":0.00379,"15.2-15.3":0.00379,"15.5":0.00758,"15.6":0.15543,"16.0":0.00758,"16.1":0.01137,"16.2":0.05687,"16.3":0.01516,"16.4":0.00379,"16.5":0.02275,"16.6":0.19334,"17.0":0.00758,"17.1":0.10615,"17.2":0.02275,"17.3":0.00758,"17.4":0.0417,"17.5":0.09857,"17.6":0.2957,"18.0":0.05687,"18.1":0.10994,"18.2":0.04549,"18.3":1.45954,"18.4":0.00758},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00417,"5.0-5.1":0,"6.0-6.1":0.01252,"7.0-7.1":0.00835,"8.1-8.4":0,"9.0-9.2":0.00626,"9.3":0.02922,"10.0-10.2":0.00209,"10.3":0.048,"11.0-11.2":0.22121,"11.3-11.4":0.01461,"12.0-12.1":0.00835,"12.2-12.5":0.2066,"13.0-13.1":0.00417,"13.2":0.00626,"13.3":0.00835,"13.4-13.7":0.02922,"14.0-14.4":0.07304,"14.5-14.8":0.08765,"15.0-15.1":0.048,"15.2-15.3":0.048,"15.4":0.05843,"15.5":0.06678,"15.6-15.8":0.82222,"16.0":0.11686,"16.1":0.23999,"16.2":0.12521,"16.3":0.21703,"16.4":0.048,"16.5":0.08973,"16.6-16.7":0.97456,"17.0":0.05843,"17.1":0.10434,"17.2":0.0793,"17.3":0.1106,"17.4":0.22121,"17.5":0.4925,"17.6-17.7":1.42949,"18.0":0.40067,"18.1":1.31054,"18.2":0.5864,"18.3":12.25604,"18.4":0.18156},P:{"4":0.27877,"21":0.03217,"22":0.03217,"23":0.05361,"24":0.0965,"25":0.06433,"26":0.0965,"27":3.66691,_:"20 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","5.0-5.4":0.01072,"6.2-6.4":0.04289,"7.2-7.4":0.07505,"13.0":0.02144,"17.0":0.03217,"19.0":0.01072},I:{"0":0.03718,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00004},K:{"0":0.26699,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00758,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.26078},Q:{"14.9":0.01242},O:{"0":0.03725},H:{"0":0},L:{"0":37.54313}};
|
||||
@@ -0,0 +1,13 @@
|
||||
import { type DecodePlugin, type EncodePlugin } from "./utils.js";
|
||||
export type { DecodePlugin, EncodePlugin };
|
||||
export declare function decode(readable: ReadableStream<Uint8Array>, options?: {
|
||||
plugins?: DecodePlugin[];
|
||||
}): Promise<{
|
||||
done: Promise<undefined>;
|
||||
value: unknown;
|
||||
}>;
|
||||
export declare function encode(input: unknown, options?: {
|
||||
plugins?: EncodePlugin[];
|
||||
postPlugins?: EncodePlugin[];
|
||||
signal?: AbortSignal;
|
||||
}): ReadableStream<Uint8Array>;
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _classPrivateGetter;
|
||||
var _assertClassBrand = require("./assertClassBrand.js");
|
||||
function _classPrivateGetter(privateMap, receiver, getter) {
|
||||
return getter((0, _assertClassBrand.default)(privateMap, receiver));
|
||||
}
|
||||
|
||||
//# sourceMappingURL=classPrivateGetter.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"52":0.00181,"59":0.00181,"78":0.00362,"81":0.00181,"83":0.00181,"91":0.00181,"95":0.00723,"99":0.00362,"102":0.00181,"113":0.00181,"115":0.09763,"126":0.00904,"127":0.00181,"128":0.0235,"131":0.00181,"132":0.00362,"133":0.00362,"134":0.00723,"135":0.17176,"136":0.63099,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 82 84 85 86 87 88 89 90 92 93 94 96 97 98 100 101 103 104 105 106 107 108 109 110 111 112 114 116 117 118 119 120 121 122 123 124 125 129 130 137 138 139 140 3.5 3.6"},D:{"38":0.00181,"39":0.00181,"43":0.00181,"49":0.00542,"51":0.00362,"53":0.00181,"55":0.00181,"56":0.00181,"58":0.00181,"59":0.00181,"64":0.00181,"65":0.00181,"66":0.00181,"67":0.00181,"68":0.00181,"69":0.00723,"70":0.00723,"71":0.00181,"72":0.00181,"73":0.00181,"75":0.00362,"76":0.00362,"77":0.00362,"79":0.03616,"80":0.00181,"81":0.01266,"83":0.01266,"84":0.00181,"85":0.00181,"86":0.01085,"87":0.03978,"88":0.00181,"89":0.00181,"93":0.04158,"94":0.00542,"95":0.01446,"96":0.00181,"97":0.00181,"98":0.01266,"100":0.00723,"101":0.00181,"102":0.00181,"103":0.07774,"104":0.00181,"105":0.00181,"106":0.00723,"107":0.00181,"108":0.03797,"109":0.37968,"110":0.0452,"111":0.00362,"114":0.02531,"115":0.00181,"116":0.07774,"117":0.00542,"118":0.00723,"119":0.03074,"120":0.00723,"121":0.01085,"122":0.01446,"123":0.01989,"124":0.01808,"125":0.01627,"126":0.03254,"127":0.02712,"128":0.07413,"129":0.01808,"130":0.01808,"131":0.07774,"132":0.11029,"133":2.4625,"134":4.75504,"135":0.00542,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 40 41 42 44 45 46 47 48 50 52 54 57 60 61 62 63 74 78 90 91 92 99 112 113 136 137 138"},F:{"31":0.00181,"40":0.00181,"46":0.00181,"79":0.00362,"87":0.00181,"91":0.00181,"95":0.00904,"96":0.00181,"102":0.00181,"112":0.00362,"114":0.00181,"115":0.00181,"116":0.01446,"117":0.42307,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36 37 38 39 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 81 82 83 84 85 86 88 89 90 92 93 94 97 98 99 100 101 103 104 105 106 107 108 109 110 111 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00181,"14":0.00362,"15":0.00542,"18":0.00542,"89":0.00181,"90":0.00181,"92":0.00904,"100":0.00904,"109":0.01085,"114":0.00362,"119":0.00181,"120":0.00181,"121":0.00181,"122":0.00181,"123":0.00181,"125":0.00181,"126":0.00542,"127":0.00542,"128":0.00542,"129":0.00542,"130":0.00723,"131":0.03797,"132":0.03616,"133":0.87688,"134":1.81523,_:"13 16 17 79 80 81 83 84 85 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 124"},E:{"14":0.00362,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 15.1 16.0","11.1":0.00181,"12.1":0.00181,"13.1":0.01627,"14.1":0.01085,"15.2-15.3":0.00181,"15.4":0.00181,"15.5":0.00181,"15.6":0.04882,"16.1":0.00723,"16.2":0.00542,"16.3":0.00362,"16.4":0.00181,"16.5":0.00362,"16.6":0.02712,"17.0":0.00181,"17.1":0.00904,"17.2":0.00181,"17.3":0.00181,"17.4":0.00362,"17.5":0.00723,"17.6":0.05062,"18.0":0.01446,"18.1":0.01085,"18.2":0.01446,"18.3":0.15549,"18.4":0.00542},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00375,"5.0-5.1":0,"6.0-6.1":0.01126,"7.0-7.1":0.0075,"8.1-8.4":0,"9.0-9.2":0.00563,"9.3":0.02626,"10.0-10.2":0.00188,"10.3":0.04315,"11.0-11.2":0.19885,"11.3-11.4":0.01313,"12.0-12.1":0.0075,"12.2-12.5":0.18572,"13.0-13.1":0.00375,"13.2":0.00563,"13.3":0.0075,"13.4-13.7":0.02626,"14.0-14.4":0.06566,"14.5-14.8":0.07879,"15.0-15.1":0.04315,"15.2-15.3":0.04315,"15.4":0.05253,"15.5":0.06003,"15.6-15.8":0.73913,"16.0":0.10505,"16.1":0.21574,"16.2":0.11256,"16.3":0.1951,"16.4":0.04315,"16.5":0.08067,"16.6-16.7":0.87608,"17.0":0.05253,"17.1":0.0938,"17.2":0.07129,"17.3":0.09943,"17.4":0.19885,"17.5":0.44273,"17.6-17.7":1.28504,"18.0":0.36019,"18.1":1.17811,"18.2":0.52715,"18.3":11.01756,"18.4":0.16321},P:{"4":0.09238,"20":0.01026,"21":0.03079,"22":0.07185,"23":0.05132,"24":0.18475,"25":0.12317,"26":0.19501,"27":1.50879,_:"5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0","7.2-7.4":0.2566,"11.1-11.2":0.01026,"13.0":0.01026,"16.0":0.02053,"17.0":0.01026,"18.0":0.01026,"19.0":0.05132},I:{"0":0.04087,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00005},K:{"0":0.12107,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.00904,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.07373},Q:{_:"14.9"},O:{"0":0.01638},H:{"0":0.01},L:{"0":64.54584}};
|
||||
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = usePageContext;
|
||||
const react_1 = require("react");
|
||||
const PageContext_js_1 = __importDefault(require("../../PageContext.js"));
|
||||
function usePageContext() {
|
||||
return (0, react_1.useContext)(PageContext_js_1.default);
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user