@powerlines/plugin-react 0.1.110 → 0.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/{chunk-CF6LXmkI.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.cts +1 -2
- package/dist/components/index.d.mts +1 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/react-optimized.cjs +1 -1
- package/dist/components/react-optimized.d.cts +13 -1
- package/dist/components/react-optimized.d.mts +13 -1
- package/dist/components/react-optimized.mjs +1 -1
- package/dist/deepkit/schemas/reflection.cjs +1 -0
- package/dist/{plugin-qpXdqfDo.d.mts → deepkit/schemas/reflection.d.cts} +1 -331
- package/dist/{plugin-CP9_29iU.d.cts → deepkit/schemas/reflection.d.mts} +1 -333
- package/dist/deepkit/schemas/reflection.mjs +1 -0
- package/dist/deepkit/schemas/reflection2.cjs +1 -0
- package/dist/deepkit/schemas/reflection2.mjs +1 -0
- package/dist/deepkit/src/capnp.cjs +1 -0
- package/dist/deepkit/src/capnp.mjs +1 -0
- package/dist/deepkit/src/esbuild-plugin.cjs +4 -0
- package/dist/deepkit/src/esbuild-plugin.mjs +4 -0
- package/dist/deepkit/src/reflect-type.cjs +1 -0
- package/dist/deepkit/src/reflect-type.mjs +1 -0
- package/dist/deepkit/src/resolve-reflections.cjs +1 -0
- package/dist/deepkit/src/resolve-reflections.mjs +1 -0
- package/dist/deepkit/src/transformer.cjs +1 -0
- package/dist/deepkit/src/transformer.mjs +1 -0
- package/dist/deepkit/src/transpile.cjs +1 -0
- package/dist/deepkit/src/transpile.mjs +1 -0
- package/dist/deepkit/src/types.d.cts +10 -0
- package/dist/deepkit/src/types.d.mts +10 -0
- package/dist/deepkit/src/utilities.cjs +1 -0
- package/dist/deepkit/src/utilities.mjs +1 -0
- package/dist/deepkit/src/vendor/core.cjs +1 -0
- package/dist/deepkit/src/vendor/core.mjs +1 -0
- package/dist/deepkit/src/vendor/type-compiler/index.cjs +1 -0
- package/dist/deepkit/src/vendor/type-compiler/index.mjs +1 -0
- package/dist/deepkit/src/vendor/type.cjs +1 -0
- package/dist/deepkit/src/vendor/type.d.cts +7 -0
- package/dist/deepkit/src/vendor/type.d.mts +7 -0
- package/dist/deepkit/src/vendor/type.mjs +1 -0
- package/dist/index.cjs +1 -64
- package/dist/index.d.cts +5 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -61
- package/dist/plugin-alloy/src/core/components/index.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/index.mjs +1 -0
- package/dist/plugin-alloy/src/core/components/output.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/output.mjs +1 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +1 -0
- package/dist/plugin-alloy/src/core/components/source-file.cjs +1 -0
- package/dist/plugin-alloy/src/core/components/source-file.mjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/context.cjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/context.mjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/index.cjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/index.mjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +1 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +1 -0
- package/dist/plugin-alloy/src/core/index.cjs +1 -0
- package/dist/plugin-alloy/src/core/index.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/capnp.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/capnp.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/create-builtin.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/create-builtin.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/index.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/index.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/refkey.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/refkey.mjs +1 -0
- package/dist/plugin-alloy/src/helpers/typescript.cjs +1 -0
- package/dist/plugin-alloy/src/helpers/typescript.mjs +1 -0
- package/dist/plugin-alloy/src/index.cjs +2 -0
- package/dist/plugin-alloy/src/index.mjs +2 -0
- package/dist/plugin-alloy/src/markdown/components/index.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/index.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/index.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/index.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +1 -0
- package/dist/plugin-alloy/src/markdown/index.cjs +1 -0
- package/dist/plugin-alloy/src/markdown/index.mjs +1 -0
- package/dist/plugin-alloy/src/types/components.d.mts +5 -0
- package/dist/plugin-alloy/src/types/index.d.mts +2 -0
- package/dist/plugin-alloy/src/types/plugin.d.cts +38 -0
- package/dist/plugin-alloy/src/types/plugin.d.mts +38 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/dynamic-import-statement.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/entry-file.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/entry-file.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/index.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/index.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/record-expression.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/record-expression.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +1 -0
- package/dist/plugin-alloy/src/typescript/index.cjs +1 -0
- package/dist/plugin-alloy/src/typescript/index.mjs +1 -0
- package/dist/plugin-automd/src/index.cjs +1 -0
- package/dist/plugin-automd/src/index.mjs +1 -0
- package/dist/plugin-automd/src/types/plugin.d.cts +38 -0
- package/dist/plugin-automd/src/types/plugin.d.mts +40 -0
- package/dist/plugin-automd/src/types/toc.d.cts +33 -0
- package/dist/plugin-automd/src/types/toc.d.mts +33 -0
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
- package/dist/plugin-babel/src/helpers/index.cjs +1 -0
- package/dist/plugin-babel/src/helpers/index.mjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
- package/dist/plugin-babel/src/helpers/options.cjs +1 -0
- package/dist/plugin-babel/src/helpers/options.mjs +1 -0
- package/dist/plugin-babel/src/index.cjs +1 -0
- package/dist/plugin-babel/src/index.mjs +1 -0
- package/dist/plugin-babel/src/types/index.d.mts +1 -0
- package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
- package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
- package/dist/plugin-env/src/babel/index.cjs +1 -0
- package/dist/plugin-env/src/babel/index.mjs +1 -0
- package/dist/plugin-env/src/babel/plugin.cjs +5 -0
- package/dist/plugin-env/src/babel/plugin.mjs +5 -0
- package/dist/plugin-env/src/components/docs.cjs +1 -0
- package/dist/plugin-env/src/components/docs.mjs +1 -0
- package/dist/plugin-env/src/components/env.cjs +34 -0
- package/dist/plugin-env/src/components/env.mjs +31 -0
- package/dist/plugin-env/src/components/index.cjs +1 -0
- package/dist/plugin-env/src/components/index.mjs +1 -0
- package/dist/plugin-env/src/helpers/automd-generator.cjs +1 -0
- package/dist/plugin-env/src/helpers/automd-generator.mjs +1 -0
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +1 -0
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +1 -0
- package/dist/plugin-env/src/helpers/index.cjs +1 -0
- package/dist/plugin-env/src/helpers/index.mjs +1 -0
- package/dist/plugin-env/src/helpers/load.cjs +1 -0
- package/dist/plugin-env/src/helpers/load.mjs +1 -0
- package/dist/plugin-env/src/helpers/persistence.cjs +1 -0
- package/dist/plugin-env/src/helpers/persistence.mjs +1 -0
- package/dist/plugin-env/src/helpers/reflect.cjs +1 -0
- package/dist/plugin-env/src/helpers/reflect.mjs +1 -0
- package/dist/plugin-env/src/helpers/source-file-env.cjs +1 -0
- package/dist/plugin-env/src/helpers/source-file-env.mjs +1 -0
- package/dist/plugin-env/src/helpers/template-helpers.cjs +1 -0
- package/dist/plugin-env/src/helpers/template-helpers.mjs +1 -0
- package/dist/plugin-env/src/index.cjs +10 -0
- package/dist/plugin-env/src/index.mjs +10 -0
- package/dist/plugin-env/src/types/plugin.d.cts +151 -0
- package/dist/plugin-env/src/types/plugin.d.mts +153 -0
- package/dist/plugin-env/src/types/runtime.d.cts +792 -0
- package/dist/plugin-env/src/types/runtime.d.mts +792 -0
- package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
- package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
- package/dist/powerlines/src/lib/entry.cjs +1 -0
- package/dist/powerlines/src/lib/entry.mjs +1 -0
- package/dist/powerlines/src/lib/logger.cjs +1 -0
- package/dist/powerlines/src/lib/logger.mjs +1 -0
- package/dist/powerlines/src/lib/typescript/tsconfig.cjs +1 -0
- package/dist/powerlines/src/lib/typescript/tsconfig.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/file-header.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/file-header.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/babel.d.cts +22 -0
- package/dist/powerlines/src/types/babel.d.mts +22 -0
- package/dist/powerlines/src/types/build.d.cts +145 -0
- package/dist/powerlines/src/types/build.d.mts +145 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +368 -0
- package/dist/powerlines/src/types/config.d.mts +369 -0
- package/dist/powerlines/src/types/context.d.cts +373 -0
- package/dist/powerlines/src/types/context.d.mts +375 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +231 -0
- package/dist/powerlines/src/types/plugin.d.mts +231 -0
- package/dist/powerlines/src/types/resolved.d.cts +82 -0
- package/dist/powerlines/src/types/resolved.d.mts +82 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +2 -4
- package/dist/types/index.d.mts +2 -4
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +72 -2
- package/dist/types/plugin.d.mts +72 -2
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +14 -2
- package/dist/types/runtime.d.mts +14 -2
- package/dist/types/runtime.mjs +1 -1
- package/package.json +6 -9
- package/dist/components-BWLXb7a2.cjs +0 -0
- package/dist/components-MTvNCZDU.mjs +0 -1
- package/dist/index-C-svZlpj.d.mts +0 -1
- package/dist/index-CtCMUyZA.d.cts +0 -1
- package/dist/index-DEHBdV_z.d.mts +0 -1
- package/dist/index-_wQ5ClJU.d.cts +0 -1
- package/dist/plugin-G4qbpIjB.mjs +0 -1
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/react-optimized-AthekqzJ.cjs +0 -1
- package/dist/react-optimized-DPBN2hOh.mjs +0 -1
- package/dist/react-optimized-DmMl-ZEI.d.cts +0 -14
- package/dist/react-optimized-Y1x3FeDm.d.mts +0 -14
- package/dist/runtime-BNQjyQ7l.d.cts +0 -2495
- package/dist/runtime-Bp9G0scd.cjs +0 -0
- package/dist/runtime-CKObV75t.d.cts +0 -15
- package/dist/runtime-Do9xjHUb.d.mts +0 -2496
- package/dist/runtime-IEYS5R9b.d.mts +0 -15
- package/dist/runtime-cDYyRPa0.mjs +0 -1
- package/dist/types-C5ggNT4K.mjs +0 -1
- package/dist/types-a8gm_IaQ.cjs +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,61 +1 @@
|
|
|
1
|
-
import{t as e}from"./chunk-CF6LXmkI.mjs";import{t}from"./react-optimized-DPBN2hOh.mjs";import"./components-MTvNCZDU.mjs";import"./plugin-G4qbpIjB.mjs";import"./runtime-cDYyRPa0.mjs";import"./types-C5ggNT4K.mjs";import{createComponent as n,createIntrinsic as r,memo as i,mergeProps as a}from"@alloy-js/core/jsx-runtime";import{transformAsync as o}from"@babel/core";import{LogLevelLabel as s}from"@storm-software/config-tools/types";import{findFileExtension as c,findFileExtensionSafe as ee}from"@stryke/path/file-path-fns";import{isParentPath as l}from"@stryke/path/is-parent-path";import{isSetObject as te}from"@stryke/type-checks/is-set-object";import u from"defu";import{isFunction as ne}from"@stryke/type-checks/is-function";import"@stryke/type-checks/is-object";import{isSetString as d}from"@stryke/type-checks/is-set-string";import re from"chalk";import ie from"@babel/generator";import"@babel/parser";import{declare as ae}from"@babel/helper-plugin-utils";import"@storm-software/config-tools/logger";import"@storm-software/config-tools/utilities/colors";import"@stryke/helpers/noop";import{kebabCase as oe}from"@stryke/string-format/kebab-case";import{titleCase as f}from"@stryke/string-format/title-case";import*as p from"@babel/types";import{isString as m}from"@stryke/type-checks/is-string";import{For as se,Output as ce,Show as le,code as h,computed as g,createContext as ue,createNamedContext as de,createResource as fe,flushJobsAsync as pe,getContextForRenderNode as me,isPrintHook as he,ref as ge,renderTree as _e,splitProps as _}from"@alloy-js/core";import ve from"@alloy-js/rollup-plugin";import{StormJSON as ye}from"@stryke/json/storm-json";import{replacePath as be}from"@stryke/path/replace";import{printer as xe}from"prettier/doc.js";import{appendPath as Se}from"@stryke/path/append";import{getUniqueBy as Ce}from"@stryke/helpers/get-unique";import{isNull as we}from"@stryke/type-checks/is-null";import{isUndefined as Te}from"@stryke/type-checks/is-undefined";import"@stryke/capnp/compile";import"@stryke/capnp/helpers";import{toArray as v}from"@stryke/convert/to-array";import"@stryke/json";import{joinPaths as Ee}from"@stryke/path/join";import{camelCase as y}from"@stryke/string-format/camel-case";import"@stryke/string-format/get-words";import"@stryke/string-format/pascal-case";import"@stryke/type-checks/is-bigint";import"@stryke/type-checks/is-number";import{exec as De}from"node:child_process";import{promisify as Oe}from"node:util";import{ClassDeclaration as ke,ClassMethod as Ae,ElseIfClause as je,FunctionDeclaration as Me,IfStatement as Ne,NewExpression as Pe,TypeDeclaration as Fe,VarDeclaration as Ie}from"@alloy-js/typescript";import"@alloy-js/markdown";import"@stryke/type-checks/is-boolean";import{joinPaths as b}from"@stryke/path/join-paths";import{isDirectory as Le}from"@stryke/fs/is-file";import{listFiles as Re}from"@stryke/fs/list-files";import{isAbsolutePath as ze}from"@stryke/path/is-type";import{defineGenerator as Be,loadConfig as Ve,resolveConfig as He,transform as Ue}from"automd";import{loadConfig as We}from"c12";import Ge from"markdown-toc";import{parseTypeDefinition as x}from"@stryke/convert/parse-type-definition";import{ENV_PREFIXES as Ke}from"@stryke/env/types";import{existsSync as S}from"@stryke/fs/exists";import{createDirectory as qe}from"@stryke/fs/helpers";import{constantCase as Je}from"@stryke/string-format/constant-case";import{isInteger as Ye,isSetObject as Xe,isString as Ze,isUndefined as Qe}from"@stryke/type-checks";import*as C from"@stryke/capnp";import{readFileBuffer as $e,readFileBufferSync as et,writeFileBuffer as tt}from"@stryke/fs/buffer";import{existsSync as nt}from"node:fs";import{resolvePackage as rt}from"@stryke/fs/resolve";import{isEmptyObject as it}from"@stryke/type-checks/is-empty-object";import{build as at}from"esbuild";import{omit as ot}from"@stryke/helpers/omit";import"@stryke/hash/murmurhash";import st,{DiagnosticCategory as ct}from"typescript";import{usePowerlines as lt}from"@powerlines/alloy/core/contexts/context";import{refkey as ut}from"@powerlines/alloy/helpers/refkey";import{BuiltinFile as dt}from"@powerlines/alloy/typescript/components/builtin-file";import{TSDoc as ft,TSDocExample as pt,TSDocLink as mt,TSDocParam as ht,TSDocRemarks as gt,TSDocReturns as _t,TSDocThrows as vt}from"@powerlines/alloy/typescript/components/tsdoc";import{TypeScriptInterface as yt}from"@powerlines/alloy/typescript/components/typescript-interface";import{TypescriptObject as bt}from"@powerlines/alloy/typescript/components/typescript-object";import{loadEnv as xt,loadEnvFile as St}from"@stryke/env/load-env";import"@powerlines/alloy/markdown/components/markdown-file";import"@powerlines/alloy/markdown/components/markdown-table";import Ct from"@vitejs/plugin-react";import"@stryke/fs/json";var w={};import*as wt from"@deepkit/type";e(w,wt);function Tt(e){return d(e)?e:Array.isArray(e)&&e.length>0?Tt(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function Et(e,t){return!!(Tt(t)&&e.some(e=>Array.isArray(e)&&Tt(e[0])===Tt(t)))}function Dt(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?ne(t[0])?t[0](e):t[0]:ne(t)?t(e):t}catch{return t[0]}}function Ot(e,t,n,r){if(Array.isArray(r)&&r.length>0&&r[0]){if(r.length>2&&r[2]&&ne(r[2])&&!r[2](t,n)){e.log(s.TRACE,`Skipping filtered Babel plugin ${re.bold.cyanBright(Tt(r)||`unnamed`)} for ${n}`);return}return r.length>2?[Dt(e,r),r[1],r[2]]:[Dt(e,r),r[1],null]}return[Dt(e,r),{},null]}let kt=ie;`default`in kt&&(kt=kt.default);const At=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#D8B4FE`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`,`#8B5CF6`],jt=(e,t)=>(n,...r)=>e(n,` ${re.inverse.hex(At[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%At.length]||At[0])(` ${f(t)} `)} ${r.join(` `)} `);function Mt(e,t){let n=n=>ae((r,i,a)=>{r.cache.using(()=>n.meta.checksum),r.assertVersion(`^7.0.0-0`);let o=jt(n.log,e);o(s.TRACE,`Initializing the ${re.bold.cyanBright(e)} Babel plugin`);let c=t({log:o,name:e,api:r,options:i,context:n,dirname:a});return c.name=e,o(s.TRACE,`Completed initialization of the ${re.bold.cyanBright(e)} Babel plugin`),c});return n.$$name=e,n}function Nt(e,t){It(e.scope.getProgramParent().path,t)}function Pt(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function Ft(e){let t=new Map;return e.traverse({ImportDeclaration(e){Pt(e)&&t.set(e.node.source.value,e)}}),t}function It(e,t){Ft(e).get(t.module)||e.unshiftContainer(`body`,p.importDeclaration([p.importSpecifier(p.identifier(t.name||t.imported),p.identifier(t.imported))],p.stringLiteral(t.module)))}var Lt=(e={})=>({name:`babel`,config(){if(te(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=u(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if(l(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(s.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(s.TRACE,`Babel transforming file: ${n}`);let r=this.config.transform.babel.plugins.map(e=>Ot(this,t,n,e)).filter((e,t,n)=>e&&!Et(n,e)),i=this.config.transform.babel.presets.map(e=>Ot(this,t,n,e)).filter((e,t,n)=>e&&!Et(n,e));if(Array.isArray(r)&&r.length===0&&Array.isArray(i)&&i.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes(ee(n))&&!Et(r,`@babel/plugin-syntax-typescript`)&&!Et(i,`@babel/preset-typescript`)&&r.unshift([`@babel/plugin-syntax-typescript`,{isTSX:c(n)===`.tsx`}]);let a=await o(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:n,plugins:r.map(t=>Array.isArray(t)&&t.length>=2?[t[0],u(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:i.map(t=>Array.isArray(t)&&t.length>=2?[t[0],u(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!a?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:a.code,id:n}}});const Rt=ue();function zt(e){let[{children:t,context:r,basePath:i},o]=_(e,[`children`,`context`,`basePath`]),s=ge(r),c=g(()=>i?be(i,s.value.workspaceConfig.workspaceRoot):s.value.workspaceConfig.workspaceRoot);return n(ce,a(o,{get basePath(){return c.value},get children(){return n(Rt.Provider,{value:{ref:s},get children(){return n(le,{get when(){return!!s.value},children:t})}})}}))}ue(),de(`reflection-property`),de(`reflection-method`),de(`reflection-parameter`);function Bt(e,t){return Ht(e.type,t??e.getDefaultValue())}function Vt(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function Ht(e,t){return Te(t)?`undefined`:we(t)?`null`:e.kind===w.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===w.ReflectionKind.string||e.kind===w.ReflectionKind.literal&&m(e.literal)?Vt(t):e.kind===w.ReflectionKind.enum?Ut(e).kind===w.ReflectionKind.string?Vt(t):`${String(t)}`:e.kind===w.ReflectionKind.union?Gt(e)?Vt(t):`${String(t)}`:e.kind===w.ReflectionKind.array?Vt(ye.stringify(t)):e.kind===w.ReflectionKind.object||e.kind===w.ReflectionKind.objectLiteral?ye.stringify(t):e.kind===w.ReflectionKind.property||e.kind===w.ReflectionKind.parameter?Ht(e.type,t):String(t)}function Ut(e){if(e.kind!==w.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=Ce(e.values.filter(e=>e!=null),e=>m(e)?{kind:w.ReflectionKind.string}:{kind:w.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&m(t[0])?{kind:w.ReflectionKind.string}:{kind:w.ReflectionKind.number}}function Wt(e){if(e.kind===w.ReflectionKind.union&&e.types.length>0)return Ce(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function Gt(e){return Wt(e).some(e=>e.kind===w.ReflectionKind.string||e.kind===w.ReflectionKind.literal&&m(e.literal))}Oe(De),de(`markdown-table-column`,{}),ue({columns:[],data:[]});var Kt=(e={})=>[{name:`alloy:config`,config(){return{alloy:{typescript:!0,...e},build:{inputOptions:{transform:{jsx:{runtime:`classic`,pragma:`Alloy.createElement`,importSource:`@alloy-js/core`}}},plugins:[ve()],external:[`@alloy-js/core`,`@alloy-js/typescript`,`@alloy-js/json`,`@alloy-js/markdown`]}}},async configResolved(){(this.tsconfig.tsconfigJson.compilerOptions?.jsx!==`preserve`||this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource!==`@alloy-js/core`)&&(this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.jsx!==`preserve`&&(this.tsconfig.tsconfigJson.compilerOptions.jsx=`preserve`),this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource!==`@alloy-js/core`&&(this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=`@alloy-js/core`),await this.fs.write(this.tsconfig.tsconfigFilePath,ye.stringify(this.tsconfig.tsconfigJson))),this.devDependencies[`@alloy-js/core`]=`^0.22.0`,this.config.alloy?.typescript!==!1&&(this.devDependencies[`@alloy-js/typescript`]=`^0.22.0`),this.config.alloy?.json===!0&&(this.devDependencies[`@alloy-js/json`]=`^0.22.0`),this.config.alloy?.markdown===!0&&(this.devDependencies[`@alloy-js/markdown`]=`^0.22.0`)}},{name:`alloy:update-context`,configResolved:{order:`pre`,async handler(){this.render=async e=>{let t=this,r=_e(n(zt,{context:t,get basePath(){return t.workspaceConfig.workspaceRoot},children:e}));await qt(this,r,this.config.alloy)}}}}];async function qt(e,t,n={}){await pe();let r,i=async(t,a)=>{if(!Array.isArray(a))return;let o=async e=>{for(let t of a)await i(e,t)},c=me(a);if(!c)return o(t);if(c.meta?.directory){let e={kind:`directory`,path:c.meta.directory.path,contents:[]};t?t.contents.push(e):r=e,await o(e)}else if(c.meta?.sourceFile){if(!t)throw Error(`Source file doesn't have parent directory. Make sure you have used the Output component.`);let r;if(c.meta?.builtin){if(!c.meta.builtin.id)throw Error("Built-in runtime module doesn't have an ID. Make sure you have used the `<BuiltinFile />` component.");e.log(s.TRACE,`Rendering built-in runtime module with ID: ${c.meta.builtin.id}`),r={kind:`builtin`,id:c.meta.builtin.id,path:be(c.meta.sourceFile.path,e.builtinsPath),filetype:c.meta.sourceFile.filetype,preset:c.meta.output?.mode,contents:await Jt(e,a,n)}}else c.meta?.entry||l(e.entryPath,c.meta.sourceFile.path)?(e.log(s.TRACE,`Rendering entry module at path: ${c.meta.sourceFile.path}`),r={kind:`entry`,typeDefinition:c.meta.entry?.typeDefinition,path:c.meta.sourceFile.path,filetype:c.meta.sourceFile.filetype,preset:c.meta.output?.mode,contents:await Jt(e,a,n)}):(e.log(s.TRACE,`Rendering source file at path: ${c.meta.sourceFile.path}`),r={kind:`file`,path:c.meta.sourceFile.path,filetype:c.meta.sourceFile.filetype,preset:c.meta.output?.mode,contents:await Jt(e,a,n)});t.contents.push(r)}else if(c.meta?.copyFile){if(!t)throw Error(`Copy file doesn't have parent directory. Make sure you have used the Output component.`);if(e.log(s.TRACE,`Processing copy file operation from "${c.meta.copyFile.sourcePath}" to "${c.meta.copyFile.path}"`),!c.meta.copyFile.sourcePath)throw Error("Copy file doesn't have a source path. Make sure you have provided a `sourcePath` property to the `meta.copyFile` context.");if(!c.meta.copyFile.path)throw Error("Copy file doesn't have a destination path. Make sure you have provided a `path` property to the `meta.copyFile` context.");t.contents.push({kind:`file`,path:c.meta.copyFile.path,sourcePath:c.meta.copyFile.sourcePath,preset:c.meta.output?.preset})}else await o(t)};await i(void 0,t);let a=async(e,t)=>{for(let n of t.contents)if(n.kind===`directory`)await a(e,n);else if(n.kind===`builtin`)await e.emitBuiltin(n.contents,n.id,n.path);else if(n.kind===`entry`)await e.emitEntry(n.contents,n.path,n.typeDefinition);else if(n.kind===`file`)if(`sourcePath`in n&&n.sourcePath){if(!e.fs.existsSync(n.sourcePath))throw Error(`Source file "${n.sourcePath}" for copy operation does not exist.`);let t=await e.fs.read(n.sourcePath);if(!d(t))throw Error(`Source file "${n.sourcePath}" for copy operation is empty.`);await e.fs.write(n.path,t)}else if(`contents`in n&&d(n.contents))await e.fs.write(n.path,n.contents);else throw Error(`Unexpected output extracted from the render tree: \n\n${JSON.stringify(n,null,2)}`)};await a(e,r)}async function Jt(e,t,n={}){n.printWidth??=160,n.tabWidth??=2,n.useTabs??=!1,n.insertFinalNewLine??=!0,await pe();let r=xe.printDocToString(Yt(t),n).formatted;return n.insertFinalNewLine&&!r.endsWith(`
|
|
2
|
-
`)?`${r}\n`:r}function Yt(e){let t=[];for(let n of e)if(typeof n==`string`){let e=n.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else he(n)?t.push(n.print(n.subtree,Yt)):t.push(Yt(n));return t}var Xt=(e={})=>({name:`automd`,async config(){let t=await Ve(b(this.workspaceConfig.workspaceRoot,this.config.projectRoot),e);return(!t.prefix||!Array.isArray(t.prefix))&&(t.prefix=v(t.prefix??[])),t.prefix.includes(`automd`)||t.prefix.push(`automd`),t.prefix.includes(`powerlines`)||t.prefix.push(`powerlines`),{automd:u(t??{},{configFile:e.configFile,allowIssues:!0,dir:this.config.projectRoot,watch:!1,input:`README.md`,toc:{maxDepth:6,bullets:`-`}})}},async configResolved(){if(this.config.framework&&!v(this.config.automd.prefix).includes(this.config.framework)&&(this.config.automd.prefix=v(this.config.automd.prefix).concat(this.config.framework)),this.config.automd.configFile){let{config:e}=await We({cwd:this.config.automd.dir,configFile:this.config.automd.configFile,defaults:{ignore:[`**/node_modules`,`**/dist`,`**/.*`],dir:this.config.automd.dir}});this.config.automd=He(u(this.config.automd,{...e,prefix:v(e.prefix??[])}))}this.config.automd.input=(await Promise.all(v(this.config.automd.input).map(async e=>e.includes(`*`)?Re(ze(e)?e:Se(e,this.config.projectRoot),{ignore:this.config.automd.ignore}):ze(e)?e:Se(e,this.config.projectRoot)))).flat(),this.config.automd.output&&!ze(this.config.automd.output)&&(this.config.automd.output=Se(this.config.automd.output,this.config.projectRoot)),this.config.automd.generators??={},this.config.automd.toc!==!1&&(this.config.automd.generators.toc??={name:`toc`,generate:e=>{let t=this.config.automd.toc??{};return{contents:Ge(e.block.md,{...t,maxdepth:t.maxDepth,first1:t.firstH1}).content}}})},async docs(){await Promise.all(v(this.config.automd.input).map(async e=>{let t=await this.fs.read(e);if(t){let n=await Ue(t,this.config.automd);if(n.hasIssues&&this.config.automd.allowIssues===!1)throw Error(`AutoMD found issues in file "${e}". Please resolve the issues or set \`allowIssues\` to true in the plugin configuration to ignore them.`);n.hasChanged&&await this.fs.write(Se(this.config.automd.output?Le(this.config.automd.output)?be(e,this.config.automd.output):this.config.automd.output:e,this.config.projectRoot),n.contents)}}))}});const T={PUBLIC:0,PROTECTED:1,PRIVATE:2};var E=class extends C.Struct{static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new C.ObjectSize(8,4)};_adoptAlias(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownAlias(){return C.utils.disown(this.alias)}get alias(){return C.utils.getList(0,C.TextList,this)}_hasAlias(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initAlias(e){return C.utils.initList(0,C.TextList,e,this)}set alias(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get title(){return C.utils.getText(1,this)}set title(e){C.utils.setText(1,e,this)}get hidden(){return C.utils.getBit(0,this)}set hidden(e){C.utils.setBit(0,e,this)}get readonly(){return C.utils.getBit(1,this)}set readonly(e){C.utils.setBit(1,e,this)}get ignore(){return C.utils.getBit(2,this)}set ignore(e){C.utils.setBit(2,e,this)}get internal(){return C.utils.getBit(3,this)}set internal(e){C.utils.setBit(3,e,this)}_adoptPermission(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownPermission(){return C.utils.disown(this.permission)}get permission(){return C.utils.getList(2,C.TextList,this)}_hasPermission(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initPermission(e){return C.utils.initList(2,C.TextList,e,this)}set permission(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}get domain(){return C.utils.getText(3,this)}set domain(e){C.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}};const D={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var Zt=class extends C.Struct{static UNDEFINED=D.UNDEFINED;static BOOLEAN=D.BOOLEAN;static INTEGER=D.INTEGER;static FLOAT=D.FLOAT;static STRING=D.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new C.ObjectSize(16,1)};get _isUndefined(){return C.utils.getUint16(0,this)===0}set undefined(e){C.utils.setUint16(0,0,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(0,this),1,this),C.utils.getBit(16,this)}get _isBoolean(){return C.utils.getUint16(0,this)===1}set boolean(e){C.utils.setUint16(0,1,this),C.utils.setBit(16,e,this)}get integer(){return C.utils.testWhich(`integer`,C.utils.getUint16(0,this),2,this),C.utils.getInt32(4,this)}get _isInteger(){return C.utils.getUint16(0,this)===2}set integer(e){C.utils.setUint16(0,2,this),C.utils.setInt32(4,e,this)}get float(){return C.utils.testWhich(`float`,C.utils.getUint16(0,this),3,this),C.utils.getFloat64(8,this)}get _isFloat(){return C.utils.getUint16(0,this)===3}set float(e){C.utils.setUint16(0,3,this),C.utils.setFloat64(8,e,this)}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(0,this),4,this),C.utils.getText(0,this)}get _isString(){return C.utils.getUint16(0,this)===4}set string(e){C.utils.setUint16(0,4,this),C.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return C.utils.getUint16(0,this)}},O=class extends C.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new C.ObjectSize(16,1)};get value(){return C.utils.getAs(Zt,this)}_initValue(){return C.utils.getAs(Zt,this)}toString(){return`DefaultValueReflection_`+super.toString()}},k=class extends C.Struct{static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new C.ObjectSize(8,0)};get id(){return C.utils.getUint32(0,this)}set id(e){C.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},A=class extends C.Struct{static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new C.ObjectSize(0,2)};_adoptContainer(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownContainer(){return C.utils.disown(this.container)}get container(){return C.utils.getStruct(0,k,this)}_hasContainer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initContainer(){return C.utils.initStructAt(0,k,this)}set container(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(1,k,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initIndex(){return C.utils.initStructAt(1,k,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Qt=class extends C.Struct{static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new C.ObjectSize(0,2)};_adoptNames(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownNames(){return C.utils.disown(this.names)}get names(){return C.utils.getList(0,C.TextList,this)}_hasNames(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initNames(e){return C.utils.initList(0,C.TextList,e,this)}set names(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get options(){return C.utils.getText(1,this)}set options(e){C.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},$t=class e extends C.Struct{static EntityIndexOptions=Qt;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new C.ObjectSize(8,5)};get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get description(){return C.utils.getText(1,this)}set description(e){C.utils.setText(1,e,this)}get collection(){return C.utils.getText(2,this)}set collection(e){C.utils.setText(2,e,this)}get database(){return C.utils.getText(3,this)}set database(e){C.utils.setText(3,e,this)}get singleTableInheritance(){return C.utils.getBit(0,this)}set singleTableInheritance(e){C.utils.setBit(0,e,this)}_adoptIndexes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndexes(){return C.utils.disown(this.indexes)}get indexes(){return C.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndexes(t){return C.utils.initList(4,e._Indexes,t,this)}set indexes(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},j=class e extends C.Struct{static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},M=class e extends C.Struct{static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new C.ObjectSize(8,11)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get globalObject(){return C.utils.getBit(16,this)}set globalObject(e){C.utils.setBit(16,e,this)}get classType(){return C.utils.getText(5,this)}set classType(e){C.utils.setText(5,e,this)}_adoptExtendsArguments(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownExtendsArguments(){return C.utils.disown(this.extendsArguments)}get extendsArguments(){return C.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initExtendsArguments(t){return C.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptArguments(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownArguments(){return C.utils.disown(this.arguments)}get arguments(){return C.utils.getList(7,e._Arguments,this)}_hasArguments(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initArguments(t){return C.utils.initList(7,e._Arguments,t,this)}set arguments(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptSuperClass(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownSuperClass(){return C.utils.disown(this.superClass)}get superClass(){return C.utils.getStruct(8,k,this)}_hasSuperClass(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initSuperClass(){return C.utils.initStructAt(8,k,this)}set superClass(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(9,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(9,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(9,this))}_initTypes(t){return C.utils.initList(9,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(9,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(10,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(10,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(10,this))}_initTags(){return C.utils.initStructAt(10,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},N=class e extends C.Struct{static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}get visibility(){return C.utils.getUint16(2,this)}set visibility(e){C.utils.setUint16(2,e,this)}get readonly(){return C.utils.getBit(32,this)}set readonly(e){C.utils.setBit(32,e,this)}get optional(){return C.utils.getBit(33,this)}set optional(e){C.utils.setBit(33,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,O,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,O,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},en=class e extends C.Struct{static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,k,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,k,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},tn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new C.ObjectSize(8,9)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}get description(){return C.utils.getText(6,this)}set description(e){C.utils.setText(6,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(8,O,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initDefault(){return C.utils.initStructAt(8,O,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},nn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,k,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,k,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},rn=class e extends C.Struct{static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new C.ObjectSize(8,4)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},an=class extends C.Struct{static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new C.ObjectSize(0,2)};get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},on=class e extends C.Struct{static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptEnumEntries(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownEnumEntries(){return C.utils.disown(this.enumEntries)}get enumEntries(){return C.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initEnumEntries(t){return C.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptValues(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownValues(){return C.utils.disown(this.values)}get values(){return C.utils.getList(5,C.TextList,this)}_hasValues(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initValues(e){return C.utils.initList(5,C.TextList,e,this)}set values(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptIndexType(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownIndexType(){return C.utils.disown(this.indexType)}get indexType(){return C.utils.getStruct(6,k,this)}_hasIndexType(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initIndexType(){return C.utils.initStructAt(6,k,this)}set indexType(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},sn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},cn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},ln=class e extends C.Struct{static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},un=class e extends C.Struct{static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(4,k,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndex(){return C.utils.initStructAt(4,k,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},dn=class e extends C.Struct{static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new C.ObjectSize(8,9)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get readonly(){return C.utils.getBit(17,this)}set readonly(e){C.utils.setBit(17,e,this)}get description(){return C.utils.getText(5,this)}set description(e){C.utils.setText(5,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,O,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,O,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(8,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initTags(){return C.utils.initStructAt(8,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},fn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new C.ObjectSize(8,8)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(5,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initParameters(t){return C.utils.initList(5,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(6,k,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initReturn(){return C.utils.initStructAt(6,k,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,E,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,E,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},pn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},mn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new C.ObjectSize(8,4)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},hn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new C.ObjectSize(8,6)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},gn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},_n=class e extends C.Struct{static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,k,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,k,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},vn=class e extends C.Struct{static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptOrigin(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownOrigin(){return C.utils.disown(this.origin)}get origin(){return C.utils.getStruct(4,k,this)}_hasOrigin(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initOrigin(){return C.utils.initStructAt(4,k,this)}set origin(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},yn=class extends C.Struct{static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get name(){return C.utils.getText(1,this)}set name(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},bn=class extends C.Struct{static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},xn=class extends C.Struct{static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get regex(){return C.utils.getText(1,this)}set regex(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}};const P={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var Sn=class extends C.Struct{static SYMBOL=P.SYMBOL;static STRING=P.STRING;static NUMBER=P.NUMBER;static BOOLEAN=P.BOOLEAN;static BIGINT=P.BIGINT;static REGEX=P.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new C.ObjectSize(16,5)};_adoptSymbol(e){C.utils.setUint16(2,0,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownSymbol(){return C.utils.disown(this.symbol)}get symbol(){return C.utils.testWhich(`symbol`,C.utils.getUint16(2,this),0,this),C.utils.getStruct(4,yn,this)}_hasSymbol(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initSymbol(){return C.utils.setUint16(2,0,this),C.utils.initStructAt(4,yn,this)}get _isSymbol(){return C.utils.getUint16(2,this)===0}set symbol(e){C.utils.setUint16(2,0,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(2,this),1,this),C.utils.getText(4,this)}get _isString(){return C.utils.getUint16(2,this)===1}set string(e){C.utils.setUint16(2,1,this),C.utils.setText(4,e,this)}get number(){return C.utils.testWhich(`number`,C.utils.getUint16(2,this),2,this),C.utils.getFloat64(8,this)}get _isNumber(){return C.utils.getUint16(2,this)===2}set number(e){C.utils.setUint16(2,2,this),C.utils.setFloat64(8,e,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(2,this),3,this),C.utils.getBit(64,this)}get _isBoolean(){return C.utils.getUint16(2,this)===3}set boolean(e){C.utils.setUint16(2,3,this),C.utils.setBit(64,e,this)}_adoptBigint(e){C.utils.setUint16(2,4,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownBigint(){return C.utils.disown(this.bigint)}get bigint(){return C.utils.testWhich(`bigint`,C.utils.getUint16(2,this),4,this),C.utils.getStruct(4,bn,this)}_hasBigint(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initBigint(){return C.utils.setUint16(2,4,this),C.utils.initStructAt(4,bn,this)}get _isBigint(){return C.utils.getUint16(2,this)===4}set bigint(e){C.utils.setUint16(2,4,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptRegex(e){C.utils.setUint16(2,5,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownRegex(){return C.utils.disown(this.regex)}get regex(){return C.utils.testWhich(`regex`,C.utils.getUint16(2,this),5,this),C.utils.getStruct(4,xn,this)}_hasRegex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initRegex(){return C.utils.setUint16(2,5,this),C.utils.initStructAt(4,xn,this)}get _isRegex(){return C.utils.getUint16(2,this)===5}set regex(e){C.utils.setUint16(2,5,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return C.utils.getUint16(2,this)}},Cn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new C.ObjectSize(16,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get literal(){return C.utils.getAs(Sn,this)}_initLiteral(){return C.utils.getAs(Sn,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},wn=class e extends C.Struct{static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new C.ObjectSize(8,5)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,A,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,A,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},Tn=class extends C.Struct{static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new C.ObjectSize(8,1)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}};const F={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22};var En=class extends C.Struct{static SIMPLE=F.SIMPLE;static LITERAL=F.LITERAL;static TEMPLATE_LITERAL=F.TEMPLATE_LITERAL;static PARAMETER=F.PARAMETER;static FUNCTION=F.FUNCTION;static METHOD=F.METHOD;static PROPERTY=F.PROPERTY;static PROMISE=F.PROMISE;static CLASS_TYPE=F.CLASS_TYPE;static ENUM=F.ENUM;static UNION=F.UNION;static INTERSECTION=F.INTERSECTION;static ARRAY=F.ARRAY;static OBJECT_LITERAL=F.OBJECT_LITERAL;static INDEX_SIGNATURE=F.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=F.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=F.METHOD_SIGNATURE;static TYPE_PARAMETER=F.TYPE_PARAMETER;static INFER=F.INFER;static TUPLE=F.TUPLE;static TUPLE_MEMBER=F.TUPLE_MEMBER;static REST=F.REST;static OTHER=F.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new C.ObjectSize(8,1)};_adoptSimple(e){C.utils.setUint16(0,0,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownSimple(){return C.utils.disown(this.simple)}get simple(){return C.utils.testWhich(`simple`,C.utils.getUint16(0,this),0,this),C.utils.getStruct(0,vn,this)}_hasSimple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initSimple(){return C.utils.setUint16(0,0,this),C.utils.initStructAt(0,vn,this)}get _isSimple(){return C.utils.getUint16(0,this)===0}set simple(e){C.utils.setUint16(0,0,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptLiteral(e){C.utils.setUint16(0,1,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownLiteral(){return C.utils.disown(this.literal)}get literal(){return C.utils.testWhich(`literal`,C.utils.getUint16(0,this),1,this),C.utils.getStruct(0,Cn,this)}_hasLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initLiteral(){return C.utils.setUint16(0,1,this),C.utils.initStructAt(0,Cn,this)}get _isLiteral(){return C.utils.getUint16(0,this)===1}set literal(e){C.utils.setUint16(0,1,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTemplateLiteral(e){C.utils.setUint16(0,2,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTemplateLiteral(){return C.utils.disown(this.templateLiteral)}get templateLiteral(){return C.utils.testWhich(`templateLiteral`,C.utils.getUint16(0,this),2,this),C.utils.getStruct(0,wn,this)}_hasTemplateLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTemplateLiteral(){return C.utils.setUint16(0,2,this),C.utils.initStructAt(0,wn,this)}get _isTemplateLiteral(){return C.utils.getUint16(0,this)===2}set templateLiteral(e){C.utils.setUint16(0,2,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptParameter(e){C.utils.setUint16(0,3,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownParameter(){return C.utils.disown(this.parameter)}get parameter(){return C.utils.testWhich(`parameter`,C.utils.getUint16(0,this),3,this),C.utils.getStruct(0,N,this)}_hasParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initParameter(){return C.utils.setUint16(0,3,this),C.utils.initStructAt(0,N,this)}get _isParameter(){return C.utils.getUint16(0,this)===3}set parameter(e){C.utils.setUint16(0,3,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptFunction(e){C.utils.setUint16(0,4,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownFunction(){return C.utils.disown(this.function)}get function(){return C.utils.testWhich(`function`,C.utils.getUint16(0,this),4,this),C.utils.getStruct(0,nn,this)}_hasFunction(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initFunction(){return C.utils.setUint16(0,4,this),C.utils.initStructAt(0,nn,this)}get _isFunction(){return C.utils.getUint16(0,this)===4}set function(e){C.utils.setUint16(0,4,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethod(e){C.utils.setUint16(0,5,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethod(){return C.utils.disown(this.method)}get method(){return C.utils.testWhich(`method`,C.utils.getUint16(0,this),5,this),C.utils.getStruct(0,en,this)}_hasMethod(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethod(){return C.utils.setUint16(0,5,this),C.utils.initStructAt(0,en,this)}get _isMethod(){return C.utils.getUint16(0,this)===5}set method(e){C.utils.setUint16(0,5,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptProperty(e){C.utils.setUint16(0,6,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownProperty(){return C.utils.disown(this.property)}get property(){return C.utils.testWhich(`property`,C.utils.getUint16(0,this),6,this),C.utils.getStruct(0,tn,this)}_hasProperty(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initProperty(){return C.utils.setUint16(0,6,this),C.utils.initStructAt(0,tn,this)}get _isProperty(){return C.utils.getUint16(0,this)===6}set property(e){C.utils.setUint16(0,6,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPromise(e){C.utils.setUint16(0,7,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPromise(){return C.utils.disown(this.promise)}get promise(){return C.utils.testWhich(`promise`,C.utils.getUint16(0,this),7,this),C.utils.getStruct(0,rn,this)}_hasPromise(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPromise(){return C.utils.setUint16(0,7,this),C.utils.initStructAt(0,rn,this)}get _isPromise(){return C.utils.getUint16(0,this)===7}set promise(e){C.utils.setUint16(0,7,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptClassType(e){C.utils.setUint16(0,8,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownClassType(){return C.utils.disown(this.classType)}get classType(){return C.utils.testWhich(`classType`,C.utils.getUint16(0,this),8,this),C.utils.getStruct(0,M,this)}_hasClassType(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initClassType(){return C.utils.setUint16(0,8,this),C.utils.initStructAt(0,M,this)}get _isClassType(){return C.utils.getUint16(0,this)===8}set classType(e){C.utils.setUint16(0,8,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptEnum(e){C.utils.setUint16(0,9,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownEnum(){return C.utils.disown(this.enum)}get enum(){return C.utils.testWhich(`enum`,C.utils.getUint16(0,this),9,this),C.utils.getStruct(0,on,this)}_hasEnum(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initEnum(){return C.utils.setUint16(0,9,this),C.utils.initStructAt(0,on,this)}get _isEnum(){return C.utils.getUint16(0,this)===9}set enum(e){C.utils.setUint16(0,9,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptUnion(e){C.utils.setUint16(0,10,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownUnion(){return C.utils.disown(this.union)}get union(){return C.utils.testWhich(`union`,C.utils.getUint16(0,this),10,this),C.utils.getStruct(0,sn,this)}_hasUnion(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initUnion(){return C.utils.setUint16(0,10,this),C.utils.initStructAt(0,sn,this)}get _isUnion(){return C.utils.getUint16(0,this)===10}set union(e){C.utils.setUint16(0,10,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIntersection(e){C.utils.setUint16(0,11,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIntersection(){return C.utils.disown(this.intersection)}get intersection(){return C.utils.testWhich(`intersection`,C.utils.getUint16(0,this),11,this),C.utils.getStruct(0,cn,this)}_hasIntersection(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIntersection(){return C.utils.setUint16(0,11,this),C.utils.initStructAt(0,cn,this)}get _isIntersection(){return C.utils.getUint16(0,this)===11}set intersection(e){C.utils.setUint16(0,11,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptArray(e){C.utils.setUint16(0,12,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownArray(){return C.utils.disown(this.array)}get array(){return C.utils.testWhich(`array`,C.utils.getUint16(0,this),12,this),C.utils.getStruct(0,ln,this)}_hasArray(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initArray(){return C.utils.setUint16(0,12,this),C.utils.initStructAt(0,ln,this)}get _isArray(){return C.utils.getUint16(0,this)===12}set array(e){C.utils.setUint16(0,12,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptObjectLiteral(e){C.utils.setUint16(0,13,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownObjectLiteral(){return C.utils.disown(this.objectLiteral)}get objectLiteral(){return C.utils.testWhich(`objectLiteral`,C.utils.getUint16(0,this),13,this),C.utils.getStruct(0,j,this)}_hasObjectLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initObjectLiteral(){return C.utils.setUint16(0,13,this),C.utils.initStructAt(0,j,this)}get _isObjectLiteral(){return C.utils.getUint16(0,this)===13}set objectLiteral(e){C.utils.setUint16(0,13,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndexSignature(e){C.utils.setUint16(0,14,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIndexSignature(){return C.utils.disown(this.indexSignature)}get indexSignature(){return C.utils.testWhich(`indexSignature`,C.utils.getUint16(0,this),14,this),C.utils.getStruct(0,un,this)}_hasIndexSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIndexSignature(){return C.utils.setUint16(0,14,this),C.utils.initStructAt(0,un,this)}get _isIndexSignature(){return C.utils.getUint16(0,this)===14}set indexSignature(e){C.utils.setUint16(0,14,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPropertySignature(e){C.utils.setUint16(0,15,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPropertySignature(){return C.utils.disown(this.propertySignature)}get propertySignature(){return C.utils.testWhich(`propertySignature`,C.utils.getUint16(0,this),15,this),C.utils.getStruct(0,dn,this)}_hasPropertySignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPropertySignature(){return C.utils.setUint16(0,15,this),C.utils.initStructAt(0,dn,this)}get _isPropertySignature(){return C.utils.getUint16(0,this)===15}set propertySignature(e){C.utils.setUint16(0,15,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethodSignature(e){C.utils.setUint16(0,16,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethodSignature(){return C.utils.disown(this.methodSignature)}get methodSignature(){return C.utils.testWhich(`methodSignature`,C.utils.getUint16(0,this),16,this),C.utils.getStruct(0,fn,this)}_hasMethodSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethodSignature(){return C.utils.setUint16(0,16,this),C.utils.initStructAt(0,fn,this)}get _isMethodSignature(){return C.utils.getUint16(0,this)===16}set methodSignature(e){C.utils.setUint16(0,16,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTypeParameter(e){C.utils.setUint16(0,17,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypeParameter(){return C.utils.disown(this.typeParameter)}get typeParameter(){return C.utils.testWhich(`typeParameter`,C.utils.getUint16(0,this),17,this),C.utils.getStruct(0,pn,this)}_hasTypeParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypeParameter(){return C.utils.setUint16(0,17,this),C.utils.initStructAt(0,pn,this)}get _isTypeParameter(){return C.utils.getUint16(0,this)===17}set typeParameter(e){C.utils.setUint16(0,17,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptInfer(e){C.utils.setUint16(0,18,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownInfer(){return C.utils.disown(this.infer)}get infer(){return C.utils.testWhich(`infer`,C.utils.getUint16(0,this),18,this),C.utils.getStruct(0,mn,this)}_hasInfer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initInfer(){return C.utils.setUint16(0,18,this),C.utils.initStructAt(0,mn,this)}get _isInfer(){return C.utils.getUint16(0,this)===18}set infer(e){C.utils.setUint16(0,18,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTuple(e){C.utils.setUint16(0,19,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTuple(){return C.utils.disown(this.tuple)}get tuple(){return C.utils.testWhich(`tuple`,C.utils.getUint16(0,this),19,this),C.utils.getStruct(0,gn,this)}_hasTuple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTuple(){return C.utils.setUint16(0,19,this),C.utils.initStructAt(0,gn,this)}get _isTuple(){return C.utils.getUint16(0,this)===19}set tuple(e){C.utils.setUint16(0,19,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTupleMember(e){C.utils.setUint16(0,20,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTupleMember(){return C.utils.disown(this.tupleMember)}get tupleMember(){return C.utils.testWhich(`tupleMember`,C.utils.getUint16(0,this),20,this),C.utils.getStruct(0,hn,this)}_hasTupleMember(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTupleMember(){return C.utils.setUint16(0,20,this),C.utils.initStructAt(0,hn,this)}get _isTupleMember(){return C.utils.getUint16(0,this)===20}set tupleMember(e){C.utils.setUint16(0,20,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptRest(e){C.utils.setUint16(0,21,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownRest(){return C.utils.disown(this.rest)}get rest(){return C.utils.testWhich(`rest`,C.utils.getUint16(0,this),21,this),C.utils.getStruct(0,_n,this)}_hasRest(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initRest(){return C.utils.setUint16(0,21,this),C.utils.initStructAt(0,_n,this)}get _isRest(){return C.utils.getUint16(0,this)===21}set rest(e){C.utils.setUint16(0,21,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptOther(e){C.utils.setUint16(0,22,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownOther(){return C.utils.disown(this.other)}get other(){return C.utils.testWhich(`other`,C.utils.getUint16(0,this),22,this),C.utils.getStruct(0,Tn,this)}_hasOther(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initOther(){return C.utils.setUint16(0,22,this),C.utils.initStructAt(0,Tn,this)}get _isOther(){return C.utils.getUint16(0,this)===22}set other(e){C.utils.setUint16(0,22,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return C.utils.getUint16(0,this)}},Dn=class extends C.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new C.ObjectSize(8,1)};get type(){return C.utils.getAs(En,this)}_initType(){return C.utils.getAs(En,this)}toString(){return`SerializedType_`+super.toString()}},On=class e extends C.Struct{static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new C.ObjectSize(0,1)};_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(0,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypes(t){return C.utils.initList(0,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};$t._Indexes=C.CompositeList(Qt),j._TypeArguments=C.CompositeList(k),j._Decorators=C.CompositeList(k),j._Types=C.CompositeList(k),M._TypeArguments=C.CompositeList(k),M._Decorators=C.CompositeList(k),M._ExtendsArguments=C.CompositeList(k),M._Arguments=C.CompositeList(k),M._Types=C.CompositeList(k),N._TypeArguments=C.CompositeList(k),N._Decorators=C.CompositeList(k),en._TypeArguments=C.CompositeList(k),en._Decorators=C.CompositeList(k),en._Parameters=C.CompositeList(N),tn._TypeArguments=C.CompositeList(k),tn._Decorators=C.CompositeList(k),nn._TypeArguments=C.CompositeList(k),nn._Decorators=C.CompositeList(k),nn._Parameters=C.CompositeList(N),rn._TypeArguments=C.CompositeList(k),rn._Decorators=C.CompositeList(k),on._TypeArguments=C.CompositeList(k),on._Decorators=C.CompositeList(k),on._EnumEntries=C.CompositeList(an),sn._TypeArguments=C.CompositeList(k),sn._Decorators=C.CompositeList(k),sn._Types=C.CompositeList(k),cn._TypeArguments=C.CompositeList(k),cn._Decorators=C.CompositeList(k),cn._Types=C.CompositeList(k),ln._TypeArguments=C.CompositeList(k),ln._Decorators=C.CompositeList(k),un._TypeArguments=C.CompositeList(k),un._Decorators=C.CompositeList(k),dn._TypeArguments=C.CompositeList(k),dn._Decorators=C.CompositeList(k),fn._TypeArguments=C.CompositeList(k),fn._Decorators=C.CompositeList(k),fn._Parameters=C.CompositeList(N),pn._TypeArguments=C.CompositeList(k),pn._Decorators=C.CompositeList(k),mn._TypeArguments=C.CompositeList(k),mn._Decorators=C.CompositeList(k),hn._TypeArguments=C.CompositeList(k),hn._Decorators=C.CompositeList(k),gn._TypeArguments=C.CompositeList(k),gn._Decorators=C.CompositeList(k),gn._Types=C.CompositeList(hn),_n._TypeArguments=C.CompositeList(k),_n._Decorators=C.CompositeList(k),vn._TypeArguments=C.CompositeList(k),vn._Decorators=C.CompositeList(k),Cn._TypeArguments=C.CompositeList(k),Cn._Decorators=C.CompositeList(k),wn._TypeArguments=C.CompositeList(k),wn._Decorators=C.CompositeList(k),wn._Types=C.CompositeList(k),On._Types=C.CompositeList(Dn);function kn(e,t){if(!e||!Array.isArray(e)||e.length===0)throw Error(`Invalid serialized type provided for conversion.`);if(e.length!==t.length)throw Error(`Mismatch in length of serialized types: expected ${t.length}, got ${e.length}.`);return e.filter(e=>Xe(e)&&!Qe(e.kind)).forEach((e,n)=>{jn(e,t.get(n)._initType())}),t}function An(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=Mn(e.type);t.push(n)}),t}function I(e,t){if(t?.alias?.length){let n=e._initAlias(t.alias.length);t.alias.forEach((e,t)=>{n.set(t,e)})}if(e.hidden=t?.hidden??!1,e.ignore=t?.ignore??!1,e.internal=t?.internal??!1,e.readonly=t?.readonly??!1,t?.title&&(e.title=t?.title),t?.domain&&(e.domain=t?.domain),t?.permission?.length){let n=e._initPermission(t.permission.length);t.permission?.forEach((e,t)=>{n.set(t,e)})}return e}function L(e){return e._hasTags()?{alias:e.tags?.alias?.length?e.tags?.alias.map(e=>e):void 0,hidden:e.tags?.hidden,domain:e.tags?.domain?e.tags.domain:void 0,title:e.tags?.title?e.tags.title:void 0,ignore:e.tags?.ignore,internal:e.tags?.internal,readonly:e.tags?.readonly,permission:e.tags?.permission?.length?e.tags?.permission?.map(e=>e):void 0}:void 0}function R(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function z(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function jn(e,t){return e.kind===w.ReflectionKind.objectLiteral?pr(e,t._initObjectLiteral()):e.kind===w.ReflectionKind.class?dr(e,t._initClassType()):e.kind===w.ReflectionKind.parameter?hr(e,t._initParameter()):e.kind===w.ReflectionKind.function?sr(e,t._initFunction()):e.kind===w.ReflectionKind.method?cr(e,t._initMethod()):e.kind===w.ReflectionKind.infer?ar(e,t._initInfer()):e.kind===w.ReflectionKind.union?rr(e,t._initUnion()):e.kind===w.ReflectionKind.array?tr(e,t._initArray()):e.kind===w.ReflectionKind.intersection?$n(e,t._initIntersection()):e.kind===w.ReflectionKind.enum?Zn(e,t._initEnum()):e.kind===w.ReflectionKind.property?Yn(e,t._initProperty()):e.kind===w.ReflectionKind.tuple?qn(e,t._initTuple()):e.kind===w.ReflectionKind.tupleMember?Gn(e,t._initTupleMember()):e.kind===w.ReflectionKind.propertySignature?Wn(e,t._initPropertySignature()):e.kind===w.ReflectionKind.methodSignature?Bn(e,t._initMethodSignature()):e.kind===w.ReflectionKind.literal?Rn(e,t._initLiteral()):e.kind===w.ReflectionKind.never||e.kind===w.ReflectionKind.any||e.kind===w.ReflectionKind.unknown||e.kind===w.ReflectionKind.void||e.kind===w.ReflectionKind.object||e.kind===w.ReflectionKind.string||e.kind===w.ReflectionKind.number||e.kind===w.ReflectionKind.boolean||e.kind===w.ReflectionKind.symbol||e.kind===w.ReflectionKind.bigint||e.kind===w.ReflectionKind.null||e.kind===w.ReflectionKind.undefined||e.kind===w.ReflectionKind.regexp?In(e,t._initSimple()):Fn(e,t._initOther()),t}function Mn(e){if(e._isObjectLiteral)return mr(e.objectLiteral);if(e._isClassType)return fr(e.classType);if(e._isParameter)return gr(e.parameter);if(e._isFunction)return lr(e.function);if(e._isInfer)return or(e.infer);if(e._isMethod)return ur(e.method);if(e._isUnion)return ir(e.union);if(e._isArray)return nr(e.array);if(e._isIntersection)return er(e.intersection);if(e._isEnum)return Qn(e.enum);if(e._isProperty)return Xn(e.property);if(e._isTuple)return Jn(e.tuple);if(e._isTupleMember)return Kn(e.tupleMember);if(e._isPropertySignature)return Vn(e.propertySignature);if(e._isMethodSignature)return zn(e.methodSignature);if(e._isLiteral)return Ln(e.literal);if(e._isSimple)return Pn(e.simple);if(e._isOther)return Nn(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function Nn(e){return{kind:e.kind,typeName:e.typeName||void 0}}function Pn(e){let t={kind:e.kind,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function Fn(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function In(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.origin&&(t._initOrigin(),t.origin.id=e.origin??0),e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Ln(e){return{kind:w.ReflectionKind.literal,literal:e.literal._isString?e.literal.string:e.literal._isNumber?e.literal.number:e.literal._isBoolean?e.literal.boolean:e.literal._isBigint?{type:`bigint`,value:e.literal.bigint.value}:e.literal._isSymbol?{type:`symbol`,name:e.literal.symbol.name}:{type:`regex`,regex:e.literal.regex.regex},typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function Rn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initLiteral();if(typeof e.literal==`boolean`)n.boolean=e.literal;else if(typeof e.literal==`number`)n.number=e.literal;else if(typeof e.literal==`string`)n.string=e.literal;else if(e.literal.type===`bigint`){let t=n._initBigint();t.type=`bigint`,t.value=e.literal.value}else if(e.literal.type===`symbol`){let t=n._initSymbol();t.type=`symbol`,t.name=e.literal.name.toString().slice(7,-1)}else if(e.literal.type===`regex`){let t=n._initRegex();t.type=`regex`,t.regex=e.literal.regex}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function zn(e){return{kind:w.ReflectionKind.methodSignature,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>gr(e)):[],return:e.return.id,tags:L(e)}}function Bn(e,t){if(t.kind=e.kind,t.name=String(e.name),t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Vn(e){return{kind:w.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:Un(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function Hn(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?Ye(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function Un(e){if(e.value!==void 0){if(e.value._isBoolean)return e.value.boolean;if(e.value._isInteger)return e.value.integer;if(e.value._isFloat)return e.value.float;if(e.value._isString)return e.value.string}}function Wn(e,t){if(t.kind=e.kind,t.name=String(e.name)||``,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,e.default!==void 0){let n=t._initDefault();Hn(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Gn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Kn(e){return{kind:w.ReflectionKind.tupleMember,type:e.type.id,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function qn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{Gn(e,n.get(t))}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Jn(e){return{kind:w.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>Kn(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function Yn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===w.ReflectionVisibility.public?T.PUBLIC:e.visibility===w.ReflectionVisibility.protected?T.PROTECTED:T.PRIVATE,t.abstract=e.abstract??!1,t.name=String(e.name)||``,e.default!==void 0){let n=t._initDefault();Hn(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function Xn(e){return{kind:w.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:Un(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===T.PUBLIC?w.ReflectionVisibility.public:e.visibility===T.PROTECTED?w.ReflectionVisibility.protected:w.ReflectionVisibility.private,abstract:e.abstract?!0:void 0,name:e.name,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function Zn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initIndexType();if(n.id=e.indexType,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.values?.length){let n=t._initValues(e.values?.length);e.values.forEach((e,t)=>{n.set(t,String(e))})}let r=t._initEnumEntries(Object.keys(e.enum).length??0);return Object.entries(e.enum).forEach(([e,t],n)=>{let i=r.get(n);i.name=e,i.value=String(t)}),e.tags&&I(t._initTags(),e.tags),t}function Qn(e){return{kind:w.ReflectionKind.enum,typeName:e.typeName||void 0,indexType:e.indexType.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,values:e._hasValues()?e.values.map(e=>e):[],enum:e._hasEnumEntries()?Object.entries(e.enumEntries).reduce((e,[t,n])=>(e[t]=n.value,e),{}):{},indexAccessOrigin:z(e),tags:L(e)}}function $n(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function er(e){return{kind:w.ReflectionKind.intersection,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function tr(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function nr(e){return{kind:w.ReflectionKind.array,typeName:e.typeName||void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function rr(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function ir(e){return{kind:w.ReflectionKind.union,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function ar(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function or(e){return{kind:w.ReflectionKind.infer,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e)}}function sr(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{hr(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function cr(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,t.abstract=e.abstract??!1,t.visibility=e.visibility===w.ReflectionVisibility.public?T.PUBLIC:e.visibility===w.ReflectionVisibility.protected?T.PROTECTED:T.PRIVATE,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{hr(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function lr(e){return{kind:w.ReflectionKind.function,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>gr(e)):[],return:e.return.id,indexAccessOrigin:z(e),tags:L(e)}}function ur(e){return{kind:w.ReflectionKind.method,name:e.name,typeName:e.typeName||void 0,abstract:e.abstract?!0:void 0,return:e.return.id,visibility:e.visibility===T.PUBLIC?w.ReflectionVisibility.public:e.visibility===T.PROTECTED?w.ReflectionVisibility.protected:w.ReflectionVisibility.private,parameters:e._hasParameters()?e.parameters.map(e=>gr(e)):[]}}function dr(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.classType=e.classType||``,t.globalObject=e.globalObject??!1,e.arguments?.length){let n=t._initArguments(e.arguments.length);e.arguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.extendsArguments?.length){let n=t._initArguments(e.extendsArguments.length);e.extendsArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.superClass){let n=t._initSuperClass();n.id=e.superClass}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function fr(e){return{kind:w.ReflectionKind.class,typeName:e.typeName||void 0,classType:e.classType,globalObject:e.globalObject?!0:void 0,arguments:e._hasArguments()?e.arguments.map(e=>e.id):void 0,extendsArguments:e._hasExtendsArguments()?e.extendsArguments.map(e=>e.id):void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,superClass:e._hasSuperClass()?e.superClass.id:void 0,indexAccessOrigin:z(e),tags:L(e)}}function pr(e,t){if(e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.types?.length){let n=t._initTypes(e.types.length);e.types.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function mr(e){return{kind:w.ReflectionKind.objectLiteral,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}function hr(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.name=e.name||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===w.ReflectionVisibility.public?T.PUBLIC:e.visibility===w.ReflectionVisibility.protected?T.PROTECTED:T.PRIVATE,e.default!==void 0){let n=t._initDefault();Hn(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&R(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&I(t._initTags(),e.tags),t}function gr(e){return{kind:w.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:Un(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===T.PUBLIC?w.ReflectionVisibility.public:e.visibility===T.PROTECTED?w.ReflectionVisibility.protected:w.ReflectionVisibility.private,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:z(e),tags:L(e)}}var _r=Object.defineProperty,B=(e,t)=>_r(e,`name`,{value:t,configurable:!0}),V=class extends C.Struct{static{B(this,`TagsReflection`)}static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new C.ObjectSize(8,4)};_adoptAlias(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownAlias(){return C.utils.disown(this.alias)}get alias(){return C.utils.getList(0,C.TextList,this)}_hasAlias(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initAlias(e){return C.utils.initList(0,C.TextList,e,this)}set alias(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get title(){return C.utils.getText(1,this)}set title(e){C.utils.setText(1,e,this)}get hidden(){return C.utils.getBit(0,this)}set hidden(e){C.utils.setBit(0,e,this)}get readonly(){return C.utils.getBit(1,this)}set readonly(e){C.utils.setBit(1,e,this)}get ignore(){return C.utils.getBit(2,this)}set ignore(e){C.utils.setBit(2,e,this)}get internal(){return C.utils.getBit(3,this)}set internal(e){C.utils.setBit(3,e,this)}_adoptPermission(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownPermission(){return C.utils.disown(this.permission)}get permission(){return C.utils.getList(2,C.TextList,this)}_hasPermission(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initPermission(e){return C.utils.initList(2,C.TextList,e,this)}set permission(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}get domain(){return C.utils.getText(3,this)}set domain(e){C.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}},vr={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},yr=class extends C.Struct{static{B(this,`DefaultValueReflection_Value`)}static UNDEFINED=vr.UNDEFINED;static BOOLEAN=vr.BOOLEAN;static INTEGER=vr.INTEGER;static FLOAT=vr.FLOAT;static STRING=vr.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new C.ObjectSize(16,1)};get _isUndefined(){return C.utils.getUint16(0,this)===0}set undefined(e){C.utils.setUint16(0,0,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(0,this),1,this),C.utils.getBit(16,this)}get _isBoolean(){return C.utils.getUint16(0,this)===1}set boolean(e){C.utils.setUint16(0,1,this),C.utils.setBit(16,e,this)}get integer(){return C.utils.testWhich(`integer`,C.utils.getUint16(0,this),2,this),C.utils.getInt32(4,this)}get _isInteger(){return C.utils.getUint16(0,this)===2}set integer(e){C.utils.setUint16(0,2,this),C.utils.setInt32(4,e,this)}get float(){return C.utils.testWhich(`float`,C.utils.getUint16(0,this),3,this),C.utils.getFloat64(8,this)}get _isFloat(){return C.utils.getUint16(0,this)===3}set float(e){C.utils.setUint16(0,3,this),C.utils.setFloat64(8,e,this)}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(0,this),4,this),C.utils.getText(0,this)}get _isString(){return C.utils.getUint16(0,this)===4}set string(e){C.utils.setUint16(0,4,this),C.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return C.utils.getUint16(0,this)}},H=class extends C.Struct{static{B(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new C.ObjectSize(16,1)};get value(){return C.utils.getAs(yr,this)}_initValue(){return C.utils.getAs(yr,this)}toString(){return`DefaultValueReflection_`+super.toString()}},U=class extends C.Struct{static{B(this,`SerializedTypeReference`)}static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new C.ObjectSize(8,0)};get id(){return C.utils.getUint32(0,this)}set id(e){C.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},W=class extends C.Struct{static{B(this,`IndexAccessOrigin`)}static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new C.ObjectSize(0,2)};_adoptContainer(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownContainer(){return C.utils.disown(this.container)}get container(){return C.utils.getStruct(0,U,this)}_hasContainer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initContainer(){return C.utils.initStructAt(0,U,this)}set container(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(1,U,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initIndex(){return C.utils.initStructAt(1,U,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},br=class extends C.Struct{static{B(this,`EntityOptions_EntityIndexOptions`)}static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new C.ObjectSize(0,2)};_adoptNames(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownNames(){return C.utils.disown(this.names)}get names(){return C.utils.getList(0,C.TextList,this)}_hasNames(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initNames(e){return C.utils.initList(0,C.TextList,e,this)}set names(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}get options(){return C.utils.getText(1,this)}set options(e){C.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},xr=class e extends C.Struct{static{B(this,`EntityOptions`)}static EntityIndexOptions=br;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new C.ObjectSize(8,5)};static _Indexes;get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get description(){return C.utils.getText(1,this)}set description(e){C.utils.setText(1,e,this)}get collection(){return C.utils.getText(2,this)}set collection(e){C.utils.setText(2,e,this)}get database(){return C.utils.getText(3,this)}set database(e){C.utils.setText(3,e,this)}get singleTableInheritance(){return C.utils.getBit(0,this)}set singleTableInheritance(e){C.utils.setBit(0,e,this)}_adoptIndexes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndexes(){return C.utils.disown(this.indexes)}get indexes(){return C.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndexes(t){return C.utils.initList(4,e._Indexes,t,this)}set indexes(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},Sr=class e extends C.Struct{static{B(this,`SerializedTypeObjectLiteral`)}static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},G=class e extends C.Struct{static{B(this,`SerializedTypeClassType`)}static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new C.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get globalObject(){return C.utils.getBit(16,this)}set globalObject(e){C.utils.setBit(16,e,this)}get classType(){return C.utils.getText(5,this)}set classType(e){C.utils.setText(5,e,this)}_adoptExtendsArguments(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownExtendsArguments(){return C.utils.disown(this.extendsArguments)}get extendsArguments(){return C.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initExtendsArguments(t){return C.utils.initList(6,e._ExtendsArguments,t,this)}set extendsArguments(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptArguments(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownArguments(){return C.utils.disown(this.arguments)}get arguments(){return C.utils.getList(7,e._Arguments,this)}_hasArguments(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initArguments(t){return C.utils.initList(7,e._Arguments,t,this)}set arguments(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptSuperClass(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownSuperClass(){return C.utils.disown(this.superClass)}get superClass(){return C.utils.getStruct(8,U,this)}_hasSuperClass(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initSuperClass(){return C.utils.initStructAt(8,U,this)}set superClass(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(9,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(9,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(9,this))}_initTypes(t){return C.utils.initList(9,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(9,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(10,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(10,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(10,this))}_initTags(){return C.utils.initStructAt(10,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},K=class e extends C.Struct{static{B(this,`SerializedTypeParameter`)}static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}get visibility(){return C.utils.getUint16(2,this)}set visibility(e){C.utils.setUint16(2,e,this)}get readonly(){return C.utils.getBit(32,this)}set readonly(e){C.utils.setBit(32,e,this)}get optional(){return C.utils.getBit(33,this)}set optional(e){C.utils.setBit(33,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,H,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,H,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Cr=class e extends C.Struct{static{B(this,`SerializedTypeMethod`)}static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,U,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,U,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},wr=class e extends C.Struct{static{B(this,`SerializedTypeProperty`)}static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new C.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}get description(){return C.utils.getText(6,this)}set description(e){C.utils.setText(6,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(8,H,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initDefault(){return C.utils.initStructAt(8,H,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},Tr=class e extends C.Struct{static{B(this,`SerializedTypeFunction`)}static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}get optional(){return C.utils.getBit(17,this)}set optional(e){C.utils.setBit(17,e,this)}get readonly(){return C.utils.getBit(18,this)}set readonly(e){C.utils.setBit(18,e,this)}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(4,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTags(){return C.utils.initStructAt(4,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get kind(){return C.utils.getUint16(4,this)}set kind(e){C.utils.setUint16(4,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(6,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initParameters(t){return C.utils.initList(6,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(7,U,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initReturn(){return C.utils.initStructAt(7,U,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},Er=class e extends C.Struct{static{B(this,`SerializedTypePromise`)}static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new C.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get visibility(){return C.utils.getUint16(0,this)}set visibility(e){C.utils.setUint16(0,e,this)}get abstract(){return C.utils.getBit(16,this)}set abstract(e){C.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},Dr=class extends C.Struct{static{B(this,`SerializedTypeEnumEntry`)}static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new C.ObjectSize(0,2)};get name(){return C.utils.getText(0,this)}set name(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},Or=class e extends C.Struct{static{B(this,`SerializedTypeEnum`)}static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptEnumEntries(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownEnumEntries(){return C.utils.disown(this.enumEntries)}get enumEntries(){return C.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initEnumEntries(t){return C.utils.initList(4,e._EnumEntries,t,this)}set enumEntries(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptValues(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownValues(){return C.utils.disown(this.values)}get values(){return C.utils.getList(5,C.TextList,this)}_hasValues(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initValues(e){return C.utils.initList(5,C.TextList,e,this)}set values(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptIndexType(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownIndexType(){return C.utils.disown(this.indexType)}get indexType(){return C.utils.getStruct(6,U,this)}_hasIndexType(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initIndexType(){return C.utils.initStructAt(6,U,this)}set indexType(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},kr=class e extends C.Struct{static{B(this,`SerializedTypeUnion`)}static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},Ar=class e extends C.Struct{static{B(this,`SerializedTypeIntersection`)}static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},jr=class e extends C.Struct{static{B(this,`SerializedTypeArray`)}static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(5,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initTags(){return C.utils.initStructAt(5,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},Mr=class e extends C.Struct{static{B(this,`SerializedTypeIndexSignature`)}static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptIndex(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownIndex(){return C.utils.disown(this.index)}get index(){return C.utils.getStruct(4,U,this)}_hasIndex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initIndex(){return C.utils.initStructAt(4,U,this)}set index(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(5,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initType(){return C.utils.initStructAt(5,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},Nr=class e extends C.Struct{static{B(this,`SerializedTypePropertySignature`)}static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new C.ObjectSize(8,9)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get readonly(){return C.utils.getBit(17,this)}set readonly(e){C.utils.setBit(17,e,this)}get description(){return C.utils.getText(5,this)}set description(e){C.utils.setText(5,e,this)}_adoptDefault(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownDefault(){return C.utils.disown(this.default)}get default(){return C.utils.getStruct(6,H,this)}_hasDefault(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initDefault(){return C.utils.initStructAt(6,H,this)}set default(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(7,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initType(){return C.utils.initStructAt(7,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(8,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(8,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(8,this))}_initTags(){return C.utils.initStructAt(8,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Pr=class e extends C.Struct{static{B(this,`SerializedTypeMethodSignature`)}static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new C.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}_adoptParameters(e){C.utils.adopt(e,C.utils.getPointer(5,this))}_disownParameters(){return C.utils.disown(this.parameters)}get parameters(){return C.utils.getList(5,e._Parameters,this)}_hasParameters(){return!C.utils.isNull(C.utils.getPointer(5,this))}_initParameters(t){return C.utils.initList(5,e._Parameters,t,this)}set parameters(e){C.utils.copyFrom(e,C.utils.getPointer(5,this))}_adoptReturn(e){C.utils.adopt(e,C.utils.getPointer(6,this))}_disownReturn(){return C.utils.disown(this.return)}get return(){return C.utils.getStruct(6,U,this)}_hasReturn(){return!C.utils.isNull(C.utils.getPointer(6,this))}_initReturn(){return C.utils.initStructAt(6,U,this)}set return(e){C.utils.copyFrom(e,C.utils.getPointer(6,this))}_adoptTags(e){C.utils.adopt(e,C.utils.getPointer(7,this))}_disownTags(){return C.utils.disown(this.tags)}get tags(){return C.utils.getStruct(7,V,this)}_hasTags(){return!C.utils.isNull(C.utils.getPointer(7,this))}_initTags(){return C.utils.initStructAt(7,V,this)}set tags(e){C.utils.copyFrom(e,C.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Fr=class e extends C.Struct{static{B(this,`SerializedTypeTypeParameter`)}static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get name(){return C.utils.getText(4,this)}set name(e){C.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},Ir=class e extends C.Struct{static{B(this,`SerializedTypeInfer`)}static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new C.ObjectSize(8,4)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},q=class e extends C.Struct{static{B(this,`SerializedTypeTupleMember`)}static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new C.ObjectSize(8,6)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}get optional(){return C.utils.getBit(16,this)}set optional(e){C.utils.setBit(16,e,this)}get name(){return C.utils.getText(5,this)}set name(e){C.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},Lr=class e extends C.Struct{static{B(this,`SerializedTypeTuple`)}static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Rr=class e extends C.Struct{static{B(this,`SerializedTypeRest`)}static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptType(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownType(){return C.utils.disown(this.type)}get type(){return C.utils.getStruct(4,U,this)}_hasType(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initType(){return C.utils.initStructAt(4,U,this)}set type(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},zr=class e extends C.Struct{static{B(this,`SimpleSerializedType`)}static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptOrigin(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownOrigin(){return C.utils.disown(this.origin)}get origin(){return C.utils.getStruct(4,U,this)}_hasOrigin(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initOrigin(){return C.utils.initStructAt(4,U,this)}set origin(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},Br=class extends C.Struct{static{B(this,`SerializedTypeLiteralSymbol`)}static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get name(){return C.utils.getText(1,this)}set name(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},Vr=class extends C.Struct{static{B(this,`SerializedTypeLiteralBigInt`)}static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get value(){return C.utils.getText(1,this)}set value(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},Hr=class extends C.Struct{static{B(this,`SerializedTypeLiteralRegex`)}static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new C.ObjectSize(0,2)};get type(){return C.utils.getText(0,this)}set type(e){C.utils.setText(0,e,this)}get regex(){return C.utils.getText(1,this)}set regex(e){C.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}},J={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},Ur=class extends C.Struct{static{B(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=J.SYMBOL;static STRING=J.STRING;static NUMBER=J.NUMBER;static BOOLEAN=J.BOOLEAN;static BIGINT=J.BIGINT;static REGEX=J.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new C.ObjectSize(16,5)};_adoptSymbol(e){C.utils.setUint16(2,0,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownSymbol(){return C.utils.disown(this.symbol)}get symbol(){return C.utils.testWhich(`symbol`,C.utils.getUint16(2,this),0,this),C.utils.getStruct(4,Br,this)}_hasSymbol(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initSymbol(){return C.utils.setUint16(2,0,this),C.utils.initStructAt(4,Br,this)}get _isSymbol(){return C.utils.getUint16(2,this)===0}set symbol(e){C.utils.setUint16(2,0,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}get string(){return C.utils.testWhich(`string`,C.utils.getUint16(2,this),1,this),C.utils.getText(4,this)}get _isString(){return C.utils.getUint16(2,this)===1}set string(e){C.utils.setUint16(2,1,this),C.utils.setText(4,e,this)}get number(){return C.utils.testWhich(`number`,C.utils.getUint16(2,this),2,this),C.utils.getFloat64(8,this)}get _isNumber(){return C.utils.getUint16(2,this)===2}set number(e){C.utils.setUint16(2,2,this),C.utils.setFloat64(8,e,this)}get boolean(){return C.utils.testWhich(`boolean`,C.utils.getUint16(2,this),3,this),C.utils.getBit(64,this)}get _isBoolean(){return C.utils.getUint16(2,this)===3}set boolean(e){C.utils.setUint16(2,3,this),C.utils.setBit(64,e,this)}_adoptBigint(e){C.utils.setUint16(2,4,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownBigint(){return C.utils.disown(this.bigint)}get bigint(){return C.utils.testWhich(`bigint`,C.utils.getUint16(2,this),4,this),C.utils.getStruct(4,Vr,this)}_hasBigint(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initBigint(){return C.utils.setUint16(2,4,this),C.utils.initStructAt(4,Vr,this)}get _isBigint(){return C.utils.getUint16(2,this)===4}set bigint(e){C.utils.setUint16(2,4,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}_adoptRegex(e){C.utils.setUint16(2,5,this),C.utils.adopt(e,C.utils.getPointer(4,this))}_disownRegex(){return C.utils.disown(this.regex)}get regex(){return C.utils.testWhich(`regex`,C.utils.getUint16(2,this),5,this),C.utils.getStruct(4,Hr,this)}_hasRegex(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initRegex(){return C.utils.setUint16(2,5,this),C.utils.initStructAt(4,Hr,this)}get _isRegex(){return C.utils.getUint16(2,this)===5}set regex(e){C.utils.setUint16(2,5,this),C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return C.utils.getUint16(2,this)}},Wr=class e extends C.Struct{static{B(this,`SerializedTypeLiteral`)}static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new C.ObjectSize(16,5)};static _TypeArguments;static _Decorators;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}get literal(){return C.utils.getAs(Ur,this)}_initLiteral(){return C.utils.getAs(Ur,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Gr=class e extends C.Struct{static{B(this,`SerializedTypeTemplateLiteral`)}static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new C.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}_adoptTypeArguments(e){C.utils.adopt(e,C.utils.getPointer(1,this))}_disownTypeArguments(){return C.utils.disown(this.typeArguments)}get typeArguments(){return C.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!C.utils.isNull(C.utils.getPointer(1,this))}_initTypeArguments(t){return C.utils.initList(1,e._TypeArguments,t,this)}set typeArguments(e){C.utils.copyFrom(e,C.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){C.utils.adopt(e,C.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return C.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return C.utils.getStruct(2,W,this)}_hasIndexAccessOrigin(){return!C.utils.isNull(C.utils.getPointer(2,this))}_initIndexAccessOrigin(){return C.utils.initStructAt(2,W,this)}set indexAccessOrigin(e){C.utils.copyFrom(e,C.utils.getPointer(2,this))}_adoptDecorators(e){C.utils.adopt(e,C.utils.getPointer(3,this))}_disownDecorators(){return C.utils.disown(this.decorators)}get decorators(){return C.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!C.utils.isNull(C.utils.getPointer(3,this))}_initDecorators(t){return C.utils.initList(3,e._Decorators,t,this)}set decorators(e){C.utils.copyFrom(e,C.utils.getPointer(3,this))}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(4,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(4,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(4,this))}_initTypes(t){return C.utils.initList(4,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},Kr=class extends C.Struct{static{B(this,`SerializedTypeOther`)}static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new C.ObjectSize(8,1)};get typeName(){return C.utils.getText(0,this)}set typeName(e){C.utils.setText(0,e,this)}get kind(){return C.utils.getUint16(0,this)}set kind(e){C.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}},Y={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22},qr=class extends C.Struct{static{B(this,`SerializedType_Type`)}static SIMPLE=Y.SIMPLE;static LITERAL=Y.LITERAL;static TEMPLATE_LITERAL=Y.TEMPLATE_LITERAL;static PARAMETER=Y.PARAMETER;static FUNCTION=Y.FUNCTION;static METHOD=Y.METHOD;static PROPERTY=Y.PROPERTY;static PROMISE=Y.PROMISE;static CLASS_TYPE=Y.CLASS_TYPE;static ENUM=Y.ENUM;static UNION=Y.UNION;static INTERSECTION=Y.INTERSECTION;static ARRAY=Y.ARRAY;static OBJECT_LITERAL=Y.OBJECT_LITERAL;static INDEX_SIGNATURE=Y.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=Y.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=Y.METHOD_SIGNATURE;static TYPE_PARAMETER=Y.TYPE_PARAMETER;static INFER=Y.INFER;static TUPLE=Y.TUPLE;static TUPLE_MEMBER=Y.TUPLE_MEMBER;static REST=Y.REST;static OTHER=Y.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new C.ObjectSize(8,1)};_adoptSimple(e){C.utils.setUint16(0,0,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownSimple(){return C.utils.disown(this.simple)}get simple(){return C.utils.testWhich(`simple`,C.utils.getUint16(0,this),0,this),C.utils.getStruct(0,zr,this)}_hasSimple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initSimple(){return C.utils.setUint16(0,0,this),C.utils.initStructAt(0,zr,this)}get _isSimple(){return C.utils.getUint16(0,this)===0}set simple(e){C.utils.setUint16(0,0,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptLiteral(e){C.utils.setUint16(0,1,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownLiteral(){return C.utils.disown(this.literal)}get literal(){return C.utils.testWhich(`literal`,C.utils.getUint16(0,this),1,this),C.utils.getStruct(0,Wr,this)}_hasLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initLiteral(){return C.utils.setUint16(0,1,this),C.utils.initStructAt(0,Wr,this)}get _isLiteral(){return C.utils.getUint16(0,this)===1}set literal(e){C.utils.setUint16(0,1,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTemplateLiteral(e){C.utils.setUint16(0,2,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTemplateLiteral(){return C.utils.disown(this.templateLiteral)}get templateLiteral(){return C.utils.testWhich(`templateLiteral`,C.utils.getUint16(0,this),2,this),C.utils.getStruct(0,Gr,this)}_hasTemplateLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTemplateLiteral(){return C.utils.setUint16(0,2,this),C.utils.initStructAt(0,Gr,this)}get _isTemplateLiteral(){return C.utils.getUint16(0,this)===2}set templateLiteral(e){C.utils.setUint16(0,2,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptParameter(e){C.utils.setUint16(0,3,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownParameter(){return C.utils.disown(this.parameter)}get parameter(){return C.utils.testWhich(`parameter`,C.utils.getUint16(0,this),3,this),C.utils.getStruct(0,K,this)}_hasParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initParameter(){return C.utils.setUint16(0,3,this),C.utils.initStructAt(0,K,this)}get _isParameter(){return C.utils.getUint16(0,this)===3}set parameter(e){C.utils.setUint16(0,3,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptFunction(e){C.utils.setUint16(0,4,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownFunction(){return C.utils.disown(this.function)}get function(){return C.utils.testWhich(`function`,C.utils.getUint16(0,this),4,this),C.utils.getStruct(0,Tr,this)}_hasFunction(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initFunction(){return C.utils.setUint16(0,4,this),C.utils.initStructAt(0,Tr,this)}get _isFunction(){return C.utils.getUint16(0,this)===4}set function(e){C.utils.setUint16(0,4,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethod(e){C.utils.setUint16(0,5,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethod(){return C.utils.disown(this.method)}get method(){return C.utils.testWhich(`method`,C.utils.getUint16(0,this),5,this),C.utils.getStruct(0,Cr,this)}_hasMethod(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethod(){return C.utils.setUint16(0,5,this),C.utils.initStructAt(0,Cr,this)}get _isMethod(){return C.utils.getUint16(0,this)===5}set method(e){C.utils.setUint16(0,5,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptProperty(e){C.utils.setUint16(0,6,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownProperty(){return C.utils.disown(this.property)}get property(){return C.utils.testWhich(`property`,C.utils.getUint16(0,this),6,this),C.utils.getStruct(0,wr,this)}_hasProperty(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initProperty(){return C.utils.setUint16(0,6,this),C.utils.initStructAt(0,wr,this)}get _isProperty(){return C.utils.getUint16(0,this)===6}set property(e){C.utils.setUint16(0,6,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPromise(e){C.utils.setUint16(0,7,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPromise(){return C.utils.disown(this.promise)}get promise(){return C.utils.testWhich(`promise`,C.utils.getUint16(0,this),7,this),C.utils.getStruct(0,Er,this)}_hasPromise(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPromise(){return C.utils.setUint16(0,7,this),C.utils.initStructAt(0,Er,this)}get _isPromise(){return C.utils.getUint16(0,this)===7}set promise(e){C.utils.setUint16(0,7,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptClassType(e){C.utils.setUint16(0,8,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownClassType(){return C.utils.disown(this.classType)}get classType(){return C.utils.testWhich(`classType`,C.utils.getUint16(0,this),8,this),C.utils.getStruct(0,G,this)}_hasClassType(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initClassType(){return C.utils.setUint16(0,8,this),C.utils.initStructAt(0,G,this)}get _isClassType(){return C.utils.getUint16(0,this)===8}set classType(e){C.utils.setUint16(0,8,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptEnum(e){C.utils.setUint16(0,9,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownEnum(){return C.utils.disown(this.enum)}get enum(){return C.utils.testWhich(`enum`,C.utils.getUint16(0,this),9,this),C.utils.getStruct(0,Or,this)}_hasEnum(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initEnum(){return C.utils.setUint16(0,9,this),C.utils.initStructAt(0,Or,this)}get _isEnum(){return C.utils.getUint16(0,this)===9}set enum(e){C.utils.setUint16(0,9,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptUnion(e){C.utils.setUint16(0,10,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownUnion(){return C.utils.disown(this.union)}get union(){return C.utils.testWhich(`union`,C.utils.getUint16(0,this),10,this),C.utils.getStruct(0,kr,this)}_hasUnion(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initUnion(){return C.utils.setUint16(0,10,this),C.utils.initStructAt(0,kr,this)}get _isUnion(){return C.utils.getUint16(0,this)===10}set union(e){C.utils.setUint16(0,10,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIntersection(e){C.utils.setUint16(0,11,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIntersection(){return C.utils.disown(this.intersection)}get intersection(){return C.utils.testWhich(`intersection`,C.utils.getUint16(0,this),11,this),C.utils.getStruct(0,Ar,this)}_hasIntersection(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIntersection(){return C.utils.setUint16(0,11,this),C.utils.initStructAt(0,Ar,this)}get _isIntersection(){return C.utils.getUint16(0,this)===11}set intersection(e){C.utils.setUint16(0,11,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptArray(e){C.utils.setUint16(0,12,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownArray(){return C.utils.disown(this.array)}get array(){return C.utils.testWhich(`array`,C.utils.getUint16(0,this),12,this),C.utils.getStruct(0,jr,this)}_hasArray(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initArray(){return C.utils.setUint16(0,12,this),C.utils.initStructAt(0,jr,this)}get _isArray(){return C.utils.getUint16(0,this)===12}set array(e){C.utils.setUint16(0,12,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptObjectLiteral(e){C.utils.setUint16(0,13,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownObjectLiteral(){return C.utils.disown(this.objectLiteral)}get objectLiteral(){return C.utils.testWhich(`objectLiteral`,C.utils.getUint16(0,this),13,this),C.utils.getStruct(0,Sr,this)}_hasObjectLiteral(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initObjectLiteral(){return C.utils.setUint16(0,13,this),C.utils.initStructAt(0,Sr,this)}get _isObjectLiteral(){return C.utils.getUint16(0,this)===13}set objectLiteral(e){C.utils.setUint16(0,13,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptIndexSignature(e){C.utils.setUint16(0,14,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownIndexSignature(){return C.utils.disown(this.indexSignature)}get indexSignature(){return C.utils.testWhich(`indexSignature`,C.utils.getUint16(0,this),14,this),C.utils.getStruct(0,Mr,this)}_hasIndexSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initIndexSignature(){return C.utils.setUint16(0,14,this),C.utils.initStructAt(0,Mr,this)}get _isIndexSignature(){return C.utils.getUint16(0,this)===14}set indexSignature(e){C.utils.setUint16(0,14,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptPropertySignature(e){C.utils.setUint16(0,15,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownPropertySignature(){return C.utils.disown(this.propertySignature)}get propertySignature(){return C.utils.testWhich(`propertySignature`,C.utils.getUint16(0,this),15,this),C.utils.getStruct(0,Nr,this)}_hasPropertySignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initPropertySignature(){return C.utils.setUint16(0,15,this),C.utils.initStructAt(0,Nr,this)}get _isPropertySignature(){return C.utils.getUint16(0,this)===15}set propertySignature(e){C.utils.setUint16(0,15,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptMethodSignature(e){C.utils.setUint16(0,16,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownMethodSignature(){return C.utils.disown(this.methodSignature)}get methodSignature(){return C.utils.testWhich(`methodSignature`,C.utils.getUint16(0,this),16,this),C.utils.getStruct(0,Pr,this)}_hasMethodSignature(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initMethodSignature(){return C.utils.setUint16(0,16,this),C.utils.initStructAt(0,Pr,this)}get _isMethodSignature(){return C.utils.getUint16(0,this)===16}set methodSignature(e){C.utils.setUint16(0,16,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTypeParameter(e){C.utils.setUint16(0,17,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypeParameter(){return C.utils.disown(this.typeParameter)}get typeParameter(){return C.utils.testWhich(`typeParameter`,C.utils.getUint16(0,this),17,this),C.utils.getStruct(0,Fr,this)}_hasTypeParameter(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypeParameter(){return C.utils.setUint16(0,17,this),C.utils.initStructAt(0,Fr,this)}get _isTypeParameter(){return C.utils.getUint16(0,this)===17}set typeParameter(e){C.utils.setUint16(0,17,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptInfer(e){C.utils.setUint16(0,18,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownInfer(){return C.utils.disown(this.infer)}get infer(){return C.utils.testWhich(`infer`,C.utils.getUint16(0,this),18,this),C.utils.getStruct(0,Ir,this)}_hasInfer(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initInfer(){return C.utils.setUint16(0,18,this),C.utils.initStructAt(0,Ir,this)}get _isInfer(){return C.utils.getUint16(0,this)===18}set infer(e){C.utils.setUint16(0,18,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTuple(e){C.utils.setUint16(0,19,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTuple(){return C.utils.disown(this.tuple)}get tuple(){return C.utils.testWhich(`tuple`,C.utils.getUint16(0,this),19,this),C.utils.getStruct(0,Lr,this)}_hasTuple(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTuple(){return C.utils.setUint16(0,19,this),C.utils.initStructAt(0,Lr,this)}get _isTuple(){return C.utils.getUint16(0,this)===19}set tuple(e){C.utils.setUint16(0,19,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptTupleMember(e){C.utils.setUint16(0,20,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTupleMember(){return C.utils.disown(this.tupleMember)}get tupleMember(){return C.utils.testWhich(`tupleMember`,C.utils.getUint16(0,this),20,this),C.utils.getStruct(0,q,this)}_hasTupleMember(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTupleMember(){return C.utils.setUint16(0,20,this),C.utils.initStructAt(0,q,this)}get _isTupleMember(){return C.utils.getUint16(0,this)===20}set tupleMember(e){C.utils.setUint16(0,20,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptRest(e){C.utils.setUint16(0,21,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownRest(){return C.utils.disown(this.rest)}get rest(){return C.utils.testWhich(`rest`,C.utils.getUint16(0,this),21,this),C.utils.getStruct(0,Rr,this)}_hasRest(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initRest(){return C.utils.setUint16(0,21,this),C.utils.initStructAt(0,Rr,this)}get _isRest(){return C.utils.getUint16(0,this)===21}set rest(e){C.utils.setUint16(0,21,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}_adoptOther(e){C.utils.setUint16(0,22,this),C.utils.adopt(e,C.utils.getPointer(0,this))}_disownOther(){return C.utils.disown(this.other)}get other(){return C.utils.testWhich(`other`,C.utils.getUint16(0,this),22,this),C.utils.getStruct(0,Kr,this)}_hasOther(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initOther(){return C.utils.setUint16(0,22,this),C.utils.initStructAt(0,Kr,this)}get _isOther(){return C.utils.getUint16(0,this)===22}set other(e){C.utils.setUint16(0,22,this),C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return C.utils.getUint16(0,this)}},Jr=class extends C.Struct{static{B(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new C.ObjectSize(8,1)};get type(){return C.utils.getAs(qr,this)}_initType(){return C.utils.getAs(qr,this)}toString(){return`SerializedType_`+super.toString()}},X=class e extends C.Struct{static{B(this,`SerializedTypes`)}static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new C.ObjectSize(0,1)};static _Types;_adoptTypes(e){C.utils.adopt(e,C.utils.getPointer(0,this))}_disownTypes(){return C.utils.disown(this.types)}get types(){return C.utils.getList(0,e._Types,this)}_hasTypes(){return!C.utils.isNull(C.utils.getPointer(0,this))}_initTypes(t){return C.utils.initList(0,e._Types,t,this)}set types(e){C.utils.copyFrom(e,C.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};xr._Indexes=C.CompositeList(br),Sr._TypeArguments=C.CompositeList(U),Sr._Decorators=C.CompositeList(U),Sr._Types=C.CompositeList(U),G._TypeArguments=C.CompositeList(U),G._Decorators=C.CompositeList(U),G._ExtendsArguments=C.CompositeList(U),G._Arguments=C.CompositeList(U),G._Types=C.CompositeList(U),K._TypeArguments=C.CompositeList(U),K._Decorators=C.CompositeList(U),Cr._TypeArguments=C.CompositeList(U),Cr._Decorators=C.CompositeList(U),Cr._Parameters=C.CompositeList(K),wr._TypeArguments=C.CompositeList(U),wr._Decorators=C.CompositeList(U),Tr._TypeArguments=C.CompositeList(U),Tr._Decorators=C.CompositeList(U),Tr._Parameters=C.CompositeList(K),Er._TypeArguments=C.CompositeList(U),Er._Decorators=C.CompositeList(U),Or._TypeArguments=C.CompositeList(U),Or._Decorators=C.CompositeList(U),Or._EnumEntries=C.CompositeList(Dr),kr._TypeArguments=C.CompositeList(U),kr._Decorators=C.CompositeList(U),kr._Types=C.CompositeList(U),Ar._TypeArguments=C.CompositeList(U),Ar._Decorators=C.CompositeList(U),Ar._Types=C.CompositeList(U),jr._TypeArguments=C.CompositeList(U),jr._Decorators=C.CompositeList(U),Mr._TypeArguments=C.CompositeList(U),Mr._Decorators=C.CompositeList(U),Nr._TypeArguments=C.CompositeList(U),Nr._Decorators=C.CompositeList(U),Pr._TypeArguments=C.CompositeList(U),Pr._Decorators=C.CompositeList(U),Pr._Parameters=C.CompositeList(K),Fr._TypeArguments=C.CompositeList(U),Fr._Decorators=C.CompositeList(U),Ir._TypeArguments=C.CompositeList(U),Ir._Decorators=C.CompositeList(U),q._TypeArguments=C.CompositeList(U),q._Decorators=C.CompositeList(U),Lr._TypeArguments=C.CompositeList(U),Lr._Decorators=C.CompositeList(U),Lr._Types=C.CompositeList(q),Rr._TypeArguments=C.CompositeList(U),Rr._Decorators=C.CompositeList(U),zr._TypeArguments=C.CompositeList(U),zr._Decorators=C.CompositeList(U),Wr._TypeArguments=C.CompositeList(U),Wr._Decorators=C.CompositeList(U),Gr._TypeArguments=C.CompositeList(U),Gr._Decorators=C.CompositeList(U),Gr._Types=C.CompositeList(U),X._Types=C.CompositeList(Jr);function Yr(e){return b(e.dataPath,`reflections`)}const Xr={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function Zr(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync(b(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if(y(e)!==e){if(t.length===1)return`
|
|
3
|
-
import ${y(e)} from "${t[0]}";
|
|
4
|
-
export { ${y(e)} as "${e}" }`;if(t.length>1)return`
|
|
5
|
-
import ${t[1]===`*`?`* as ${y(e)}`:`{ ${t[1]} as ${y(e)} }`} from "${t[0]}";
|
|
6
|
-
export { ${y(e)} as "${e}" }`}else if(t.length===1)return`
|
|
7
|
-
import ${e} from "${t[0]}";
|
|
8
|
-
export { ${e} };`;else if(t.length>1)return`
|
|
9
|
-
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
10
|
-
export { ${e} };`}else if(y(e)!==e)return`
|
|
11
|
-
import ${y(e)} from "${t[0]}";
|
|
12
|
-
export { ${y(e)} as "${e}" }`;else return`
|
|
13
|
-
import ${e} from "${t}";
|
|
14
|
-
export { ${e} };`;return``}).join(`
|
|
15
|
-
`)),u({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:t&&Object.keys(t).length>0?[b(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?ot(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?ot(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},Xr)}async function Qr(e,t,n={}){let r=await e.fs.resolve(t);if(!r||!e.fs.existsSync(r))throw Error(`Module not found: "${t}". Please check the path and try again.`);let i=await at({...Zr(e),entryPoints:[r],write:!1,sourcemap:!1,splitting:!1,treeShaking:!1,bundle:!0,...n});if(i.errors.length>0)throw Error(`Failed to transpile ${t}: ${i.errors.map(e=>e.text).join(`, `)}`);if(i.warnings.length>0&&e.log(s.WARN,`Warnings while transpiling ${t}: ${i.warnings.map(e=>e.text).join(`, `)}`),!i.outputFiles||i.outputFiles.filter(Boolean).length===0)throw Error(`No output files generated for ${t}. Please check the configuration and try again.`);return i.outputFiles.filter(Boolean)[0]}async function $r(e,t,n={}){let r;r=d(t)?x(t):t;let i=await Qr(e,r.file,n),a=await e.resolver.evalModule(i.text,{filename:i.path,forceTranspile:!0}),o=r.name;return o||=`default`,a[o]??a[`__Ω${o}`]}var Z={};import*as ei from"@deepkit/type-compiler";e(Z,ei);import*as ti from"@deepkit/type-compiler/compiler";e(Z,ti);import*as ni from"@deepkit/type-compiler/config";e(Z,ni);let ri=!1;const ii=new Z.Cache;function ai(e,t={}){return function(n){return ri||=!0,ii.tick(),new Z.ReflectionTransformer(n,ii).withReflection(u(t,{reflection:e.tsconfig.tsconfigJson.compilerOptions?.reflection||e.tsconfig.tsconfigJson.reflection,reflectionLevel:e.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||e.tsconfig.tsconfigJson.reflectionLevel},{exclude:[],reflection:`default`,reflectionLevel:`minimal`}))}}function oi(e,t={}){return function(n){return new Z.DeclarationTransformer(n,ii).withReflection(u(t,{reflection:e.tsconfig.tsconfigJson.compilerOptions?.reflection||e.tsconfig.tsconfigJson.reflection,reflectionLevel:e.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||e.tsconfig.tsconfigJson.reflectionLevel},{exclude:[],reflection:`default`,reflectionLevel:`minimal`}))}}function si(e,t,n){let r=ai(e),i=oi(e);return st.transpileModule(t,{compilerOptions:{...e.tsconfig.options},fileName:n,transformers:{before:[r],after:[i]}})}const ci=(e,t={})=>({name:`powerlines:deepkit`,setup(n){n.onLoad({filter:/\.(m|c)?tsx?$/,...t},async t=>{let n=await e.fs.read(t.path);if(!n)return null;if(t.pluginData?.isReflected)return{contents:n,loader:`ts`,pluginData:{isReflected:!0}};let r=si(e,n,t.path);if(r.diagnostics&&r.diagnostics.length>0)if(r.diagnostics.some(e=>e.category===ct.Error)){let n=`Deepkit Type reflection transpilation errors: ${t.path} \n ${r.diagnostics.filter(e=>e.category===ct.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${Ze(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
16
|
-
`)}`;throw e.error(n),Error(n)}else r.diagnostics.some(e=>e.category===ct.Warning)?e.warn(`Deepkit Type reflection transpilation warnings: ${t.path} \n ${r.diagnostics.filter(e=>e.category===ct.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${Ze(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
17
|
-
`)}`):e.debug(`Deepkit Type reflection transpilation diagnostics: ${t.path} \n ${r.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${Ze(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
18
|
-
`)}`);return{contents:r.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});async function li(e,t,n={}){return(0,w.reflect)(await $r(e,t,u(n,{plugins:[ci(e)]})))}function ui(e,t){return mi(e,{type:(0,w.merge)(t.map(e=>e.type))})}function di(e,t){return hi(e,{type:(0,w.merge)(t.map(e=>e.type))})}var fi=class{PLATFORM=`neutral`;MODE=`production`;DEBUG=!1;TEST=!1;MINIMAL=!1;NO_COLOR=!1;FORCE_COLOR=!1;FORCE_HYPERLINK=!1;STACKTRACE=!1;INCLUDE_ERROR_DATA=!1;CI=!1},pi=class{};function mi(e,t={}){let n=t.superReflection??new w.ReflectionClass({kind:w.ReflectionKind.class,description:`The base environment configuration definition for the ${f(e.config.name)} project.`,classType:fi,types:[],implements:[{kind:w.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${f(e.config.name)} project.`,types:[]}]});n.name=`Env`;let r=new w.ReflectionClass(t.type??{kind:w.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${f(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Env`,r}function hi(e,t={}){let n=t.superReflection??new w.ReflectionClass({kind:w.ReflectionKind.class,description:`The base secrets configuration definition for the ${f(e.config.name)} project.`,classType:pi,types:[],implements:[{kind:w.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${f(e.config.name)} project.`,types:[]}]});n.name=`Secrets`;let r=new w.ReflectionClass(t.type??{kind:w.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${f(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Secrets`,r}async function gi(e,t,n){let r;t&&(r=(0,w.resolveClassType)(await li(e,{file:l(t,e.workspaceConfig.workspaceRoot)?t:b(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await li(e,await yi(e));return ui(e,[await Q(e,`env`),r,(0,w.resolveClassType)(i)].filter(Boolean))}async function _i(e,t,n){let r;t&&(r=(0,w.resolveClassType)(await li(e,{file:l(t,e.workspaceConfig.workspaceRoot)?t:b(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await li(e,await bi(e));return di(e,[await wi(e),r,(0,w.resolveClassType)(i)].filter(Boolean))}async function vi(e){return rt(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,b(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function yi(e){return{file:await vi(e),name:`EnvInterface`}}async function bi(e){return{file:await vi(e),name:`SecretsInterface`}}function xi(e,t=`env`){return b(Yr(e),`env`,`${t}-types.bin`)}async function Q(e,t=`env`){let n=xi(e,t);if(!nt(n)){if(!e.env.types.env||it(e.env.types.env)){let n=mi(e),r=new C.Message;n.messageRoot=r.initRoot(X),n.dataBuffer=r.toArrayBuffer(),e.env.types.env=n,await Si(e,e.env.types.env,t)}return e.env.types.env}let r=await $e(n),i=new C.Message(r,!1).getRoot(X),a=(0,w.resolveClassType)((0,w.deserializeType)(An(i.types)));return e.env.types[t]=a,e.env.types[t].messageRoot=i,e.env.types[t].dataBuffer=r,a}async function Si(e,t,n=`env`){let r=t.serializeType(),i=new C.Message;kn(r,i.initRoot(X)._initTypes(r.length)),await tt(xi(e,n),i.toArrayBuffer())}function $(e,t){return b(Yr(e),`env`,`${t}.bin`)}async function Ci(e){let t=$(e,`env`);if(!nt(t)){if(e.env.types.env||(e.env.types.env=await Q(e,`env`)),!e.env.used.env||it(e.env.used.env)){let t=mi(e,{type:{kind:w.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.env});t.name=`Env`;let n=new C.Message;t.messageRoot=n.initRoot(X),t.dataBuffer=n.toArrayBuffer(),e.env.used.env=t,await Ti(e,e.env.used.env,`env`)}return e.env.used.env}let n=await $e(t),r=new C.Message(n,!1).getRoot(X),i=(0,w.resolveClassType)((0,w.deserializeType)(An(r.types)));return e.env.used.env=i,e.env.used.env.messageRoot=r,e.env.used.env.dataBuffer=n,i}async function wi(e){let t=$(e,`secrets`);if(!nt(t)){if(e.env.types.secrets||(e.env.types.secrets=await Q(e,`secrets`)),!e.env.used.secrets||it(e.env.used.secrets)){let t=mi(e,{type:{kind:w.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.secrets});t.name=`Secrets`;let n=new C.Message;t.messageRoot=n.initRoot(X),t.dataBuffer=n.toArrayBuffer(),e.env.used.secrets=t,await Ti(e,e.env.used.secrets,`secrets`)}return e.env.used.secrets}let n=await $e(t),r=new C.Message(n,!1).getRoot(X),i=(0,w.resolveClassType)((0,w.deserializeType)(An(r.types)));return e.env.used.secrets=i,e.env.used.secrets.messageRoot=r,e.env.used.secrets.dataBuffer=n,i}async function Ti(e,t,n=`env`){let r=t.serializeType(),i=new C.Message;kn(r,i.initRoot(X)._initTypes(r.length)),await tt($(e,n),i.toArrayBuffer())}const Ei=Mt(`env`,({log:e,context:t})=>{function n(n,r,i=!1){let a=t.env.types.env?.getProperties().filter(e=>e.getAlias().length>0);if(n.name){let o=t.config.env.prefix.find(e=>n.name&&n.name.startsWith(e)&&(t.env.types.env?.hasProperty(n.name.replace(`${e}_`,``))||a.some(t=>t.getAlias().includes(n.name.replace(`${e}_`,``))))),c=n.name;if(o&&(c=n.name.replace(`${o}_`,``)),e(s.TRACE,`Environment variable ${c} found in ${r.filename||`unknown file`}.`),t.env.types.env?.hasProperty(c)||a.some(e=>e.getAlias().includes(c))){let e=t.env.types.env.hasProperty(c)?t.env.types.env.getProperty(c):a.find(e=>e.getAlias().includes(c));if(!e||e.isIgnored())return;if(t.env.used.env.hasProperty(c)||t.env.used.env.addProperty(e.property),t.config.env.inject&&i){let n=t.env.parsed?.[c];if(n===void 0){let e=t.config.env.prefix.find(e=>t.env.parsed[`${e.replace(/_$/g,``)}_${c}`]);e&&(n=t.env.parsed[`${e.replace(/_$/g,``)}_${c}`])}if(n??=e.getDefaultValue(),e.isValueRequired()&&n===void 0)throw Error(`Environment variable \`${c}\` is not defined in the .env configuration files`);return Bt(e,n)}}else throw Error(`The "${c}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${r.filename?r.filename:`unknown`}.
|
|
19
|
-
|
|
20
|
-
The following environment configuration names are defined in the \`env\` type definition: \n${t.env.types.env?.getPropertyNames().sort((e,t)=>String(e).localeCompare(String(t))).map(e=>` - ${String(e)} ${a.some(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0)?`(Alias: ${a?.find(t=>t.getNameAsString()===String(e))?.getAlias().join(`, `)})`:``}`).join(`
|
|
21
|
-
`)} \n\nUsing the following env prefix: \n${t.config.env.prefix.map(e=>` - ${e}`).join(`
|
|
22
|
-
`)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`)}}return{visitor:{MemberExpression(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`$storm`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Nt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isCallExpression({callee:{name:`useStorm`,type:`Identifier`}})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Nt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Nt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Nt(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){e(s.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let n=w.ReflectionClass.from({kind:w.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),r=$(t,`env`);r&&nt(r)&&(e(s.TRACE,`Environment reflection file found at ${r}, reading existing reflection.`),n=(0,w.resolveClassType)((0,w.deserializeType)(An(new C.Message(et(r),!1).getRoot(X).types)))),e(s.TRACE,`Adding new variables to env reflection at ${r}.`),n.getProperties().filter(e=>e.getNameAsString()&&!t.env.used.env.hasProperty(e.getNameAsString())).forEach(e=>{t.env.used.env.addProperty({...e,name:e.getNameAsString(),description:e.getDescription()??`The ${e.getNameAsString()} variable.`,default:e.getDefaultValue(),optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,visibility:e.getVisibility(),type:e.getType(),tags:e.getTags()})})}}});function Di(e){if(m(e)){let t=Ke.reduce((e,t)=>(e.startsWith(t)&&(e=e.slice(t.length)),e),e.toUpperCase());for(;t.startsWith(`_`);)t=t.slice(1);return t}return Object.keys(e).reduce((t,n)=>{let r=Di(n);return r&&(t[r]=e[n]),t},{})}async function Oi(e,t,n){let r=await xt(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>St(e,n)));for(let e of t)r=u(e,r)}return Di(r)}async function ki(e,t,n,r,i,a){let[o,s]=await Promise.all([Oi(e,n,t),We({cwd:t,name:`storm`,envName:n,defaults:{NAME:i.name?.replace(`@${a.namespace}/`,``),MODE:n,ORG:a.organization},globalRc:!0,packageJson:!0,dotenv:!0,jitiOptions:{fsCache:b(r,`jiti`),moduleCache:!0}})]);return u(o,s.config,a)}function Ai(e,t){return u({APP_NAME:oe(e.config.name||e.packageJson.name?.replace(`/${e.workspaceConfig.namespace}`,``)),APP_VERSION:e.packageJson.version,BUILD_ID:e.meta.buildId,BUILD_TIMESTAMP:new Date(e.meta.timestamp).toISOString(),BUILD_CHECKSUM:e.meta.checksum,RELEASE_ID:e.meta.releaseId,RELEASE_TAG:`${oe(e.config.name)}@${e.packageJson.version}`,DEFAULT_LOCALE:e.workspaceConfig.locale,DEFAULT_TIMEZONE:e.workspaceConfig.timezone,LOG_LEVEL:e.config.logLevel,ERROR_URL:e.workspaceConfig.error?.url,ORGANIZATION:d(e.workspaceConfig.organization)?e.workspaceConfig.organization:e.workspaceConfig.organization?.name,PLATFORM:e.config.build.platform,MODE:e.workspaceConfig.mode,DEBUG:e.workspaceConfig.mode===`development`,STACKTRACE:e.workspaceConfig.mode===`development`,ENVIRONMENT:e.environment},te(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function ji(e,t){let[n,r,i]=await Promise.all([ki(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),ki(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),ki(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return u(Ai(e,process.env),n,r,i)}function Mi(e){let t=g(()=>e&&Ai(e,process.env));return fe(async()=>{if(!e)return new w.ReflectionClass({kind:w.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await Q(e,`env`);return n.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{n.addProperty({name:t,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==t).concat(e.name),title:e.getTitle()||f(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),n.getProperties().forEach(e=>{e.setDefaultValue(t.value?.[e.getNameAsString()]??e.getAlias().reduce((e,n)=>e??t.value?.[n],void 0)??e.getDefaultValue())}),n})}function Ni(e){let[{defaultValue:t,reflection:i}]=_(e,[`defaultValue`,`reflection`]),a=lt();return[n(yt,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:t,reflection:i,export:!0}),r(`hbr`,{}),r(`hbr`,{}),n(Fe,{name:`Env`,export:!0,get children(){return h` {
|
|
23
|
-
[Key in keyof EnvBase as Key ${a?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
|
|
24
|
-
}
|
|
25
|
-
`}})]}function Pi(e){let[{context:t,name:n}]=_(e,[`context`,`name`]);return t?h`propertyName === "${n}" || propertyName.replace(/^(${t.config.env.prefix.sort((e,t)=>e.startsWith(t)?-1:t.startsWith(e)?1:e.localeCompare(t)).map(e=>`${e.replace(/_$/,``)}_`).join(`|`)})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${n.toLowerCase().replace(/[\s\-_]+/g,``)}"`:null}function Fi(e){let[{context:t,property:r,index:a}]=_(e,[`context`,`property`,`index`]);return t?[n(a===0?Ne:je,{get condition(){return[n(Pi,{get name(){return r.getNameAsString()},context:t}),n(le,{get when(){return i(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[h` || `,n(se,{get each(){return r.getAlias()},joiner:h` || `,children:e=>n(Pi,{name:e,context:t})})]}})]},get children(){return h`return target["${r.getNameAsString()}"];`}})]:null}function Ii(e){let[{context:t,property:r,index:a}]=_(e,[`context`,`property`,`index`]);return t?[n(a===0?Ne:je,{get condition(){return[n(Pi,{get name(){return r.getNameAsString()},context:t}),n(le,{get when(){return i(()=>!!r.getAlias())()&&r.getAlias().length>0},get children(){return[h` || `,n(se,{get each(){return r.getAlias()},joiner:h` || `,children:e=>n(Pi,{name:e,context:t})})]}})]},get children(){return h`
|
|
26
|
-
target["${r.getNameAsString()}"] = newValue;
|
|
27
|
-
return true;
|
|
28
|
-
`}})]:null}const Li=ut(`createEnv`),Ri=ut(`env`),zi=ut(`EnvSerializer`);function Bi(e){let[{defaultConfig:t},i]=_(e,[`defaultConfig`]),o=lt(),s=g(()=>o&&Ai(o,process.env)),c=Mi(o),ee=g(()=>new w.ReflectionClass({kind:w.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${f(o?.config?.name)} project.`,types:[]},c.data??void 0)),l=g(()=>c.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),te=g(()=>c.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return n(dt,a(i,{id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,get imports(){return u({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},i.imports??{})},get children(){return[n(le,{get when(){return!we(c.data)},get children(){return[n(Ni,{get defaultValue(){return s.value},get reflection(){return c.data}}),r(`hbr`,{}),r(`hbr`,{})]}}),n(bt,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:s,reflection:ee,export:!0,const:!0}),r(`hbr`,{}),r(`hbr`,{}),n(ft,{heading:`The environment configuration serializer for the Powerlines application.`,get children(){return[n(mt,{children:`https://deepkit.io/docs/serialization/serializers`}),n(mt,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),n(gt,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),n(ke,{refkey:zi,name:`EnvSerializer`,extends:`Serializer`,export:!0,get children(){return n(Ae,{name:`constructor`,public:!0,children:h`
|
|
29
|
-
super("env");
|
|
30
|
-
|
|
31
|
-
this.deserializeRegistry.register(
|
|
32
|
-
ReflectionKind.boolean,
|
|
33
|
-
(type: Type, state: TemplateState) => {
|
|
34
|
-
state.addSetter(
|
|
35
|
-
\`typeof \${state.accessor.toString()} !== "boolean" ? \${state.accessor.toString()} === 1 || \${state.accessor.toString()} === "1" || \${state.accessor.toString()}.toLowerCase() === "t" || \${state.accessor.toString()}.toLowerCase() === "true" || \${state.accessor.toString()}.toLowerCase() === "y" || \${state.accessor.toString()}.toLowerCase() === "yes" : \${state.accessor.toString()}\`
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
`})}}),r(`hbr`,{}),r(`hbr`,{}),n(ft,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,get children(){return[n(mt,{children:`https://deepkit.io/docs/serialization/serializers`}),n(mt,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),n(gt,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),n(Ie,{name:`envSerializer`,export:!1,const:!0,get initializer(){return n(Pe,{args:[],target:`EnvSerializer`})}}),r(`hbr`,{}),r(`hbr`,{}),n(ft,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,get children(){return[n(gt,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),n(pt,{children:`const json = serializeEnv(env);`}),n(vt,{children:`ValidationError when serialization or validation fails.`})]}}),n(Ie,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),r(`hbr`,{}),r(`hbr`,{}),n(ft,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,get children(){return[n(gt,{children:`Types that are already correct will be used as-is.`}),n(pt,{children:`const env = deserializeEnv(json);`}),n(vt,{children:`ValidationError when deserialization fails.`})]}}),n(Ie,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),r(`hbr`,{}),r(`hbr`,{}),n(ft,{heading:`Initializes the Powerlines environment configuration module.`,get children(){return[n(gt,{children:`This function initializes the Powerlines environment configuration object.`}),n(ht,{name:`environmentConfig`,children:`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}),n(_t,{children:`The initialized Powerlines configuration object.`})]}}),n(le,{get when(){return!!o?.entryPath},get children(){return n(Me,{refkey:Li,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,get children(){return[h`
|
|
40
|
-
return new Proxy<Env>(
|
|
41
|
-
deserializeEnv({
|
|
42
|
-
...initialEnv,
|
|
43
|
-
...environmentConfig
|
|
44
|
-
}) as Env,
|
|
45
|
-
{
|
|
46
|
-
get: (target: EnvBase, propertyName: string) => { `,r(`hbr`,{}),n(se,{each:l,children:(e,t)=>n(Fi,{index:t,context:o,property:e})}),h`
|
|
47
|
-
return undefined;
|
|
48
|
-
}, `,r(`hbr`,{}),r(`hbr`,{}),h` set: (target: EnvBase, propertyName: string, newValue: any) => { `,r(`hbr`,{}),n(se,{each:te,ender:h` else `,children:(e,t)=>n(Ii,{index:t,context:o,property:e})}),r(`hbr`,{}),h`return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
`]}})}}),r(`hbr`,{}),r(`hbr`,{}),r(`hbr`,{}),n(Ie,{refkey:Ri,name:`env`,type:`Env`,export:!0,const:!0,get initializer(){return[h`createEnv(`,t||`{}`,h` as Partial<Env>)`]}})]}}))}const Vi=e=>Be({name:`env`,async generate(){let t=b(e.config.projectRoot,`docs`,`generated`,`env.md`);return e.fs.existsSync(t)?{contents:await e.fs.read(t)||``}:{contents:``}}});var Hi=(e={})=>[Kt(e.alloy),Lt(e.babel),{name:`env`,async config(){this.log(s.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:u(e,{types:{},prefix:[]}),transform:{babel:{plugins:[Ei]}}};if(t.env.types)t.env.types=x(t.env.types);else{this.log(s.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await yi(this);t.env.types=x(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=x(t.env.secrets);else{let e=await bi(this);t.env.secrets=x(`${e.file}#${e.name}`)}return t.env.prefix=v(t.env.prefix??[]).reduce((e,t)=>{let n=Je(t);return e.includes(n)||e.push(n),e},[...Ke,`POWERLINES_`]),t.env.prefix=t.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),t},async configResolved(){if(this.log(s.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=u({parsed:await ji(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&S(xi(this,`env`)))this.log(s.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await Q(this,`env`),S($(this,`env`))&&(this.env.used.env=await Ci(this)),S(xi(this,`secrets`))&&(this.env.types.secrets=await Q(this,`secrets`)),S($(this,`secrets`))&&(this.env.used.secrets=await wi(this));else{if(this.env.types.env=await gi(this,this.config.env.types?.file?l(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:Ee(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw Error(`Failed to find the environment configuration type reflection in the context.`);if(await Si(this,this.env.types.env,`env`),this.env.types.secrets=await _i(this,this.config.env.secrets?.file?l(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:Ee(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw Error(`Failed to find the secrets configuration type reflection in the context.`);await Si(this,this.env.types.secrets,`secrets`),this.log(s.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);let e=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await ji(this,this.config.env)).forEach(([t,n])=>{let r=this.config.env.prefix.reduce((e,n)=>t.replace(/_$/g,``).startsWith(n)?t.replace(/_$/g,``).slice(n.length):e,t),i=e.find(e=>e?.getAlias().reverse().includes(r));(this.env.types.env?.hasProperty(r)||i)&&this.env.types.env.getProperty(r).setDefaultValue(n)}),this.env.used.env=new w.ReflectionClass({kind:w.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.env),await Ti(this,this.env.used.env,`env`),this.env.types.secrets&&(await Si(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new w.ReflectionClass({kind:w.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.secrets),await Ti(this,this.env.used.secrets,`secrets`))}},async prepare(){let e=this;return this.log(s.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),this.render(n(Bi,{get defaultConfig(){return e.config.env.defaultConfig}}))},async docs(){this.log(s.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=Ee(this.config.projectRoot,`docs`,`generated`);S(e)||await qe(e);let t=await Q(this,`env`),n=Ee(e,`env.md`);this.log(s.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by ${f(this.config.framework)||`Powerlines`} -->
|
|
53
|
-
|
|
54
|
-
Below is a list of environment variables used by the [${this.packageJson.name}](https://www.npmjs.com/package/${this.packageJson.name}) package. These values can be updated in the \`.env\` file in the root of the project. The variables in the list below are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.
|
|
55
|
-
|
|
56
|
-
| Name | Description | Type | Default Value | Required |
|
|
57
|
-
| ---- | ----------- | ---- | ------------- | :------: |
|
|
58
|
-
${t.getProperties().filter(e=>e.getNameAsString()!==`__POWERLINES_INJECTED__`).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString())).map(e=>`| ${e.getNameAsString().trim()} | ${(e.getDescription()?.replaceAll(`\r`,``)?.replaceAll(`
|
|
59
|
-
`,``)??``).trim()} | ${(0,w.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
|
|
60
|
-
`)}
|
|
61
|
-
`)},async buildEnd(){let e=$(this,`env`);this.log(s.TRACE,`Writing env reflection types to ${e}.`),await Ti(this,this.env.used.env,`env`)}},{name:`env:automd-generator`,config(){return{automd:u(e.automd??{},{generators:{env:Vi(this)}})}}},{name:`env:vite`,vite:{configResolved(){return{envPrefix:this.config?.env?.prefix}}}},Xt(e.automd)];function Ui(e,t,n=[`.ts`,`.tsx`,`.d.ts`]){return t.find(t=>e?.toString().toLowerCase()===t?.toString().toLowerCase()||e?.toString().toLowerCase()===`./${t?.toString().toLowerCase()}`||`./${e?.toString().toLowerCase()}`===t?.toString().toLowerCase()||n.some(n=>`${e?.toString().toLowerCase()}${n}`===t?.toString().toLowerCase()||`${e?.toString().toLowerCase()}${n}`==`./${t?.toString().toLowerCase()}`||`${t?.toString().toLowerCase()}${n}`==`./${e?.toString().toLowerCase()}`||e?.toString().toLowerCase()===`${t?.toString().toLowerCase()}${n}`||e?.toString().toLowerCase()===`./${t?.toString().toLowerCase()}${n}`||t?.toString().toLowerCase()===`./${e?.toString().toLowerCase()}${n}`))}function Wi(e,t){return Ui(e,t)!==void 0}const Gi=(e={})=>[Lt(e.babel),Hi(e.env),{name:`react`,config(){return u({react:e},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:`automatic`,jsxImportSource:`react`,compiler:{target:`19`,compilationMode:`infer`,gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:`isOptimizationEnabled`},enableReanimatedCheck:!0,logger:{logEvent:(e,t)=>{this.log(t.kind===`CompileSuccess`?s.SUCCESS:t.kind===`AutoDepsEligible`||t.kind===`AutoDepsDecorations`?s.INFO:t.kind===`CompileSkip`||t.kind===`CompileDiagnostic`?s.DEBUG:t.kind===`Timing`?s.TRACE:s.ERROR,`(${e}) ${t.kind===`CompileSuccess`?`React Compiler Success`:t.kind===`AutoDepsEligible`?`React AutoDeps Eligible - ${t.depArrayLoc.identifierName||`No identifier`}`:t.kind===`AutoDepsDecorations`?`React AutoDeps Decorations - ${t.decorations.filter(e=>e.identifierName).map(e=>e.identifierName).join(`, `)}`:t.kind===`CompileSkip`?`React Compile Skip - ${t.reason}`:t.kind===`CompileDiagnostic`?`React Compile Diagnostic - (Category: ${t.detail.category}) ${t.detail.reason}${t.detail.description?`\n${t.detail.description}`:``}`:t.kind===`Timing`?`React ${t.measurement.entryType} Timing (${t.measurement.name}) - ${t.measurement.duration}ms`:`React Compiler Error - ${t.fnLoc?.identifierName||`unknown location`}`}`)}}}}})},configResolved(){if(this.dependencies.react=`^19.2.3`,this.dependencies[`react-dom`]=`^19.2.3`,this.devDependencies[`@types/react`]=`^19.2.3`,this.devDependencies[`@types/react-dom`]=`^19.2.3`,this.config.react.compiler!==!1&&(this.config.transform.babel??={},this.config.transform.babel.plugins??=[],this.config.transform.babel.plugins.push([`babel-plugin-react-compiler`,this.config.react.compiler])),this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.module??=`esnext`,this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=this.config.react.jsxImportSource,this.tsconfig.options.jsxImportSource===`react`?this.tsconfig.tsconfigJson.compilerOptions.jsx??=`react-jsx`:this.tsconfig.tsconfigJson.compilerOptions.jsx??=`preserve`,this.environment.consumer===`client`&&(Wi(`dom`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM`),Wi(`dom.iterable`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM.Iterable`)),Wi(`esnext`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`ESNext`),this.tsconfig.options.resolveJsonModule!==!0&&(this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule=!0),this.config.build.variant===`vite`){this.tsconfig.tsconfigJson.compilerOptions.types??=[],Wi(`vite/client`,this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push(`vite/client`);let e=this.config.build;e.build??={},e.build.target=`chrome95`,e.plugins??=[],e.plugins.unshift(Ct({babel:this.config.transform.babel,jsxImportSource:this.config.react.jsxImportSource,jsxRuntime:this.config.react.jsxRuntime,reactRefreshHost:this.config.react.reactRefreshHost}))}this.env?.types?.env&&!this.env.types.env.hasProperty(`DISABLE_REACT_COMPILER`)&&this.env.types.env.addProperty({name:`DISABLE_REACT_COMPILER`,optional:!0,readonly:!0,description:`Disables the React compiler optimizations.`,visibility:w.ReflectionVisibility.public,type:{kind:w.ReflectionKind.boolean},default:!1})},async prepare(){let e=this;return this.render(n(t,{get override(){return e.config.react.compiler===!1?!1:void 0}}))}}];var Ki=Gi;export{t as ReactOptimizedBuiltin,Ki as default,Gi as plugin};
|
|
1
|
+
import{type_exports as e}from"./deepkit/src/vendor/type.mjs";import t from"./plugin-babel/src/index.mjs";import n from"./plugin-env/src/index.mjs";import{isMatchFound as r}from"./powerlines/src/lib/typescript/tsconfig.mjs";import{ReactOptimizedBuiltin as i}from"./components/react-optimized.mjs";import"./components/index.mjs";import{createComponent as a}from"@alloy-js/core/jsx-runtime";import{LogLevelLabel as o}from"@storm-software/config-tools/types";import s from"defu";import c from"@vitejs/plugin-react";const l=(l={})=>[t(l.babel),n(l.env),{name:`react`,config(){return s({react:l},{react:{jsxImportSource:this.tsconfig.tsconfigJson.compilerOptions?.jsxImportSource}},{react:{jsxRuntime:`automatic`,jsxImportSource:`react`,compiler:{target:`19`,compilationMode:`infer`,gating:{source:`${this.config.output.builtinPrefix}:react/optimized`,importSpecifierName:`isOptimizationEnabled`},enableReanimatedCheck:!0,logger:{logEvent:(e,t)=>{this.log(t.kind===`CompileSuccess`?o.SUCCESS:t.kind===`AutoDepsEligible`||t.kind===`AutoDepsDecorations`?o.INFO:t.kind===`CompileSkip`||t.kind===`CompileDiagnostic`?o.DEBUG:t.kind===`Timing`?o.TRACE:o.ERROR,`(${e}) ${t.kind===`CompileSuccess`?`React Compiler Success`:t.kind===`AutoDepsEligible`?`React AutoDeps Eligible - ${t.depArrayLoc.identifierName||`No identifier`}`:t.kind===`AutoDepsDecorations`?`React AutoDeps Decorations - ${t.decorations.filter(e=>e.identifierName).map(e=>e.identifierName).join(`, `)}`:t.kind===`CompileSkip`?`React Compile Skip - ${t.reason}`:t.kind===`CompileDiagnostic`?`React Compile Diagnostic - (Category: ${t.detail.category}) ${t.detail.reason}${t.detail.description?`\n${t.detail.description}`:``}`:t.kind===`Timing`?`React ${t.measurement.entryType} Timing (${t.measurement.name}) - ${t.measurement.duration}ms`:`React Compiler Error - ${t.fnLoc?.identifierName||`unknown location`}`}`)}}}}})},configResolved(){if(this.dependencies.react=`^19.2.3`,this.dependencies[`react-dom`]=`^19.2.3`,this.devDependencies[`@types/react`]=`^19.2.3`,this.devDependencies[`@types/react-dom`]=`^19.2.3`,this.config.react.compiler!==!1&&(this.config.transform.babel??={},this.config.transform.babel.plugins??=[],this.config.transform.babel.plugins.push([`babel-plugin-react-compiler`,this.config.react.compiler])),this.tsconfig.tsconfigJson.compilerOptions??={},this.tsconfig.tsconfigJson.compilerOptions.lib??=[],this.tsconfig.tsconfigJson.compilerOptions.module??=`esnext`,this.tsconfig.tsconfigJson.compilerOptions.jsxImportSource=this.config.react.jsxImportSource,this.tsconfig.options.jsxImportSource===`react`?this.tsconfig.tsconfigJson.compilerOptions.jsx??=`react-jsx`:this.tsconfig.tsconfigJson.compilerOptions.jsx??=`preserve`,this.environment.consumer===`client`&&(r(`dom`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM`),r(`dom.iterable`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`DOM.Iterable`)),r(`esnext`,this.tsconfig.tsconfigJson.compilerOptions.lib)||this.tsconfig.tsconfigJson.compilerOptions.lib.push(`ESNext`),this.tsconfig.options.resolveJsonModule!==!0&&(this.tsconfig.tsconfigJson.compilerOptions.resolveJsonModule=!0),this.config.build.variant===`vite`){this.tsconfig.tsconfigJson.compilerOptions.types??=[],r(`vite/client`,this.tsconfig.tsconfigJson.compilerOptions.types)||this.tsconfig.tsconfigJson.compilerOptions.types.push(`vite/client`);let e=this.config.build;e.build??={},e.build.target=`chrome95`,e.plugins??=[],e.plugins.unshift(c({babel:this.config.transform.babel,jsxImportSource:this.config.react.jsxImportSource,jsxRuntime:this.config.react.jsxRuntime,reactRefreshHost:this.config.react.reactRefreshHost}))}this.env?.types?.env&&!this.env.types.env.hasProperty(`DISABLE_REACT_COMPILER`)&&this.env.types.env.addProperty({name:`DISABLE_REACT_COMPILER`,optional:!0,readonly:!0,description:`Disables the React compiler optimizations.`,visibility:e.ReflectionVisibility.public,type:{kind:e.ReflectionKind.boolean},default:!1})},async prepare(){let e=this;return this.render(a(i,{get override(){return e.config.react.compiler===!1?!1:void 0}}))}}];var u=l;export{i as ReactOptimizedBuiltin,u as default,l as plugin};
|