7561 lines
345 KiB
JavaScript
7561 lines
345 KiB
JavaScript
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([typeof document === "object" ? document.currentScript : undefined,
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/querystring.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
assign: null,
|
||
searchParamsToUrlQuery: null,
|
||
urlQueryToSearchParams: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
assign: function() {
|
||
return assign;
|
||
},
|
||
searchParamsToUrlQuery: function() {
|
||
return searchParamsToUrlQuery;
|
||
},
|
||
urlQueryToSearchParams: function() {
|
||
return urlQueryToSearchParams;
|
||
}
|
||
});
|
||
function searchParamsToUrlQuery(searchParams) {
|
||
const query = {};
|
||
for (const [key, value] of searchParams.entries()){
|
||
const existing = query[key];
|
||
if (typeof existing === 'undefined') {
|
||
query[key] = value;
|
||
} else if (Array.isArray(existing)) {
|
||
existing.push(value);
|
||
} else {
|
||
query[key] = [
|
||
existing,
|
||
value
|
||
];
|
||
}
|
||
}
|
||
return query;
|
||
}
|
||
function stringifyUrlQueryParam(param) {
|
||
if (typeof param === 'string') {
|
||
return param;
|
||
}
|
||
if (typeof param === 'number' && !isNaN(param) || typeof param === 'boolean') {
|
||
return String(param);
|
||
} else {
|
||
return '';
|
||
}
|
||
}
|
||
function urlQueryToSearchParams(query) {
|
||
const searchParams = new URLSearchParams();
|
||
for (const [key, value] of Object.entries(query)){
|
||
if (Array.isArray(value)) {
|
||
for (const item of value){
|
||
searchParams.append(key, stringifyUrlQueryParam(item));
|
||
}
|
||
} else {
|
||
searchParams.set(key, stringifyUrlQueryParam(value));
|
||
}
|
||
}
|
||
return searchParams;
|
||
}
|
||
function assign(target, ...searchParamsList) {
|
||
for (const searchParams of searchParamsList){
|
||
for (const key of searchParams.keys()){
|
||
target.delete(key);
|
||
}
|
||
for (const [key, value] of searchParams.entries()){
|
||
target.append(key, value);
|
||
}
|
||
}
|
||
return target;
|
||
} //# sourceMappingURL=querystring.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/format-url.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
// Format function modified from nodejs
|
||
// Copyright Joyent, Inc. and other Node contributors.
|
||
//
|
||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||
// copy of this software and associated documentation files (the
|
||
// "Software"), to deal in the Software without restriction, including
|
||
// without limitation the rights to use, copy, modify, merge, publish,
|
||
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
||
// persons to whom the Software is furnished to do so, subject to the
|
||
// following conditions:
|
||
//
|
||
// The above copyright notice and this permission notice shall be included
|
||
// in all copies or substantial portions of the Software.
|
||
//
|
||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
||
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
||
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
|
||
"use strict";
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
formatUrl: null,
|
||
formatWithValidation: null,
|
||
urlObjectKeys: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
formatUrl: function() {
|
||
return formatUrl;
|
||
},
|
||
formatWithValidation: function() {
|
||
return formatWithValidation;
|
||
},
|
||
urlObjectKeys: function() {
|
||
return urlObjectKeys;
|
||
}
|
||
});
|
||
const _interop_require_wildcard = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-client] (ecmascript)");
|
||
const _querystring = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/querystring.js [app-client] (ecmascript)"));
|
||
const slashedProtocols = /https?|ftp|gopher|file/;
|
||
function formatUrl(urlObj) {
|
||
let { auth, hostname } = urlObj;
|
||
let protocol = urlObj.protocol || '';
|
||
let pathname = urlObj.pathname || '';
|
||
let hash = urlObj.hash || '';
|
||
let query = urlObj.query || '';
|
||
let host = false;
|
||
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : '';
|
||
if (urlObj.host) {
|
||
host = auth + urlObj.host;
|
||
} else if (hostname) {
|
||
host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname);
|
||
if (urlObj.port) {
|
||
host += ':' + urlObj.port;
|
||
}
|
||
}
|
||
if (query && typeof query === 'object') {
|
||
query = String(_querystring.urlQueryToSearchParams(query));
|
||
}
|
||
let search = urlObj.search || query && `?${query}` || '';
|
||
if (protocol && !protocol.endsWith(':')) protocol += ':';
|
||
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
||
host = '//' + (host || '');
|
||
if (pathname && pathname[0] !== '/') pathname = '/' + pathname;
|
||
} else if (!host) {
|
||
host = '';
|
||
}
|
||
if (hash && hash[0] !== '#') hash = '#' + hash;
|
||
if (search && search[0] !== '?') search = '?' + search;
|
||
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
||
search = search.replace('#', '%23');
|
||
return `${protocol}${host}${pathname}${search}${hash}`;
|
||
}
|
||
const urlObjectKeys = [
|
||
'auth',
|
||
'hash',
|
||
'host',
|
||
'hostname',
|
||
'href',
|
||
'path',
|
||
'pathname',
|
||
'port',
|
||
'protocol',
|
||
'query',
|
||
'search',
|
||
'slashes'
|
||
];
|
||
function formatWithValidation(url) {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (url !== null && typeof url === 'object') {
|
||
Object.keys(url).forEach((key)=>{
|
||
if (!urlObjectKeys.includes(key)) {
|
||
console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
return formatUrl(url);
|
||
} //# sourceMappingURL=format-url.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-merged-ref.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "useMergedRef", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return useMergedRef;
|
||
}
|
||
});
|
||
const _react = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
function useMergedRef(refA, refB) {
|
||
const cleanupA = (0, _react.useRef)(null);
|
||
const cleanupB = (0, _react.useRef)(null);
|
||
// NOTE: In theory, we could skip the wrapping if only one of the refs is non-null.
|
||
// (this happens often if the user doesn't pass a ref to Link/Form/Image)
|
||
// But this can cause us to leak a cleanup-ref into user code (previously via `<Link legacyBehavior>`),
|
||
// and the user might pass that ref into ref-merging library that doesn't support cleanup refs
|
||
// (because it hasn't been updated for React 19)
|
||
// which can then cause things to blow up, because a cleanup-returning ref gets called with `null`.
|
||
// So in practice, it's safer to be defensive and always wrap the ref, even on React 19.
|
||
return (0, _react.useCallback)((current)=>{
|
||
if (current === null) {
|
||
const cleanupFnA = cleanupA.current;
|
||
if (cleanupFnA) {
|
||
cleanupA.current = null;
|
||
cleanupFnA();
|
||
}
|
||
const cleanupFnB = cleanupB.current;
|
||
if (cleanupFnB) {
|
||
cleanupB.current = null;
|
||
cleanupFnB();
|
||
}
|
||
} else {
|
||
if (refA) {
|
||
cleanupA.current = applyRef(refA, current);
|
||
}
|
||
if (refB) {
|
||
cleanupB.current = applyRef(refB, current);
|
||
}
|
||
}
|
||
}, [
|
||
refA,
|
||
refB
|
||
]);
|
||
}
|
||
function applyRef(refA, current) {
|
||
if (typeof refA === 'function') {
|
||
const cleanup = refA(current);
|
||
if (typeof cleanup === 'function') {
|
||
return cleanup;
|
||
} else {
|
||
return ()=>refA(null);
|
||
}
|
||
} else {
|
||
refA.current = current;
|
||
return ()=>{
|
||
refA.current = null;
|
||
};
|
||
}
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=use-merged-ref.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
|
||
"use strict";
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
DecodeError: null,
|
||
MiddlewareNotFoundError: null,
|
||
MissingStaticPage: null,
|
||
NormalizeError: null,
|
||
PageNotFoundError: null,
|
||
SP: null,
|
||
ST: null,
|
||
WEB_VITALS: null,
|
||
execOnce: null,
|
||
getDisplayName: null,
|
||
getLocationOrigin: null,
|
||
getURL: null,
|
||
isAbsoluteUrl: null,
|
||
isResSent: null,
|
||
loadGetInitialProps: null,
|
||
normalizeRepeatedSlashes: null,
|
||
stringifyError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
DecodeError: function() {
|
||
return DecodeError;
|
||
},
|
||
MiddlewareNotFoundError: function() {
|
||
return MiddlewareNotFoundError;
|
||
},
|
||
MissingStaticPage: function() {
|
||
return MissingStaticPage;
|
||
},
|
||
NormalizeError: function() {
|
||
return NormalizeError;
|
||
},
|
||
PageNotFoundError: function() {
|
||
return PageNotFoundError;
|
||
},
|
||
SP: function() {
|
||
return SP;
|
||
},
|
||
ST: function() {
|
||
return ST;
|
||
},
|
||
WEB_VITALS: function() {
|
||
return WEB_VITALS;
|
||
},
|
||
execOnce: function() {
|
||
return execOnce;
|
||
},
|
||
getDisplayName: function() {
|
||
return getDisplayName;
|
||
},
|
||
getLocationOrigin: function() {
|
||
return getLocationOrigin;
|
||
},
|
||
getURL: function() {
|
||
return getURL;
|
||
},
|
||
isAbsoluteUrl: function() {
|
||
return isAbsoluteUrl;
|
||
},
|
||
isResSent: function() {
|
||
return isResSent;
|
||
},
|
||
loadGetInitialProps: function() {
|
||
return loadGetInitialProps;
|
||
},
|
||
normalizeRepeatedSlashes: function() {
|
||
return normalizeRepeatedSlashes;
|
||
},
|
||
stringifyError: function() {
|
||
return stringifyError;
|
||
}
|
||
});
|
||
const WEB_VITALS = [
|
||
'CLS',
|
||
'FCP',
|
||
'FID',
|
||
'INP',
|
||
'LCP',
|
||
'TTFB'
|
||
];
|
||
function execOnce(fn) {
|
||
let used = false;
|
||
let result;
|
||
return (...args)=>{
|
||
if (!used) {
|
||
used = true;
|
||
result = fn(...args);
|
||
}
|
||
return result;
|
||
};
|
||
}
|
||
// Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
|
||
// Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
|
||
const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
||
const isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url);
|
||
function getLocationOrigin() {
|
||
const { protocol, hostname, port } = window.location;
|
||
return `${protocol}//${hostname}${port ? ':' + port : ''}`;
|
||
}
|
||
function getURL() {
|
||
const { href } = window.location;
|
||
const origin = getLocationOrigin();
|
||
return href.substring(origin.length);
|
||
}
|
||
function getDisplayName(Component) {
|
||
return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
|
||
}
|
||
function isResSent(res) {
|
||
return res.finished || res.headersSent;
|
||
}
|
||
function normalizeRepeatedSlashes(url) {
|
||
const urlParts = url.split('?');
|
||
const urlNoQuery = urlParts[0];
|
||
return urlNoQuery // first we replace any non-encoded backslashes with forward
|
||
// then normalize repeated forward slashes
|
||
.replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? `?${urlParts.slice(1).join('?')}` : '');
|
||
}
|
||
async function loadGetInitialProps(App, ctx) {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (App.prototype?.getInitialProps) {
|
||
const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
|
||
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
}
|
||
// when called from _app `ctx` is nested in `ctx`
|
||
const res = ctx.res || ctx.ctx && ctx.ctx.res;
|
||
if (!App.getInitialProps) {
|
||
if (ctx.ctx && ctx.Component) {
|
||
// @ts-ignore pageProps default
|
||
return {
|
||
pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
|
||
};
|
||
}
|
||
return {};
|
||
}
|
||
const props = await App.getInitialProps(ctx);
|
||
if (res && isResSent(res)) {
|
||
return props;
|
||
}
|
||
if (!props) {
|
||
const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
|
||
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (Object.keys(props).length === 0 && !ctx.ctx) {
|
||
console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
|
||
}
|
||
}
|
||
return props;
|
||
}
|
||
const SP = typeof performance !== 'undefined';
|
||
const ST = SP && [
|
||
'mark',
|
||
'measure',
|
||
'getEntriesByName'
|
||
].every((method)=>typeof performance[method] === 'function');
|
||
class DecodeError extends Error {
|
||
}
|
||
class NormalizeError extends Error {
|
||
}
|
||
class PageNotFoundError extends Error {
|
||
constructor(page){
|
||
super();
|
||
this.code = 'ENOENT';
|
||
this.name = 'PageNotFoundError';
|
||
this.message = `Cannot find module for page: ${page}`;
|
||
}
|
||
}
|
||
class MissingStaticPage extends Error {
|
||
constructor(page, message){
|
||
super();
|
||
this.message = `Failed to load static file for page: ${page} ${message}`;
|
||
}
|
||
}
|
||
class MiddlewareNotFoundError extends Error {
|
||
constructor(){
|
||
super();
|
||
this.code = 'ENOENT';
|
||
this.message = `Cannot find the middleware module`;
|
||
}
|
||
}
|
||
function stringifyError(error) {
|
||
return JSON.stringify({
|
||
message: error.message,
|
||
stack: error.stack
|
||
});
|
||
} //# sourceMappingURL=utils.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-local-url.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "isLocalURL", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return isLocalURL;
|
||
}
|
||
});
|
||
const _utils = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js [app-client] (ecmascript)");
|
||
const _hasbasepath = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/has-base-path.js [app-client] (ecmascript)");
|
||
function isLocalURL(url) {
|
||
// prevent a hydration mismatch on href for url with anchor refs
|
||
if (!(0, _utils.isAbsoluteUrl)(url)) return true;
|
||
try {
|
||
// absolute urls can be local if they are on the same origin
|
||
const locationOrigin = (0, _utils.getLocationOrigin)();
|
||
const resolved = new URL(url, locationOrigin);
|
||
return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
|
||
} catch (_) {
|
||
return false;
|
||
}
|
||
} //# sourceMappingURL=is-local-url.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/error-once.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
|
||
"use strict";
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "errorOnce", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return errorOnce;
|
||
}
|
||
});
|
||
let errorOnce = (_)=>{};
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
const errors = new Set();
|
||
errorOnce = (msg)=>{
|
||
if (!errors.has(msg)) {
|
||
console.error(msg);
|
||
}
|
||
errors.add(msg);
|
||
};
|
||
} //# sourceMappingURL=error-once.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/app-dir/link.js [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$build$2f$polyfills$2f$process$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/build/polyfills/process.js [app-client] (ecmascript)");
|
||
'use client';
|
||
"use strict";
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
default: null,
|
||
useLinkStatus: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
/**
|
||
* A React component that extends the HTML `<a>` element to provide
|
||
* [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)
|
||
* and client-side navigation. This is the primary way to navigate between routes in Next.js.
|
||
*
|
||
* @remarks
|
||
* - Prefetching is only enabled in production.
|
||
*
|
||
* @see https://nextjs.org/docs/app/api-reference/components/link
|
||
*/ default: function() {
|
||
return LinkComponent;
|
||
},
|
||
useLinkStatus: function() {
|
||
return useLinkStatus;
|
||
}
|
||
});
|
||
const _interop_require_wildcard = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-client] (ecmascript)");
|
||
const _jsxruntime = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
const _react = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)"));
|
||
const _formaturl = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/format-url.js [app-client] (ecmascript)");
|
||
const _approutercontextsharedruntime = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js [app-client] (ecmascript)");
|
||
const _usemergedref = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/use-merged-ref.js [app-client] (ecmascript)");
|
||
const _utils = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils.js [app-client] (ecmascript)");
|
||
const _addbasepath = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/add-base-path.js [app-client] (ecmascript)");
|
||
const _warnonce = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/warn-once.js [app-client] (ecmascript)");
|
||
const _links = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/links.js [app-client] (ecmascript)");
|
||
const _islocalurl = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/router/utils/is-local-url.js [app-client] (ecmascript)");
|
||
const _types = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/segment-cache/types.js [app-client] (ecmascript)");
|
||
const _erroronce = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/utils/error-once.js [app-client] (ecmascript)");
|
||
function isModifiedEvent(event) {
|
||
const eventTarget = event.currentTarget;
|
||
const target = eventTarget.getAttribute('target');
|
||
return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || // triggers resource download
|
||
event.nativeEvent && event.nativeEvent.which === 2;
|
||
}
|
||
function linkClicked(e, href, as, linkInstanceRef, replace, scroll, onNavigate) {
|
||
if (typeof window !== 'undefined') {
|
||
const { nodeName } = e.currentTarget;
|
||
// anchors inside an svg have a lowercase nodeName
|
||
const isAnchorNodeName = nodeName.toUpperCase() === 'A';
|
||
if (isAnchorNodeName && isModifiedEvent(e) || e.currentTarget.hasAttribute('download')) {
|
||
// ignore click for browser’s default behavior
|
||
return;
|
||
}
|
||
if (!(0, _islocalurl.isLocalURL)(href)) {
|
||
if (replace) {
|
||
// browser default behavior does not replace the history state
|
||
// so we need to do it manually
|
||
e.preventDefault();
|
||
location.replace(href);
|
||
}
|
||
// ignore click for browser’s default behavior
|
||
return;
|
||
}
|
||
e.preventDefault();
|
||
if (onNavigate) {
|
||
let isDefaultPrevented = false;
|
||
onNavigate({
|
||
preventDefault: ()=>{
|
||
isDefaultPrevented = true;
|
||
}
|
||
});
|
||
if (isDefaultPrevented) {
|
||
return;
|
||
}
|
||
}
|
||
const { dispatchNavigateAction } = __turbopack_context__.r("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/app-router-instance.js [app-client] (ecmascript)");
|
||
_react.default.startTransition(()=>{
|
||
dispatchNavigateAction(as || href, replace ? 'replace' : 'push', scroll ?? true, linkInstanceRef.current);
|
||
});
|
||
}
|
||
}
|
||
function formatStringOrUrl(urlObjOrString) {
|
||
if (typeof urlObjOrString === 'string') {
|
||
return urlObjOrString;
|
||
}
|
||
return (0, _formaturl.formatUrl)(urlObjOrString);
|
||
}
|
||
function LinkComponent(props) {
|
||
const [linkStatus, setOptimisticLinkStatus] = (0, _react.useOptimistic)(_links.IDLE_LINK_STATUS);
|
||
let children;
|
||
const linkInstanceRef = (0, _react.useRef)(null);
|
||
const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, onClick, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, onNavigate, ref: forwardedRef, unstable_dynamicOnHover, ...restProps } = props;
|
||
children = childrenProp;
|
||
if (legacyBehavior && (typeof children === 'string' || typeof children === 'number')) {
|
||
children = /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
|
||
children: children
|
||
});
|
||
}
|
||
const router = _react.default.useContext(_approutercontextsharedruntime.AppRouterContext);
|
||
const prefetchEnabled = prefetchProp !== false;
|
||
const fetchStrategy = prefetchProp !== false ? getFetchStrategyFromPrefetchProp(prefetchProp) : _types.FetchStrategy.PPR;
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
function createPropError(args) {
|
||
return Object.defineProperty(new Error(`Failed prop type: The prop \`${args.key}\` expects a ${args.expected} in \`<Link>\`, but got \`${args.actual}\` instead.` + (typeof window !== 'undefined' ? "\nOpen your browser's console to view the Component stack trace." : '')), "__NEXT_ERROR_CODE", {
|
||
value: "E319",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
// TypeScript trick for type-guarding:
|
||
const requiredPropsGuard = {
|
||
href: true
|
||
};
|
||
const requiredProps = Object.keys(requiredPropsGuard);
|
||
requiredProps.forEach((key)=>{
|
||
if (key === 'href') {
|
||
if (props[key] == null || typeof props[key] !== 'string' && typeof props[key] !== 'object') {
|
||
throw createPropError({
|
||
key,
|
||
expected: '`string` or `object`',
|
||
actual: props[key] === null ? 'null' : typeof props[key]
|
||
});
|
||
}
|
||
} else {
|
||
// TypeScript trick for type-guarding:
|
||
const _ = key;
|
||
}
|
||
});
|
||
// TypeScript trick for type-guarding:
|
||
const optionalPropsGuard = {
|
||
as: true,
|
||
replace: true,
|
||
scroll: true,
|
||
shallow: true,
|
||
passHref: true,
|
||
prefetch: true,
|
||
unstable_dynamicOnHover: true,
|
||
onClick: true,
|
||
onMouseEnter: true,
|
||
onTouchStart: true,
|
||
legacyBehavior: true,
|
||
onNavigate: true
|
||
};
|
||
const optionalProps = Object.keys(optionalPropsGuard);
|
||
optionalProps.forEach((key)=>{
|
||
const valType = typeof props[key];
|
||
if (key === 'as') {
|
||
if (props[key] && valType !== 'string' && valType !== 'object') {
|
||
throw createPropError({
|
||
key,
|
||
expected: '`string` or `object`',
|
||
actual: valType
|
||
});
|
||
}
|
||
} else if (key === 'onClick' || key === 'onMouseEnter' || key === 'onTouchStart' || key === 'onNavigate') {
|
||
if (props[key] && valType !== 'function') {
|
||
throw createPropError({
|
||
key,
|
||
expected: '`function`',
|
||
actual: valType
|
||
});
|
||
}
|
||
} else if (key === 'replace' || key === 'scroll' || key === 'shallow' || key === 'passHref' || key === 'legacyBehavior' || key === 'unstable_dynamicOnHover') {
|
||
if (props[key] != null && valType !== 'boolean') {
|
||
throw createPropError({
|
||
key,
|
||
expected: '`boolean`',
|
||
actual: valType
|
||
});
|
||
}
|
||
} else if (key === 'prefetch') {
|
||
if (props[key] != null && valType !== 'boolean' && props[key] !== 'auto') {
|
||
throw createPropError({
|
||
key,
|
||
expected: '`boolean | "auto"`',
|
||
actual: valType
|
||
});
|
||
}
|
||
} else {
|
||
// TypeScript trick for type-guarding:
|
||
const _ = key;
|
||
}
|
||
});
|
||
}
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (props.locale) {
|
||
(0, _warnonce.warnOnce)('The `locale` prop is not supported in `next/link` while using the `app` router. Read more about app router internalization: https://nextjs.org/docs/app/building-your-application/routing/internationalization');
|
||
}
|
||
if (!asProp) {
|
||
let href;
|
||
if (typeof hrefProp === 'string') {
|
||
href = hrefProp;
|
||
} else if (typeof hrefProp === 'object' && typeof hrefProp.pathname === 'string') {
|
||
href = hrefProp.pathname;
|
||
}
|
||
if (href) {
|
||
const hasDynamicSegment = href.split('/').some((segment)=>segment.startsWith('[') && segment.endsWith(']'));
|
||
if (hasDynamicSegment) {
|
||
throw Object.defineProperty(new Error(`Dynamic href \`${href}\` found in <Link> while using the \`/app\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href`), "__NEXT_ERROR_CODE", {
|
||
value: "E267",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
}
|
||
}
|
||
}
|
||
const { href, as } = _react.default.useMemo({
|
||
"LinkComponent.useMemo": ()=>{
|
||
const resolvedHref = formatStringOrUrl(hrefProp);
|
||
return {
|
||
href: resolvedHref,
|
||
as: asProp ? formatStringOrUrl(asProp) : resolvedHref
|
||
};
|
||
}
|
||
}["LinkComponent.useMemo"], [
|
||
hrefProp,
|
||
asProp
|
||
]);
|
||
// This will return the first child, if multiple are provided it will throw an error
|
||
let child;
|
||
if (legacyBehavior) {
|
||
if (children?.$$typeof === Symbol.for('react.lazy')) {
|
||
throw Object.defineProperty(new Error(`\`<Link legacyBehavior>\` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's \`<a>\` tag.`), "__NEXT_ERROR_CODE", {
|
||
value: "E863",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (onClick) {
|
||
console.warn(`"onClick" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`);
|
||
}
|
||
if (onMouseEnterProp) {
|
||
console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);
|
||
}
|
||
try {
|
||
child = _react.default.Children.only(children);
|
||
} catch (err) {
|
||
if (!children) {
|
||
throw Object.defineProperty(new Error(`No children were passed to <Link> with \`href\` of \`${hrefProp}\` but one child is required https://nextjs.org/docs/messages/link-no-children`), "__NEXT_ERROR_CODE", {
|
||
value: "E320",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
throw Object.defineProperty(new Error(`Multiple children were passed to <Link> with \`href\` of \`${hrefProp}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window !== 'undefined' ? " \nOpen your browser's console to view the Component stack trace." : '')), "__NEXT_ERROR_CODE", {
|
||
value: "E266",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
} else //TURBOPACK unreachable
|
||
;
|
||
} else {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (children?.type === 'a') {
|
||
throw Object.defineProperty(new Error('Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor'), "__NEXT_ERROR_CODE", {
|
||
value: "E209",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
}
|
||
}
|
||
const childRef = legacyBehavior ? child && typeof child === 'object' && child.ref : forwardedRef;
|
||
// Use a callback ref to attach an IntersectionObserver to the anchor tag on
|
||
// mount. In the future we will also use this to keep track of all the
|
||
// currently mounted <Link> instances, e.g. so we can re-prefetch them after
|
||
// a revalidation or refresh.
|
||
const observeLinkVisibilityOnMount = _react.default.useCallback({
|
||
"LinkComponent.useCallback[observeLinkVisibilityOnMount]": (element)=>{
|
||
if (router !== null) {
|
||
linkInstanceRef.current = (0, _links.mountLinkInstance)(element, href, router, fetchStrategy, prefetchEnabled, setOptimisticLinkStatus);
|
||
}
|
||
return ({
|
||
"LinkComponent.useCallback[observeLinkVisibilityOnMount]": ()=>{
|
||
if (linkInstanceRef.current) {
|
||
(0, _links.unmountLinkForCurrentNavigation)(linkInstanceRef.current);
|
||
linkInstanceRef.current = null;
|
||
}
|
||
(0, _links.unmountPrefetchableInstance)(element);
|
||
}
|
||
})["LinkComponent.useCallback[observeLinkVisibilityOnMount]"];
|
||
}
|
||
}["LinkComponent.useCallback[observeLinkVisibilityOnMount]"], [
|
||
prefetchEnabled,
|
||
href,
|
||
router,
|
||
fetchStrategy,
|
||
setOptimisticLinkStatus
|
||
]);
|
||
const mergedRef = (0, _usemergedref.useMergedRef)(observeLinkVisibilityOnMount, childRef);
|
||
const childProps = {
|
||
ref: mergedRef,
|
||
onClick (e) {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
if (!e) {
|
||
throw Object.defineProperty(new Error(`Component rendered inside next/link has to pass click event to "onClick" prop.`), "__NEXT_ERROR_CODE", {
|
||
value: "E312",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
}
|
||
if (!legacyBehavior && typeof onClick === 'function') {
|
||
onClick(e);
|
||
}
|
||
if (legacyBehavior && child.props && typeof child.props.onClick === 'function') {
|
||
child.props.onClick(e);
|
||
}
|
||
if (!router) {
|
||
return;
|
||
}
|
||
if (e.defaultPrevented) {
|
||
return;
|
||
}
|
||
linkClicked(e, href, as, linkInstanceRef, replace, scroll, onNavigate);
|
||
},
|
||
onMouseEnter (e) {
|
||
if (!legacyBehavior && typeof onMouseEnterProp === 'function') {
|
||
onMouseEnterProp(e);
|
||
}
|
||
if (legacyBehavior && child.props && typeof child.props.onMouseEnter === 'function') {
|
||
child.props.onMouseEnter(e);
|
||
}
|
||
if (!router) {
|
||
return;
|
||
}
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
return;
|
||
}
|
||
//TURBOPACK unreachable
|
||
;
|
||
const upgradeToDynamicPrefetch = undefined;
|
||
},
|
||
onTouchStart: ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : function onTouchStart(e) {
|
||
if (!legacyBehavior && typeof onTouchStartProp === 'function') {
|
||
onTouchStartProp(e);
|
||
}
|
||
if (legacyBehavior && child.props && typeof child.props.onTouchStart === 'function') {
|
||
child.props.onTouchStart(e);
|
||
}
|
||
if (!router) {
|
||
return;
|
||
}
|
||
if (!prefetchEnabled) {
|
||
return;
|
||
}
|
||
const upgradeToDynamicPrefetch = unstable_dynamicOnHover === true;
|
||
(0, _links.onNavigationIntent)(e.currentTarget, upgradeToDynamicPrefetch);
|
||
}
|
||
};
|
||
// If the url is absolute, we can bypass the logic to prepend the basePath.
|
||
if ((0, _utils.isAbsoluteUrl)(as)) {
|
||
childProps.href = as;
|
||
} else if (!legacyBehavior || passHref || child.type === 'a' && !('href' in child.props)) {
|
||
childProps.href = (0, _addbasepath.addBasePath)(as);
|
||
}
|
||
let link;
|
||
if (legacyBehavior) {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
(0, _erroronce.errorOnce)('`legacyBehavior` is deprecated and will be removed in a future ' + 'release. A codemod is available to upgrade your components:\n\n' + 'npx @next/codemod@latest new-link .\n\n' + 'Learn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components');
|
||
}
|
||
link = /*#__PURE__*/ _react.default.cloneElement(child, childProps);
|
||
} else {
|
||
link = /*#__PURE__*/ (0, _jsxruntime.jsx)("a", {
|
||
...restProps,
|
||
...childProps,
|
||
children: children
|
||
});
|
||
}
|
||
return /*#__PURE__*/ (0, _jsxruntime.jsx)(LinkStatusContext.Provider, {
|
||
value: linkStatus,
|
||
children: link
|
||
});
|
||
}
|
||
const LinkStatusContext = /*#__PURE__*/ (0, _react.createContext)(_links.IDLE_LINK_STATUS);
|
||
const useLinkStatus = ()=>{
|
||
return (0, _react.useContext)(LinkStatusContext);
|
||
};
|
||
function getFetchStrategyFromPrefetchProp(prefetchProp) {
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
else {
|
||
return prefetchProp === null || prefetchProp === 'auto' ? _types.FetchStrategy.PPR : // (although invalid values should've been filtered out by prop validation in dev)
|
||
_types.FetchStrategy.Full;
|
||
}
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=link.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"mergeClasses",
|
||
()=>mergeClasses,
|
||
"toKebabCase",
|
||
()=>toKebabCase
|
||
]);
|
||
const toKebabCase = (string)=>string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
||
const mergeClasses = (...classes)=>classes.filter((className, index, array)=>{
|
||
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
||
}).join(" ").trim();
|
||
;
|
||
//# sourceMappingURL=utils.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/defaultAttributes.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>defaultAttributes
|
||
]);
|
||
var defaultAttributes = {
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
width: 24,
|
||
height: 24,
|
||
viewBox: "0 0 24 24",
|
||
fill: "none",
|
||
stroke: "currentColor",
|
||
strokeWidth: 2,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
};
|
||
;
|
||
//# sourceMappingURL=defaultAttributes.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Icon
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$defaultAttributes$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/defaultAttributes.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const Icon = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"])(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>{
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createElement"])("svg", {
|
||
ref,
|
||
...__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$defaultAttributes$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"],
|
||
width: size,
|
||
height: size,
|
||
stroke: color,
|
||
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
||
className: (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["mergeClasses"])("lucide", className),
|
||
...rest
|
||
}, [
|
||
...iconNode.map(([tag, attrs])=>(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createElement"])(tag, attrs)),
|
||
...Array.isArray(children) ? children : [
|
||
children
|
||
]
|
||
]);
|
||
});
|
||
;
|
||
//# sourceMappingURL=Icon.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>createLucideIcon
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/shared/src/utils.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$Icon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/Icon.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const createLucideIcon = (iconName, iconNode)=>{
|
||
const Component = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"])(({ className, ...props }, ref)=>(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createElement"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$Icon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"], {
|
||
ref,
|
||
iconNode,
|
||
className: (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["mergeClasses"])(`lucide-${(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["toKebabCase"])(iconName)}`, className),
|
||
...props
|
||
}));
|
||
Component.displayName = `${iconName}`;
|
||
return Component;
|
||
};
|
||
;
|
||
//# sourceMappingURL=createLucideIcon.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/book-open.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>BookOpen
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const BookOpen = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("BookOpen", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M12 7v14",
|
||
key: "1akyts"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",
|
||
key: "ruj8y"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=book-open.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/book-open.js [app-client] (ecmascript) <export default as BookOpen>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"BookOpen",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$book$2d$open$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$book$2d$open$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/book-open.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Search
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const Search = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("Search", [
|
||
[
|
||
"circle",
|
||
{
|
||
cx: "11",
|
||
cy: "11",
|
||
r: "8",
|
||
key: "4ej97u"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "m21 21-4.3-4.3",
|
||
key: "1qie3q"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=search.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js [app-client] (ecmascript) <export default as Search>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Search",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$search$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$search$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/search.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/bell.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Bell
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const Bell = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("Bell", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",
|
||
key: "1qo2s2"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M10.3 21a1.94 1.94 0 0 0 3.4 0",
|
||
key: "qgo35s"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=bell.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/bell.js [app-client] (ecmascript) <export default as Bell>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Bell",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$bell$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$bell$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/bell.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Settings
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const Settings = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("Settings", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",
|
||
key: "1qme2f"
|
||
}
|
||
],
|
||
[
|
||
"circle",
|
||
{
|
||
cx: "12",
|
||
cy: "12",
|
||
r: "3",
|
||
key: "1v7zrd"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=settings.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.js [app-client] (ecmascript) <export default as Settings>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Settings",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$settings$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$settings$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/settings.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/compose-refs/src/composeRefs.tsx
|
||
__turbopack_context__.s([
|
||
"composeRefs",
|
||
()=>composeRefs,
|
||
"useComposedRefs",
|
||
()=>useComposedRefs
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
;
|
||
function setRef(ref, value) {
|
||
if (typeof ref === "function") {
|
||
return ref(value);
|
||
} else if (ref !== null && ref !== void 0) {
|
||
ref.current = value;
|
||
}
|
||
}
|
||
function composeRefs(...refs) {
|
||
return (node)=>{
|
||
let hasCleanup = false;
|
||
const cleanups = refs.map((ref)=>{
|
||
const cleanup = setRef(ref, node);
|
||
if (!hasCleanup && typeof cleanup == "function") {
|
||
hasCleanup = true;
|
||
}
|
||
return cleanup;
|
||
});
|
||
if (hasCleanup) {
|
||
return ()=>{
|
||
for(let i = 0; i < cleanups.length; i++){
|
||
const cleanup = cleanups[i];
|
||
if (typeof cleanup == "function") {
|
||
cleanup();
|
||
} else {
|
||
setRef(refs[i], null);
|
||
}
|
||
}
|
||
};
|
||
}
|
||
};
|
||
}
|
||
function useComposedRefs(...refs) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useCallback"](composeRefs(...refs), refs);
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-slot@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/slot/src/Slot.tsx
|
||
__turbopack_context__.s([
|
||
"Root",
|
||
()=>Root,
|
||
"Slot",
|
||
()=>Slot,
|
||
"Slottable",
|
||
()=>Slottable
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$compose$2d$refs$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$compose$2d$refs$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
var Slot = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { children, ...slotProps } = props;
|
||
const childrenArray = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Children"].toArray(children);
|
||
const slottable = childrenArray.find(isSlottable);
|
||
if (slottable) {
|
||
const newElement = slottable.props.children;
|
||
const newChildren = childrenArray.map((child)=>{
|
||
if (child === slottable) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Children"].count(newElement) > 1) return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Children"].only(null);
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["isValidElement"](newElement) ? newElement.props.children : null;
|
||
} else {
|
||
return child;
|
||
}
|
||
});
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(SlotClone, {
|
||
...slotProps,
|
||
ref: forwardedRef,
|
||
children: __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["isValidElement"](newElement) ? __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["cloneElement"](newElement, void 0, newChildren) : null
|
||
});
|
||
}
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(SlotClone, {
|
||
...slotProps,
|
||
ref: forwardedRef,
|
||
children
|
||
});
|
||
});
|
||
Slot.displayName = "Slot";
|
||
var SlotClone = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { children, ...slotProps } = props;
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["isValidElement"](children)) {
|
||
const childrenRef = getElementRef(children);
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["cloneElement"](children, {
|
||
...mergeProps(slotProps, children.props),
|
||
// @ts-ignore
|
||
ref: forwardedRef ? (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$compose$2d$refs$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$compose$2d$refs$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["composeRefs"])(forwardedRef, childrenRef) : childrenRef
|
||
});
|
||
}
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Children"].count(children) > 1 ? __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Children"].only(null) : null;
|
||
});
|
||
SlotClone.displayName = "SlotClone";
|
||
var Slottable = ({ children })=>{
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Fragment"], {
|
||
children
|
||
});
|
||
};
|
||
function isSlottable(child) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["isValidElement"](child) && child.type === Slottable;
|
||
}
|
||
function mergeProps(slotProps, childProps) {
|
||
const overrideProps = {
|
||
...childProps
|
||
};
|
||
for(const propName in childProps){
|
||
const slotPropValue = slotProps[propName];
|
||
const childPropValue = childProps[propName];
|
||
const isHandler = /^on[A-Z]/.test(propName);
|
||
if (isHandler) {
|
||
if (slotPropValue && childPropValue) {
|
||
overrideProps[propName] = (...args)=>{
|
||
childPropValue(...args);
|
||
slotPropValue(...args);
|
||
};
|
||
} else if (slotPropValue) {
|
||
overrideProps[propName] = slotPropValue;
|
||
}
|
||
} else if (propName === "style") {
|
||
overrideProps[propName] = {
|
||
...slotPropValue,
|
||
...childPropValue
|
||
};
|
||
} else if (propName === "className") {
|
||
overrideProps[propName] = [
|
||
slotPropValue,
|
||
childPropValue
|
||
].filter(Boolean).join(" ");
|
||
}
|
||
}
|
||
return {
|
||
...slotProps,
|
||
...overrideProps
|
||
};
|
||
}
|
||
function getElementRef(element) {
|
||
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
||
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||
if (mayWarn) {
|
||
return element.ref;
|
||
}
|
||
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
||
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||
if (mayWarn) {
|
||
return element.props.ref;
|
||
}
|
||
return element.props.ref || element.ref;
|
||
}
|
||
var Root = Slot;
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"clsx",
|
||
()=>clsx,
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
function r(e) {
|
||
var t, f, n = "";
|
||
if ("string" == typeof e || "number" == typeof e) n += e;
|
||
else if ("object" == typeof e) if (Array.isArray(e)) {
|
||
var o = e.length;
|
||
for(t = 0; t < o; t++)e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
||
} else for(f in e)e[f] && (n && (n += " "), n += f);
|
||
return n;
|
||
}
|
||
function clsx() {
|
||
for(var e, t, f = 0, n = "", o = arguments.length; f < o; f++)(e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
||
return n;
|
||
}
|
||
const __TURBOPACK__default__export__ = clsx;
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* Copyright 2022 Joe Bell. All rights reserved.
|
||
*
|
||
* This file is licensed to you under the Apache License, Version 2.0
|
||
* (the "License"); you may not use this file except in compliance with the
|
||
* License. You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
* WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
|
||
* License for the specific language governing permissions and limitations under
|
||
* the License.
|
||
*/ __turbopack_context__.s([
|
||
"cva",
|
||
()=>cva,
|
||
"cx",
|
||
()=>cx
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$clsx$40$2$2e$1$2e$1$2f$node_modules$2f$clsx$2f$dist$2f$clsx$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs [app-client] (ecmascript)");
|
||
;
|
||
const falsyToString = (value)=>typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
||
const cx = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$clsx$40$2$2e$1$2e$1$2f$node_modules$2f$clsx$2f$dist$2f$clsx$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["clsx"];
|
||
const cva = (base, config)=>(props)=>{
|
||
var _config_compoundVariants;
|
||
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
||
const { variants, defaultVariants } = config;
|
||
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
||
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
||
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
||
if (variantProp === null) return null;
|
||
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
||
return variants[variant][variantKey];
|
||
});
|
||
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
||
let [key, value] = param;
|
||
if (value === undefined) {
|
||
return acc;
|
||
}
|
||
acc[key] = value;
|
||
return acc;
|
||
}, {});
|
||
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{
|
||
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
||
return Object.entries(compoundVariantOptions).every((param)=>{
|
||
let [key, value] = param;
|
||
return Array.isArray(value) ? value.includes({
|
||
...defaultVariants,
|
||
...propsWithoutUndefined
|
||
}[key]) : ({
|
||
...defaultVariants,
|
||
...propsWithoutUndefined
|
||
})[key] === value;
|
||
}) ? [
|
||
...acc,
|
||
cvClass,
|
||
cvClassName
|
||
] : acc;
|
||
}, []);
|
||
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
||
};
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/tailwind-merge@2.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"createTailwindMerge",
|
||
()=>createTailwindMerge,
|
||
"extendTailwindMerge",
|
||
()=>extendTailwindMerge,
|
||
"fromTheme",
|
||
()=>fromTheme,
|
||
"getDefaultConfig",
|
||
()=>getDefaultConfig,
|
||
"mergeConfigs",
|
||
()=>mergeConfigs,
|
||
"twJoin",
|
||
()=>twJoin,
|
||
"twMerge",
|
||
()=>twMerge,
|
||
"validators",
|
||
()=>validators
|
||
]);
|
||
const CLASS_PART_SEPARATOR = '-';
|
||
const createClassGroupUtils = (config)=>{
|
||
const classMap = createClassMap(config);
|
||
const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
|
||
const getClassGroupId = (className)=>{
|
||
const classParts = className.split(CLASS_PART_SEPARATOR);
|
||
// Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.
|
||
if (classParts[0] === '' && classParts.length !== 1) {
|
||
classParts.shift();
|
||
}
|
||
return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
|
||
};
|
||
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier)=>{
|
||
const conflicts = conflictingClassGroups[classGroupId] || [];
|
||
if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
|
||
return [
|
||
...conflicts,
|
||
...conflictingClassGroupModifiers[classGroupId]
|
||
];
|
||
}
|
||
return conflicts;
|
||
};
|
||
return {
|
||
getClassGroupId,
|
||
getConflictingClassGroupIds
|
||
};
|
||
};
|
||
const getGroupRecursive = (classParts, classPartObject)=>{
|
||
if (classParts.length === 0) {
|
||
return classPartObject.classGroupId;
|
||
}
|
||
const currentClassPart = classParts[0];
|
||
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
||
const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;
|
||
if (classGroupFromNextClassPart) {
|
||
return classGroupFromNextClassPart;
|
||
}
|
||
if (classPartObject.validators.length === 0) {
|
||
return undefined;
|
||
}
|
||
const classRest = classParts.join(CLASS_PART_SEPARATOR);
|
||
return classPartObject.validators.find(({ validator })=>validator(classRest))?.classGroupId;
|
||
};
|
||
const arbitraryPropertyRegex = /^\[(.+)\]$/;
|
||
const getGroupIdForArbitraryProperty = (className)=>{
|
||
if (arbitraryPropertyRegex.test(className)) {
|
||
const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
|
||
const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));
|
||
if (property) {
|
||
// I use two dots here because one dot is used as prefix for class groups in plugins
|
||
return 'arbitrary..' + property;
|
||
}
|
||
}
|
||
};
|
||
/**
|
||
* Exported for testing only
|
||
*/ const createClassMap = (config)=>{
|
||
const { theme, prefix } = config;
|
||
const classMap = {
|
||
nextPart: new Map(),
|
||
validators: []
|
||
};
|
||
const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
|
||
prefixedClassGroupEntries.forEach(([classGroupId, classGroup])=>{
|
||
processClassesRecursively(classGroup, classMap, classGroupId, theme);
|
||
});
|
||
return classMap;
|
||
};
|
||
const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme)=>{
|
||
classGroup.forEach((classDefinition)=>{
|
||
if (typeof classDefinition === 'string') {
|
||
const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
|
||
classPartObjectToEdit.classGroupId = classGroupId;
|
||
return;
|
||
}
|
||
if (typeof classDefinition === 'function') {
|
||
if (isThemeGetter(classDefinition)) {
|
||
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
||
return;
|
||
}
|
||
classPartObject.validators.push({
|
||
validator: classDefinition,
|
||
classGroupId
|
||
});
|
||
return;
|
||
}
|
||
Object.entries(classDefinition).forEach(([key, classGroup])=>{
|
||
processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);
|
||
});
|
||
});
|
||
};
|
||
const getPart = (classPartObject, path)=>{
|
||
let currentClassPartObject = classPartObject;
|
||
path.split(CLASS_PART_SEPARATOR).forEach((pathPart)=>{
|
||
if (!currentClassPartObject.nextPart.has(pathPart)) {
|
||
currentClassPartObject.nextPart.set(pathPart, {
|
||
nextPart: new Map(),
|
||
validators: []
|
||
});
|
||
}
|
||
currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
|
||
});
|
||
return currentClassPartObject;
|
||
};
|
||
const isThemeGetter = (func)=>func.isThemeGetter;
|
||
const getPrefixedClassGroupEntries = (classGroupEntries, prefix)=>{
|
||
if (!prefix) {
|
||
return classGroupEntries;
|
||
}
|
||
return classGroupEntries.map(([classGroupId, classGroup])=>{
|
||
const prefixedClassGroup = classGroup.map((classDefinition)=>{
|
||
if (typeof classDefinition === 'string') {
|
||
return prefix + classDefinition;
|
||
}
|
||
if (typeof classDefinition === 'object') {
|
||
return Object.fromEntries(Object.entries(classDefinition).map(([key, value])=>[
|
||
prefix + key,
|
||
value
|
||
]));
|
||
}
|
||
return classDefinition;
|
||
});
|
||
return [
|
||
classGroupId,
|
||
prefixedClassGroup
|
||
];
|
||
});
|
||
};
|
||
// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance
|
||
const createLruCache = (maxCacheSize)=>{
|
||
if (maxCacheSize < 1) {
|
||
return {
|
||
get: ()=>undefined,
|
||
set: ()=>{}
|
||
};
|
||
}
|
||
let cacheSize = 0;
|
||
let cache = new Map();
|
||
let previousCache = new Map();
|
||
const update = (key, value)=>{
|
||
cache.set(key, value);
|
||
cacheSize++;
|
||
if (cacheSize > maxCacheSize) {
|
||
cacheSize = 0;
|
||
previousCache = cache;
|
||
cache = new Map();
|
||
}
|
||
};
|
||
return {
|
||
get (key) {
|
||
let value = cache.get(key);
|
||
if (value !== undefined) {
|
||
return value;
|
||
}
|
||
if ((value = previousCache.get(key)) !== undefined) {
|
||
update(key, value);
|
||
return value;
|
||
}
|
||
},
|
||
set (key, value) {
|
||
if (cache.has(key)) {
|
||
cache.set(key, value);
|
||
} else {
|
||
update(key, value);
|
||
}
|
||
}
|
||
};
|
||
};
|
||
const IMPORTANT_MODIFIER = '!';
|
||
const createParseClassName = (config)=>{
|
||
const { separator, experimentalParseClassName } = config;
|
||
const isSeparatorSingleCharacter = separator.length === 1;
|
||
const firstSeparatorCharacter = separator[0];
|
||
const separatorLength = separator.length;
|
||
// parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
||
const parseClassName = (className)=>{
|
||
const modifiers = [];
|
||
let bracketDepth = 0;
|
||
let modifierStart = 0;
|
||
let postfixModifierPosition;
|
||
for(let index = 0; index < className.length; index++){
|
||
let currentCharacter = className[index];
|
||
if (bracketDepth === 0) {
|
||
if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
|
||
modifiers.push(className.slice(modifierStart, index));
|
||
modifierStart = index + separatorLength;
|
||
continue;
|
||
}
|
||
if (currentCharacter === '/') {
|
||
postfixModifierPosition = index;
|
||
continue;
|
||
}
|
||
}
|
||
if (currentCharacter === '[') {
|
||
bracketDepth++;
|
||
} else if (currentCharacter === ']') {
|
||
bracketDepth--;
|
||
}
|
||
}
|
||
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
|
||
const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
|
||
const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
|
||
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
|
||
return {
|
||
modifiers,
|
||
hasImportantModifier,
|
||
baseClassName,
|
||
maybePostfixModifierPosition
|
||
};
|
||
};
|
||
if (experimentalParseClassName) {
|
||
return (className)=>experimentalParseClassName({
|
||
className,
|
||
parseClassName
|
||
});
|
||
}
|
||
return parseClassName;
|
||
};
|
||
/**
|
||
* Sorts modifiers according to following schema:
|
||
* - Predefined modifiers are sorted alphabetically
|
||
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
|
||
*/ const sortModifiers = (modifiers)=>{
|
||
if (modifiers.length <= 1) {
|
||
return modifiers;
|
||
}
|
||
const sortedModifiers = [];
|
||
let unsortedModifiers = [];
|
||
modifiers.forEach((modifier)=>{
|
||
const isArbitraryVariant = modifier[0] === '[';
|
||
if (isArbitraryVariant) {
|
||
sortedModifiers.push(...unsortedModifiers.sort(), modifier);
|
||
unsortedModifiers = [];
|
||
} else {
|
||
unsortedModifiers.push(modifier);
|
||
}
|
||
});
|
||
sortedModifiers.push(...unsortedModifiers.sort());
|
||
return sortedModifiers;
|
||
};
|
||
const createConfigUtils = (config)=>({
|
||
cache: createLruCache(config.cacheSize),
|
||
parseClassName: createParseClassName(config),
|
||
...createClassGroupUtils(config)
|
||
});
|
||
const SPLIT_CLASSES_REGEX = /\s+/;
|
||
const mergeClassList = (classList, configUtils)=>{
|
||
const { parseClassName, getClassGroupId, getConflictingClassGroupIds } = configUtils;
|
||
/**
|
||
* Set of classGroupIds in following format:
|
||
* `{importantModifier}{variantModifiers}{classGroupId}`
|
||
* @example 'float'
|
||
* @example 'hover:focus:bg-color'
|
||
* @example 'md:!pr'
|
||
*/ const classGroupsInConflict = [];
|
||
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
||
let result = '';
|
||
for(let index = classNames.length - 1; index >= 0; index -= 1){
|
||
const originalClassName = classNames[index];
|
||
const { modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
|
||
let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
|
||
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
||
if (!classGroupId) {
|
||
if (!hasPostfixModifier) {
|
||
// Not a Tailwind class
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
continue;
|
||
}
|
||
classGroupId = getClassGroupId(baseClassName);
|
||
if (!classGroupId) {
|
||
// Not a Tailwind class
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
continue;
|
||
}
|
||
hasPostfixModifier = false;
|
||
}
|
||
const variantModifier = sortModifiers(modifiers).join(':');
|
||
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
||
const classId = modifierId + classGroupId;
|
||
if (classGroupsInConflict.includes(classId)) {
|
||
continue;
|
||
}
|
||
classGroupsInConflict.push(classId);
|
||
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
||
for(let i = 0; i < conflictGroups.length; ++i){
|
||
const group = conflictGroups[i];
|
||
classGroupsInConflict.push(modifierId + group);
|
||
}
|
||
// Tailwind class not in conflict
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
||
*
|
||
* Specifically:
|
||
* - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
|
||
* - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
|
||
*
|
||
* Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
||
*/ function twJoin() {
|
||
let index = 0;
|
||
let argument;
|
||
let resolvedValue;
|
||
let string = '';
|
||
while(index < arguments.length){
|
||
if (argument = arguments[index++]) {
|
||
if (resolvedValue = toValue(argument)) {
|
||
string && (string += ' ');
|
||
string += resolvedValue;
|
||
}
|
||
}
|
||
}
|
||
return string;
|
||
}
|
||
const toValue = (mix)=>{
|
||
if (typeof mix === 'string') {
|
||
return mix;
|
||
}
|
||
let resolvedValue;
|
||
let string = '';
|
||
for(let k = 0; k < mix.length; k++){
|
||
if (mix[k]) {
|
||
if (resolvedValue = toValue(mix[k])) {
|
||
string && (string += ' ');
|
||
string += resolvedValue;
|
||
}
|
||
}
|
||
}
|
||
return string;
|
||
};
|
||
function createTailwindMerge(createConfigFirst, ...createConfigRest) {
|
||
let configUtils;
|
||
let cacheGet;
|
||
let cacheSet;
|
||
let functionToCall = initTailwindMerge;
|
||
function initTailwindMerge(classList) {
|
||
const config = createConfigRest.reduce((previousConfig, createConfigCurrent)=>createConfigCurrent(previousConfig), createConfigFirst());
|
||
configUtils = createConfigUtils(config);
|
||
cacheGet = configUtils.cache.get;
|
||
cacheSet = configUtils.cache.set;
|
||
functionToCall = tailwindMerge;
|
||
return tailwindMerge(classList);
|
||
}
|
||
function tailwindMerge(classList) {
|
||
const cachedResult = cacheGet(classList);
|
||
if (cachedResult) {
|
||
return cachedResult;
|
||
}
|
||
const result = mergeClassList(classList, configUtils);
|
||
cacheSet(classList, result);
|
||
return result;
|
||
}
|
||
return function callTailwindMerge() {
|
||
return functionToCall(twJoin.apply(null, arguments));
|
||
};
|
||
}
|
||
const fromTheme = (key)=>{
|
||
const themeGetter = (theme)=>theme[key] || [];
|
||
themeGetter.isThemeGetter = true;
|
||
return themeGetter;
|
||
};
|
||
const arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
|
||
const fractionRegex = /^\d+\/\d+$/;
|
||
const stringLengths = /*#__PURE__*/ new Set([
|
||
'px',
|
||
'full',
|
||
'screen'
|
||
]);
|
||
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
||
const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
||
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
||
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
|
||
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
||
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
||
const isLength = (value)=>isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
|
||
const isArbitraryLength = (value)=>getIsArbitraryValue(value, 'length', isLengthOnly);
|
||
const isNumber = (value)=>Boolean(value) && !Number.isNaN(Number(value));
|
||
const isArbitraryNumber = (value)=>getIsArbitraryValue(value, 'number', isNumber);
|
||
const isInteger = (value)=>Boolean(value) && Number.isInteger(Number(value));
|
||
const isPercent = (value)=>value.endsWith('%') && isNumber(value.slice(0, -1));
|
||
const isArbitraryValue = (value)=>arbitraryValueRegex.test(value);
|
||
const isTshirtSize = (value)=>tshirtUnitRegex.test(value);
|
||
const sizeLabels = /*#__PURE__*/ new Set([
|
||
'length',
|
||
'size',
|
||
'percentage'
|
||
]);
|
||
const isArbitrarySize = (value)=>getIsArbitraryValue(value, sizeLabels, isNever);
|
||
const isArbitraryPosition = (value)=>getIsArbitraryValue(value, 'position', isNever);
|
||
const imageLabels = /*#__PURE__*/ new Set([
|
||
'image',
|
||
'url'
|
||
]);
|
||
const isArbitraryImage = (value)=>getIsArbitraryValue(value, imageLabels, isImage);
|
||
const isArbitraryShadow = (value)=>getIsArbitraryValue(value, '', isShadow);
|
||
const isAny = ()=>true;
|
||
const getIsArbitraryValue = (value, label, testValue)=>{
|
||
const result = arbitraryValueRegex.exec(value);
|
||
if (result) {
|
||
if (result[1]) {
|
||
return typeof label === 'string' ? result[1] === label : label.has(result[1]);
|
||
}
|
||
return testValue(result[2]);
|
||
}
|
||
return false;
|
||
};
|
||
const isLengthOnly = (value)=>// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
||
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
||
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
||
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
|
||
const isNever = ()=>false;
|
||
const isShadow = (value)=>shadowRegex.test(value);
|
||
const isImage = (value)=>imageRegex.test(value);
|
||
const validators = /*#__PURE__*/ Object.defineProperty({
|
||
__proto__: null,
|
||
isAny,
|
||
isArbitraryImage,
|
||
isArbitraryLength,
|
||
isArbitraryNumber,
|
||
isArbitraryPosition,
|
||
isArbitraryShadow,
|
||
isArbitrarySize,
|
||
isArbitraryValue,
|
||
isInteger,
|
||
isLength,
|
||
isNumber,
|
||
isPercent,
|
||
isTshirtSize
|
||
}, Symbol.toStringTag, {
|
||
value: 'Module'
|
||
});
|
||
const getDefaultConfig = ()=>{
|
||
const colors = fromTheme('colors');
|
||
const spacing = fromTheme('spacing');
|
||
const blur = fromTheme('blur');
|
||
const brightness = fromTheme('brightness');
|
||
const borderColor = fromTheme('borderColor');
|
||
const borderRadius = fromTheme('borderRadius');
|
||
const borderSpacing = fromTheme('borderSpacing');
|
||
const borderWidth = fromTheme('borderWidth');
|
||
const contrast = fromTheme('contrast');
|
||
const grayscale = fromTheme('grayscale');
|
||
const hueRotate = fromTheme('hueRotate');
|
||
const invert = fromTheme('invert');
|
||
const gap = fromTheme('gap');
|
||
const gradientColorStops = fromTheme('gradientColorStops');
|
||
const gradientColorStopPositions = fromTheme('gradientColorStopPositions');
|
||
const inset = fromTheme('inset');
|
||
const margin = fromTheme('margin');
|
||
const opacity = fromTheme('opacity');
|
||
const padding = fromTheme('padding');
|
||
const saturate = fromTheme('saturate');
|
||
const scale = fromTheme('scale');
|
||
const sepia = fromTheme('sepia');
|
||
const skew = fromTheme('skew');
|
||
const space = fromTheme('space');
|
||
const translate = fromTheme('translate');
|
||
const getOverscroll = ()=>[
|
||
'auto',
|
||
'contain',
|
||
'none'
|
||
];
|
||
const getOverflow = ()=>[
|
||
'auto',
|
||
'hidden',
|
||
'clip',
|
||
'visible',
|
||
'scroll'
|
||
];
|
||
const getSpacingWithAutoAndArbitrary = ()=>[
|
||
'auto',
|
||
isArbitraryValue,
|
||
spacing
|
||
];
|
||
const getSpacingWithArbitrary = ()=>[
|
||
isArbitraryValue,
|
||
spacing
|
||
];
|
||
const getLengthWithEmptyAndArbitrary = ()=>[
|
||
'',
|
||
isLength,
|
||
isArbitraryLength
|
||
];
|
||
const getNumberWithAutoAndArbitrary = ()=>[
|
||
'auto',
|
||
isNumber,
|
||
isArbitraryValue
|
||
];
|
||
const getPositions = ()=>[
|
||
'bottom',
|
||
'center',
|
||
'left',
|
||
'left-bottom',
|
||
'left-top',
|
||
'right',
|
||
'right-bottom',
|
||
'right-top',
|
||
'top'
|
||
];
|
||
const getLineStyles = ()=>[
|
||
'solid',
|
||
'dashed',
|
||
'dotted',
|
||
'double',
|
||
'none'
|
||
];
|
||
const getBlendModes = ()=>[
|
||
'normal',
|
||
'multiply',
|
||
'screen',
|
||
'overlay',
|
||
'darken',
|
||
'lighten',
|
||
'color-dodge',
|
||
'color-burn',
|
||
'hard-light',
|
||
'soft-light',
|
||
'difference',
|
||
'exclusion',
|
||
'hue',
|
||
'saturation',
|
||
'color',
|
||
'luminosity'
|
||
];
|
||
const getAlign = ()=>[
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'between',
|
||
'around',
|
||
'evenly',
|
||
'stretch'
|
||
];
|
||
const getZeroAndEmpty = ()=>[
|
||
'',
|
||
'0',
|
||
isArbitraryValue
|
||
];
|
||
const getBreaks = ()=>[
|
||
'auto',
|
||
'avoid',
|
||
'all',
|
||
'avoid-page',
|
||
'page',
|
||
'left',
|
||
'right',
|
||
'column'
|
||
];
|
||
const getNumberAndArbitrary = ()=>[
|
||
isNumber,
|
||
isArbitraryValue
|
||
];
|
||
return {
|
||
cacheSize: 500,
|
||
separator: ':',
|
||
theme: {
|
||
colors: [
|
||
isAny
|
||
],
|
||
spacing: [
|
||
isLength,
|
||
isArbitraryLength
|
||
],
|
||
blur: [
|
||
'none',
|
||
'',
|
||
isTshirtSize,
|
||
isArbitraryValue
|
||
],
|
||
brightness: getNumberAndArbitrary(),
|
||
borderColor: [
|
||
colors
|
||
],
|
||
borderRadius: [
|
||
'none',
|
||
'',
|
||
'full',
|
||
isTshirtSize,
|
||
isArbitraryValue
|
||
],
|
||
borderSpacing: getSpacingWithArbitrary(),
|
||
borderWidth: getLengthWithEmptyAndArbitrary(),
|
||
contrast: getNumberAndArbitrary(),
|
||
grayscale: getZeroAndEmpty(),
|
||
hueRotate: getNumberAndArbitrary(),
|
||
invert: getZeroAndEmpty(),
|
||
gap: getSpacingWithArbitrary(),
|
||
gradientColorStops: [
|
||
colors
|
||
],
|
||
gradientColorStopPositions: [
|
||
isPercent,
|
||
isArbitraryLength
|
||
],
|
||
inset: getSpacingWithAutoAndArbitrary(),
|
||
margin: getSpacingWithAutoAndArbitrary(),
|
||
opacity: getNumberAndArbitrary(),
|
||
padding: getSpacingWithArbitrary(),
|
||
saturate: getNumberAndArbitrary(),
|
||
scale: getNumberAndArbitrary(),
|
||
sepia: getZeroAndEmpty(),
|
||
skew: getNumberAndArbitrary(),
|
||
space: getSpacingWithArbitrary(),
|
||
translate: getSpacingWithArbitrary()
|
||
},
|
||
classGroups: {
|
||
// Layout
|
||
/**
|
||
* Aspect Ratio
|
||
* @see https://tailwindcss.com/docs/aspect-ratio
|
||
*/ aspect: [
|
||
{
|
||
aspect: [
|
||
'auto',
|
||
'square',
|
||
'video',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Container
|
||
* @see https://tailwindcss.com/docs/container
|
||
*/ container: [
|
||
'container'
|
||
],
|
||
/**
|
||
* Columns
|
||
* @see https://tailwindcss.com/docs/columns
|
||
*/ columns: [
|
||
{
|
||
columns: [
|
||
isTshirtSize
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Break After
|
||
* @see https://tailwindcss.com/docs/break-after
|
||
*/ 'break-after': [
|
||
{
|
||
'break-after': getBreaks()
|
||
}
|
||
],
|
||
/**
|
||
* Break Before
|
||
* @see https://tailwindcss.com/docs/break-before
|
||
*/ 'break-before': [
|
||
{
|
||
'break-before': getBreaks()
|
||
}
|
||
],
|
||
/**
|
||
* Break Inside
|
||
* @see https://tailwindcss.com/docs/break-inside
|
||
*/ 'break-inside': [
|
||
{
|
||
'break-inside': [
|
||
'auto',
|
||
'avoid',
|
||
'avoid-page',
|
||
'avoid-column'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Box Decoration Break
|
||
* @see https://tailwindcss.com/docs/box-decoration-break
|
||
*/ 'box-decoration': [
|
||
{
|
||
'box-decoration': [
|
||
'slice',
|
||
'clone'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Box Sizing
|
||
* @see https://tailwindcss.com/docs/box-sizing
|
||
*/ box: [
|
||
{
|
||
box: [
|
||
'border',
|
||
'content'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Display
|
||
* @see https://tailwindcss.com/docs/display
|
||
*/ display: [
|
||
'block',
|
||
'inline-block',
|
||
'inline',
|
||
'flex',
|
||
'inline-flex',
|
||
'table',
|
||
'inline-table',
|
||
'table-caption',
|
||
'table-cell',
|
||
'table-column',
|
||
'table-column-group',
|
||
'table-footer-group',
|
||
'table-header-group',
|
||
'table-row-group',
|
||
'table-row',
|
||
'flow-root',
|
||
'grid',
|
||
'inline-grid',
|
||
'contents',
|
||
'list-item',
|
||
'hidden'
|
||
],
|
||
/**
|
||
* Floats
|
||
* @see https://tailwindcss.com/docs/float
|
||
*/ float: [
|
||
{
|
||
float: [
|
||
'right',
|
||
'left',
|
||
'none',
|
||
'start',
|
||
'end'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Clear
|
||
* @see https://tailwindcss.com/docs/clear
|
||
*/ clear: [
|
||
{
|
||
clear: [
|
||
'left',
|
||
'right',
|
||
'both',
|
||
'none',
|
||
'start',
|
||
'end'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Isolation
|
||
* @see https://tailwindcss.com/docs/isolation
|
||
*/ isolation: [
|
||
'isolate',
|
||
'isolation-auto'
|
||
],
|
||
/**
|
||
* Object Fit
|
||
* @see https://tailwindcss.com/docs/object-fit
|
||
*/ 'object-fit': [
|
||
{
|
||
object: [
|
||
'contain',
|
||
'cover',
|
||
'fill',
|
||
'none',
|
||
'scale-down'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Object Position
|
||
* @see https://tailwindcss.com/docs/object-position
|
||
*/ 'object-position': [
|
||
{
|
||
object: [
|
||
...getPositions(),
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Overflow
|
||
* @see https://tailwindcss.com/docs/overflow
|
||
*/ overflow: [
|
||
{
|
||
overflow: getOverflow()
|
||
}
|
||
],
|
||
/**
|
||
* Overflow X
|
||
* @see https://tailwindcss.com/docs/overflow
|
||
*/ 'overflow-x': [
|
||
{
|
||
'overflow-x': getOverflow()
|
||
}
|
||
],
|
||
/**
|
||
* Overflow Y
|
||
* @see https://tailwindcss.com/docs/overflow
|
||
*/ 'overflow-y': [
|
||
{
|
||
'overflow-y': getOverflow()
|
||
}
|
||
],
|
||
/**
|
||
* Overscroll Behavior
|
||
* @see https://tailwindcss.com/docs/overscroll-behavior
|
||
*/ overscroll: [
|
||
{
|
||
overscroll: getOverscroll()
|
||
}
|
||
],
|
||
/**
|
||
* Overscroll Behavior X
|
||
* @see https://tailwindcss.com/docs/overscroll-behavior
|
||
*/ 'overscroll-x': [
|
||
{
|
||
'overscroll-x': getOverscroll()
|
||
}
|
||
],
|
||
/**
|
||
* Overscroll Behavior Y
|
||
* @see https://tailwindcss.com/docs/overscroll-behavior
|
||
*/ 'overscroll-y': [
|
||
{
|
||
'overscroll-y': getOverscroll()
|
||
}
|
||
],
|
||
/**
|
||
* Position
|
||
* @see https://tailwindcss.com/docs/position
|
||
*/ position: [
|
||
'static',
|
||
'fixed',
|
||
'absolute',
|
||
'relative',
|
||
'sticky'
|
||
],
|
||
/**
|
||
* Top / Right / Bottom / Left
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ inset: [
|
||
{
|
||
inset: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Right / Left
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ 'inset-x': [
|
||
{
|
||
'inset-x': [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Top / Bottom
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ 'inset-y': [
|
||
{
|
||
'inset-y': [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Start
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ start: [
|
||
{
|
||
start: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* End
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ end: [
|
||
{
|
||
end: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Top
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ top: [
|
||
{
|
||
top: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Right
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ right: [
|
||
{
|
||
right: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Bottom
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ bottom: [
|
||
{
|
||
bottom: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Left
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ left: [
|
||
{
|
||
left: [
|
||
inset
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Visibility
|
||
* @see https://tailwindcss.com/docs/visibility
|
||
*/ visibility: [
|
||
'visible',
|
||
'invisible',
|
||
'collapse'
|
||
],
|
||
/**
|
||
* Z-Index
|
||
* @see https://tailwindcss.com/docs/z-index
|
||
*/ z: [
|
||
{
|
||
z: [
|
||
'auto',
|
||
isInteger,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// Flexbox and Grid
|
||
/**
|
||
* Flex Basis
|
||
* @see https://tailwindcss.com/docs/flex-basis
|
||
*/ basis: [
|
||
{
|
||
basis: getSpacingWithAutoAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Flex Direction
|
||
* @see https://tailwindcss.com/docs/flex-direction
|
||
*/ 'flex-direction': [
|
||
{
|
||
flex: [
|
||
'row',
|
||
'row-reverse',
|
||
'col',
|
||
'col-reverse'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex Wrap
|
||
* @see https://tailwindcss.com/docs/flex-wrap
|
||
*/ 'flex-wrap': [
|
||
{
|
||
flex: [
|
||
'wrap',
|
||
'wrap-reverse',
|
||
'nowrap'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex
|
||
* @see https://tailwindcss.com/docs/flex
|
||
*/ flex: [
|
||
{
|
||
flex: [
|
||
'1',
|
||
'auto',
|
||
'initial',
|
||
'none',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex Grow
|
||
* @see https://tailwindcss.com/docs/flex-grow
|
||
*/ grow: [
|
||
{
|
||
grow: getZeroAndEmpty()
|
||
}
|
||
],
|
||
/**
|
||
* Flex Shrink
|
||
* @see https://tailwindcss.com/docs/flex-shrink
|
||
*/ shrink: [
|
||
{
|
||
shrink: getZeroAndEmpty()
|
||
}
|
||
],
|
||
/**
|
||
* Order
|
||
* @see https://tailwindcss.com/docs/order
|
||
*/ order: [
|
||
{
|
||
order: [
|
||
'first',
|
||
'last',
|
||
'none',
|
||
isInteger,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Template Columns
|
||
* @see https://tailwindcss.com/docs/grid-template-columns
|
||
*/ 'grid-cols': [
|
||
{
|
||
'grid-cols': [
|
||
isAny
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Column Start / End
|
||
* @see https://tailwindcss.com/docs/grid-column
|
||
*/ 'col-start-end': [
|
||
{
|
||
col: [
|
||
'auto',
|
||
{
|
||
span: [
|
||
'full',
|
||
isInteger,
|
||
isArbitraryValue
|
||
]
|
||
},
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Column Start
|
||
* @see https://tailwindcss.com/docs/grid-column
|
||
*/ 'col-start': [
|
||
{
|
||
'col-start': getNumberWithAutoAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Column End
|
||
* @see https://tailwindcss.com/docs/grid-column
|
||
*/ 'col-end': [
|
||
{
|
||
'col-end': getNumberWithAutoAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Template Rows
|
||
* @see https://tailwindcss.com/docs/grid-template-rows
|
||
*/ 'grid-rows': [
|
||
{
|
||
'grid-rows': [
|
||
isAny
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Row Start / End
|
||
* @see https://tailwindcss.com/docs/grid-row
|
||
*/ 'row-start-end': [
|
||
{
|
||
row: [
|
||
'auto',
|
||
{
|
||
span: [
|
||
isInteger,
|
||
isArbitraryValue
|
||
]
|
||
},
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Row Start
|
||
* @see https://tailwindcss.com/docs/grid-row
|
||
*/ 'row-start': [
|
||
{
|
||
'row-start': getNumberWithAutoAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Row End
|
||
* @see https://tailwindcss.com/docs/grid-row
|
||
*/ 'row-end': [
|
||
{
|
||
'row-end': getNumberWithAutoAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Auto Flow
|
||
* @see https://tailwindcss.com/docs/grid-auto-flow
|
||
*/ 'grid-flow': [
|
||
{
|
||
'grid-flow': [
|
||
'row',
|
||
'col',
|
||
'dense',
|
||
'row-dense',
|
||
'col-dense'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Auto Columns
|
||
* @see https://tailwindcss.com/docs/grid-auto-columns
|
||
*/ 'auto-cols': [
|
||
{
|
||
'auto-cols': [
|
||
'auto',
|
||
'min',
|
||
'max',
|
||
'fr',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Auto Rows
|
||
* @see https://tailwindcss.com/docs/grid-auto-rows
|
||
*/ 'auto-rows': [
|
||
{
|
||
'auto-rows': [
|
||
'auto',
|
||
'min',
|
||
'max',
|
||
'fr',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gap
|
||
* @see https://tailwindcss.com/docs/gap
|
||
*/ gap: [
|
||
{
|
||
gap: [
|
||
gap
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gap X
|
||
* @see https://tailwindcss.com/docs/gap
|
||
*/ 'gap-x': [
|
||
{
|
||
'gap-x': [
|
||
gap
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gap Y
|
||
* @see https://tailwindcss.com/docs/gap
|
||
*/ 'gap-y': [
|
||
{
|
||
'gap-y': [
|
||
gap
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Justify Content
|
||
* @see https://tailwindcss.com/docs/justify-content
|
||
*/ 'justify-content': [
|
||
{
|
||
justify: [
|
||
'normal',
|
||
...getAlign()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Justify Items
|
||
* @see https://tailwindcss.com/docs/justify-items
|
||
*/ 'justify-items': [
|
||
{
|
||
'justify-items': [
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'stretch'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Justify Self
|
||
* @see https://tailwindcss.com/docs/justify-self
|
||
*/ 'justify-self': [
|
||
{
|
||
'justify-self': [
|
||
'auto',
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'stretch'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Align Content
|
||
* @see https://tailwindcss.com/docs/align-content
|
||
*/ 'align-content': [
|
||
{
|
||
content: [
|
||
'normal',
|
||
...getAlign(),
|
||
'baseline'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Align Items
|
||
* @see https://tailwindcss.com/docs/align-items
|
||
*/ 'align-items': [
|
||
{
|
||
items: [
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'baseline',
|
||
'stretch'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Align Self
|
||
* @see https://tailwindcss.com/docs/align-self
|
||
*/ 'align-self': [
|
||
{
|
||
self: [
|
||
'auto',
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'stretch',
|
||
'baseline'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Place Content
|
||
* @see https://tailwindcss.com/docs/place-content
|
||
*/ 'place-content': [
|
||
{
|
||
'place-content': [
|
||
...getAlign(),
|
||
'baseline'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Place Items
|
||
* @see https://tailwindcss.com/docs/place-items
|
||
*/ 'place-items': [
|
||
{
|
||
'place-items': [
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'baseline',
|
||
'stretch'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Place Self
|
||
* @see https://tailwindcss.com/docs/place-self
|
||
*/ 'place-self': [
|
||
{
|
||
'place-self': [
|
||
'auto',
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'stretch'
|
||
]
|
||
}
|
||
],
|
||
// Spacing
|
||
/**
|
||
* Padding
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ p: [
|
||
{
|
||
p: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding X
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ px: [
|
||
{
|
||
px: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding Y
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ py: [
|
||
{
|
||
py: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding Start
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ ps: [
|
||
{
|
||
ps: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding End
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pe: [
|
||
{
|
||
pe: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding Top
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pt: [
|
||
{
|
||
pt: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding Right
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pr: [
|
||
{
|
||
pr: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding Bottom
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pb: [
|
||
{
|
||
pb: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Padding Left
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pl: [
|
||
{
|
||
pl: [
|
||
padding
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ m: [
|
||
{
|
||
m: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin X
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mx: [
|
||
{
|
||
mx: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin Y
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ my: [
|
||
{
|
||
my: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin Start
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ ms: [
|
||
{
|
||
ms: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin End
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ me: [
|
||
{
|
||
me: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin Top
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mt: [
|
||
{
|
||
mt: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin Right
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mr: [
|
||
{
|
||
mr: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin Bottom
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mb: [
|
||
{
|
||
mb: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Margin Left
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ ml: [
|
||
{
|
||
ml: [
|
||
margin
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Space Between X
|
||
* @see https://tailwindcss.com/docs/space
|
||
*/ 'space-x': [
|
||
{
|
||
'space-x': [
|
||
space
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Space Between X Reverse
|
||
* @see https://tailwindcss.com/docs/space
|
||
*/ 'space-x-reverse': [
|
||
'space-x-reverse'
|
||
],
|
||
/**
|
||
* Space Between Y
|
||
* @see https://tailwindcss.com/docs/space
|
||
*/ 'space-y': [
|
||
{
|
||
'space-y': [
|
||
space
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Space Between Y Reverse
|
||
* @see https://tailwindcss.com/docs/space
|
||
*/ 'space-y-reverse': [
|
||
'space-y-reverse'
|
||
],
|
||
// Sizing
|
||
/**
|
||
* Width
|
||
* @see https://tailwindcss.com/docs/width
|
||
*/ w: [
|
||
{
|
||
w: [
|
||
'auto',
|
||
'min',
|
||
'max',
|
||
'fit',
|
||
'svw',
|
||
'lvw',
|
||
'dvw',
|
||
isArbitraryValue,
|
||
spacing
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Min-Width
|
||
* @see https://tailwindcss.com/docs/min-width
|
||
*/ 'min-w': [
|
||
{
|
||
'min-w': [
|
||
isArbitraryValue,
|
||
spacing,
|
||
'min',
|
||
'max',
|
||
'fit'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Max-Width
|
||
* @see https://tailwindcss.com/docs/max-width
|
||
*/ 'max-w': [
|
||
{
|
||
'max-w': [
|
||
isArbitraryValue,
|
||
spacing,
|
||
'none',
|
||
'full',
|
||
'min',
|
||
'max',
|
||
'fit',
|
||
'prose',
|
||
{
|
||
screen: [
|
||
isTshirtSize
|
||
]
|
||
},
|
||
isTshirtSize
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Height
|
||
* @see https://tailwindcss.com/docs/height
|
||
*/ h: [
|
||
{
|
||
h: [
|
||
isArbitraryValue,
|
||
spacing,
|
||
'auto',
|
||
'min',
|
||
'max',
|
||
'fit',
|
||
'svh',
|
||
'lvh',
|
||
'dvh'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Min-Height
|
||
* @see https://tailwindcss.com/docs/min-height
|
||
*/ 'min-h': [
|
||
{
|
||
'min-h': [
|
||
isArbitraryValue,
|
||
spacing,
|
||
'min',
|
||
'max',
|
||
'fit',
|
||
'svh',
|
||
'lvh',
|
||
'dvh'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Max-Height
|
||
* @see https://tailwindcss.com/docs/max-height
|
||
*/ 'max-h': [
|
||
{
|
||
'max-h': [
|
||
isArbitraryValue,
|
||
spacing,
|
||
'min',
|
||
'max',
|
||
'fit',
|
||
'svh',
|
||
'lvh',
|
||
'dvh'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Size
|
||
* @see https://tailwindcss.com/docs/size
|
||
*/ size: [
|
||
{
|
||
size: [
|
||
isArbitraryValue,
|
||
spacing,
|
||
'auto',
|
||
'min',
|
||
'max',
|
||
'fit'
|
||
]
|
||
}
|
||
],
|
||
// Typography
|
||
/**
|
||
* Font Size
|
||
* @see https://tailwindcss.com/docs/font-size
|
||
*/ 'font-size': [
|
||
{
|
||
text: [
|
||
'base',
|
||
isTshirtSize,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Smoothing
|
||
* @see https://tailwindcss.com/docs/font-smoothing
|
||
*/ 'font-smoothing': [
|
||
'antialiased',
|
||
'subpixel-antialiased'
|
||
],
|
||
/**
|
||
* Font Style
|
||
* @see https://tailwindcss.com/docs/font-style
|
||
*/ 'font-style': [
|
||
'italic',
|
||
'not-italic'
|
||
],
|
||
/**
|
||
* Font Weight
|
||
* @see https://tailwindcss.com/docs/font-weight
|
||
*/ 'font-weight': [
|
||
{
|
||
font: [
|
||
'thin',
|
||
'extralight',
|
||
'light',
|
||
'normal',
|
||
'medium',
|
||
'semibold',
|
||
'bold',
|
||
'extrabold',
|
||
'black',
|
||
isArbitraryNumber
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Family
|
||
* @see https://tailwindcss.com/docs/font-family
|
||
*/ 'font-family': [
|
||
{
|
||
font: [
|
||
isAny
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-normal': [
|
||
'normal-nums'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-ordinal': [
|
||
'ordinal'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-slashed-zero': [
|
||
'slashed-zero'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-figure': [
|
||
'lining-nums',
|
||
'oldstyle-nums'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-spacing': [
|
||
'proportional-nums',
|
||
'tabular-nums'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-fraction': [
|
||
'diagonal-fractions',
|
||
'stacked-fractions'
|
||
],
|
||
/**
|
||
* Letter Spacing
|
||
* @see https://tailwindcss.com/docs/letter-spacing
|
||
*/ tracking: [
|
||
{
|
||
tracking: [
|
||
'tighter',
|
||
'tight',
|
||
'normal',
|
||
'wide',
|
||
'wider',
|
||
'widest',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Line Clamp
|
||
* @see https://tailwindcss.com/docs/line-clamp
|
||
*/ 'line-clamp': [
|
||
{
|
||
'line-clamp': [
|
||
'none',
|
||
isNumber,
|
||
isArbitraryNumber
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Line Height
|
||
* @see https://tailwindcss.com/docs/line-height
|
||
*/ leading: [
|
||
{
|
||
leading: [
|
||
'none',
|
||
'tight',
|
||
'snug',
|
||
'normal',
|
||
'relaxed',
|
||
'loose',
|
||
isLength,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* List Style Image
|
||
* @see https://tailwindcss.com/docs/list-style-image
|
||
*/ 'list-image': [
|
||
{
|
||
'list-image': [
|
||
'none',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* List Style Type
|
||
* @see https://tailwindcss.com/docs/list-style-type
|
||
*/ 'list-style-type': [
|
||
{
|
||
list: [
|
||
'none',
|
||
'disc',
|
||
'decimal',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* List Style Position
|
||
* @see https://tailwindcss.com/docs/list-style-position
|
||
*/ 'list-style-position': [
|
||
{
|
||
list: [
|
||
'inside',
|
||
'outside'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Placeholder Color
|
||
* @deprecated since Tailwind CSS v3.0.0
|
||
* @see https://tailwindcss.com/docs/placeholder-color
|
||
*/ 'placeholder-color': [
|
||
{
|
||
placeholder: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Placeholder Opacity
|
||
* @see https://tailwindcss.com/docs/placeholder-opacity
|
||
*/ 'placeholder-opacity': [
|
||
{
|
||
'placeholder-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Alignment
|
||
* @see https://tailwindcss.com/docs/text-align
|
||
*/ 'text-alignment': [
|
||
{
|
||
text: [
|
||
'left',
|
||
'center',
|
||
'right',
|
||
'justify',
|
||
'start',
|
||
'end'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Color
|
||
* @see https://tailwindcss.com/docs/text-color
|
||
*/ 'text-color': [
|
||
{
|
||
text: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Opacity
|
||
* @see https://tailwindcss.com/docs/text-opacity
|
||
*/ 'text-opacity': [
|
||
{
|
||
'text-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Decoration
|
||
* @see https://tailwindcss.com/docs/text-decoration
|
||
*/ 'text-decoration': [
|
||
'underline',
|
||
'overline',
|
||
'line-through',
|
||
'no-underline'
|
||
],
|
||
/**
|
||
* Text Decoration Style
|
||
* @see https://tailwindcss.com/docs/text-decoration-style
|
||
*/ 'text-decoration-style': [
|
||
{
|
||
decoration: [
|
||
...getLineStyles(),
|
||
'wavy'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Decoration Thickness
|
||
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
||
*/ 'text-decoration-thickness': [
|
||
{
|
||
decoration: [
|
||
'auto',
|
||
'from-font',
|
||
isLength,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Underline Offset
|
||
* @see https://tailwindcss.com/docs/text-underline-offset
|
||
*/ 'underline-offset': [
|
||
{
|
||
'underline-offset': [
|
||
'auto',
|
||
isLength,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Decoration Color
|
||
* @see https://tailwindcss.com/docs/text-decoration-color
|
||
*/ 'text-decoration-color': [
|
||
{
|
||
decoration: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Transform
|
||
* @see https://tailwindcss.com/docs/text-transform
|
||
*/ 'text-transform': [
|
||
'uppercase',
|
||
'lowercase',
|
||
'capitalize',
|
||
'normal-case'
|
||
],
|
||
/**
|
||
* Text Overflow
|
||
* @see https://tailwindcss.com/docs/text-overflow
|
||
*/ 'text-overflow': [
|
||
'truncate',
|
||
'text-ellipsis',
|
||
'text-clip'
|
||
],
|
||
/**
|
||
* Text Wrap
|
||
* @see https://tailwindcss.com/docs/text-wrap
|
||
*/ 'text-wrap': [
|
||
{
|
||
text: [
|
||
'wrap',
|
||
'nowrap',
|
||
'balance',
|
||
'pretty'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Indent
|
||
* @see https://tailwindcss.com/docs/text-indent
|
||
*/ indent: [
|
||
{
|
||
indent: getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Vertical Alignment
|
||
* @see https://tailwindcss.com/docs/vertical-align
|
||
*/ 'vertical-align': [
|
||
{
|
||
align: [
|
||
'baseline',
|
||
'top',
|
||
'middle',
|
||
'bottom',
|
||
'text-top',
|
||
'text-bottom',
|
||
'sub',
|
||
'super',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Whitespace
|
||
* @see https://tailwindcss.com/docs/whitespace
|
||
*/ whitespace: [
|
||
{
|
||
whitespace: [
|
||
'normal',
|
||
'nowrap',
|
||
'pre',
|
||
'pre-line',
|
||
'pre-wrap',
|
||
'break-spaces'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Word Break
|
||
* @see https://tailwindcss.com/docs/word-break
|
||
*/ break: [
|
||
{
|
||
break: [
|
||
'normal',
|
||
'words',
|
||
'all',
|
||
'keep'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Hyphens
|
||
* @see https://tailwindcss.com/docs/hyphens
|
||
*/ hyphens: [
|
||
{
|
||
hyphens: [
|
||
'none',
|
||
'manual',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Content
|
||
* @see https://tailwindcss.com/docs/content
|
||
*/ content: [
|
||
{
|
||
content: [
|
||
'none',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// Backgrounds
|
||
/**
|
||
* Background Attachment
|
||
* @see https://tailwindcss.com/docs/background-attachment
|
||
*/ 'bg-attachment': [
|
||
{
|
||
bg: [
|
||
'fixed',
|
||
'local',
|
||
'scroll'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Clip
|
||
* @see https://tailwindcss.com/docs/background-clip
|
||
*/ 'bg-clip': [
|
||
{
|
||
'bg-clip': [
|
||
'border',
|
||
'padding',
|
||
'content',
|
||
'text'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Opacity
|
||
* @deprecated since Tailwind CSS v3.0.0
|
||
* @see https://tailwindcss.com/docs/background-opacity
|
||
*/ 'bg-opacity': [
|
||
{
|
||
'bg-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Origin
|
||
* @see https://tailwindcss.com/docs/background-origin
|
||
*/ 'bg-origin': [
|
||
{
|
||
'bg-origin': [
|
||
'border',
|
||
'padding',
|
||
'content'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Position
|
||
* @see https://tailwindcss.com/docs/background-position
|
||
*/ 'bg-position': [
|
||
{
|
||
bg: [
|
||
...getPositions(),
|
||
isArbitraryPosition
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Repeat
|
||
* @see https://tailwindcss.com/docs/background-repeat
|
||
*/ 'bg-repeat': [
|
||
{
|
||
bg: [
|
||
'no-repeat',
|
||
{
|
||
repeat: [
|
||
'',
|
||
'x',
|
||
'y',
|
||
'round',
|
||
'space'
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Size
|
||
* @see https://tailwindcss.com/docs/background-size
|
||
*/ 'bg-size': [
|
||
{
|
||
bg: [
|
||
'auto',
|
||
'cover',
|
||
'contain',
|
||
isArbitrarySize
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Image
|
||
* @see https://tailwindcss.com/docs/background-image
|
||
*/ 'bg-image': [
|
||
{
|
||
bg: [
|
||
'none',
|
||
{
|
||
'gradient-to': [
|
||
't',
|
||
'tr',
|
||
'r',
|
||
'br',
|
||
'b',
|
||
'bl',
|
||
'l',
|
||
'tl'
|
||
]
|
||
},
|
||
isArbitraryImage
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Color
|
||
* @see https://tailwindcss.com/docs/background-color
|
||
*/ 'bg-color': [
|
||
{
|
||
bg: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops From Position
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-from-pos': [
|
||
{
|
||
from: [
|
||
gradientColorStopPositions
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops Via Position
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-via-pos': [
|
||
{
|
||
via: [
|
||
gradientColorStopPositions
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops To Position
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-to-pos': [
|
||
{
|
||
to: [
|
||
gradientColorStopPositions
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops From
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-from': [
|
||
{
|
||
from: [
|
||
gradientColorStops
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops Via
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-via': [
|
||
{
|
||
via: [
|
||
gradientColorStops
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops To
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-to': [
|
||
{
|
||
to: [
|
||
gradientColorStops
|
||
]
|
||
}
|
||
],
|
||
// Borders
|
||
/**
|
||
* Border Radius
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ rounded: [
|
||
{
|
||
rounded: [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Start
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-s': [
|
||
{
|
||
'rounded-s': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius End
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-e': [
|
||
{
|
||
'rounded-e': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Top
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-t': [
|
||
{
|
||
'rounded-t': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Right
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-r': [
|
||
{
|
||
'rounded-r': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Bottom
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-b': [
|
||
{
|
||
'rounded-b': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Left
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-l': [
|
||
{
|
||
'rounded-l': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Start Start
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-ss': [
|
||
{
|
||
'rounded-ss': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Start End
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-se': [
|
||
{
|
||
'rounded-se': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius End End
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-ee': [
|
||
{
|
||
'rounded-ee': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius End Start
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-es': [
|
||
{
|
||
'rounded-es': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Top Left
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-tl': [
|
||
{
|
||
'rounded-tl': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Top Right
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-tr': [
|
||
{
|
||
'rounded-tr': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Bottom Right
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-br': [
|
||
{
|
||
'rounded-br': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Bottom Left
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-bl': [
|
||
{
|
||
'rounded-bl': [
|
||
borderRadius
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w': [
|
||
{
|
||
border: [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width X
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-x': [
|
||
{
|
||
'border-x': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Y
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-y': [
|
||
{
|
||
'border-y': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Start
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-s': [
|
||
{
|
||
'border-s': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width End
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-e': [
|
||
{
|
||
'border-e': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Top
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-t': [
|
||
{
|
||
'border-t': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Right
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-r': [
|
||
{
|
||
'border-r': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Bottom
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-b': [
|
||
{
|
||
'border-b': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Left
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-l': [
|
||
{
|
||
'border-l': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Opacity
|
||
* @see https://tailwindcss.com/docs/border-opacity
|
||
*/ 'border-opacity': [
|
||
{
|
||
'border-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Style
|
||
* @see https://tailwindcss.com/docs/border-style
|
||
*/ 'border-style': [
|
||
{
|
||
border: [
|
||
...getLineStyles(),
|
||
'hidden'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Divide Width X
|
||
* @see https://tailwindcss.com/docs/divide-width
|
||
*/ 'divide-x': [
|
||
{
|
||
'divide-x': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Divide Width X Reverse
|
||
* @see https://tailwindcss.com/docs/divide-width
|
||
*/ 'divide-x-reverse': [
|
||
'divide-x-reverse'
|
||
],
|
||
/**
|
||
* Divide Width Y
|
||
* @see https://tailwindcss.com/docs/divide-width
|
||
*/ 'divide-y': [
|
||
{
|
||
'divide-y': [
|
||
borderWidth
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Divide Width Y Reverse
|
||
* @see https://tailwindcss.com/docs/divide-width
|
||
*/ 'divide-y-reverse': [
|
||
'divide-y-reverse'
|
||
],
|
||
/**
|
||
* Divide Opacity
|
||
* @see https://tailwindcss.com/docs/divide-opacity
|
||
*/ 'divide-opacity': [
|
||
{
|
||
'divide-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Divide Style
|
||
* @see https://tailwindcss.com/docs/divide-style
|
||
*/ 'divide-style': [
|
||
{
|
||
divide: getLineStyles()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color': [
|
||
{
|
||
border: [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color X
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-x': [
|
||
{
|
||
'border-x': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Y
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-y': [
|
||
{
|
||
'border-y': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color S
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-s': [
|
||
{
|
||
'border-s': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color E
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-e': [
|
||
{
|
||
'border-e': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Top
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-t': [
|
||
{
|
||
'border-t': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Right
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-r': [
|
||
{
|
||
'border-r': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Bottom
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-b': [
|
||
{
|
||
'border-b': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Left
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-l': [
|
||
{
|
||
'border-l': [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Divide Color
|
||
* @see https://tailwindcss.com/docs/divide-color
|
||
*/ 'divide-color': [
|
||
{
|
||
divide: [
|
||
borderColor
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Style
|
||
* @see https://tailwindcss.com/docs/outline-style
|
||
*/ 'outline-style': [
|
||
{
|
||
outline: [
|
||
'',
|
||
...getLineStyles()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Offset
|
||
* @see https://tailwindcss.com/docs/outline-offset
|
||
*/ 'outline-offset': [
|
||
{
|
||
'outline-offset': [
|
||
isLength,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Width
|
||
* @see https://tailwindcss.com/docs/outline-width
|
||
*/ 'outline-w': [
|
||
{
|
||
outline: [
|
||
isLength,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Color
|
||
* @see https://tailwindcss.com/docs/outline-color
|
||
*/ 'outline-color': [
|
||
{
|
||
outline: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Ring Width
|
||
* @see https://tailwindcss.com/docs/ring-width
|
||
*/ 'ring-w': [
|
||
{
|
||
ring: getLengthWithEmptyAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Ring Width Inset
|
||
* @see https://tailwindcss.com/docs/ring-width
|
||
*/ 'ring-w-inset': [
|
||
'ring-inset'
|
||
],
|
||
/**
|
||
* Ring Color
|
||
* @see https://tailwindcss.com/docs/ring-color
|
||
*/ 'ring-color': [
|
||
{
|
||
ring: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Ring Opacity
|
||
* @see https://tailwindcss.com/docs/ring-opacity
|
||
*/ 'ring-opacity': [
|
||
{
|
||
'ring-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Ring Offset Width
|
||
* @see https://tailwindcss.com/docs/ring-offset-width
|
||
*/ 'ring-offset-w': [
|
||
{
|
||
'ring-offset': [
|
||
isLength,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Ring Offset Color
|
||
* @see https://tailwindcss.com/docs/ring-offset-color
|
||
*/ 'ring-offset-color': [
|
||
{
|
||
'ring-offset': [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
// Effects
|
||
/**
|
||
* Box Shadow
|
||
* @see https://tailwindcss.com/docs/box-shadow
|
||
*/ shadow: [
|
||
{
|
||
shadow: [
|
||
'',
|
||
'inner',
|
||
'none',
|
||
isTshirtSize,
|
||
isArbitraryShadow
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Box Shadow Color
|
||
* @see https://tailwindcss.com/docs/box-shadow-color
|
||
*/ 'shadow-color': [
|
||
{
|
||
shadow: [
|
||
isAny
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Opacity
|
||
* @see https://tailwindcss.com/docs/opacity
|
||
*/ opacity: [
|
||
{
|
||
opacity: [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Mix Blend Mode
|
||
* @see https://tailwindcss.com/docs/mix-blend-mode
|
||
*/ 'mix-blend': [
|
||
{
|
||
'mix-blend': [
|
||
...getBlendModes(),
|
||
'plus-lighter',
|
||
'plus-darker'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Blend Mode
|
||
* @see https://tailwindcss.com/docs/background-blend-mode
|
||
*/ 'bg-blend': [
|
||
{
|
||
'bg-blend': getBlendModes()
|
||
}
|
||
],
|
||
// Filters
|
||
/**
|
||
* Filter
|
||
* @deprecated since Tailwind CSS v3.0.0
|
||
* @see https://tailwindcss.com/docs/filter
|
||
*/ filter: [
|
||
{
|
||
filter: [
|
||
'',
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Blur
|
||
* @see https://tailwindcss.com/docs/blur
|
||
*/ blur: [
|
||
{
|
||
blur: [
|
||
blur
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Brightness
|
||
* @see https://tailwindcss.com/docs/brightness
|
||
*/ brightness: [
|
||
{
|
||
brightness: [
|
||
brightness
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Contrast
|
||
* @see https://tailwindcss.com/docs/contrast
|
||
*/ contrast: [
|
||
{
|
||
contrast: [
|
||
contrast
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Drop Shadow
|
||
* @see https://tailwindcss.com/docs/drop-shadow
|
||
*/ 'drop-shadow': [
|
||
{
|
||
'drop-shadow': [
|
||
'',
|
||
'none',
|
||
isTshirtSize,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grayscale
|
||
* @see https://tailwindcss.com/docs/grayscale
|
||
*/ grayscale: [
|
||
{
|
||
grayscale: [
|
||
grayscale
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Hue Rotate
|
||
* @see https://tailwindcss.com/docs/hue-rotate
|
||
*/ 'hue-rotate': [
|
||
{
|
||
'hue-rotate': [
|
||
hueRotate
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Invert
|
||
* @see https://tailwindcss.com/docs/invert
|
||
*/ invert: [
|
||
{
|
||
invert: [
|
||
invert
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Saturate
|
||
* @see https://tailwindcss.com/docs/saturate
|
||
*/ saturate: [
|
||
{
|
||
saturate: [
|
||
saturate
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Sepia
|
||
* @see https://tailwindcss.com/docs/sepia
|
||
*/ sepia: [
|
||
{
|
||
sepia: [
|
||
sepia
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Filter
|
||
* @deprecated since Tailwind CSS v3.0.0
|
||
* @see https://tailwindcss.com/docs/backdrop-filter
|
||
*/ 'backdrop-filter': [
|
||
{
|
||
'backdrop-filter': [
|
||
'',
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Blur
|
||
* @see https://tailwindcss.com/docs/backdrop-blur
|
||
*/ 'backdrop-blur': [
|
||
{
|
||
'backdrop-blur': [
|
||
blur
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Brightness
|
||
* @see https://tailwindcss.com/docs/backdrop-brightness
|
||
*/ 'backdrop-brightness': [
|
||
{
|
||
'backdrop-brightness': [
|
||
brightness
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Contrast
|
||
* @see https://tailwindcss.com/docs/backdrop-contrast
|
||
*/ 'backdrop-contrast': [
|
||
{
|
||
'backdrop-contrast': [
|
||
contrast
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Grayscale
|
||
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
||
*/ 'backdrop-grayscale': [
|
||
{
|
||
'backdrop-grayscale': [
|
||
grayscale
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Hue Rotate
|
||
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
||
*/ 'backdrop-hue-rotate': [
|
||
{
|
||
'backdrop-hue-rotate': [
|
||
hueRotate
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Invert
|
||
* @see https://tailwindcss.com/docs/backdrop-invert
|
||
*/ 'backdrop-invert': [
|
||
{
|
||
'backdrop-invert': [
|
||
invert
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Opacity
|
||
* @see https://tailwindcss.com/docs/backdrop-opacity
|
||
*/ 'backdrop-opacity': [
|
||
{
|
||
'backdrop-opacity': [
|
||
opacity
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Saturate
|
||
* @see https://tailwindcss.com/docs/backdrop-saturate
|
||
*/ 'backdrop-saturate': [
|
||
{
|
||
'backdrop-saturate': [
|
||
saturate
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Sepia
|
||
* @see https://tailwindcss.com/docs/backdrop-sepia
|
||
*/ 'backdrop-sepia': [
|
||
{
|
||
'backdrop-sepia': [
|
||
sepia
|
||
]
|
||
}
|
||
],
|
||
// Tables
|
||
/**
|
||
* Border Collapse
|
||
* @see https://tailwindcss.com/docs/border-collapse
|
||
*/ 'border-collapse': [
|
||
{
|
||
border: [
|
||
'collapse',
|
||
'separate'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Spacing
|
||
* @see https://tailwindcss.com/docs/border-spacing
|
||
*/ 'border-spacing': [
|
||
{
|
||
'border-spacing': [
|
||
borderSpacing
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Spacing X
|
||
* @see https://tailwindcss.com/docs/border-spacing
|
||
*/ 'border-spacing-x': [
|
||
{
|
||
'border-spacing-x': [
|
||
borderSpacing
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Spacing Y
|
||
* @see https://tailwindcss.com/docs/border-spacing
|
||
*/ 'border-spacing-y': [
|
||
{
|
||
'border-spacing-y': [
|
||
borderSpacing
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Table Layout
|
||
* @see https://tailwindcss.com/docs/table-layout
|
||
*/ 'table-layout': [
|
||
{
|
||
table: [
|
||
'auto',
|
||
'fixed'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Caption Side
|
||
* @see https://tailwindcss.com/docs/caption-side
|
||
*/ caption: [
|
||
{
|
||
caption: [
|
||
'top',
|
||
'bottom'
|
||
]
|
||
}
|
||
],
|
||
// Transitions and Animation
|
||
/**
|
||
* Tranisition Property
|
||
* @see https://tailwindcss.com/docs/transition-property
|
||
*/ transition: [
|
||
{
|
||
transition: [
|
||
'none',
|
||
'all',
|
||
'',
|
||
'colors',
|
||
'opacity',
|
||
'shadow',
|
||
'transform',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transition Duration
|
||
* @see https://tailwindcss.com/docs/transition-duration
|
||
*/ duration: [
|
||
{
|
||
duration: getNumberAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Transition Timing Function
|
||
* @see https://tailwindcss.com/docs/transition-timing-function
|
||
*/ ease: [
|
||
{
|
||
ease: [
|
||
'linear',
|
||
'in',
|
||
'out',
|
||
'in-out',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transition Delay
|
||
* @see https://tailwindcss.com/docs/transition-delay
|
||
*/ delay: [
|
||
{
|
||
delay: getNumberAndArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Animation
|
||
* @see https://tailwindcss.com/docs/animation
|
||
*/ animate: [
|
||
{
|
||
animate: [
|
||
'none',
|
||
'spin',
|
||
'ping',
|
||
'pulse',
|
||
'bounce',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// Transforms
|
||
/**
|
||
* Transform
|
||
* @see https://tailwindcss.com/docs/transform
|
||
*/ transform: [
|
||
{
|
||
transform: [
|
||
'',
|
||
'gpu',
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scale
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ scale: [
|
||
{
|
||
scale: [
|
||
scale
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scale X
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ 'scale-x': [
|
||
{
|
||
'scale-x': [
|
||
scale
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scale Y
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ 'scale-y': [
|
||
{
|
||
'scale-y': [
|
||
scale
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Rotate
|
||
* @see https://tailwindcss.com/docs/rotate
|
||
*/ rotate: [
|
||
{
|
||
rotate: [
|
||
isInteger,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Translate X
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ 'translate-x': [
|
||
{
|
||
'translate-x': [
|
||
translate
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Translate Y
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ 'translate-y': [
|
||
{
|
||
'translate-y': [
|
||
translate
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Skew X
|
||
* @see https://tailwindcss.com/docs/skew
|
||
*/ 'skew-x': [
|
||
{
|
||
'skew-x': [
|
||
skew
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Skew Y
|
||
* @see https://tailwindcss.com/docs/skew
|
||
*/ 'skew-y': [
|
||
{
|
||
'skew-y': [
|
||
skew
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transform Origin
|
||
* @see https://tailwindcss.com/docs/transform-origin
|
||
*/ 'transform-origin': [
|
||
{
|
||
origin: [
|
||
'center',
|
||
'top',
|
||
'top-right',
|
||
'right',
|
||
'bottom-right',
|
||
'bottom',
|
||
'bottom-left',
|
||
'left',
|
||
'top-left',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// Interactivity
|
||
/**
|
||
* Accent Color
|
||
* @see https://tailwindcss.com/docs/accent-color
|
||
*/ accent: [
|
||
{
|
||
accent: [
|
||
'auto',
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Appearance
|
||
* @see https://tailwindcss.com/docs/appearance
|
||
*/ appearance: [
|
||
{
|
||
appearance: [
|
||
'none',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Cursor
|
||
* @see https://tailwindcss.com/docs/cursor
|
||
*/ cursor: [
|
||
{
|
||
cursor: [
|
||
'auto',
|
||
'default',
|
||
'pointer',
|
||
'wait',
|
||
'text',
|
||
'move',
|
||
'help',
|
||
'not-allowed',
|
||
'none',
|
||
'context-menu',
|
||
'progress',
|
||
'cell',
|
||
'crosshair',
|
||
'vertical-text',
|
||
'alias',
|
||
'copy',
|
||
'no-drop',
|
||
'grab',
|
||
'grabbing',
|
||
'all-scroll',
|
||
'col-resize',
|
||
'row-resize',
|
||
'n-resize',
|
||
'e-resize',
|
||
's-resize',
|
||
'w-resize',
|
||
'ne-resize',
|
||
'nw-resize',
|
||
'se-resize',
|
||
'sw-resize',
|
||
'ew-resize',
|
||
'ns-resize',
|
||
'nesw-resize',
|
||
'nwse-resize',
|
||
'zoom-in',
|
||
'zoom-out',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Caret Color
|
||
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
||
*/ 'caret-color': [
|
||
{
|
||
caret: [
|
||
colors
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Pointer Events
|
||
* @see https://tailwindcss.com/docs/pointer-events
|
||
*/ 'pointer-events': [
|
||
{
|
||
'pointer-events': [
|
||
'none',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Resize
|
||
* @see https://tailwindcss.com/docs/resize
|
||
*/ resize: [
|
||
{
|
||
resize: [
|
||
'none',
|
||
'y',
|
||
'x',
|
||
''
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Behavior
|
||
* @see https://tailwindcss.com/docs/scroll-behavior
|
||
*/ 'scroll-behavior': [
|
||
{
|
||
scroll: [
|
||
'auto',
|
||
'smooth'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-m': [
|
||
{
|
||
'scroll-m': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin X
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mx': [
|
||
{
|
||
'scroll-mx': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Y
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-my': [
|
||
{
|
||
'scroll-my': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Start
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-ms': [
|
||
{
|
||
'scroll-ms': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin End
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-me': [
|
||
{
|
||
'scroll-me': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Top
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mt': [
|
||
{
|
||
'scroll-mt': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Right
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mr': [
|
||
{
|
||
'scroll-mr': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Bottom
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mb': [
|
||
{
|
||
'scroll-mb': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Left
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-ml': [
|
||
{
|
||
'scroll-ml': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-p': [
|
||
{
|
||
'scroll-p': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding X
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-px': [
|
||
{
|
||
'scroll-px': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Y
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-py': [
|
||
{
|
||
'scroll-py': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Start
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-ps': [
|
||
{
|
||
'scroll-ps': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding End
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pe': [
|
||
{
|
||
'scroll-pe': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Top
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pt': [
|
||
{
|
||
'scroll-pt': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Right
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pr': [
|
||
{
|
||
'scroll-pr': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Bottom
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pb': [
|
||
{
|
||
'scroll-pb': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Left
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pl': [
|
||
{
|
||
'scroll-pl': getSpacingWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Align
|
||
* @see https://tailwindcss.com/docs/scroll-snap-align
|
||
*/ 'snap-align': [
|
||
{
|
||
snap: [
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'align-none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Stop
|
||
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
||
*/ 'snap-stop': [
|
||
{
|
||
snap: [
|
||
'normal',
|
||
'always'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Type
|
||
* @see https://tailwindcss.com/docs/scroll-snap-type
|
||
*/ 'snap-type': [
|
||
{
|
||
snap: [
|
||
'none',
|
||
'x',
|
||
'y',
|
||
'both'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Type Strictness
|
||
* @see https://tailwindcss.com/docs/scroll-snap-type
|
||
*/ 'snap-strictness': [
|
||
{
|
||
snap: [
|
||
'mandatory',
|
||
'proximity'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ touch: [
|
||
{
|
||
touch: [
|
||
'auto',
|
||
'none',
|
||
'manipulation'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action X
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ 'touch-x': [
|
||
{
|
||
'touch-pan': [
|
||
'x',
|
||
'left',
|
||
'right'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action Y
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ 'touch-y': [
|
||
{
|
||
'touch-pan': [
|
||
'y',
|
||
'up',
|
||
'down'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action Pinch Zoom
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ 'touch-pz': [
|
||
'touch-pinch-zoom'
|
||
],
|
||
/**
|
||
* User Select
|
||
* @see https://tailwindcss.com/docs/user-select
|
||
*/ select: [
|
||
{
|
||
select: [
|
||
'none',
|
||
'text',
|
||
'all',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Will Change
|
||
* @see https://tailwindcss.com/docs/will-change
|
||
*/ 'will-change': [
|
||
{
|
||
'will-change': [
|
||
'auto',
|
||
'scroll',
|
||
'contents',
|
||
'transform',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// SVG
|
||
/**
|
||
* Fill
|
||
* @see https://tailwindcss.com/docs/fill
|
||
*/ fill: [
|
||
{
|
||
fill: [
|
||
colors,
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Stroke Width
|
||
* @see https://tailwindcss.com/docs/stroke-width
|
||
*/ 'stroke-w': [
|
||
{
|
||
stroke: [
|
||
isLength,
|
||
isArbitraryLength,
|
||
isArbitraryNumber
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Stroke
|
||
* @see https://tailwindcss.com/docs/stroke
|
||
*/ stroke: [
|
||
{
|
||
stroke: [
|
||
colors,
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
// Accessibility
|
||
/**
|
||
* Screen Readers
|
||
* @see https://tailwindcss.com/docs/screen-readers
|
||
*/ sr: [
|
||
'sr-only',
|
||
'not-sr-only'
|
||
],
|
||
/**
|
||
* Forced Color Adjust
|
||
* @see https://tailwindcss.com/docs/forced-color-adjust
|
||
*/ 'forced-color-adjust': [
|
||
{
|
||
'forced-color-adjust': [
|
||
'auto',
|
||
'none'
|
||
]
|
||
}
|
||
]
|
||
},
|
||
conflictingClassGroups: {
|
||
overflow: [
|
||
'overflow-x',
|
||
'overflow-y'
|
||
],
|
||
overscroll: [
|
||
'overscroll-x',
|
||
'overscroll-y'
|
||
],
|
||
inset: [
|
||
'inset-x',
|
||
'inset-y',
|
||
'start',
|
||
'end',
|
||
'top',
|
||
'right',
|
||
'bottom',
|
||
'left'
|
||
],
|
||
'inset-x': [
|
||
'right',
|
||
'left'
|
||
],
|
||
'inset-y': [
|
||
'top',
|
||
'bottom'
|
||
],
|
||
flex: [
|
||
'basis',
|
||
'grow',
|
||
'shrink'
|
||
],
|
||
gap: [
|
||
'gap-x',
|
||
'gap-y'
|
||
],
|
||
p: [
|
||
'px',
|
||
'py',
|
||
'ps',
|
||
'pe',
|
||
'pt',
|
||
'pr',
|
||
'pb',
|
||
'pl'
|
||
],
|
||
px: [
|
||
'pr',
|
||
'pl'
|
||
],
|
||
py: [
|
||
'pt',
|
||
'pb'
|
||
],
|
||
m: [
|
||
'mx',
|
||
'my',
|
||
'ms',
|
||
'me',
|
||
'mt',
|
||
'mr',
|
||
'mb',
|
||
'ml'
|
||
],
|
||
mx: [
|
||
'mr',
|
||
'ml'
|
||
],
|
||
my: [
|
||
'mt',
|
||
'mb'
|
||
],
|
||
size: [
|
||
'w',
|
||
'h'
|
||
],
|
||
'font-size': [
|
||
'leading'
|
||
],
|
||
'fvn-normal': [
|
||
'fvn-ordinal',
|
||
'fvn-slashed-zero',
|
||
'fvn-figure',
|
||
'fvn-spacing',
|
||
'fvn-fraction'
|
||
],
|
||
'fvn-ordinal': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-slashed-zero': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-figure': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-spacing': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-fraction': [
|
||
'fvn-normal'
|
||
],
|
||
'line-clamp': [
|
||
'display',
|
||
'overflow'
|
||
],
|
||
rounded: [
|
||
'rounded-s',
|
||
'rounded-e',
|
||
'rounded-t',
|
||
'rounded-r',
|
||
'rounded-b',
|
||
'rounded-l',
|
||
'rounded-ss',
|
||
'rounded-se',
|
||
'rounded-ee',
|
||
'rounded-es',
|
||
'rounded-tl',
|
||
'rounded-tr',
|
||
'rounded-br',
|
||
'rounded-bl'
|
||
],
|
||
'rounded-s': [
|
||
'rounded-ss',
|
||
'rounded-es'
|
||
],
|
||
'rounded-e': [
|
||
'rounded-se',
|
||
'rounded-ee'
|
||
],
|
||
'rounded-t': [
|
||
'rounded-tl',
|
||
'rounded-tr'
|
||
],
|
||
'rounded-r': [
|
||
'rounded-tr',
|
||
'rounded-br'
|
||
],
|
||
'rounded-b': [
|
||
'rounded-br',
|
||
'rounded-bl'
|
||
],
|
||
'rounded-l': [
|
||
'rounded-tl',
|
||
'rounded-bl'
|
||
],
|
||
'border-spacing': [
|
||
'border-spacing-x',
|
||
'border-spacing-y'
|
||
],
|
||
'border-w': [
|
||
'border-w-s',
|
||
'border-w-e',
|
||
'border-w-t',
|
||
'border-w-r',
|
||
'border-w-b',
|
||
'border-w-l'
|
||
],
|
||
'border-w-x': [
|
||
'border-w-r',
|
||
'border-w-l'
|
||
],
|
||
'border-w-y': [
|
||
'border-w-t',
|
||
'border-w-b'
|
||
],
|
||
'border-color': [
|
||
'border-color-s',
|
||
'border-color-e',
|
||
'border-color-t',
|
||
'border-color-r',
|
||
'border-color-b',
|
||
'border-color-l'
|
||
],
|
||
'border-color-x': [
|
||
'border-color-r',
|
||
'border-color-l'
|
||
],
|
||
'border-color-y': [
|
||
'border-color-t',
|
||
'border-color-b'
|
||
],
|
||
'scroll-m': [
|
||
'scroll-mx',
|
||
'scroll-my',
|
||
'scroll-ms',
|
||
'scroll-me',
|
||
'scroll-mt',
|
||
'scroll-mr',
|
||
'scroll-mb',
|
||
'scroll-ml'
|
||
],
|
||
'scroll-mx': [
|
||
'scroll-mr',
|
||
'scroll-ml'
|
||
],
|
||
'scroll-my': [
|
||
'scroll-mt',
|
||
'scroll-mb'
|
||
],
|
||
'scroll-p': [
|
||
'scroll-px',
|
||
'scroll-py',
|
||
'scroll-ps',
|
||
'scroll-pe',
|
||
'scroll-pt',
|
||
'scroll-pr',
|
||
'scroll-pb',
|
||
'scroll-pl'
|
||
],
|
||
'scroll-px': [
|
||
'scroll-pr',
|
||
'scroll-pl'
|
||
],
|
||
'scroll-py': [
|
||
'scroll-pt',
|
||
'scroll-pb'
|
||
],
|
||
touch: [
|
||
'touch-x',
|
||
'touch-y',
|
||
'touch-pz'
|
||
],
|
||
'touch-x': [
|
||
'touch'
|
||
],
|
||
'touch-y': [
|
||
'touch'
|
||
],
|
||
'touch-pz': [
|
||
'touch'
|
||
]
|
||
},
|
||
conflictingClassGroupModifiers: {
|
||
'font-size': [
|
||
'leading'
|
||
]
|
||
}
|
||
};
|
||
};
|
||
/**
|
||
* @param baseConfig Config where other config will be merged into. This object will be mutated.
|
||
* @param configExtension Partial config to merge into the `baseConfig`.
|
||
*/ const mergeConfigs = (baseConfig, { cacheSize, prefix, separator, experimentalParseClassName, extend = {}, override = {} })=>{
|
||
overrideProperty(baseConfig, 'cacheSize', cacheSize);
|
||
overrideProperty(baseConfig, 'prefix', prefix);
|
||
overrideProperty(baseConfig, 'separator', separator);
|
||
overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);
|
||
for(const configKey in override){
|
||
overrideConfigProperties(baseConfig[configKey], override[configKey]);
|
||
}
|
||
for(const key in extend){
|
||
mergeConfigProperties(baseConfig[key], extend[key]);
|
||
}
|
||
return baseConfig;
|
||
};
|
||
const overrideProperty = (baseObject, overrideKey, overrideValue)=>{
|
||
if (overrideValue !== undefined) {
|
||
baseObject[overrideKey] = overrideValue;
|
||
}
|
||
};
|
||
const overrideConfigProperties = (baseObject, overrideObject)=>{
|
||
if (overrideObject) {
|
||
for(const key in overrideObject){
|
||
overrideProperty(baseObject, key, overrideObject[key]);
|
||
}
|
||
}
|
||
};
|
||
const mergeConfigProperties = (baseObject, mergeObject)=>{
|
||
if (mergeObject) {
|
||
for(const key in mergeObject){
|
||
const mergeValue = mergeObject[key];
|
||
if (mergeValue !== undefined) {
|
||
baseObject[key] = (baseObject[key] || []).concat(mergeValue);
|
||
}
|
||
}
|
||
}
|
||
};
|
||
const extendTailwindMerge = (configExtension, ...createConfig)=>typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(()=>mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
||
const twMerge = /*#__PURE__*/ createTailwindMerge(getDefaultConfig);
|
||
;
|
||
//# sourceMappingURL=bundle-mjs.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-context@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/context/src/createContext.tsx
|
||
__turbopack_context__.s([
|
||
"createContext",
|
||
()=>createContext2,
|
||
"createContextScope",
|
||
()=>createContextScope
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
function createContext2(rootComponentName, defaultContext) {
|
||
const Context = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createContext"](defaultContext);
|
||
const Provider = (props)=>{
|
||
const { children, ...context } = props;
|
||
const value = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useMemo"]({
|
||
"createContext2.Provider.useMemo[value]": ()=>context
|
||
}["createContext2.Provider.useMemo[value]"], Object.values(context));
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(Context.Provider, {
|
||
value,
|
||
children
|
||
});
|
||
};
|
||
Provider.displayName = rootComponentName + "Provider";
|
||
function useContext2(consumerName) {
|
||
const context = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useContext"](Context);
|
||
if (context) return context;
|
||
if (defaultContext !== void 0) return defaultContext;
|
||
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
||
}
|
||
return [
|
||
Provider,
|
||
useContext2
|
||
];
|
||
}
|
||
function createContextScope(scopeName, createContextScopeDeps = []) {
|
||
let defaultContexts = [];
|
||
function createContext3(rootComponentName, defaultContext) {
|
||
const BaseContext = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createContext"](defaultContext);
|
||
const index = defaultContexts.length;
|
||
defaultContexts = [
|
||
...defaultContexts,
|
||
defaultContext
|
||
];
|
||
const Provider = (props)=>{
|
||
const { scope, children, ...context } = props;
|
||
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
||
const value = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useMemo"]({
|
||
"createContextScope.createContext3.Provider.useMemo[value]": ()=>context
|
||
}["createContextScope.createContext3.Provider.useMemo[value]"], Object.values(context));
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(Context.Provider, {
|
||
value,
|
||
children
|
||
});
|
||
};
|
||
Provider.displayName = rootComponentName + "Provider";
|
||
function useContext2(consumerName, scope) {
|
||
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
||
const context = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useContext"](Context);
|
||
if (context) return context;
|
||
if (defaultContext !== void 0) return defaultContext;
|
||
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
||
}
|
||
return [
|
||
Provider,
|
||
useContext2
|
||
];
|
||
}
|
||
const createScope = ()=>{
|
||
const scopeContexts = defaultContexts.map((defaultContext)=>{
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createContext"](defaultContext);
|
||
});
|
||
return function useScope(scope) {
|
||
const contexts = scope?.[scopeName] || scopeContexts;
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useMemo"]({
|
||
"createContextScope.createScope.useScope.useMemo": ()=>({
|
||
[`__scope${scopeName}`]: {
|
||
...scope,
|
||
[scopeName]: contexts
|
||
}
|
||
})
|
||
}["createContextScope.createScope.useScope.useMemo"], [
|
||
scope,
|
||
contexts
|
||
]);
|
||
};
|
||
};
|
||
createScope.scopeName = scopeName;
|
||
return [
|
||
createContext3,
|
||
composeContextScopes(createScope, ...createContextScopeDeps)
|
||
];
|
||
}
|
||
function composeContextScopes(...scopes) {
|
||
const baseScope = scopes[0];
|
||
if (scopes.length === 1) return baseScope;
|
||
const createScope = ()=>{
|
||
const scopeHooks = scopes.map((createScope2)=>({
|
||
useScope: createScope2(),
|
||
scopeName: createScope2.scopeName
|
||
}));
|
||
return function useComposedScopes(overrideScopes) {
|
||
const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName })=>{
|
||
const scopeProps = useScope(overrideScopes);
|
||
const currentScope = scopeProps[`__scope${scopeName}`];
|
||
return {
|
||
...nextScopes2,
|
||
...currentScope
|
||
};
|
||
}, {});
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useMemo"]({
|
||
"composeContextScopes.createScope.useComposedScopes.useMemo": ()=>({
|
||
[`__scope${baseScope.scopeName}`]: nextScopes
|
||
})
|
||
}["composeContextScopes.createScope.useComposedScopes.useMemo"], [
|
||
nextScopes
|
||
]);
|
||
};
|
||
};
|
||
createScope.scopeName = baseScope.scopeName;
|
||
return createScope;
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/use-callback-ref/src/useCallbackRef.tsx
|
||
__turbopack_context__.s([
|
||
"useCallbackRef",
|
||
()=>useCallbackRef
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
;
|
||
function useCallbackRef(callback) {
|
||
const callbackRef = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRef"](callback);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useEffect"]({
|
||
"useCallbackRef.useEffect": ()=>{
|
||
callbackRef.current = callback;
|
||
}
|
||
}["useCallbackRef.useEffect"]);
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useMemo"]({
|
||
"useCallbackRef.useMemo": ()=>({
|
||
"useCallbackRef.useMemo": (...args)=>callbackRef.current?.(...args)
|
||
})["useCallbackRef.useMemo"]
|
||
}["useCallbackRef.useMemo"], []);
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/use-layout-effect/src/useLayoutEffect.tsx
|
||
__turbopack_context__.s([
|
||
"useLayoutEffect",
|
||
()=>useLayoutEffect2
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
;
|
||
var useLayoutEffect2 = Boolean(globalThis?.document) ? __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useLayoutEffect"] : ()=>{};
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-primitive@2.0.1_@types+react-dom@19.2.3_@types+react@19.2.6__@types+rea_4f53963f71a6eb8b0116fe0dd1078946/node_modules/@radix-ui/react-primitive/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/primitive/src/Primitive.tsx
|
||
__turbopack_context__.s([
|
||
"Primitive",
|
||
()=>Primitive,
|
||
"Root",
|
||
()=>Root,
|
||
"dispatchDiscreteCustomEvent",
|
||
()=>dispatchDiscreteCustomEvent
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2d$dom$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react-dom/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$slot$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$slot$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-slot@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-slot/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
var NODES = [
|
||
"a",
|
||
"button",
|
||
"div",
|
||
"form",
|
||
"h2",
|
||
"h3",
|
||
"img",
|
||
"input",
|
||
"label",
|
||
"li",
|
||
"nav",
|
||
"ol",
|
||
"p",
|
||
"span",
|
||
"svg",
|
||
"ul"
|
||
];
|
||
var Primitive = NODES.reduce((primitive, node)=>{
|
||
const Node = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { asChild, ...primitiveProps } = props;
|
||
const Comp = asChild ? __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$slot$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$slot$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Slot"] : node;
|
||
if (typeof window !== "undefined") {
|
||
window[Symbol.for("radix-ui")] = true;
|
||
}
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(Comp, {
|
||
...primitiveProps,
|
||
ref: forwardedRef
|
||
});
|
||
});
|
||
Node.displayName = `Primitive.${node}`;
|
||
return {
|
||
...primitive,
|
||
[node]: Node
|
||
};
|
||
}, {});
|
||
function dispatchDiscreteCustomEvent(target, event) {
|
||
if (target) __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2d$dom$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["flushSync"](()=>target.dispatchEvent(event));
|
||
}
|
||
var Root = Primitive;
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-avatar@1.1.2_@types+react-dom@19.2.3_@types+react@19.2.6__@types+react@_3ee3dafa662d71951c1a3d5b289c96d1/node_modules/@radix-ui/react-avatar/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Avatar",
|
||
()=>Avatar,
|
||
"AvatarFallback",
|
||
()=>AvatarFallback,
|
||
"AvatarImage",
|
||
()=>AvatarImage,
|
||
"Fallback",
|
||
()=>Fallback,
|
||
"Image",
|
||
()=>Image,
|
||
"Root",
|
||
()=>Root,
|
||
"createAvatarScope",
|
||
()=>createAvatarScope
|
||
]);
|
||
// packages/react/avatar/src/Avatar.tsx
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$context$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$context$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-context@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$callback$2d$ref$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$callback$2d$ref$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$layout$2d$effect$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$layout$2d$effect$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-primitive@2.0.1_@types+react-dom@19.2.3_@types+react@19.2.6__@types+rea_4f53963f71a6eb8b0116fe0dd1078946/node_modules/@radix-ui/react-primitive/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
"use client";
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
var AVATAR_NAME = "Avatar";
|
||
var [createAvatarContext, createAvatarScope] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$context$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$context$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createContextScope"])(AVATAR_NAME);
|
||
var [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);
|
||
var Avatar = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { __scopeAvatar, ...avatarProps } = props;
|
||
const [imageLoadingStatus, setImageLoadingStatus] = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"]("idle");
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(AvatarProvider, {
|
||
scope: __scopeAvatar,
|
||
imageLoadingStatus,
|
||
onImageLoadingStatusChange: setImageLoadingStatus,
|
||
children: /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Primitive"].span, {
|
||
...avatarProps,
|
||
ref: forwardedRef
|
||
})
|
||
});
|
||
});
|
||
Avatar.displayName = AVATAR_NAME;
|
||
var IMAGE_NAME = "AvatarImage";
|
||
var AvatarImage = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { __scopeAvatar, src, onLoadingStatusChange = ()=>{}, ...imageProps } = props;
|
||
const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);
|
||
const imageLoadingStatus = useImageLoadingStatus(src, imageProps.referrerPolicy);
|
||
const handleLoadingStatusChange = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$callback$2d$ref$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$callback$2d$ref$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useCallbackRef"])({
|
||
"AvatarImage.useCallbackRef[handleLoadingStatusChange]": (status)=>{
|
||
onLoadingStatusChange(status);
|
||
context.onImageLoadingStatusChange(status);
|
||
}
|
||
}["AvatarImage.useCallbackRef[handleLoadingStatusChange]"]);
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$layout$2d$effect$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$layout$2d$effect$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useLayoutEffect"])({
|
||
"AvatarImage.useLayoutEffect": ()=>{
|
||
if (imageLoadingStatus !== "idle") {
|
||
handleLoadingStatusChange(imageLoadingStatus);
|
||
}
|
||
}
|
||
}["AvatarImage.useLayoutEffect"], [
|
||
imageLoadingStatus,
|
||
handleLoadingStatusChange
|
||
]);
|
||
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Primitive"].img, {
|
||
...imageProps,
|
||
ref: forwardedRef,
|
||
src
|
||
}) : null;
|
||
});
|
||
AvatarImage.displayName = IMAGE_NAME;
|
||
var FALLBACK_NAME = "AvatarFallback";
|
||
var AvatarFallback = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { __scopeAvatar, delayMs, ...fallbackProps } = props;
|
||
const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);
|
||
const [canRender, setCanRender] = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"](delayMs === void 0);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useEffect"]({
|
||
"AvatarFallback.useEffect": ()=>{
|
||
if (delayMs !== void 0) {
|
||
const timerId = window.setTimeout({
|
||
"AvatarFallback.useEffect.timerId": ()=>setCanRender(true)
|
||
}["AvatarFallback.useEffect.timerId"], delayMs);
|
||
return ({
|
||
"AvatarFallback.useEffect": ()=>window.clearTimeout(timerId)
|
||
})["AvatarFallback.useEffect"];
|
||
}
|
||
}
|
||
}["AvatarFallback.useEffect"], [
|
||
delayMs
|
||
]);
|
||
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Primitive"].span, {
|
||
...fallbackProps,
|
||
ref: forwardedRef
|
||
}) : null;
|
||
});
|
||
AvatarFallback.displayName = FALLBACK_NAME;
|
||
function useImageLoadingStatus(src, referrerPolicy) {
|
||
const [loadingStatus, setLoadingStatus] = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"]("idle");
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$layout$2d$effect$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$layout$2d$effect$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useLayoutEffect"])({
|
||
"useImageLoadingStatus.useLayoutEffect": ()=>{
|
||
if (!src) {
|
||
setLoadingStatus("error");
|
||
return;
|
||
}
|
||
let isMounted = true;
|
||
const image = new window.Image();
|
||
const updateStatus = {
|
||
"useImageLoadingStatus.useLayoutEffect.updateStatus": (status)=>({
|
||
"useImageLoadingStatus.useLayoutEffect.updateStatus": ()=>{
|
||
if (!isMounted) return;
|
||
setLoadingStatus(status);
|
||
}
|
||
})["useImageLoadingStatus.useLayoutEffect.updateStatus"]
|
||
}["useImageLoadingStatus.useLayoutEffect.updateStatus"];
|
||
setLoadingStatus("loading");
|
||
image.onload = updateStatus("loaded");
|
||
image.onerror = updateStatus("error");
|
||
image.src = src;
|
||
if (referrerPolicy) {
|
||
image.referrerPolicy = referrerPolicy;
|
||
}
|
||
return ({
|
||
"useImageLoadingStatus.useLayoutEffect": ()=>{
|
||
isMounted = false;
|
||
}
|
||
})["useImageLoadingStatus.useLayoutEffect"];
|
||
}
|
||
}["useImageLoadingStatus.useLayoutEffect"], [
|
||
src,
|
||
referrerPolicy
|
||
]);
|
||
return loadingStatus;
|
||
}
|
||
var Root = Avatar;
|
||
var Image = AvatarImage;
|
||
var Fallback = AvatarFallback;
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/download.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Download
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const Download = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("Download", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
||
key: "ih7n3h"
|
||
}
|
||
],
|
||
[
|
||
"polyline",
|
||
{
|
||
points: "7 10 12 15 17 10",
|
||
key: "2ggqvy"
|
||
}
|
||
],
|
||
[
|
||
"line",
|
||
{
|
||
x1: "12",
|
||
x2: "12",
|
||
y1: "15",
|
||
y2: "3",
|
||
key: "1vk2je"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=download.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/download.js [app-client] (ecmascript) <export default as Download>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Download",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$download$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$download$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/download.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/upload.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Upload
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const Upload = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("Upload", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
||
key: "ih7n3h"
|
||
}
|
||
],
|
||
[
|
||
"polyline",
|
||
{
|
||
points: "17 8 12 3 7 8",
|
||
key: "t8dd8p"
|
||
}
|
||
],
|
||
[
|
||
"line",
|
||
{
|
||
x1: "12",
|
||
x2: "12",
|
||
y1: "3",
|
||
y2: "15",
|
||
key: "widbto"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=upload.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/upload.js [app-client] (ecmascript) <export default as Upload>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Upload",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$upload$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$upload$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/upload.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/triangle-alert.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>TriangleAlert
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const TriangleAlert = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("TriangleAlert", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
||
key: "wmoenq"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M12 9v4",
|
||
key: "juzpu7"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M12 17h.01",
|
||
key: "p32p05"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=triangle-alert.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/triangle-alert.js [app-client] (ecmascript) <export default as AlertTriangle>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"AlertTriangle",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$triangle$2d$alert$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$triangle$2d$alert$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/triangle-alert.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>RefreshCw
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const RefreshCw = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("RefreshCw", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",
|
||
key: "v9h5vc"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M21 3v5h-5",
|
||
key: "1q7to0"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",
|
||
key: "3uifl3"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M8 16H3v5",
|
||
key: "1cv678"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=refresh-cw.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.js [app-client] (ecmascript) <export default as RefreshCw>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"RefreshCw",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$refresh$2d$cw$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$refresh$2d$cw$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/refresh-cw.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/file-text.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>FileText
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const FileText = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("FileText", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",
|
||
key: "1rqfz7"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M14 2v4a2 2 0 0 0 2 2h4",
|
||
key: "tnqrlb"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M10 9H8",
|
||
key: "b1mrlr"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M16 13H8",
|
||
key: "t4e002"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M16 17H8",
|
||
key: "z1uh3a"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=file-text.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/file-text.js [app-client] (ecmascript) <export default as FileText>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"FileText",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$file$2d$text$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$file$2d$text$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/file-text.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// See https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
||
__turbopack_context__.s([
|
||
"ErrorDuplicatePointer",
|
||
()=>ErrorDuplicatePointer,
|
||
"ErrorEmptyTree",
|
||
()=>ErrorEmptyTree,
|
||
"ErrorGedcomBase",
|
||
()=>ErrorGedcomBase,
|
||
"ErrorGedcomDecoding",
|
||
()=>ErrorGedcomDecoding,
|
||
"ErrorIndexing",
|
||
()=>ErrorIndexing,
|
||
"ErrorInvalidConcatenation",
|
||
()=>ErrorInvalidConcatenation,
|
||
"ErrorInvalidFileType",
|
||
()=>ErrorInvalidFileType,
|
||
"ErrorInvalidNesting",
|
||
()=>ErrorInvalidNesting,
|
||
"ErrorInvalidRecordDefinition",
|
||
()=>ErrorInvalidRecordDefinition,
|
||
"ErrorParse",
|
||
()=>ErrorParse,
|
||
"ErrorTokenization",
|
||
()=>ErrorTokenization,
|
||
"ErrorTreeStructure",
|
||
()=>ErrorTreeStructure,
|
||
"ErrorTreeSyntax",
|
||
()=>ErrorTreeSyntax,
|
||
"ErrorUnsupportedCharset",
|
||
()=>ErrorUnsupportedCharset
|
||
]);
|
||
const patchPrototype = (instance, target)=>{
|
||
const proto = target.prototype;
|
||
if (Object.setPrototypeOf) {
|
||
Object.setPrototypeOf(instance, proto);
|
||
} else {
|
||
("TURBOPACK compile-time value", void 0).__proto__ = proto; // eslint-disable-line no-proto
|
||
}
|
||
};
|
||
class ErrorGedcomBase extends Error {
|
||
constructor(message){
|
||
super(message);
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorParse extends ErrorGedcomBase {
|
||
constructor(message){
|
||
super(message);
|
||
this.message = message;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorInvalidFileType extends ErrorParse {
|
||
}
|
||
class ErrorGedcomDecoding extends ErrorParse {
|
||
constructor(message, illegalCode){
|
||
super(message);
|
||
this.illegalCode = illegalCode;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorUnsupportedCharset extends ErrorParse {
|
||
constructor(message, charset){
|
||
super(message);
|
||
this.charset = charset;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorTokenization extends ErrorParse {
|
||
constructor(message, lineNumber, line){
|
||
super(message);
|
||
this.lineNumber = lineNumber;
|
||
this.line = line;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorTreeSyntax extends ErrorParse {
|
||
constructor(message, lineNumber){
|
||
super(message);
|
||
this.lineNumber = lineNumber;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorInvalidNesting extends ErrorTreeSyntax {
|
||
constructor(message, lineNumber, currentLevel, level){
|
||
super(message, lineNumber);
|
||
this.lineNumber = lineNumber;
|
||
this.currentLevel = currentLevel;
|
||
this.level = level;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorInvalidConcatenation extends ErrorTreeSyntax {
|
||
constructor(message, lineNumber, kind){
|
||
super(message, lineNumber);
|
||
this.lineNumber = lineNumber;
|
||
this.kind = kind;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorInvalidRecordDefinition extends ErrorTreeSyntax {
|
||
constructor(message, lineNumber){
|
||
super(message, lineNumber);
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorTreeStructure extends ErrorParse {
|
||
constructor(message){
|
||
super(message);
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorEmptyTree extends ErrorTreeStructure {
|
||
constructor(message){
|
||
super(message);
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorIndexing extends ErrorParse {
|
||
constructor(message){
|
||
super(message);
|
||
patchPrototype(this, new.target);
|
||
}
|
||
}
|
||
class ErrorDuplicatePointer extends ErrorIndexing {
|
||
constructor(message, lineNumber, lineNumberOriginalDefinition, pointer){
|
||
super(message);
|
||
this.lineNumber = lineNumber;
|
||
this.lineNumberOriginalDefinition = lineNumberOriginalDefinition;
|
||
this.pointer = pointer;
|
||
patchPrototype(this, new.target);
|
||
}
|
||
} //# sourceMappingURL=error.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/tokenizer.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"tokenize",
|
||
()=>tokenize
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)");
|
||
;
|
||
const ccAlpha = 'A-Za-z';
|
||
const ccDigit = '0-9', ccNonZeroDigit = '1-9';
|
||
const ccAlphanum = `${ccAlpha}${ccDigit}`;
|
||
const cSpace = ' ';
|
||
const cDelim = `${cSpace}`;
|
||
const gEscapeText = `[${ccAlphanum}][${ccAlphanum}${cSpace}]*`;
|
||
const gEscape = `@#(?:${gEscapeText})@`;
|
||
const gIdentifierString = `[${ccAlphanum}-_]+`; // x: Allow '-' and '_'
|
||
const gLevel = `[${ccNonZeroDigit}][${ccDigit}]+|[${ccDigit}]`;
|
||
const ccDisallowed = '\\x00-\\x08\\x0A-\\x1F'; // x: include \xFF
|
||
const cCR = '\\r', cLF = '\\n';
|
||
const gLineChar = `[^${ccDisallowed}${cCR}${cLF}@]|@`; // x: Allow single at
|
||
const gLineText = `(?:${gLineChar})*`; // x: Allow empty strings
|
||
const gLineItem = `${gEscape}|${gLineText}|${gEscape}[${cDelim}]${gLineText}`;
|
||
const gXRefId = `@${gIdentifierString}@`;
|
||
const gPointer = `${gXRefId}`;
|
||
const gLineValue = `${gPointer}|(?:${gLineItem})`;
|
||
const gTag = `[${ccAlphanum}]+|_[${ccAlphanum}_]+`; // TODO
|
||
const gTerminator = `${cCR}${cLF}?|${cLF}`; // x: Allow \r
|
||
const gGedcomLine = `(${gLevel})(?:${cDelim}(${gXRefId}))?${cDelim}(${gTag})(?:${cDelim}(${gLineValue}))?(${gTerminator}|$)`; // x: Allow no trailing newline
|
||
/**
|
||
* The tokenizer implementation.
|
||
* Processes a file stored as a string, line by line, according to the `gGedcomLine` regular expression.
|
||
* A parameter in the constructor decides whether to raise an error when a line cannot be parsed or to fail silently.
|
||
* Code was not extracted further as a performance tradeoff.
|
||
*/ class GedcomTokenizer {
|
||
constructor(input, strict){
|
||
this.input = input;
|
||
this.strict = strict;
|
||
this.rGedcomLines = new RegExp(`^${gGedcomLine}`, 'gym'); // Must be newly created
|
||
this.linesRead = 0;
|
||
this.charactersRead = 0;
|
||
}
|
||
[Symbol.iterator]() {
|
||
return this;
|
||
}
|
||
next() {
|
||
const result = this.rGedcomLines.exec(this.input);
|
||
if (result === null || result[5].length === 0 && this.charactersRead + result[0].length !== this.input.length) {
|
||
if (result !== null) {
|
||
this.charactersRead += result[0].length;
|
||
}
|
||
const success = this.charactersRead === this.input.length;
|
||
if (this.strict && !success) {
|
||
const printCharactersMax = 256; // Avoid printing a super long line
|
||
const errorLine = this.input.substring(this.charactersRead, Math.min(this.charactersRead + printCharactersMax, this.input.length)).split(/[\r\n]+/, 1)[0];
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorTokenization"](`Invalid format for line ${this.linesRead + 1}: "${errorLine}"`, this.linesRead + 1, errorLine);
|
||
}
|
||
return {
|
||
done: true,
|
||
value: null
|
||
}; // Return
|
||
} else {
|
||
this.charactersRead += result[0].length; // Includes terminator
|
||
this.linesRead++;
|
||
return {
|
||
done: false,
|
||
value: result
|
||
}; // Yield
|
||
}
|
||
}
|
||
}
|
||
const tokenize = (input, strict = true)=>new GedcomTokenizer(input, strict); //# sourceMappingURL=tokenizer.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/structurer.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"buildTree",
|
||
()=>buildTree
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)");
|
||
;
|
||
const PROGRESS_INTERVAL = 50000;
|
||
const buildTree = (lines, noInlineContinuations = false, progressCallback = null)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
let i = 0;
|
||
let charsRead = 0;
|
||
let currentLevel = -1; // Current level
|
||
const stack = [
|
||
{
|
||
tag: null,
|
||
pointer: null,
|
||
value: null,
|
||
indexSource: -1,
|
||
indexRelative: 0,
|
||
children: []
|
||
}
|
||
];
|
||
for (const line of lines){
|
||
const [lineStr, levelStr, pointer, tag, value] = line;
|
||
// There is an unsolvable ambiguity here, so we just try our best and assume it is correct
|
||
const valueUnescaped = value ? value.replace(/@@/g, '@') : value;
|
||
charsRead += lineStr.length;
|
||
const level = parseInt(levelStr);
|
||
const isSameOrUpperLevel = level <= currentLevel, isDownLevel = level === currentLevel + 1;
|
||
if (level < 0 || !isSameOrUpperLevel && !isDownLevel) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidNesting"](`Illegal nesting level at line ${i + 1} (current is ${currentLevel}, got ${level})`, i + 1, currentLevel, level);
|
||
}
|
||
const levelDifference = currentLevel - level + 1;
|
||
for(let j = 0; j < levelDifference; j++){
|
||
stack.pop();
|
||
}
|
||
const parent = stack[stack.length - 1];
|
||
const siblings = parent.children;
|
||
if (tag === "CONC" /* Tag.Concatenation */ && !noInlineContinuations) {
|
||
if (pointer) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidConcatenation"](`Illegal concatenation format at line ${i + 1}`, i + 1, "CONC" /* Tag.Concatenation */ );
|
||
}
|
||
if (!parent) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidConcatenation"](`Concatenation with no parent at line ${i + 1}`, i + 1, "CONC" /* Tag.Concatenation */ );
|
||
}
|
||
if (parent.value == null) {
|
||
parent.value = '';
|
||
}
|
||
parent.value += valueUnescaped !== null && valueUnescaped !== void 0 ? valueUnescaped : '';
|
||
currentLevel = level - 1;
|
||
} else if (tag === "CONT" /* Tag.Continuation */ && !noInlineContinuations) {
|
||
if (pointer) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidConcatenation"](`Illegal continuation format at line ${i + 1}`, i + 1, "CONT" /* Tag.Continuation */ );
|
||
}
|
||
if (!parent) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidConcatenation"](`Continuation with no parent at line ${i + 1}`, i + 1, "CONT" /* Tag.Continuation */ );
|
||
}
|
||
const separator = '\n'; // TODO: hardcoded separator
|
||
if (parent.value == null) {
|
||
parent.value = '';
|
||
}
|
||
parent.value += separator + (valueUnescaped !== null && valueUnescaped !== void 0 ? valueUnescaped : '');
|
||
currentLevel = level - 1;
|
||
} else {
|
||
const child = {
|
||
tag,
|
||
pointer: pointer !== null && pointer !== void 0 ? pointer : null,
|
||
value: valueUnescaped !== null && valueUnescaped !== void 0 ? valueUnescaped : null,
|
||
indexSource: i,
|
||
indexRelative: parent.children.length,
|
||
children: []
|
||
};
|
||
siblings.push(child);
|
||
if (pointer && level > 0) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidRecordDefinition"](`Record must be a top-level definition at line ${i + 1}`, i + 1);
|
||
}
|
||
stack.push(child);
|
||
currentLevel = level;
|
||
}
|
||
i++;
|
||
if (progressCallback && i % PROGRESS_INTERVAL === 0) {
|
||
progressCallback(charsRead);
|
||
}
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(charsRead);
|
||
}
|
||
return stack[0]; // The top of the stack is the root node
|
||
}; //# sourceMappingURL=structurer.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/common.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* The iteration interval at which the next progress call should be performed.
|
||
*/ __turbopack_context__.s([
|
||
"BYTES_INTERVAL",
|
||
()=>BYTES_INTERVAL
|
||
]);
|
||
const BYTES_INTERVAL = 200000; //# sourceMappingURL=common.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/utf.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"BOM_UTF16_BE",
|
||
()=>BOM_UTF16_BE,
|
||
"BOM_UTF16_LE",
|
||
()=>BOM_UTF16_LE,
|
||
"BOM_UTF32_BE",
|
||
()=>BOM_UTF32_BE,
|
||
"BOM_UTF32_LE",
|
||
()=>BOM_UTF32_LE,
|
||
"BOM_UTF8",
|
||
()=>BOM_UTF8,
|
||
"DECODE_UTF16_BE",
|
||
()=>DECODE_UTF16_BE,
|
||
"DECODE_UTF16_LE",
|
||
()=>DECODE_UTF16_LE,
|
||
"DECODE_UTF8",
|
||
()=>DECODE_UTF8,
|
||
"decodeUtf",
|
||
()=>decodeUtf,
|
||
"decodeUtf16be",
|
||
()=>decodeUtf16be,
|
||
"decodeUtf16le",
|
||
()=>decodeUtf16le,
|
||
"decodeUtf8",
|
||
()=>decodeUtf8,
|
||
"decodeUtfBOM",
|
||
()=>decodeUtfBOM
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/common.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
const BOM_UTF8 = [
|
||
0xef,
|
||
0xbb,
|
||
0xbf
|
||
];
|
||
const BOM_UTF16_BE = [
|
||
0xfe,
|
||
0xff
|
||
];
|
||
const BOM_UTF16_LE = BOM_UTF16_BE.slice().reverse();
|
||
const BOM_UTF32_BE = [
|
||
0x00,
|
||
0x00,
|
||
0xfe,
|
||
0xff
|
||
];
|
||
const BOM_UTF32_LE = BOM_UTF32_BE.slice().reverse();
|
||
const DECODE_UTF8 = 'utf-8';
|
||
const DECODE_UTF16_BE = 'utf-16be';
|
||
const DECODE_UTF16_LE = 'utf-16le';
|
||
const decodeUtf = (buffer, progressCallback)=>{
|
||
const { output } = decodeUtfBOM(buffer, progressCallback);
|
||
return output;
|
||
};
|
||
const decodeUtf8 = (buffer, progressCallback)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
let outputView = '';
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
let nIdx = 0;
|
||
for(let nPart, nLen = byteBuffer.length; nIdx < nLen; nIdx++){
|
||
nPart = byteBuffer[nIdx];
|
||
outputView += String.fromCharCode(nPart > 251 && nPart < 254 && nIdx + 5 < nLen /* six bytes */ ? (nPart - 252) * 1073741824 + (byteBuffer[++nIdx] - 128 << 24) + (byteBuffer[++nIdx] - 128 << 18) + (byteBuffer[++nIdx] - 128 << 12) + (byteBuffer[++nIdx] - 128 << 6) + byteBuffer[++nIdx] - 128 : nPart > 247 && nPart < 252 && nIdx + 4 < nLen /* five bytes */ ? (nPart - 248 << 24) + (byteBuffer[++nIdx] - 128 << 18) + (byteBuffer[++nIdx] - 128 << 12) + (byteBuffer[++nIdx] - 128 << 6) + byteBuffer[++nIdx] - 128 : nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* four bytes */ ? (nPart - 240 << 18) + (byteBuffer[++nIdx] - 128 << 12) + (byteBuffer[++nIdx] - 128 << 6) + byteBuffer[++nIdx] - 128 : nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* three bytes */ ? (nPart - 224 << 12) + (byteBuffer[++nIdx] - 128 << 6) + byteBuffer[++nIdx] - 128 : nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* two bytes */ ? (nPart - 192 << 6) + byteBuffer[++nIdx] - 128 : /* nPart < 127 ? */ /* one byte */ nPart);
|
||
if (progressCallback && nIdx % __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BYTES_INTERVAL"] === 0) {
|
||
progressCallback(nIdx);
|
||
}
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(nIdx);
|
||
}
|
||
return outputView;
|
||
};
|
||
const decodeUtf16 = (buffer, isBe, progressCallback)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
let outputView = '';
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
for(let i = 0; i < byteBuffer.length; i += 2){
|
||
const a = byteBuffer[i], b = byteBuffer[i + 1];
|
||
const code = isBe ? a * 16 + b : b * 16 + a;
|
||
outputView += String.fromCharCode(code);
|
||
if (progressCallback && (i + 1) / 2 % __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BYTES_INTERVAL"] === 0) {
|
||
progressCallback(i);
|
||
}
|
||
}
|
||
return outputView;
|
||
};
|
||
const decodeUtf16be = (buffer, progressCallback)=>decodeUtf16(buffer, true, progressCallback);
|
||
const decodeUtf16le = (buffer, progressCallback)=>decodeUtf16(buffer, false, progressCallback);
|
||
const decodeUtfBOM = (buffer, progressCallback)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
const startsWith = (bom)=>{
|
||
if (byteBuffer.length < bom.length) {
|
||
return false;
|
||
}
|
||
for(let i = 0; i < bom.length; i++){
|
||
if (byteBuffer[i] !== bom[i]) {
|
||
return false;
|
||
}
|
||
}
|
||
return true;
|
||
};
|
||
const boms = [
|
||
[
|
||
DECODE_UTF8,
|
||
BOM_UTF8
|
||
],
|
||
[
|
||
DECODE_UTF16_BE,
|
||
BOM_UTF16_BE
|
||
],
|
||
[
|
||
DECODE_UTF16_LE,
|
||
BOM_UTF16_LE
|
||
]
|
||
];
|
||
const optional = boms.map(([charset, bom])=>({
|
||
charset,
|
||
bom
|
||
})).find(({ bom })=>startsWith(bom));
|
||
if ([
|
||
BOM_UTF32_BE,
|
||
BOM_UTF32_LE
|
||
].some((bom)=>startsWith(bom))) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorUnsupportedCharset"](`Unsupported charset detected from BOM: 'utf-32'`, 'utf-32');
|
||
}
|
||
const bomCharset = optional !== undefined ? optional.charset : null;
|
||
const byteBufferWithoutBOM = optional !== undefined ? byteBuffer.slice(optional.bom.length) : byteBuffer;
|
||
const charset = bomCharset !== null ? bomCharset : DECODE_UTF8; // No BOM = defaults to UTF-8
|
||
let output;
|
||
if (charset === DECODE_UTF8) {
|
||
output = decodeUtf8(byteBufferWithoutBOM);
|
||
} else if (charset === DECODE_UTF16_BE) {
|
||
output = decodeUtf16be(byteBufferWithoutBOM);
|
||
} else if (charset === DECODE_UTF16_LE) {
|
||
output = decodeUtf16le(byteBufferWithoutBOM);
|
||
} else {
|
||
throw new Error();
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(byteBuffer.length);
|
||
}
|
||
return {
|
||
output,
|
||
bomCharset
|
||
};
|
||
}; //# sourceMappingURL=utf.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoder.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"FileEncoding",
|
||
()=>FileEncoding,
|
||
"detectCharset",
|
||
()=>detectCharset,
|
||
"getFileMetadata",
|
||
()=>getFileMetadata
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/tokenizer.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$structurer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/structurer.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/utf.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
var FileEncoding;
|
||
(function(FileEncoding) {
|
||
FileEncoding["Utf8"] = "UTF-8";
|
||
FileEncoding["Ansel"] = "ANSEL";
|
||
FileEncoding["Cp1252"] = "Cp1252";
|
||
FileEncoding["Macintosh"] = "Macintosh";
|
||
FileEncoding["Cp850"] = "Cp850";
|
||
FileEncoding["Utf16be"] = "UTF-16be";
|
||
FileEncoding["Utf16le"] = "UTF-16le";
|
||
})(FileEncoding || (FileEncoding = {}));
|
||
const getFileMetadata = (buffer, maxPeekBytes = 5000, maxPeekLines = 200)=>{
|
||
const { output: inputHead, bomCharset } = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["decodeUtfBOM"])(buffer.slice(0, maxPeekBytes)); // Start with UTF-8 since file can contain a BOM
|
||
const hasBOM = bomCharset !== null;
|
||
const it = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["tokenize"])(inputHead, false); // Non-strict mode: break silently on error
|
||
let i = 0;
|
||
const array = [];
|
||
for (const line of it){
|
||
if (i >= maxPeekLines) {
|
||
break;
|
||
}
|
||
array.push(line);
|
||
i += 1;
|
||
}
|
||
const tree = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$structurer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["buildTree"])(array);
|
||
const header = tree.children.filter((c)=>c.tag === "HEAD" /* Tag.Header */ );
|
||
const char = header.flatMap((c)=>c.children.filter((n)=>n.tag === "CHAR" /* Tag.Character */ || n.tag === "CHARACTER" /* TagNonStandard.CharacterAlt */ ));
|
||
const charOpt = char.length > 0 ? char[0].value : null;
|
||
const source = header.flatMap((c)=>c.children.filter((n)=>n.tag === "SOUR" /* Tag.Source */ ));
|
||
const sourceOpt = source.length > 0 ? source[0].value : null;
|
||
const version = source.flatMap((c)=>c.children.filter((n)=>n.tag === "VERS" /* Tag.Version */ ));
|
||
const versionOpt = version.length > 0 ? version[0].value : null;
|
||
return {
|
||
sourceEncoding: charOpt,
|
||
sourceProvider: sourceOpt,
|
||
sourceProviderVersion: versionOpt,
|
||
fileHasBOM: hasBOM
|
||
};
|
||
};
|
||
const detectCharset = (buffer)=>{
|
||
// eslint-disable-next-line
|
||
const { sourceEncoding, sourceProvider, sourceProviderVersion, fileHasBOM } = getFileMetadata(buffer);
|
||
// Estimate an encoding without knowing the provider
|
||
function estimateEncoding() {
|
||
if (sourceEncoding === "UTF-8" /* ValueCharacterEncoding.Utf8 */ ) {
|
||
return "UTF-8" /* FileEncoding.Utf8 */ ;
|
||
} else if (sourceEncoding === "ANSEL" /* ValueCharacterEncoding.Ansel */ ) {
|
||
return "ANSEL" /* FileEncoding.Ansel */ ;
|
||
} else if (sourceEncoding === "ASCII" /* ValueCharacterEncoding.Ascii */ ) {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else if (sourceEncoding === "ANSI" /* ValueCharacterEncoding.Ansi */ ) {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else if (sourceEncoding === "UNICODE" /* ValueCharacterEncoding.Unicode */ ) {
|
||
return "UTF-16be" /* FileEncoding.Utf16be */ ; // RFC 2781
|
||
} else if (sourceEncoding === 'WINDOWS' || sourceEncoding === 'IBM WINDOWS') {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else if (sourceEncoding === 'MACINTOSH') {
|
||
return "Macintosh" /* FileEncoding.Macintosh */ ;
|
||
} else if (sourceEncoding === 'IBMPC') {
|
||
return "Cp850" /* FileEncoding.Cp850 */ ;
|
||
} else if (sourceEncoding === 'MSDOS') {
|
||
return "Cp850" /* FileEncoding.Cp850 */ ;
|
||
} else if (sourceEncoding === 'UNIX') {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else if (sourceEncoding === 'UTF8') {
|
||
return "UTF-8" /* FileEncoding.Utf8 */ ;
|
||
} else if (sourceEncoding === 'windows-1250') {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else {
|
||
return "UTF-8" /* FileEncoding.Utf8 */ ; // Defaults to UTF-8
|
||
}
|
||
}
|
||
if (fileHasBOM) {
|
||
return "UTF-8" /* FileEncoding.Utf8 */ ;
|
||
}
|
||
if (sourceProvider === 'GeneWeb') {
|
||
if (sourceEncoding === "ASCII" /* ValueCharacterEncoding.Ascii */ ) {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else if (sourceEncoding === "UTF-8" /* ValueCharacterEncoding.Utf8 */ ) {
|
||
return "UTF-8" /* FileEncoding.Utf8 */ ;
|
||
} else {
|
||
return estimateEncoding();
|
||
}
|
||
} else if (sourceProvider != null && sourceProvider.startsWith('HEREDIS')) {
|
||
if (sourceEncoding === "ANSI" /* ValueCharacterEncoding.Ansi */ ) {
|
||
return "Cp1252" /* FileEncoding.Cp1252 */ ;
|
||
} else {
|
||
return estimateEncoding();
|
||
}
|
||
} else if (sourceProvider === 'GENEATIQUE') {
|
||
if (sourceEncoding === "ANSEL" /* ValueCharacterEncoding.Ansel */ ) {
|
||
return "ANSEL" /* FileEncoding.Ansel */ ;
|
||
} else {
|
||
return estimateEncoding();
|
||
}
|
||
} else if (sourceProvider === 'Gramps') {
|
||
if (sourceEncoding === "UTF-8" /* ValueCharacterEncoding.Utf8 */ ) {
|
||
return "UTF-8" /* FileEncoding.Utf8 */ ;
|
||
} else {
|
||
return estimateEncoding();
|
||
}
|
||
} else {
|
||
return estimateEncoding();
|
||
}
|
||
}; //# sourceMappingURL=decoder.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/ansel.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"decodeAnsel",
|
||
()=>decodeAnsel
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/common.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
const ANSEL_KEYS_1 = '8d8ea1a2a3a4a5a6a7a8a9aaabacadaeb0b1b2b3b4b5b6b7b8b9babcbdc0c1c2c3c4c5c6cfe0e1e2e3e4e5e6e7e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfe818889929394c7c8e8bebfcdce';
|
||
const ANSEL_VALUES_1 = '\u200d\u200c\u0141\xd8\xd0\xde\xc6\u0152\u02b9\xb7\u266d\xae\xb1\u01a0\u01af\u02be\xb0\u0142\xf8\u0111\xfe\xe6\u0153\u02ba\u0131\xa3\xf0\u01a1\u01b0\xb0\u2113\u2117\xa9\u266f\xbf\xa1\xdf\u0309\u0300\u0301\u0302\u0303\u0304\u0306\u0307\u030c\u030a\ufe20\ufe21\u0315\u030b\u0310\u0327\u0328\u0323\u0324\u0325\u0333\u0332\u0326\u031c\u032e\ufe22\ufe23\u0313\xfc\x98\x9c\'\u201c\u201d\xdf\u20ac\u0308\u25af\u25aeeo';
|
||
const ANSEL_KEYS_2 = 'e020e041e045e049e04fe055e059e061e065e069e06fe075e079e120e141e145e149e14fe155e157e159e161e165e169e16fe175e177e179e220e241e243e245e247e249e24be24ce24de24ee24fe250e252e253e255e257e259e25ae261e263e265e267e269e26be26ce26de26ee26fe270e272e273e275e277e279e27ae2a5e2b5e320e341e343e345e347e348e349e34ae34fe353e355e357e359e35ae361e363e365e367e368e369e36ae36fe373e375e377e379e37ae420e441e445e449e44ee44fe455e456e459e461e465e469e46ee46fe475e476e479e520e541e545e547e549e54fe555e561e565e567e569e56fe575e5a5e5b5e620e641e645e647e649e64fe655e661e665e667e669e66fe675e720e742e743e744e745e746e747e748e749e74de74ee750e752e753e754e757e758e759e75ae762e763e764e765e766e767e768e76de76ee770e772e773e774e777e778e779e77ae820e841e845e848e849e84fe855e857e858e859e861e865e868e869e86fe874e875e877e878e879e920e941e943e944e945e947e949e94be94ce94ee94fe952e953e954e955e95ae961e963e964e965e967e969e96ae96be96ce96ee96fe972e973e974e975e97aea20ea41ea61ea75ea77ea79eaaded20ee20ee4fee55ee6fee75f020f043f044f047f048f04bf04cf04ef052f053f054f063f064f067f068f06bf06cf06ef072f073f074f120f141f145f149f14ff155f161f165f169f16ff175f241f242f244f245f248f249f24bf24cf24df24ef24ff252f253f254f255f256f257f259f25af261f262f264f265f268f269f26bf26cf26df26ef26ff272f273f274f275f276f277f279f27af355f375f441f461f520f948f968fc20fc41fc43fc45fc4bfc4cfc4ffc51fc54fc56fc61fc63fc65fc6bfc6cfc6ffc71fc74fc76d741d742d743d744d745d746d747d748d749d74ad74bd74cd74dd74ed74fd750d751d752d753d754d755d756d757d758d761d762d763d764d765d766d767d768d769d76ad76bd76cd76dd76ed76fd770d771d772d773d774d775d776d777d778d779d824d841d842d843d844d845d846d847d848d849d84bd84cd84dd84ed84fd850d851d852d853d854d855d856d857d858d85ad861d862d863d864d865d866d867d868d869d86bd86cd86dd86ed86fd870d871d872d873d874d875d876d877d878d87ad920d921d922d923d924d925d926d927d928d929d92ad92bd92cd92dd92ed92fd930d931d932d933d941d942d943d944d945d946d947d948d949d94ad94cd94dd94ed94fd950d951d952d953d954d955d956d957d958d959d95ad961d962d963d964d965d966d967d968d969d96ad96bd96cd96dd96ed96fd970d971d972d973d974d975d976d977d979d97ad97bd97c';
|
||
const ANSEL_VALUES_2 = '\u02c0\u1ea2\u1eba\u1ec8\u1ece\u1ee6\u1ef6\u1ea3\u1ebb\u1ec9\u1ecf\u1ee7\u1ef7\u02cb\xc0\xc8\xcc\xd2\xd9\u1e80\u1ef2\xe0\xe8\xec\xf2\xf9\u1e81\u1ef3\u02ca\xc1\u0106\xc9\u01f4\xcd\u1e30\u0139\u1e3e\u0143\xd3\u1e54\u0154\u015a\xda\u1e82\xdd\u0179\xe1\u0107\xe9\u01f5\xed\u1e31\u013a\u1e3f\u0144\xf3\u1e55\u0155\u015b\xfa\u1e83\xfd\u017a\u01fc\u01fd\u02c6\xc2\u0108\xca\u011c\u0124\xce\u0134\xd4\u015c\xdb\u0174\u0176\u1e90\xe2\u0109\xea\u011d\u0125\xee\u0135\xf4\u015d\xfb\u0175\u0177\u1e91\u02dc\xc3\u1ebc\u0128\xd1\xd5\u0168\u1e7c\u1ef8\xe3\u1ebd\u0129\xf1\xf5\u0169\u1e7d\u1ef9\u02c9\u0100\u0112\u1e20\u012a\u014c\u016a\u0101\u0113\u1e21\u012b\u014d\u016b\u01e2\u01e3\u02d8\u0102\u0114\u011e\u012c\u014e\u016c\u0103\u0115\u011f\u012d\u014f\u016d\u02d9\u1e02\u010a\u1e0a\u0116\u1e1e\u0120\u1e22\u0130\u1e40\u1e44\u1e56\u1e58\u1e60\u1e6a\u1e86\u1e8a\u1e8e\u017b\u1e03\u010b\u1e0b\u0117\u1e1f\u0121\u1e23\u1e41\u1e45\u1e57\u1e59\u1e61\u1e6b\u1e87\u1e8b\u1e8f\u017c\xa8\xc4\xcb\u1e26\xcf\xd6\xdc\u1e84\u1e8c\u0178\xe4\xeb\u1e27\xef\xf6\u1e97\xfc\u1e85\u1e8d\xff\u02c7\u01cd\u010c\u010e\u011a\u01e6\u01cf\u01e8\u013d\u0147\u01d1\u0158\u0160\u0164\u01d3\u017d\u01ce\u010d\u010f\u011b\u01e7\u01d0\u01f0\u01e9\u013e\u0148\u01d2\u0159\u0161\u0165\u01d4\u017e\u02da\xc5\xe5\u016f\u1e98\u1e99\u016e\u02bc\u02dd\u0150\u0170\u0151\u0171\xb8\xc7\u1e10\u0122\u1e28\u0136\u013b\u0145\u0156\u015e\u0162\xe7\u1e11\u0123\u1e29\u0137\u013c\u0146\u0157\u015f\u0163\u02db\u0104\u0118\u012e\u01ea\u0172\u0105\u0119\u012f\u01eb\u0173\u1ea0\u1e04\u1e0c\u1eb8\u1e24\u1eca\u1e32\u1e36\u1e42\u1e46\u1ecc\u1e5a\u1e62\u1e6c\u1ee4\u1e7e\u1e88\u1ef4\u1e92\u1ea1\u1e05\u1e0d\u1eb9\u1e25\u1ecb\u1e33\u1e37\u1e43\u1e47\u1ecd\u1e5b\u1e63\u1e6d\u1ee5\u1e7f\u1e89\u1ef5\u1e93\u1e72\u1e73\u1e00\u1e01\u2017\u1e2a\u1e2b\u0338\u023a\u023b\u0246\ua742\u0141\xd8\ua758\u023e\ua75e\u2c65\u023c\u0247\ua743\u0142\xf8\ua759\u2c66\ua75f\u2550\u2551\u2557\u255d\u255a\u2554\u2563\u2569\u2560\u2566\u256c\u2562\u2567\u255f\u2564\u2561\u2568\u255e\u2565\u256a\u2591\u2592\u2593\u2588\u2500\u2502\u2510\u2518\u2514\u250c\u2524\u2534\u251c\u252c\u253c\u2555\u255b\u2558\u2552\u2556\u255c\u2559\u2553\u256b\u258c\u2580\u2590\u2584\u25aa\u03c2\u0391\u0392\u03a5\u0394\u0395\u03a6\u0393\u03a8\u0399\u039a\u039b\u039c\u039d\u039f\u03a0\u03a7\u03a1\u03a3\u03a4\u03a9\u0398\u0397\u039e\u0396\u03b1\u03b2\u03c5\u03b4\u03b5\u03c6\u03b3\u03c8\u03b9\u03ba\u03bb\u03bc\u03bd\u03bf\u03c0\u03c7\u03c1\u03c3\u03c4\u03c9\u03b8\u03b7\u03be\u03b6\u0e3f\xa2\xa5\u20a7\u0192\xa4\u20a4\u20a0\u20a1\u20a2\u20a3\u20a5\u20a6\u20a8\u20a9\u20aa\u20ac\xb9\xb2\xb3\xaa\xba\xab\xbb\xa6\xb6\xa7\u2310\u2020\u2021\u2122\ufb01\ufb02\u2039\u203a\u2030\u2026\u201c\u201d\u201a\u201e\u2022\u2013\xa0\xb5\xbd\xbc\xbe\u221e\u2205\u2208\u2229\xac\u2261\xd7\u2265\u2264\xf7\u2248\u22c5\u2320\u2321\u221a\u2044\u2018\u2019\u2014\xad\u20ad\u20ae\u20af\u20ab';
|
||
const REPLACEMENT_CHARACTER = '\ufffd';
|
||
const decodeAnsel = (buffer, progressCallback, strict)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
const createTable = (keys, keysStride, values)=>{
|
||
const map = new Map();
|
||
for(let i = 0; i < keys.length; i++){
|
||
map.set(parseInt(keys.substring(i * keysStride, (i + 1) * keysStride), 16), values.charCodeAt(i));
|
||
}
|
||
return map;
|
||
};
|
||
const table1 = createTable(ANSEL_KEYS_1, 2, ANSEL_VALUES_1), table2 = createTable(ANSEL_KEYS_2, 4, ANSEL_VALUES_2);
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
const output = [];
|
||
let i = 0;
|
||
let pending = byteBuffer[i];
|
||
i++;
|
||
while(pending !== undefined){
|
||
const b = pending;
|
||
pending = byteBuffer[i];
|
||
i++;
|
||
if (b < 128) {
|
||
output.push(String.fromCharCode(b));
|
||
} else if (pending !== undefined && (b >= 0xE0 && b <= 0xFF || b >= 0xD7 && b <= 0xD9)) {
|
||
// Two bytes
|
||
const code = b * 256 + pending;
|
||
const u = table2.get(code);
|
||
if (u !== undefined) {
|
||
pending = byteBuffer[i];
|
||
i++;
|
||
output.push(String.fromCharCode(u));
|
||
} else if (!strict) {
|
||
pending = byteBuffer[i];
|
||
i++;
|
||
output.push(REPLACEMENT_CHARACTER);
|
||
} else {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorGedcomDecoding"](`Illegal ANSEL character code: ${code}`, code);
|
||
}
|
||
} else {
|
||
// One byte
|
||
const u = table1.get(b);
|
||
const c = String.fromCharCode(u !== undefined ? u : 0xFFFD);
|
||
output.push(c);
|
||
}
|
||
if (progressCallback && i % __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BYTES_INTERVAL"] === 0) {
|
||
progressCallback(i);
|
||
}
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(i);
|
||
}
|
||
return output.join('');
|
||
}; //# sourceMappingURL=ansel.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/cp1252.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// https://stackoverflow.com/a/4129920/4413709
|
||
__turbopack_context__.s([
|
||
"decodeCp1252",
|
||
()=>decodeCp1252
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/common.js [app-client] (ecmascript)");
|
||
;
|
||
const CP1252_TABLE = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u20ac\ufffd\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\ufffd\u017d\ufffd\ufffd\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\ufffd\u017e\u0178\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff';
|
||
const decodeCp1252 = (buffer, progressCallback)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
let outputView = '';
|
||
let i = 0;
|
||
for(; i < byteBuffer.length; i++){
|
||
outputView += CP1252_TABLE.charAt(byteBuffer[i]);
|
||
if (progressCallback && i % __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BYTES_INTERVAL"] === 0) {
|
||
progressCallback(i);
|
||
}
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(i);
|
||
}
|
||
return outputView;
|
||
}; //# sourceMappingURL=cp1252.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/cp850.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// Generated according to https://en.wikipedia.org/wiki/Code_page_437
|
||
__turbopack_context__.s([
|
||
"decodeCp850",
|
||
()=>decodeCp850
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/common.js [app-client] (ecmascript)");
|
||
;
|
||
const CP850_TABLE = '\xc7\xfc\xe9\xe2\xe4\xe0\xe5\xe7\xea\xeb\xe8\xef\xee\xec\xc4\xc5\xc9\xe6\xc6\xf4\xf6\xf2\xfb\xf9\xff\xd6\xdc\xf8\xa3\xd8\xd7\u0192\xe1\xed\xf3\xfa\xf1\xd1\xaa\xba\xbf\xae\xac\xbd\xbc\xa1\xab\xbb\u2591\u2592\u2593\u2502\u2524\xc1\xc2\xc0\xa9\u2563\u2551\u2557\u255d\xa2\xa5\u2510\u2514\u2534\u252c\u251c\u2500\u253c\xe3\xc3\u255a\u2554\u2569\u2566\u2560\u2550\u256c\xa4\xf0\xd0\xca\xcb\xc8\u0131\xcd\xce\xcf\u2518\u250c\u2588\u2584\xa6\xcc\u2580\xd3\xdf\xd4\xd2\xf5\xd5\xb5\xfe\xde\xda\xdb\xd9\xfd\xdd\xaf\xb4\xad\xb1\u2017\xbe\xb6\xa7\xf7\xb8\xb0\xa8\xb7\xb9\xb3\xb2';
|
||
const decodeCp850 = (buffer, progressCallback)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
let outputView = '';
|
||
let i = 0;
|
||
for(; i < byteBuffer.length; i++){
|
||
const code = byteBuffer[i];
|
||
outputView += code < 128 ? String.fromCharCode(code) : CP850_TABLE.charAt(code - 128);
|
||
if (progressCallback && i % __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BYTES_INTERVAL"] === 0) {
|
||
progressCallback(i);
|
||
}
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(i);
|
||
}
|
||
return outputView;
|
||
}; //# sourceMappingURL=cp850.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/macintosh.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// Generated according to https://en.wikipedia.org/wiki/Mac_OS_Roman
|
||
__turbopack_context__.s([
|
||
"decodeMacintosh",
|
||
()=>decodeMacintosh
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/common.js [app-client] (ecmascript)");
|
||
;
|
||
const MACINTOSH_TABLE = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\u2318\u2713\u25c6\uf8ff\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7f\xc4\xc5\xc7\xc9\xd1\xd6\xdc\xe1\xe0\xe2\xe4\xe3\xe5\xe7\xe9\xe8\xea\xeb\xed\xec\xee\xef\xf1\xf3\xf2\xf4\xf6\xf5\xfa\xf9\xfb\xfc\u2020\xb0\xa2\xa3\xa7\u2022\xb6\xdf\xae\xa9\u2122\xb4\xa8\u2260\xc6\xd8\u221e\xb1\u2264\u2265\xa5\xb5\u2202\u2211\u220f\u03c0\u222b\xaa\xba\u03a9\xe6\xf8\xbf\xa1\xac\u221a\u0192\u2248\u2206\xab\xbb\u2026\xa0\xc0\xc3\xd5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\xf7\u25ca\xff\u0178\u2044\u20ac\u2039\u203a\ufb01\ufb02\u2021\xb7\u201a\u201e\u2030\xc2\xca\xc1\xcb\xc8\xcd\xce\xcf\xcc\xd3\xd4\uf8ff\xd2\xda\xdb\xd9\u0131\u02c6\u02dc\xaf\u02d8\u02d9\u02da\xb8\u02dd\u02db\u02c7';
|
||
const decodeMacintosh = (buffer, progressCallback)=>{
|
||
if (progressCallback) {
|
||
progressCallback(0);
|
||
}
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
let outputView = '';
|
||
let i = 0;
|
||
for(; i < byteBuffer.length; i++){
|
||
outputView += MACINTOSH_TABLE.charAt(byteBuffer[i]);
|
||
if (progressCallback && i % __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$common$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BYTES_INTERVAL"] === 0) {
|
||
progressCallback(0);
|
||
}
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback(i);
|
||
}
|
||
return outputView;
|
||
}; //# sourceMappingURL=macintosh.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/indexer.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"indexTree",
|
||
()=>indexTree
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)");
|
||
;
|
||
const PROGRESS_TRAVERSE_INTERVAL = 50000;
|
||
const PROGRESS_ITERATE_INTERVAL = 5000;
|
||
const indexTree = (rootNode, noBackwardsReferencesIndex = false, doHideIndex = false, progressCallback = null)=>{
|
||
if (progressCallback) {
|
||
progressCallback();
|
||
}
|
||
let i = 0;
|
||
const stack = [
|
||
[
|
||
rootNode,
|
||
0
|
||
]
|
||
];
|
||
while(stack.length > 0){
|
||
const [node, childIndex] = stack[stack.length - 1]; // Peek
|
||
if (childIndex < node.children.length) {
|
||
stack.push([
|
||
node.children[childIndex],
|
||
0
|
||
]); // Push
|
||
} else {
|
||
// eslint-disable-next-line
|
||
const [node, _] = stack.pop(); // Pop
|
||
if (stack.length > 0) {
|
||
stack[stack.length - 1][1]++; // Next child
|
||
}
|
||
indexNode(node, !doHideIndex); // Index
|
||
if (stack.length === 0) {
|
||
indexRecords(node); // Index records on root node
|
||
}
|
||
}
|
||
i++;
|
||
if (progressCallback && i % PROGRESS_TRAVERSE_INTERVAL === 0) {
|
||
progressCallback();
|
||
}
|
||
}
|
||
if (!noBackwardsReferencesIndex) {
|
||
indexBackwardsReferences(rootNode, progressCallback);
|
||
}
|
||
if (progressCallback) {
|
||
progressCallback();
|
||
}
|
||
};
|
||
const indexNode = (node, enumerable)=>{
|
||
const byTag = {};
|
||
node.children.forEach((child, idx)=>{
|
||
if (child.tag !== null) {
|
||
if (byTag[child.tag] === undefined) {
|
||
byTag[child.tag] = [];
|
||
}
|
||
byTag[child.tag].push(idx);
|
||
}
|
||
});
|
||
Object.defineProperty(node, '_index', {
|
||
enumerable,
|
||
configurable: true,
|
||
writable: true
|
||
});
|
||
node._index = {
|
||
byTag
|
||
};
|
||
};
|
||
const indexRecords = (nodeRoot)=>{
|
||
const byTagPointer = {};
|
||
nodeRoot.children.forEach((child, idx)=>{
|
||
if (child.tag !== null) {
|
||
if (child.pointer !== null) {
|
||
if (byTagPointer[child.tag] === undefined) {
|
||
byTagPointer[child.tag] = {};
|
||
}
|
||
if (byTagPointer[child.tag][child.pointer] !== undefined) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorDuplicatePointer"](`Duplicate pointer: ${child.pointer}`, child.indexSource + 1, nodeRoot.children[byTagPointer[child.tag][child.pointer]].indexSource, child.pointer);
|
||
}
|
||
byTagPointer[child.tag][child.pointer] = idx;
|
||
}
|
||
}
|
||
});
|
||
// We assume that the index is defined
|
||
nodeRoot._index.byTagPointer = byTagPointer;
|
||
};
|
||
const indexBackwardsReferences = (rootNode, progressCallback = null)=>{
|
||
const get = (object, key, def)=>{
|
||
const value = object[key];
|
||
return value != null ? value : def;
|
||
};
|
||
const index = rootNode._index; // We assume that the index is defined
|
||
const families = get(index.byTagPointer, "FAM" /* Tag.Family */ , {});
|
||
const asSpouse = {}, asChild = {};
|
||
Object.values(families).forEach((familyIdx, i)=>{
|
||
const family = rootNode.children[familyIdx];
|
||
const familyIndex = family._index; // Also safe, by assumption
|
||
for (const spouseType of [
|
||
"HUSB" /* Tag.Husband */ ,
|
||
"WIFE" /* Tag.Wife */
|
||
]){
|
||
for (const spouseIdx of get(familyIndex.byTag, spouseType, [])){
|
||
const spouseId = family.children[spouseIdx].value;
|
||
if (spouseId !== null) {
|
||
if (asSpouse[spouseId] !== undefined) {
|
||
asSpouse[spouseId].push(familyIdx);
|
||
} else {
|
||
asSpouse[spouseId] = [
|
||
familyIdx
|
||
];
|
||
}
|
||
}
|
||
}
|
||
}
|
||
for (const childIdx of get(familyIndex.byTag, "CHIL" /* Tag.Child */ , [])){
|
||
const childId = family.children[childIdx].value;
|
||
if (childId !== null) {
|
||
if (asChild[childId] !== undefined) {
|
||
asChild[childId].push(familyIdx);
|
||
} else {
|
||
asChild[childId] = [
|
||
familyIdx
|
||
];
|
||
}
|
||
}
|
||
}
|
||
if (progressCallback && i % PROGRESS_ITERATE_INTERVAL === 0) {
|
||
progressCallback();
|
||
}
|
||
});
|
||
index.asSpouse = asSpouse;
|
||
index.asChild = asChild;
|
||
}; //# sourceMappingURL=indexer.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/reader.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"parseGedcom",
|
||
()=>parseGedcom
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoder$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoder.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/utf.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$ansel$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/ansel.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$cp1252$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/cp1252.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$cp850$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/cp850.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$macintosh$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/decoding/macintosh.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/error.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$indexer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/indexer.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$structurer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/structurer.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/read-gedcom@0.3.2/node_modules/read-gedcom/dist/es6/parse/tokenizer.js [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const parseGedcom = (buffer, options = {})=>{
|
||
checkMagicHeader(buffer);
|
||
const charset = options.forcedCharset == null ? (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoder$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["detectCharset"])(buffer) : options.forcedCharset;
|
||
const callback = options.progressCallback;
|
||
const totalBytes = buffer.byteLength;
|
||
const decodingCallback = callback ? (bytesRead)=>callback(0 /* GedcomReadingPhase.Decoding */ , bytesRead / totalBytes) : undefined;
|
||
let input;
|
||
if (charset === "UTF-8" /* FileEncoding.Utf8 */ || charset === "UTF-16be" /* FileEncoding.Utf16be */ || charset === "UTF-16le" /* FileEncoding.Utf16le */ ) {
|
||
input = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["decodeUtf"])(buffer, decodingCallback);
|
||
} else if (charset === "Cp1252" /* FileEncoding.Cp1252 */ ) {
|
||
input = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$cp1252$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["decodeCp1252"])(buffer, decodingCallback);
|
||
} else if (charset === "ANSEL" /* FileEncoding.Ansel */ ) {
|
||
input = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$ansel$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["decodeAnsel"])(buffer, decodingCallback, !!options.doStrictDecoding);
|
||
} else if (charset === "Macintosh" /* FileEncoding.Macintosh */ ) {
|
||
input = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$macintosh$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["decodeMacintosh"])(buffer, decodingCallback);
|
||
} else if (charset === "Cp850" /* FileEncoding.Cp850 */ ) {
|
||
input = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$cp850$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["decodeCp850"])(buffer, decodingCallback);
|
||
} else {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorUnsupportedCharset"](`Unsupported charset: ${charset}`, charset);
|
||
}
|
||
const totalChars = input.length;
|
||
const tokensIterator = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$tokenizer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["tokenize"])(input);
|
||
const rootNode = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$structurer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["buildTree"])(tokensIterator, !!options.noInlineContinuations, callback ? (charsRead)=>callback(1 /* GedcomReadingPhase.TokenizationAndStructuring */ , charsRead / totalChars) : null);
|
||
checkTreeStructure(rootNode);
|
||
if (!options.noIndex) {
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$indexer$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["indexTree"])(rootNode, !!options.noBackwardsReferencesIndex, !!options.doHideIndex, callback ? ()=>callback(2 /* GedcomReadingPhase.Indexing */ , null) : null);
|
||
}
|
||
if (options.doFreeze) {
|
||
if (callback) {
|
||
callback(3 /* GedcomReadingPhase.Freezing */ , 0);
|
||
}
|
||
deepFreeze(rootNode);
|
||
if (callback) {
|
||
callback(3 /* GedcomReadingPhase.Freezing */ , 1);
|
||
}
|
||
}
|
||
return rootNode;
|
||
};
|
||
/**
|
||
* A simple and fast testing procedure to eliminate files that are clearly not Gedcoms.
|
||
* @param buffer The content of the file
|
||
*/ const checkMagicHeader = (buffer)=>{
|
||
const headStr = '0 HEAD';
|
||
const head = [];
|
||
for(let i = 0; i < headStr.length; i++){
|
||
head.push(headStr.charCodeAt(i));
|
||
}
|
||
const byteBuffer = new Uint8Array(buffer);
|
||
const startsWith = (bytes)=>{
|
||
if (byteBuffer.byteLength < bytes.length) {
|
||
return false;
|
||
}
|
||
for(let i = 0; i < bytes.length; i++){
|
||
if (bytes[i] !== byteBuffer[i]) {
|
||
return false;
|
||
}
|
||
}
|
||
return true;
|
||
};
|
||
if (!startsWith(head) && !startsWith(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BOM_UTF8"].concat(head))) {
|
||
const headUtf16 = head.map((b)=>[
|
||
0,
|
||
b
|
||
]);
|
||
if (!startsWith(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BOM_UTF16_BE"].concat(headUtf16.flat())) && !startsWith(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BOM_UTF16_LE"].concat(headUtf16.map((bs)=>bs.slice().reverse()).flat()))) {
|
||
const headUtf32 = head.map((b)=>[
|
||
0,
|
||
0,
|
||
0,
|
||
b
|
||
]);
|
||
if (!startsWith(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BOM_UTF32_BE"].concat(headUtf32.flat())) && !startsWith(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$decoding$2f$utf$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["BOM_UTF32_LE"].concat(headUtf32.map((bs)=>bs.slice().reverse()).flat()))) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorInvalidFileType"]('Probably not a Gedcom file');
|
||
}
|
||
}
|
||
}
|
||
};
|
||
/**
|
||
* A simple procedure verifying that the root node starts with a {@link Tag.Header} and ends with a {@link Tag.Trailer}.
|
||
* @param rootNode The root node
|
||
*/ const checkTreeStructure = (rootNode)=>{
|
||
const root = rootNode.children;
|
||
// Assumes that `root.length > 0`
|
||
const header = root[0];
|
||
if (header.tag !== "HEAD" /* Tag.Header */ ) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorTreeStructure"](`First node is not a header (got ${header.tag})`);
|
||
}
|
||
const trailer = root[root.length - 1];
|
||
if (trailer.tag !== "TRLR" /* Tag.Trailer */ ) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$read$2d$gedcom$40$0$2e$3$2e$2$2f$node_modules$2f$read$2d$gedcom$2f$dist$2f$es6$2f$parse$2f$error$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["ErrorTreeStructure"](`Last node is not a trailer (got ${trailer.tag})`);
|
||
}
|
||
};
|
||
/**
|
||
* Freezes this object to prevent further modifications.
|
||
* @param object The object to be frozen
|
||
*/ const deepFreeze = (object)=>{
|
||
let queue = [
|
||
object
|
||
];
|
||
while(queue.length > 0){
|
||
const next = [];
|
||
queue.forEach((obj)=>{
|
||
if (obj != null && typeof obj === 'object' && !Object.isFrozen(obj)) {
|
||
Object.freeze(obj);
|
||
Object.getOwnPropertyNames(obj).forEach((property)=>next.push(obj[property]));
|
||
}
|
||
});
|
||
queue = next;
|
||
}
|
||
}; //# sourceMappingURL=reader.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/core/primitive/src/primitive.tsx
|
||
__turbopack_context__.s([
|
||
"composeEventHandlers",
|
||
()=>composeEventHandlers
|
||
]);
|
||
function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
||
return function handleEvent(event) {
|
||
originalEventHandler?.(event);
|
||
if (checkForDefaultPrevented === false || !event.defaultPrevented) {
|
||
return ourEventHandler?.(event);
|
||
}
|
||
};
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/use-controllable-state/src/useControllableState.tsx
|
||
__turbopack_context__.s([
|
||
"useControllableState",
|
||
()=>useControllableState
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$callback$2d$ref$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$callback$2d$ref$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-callback-ref@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
function useControllableState({ prop, defaultProp, onChange = ()=>{} }) {
|
||
const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({
|
||
defaultProp,
|
||
onChange
|
||
});
|
||
const isControlled = prop !== void 0;
|
||
const value = isControlled ? prop : uncontrolledProp;
|
||
const handleChange = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$callback$2d$ref$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$callback$2d$ref$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useCallbackRef"])(onChange);
|
||
const setValue = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useCallback"]({
|
||
"useControllableState.useCallback[setValue]": (nextValue)=>{
|
||
if (isControlled) {
|
||
const setter = nextValue;
|
||
const value2 = typeof nextValue === "function" ? setter(prop) : nextValue;
|
||
if (value2 !== prop) handleChange(value2);
|
||
} else {
|
||
setUncontrolledProp(nextValue);
|
||
}
|
||
}
|
||
}["useControllableState.useCallback[setValue]"], [
|
||
isControlled,
|
||
prop,
|
||
setUncontrolledProp,
|
||
handleChange
|
||
]);
|
||
return [
|
||
value,
|
||
setValue
|
||
];
|
||
}
|
||
function useUncontrolledState({ defaultProp, onChange }) {
|
||
const uncontrolledState = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"](defaultProp);
|
||
const [value] = uncontrolledState;
|
||
const prevValueRef = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRef"](value);
|
||
const handleChange = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$callback$2d$ref$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$callback$2d$ref$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useCallbackRef"])(onChange);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useEffect"]({
|
||
"useUncontrolledState.useEffect": ()=>{
|
||
if (prevValueRef.current !== value) {
|
||
handleChange(value);
|
||
prevValueRef.current = value;
|
||
}
|
||
}
|
||
}["useUncontrolledState.useEffect"], [
|
||
value,
|
||
prevValueRef,
|
||
handleChange
|
||
]);
|
||
return uncontrolledState;
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-previous@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/use-previous/src/usePrevious.tsx
|
||
__turbopack_context__.s([
|
||
"usePrevious",
|
||
()=>usePrevious
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
;
|
||
function usePrevious(value) {
|
||
const ref = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRef"]({
|
||
value,
|
||
previous: value
|
||
});
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useMemo"]({
|
||
"usePrevious.useMemo": ()=>{
|
||
if (ref.current.value !== value) {
|
||
ref.current.previous = ref.current.value;
|
||
ref.current.value = value;
|
||
}
|
||
return ref.current.previous;
|
||
}
|
||
}["usePrevious.useMemo"], [
|
||
value
|
||
]);
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-size@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
// packages/react/use-size/src/useSize.tsx
|
||
__turbopack_context__.s([
|
||
"useSize",
|
||
()=>useSize
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$layout$2d$effect$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$layout$2d$effect$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-layout-effect@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs [app-client] (ecmascript)");
|
||
;
|
||
;
|
||
function useSize(element) {
|
||
const [size, setSize] = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"](void 0);
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$layout$2d$effect$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$layout$2d$effect$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useLayoutEffect"])({
|
||
"useSize.useLayoutEffect": ()=>{
|
||
if (element) {
|
||
setSize({
|
||
width: element.offsetWidth,
|
||
height: element.offsetHeight
|
||
});
|
||
const resizeObserver = new ResizeObserver({
|
||
"useSize.useLayoutEffect": (entries)=>{
|
||
if (!Array.isArray(entries)) {
|
||
return;
|
||
}
|
||
if (!entries.length) {
|
||
return;
|
||
}
|
||
const entry = entries[0];
|
||
let width;
|
||
let height;
|
||
if ("borderBoxSize" in entry) {
|
||
const borderSizeEntry = entry["borderBoxSize"];
|
||
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
||
width = borderSize["inlineSize"];
|
||
height = borderSize["blockSize"];
|
||
} else {
|
||
width = element.offsetWidth;
|
||
height = element.offsetHeight;
|
||
}
|
||
setSize({
|
||
width,
|
||
height
|
||
});
|
||
}
|
||
}["useSize.useLayoutEffect"]);
|
||
resizeObserver.observe(element, {
|
||
box: "border-box"
|
||
});
|
||
return ({
|
||
"useSize.useLayoutEffect": ()=>resizeObserver.unobserve(element)
|
||
})["useSize.useLayoutEffect"];
|
||
} else {
|
||
setSize(void 0);
|
||
}
|
||
}
|
||
}["useSize.useLayoutEffect"], [
|
||
element
|
||
]);
|
||
return size;
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-switch@1.1.2_@types+react-dom@19.2.3_@types+react@19.2.6__@types+react@_54653a3bb17f872d614747b147554763/node_modules/@radix-ui/react-switch/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Root",
|
||
()=>Root,
|
||
"Switch",
|
||
()=>Switch,
|
||
"SwitchThumb",
|
||
()=>SwitchThumb,
|
||
"Thumb",
|
||
()=>Thumb,
|
||
"createSwitchScope",
|
||
()=>createSwitchScope
|
||
]);
|
||
// packages/react/switch/src/Switch.tsx
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$primitive$40$1$2e$1$2e$1$2f$node_modules$2f40$radix$2d$ui$2f$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+primitive@1.1.1/node_modules/@radix-ui/primitive/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$compose$2d$refs$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$compose$2d$refs$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-compose-refs@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-compose-refs/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$context$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$context$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-context@1.1.1_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-context/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$controllable$2d$state$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$controllable$2d$state$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-controllable-state@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$previous$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$previous$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-previous@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$size$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$size$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-use-size@1.1.0_@types+react@19.2.6_react@19.2.0/node_modules/@radix-ui/react-use-size/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-primitive@2.0.1_@types+react-dom@19.2.3_@types+react@19.2.6__@types+rea_4f53963f71a6eb8b0116fe0dd1078946/node_modules/@radix-ui/react-primitive/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
"use client";
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
var SWITCH_NAME = "Switch";
|
||
var [createSwitchContext, createSwitchScope] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$context$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$context$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["createContextScope"])(SWITCH_NAME);
|
||
var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
|
||
var Switch = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { __scopeSwitch, name, checked: checkedProp, defaultChecked, required, disabled, value = "on", onCheckedChange, form, ...switchProps } = props;
|
||
const [button, setButton] = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useState"](null);
|
||
const composedRefs = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$compose$2d$refs$40$1$2e$1$2e$1_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$compose$2d$refs$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useComposedRefs"])(forwardedRef, {
|
||
"Switch.useComposedRefs[composedRefs]": (node)=>setButton(node)
|
||
}["Switch.useComposedRefs[composedRefs]"]);
|
||
const hasConsumerStoppedPropagationRef = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRef"](false);
|
||
const isFormControl = button ? form || !!button.closest("form") : true;
|
||
const [checked = false, setChecked] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$controllable$2d$state$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$controllable$2d$state$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useControllableState"])({
|
||
prop: checkedProp,
|
||
defaultProp: defaultChecked,
|
||
onChange: onCheckedChange
|
||
});
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsxs"])(SwitchProvider, {
|
||
scope: __scopeSwitch,
|
||
checked,
|
||
disabled,
|
||
children: [
|
||
/* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Primitive"].button, {
|
||
type: "button",
|
||
role: "switch",
|
||
"aria-checked": checked,
|
||
"aria-required": required,
|
||
"data-state": getState(checked),
|
||
"data-disabled": disabled ? "" : void 0,
|
||
disabled,
|
||
value,
|
||
...switchProps,
|
||
ref: composedRefs,
|
||
onClick: (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$primitive$40$1$2e$1$2e$1$2f$node_modules$2f40$radix$2d$ui$2f$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["composeEventHandlers"])(props.onClick, (event)=>{
|
||
setChecked((prevChecked)=>!prevChecked);
|
||
if (isFormControl) {
|
||
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
||
if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
|
||
}
|
||
})
|
||
}),
|
||
isFormControl && /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(BubbleInput, {
|
||
control: button,
|
||
bubbles: !hasConsumerStoppedPropagationRef.current,
|
||
name,
|
||
value,
|
||
checked,
|
||
required,
|
||
disabled,
|
||
form,
|
||
style: {
|
||
transform: "translateX(-100%)"
|
||
}
|
||
})
|
||
]
|
||
});
|
||
});
|
||
Switch.displayName = SWITCH_NAME;
|
||
var THUMB_NAME = "SwitchThumb";
|
||
var SwitchThumb = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
const { __scopeSwitch, ...thumbProps } = props;
|
||
const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Primitive"].span, {
|
||
"data-state": getState(context.checked),
|
||
"data-disabled": context.disabled ? "" : void 0,
|
||
...thumbProps,
|
||
ref: forwardedRef
|
||
});
|
||
});
|
||
SwitchThumb.displayName = THUMB_NAME;
|
||
var BubbleInput = (props)=>{
|
||
const { control, checked, bubbles = true, ...inputProps } = props;
|
||
const ref = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useRef"](null);
|
||
const prevChecked = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$previous$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$previous$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["usePrevious"])(checked);
|
||
const controlSize = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$use$2d$size$40$1$2e$1$2e$0_$40$types$2b$react$40$19$2e$2$2e$6_react$40$19$2e$2$2e$0$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$use$2d$size$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useSize"])(control);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["useEffect"]({
|
||
"BubbleInput.useEffect": ()=>{
|
||
const input = ref.current;
|
||
const inputProto = window.HTMLInputElement.prototype;
|
||
const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
|
||
const setChecked = descriptor.set;
|
||
if (prevChecked !== checked && setChecked) {
|
||
const event = new Event("click", {
|
||
bubbles
|
||
});
|
||
setChecked.call(input, checked);
|
||
input.dispatchEvent(event);
|
||
}
|
||
}
|
||
}["BubbleInput.useEffect"], [
|
||
prevChecked,
|
||
checked,
|
||
bubbles
|
||
]);
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])("input", {
|
||
type: "checkbox",
|
||
"aria-hidden": true,
|
||
defaultChecked: checked,
|
||
...inputProps,
|
||
tabIndex: -1,
|
||
ref,
|
||
style: {
|
||
...props.style,
|
||
...controlSize,
|
||
position: "absolute",
|
||
pointerEvents: "none",
|
||
opacity: 0,
|
||
margin: 0
|
||
}
|
||
});
|
||
};
|
||
function getState(checked) {
|
||
return checked ? "checked" : "unchecked";
|
||
}
|
||
var Root = Switch;
|
||
var Thumb = SwitchThumb;
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-label@2.1.1_@types+react-dom@19.2.3_@types+react@19.2.6__@types+react@1_bd8162f32426f4bdbb2a84f1027e4863/node_modules/@radix-ui/react-label/dist/index.mjs [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Label",
|
||
()=>Label,
|
||
"Root",
|
||
()=>Root
|
||
]);
|
||
// packages/react/label/src/Label.tsx
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/index.js [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/@radix-ui+react-primitive@2.0.1_@types+react-dom@19.2.3_@types+react@19.2.6__@types+rea_4f53963f71a6eb8b0116fe0dd1078946/node_modules/@radix-ui/react-primitive/dist/index.mjs [app-client] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/next@16.0.3_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/react/jsx-runtime.js [app-client] (ecmascript)");
|
||
"use client";
|
||
;
|
||
;
|
||
;
|
||
var NAME = "Label";
|
||
var Label = __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$index$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["forwardRef"]((props, forwardedRef)=>{
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$next$40$16$2e$0$2e$3_react$2d$dom$40$19$2e$2$2e$0_react$40$19$2e$2$2e$0_$5f$react$40$19$2e$2$2e$0$2f$node_modules$2f$next$2f$dist$2f$compiled$2f$react$2f$jsx$2d$runtime$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f40$radix$2d$ui$2b$react$2d$primitive$40$2$2e$0$2e$1_$40$types$2b$react$2d$dom$40$19$2e$2$2e$3_$40$types$2b$react$40$19$2e$2$2e$6_$5f40$types$2b$rea_4f53963f71a6eb8b0116fe0dd1078946$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$primitive$2f$dist$2f$index$2e$mjs__$5b$app$2d$client$5d$__$28$ecmascript$29$__["Primitive"].label, {
|
||
...props,
|
||
ref: forwardedRef,
|
||
onMouseDown: (event)=>{
|
||
const target = event.target;
|
||
if (target.closest("button, input, select, textarea")) return;
|
||
props.onMouseDown?.(event);
|
||
if (!event.defaultPrevented && event.detail > 1) event.preventDefault();
|
||
}
|
||
});
|
||
});
|
||
Label.displayName = NAME;
|
||
var Root = Label;
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>Check
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const Check = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("Check", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M20 6 9 17l-5-5",
|
||
key: "1gmf2c"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=check.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js [app-client] (ecmascript) <export default as Check>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Check",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$check$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$check$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/check.js [app-client] (ecmascript)");
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/x.js [app-client] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* @license lucide-react v0.454.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>X
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-client] (ecmascript)");
|
||
;
|
||
const X = (0, __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"])("X", [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M18 6 6 18",
|
||
key: "1bl5f8"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "m6 6 12 12",
|
||
key: "d8bk6v"
|
||
}
|
||
]
|
||
]);
|
||
;
|
||
//# sourceMappingURL=x.js.map
|
||
}),
|
||
"[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/x.js [app-client] (ecmascript) <export default as X>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"X",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$x$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$Documents$2f$go$2d$new$2f$chinese$2d$family$2d$tree$2f$node_modules$2f2e$pnpm$2f$lucide$2d$react$40$0$2e$454$2e$0_react$40$19$2e$2$2e$0$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$x$2e$js__$5b$app$2d$client$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/Documents/go-new/chinese-family-tree/node_modules/.pnpm/lucide-react@0.454.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/x.js [app-client] (ecmascript)");
|
||
}),
|
||
]);
|
||
|
||
//# sourceMappingURL=a0629__pnpm_0a25c034._.js.map
|