@storybook/angular-vite 10.6.0-alpha.5 → 10.6.0-alpha.7

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.
@@ -1,407 +1,54 @@
1
- import CJS_COMPAT_NODE_URL_1pj9uj7yzpf from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_1pj9uj7yzpf from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_1pj9uj7yzpf from "node:module";
1
+ import CJS_COMPAT_NODE_URL_8ni5g5ueuqs from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_8ni5g5ueuqs from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_8ni5g5ueuqs from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_1pj9uj7yzpf.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_1pj9uj7yzpf.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_1pj9uj7yzpf.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_8ni5g5ueuqs.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_8ni5g5ueuqs.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_8ni5g5ueuqs.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
- DOCUMENTATION_JSON,
14
- ensureCompodocDocumentation
15
- } from "../_node-chunks/chunk-77BJXJPD.js";
16
- import "../_node-chunks/chunk-RC6UIUJ4.js";
13
+ resolveStoryComponent
14
+ } from "../_node-chunks/chunk-GWJVWZ3H.js";
17
15
 
18
16
  // src/docgen/docgen-worker.ts
19
17
  import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
20
- import { logger } from "storybook/internal/node-logger";
21
- import { readFileSync as readFileSync2, statSync } from "node:fs";
22
-
23
- // src/docgen/build-docgen.ts
24
- import { getComponentIdFromEntry, getStoryImportPathFromEntry } from "storybook/internal/common";
25
- import { getRealPath } from "storybook/internal/mocking-utils";
26
- import { existsSync } from "node:fs";
27
- import { join, resolve } from "node:path";
28
-
29
- // ../../../node_modules/entities/lib/esm/generated/decode-data-html.js
30
- var decode_data_html_default = new Uint16Array(
31
- // prettier-ignore
32
- '\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map((c) => c.charCodeAt(0))
33
- );
34
-
35
- // ../../../node_modules/entities/lib/esm/generated/decode-data-xml.js
36
- var decode_data_xml_default = new Uint16Array(
37
- // prettier-ignore
38
- "\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map((c) => c.charCodeAt(0))
39
- );
40
-
41
- // ../../../node_modules/entities/lib/esm/decode_codepoint.js
42
- var _a, decodeMap = /* @__PURE__ */ new Map([
43
- [0, 65533],
44
- // C1 Unicode control character reference replacements
45
- [128, 8364],
46
- [130, 8218],
47
- [131, 402],
48
- [132, 8222],
49
- [133, 8230],
50
- [134, 8224],
51
- [135, 8225],
52
- [136, 710],
53
- [137, 8240],
54
- [138, 352],
55
- [139, 8249],
56
- [140, 338],
57
- [142, 381],
58
- [145, 8216],
59
- [146, 8217],
60
- [147, 8220],
61
- [148, 8221],
62
- [149, 8226],
63
- [150, 8211],
64
- [151, 8212],
65
- [152, 732],
66
- [153, 8482],
67
- [154, 353],
68
- [155, 8250],
69
- [156, 339],
70
- [158, 382],
71
- [159, 376]
72
- ]), fromCodePoint = (
73
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
74
- (_a = String.fromCodePoint) !== null && _a !== void 0 ? _a : function(codePoint) {
75
- let output = "";
76
- return codePoint > 65535 && (codePoint -= 65536, output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296), codePoint = 56320 | codePoint & 1023), output += String.fromCharCode(codePoint), output;
77
- }
78
- );
79
- function replaceCodePoint(codePoint) {
80
- var _a2;
81
- return codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111 ? 65533 : (_a2 = decodeMap.get(codePoint)) !== null && _a2 !== void 0 ? _a2 : codePoint;
82
- }
18
+ import { logger as logger4 } from "storybook/internal/node-logger";
83
19
 
84
- // ../../../node_modules/entities/lib/esm/decode.js
85
- var CharCodes;
86
- (function(CharCodes2) {
87
- CharCodes2[CharCodes2.NUM = 35] = "NUM", CharCodes2[CharCodes2.SEMI = 59] = "SEMI", CharCodes2[CharCodes2.EQUALS = 61] = "EQUALS", CharCodes2[CharCodes2.ZERO = 48] = "ZERO", CharCodes2[CharCodes2.NINE = 57] = "NINE", CharCodes2[CharCodes2.LOWER_A = 97] = "LOWER_A", CharCodes2[CharCodes2.LOWER_F = 102] = "LOWER_F", CharCodes2[CharCodes2.LOWER_X = 120] = "LOWER_X", CharCodes2[CharCodes2.LOWER_Z = 122] = "LOWER_Z", CharCodes2[CharCodes2.UPPER_A = 65] = "UPPER_A", CharCodes2[CharCodes2.UPPER_F = 70] = "UPPER_F", CharCodes2[CharCodes2.UPPER_Z = 90] = "UPPER_Z";
88
- })(CharCodes || (CharCodes = {}));
89
- var TO_LOWER_BIT = 32, BinTrieFlags;
90
- (function(BinTrieFlags2) {
91
- BinTrieFlags2[BinTrieFlags2.VALUE_LENGTH = 49152] = "VALUE_LENGTH", BinTrieFlags2[BinTrieFlags2.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", BinTrieFlags2[BinTrieFlags2.JUMP_TABLE = 127] = "JUMP_TABLE";
92
- })(BinTrieFlags || (BinTrieFlags = {}));
93
- function isNumber(code) {
94
- return code >= CharCodes.ZERO && code <= CharCodes.NINE;
95
- }
96
- function isHexadecimalCharacter(code) {
97
- return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F;
98
- }
99
- function isAsciiAlphaNumeric(code) {
100
- return code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z || code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z || isNumber(code);
101
- }
102
- function isEntityInAttributeInvalidEnd(code) {
103
- return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);
104
- }
105
- var EntityDecoderState;
106
- (function(EntityDecoderState2) {
107
- EntityDecoderState2[EntityDecoderState2.EntityStart = 0] = "EntityStart", EntityDecoderState2[EntityDecoderState2.NumericStart = 1] = "NumericStart", EntityDecoderState2[EntityDecoderState2.NumericDecimal = 2] = "NumericDecimal", EntityDecoderState2[EntityDecoderState2.NumericHex = 3] = "NumericHex", EntityDecoderState2[EntityDecoderState2.NamedEntity = 4] = "NamedEntity";
108
- })(EntityDecoderState || (EntityDecoderState = {}));
109
- var DecodingMode;
110
- (function(DecodingMode2) {
111
- DecodingMode2[DecodingMode2.Legacy = 0] = "Legacy", DecodingMode2[DecodingMode2.Strict = 1] = "Strict", DecodingMode2[DecodingMode2.Attribute = 2] = "Attribute";
112
- })(DecodingMode || (DecodingMode = {}));
113
- var EntityDecoder = class {
114
- constructor(decodeTree, emitCodePoint, errors) {
115
- this.decodeTree = decodeTree, this.emitCodePoint = emitCodePoint, this.errors = errors, this.state = EntityDecoderState.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = DecodingMode.Strict;
116
- }
117
- /** Resets the instance to make it reusable. */
118
- startEntity(decodeMode) {
119
- this.decodeMode = decodeMode, this.state = EntityDecoderState.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
120
- }
121
- /**
122
- * Write an entity to the decoder. This can be called multiple times with partial entities.
123
- * If the entity is incomplete, the decoder will return -1.
124
- *
125
- * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
126
- * entity is incomplete, and resume when the next string is written.
127
- *
128
- * @param string The string containing the entity (or a continuation of the entity).
129
- * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
130
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
131
- */
132
- write(str, offset) {
133
- switch (this.state) {
134
- case EntityDecoderState.EntityStart:
135
- return str.charCodeAt(offset) === CharCodes.NUM ? (this.state = EntityDecoderState.NumericStart, this.consumed += 1, this.stateNumericStart(str, offset + 1)) : (this.state = EntityDecoderState.NamedEntity, this.stateNamedEntity(str, offset));
136
- case EntityDecoderState.NumericStart:
137
- return this.stateNumericStart(str, offset);
138
- case EntityDecoderState.NumericDecimal:
139
- return this.stateNumericDecimal(str, offset);
140
- case EntityDecoderState.NumericHex:
141
- return this.stateNumericHex(str, offset);
142
- case EntityDecoderState.NamedEntity:
143
- return this.stateNamedEntity(str, offset);
144
- }
145
- }
146
- /**
147
- * Switches between the numeric decimal and hexadecimal states.
148
- *
149
- * Equivalent to the `Numeric character reference state` in the HTML spec.
150
- *
151
- * @param str The string containing the entity (or a continuation of the entity).
152
- * @param offset The current offset.
153
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
154
- */
155
- stateNumericStart(str, offset) {
156
- return offset >= str.length ? -1 : (str.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X ? (this.state = EntityDecoderState.NumericHex, this.consumed += 1, this.stateNumericHex(str, offset + 1)) : (this.state = EntityDecoderState.NumericDecimal, this.stateNumericDecimal(str, offset));
157
- }
158
- addToNumericResult(str, start, end, base) {
159
- if (start !== end) {
160
- let digitCount = end - start;
161
- this.result = this.result * Math.pow(base, digitCount) + parseInt(str.substr(start, digitCount), base), this.consumed += digitCount;
162
- }
163
- }
164
- /**
165
- * Parses a hexadecimal numeric entity.
166
- *
167
- * Equivalent to the `Hexademical character reference state` in the HTML spec.
168
- *
169
- * @param str The string containing the entity (or a continuation of the entity).
170
- * @param offset The current offset.
171
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
172
- */
173
- stateNumericHex(str, offset) {
174
- let startIdx = offset;
175
- for (; offset < str.length; ) {
176
- let char = str.charCodeAt(offset);
177
- if (isNumber(char) || isHexadecimalCharacter(char))
178
- offset += 1;
179
- else
180
- return this.addToNumericResult(str, startIdx, offset, 16), this.emitNumericEntity(char, 3);
181
- }
182
- return this.addToNumericResult(str, startIdx, offset, 16), -1;
183
- }
184
- /**
185
- * Parses a decimal numeric entity.
186
- *
187
- * Equivalent to the `Decimal character reference state` in the HTML spec.
188
- *
189
- * @param str The string containing the entity (or a continuation of the entity).
190
- * @param offset The current offset.
191
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
192
- */
193
- stateNumericDecimal(str, offset) {
194
- let startIdx = offset;
195
- for (; offset < str.length; ) {
196
- let char = str.charCodeAt(offset);
197
- if (isNumber(char))
198
- offset += 1;
199
- else
200
- return this.addToNumericResult(str, startIdx, offset, 10), this.emitNumericEntity(char, 2);
201
- }
202
- return this.addToNumericResult(str, startIdx, offset, 10), -1;
203
- }
204
- /**
205
- * Validate and emit a numeric entity.
206
- *
207
- * Implements the logic from the `Hexademical character reference start
208
- * state` and `Numeric character reference end state` in the HTML spec.
209
- *
210
- * @param lastCp The last code point of the entity. Used to see if the
211
- * entity was terminated with a semicolon.
212
- * @param expectedLength The minimum number of characters that should be
213
- * consumed. Used to validate that at least one digit
214
- * was consumed.
215
- * @returns The number of characters that were consumed.
216
- */
217
- emitNumericEntity(lastCp, expectedLength) {
218
- var _a2;
219
- if (this.consumed <= expectedLength)
220
- return (_a2 = this.errors) === null || _a2 === void 0 || _a2.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
221
- if (lastCp === CharCodes.SEMI)
222
- this.consumed += 1;
223
- else if (this.decodeMode === DecodingMode.Strict)
224
- return 0;
225
- return this.emitCodePoint(replaceCodePoint(this.result), this.consumed), this.errors && (lastCp !== CharCodes.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
226
- }
227
- /**
228
- * Parses a named entity.
229
- *
230
- * Equivalent to the `Named character reference state` in the HTML spec.
231
- *
232
- * @param str The string containing the entity (or a continuation of the entity).
233
- * @param offset The current offset.
234
- * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
235
- */
236
- stateNamedEntity(str, offset) {
237
- let { decodeTree } = this, current = decodeTree[this.treeIndex], valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
238
- for (; offset < str.length; offset++, this.excess++) {
239
- let char = str.charCodeAt(offset);
240
- if (this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char), this.treeIndex < 0)
241
- return this.result === 0 || // If we are parsing an attribute
242
- this.decodeMode === DecodingMode.Attribute && // We shouldn't have consumed any characters after the entity,
243
- (valueLength === 0 || // And there should be no invalid characters.
244
- isEntityInAttributeInvalidEnd(char)) ? 0 : this.emitNotTerminatedNamedEntity();
245
- if (current = decodeTree[this.treeIndex], valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14, valueLength !== 0) {
246
- if (char === CharCodes.SEMI)
247
- return this.emitNamedEntityData(this.treeIndex, valueLength, this.consumed + this.excess);
248
- this.decodeMode !== DecodingMode.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
249
- }
250
- }
251
- return -1;
252
- }
253
- /**
254
- * Emit a named entity that was not terminated with a semicolon.
255
- *
256
- * @returns The number of characters consumed.
257
- */
258
- emitNotTerminatedNamedEntity() {
259
- var _a2;
260
- let { result, decodeTree } = this, valueLength = (decodeTree[result] & BinTrieFlags.VALUE_LENGTH) >> 14;
261
- return this.emitNamedEntityData(result, valueLength, this.consumed), (_a2 = this.errors) === null || _a2 === void 0 || _a2.missingSemicolonAfterCharacterReference(), this.consumed;
262
- }
263
- /**
264
- * Emit a named entity.
265
- *
266
- * @param result The index of the entity in the decode tree.
267
- * @param valueLength The number of bytes in the entity.
268
- * @param consumed The number of characters consumed.
269
- *
270
- * @returns The number of characters consumed.
271
- */
272
- emitNamedEntityData(result, valueLength, consumed) {
273
- let { decodeTree } = this;
274
- return this.emitCodePoint(valueLength === 1 ? decodeTree[result] & ~BinTrieFlags.VALUE_LENGTH : decodeTree[result + 1], consumed), valueLength === 3 && this.emitCodePoint(decodeTree[result + 2], consumed), consumed;
275
- }
276
- /**
277
- * Signal to the parser that the end of the input was reached.
278
- *
279
- * Remaining data will be emitted and relevant errors will be produced.
280
- *
281
- * @returns The number of characters consumed.
282
- */
283
- end() {
284
- var _a2;
285
- switch (this.state) {
286
- case EntityDecoderState.NamedEntity:
287
- return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
288
- // Otherwise, emit a numeric entity if we have one.
289
- case EntityDecoderState.NumericDecimal:
290
- return this.emitNumericEntity(0, 2);
291
- case EntityDecoderState.NumericHex:
292
- return this.emitNumericEntity(0, 3);
293
- case EntityDecoderState.NumericStart:
294
- return (_a2 = this.errors) === null || _a2 === void 0 || _a2.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
295
- case EntityDecoderState.EntityStart:
296
- return 0;
297
- }
298
- }
299
- };
300
- function getDecoder(decodeTree) {
301
- let ret = "", decoder = new EntityDecoder(decodeTree, (str) => ret += fromCodePoint(str));
302
- return function(str, decodeMode) {
303
- let lastIndex = 0, offset = 0;
304
- for (; (offset = str.indexOf("&", offset)) >= 0; ) {
305
- ret += str.slice(lastIndex, offset), decoder.startEntity(decodeMode);
306
- let len = decoder.write(
307
- str,
308
- // Skip the "&"
309
- offset + 1
310
- );
311
- if (len < 0) {
312
- lastIndex = offset + decoder.end();
313
- break;
314
- }
315
- lastIndex = offset + len, offset = len === 0 ? lastIndex + 1 : lastIndex;
316
- }
317
- let result = ret + str.slice(lastIndex);
318
- return ret = "", result;
319
- };
320
- }
321
- function determineBranch(decodeTree, current, nodeIdx, char) {
322
- let branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7, jumpOffset = current & BinTrieFlags.JUMP_TABLE;
323
- if (branchCount === 0)
324
- return jumpOffset !== 0 && char === jumpOffset ? nodeIdx : -1;
325
- if (jumpOffset) {
326
- let value = char - jumpOffset;
327
- return value < 0 || value >= branchCount ? -1 : decodeTree[nodeIdx + value] - 1;
328
- }
329
- let lo = nodeIdx, hi = lo + branchCount - 1;
330
- for (; lo <= hi; ) {
331
- let mid = lo + hi >>> 1, midVal = decodeTree[mid];
332
- if (midVal < char)
333
- lo = mid + 1;
334
- else if (midVal > char)
335
- hi = mid - 1;
336
- else
337
- return decodeTree[mid + branchCount];
338
- }
339
- return -1;
340
- }
341
- var htmlDecoder = getDecoder(decode_data_html_default), xmlDecoder = getDecoder(decode_data_xml_default);
342
- function decodeHTMLAttribute(str) {
343
- return htmlDecoder(str, DecodingMode.Attribute);
344
- }
345
-
346
- // ../../../node_modules/entities/lib/esm/generated/encode-html.js
347
- function restoreDiff(arr) {
348
- for (let i = 1; i < arr.length; i++)
349
- arr[i][0] += arr[i - 1][0] + 1;
350
- return arr;
351
- }
352
- var encode_html_default = new Map(restoreDiff([[9, "&Tab;"], [0, "&NewLine;"], [22, "&excl;"], [0, "&quot;"], [0, "&num;"], [0, "&dollar;"], [0, "&percnt;"], [0, "&amp;"], [0, "&apos;"], [0, "&lpar;"], [0, "&rpar;"], [0, "&ast;"], [0, "&plus;"], [0, "&comma;"], [1, "&period;"], [0, "&sol;"], [10, "&colon;"], [0, "&semi;"], [0, { v: "&lt;", n: 8402, o: "&nvlt;" }], [0, { v: "&equals;", n: 8421, o: "&bne;" }], [0, { v: "&gt;", n: 8402, o: "&nvgt;" }], [0, "&quest;"], [0, "&commat;"], [26, "&lbrack;"], [0, "&bsol;"], [0, "&rbrack;"], [0, "&Hat;"], [0, "&lowbar;"], [0, "&DiacriticalGrave;"], [5, { n: 106, o: "&fjlig;" }], [20, "&lbrace;"], [0, "&verbar;"], [0, "&rbrace;"], [34, "&nbsp;"], [0, "&iexcl;"], [0, "&cent;"], [0, "&pound;"], [0, "&curren;"], [0, "&yen;"], [0, "&brvbar;"], [0, "&sect;"], [0, "&die;"], [0, "&copy;"], [0, "&ordf;"], [0, "&laquo;"], [0, "&not;"], [0, "&shy;"], [0, "&circledR;"], [0, "&macr;"], [0, "&deg;"], [0, "&PlusMinus;"], [0, "&sup2;"], [0, "&sup3;"], [0, "&acute;"], [0, "&micro;"], [0, "&para;"], [0, "&centerdot;"], [0, "&cedil;"], [0, "&sup1;"], [0, "&ordm;"], [0, "&raquo;"], [0, "&frac14;"], [0, "&frac12;"], [0, "&frac34;"], [0, "&iquest;"], [0, "&Agrave;"], [0, "&Aacute;"], [0, "&Acirc;"], [0, "&Atilde;"], [0, "&Auml;"], [0, "&angst;"], [0, "&AElig;"], [0, "&Ccedil;"], [0, "&Egrave;"], [0, "&Eacute;"], [0, "&Ecirc;"], [0, "&Euml;"], [0, "&Igrave;"], [0, "&Iacute;"], [0, "&Icirc;"], [0, "&Iuml;"], [0, "&ETH;"], [0, "&Ntilde;"], [0, "&Ograve;"], [0, "&Oacute;"], [0, "&Ocirc;"], [0, "&Otilde;"], [0, "&Ouml;"], [0, "&times;"], [0, "&Oslash;"], [0, "&Ugrave;"], [0, "&Uacute;"], [0, "&Ucirc;"], [0, "&Uuml;"], [0, "&Yacute;"], [0, "&THORN;"], [0, "&szlig;"], [0, "&agrave;"], [0, "&aacute;"], [0, "&acirc;"], [0, "&atilde;"], [0, "&auml;"], [0, "&aring;"], [0, "&aelig;"], [0, "&ccedil;"], [0, "&egrave;"], [0, "&eacute;"], [0, "&ecirc;"], [0, "&euml;"], [0, "&igrave;"], [0, "&iacute;"], [0, "&icirc;"], [0, "&iuml;"], [0, "&eth;"], [0, "&ntilde;"], [0, "&ograve;"], [0, "&oacute;"], [0, "&ocirc;"], [0, "&otilde;"], [0, "&ouml;"], [0, "&div;"], [0, "&oslash;"], [0, "&ugrave;"], [0, "&uacute;"], [0, "&ucirc;"], [0, "&uuml;"], [0, "&yacute;"], [0, "&thorn;"], [0, "&yuml;"], [0, "&Amacr;"], [0, "&amacr;"], [0, "&Abreve;"], [0, "&abreve;"], [0, "&Aogon;"], [0, "&aogon;"], [0, "&Cacute;"], [0, "&cacute;"], [0, "&Ccirc;"], [0, "&ccirc;"], [0, "&Cdot;"], [0, "&cdot;"], [0, "&Ccaron;"], [0, "&ccaron;"], [0, "&Dcaron;"], [0, "&dcaron;"], [0, "&Dstrok;"], [0, "&dstrok;"], [0, "&Emacr;"], [0, "&emacr;"], [2, "&Edot;"], [0, "&edot;"], [0, "&Eogon;"], [0, "&eogon;"], [0, "&Ecaron;"], [0, "&ecaron;"], [0, "&Gcirc;"], [0, "&gcirc;"], [0, "&Gbreve;"], [0, "&gbreve;"], [0, "&Gdot;"], [0, "&gdot;"], [0, "&Gcedil;"], [1, "&Hcirc;"], [0, "&hcirc;"], [0, "&Hstrok;"], [0, "&hstrok;"], [0, "&Itilde;"], [0, "&itilde;"], [0, "&Imacr;"], [0, "&imacr;"], [2, "&Iogon;"], [0, "&iogon;"], [0, "&Idot;"], [0, "&imath;"], [0, "&IJlig;"], [0, "&ijlig;"], [0, "&Jcirc;"], [0, "&jcirc;"], [0, "&Kcedil;"], [0, "&kcedil;"], [0, "&kgreen;"], [0, "&Lacute;"], [0, "&lacute;"], [0, "&Lcedil;"], [0, "&lcedil;"], [0, "&Lcaron;"], [0, "&lcaron;"], [0, "&Lmidot;"], [0, "&lmidot;"], [0, "&Lstrok;"], [0, "&lstrok;"], [0, "&Nacute;"], [0, "&nacute;"], [0, "&Ncedil;"], [0, "&ncedil;"], [0, "&Ncaron;"], [0, "&ncaron;"], [0, "&napos;"], [0, "&ENG;"], [0, "&eng;"], [0, "&Omacr;"], [0, "&omacr;"], [2, "&Odblac;"], [0, "&odblac;"], [0, "&OElig;"], [0, "&oelig;"], [0, "&Racute;"], [0, "&racute;"], [0, "&Rcedil;"], [0, "&rcedil;"], [0, "&Rcaron;"], [0, "&rcaron;"], [0, "&Sacute;"], [0, "&sacute;"], [0, "&Scirc;"], [0, "&scirc;"], [0, "&Scedil;"], [0, "&scedil;"], [0, "&Scaron;"], [0, "&scaron;"], [0, "&Tcedil;"], [0, "&tcedil;"], [0, "&Tcaron;"], [0, "&tcaron;"], [0, "&Tstrok;"], [0, "&tstrok;"], [0, "&Utilde;"], [0, "&utilde;"], [0, "&Umacr;"], [0, "&umacr;"], [0, "&Ubreve;"], [0, "&ubreve;"], [0, "&Uring;"], [0, "&uring;"], [0, "&Udblac;"], [0, "&udblac;"], [0, "&Uogon;"], [0, "&uogon;"], [0, "&Wcirc;"], [0, "&wcirc;"], [0, "&Ycirc;"], [0, "&ycirc;"], [0, "&Yuml;"], [0, "&Zacute;"], [0, "&zacute;"], [0, "&Zdot;"], [0, "&zdot;"], [0, "&Zcaron;"], [0, "&zcaron;"], [19, "&fnof;"], [34, "&imped;"], [63, "&gacute;"], [65, "&jmath;"], [142, "&circ;"], [0, "&caron;"], [16, "&breve;"], [0, "&DiacriticalDot;"], [0, "&ring;"], [0, "&ogon;"], [0, "&DiacriticalTilde;"], [0, "&dblac;"], [51, "&DownBreve;"], [127, "&Alpha;"], [0, "&Beta;"], [0, "&Gamma;"], [0, "&Delta;"], [0, "&Epsilon;"], [0, "&Zeta;"], [0, "&Eta;"], [0, "&Theta;"], [0, "&Iota;"], [0, "&Kappa;"], [0, "&Lambda;"], [0, "&Mu;"], [0, "&Nu;"], [0, "&Xi;"], [0, "&Omicron;"], [0, "&Pi;"], [0, "&Rho;"], [1, "&Sigma;"], [0, "&Tau;"], [0, "&Upsilon;"], [0, "&Phi;"], [0, "&Chi;"], [0, "&Psi;"], [0, "&ohm;"], [7, "&alpha;"], [0, "&beta;"], [0, "&gamma;"], [0, "&delta;"], [0, "&epsi;"], [0, "&zeta;"], [0, "&eta;"], [0, "&theta;"], [0, "&iota;"], [0, "&kappa;"], [0, "&lambda;"], [0, "&mu;"], [0, "&nu;"], [0, "&xi;"], [0, "&omicron;"], [0, "&pi;"], [0, "&rho;"], [0, "&sigmaf;"], [0, "&sigma;"], [0, "&tau;"], [0, "&upsi;"], [0, "&phi;"], [0, "&chi;"], [0, "&psi;"], [0, "&omega;"], [7, "&thetasym;"], [0, "&Upsi;"], [2, "&phiv;"], [0, "&piv;"], [5, "&Gammad;"], [0, "&digamma;"], [18, "&kappav;"], [0, "&rhov;"], [3, "&epsiv;"], [0, "&backepsilon;"], [10, "&IOcy;"], [0, "&DJcy;"], [0, "&GJcy;"], [0, "&Jukcy;"], [0, "&DScy;"], [0, "&Iukcy;"], [0, "&YIcy;"], [0, "&Jsercy;"], [0, "&LJcy;"], [0, "&NJcy;"], [0, "&TSHcy;"], [0, "&KJcy;"], [1, "&Ubrcy;"], [0, "&DZcy;"], [0, "&Acy;"], [0, "&Bcy;"], [0, "&Vcy;"], [0, "&Gcy;"], [0, "&Dcy;"], [0, "&IEcy;"], [0, "&ZHcy;"], [0, "&Zcy;"], [0, "&Icy;"], [0, "&Jcy;"], [0, "&Kcy;"], [0, "&Lcy;"], [0, "&Mcy;"], [0, "&Ncy;"], [0, "&Ocy;"], [0, "&Pcy;"], [0, "&Rcy;"], [0, "&Scy;"], [0, "&Tcy;"], [0, "&Ucy;"], [0, "&Fcy;"], [0, "&KHcy;"], [0, "&TScy;"], [0, "&CHcy;"], [0, "&SHcy;"], [0, "&SHCHcy;"], [0, "&HARDcy;"], [0, "&Ycy;"], [0, "&SOFTcy;"], [0, "&Ecy;"], [0, "&YUcy;"], [0, "&YAcy;"], [0, "&acy;"], [0, "&bcy;"], [0, "&vcy;"], [0, "&gcy;"], [0, "&dcy;"], [0, "&iecy;"], [0, "&zhcy;"], [0, "&zcy;"], [0, "&icy;"], [0, "&jcy;"], [0, "&kcy;"], [0, "&lcy;"], [0, "&mcy;"], [0, "&ncy;"], [0, "&ocy;"], [0, "&pcy;"], [0, "&rcy;"], [0, "&scy;"], [0, "&tcy;"], [0, "&ucy;"], [0, "&fcy;"], [0, "&khcy;"], [0, "&tscy;"], [0, "&chcy;"], [0, "&shcy;"], [0, "&shchcy;"], [0, "&hardcy;"], [0, "&ycy;"], [0, "&softcy;"], [0, "&ecy;"], [0, "&yucy;"], [0, "&yacy;"], [1, "&iocy;"], [0, "&djcy;"], [0, "&gjcy;"], [0, "&jukcy;"], [0, "&dscy;"], [0, "&iukcy;"], [0, "&yicy;"], [0, "&jsercy;"], [0, "&ljcy;"], [0, "&njcy;"], [0, "&tshcy;"], [0, "&kjcy;"], [1, "&ubrcy;"], [0, "&dzcy;"], [7074, "&ensp;"], [0, "&emsp;"], [0, "&emsp13;"], [0, "&emsp14;"], [1, "&numsp;"], [0, "&puncsp;"], [0, "&ThinSpace;"], [0, "&hairsp;"], [0, "&NegativeMediumSpace;"], [0, "&zwnj;"], [0, "&zwj;"], [0, "&lrm;"], [0, "&rlm;"], [0, "&dash;"], [2, "&ndash;"], [0, "&mdash;"], [0, "&horbar;"], [0, "&Verbar;"], [1, "&lsquo;"], [0, "&CloseCurlyQuote;"], [0, "&lsquor;"], [1, "&ldquo;"], [0, "&CloseCurlyDoubleQuote;"], [0, "&bdquo;"], [1, "&dagger;"], [0, "&Dagger;"], [0, "&bull;"], [2, "&nldr;"], [0, "&hellip;"], [9, "&permil;"], [0, "&pertenk;"], [0, "&prime;"], [0, "&Prime;"], [0, "&tprime;"], [0, "&backprime;"], [3, "&lsaquo;"], [0, "&rsaquo;"], [3, "&oline;"], [2, "&caret;"], [1, "&hybull;"], [0, "&frasl;"], [10, "&bsemi;"], [7, "&qprime;"], [7, { v: "&MediumSpace;", n: 8202, o: "&ThickSpace;" }], [0, "&NoBreak;"], [0, "&af;"], [0, "&InvisibleTimes;"], [0, "&ic;"], [72, "&euro;"], [46, "&tdot;"], [0, "&DotDot;"], [37, "&complexes;"], [2, "&incare;"], [4, "&gscr;"], [0, "&hamilt;"], [0, "&Hfr;"], [0, "&Hopf;"], [0, "&planckh;"], [0, "&hbar;"], [0, "&imagline;"], [0, "&Ifr;"], [0, "&lagran;"], [0, "&ell;"], [1, "&naturals;"], [0, "&numero;"], [0, "&copysr;"], [0, "&weierp;"], [0, "&Popf;"], [0, "&Qopf;"], [0, "&realine;"], [0, "&real;"], [0, "&reals;"], [0, "&rx;"], [3, "&trade;"], [1, "&integers;"], [2, "&mho;"], [0, "&zeetrf;"], [0, "&iiota;"], [2, "&bernou;"], [0, "&Cayleys;"], [1, "&escr;"], [0, "&Escr;"], [0, "&Fouriertrf;"], [1, "&Mellintrf;"], [0, "&order;"], [0, "&alefsym;"], [0, "&beth;"], [0, "&gimel;"], [0, "&daleth;"], [12, "&CapitalDifferentialD;"], [0, "&dd;"], [0, "&ee;"], [0, "&ii;"], [10, "&frac13;"], [0, "&frac23;"], [0, "&frac15;"], [0, "&frac25;"], [0, "&frac35;"], [0, "&frac45;"], [0, "&frac16;"], [0, "&frac56;"], [0, "&frac18;"], [0, "&frac38;"], [0, "&frac58;"], [0, "&frac78;"], [49, "&larr;"], [0, "&ShortUpArrow;"], [0, "&rarr;"], [0, "&darr;"], [0, "&harr;"], [0, "&updownarrow;"], [0, "&nwarr;"], [0, "&nearr;"], [0, "&LowerRightArrow;"], [0, "&LowerLeftArrow;"], [0, "&nlarr;"], [0, "&nrarr;"], [1, { v: "&rarrw;", n: 824, o: "&nrarrw;" }], [0, "&Larr;"], [0, "&Uarr;"], [0, "&Rarr;"], [0, "&Darr;"], [0, "&larrtl;"], [0, "&rarrtl;"], [0, "&LeftTeeArrow;"], [0, "&mapstoup;"], [0, "&map;"], [0, "&DownTeeArrow;"], [1, "&hookleftarrow;"], [0, "&hookrightarrow;"], [0, "&larrlp;"], [0, "&looparrowright;"], [0, "&harrw;"], [0, "&nharr;"], [1, "&lsh;"], [0, "&rsh;"], [0, "&ldsh;"], [0, "&rdsh;"], [1, "&crarr;"], [0, "&cularr;"], [0, "&curarr;"], [2, "&circlearrowleft;"], [0, "&circlearrowright;"], [0, "&leftharpoonup;"], [0, "&DownLeftVector;"], [0, "&RightUpVector;"], [0, "&LeftUpVector;"], [0, "&rharu;"], [0, "&DownRightVector;"], [0, "&dharr;"], [0, "&dharl;"], [0, "&RightArrowLeftArrow;"], [0, "&udarr;"], [0, "&LeftArrowRightArrow;"], [0, "&leftleftarrows;"], [0, "&upuparrows;"], [0, "&rightrightarrows;"], [0, "&ddarr;"], [0, "&leftrightharpoons;"], [0, "&Equilibrium;"], [0, "&nlArr;"], [0, "&nhArr;"], [0, "&nrArr;"], [0, "&DoubleLeftArrow;"], [0, "&DoubleUpArrow;"], [0, "&DoubleRightArrow;"], [0, "&dArr;"], [0, "&DoubleLeftRightArrow;"], [0, "&DoubleUpDownArrow;"], [0, "&nwArr;"], [0, "&neArr;"], [0, "&seArr;"], [0, "&swArr;"], [0, "&lAarr;"], [0, "&rAarr;"], [1, "&zigrarr;"], [6, "&larrb;"], [0, "&rarrb;"], [15, "&DownArrowUpArrow;"], [7, "&loarr;"], [0, "&roarr;"], [0, "&hoarr;"], [0, "&forall;"], [0, "&comp;"], [0, { v: "&part;", n: 824, o: "&npart;" }], [0, "&exist;"], [0, "&nexist;"], [0, "&empty;"], [1, "&Del;"], [0, "&Element;"], [0, "&NotElement;"], [1, "&ni;"], [0, "&notni;"], [2, "&prod;"], [0, "&coprod;"], [0, "&sum;"], [0, "&minus;"], [0, "&MinusPlus;"], [0, "&dotplus;"], [1, "&Backslash;"], [0, "&lowast;"], [0, "&compfn;"], [1, "&radic;"], [2, "&prop;"], [0, "&infin;"], [0, "&angrt;"], [0, { v: "&ang;", n: 8402, o: "&nang;" }], [0, "&angmsd;"], [0, "&angsph;"], [0, "&mid;"], [0, "&nmid;"], [0, "&DoubleVerticalBar;"], [0, "&NotDoubleVerticalBar;"], [0, "&and;"], [0, "&or;"], [0, { v: "&cap;", n: 65024, o: "&caps;" }], [0, { v: "&cup;", n: 65024, o: "&cups;" }], [0, "&int;"], [0, "&Int;"], [0, "&iiint;"], [0, "&conint;"], [0, "&Conint;"], [0, "&Cconint;"], [0, "&cwint;"], [0, "&ClockwiseContourIntegral;"], [0, "&awconint;"], [0, "&there4;"], [0, "&becaus;"], [0, "&ratio;"], [0, "&Colon;"], [0, "&dotminus;"], [1, "&mDDot;"], [0, "&homtht;"], [0, { v: "&sim;", n: 8402, o: "&nvsim;" }], [0, { v: "&backsim;", n: 817, o: "&race;" }], [0, { v: "&ac;", n: 819, o: "&acE;" }], [0, "&acd;"], [0, "&VerticalTilde;"], [0, "&NotTilde;"], [0, { v: "&eqsim;", n: 824, o: "&nesim;" }], [0, "&sime;"], [0, "&NotTildeEqual;"], [0, "&cong;"], [0, "&simne;"], [0, "&ncong;"], [0, "&ap;"], [0, "&nap;"], [0, "&ape;"], [0, { v: "&apid;", n: 824, o: "&napid;" }], [0, "&backcong;"], [0, { v: "&asympeq;", n: 8402, o: "&nvap;" }], [0, { v: "&bump;", n: 824, o: "&nbump;" }], [0, { v: "&bumpe;", n: 824, o: "&nbumpe;" }], [0, { v: "&doteq;", n: 824, o: "&nedot;" }], [0, "&doteqdot;"], [0, "&efDot;"], [0, "&erDot;"], [0, "&Assign;"], [0, "&ecolon;"], [0, "&ecir;"], [0, "&circeq;"], [1, "&wedgeq;"], [0, "&veeeq;"], [1, "&triangleq;"], [2, "&equest;"], [0, "&ne;"], [0, { v: "&Congruent;", n: 8421, o: "&bnequiv;" }], [0, "&nequiv;"], [1, { v: "&le;", n: 8402, o: "&nvle;" }], [0, { v: "&ge;", n: 8402, o: "&nvge;" }], [0, { v: "&lE;", n: 824, o: "&nlE;" }], [0, { v: "&gE;", n: 824, o: "&ngE;" }], [0, { v: "&lnE;", n: 65024, o: "&lvertneqq;" }], [0, { v: "&gnE;", n: 65024, o: "&gvertneqq;" }], [0, { v: "&ll;", n: new Map(restoreDiff([[824, "&nLtv;"], [7577, "&nLt;"]])) }], [0, { v: "&gg;", n: new Map(restoreDiff([[824, "&nGtv;"], [7577, "&nGt;"]])) }], [0, "&between;"], [0, "&NotCupCap;"], [0, "&nless;"], [0, "&ngt;"], [0, "&nle;"], [0, "&nge;"], [0, "&lesssim;"], [0, "&GreaterTilde;"], [0, "&nlsim;"], [0, "&ngsim;"], [0, "&LessGreater;"], [0, "&gl;"], [0, "&NotLessGreater;"], [0, "&NotGreaterLess;"], [0, "&pr;"], [0, "&sc;"], [0, "&prcue;"], [0, "&sccue;"], [0, "&PrecedesTilde;"], [0, { v: "&scsim;", n: 824, o: "&NotSucceedsTilde;" }], [0, "&NotPrecedes;"], [0, "&NotSucceeds;"], [0, { v: "&sub;", n: 8402, o: "&NotSubset;" }], [0, { v: "&sup;", n: 8402, o: "&NotSuperset;" }], [0, "&nsub;"], [0, "&nsup;"], [0, "&sube;"], [0, "&supe;"], [0, "&NotSubsetEqual;"], [0, "&NotSupersetEqual;"], [0, { v: "&subne;", n: 65024, o: "&varsubsetneq;" }], [0, { v: "&supne;", n: 65024, o: "&varsupsetneq;" }], [1, "&cupdot;"], [0, "&UnionPlus;"], [0, { v: "&sqsub;", n: 824, o: "&NotSquareSubset;" }], [0, { v: "&sqsup;", n: 824, o: "&NotSquareSuperset;" }], [0, "&sqsube;"], [0, "&sqsupe;"], [0, { v: "&sqcap;", n: 65024, o: "&sqcaps;" }], [0, { v: "&sqcup;", n: 65024, o: "&sqcups;" }], [0, "&CirclePlus;"], [0, "&CircleMinus;"], [0, "&CircleTimes;"], [0, "&osol;"], [0, "&CircleDot;"], [0, "&circledcirc;"], [0, "&circledast;"], [1, "&circleddash;"], [0, "&boxplus;"], [0, "&boxminus;"], [0, "&boxtimes;"], [0, "&dotsquare;"], [0, "&RightTee;"], [0, "&dashv;"], [0, "&DownTee;"], [0, "&bot;"], [1, "&models;"], [0, "&DoubleRightTee;"], [0, "&Vdash;"], [0, "&Vvdash;"], [0, "&VDash;"], [0, "&nvdash;"], [0, "&nvDash;"], [0, "&nVdash;"], [0, "&nVDash;"], [0, "&prurel;"], [1, "&LeftTriangle;"], [0, "&RightTriangle;"], [0, { v: "&LeftTriangleEqual;", n: 8402, o: "&nvltrie;" }], [0, { v: "&RightTriangleEqual;", n: 8402, o: "&nvrtrie;" }], [0, "&origof;"], [0, "&imof;"], [0, "&multimap;"], [0, "&hercon;"], [0, "&intcal;"], [0, "&veebar;"], [1, "&barvee;"], [0, "&angrtvb;"], [0, "&lrtri;"], [0, "&bigwedge;"], [0, "&bigvee;"], [0, "&bigcap;"], [0, "&bigcup;"], [0, "&diam;"], [0, "&sdot;"], [0, "&sstarf;"], [0, "&divideontimes;"], [0, "&bowtie;"], [0, "&ltimes;"], [0, "&rtimes;"], [0, "&leftthreetimes;"], [0, "&rightthreetimes;"], [0, "&backsimeq;"], [0, "&curlyvee;"], [0, "&curlywedge;"], [0, "&Sub;"], [0, "&Sup;"], [0, "&Cap;"], [0, "&Cup;"], [0, "&fork;"], [0, "&epar;"], [0, "&lessdot;"], [0, "&gtdot;"], [0, { v: "&Ll;", n: 824, o: "&nLl;" }], [0, { v: "&Gg;", n: 824, o: "&nGg;" }], [0, { v: "&leg;", n: 65024, o: "&lesg;" }], [0, { v: "&gel;", n: 65024, o: "&gesl;" }], [2, "&cuepr;"], [0, "&cuesc;"], [0, "&NotPrecedesSlantEqual;"], [0, "&NotSucceedsSlantEqual;"], [0, "&NotSquareSubsetEqual;"], [0, "&NotSquareSupersetEqual;"], [2, "&lnsim;"], [0, "&gnsim;"], [0, "&precnsim;"], [0, "&scnsim;"], [0, "&nltri;"], [0, "&NotRightTriangle;"], [0, "&nltrie;"], [0, "&NotRightTriangleEqual;"], [0, "&vellip;"], [0, "&ctdot;"], [0, "&utdot;"], [0, "&dtdot;"], [0, "&disin;"], [0, "&isinsv;"], [0, "&isins;"], [0, { v: "&isindot;", n: 824, o: "&notindot;" }], [0, "&notinvc;"], [0, "&notinvb;"], [1, { v: "&isinE;", n: 824, o: "&notinE;" }], [0, "&nisd;"], [0, "&xnis;"], [0, "&nis;"], [0, "&notnivc;"], [0, "&notnivb;"], [6, "&barwed;"], [0, "&Barwed;"], [1, "&lceil;"], [0, "&rceil;"], [0, "&LeftFloor;"], [0, "&rfloor;"], [0, "&drcrop;"], [0, "&dlcrop;"], [0, "&urcrop;"], [0, "&ulcrop;"], [0, "&bnot;"], [1, "&profline;"], [0, "&profsurf;"], [1, "&telrec;"], [0, "&target;"], [5, "&ulcorn;"], [0, "&urcorn;"], [0, "&dlcorn;"], [0, "&drcorn;"], [2, "&frown;"], [0, "&smile;"], [9, "&cylcty;"], [0, "&profalar;"], [7, "&topbot;"], [6, "&ovbar;"], [1, "&solbar;"], [60, "&angzarr;"], [51, "&lmoustache;"], [0, "&rmoustache;"], [2, "&OverBracket;"], [0, "&bbrk;"], [0, "&bbrktbrk;"], [37, "&OverParenthesis;"], [0, "&UnderParenthesis;"], [0, "&OverBrace;"], [0, "&UnderBrace;"], [2, "&trpezium;"], [4, "&elinters;"], [59, "&blank;"], [164, "&circledS;"], [55, "&boxh;"], [1, "&boxv;"], [9, "&boxdr;"], [3, "&boxdl;"], [3, "&boxur;"], [3, "&boxul;"], [3, "&boxvr;"], [7, "&boxvl;"], [7, "&boxhd;"], [7, "&boxhu;"], [7, "&boxvh;"], [19, "&boxH;"], [0, "&boxV;"], [0, "&boxdR;"], [0, "&boxDr;"], [0, "&boxDR;"], [0, "&boxdL;"], [0, "&boxDl;"], [0, "&boxDL;"], [0, "&boxuR;"], [0, "&boxUr;"], [0, "&boxUR;"], [0, "&boxuL;"], [0, "&boxUl;"], [0, "&boxUL;"], [0, "&boxvR;"], [0, "&boxVr;"], [0, "&boxVR;"], [0, "&boxvL;"], [0, "&boxVl;"], [0, "&boxVL;"], [0, "&boxHd;"], [0, "&boxhD;"], [0, "&boxHD;"], [0, "&boxHu;"], [0, "&boxhU;"], [0, "&boxHU;"], [0, "&boxvH;"], [0, "&boxVh;"], [0, "&boxVH;"], [19, "&uhblk;"], [3, "&lhblk;"], [3, "&block;"], [8, "&blk14;"], [0, "&blk12;"], [0, "&blk34;"], [13, "&square;"], [8, "&blacksquare;"], [0, "&EmptyVerySmallSquare;"], [1, "&rect;"], [0, "&marker;"], [2, "&fltns;"], [1, "&bigtriangleup;"], [0, "&blacktriangle;"], [0, "&triangle;"], [2, "&blacktriangleright;"], [0, "&rtri;"], [3, "&bigtriangledown;"], [0, "&blacktriangledown;"], [0, "&dtri;"], [2, "&blacktriangleleft;"], [0, "&ltri;"], [6, "&loz;"], [0, "&cir;"], [32, "&tridot;"], [2, "&bigcirc;"], [8, "&ultri;"], [0, "&urtri;"], [0, "&lltri;"], [0, "&EmptySmallSquare;"], [0, "&FilledSmallSquare;"], [8, "&bigstar;"], [0, "&star;"], [7, "&phone;"], [49, "&female;"], [1, "&male;"], [29, "&spades;"], [2, "&clubs;"], [1, "&hearts;"], [0, "&diamondsuit;"], [3, "&sung;"], [2, "&flat;"], [0, "&natural;"], [0, "&sharp;"], [163, "&check;"], [3, "&cross;"], [8, "&malt;"], [21, "&sext;"], [33, "&VerticalSeparator;"], [25, "&lbbrk;"], [0, "&rbbrk;"], [84, "&bsolhsub;"], [0, "&suphsol;"], [28, "&LeftDoubleBracket;"], [0, "&RightDoubleBracket;"], [0, "&lang;"], [0, "&rang;"], [0, "&Lang;"], [0, "&Rang;"], [0, "&loang;"], [0, "&roang;"], [7, "&longleftarrow;"], [0, "&longrightarrow;"], [0, "&longleftrightarrow;"], [0, "&DoubleLongLeftArrow;"], [0, "&DoubleLongRightArrow;"], [0, "&DoubleLongLeftRightArrow;"], [1, "&longmapsto;"], [2, "&dzigrarr;"], [258, "&nvlArr;"], [0, "&nvrArr;"], [0, "&nvHarr;"], [0, "&Map;"], [6, "&lbarr;"], [0, "&bkarow;"], [0, "&lBarr;"], [0, "&dbkarow;"], [0, "&drbkarow;"], [0, "&DDotrahd;"], [0, "&UpArrowBar;"], [0, "&DownArrowBar;"], [2, "&Rarrtl;"], [2, "&latail;"], [0, "&ratail;"], [0, "&lAtail;"], [0, "&rAtail;"], [0, "&larrfs;"], [0, "&rarrfs;"], [0, "&larrbfs;"], [0, "&rarrbfs;"], [2, "&nwarhk;"], [0, "&nearhk;"], [0, "&hksearow;"], [0, "&hkswarow;"], [0, "&nwnear;"], [0, "&nesear;"], [0, "&seswar;"], [0, "&swnwar;"], [8, { v: "&rarrc;", n: 824, o: "&nrarrc;" }], [1, "&cudarrr;"], [0, "&ldca;"], [0, "&rdca;"], [0, "&cudarrl;"], [0, "&larrpl;"], [2, "&curarrm;"], [0, "&cularrp;"], [7, "&rarrpl;"], [2, "&harrcir;"], [0, "&Uarrocir;"], [0, "&lurdshar;"], [0, "&ldrushar;"], [2, "&LeftRightVector;"], [0, "&RightUpDownVector;"], [0, "&DownLeftRightVector;"], [0, "&LeftUpDownVector;"], [0, "&LeftVectorBar;"], [0, "&RightVectorBar;"], [0, "&RightUpVectorBar;"], [0, "&RightDownVectorBar;"], [0, "&DownLeftVectorBar;"], [0, "&DownRightVectorBar;"], [0, "&LeftUpVectorBar;"], [0, "&LeftDownVectorBar;"], [0, "&LeftTeeVector;"], [0, "&RightTeeVector;"], [0, "&RightUpTeeVector;"], [0, "&RightDownTeeVector;"], [0, "&DownLeftTeeVector;"], [0, "&DownRightTeeVector;"], [0, "&LeftUpTeeVector;"], [0, "&LeftDownTeeVector;"], [0, "&lHar;"], [0, "&uHar;"], [0, "&rHar;"], [0, "&dHar;"], [0, "&luruhar;"], [0, "&ldrdhar;"], [0, "&ruluhar;"], [0, "&rdldhar;"], [0, "&lharul;"], [0, "&llhard;"], [0, "&rharul;"], [0, "&lrhard;"], [0, "&udhar;"], [0, "&duhar;"], [0, "&RoundImplies;"], [0, "&erarr;"], [0, "&simrarr;"], [0, "&larrsim;"], [0, "&rarrsim;"], [0, "&rarrap;"], [0, "&ltlarr;"], [1, "&gtrarr;"], [0, "&subrarr;"], [1, "&suplarr;"], [0, "&lfisht;"], [0, "&rfisht;"], [0, "&ufisht;"], [0, "&dfisht;"], [5, "&lopar;"], [0, "&ropar;"], [4, "&lbrke;"], [0, "&rbrke;"], [0, "&lbrkslu;"], [0, "&rbrksld;"], [0, "&lbrksld;"], [0, "&rbrkslu;"], [0, "&langd;"], [0, "&rangd;"], [0, "&lparlt;"], [0, "&rpargt;"], [0, "&gtlPar;"], [0, "&ltrPar;"], [3, "&vzigzag;"], [1, "&vangrt;"], [0, "&angrtvbd;"], [6, "&ange;"], [0, "&range;"], [0, "&dwangle;"], [0, "&uwangle;"], [0, "&angmsdaa;"], [0, "&angmsdab;"], [0, "&angmsdac;"], [0, "&angmsdad;"], [0, "&angmsdae;"], [0, "&angmsdaf;"], [0, "&angmsdag;"], [0, "&angmsdah;"], [0, "&bemptyv;"], [0, "&demptyv;"], [0, "&cemptyv;"], [0, "&raemptyv;"], [0, "&laemptyv;"], [0, "&ohbar;"], [0, "&omid;"], [0, "&opar;"], [1, "&operp;"], [1, "&olcross;"], [0, "&odsold;"], [1, "&olcir;"], [0, "&ofcir;"], [0, "&olt;"], [0, "&ogt;"], [0, "&cirscir;"], [0, "&cirE;"], [0, "&solb;"], [0, "&bsolb;"], [3, "&boxbox;"], [3, "&trisb;"], [0, "&rtriltri;"], [0, { v: "&LeftTriangleBar;", n: 824, o: "&NotLeftTriangleBar;" }], [0, { v: "&RightTriangleBar;", n: 824, o: "&NotRightTriangleBar;" }], [11, "&iinfin;"], [0, "&infintie;"], [0, "&nvinfin;"], [4, "&eparsl;"], [0, "&smeparsl;"], [0, "&eqvparsl;"], [5, "&blacklozenge;"], [8, "&RuleDelayed;"], [1, "&dsol;"], [9, "&bigodot;"], [0, "&bigoplus;"], [0, "&bigotimes;"], [1, "&biguplus;"], [1, "&bigsqcup;"], [5, "&iiiint;"], [0, "&fpartint;"], [2, "&cirfnint;"], [0, "&awint;"], [0, "&rppolint;"], [0, "&scpolint;"], [0, "&npolint;"], [0, "&pointint;"], [0, "&quatint;"], [0, "&intlarhk;"], [10, "&pluscir;"], [0, "&plusacir;"], [0, "&simplus;"], [0, "&plusdu;"], [0, "&plussim;"], [0, "&plustwo;"], [1, "&mcomma;"], [0, "&minusdu;"], [2, "&loplus;"], [0, "&roplus;"], [0, "&Cross;"], [0, "&timesd;"], [0, "&timesbar;"], [1, "&smashp;"], [0, "&lotimes;"], [0, "&rotimes;"], [0, "&otimesas;"], [0, "&Otimes;"], [0, "&odiv;"], [0, "&triplus;"], [0, "&triminus;"], [0, "&tritime;"], [0, "&intprod;"], [2, "&amalg;"], [0, "&capdot;"], [1, "&ncup;"], [0, "&ncap;"], [0, "&capand;"], [0, "&cupor;"], [0, "&cupcap;"], [0, "&capcup;"], [0, "&cupbrcap;"], [0, "&capbrcup;"], [0, "&cupcup;"], [0, "&capcap;"], [0, "&ccups;"], [0, "&ccaps;"], [2, "&ccupssm;"], [2, "&And;"], [0, "&Or;"], [0, "&andand;"], [0, "&oror;"], [0, "&orslope;"], [0, "&andslope;"], [1, "&andv;"], [0, "&orv;"], [0, "&andd;"], [0, "&ord;"], [1, "&wedbar;"], [6, "&sdote;"], [3, "&simdot;"], [2, { v: "&congdot;", n: 824, o: "&ncongdot;" }], [0, "&easter;"], [0, "&apacir;"], [0, { v: "&apE;", n: 824, o: "&napE;" }], [0, "&eplus;"], [0, "&pluse;"], [0, "&Esim;"], [0, "&Colone;"], [0, "&Equal;"], [1, "&ddotseq;"], [0, "&equivDD;"], [0, "&ltcir;"], [0, "&gtcir;"], [0, "&ltquest;"], [0, "&gtquest;"], [0, { v: "&leqslant;", n: 824, o: "&nleqslant;" }], [0, { v: "&geqslant;", n: 824, o: "&ngeqslant;" }], [0, "&lesdot;"], [0, "&gesdot;"], [0, "&lesdoto;"], [0, "&gesdoto;"], [0, "&lesdotor;"], [0, "&gesdotol;"], [0, "&lap;"], [0, "&gap;"], [0, "&lne;"], [0, "&gne;"], [0, "&lnap;"], [0, "&gnap;"], [0, "&lEg;"], [0, "&gEl;"], [0, "&lsime;"], [0, "&gsime;"], [0, "&lsimg;"], [0, "&gsiml;"], [0, "&lgE;"], [0, "&glE;"], [0, "&lesges;"], [0, "&gesles;"], [0, "&els;"], [0, "&egs;"], [0, "&elsdot;"], [0, "&egsdot;"], [0, "&el;"], [0, "&eg;"], [2, "&siml;"], [0, "&simg;"], [0, "&simlE;"], [0, "&simgE;"], [0, { v: "&LessLess;", n: 824, o: "&NotNestedLessLess;" }], [0, { v: "&GreaterGreater;", n: 824, o: "&NotNestedGreaterGreater;" }], [1, "&glj;"], [0, "&gla;"], [0, "&ltcc;"], [0, "&gtcc;"], [0, "&lescc;"], [0, "&gescc;"], [0, "&smt;"], [0, "&lat;"], [0, { v: "&smte;", n: 65024, o: "&smtes;" }], [0, { v: "&late;", n: 65024, o: "&lates;" }], [0, "&bumpE;"], [0, { v: "&PrecedesEqual;", n: 824, o: "&NotPrecedesEqual;" }], [0, { v: "&sce;", n: 824, o: "&NotSucceedsEqual;" }], [2, "&prE;"], [0, "&scE;"], [0, "&precneqq;"], [0, "&scnE;"], [0, "&prap;"], [0, "&scap;"], [0, "&precnapprox;"], [0, "&scnap;"], [0, "&Pr;"], [0, "&Sc;"], [0, "&subdot;"], [0, "&supdot;"], [0, "&subplus;"], [0, "&supplus;"], [0, "&submult;"], [0, "&supmult;"], [0, "&subedot;"], [0, "&supedot;"], [0, { v: "&subE;", n: 824, o: "&nsubE;" }], [0, { v: "&supE;", n: 824, o: "&nsupE;" }], [0, "&subsim;"], [0, "&supsim;"], [2, { v: "&subnE;", n: 65024, o: "&varsubsetneqq;" }], [0, { v: "&supnE;", n: 65024, o: "&varsupsetneqq;" }], [2, "&csub;"], [0, "&csup;"], [0, "&csube;"], [0, "&csupe;"], [0, "&subsup;"], [0, "&supsub;"], [0, "&subsub;"], [0, "&supsup;"], [0, "&suphsub;"], [0, "&supdsub;"], [0, "&forkv;"], [0, "&topfork;"], [0, "&mlcp;"], [8, "&Dashv;"], [1, "&Vdashl;"], [0, "&Barv;"], [0, "&vBar;"], [0, "&vBarv;"], [1, "&Vbar;"], [0, "&Not;"], [0, "&bNot;"], [0, "&rnmid;"], [0, "&cirmid;"], [0, "&midcir;"], [0, "&topcir;"], [0, "&nhpar;"], [0, "&parsim;"], [9, { v: "&parsl;", n: 8421, o: "&nparsl;" }], [44343, { n: new Map(restoreDiff([[56476, "&Ascr;"], [1, "&Cscr;"], [0, "&Dscr;"], [2, "&Gscr;"], [2, "&Jscr;"], [0, "&Kscr;"], [2, "&Nscr;"], [0, "&Oscr;"], [0, "&Pscr;"], [0, "&Qscr;"], [1, "&Sscr;"], [0, "&Tscr;"], [0, "&Uscr;"], [0, "&Vscr;"], [0, "&Wscr;"], [0, "&Xscr;"], [0, "&Yscr;"], [0, "&Zscr;"], [0, "&ascr;"], [0, "&bscr;"], [0, "&cscr;"], [0, "&dscr;"], [1, "&fscr;"], [1, "&hscr;"], [0, "&iscr;"], [0, "&jscr;"], [0, "&kscr;"], [0, "&lscr;"], [0, "&mscr;"], [0, "&nscr;"], [1, "&pscr;"], [0, "&qscr;"], [0, "&rscr;"], [0, "&sscr;"], [0, "&tscr;"], [0, "&uscr;"], [0, "&vscr;"], [0, "&wscr;"], [0, "&xscr;"], [0, "&yscr;"], [0, "&zscr;"], [52, "&Afr;"], [0, "&Bfr;"], [1, "&Dfr;"], [0, "&Efr;"], [0, "&Ffr;"], [0, "&Gfr;"], [2, "&Jfr;"], [0, "&Kfr;"], [0, "&Lfr;"], [0, "&Mfr;"], [0, "&Nfr;"], [0, "&Ofr;"], [0, "&Pfr;"], [0, "&Qfr;"], [1, "&Sfr;"], [0, "&Tfr;"], [0, "&Ufr;"], [0, "&Vfr;"], [0, "&Wfr;"], [0, "&Xfr;"], [0, "&Yfr;"], [1, "&afr;"], [0, "&bfr;"], [0, "&cfr;"], [0, "&dfr;"], [0, "&efr;"], [0, "&ffr;"], [0, "&gfr;"], [0, "&hfr;"], [0, "&ifr;"], [0, "&jfr;"], [0, "&kfr;"], [0, "&lfr;"], [0, "&mfr;"], [0, "&nfr;"], [0, "&ofr;"], [0, "&pfr;"], [0, "&qfr;"], [0, "&rfr;"], [0, "&sfr;"], [0, "&tfr;"], [0, "&ufr;"], [0, "&vfr;"], [0, "&wfr;"], [0, "&xfr;"], [0, "&yfr;"], [0, "&zfr;"], [0, "&Aopf;"], [0, "&Bopf;"], [1, "&Dopf;"], [0, "&Eopf;"], [0, "&Fopf;"], [0, "&Gopf;"], [1, "&Iopf;"], [0, "&Jopf;"], [0, "&Kopf;"], [0, "&Lopf;"], [0, "&Mopf;"], [1, "&Oopf;"], [3, "&Sopf;"], [0, "&Topf;"], [0, "&Uopf;"], [0, "&Vopf;"], [0, "&Wopf;"], [0, "&Xopf;"], [0, "&Yopf;"], [1, "&aopf;"], [0, "&bopf;"], [0, "&copf;"], [0, "&dopf;"], [0, "&eopf;"], [0, "&fopf;"], [0, "&gopf;"], [0, "&hopf;"], [0, "&iopf;"], [0, "&jopf;"], [0, "&kopf;"], [0, "&lopf;"], [0, "&mopf;"], [0, "&nopf;"], [0, "&oopf;"], [0, "&popf;"], [0, "&qopf;"], [0, "&ropf;"], [0, "&sopf;"], [0, "&topf;"], [0, "&uopf;"], [0, "&vopf;"], [0, "&wopf;"], [0, "&xopf;"], [0, "&yopf;"], [0, "&zopf;"]])) }], [8906, "&fflig;"], [0, "&filig;"], [0, "&fllig;"], [0, "&ffilig;"], [0, "&ffllig;"]]));
353
-
354
- // ../../../node_modules/entities/lib/esm/escape.js
355
- var xmlCodeMap = /* @__PURE__ */ new Map([
356
- [34, "&quot;"],
357
- [38, "&amp;"],
358
- [39, "&apos;"],
359
- [60, "&lt;"],
360
- [62, "&gt;"]
361
- ]), getCodePoint = (
362
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
363
- String.prototype.codePointAt != null ? (str, index) => str.codePointAt(index) : (
364
- // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
365
- (c, index) => (c.charCodeAt(index) & 64512) === 55296 ? (c.charCodeAt(index) - 55296) * 1024 + c.charCodeAt(index + 1) - 56320 + 65536 : c.charCodeAt(index)
366
- )
367
- );
368
- function getEscaper(regex, map) {
369
- return function(data) {
370
- let match, lastIdx = 0, result = "";
371
- for (; match = regex.exec(data); )
372
- lastIdx !== match.index && (result += data.substring(lastIdx, match.index)), result += map.get(match[0].charCodeAt(0)), lastIdx = match.index + 1;
373
- return result + data.substring(lastIdx);
374
- };
375
- }
376
- var escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap), escapeAttribute = getEscaper(/["&\u00A0]/g, /* @__PURE__ */ new Map([
377
- [34, "&quot;"],
378
- [38, "&amp;"],
379
- [160, "&nbsp;"]
380
- ])), escapeText = getEscaper(/[&<>\u00A0]/g, /* @__PURE__ */ new Map([
381
- [38, "&amp;"],
382
- [60, "&lt;"],
383
- [62, "&gt;"],
384
- [160, "&nbsp;"]
385
- ]));
386
-
387
- // ../../../node_modules/entities/lib/esm/index.js
388
- var EntityLevel;
389
- (function(EntityLevel2) {
390
- EntityLevel2[EntityLevel2.XML = 0] = "XML", EntityLevel2[EntityLevel2.HTML = 1] = "HTML";
391
- })(EntityLevel || (EntityLevel = {}));
392
- var EncodingMode;
393
- (function(EncodingMode2) {
394
- EncodingMode2[EncodingMode2.UTF8 = 0] = "UTF8", EncodingMode2[EncodingMode2.ASCII = 1] = "ASCII", EncodingMode2[EncodingMode2.Extensive = 2] = "Extensive", EncodingMode2[EncodingMode2.Attribute = 3] = "Attribute", EncodingMode2[EncodingMode2.Text = 4] = "Text";
395
- })(EncodingMode || (EncodingMode = {}));
396
-
397
- // ../../lib/angular-compodoc/dist/_browser-chunks/chunk-W2GR2XFI.js
398
- var NOOP_LOGGER = {
20
+ // ../../lib/angular-cm/dist/index.js
21
+ import CJS_COMPAT_NODE_URL_tyf0jl4y9v from "node:url";
22
+ import CJS_COMPAT_NODE_PATH_tyf0jl4y9v from "node:path";
23
+ import CJS_COMPAT_NODE_MODULE_tyf0jl4y9v from "node:module";
24
+ import {
25
+ ComponentMetaManager,
26
+ parseTsconfigCommandLine
27
+ } from "storybook/internal/component-meta";
28
+ import { isInNodeModules, slash } from "storybook/internal/common";
29
+ import {
30
+ ProgramBackedProject,
31
+ ProjectFileTracker
32
+ } from "storybook/internal/component-meta";
33
+ import { logger as logger3 } from "storybook/internal/node-logger";
34
+ import * as path from "node:path";
35
+ import { logger as logger2 } from "storybook/internal/node-logger";
36
+ import { logger } from "storybook/internal/node-logger";
37
+ var __filename = CJS_COMPAT_NODE_URL_tyf0jl4y9v.fileURLToPath(import.meta.url), __dirname = CJS_COMPAT_NODE_PATH_tyf0jl4y9v.dirname(__filename), require2 = CJS_COMPAT_NODE_MODULE_tyf0jl4y9v.createRequire(import.meta.url), NOOP_LOGGER = {
399
38
  warn: () => {
400
39
  },
401
40
  debug: () => {
402
41
  }
403
- }, isMethod = (methodOrProp) => methodOrProp.args !== void 0, isRequired = (item) => (item.required ?? !0) && !item.optional;
404
- var hasDecorator = (item, decoratorName) => item.decorators && item.decorators.find((x) => x.name === decoratorName), mapPropertyToSection = (item) => hasDecorator(item, "ViewChild") ? "view child" : hasDecorator(item, "ViewChildren") ? "view children" : hasDecorator(item, "ContentChild") ? "content child" : hasDecorator(item, "ContentChildren") ? "content children" : "properties", mapItemToSection = (key, item) => {
42
+ }, commentText = (comment) => String(comment), SECTION_ORDER = [
43
+ "properties",
44
+ "inputs",
45
+ "outputs",
46
+ "methods",
47
+ "view child",
48
+ "view children",
49
+ "content child",
50
+ "content children"
51
+ ], isMethod = (methodOrProp) => methodOrProp.args !== void 0, isRequired = (item) => (item.required ?? item.initializer === void 0) && !item.optional, hasDecorator = (item, decoratorName) => item.decorators && item.decorators.find((x) => x.name === decoratorName), mapPropertyToSection = (item) => hasDecorator(item, "ViewChild") ? "view child" : hasDecorator(item, "ViewChildren") ? "view children" : hasDecorator(item, "ContentChild") ? "content child" : hasDecorator(item, "ContentChildren") ? "content children" : "properties", mapItemToSection = (key, item) => {
405
52
  switch (key) {
406
53
  case "methods":
407
54
  case "methodsClass":
@@ -418,112 +65,176 @@ var hasDecorator = (item, decoratorName) => item.decorators && item.decorators.f
418
65
  default:
419
66
  throw new Error(`Unknown key: ${key}`);
420
67
  }
421
- };
422
- var displaySignature = (item) => `(${item.args.map(
68
+ }, displaySignature = (item) => `(${item.args.map(
423
69
  (arg) => `${arg.name}${arg.optional ? "?" : ""}: ${arg.type}`
424
70
  ).join(", ")}) => ${item.returnType}`, extractTypeFromValue = (defaultValue) => {
425
71
  let valueType = typeof defaultValue;
426
72
  return defaultValue || valueType === "number" || valueType === "boolean" || valueType === "string" ? valueType : null;
427
- }, pickDeclaration = (candidates, componentFile) => candidates.length <= 1 ? candidates[0] : (componentFile ? candidates.find((candidate) => candidate.file === componentFile) : void 0) ?? [...candidates].sort((a, b) => (a.file ?? "").localeCompare(b.file ?? ""))[0], extractEnumValues = (compodocType, compodocJson, componentFile) => {
428
- let enumType = pickDeclaration(
429
- compodocJson?.miscellaneous?.enumerations?.filter((x) => x.name === compodocType) ?? [],
430
- componentFile
73
+ }, pickDeclaration = (candidates, componentFile) => candidates.length <= 1 ? candidates[0] : (componentFile ? candidates.find((candidate) => candidate.file === componentFile) : void 0) ?? [...candidates].sort((a, b) => (a.file ?? "").localeCompare(b.file ?? ""))[0], selectableUnionMembers = (type) => type.split("|").map((member) => member.trim()).filter((member) => member !== "undefined" && member !== "null"), CONTROL_PRIMITIVES = ["boolean", "number", "string"], primitiveUnionControl = (members) => {
74
+ let narrowest = CONTROL_PRIMITIVES.find((name) => members.includes(name)), allPrimitive = members.every(
75
+ (member) => CONTROL_PRIMITIVES.includes(member)
431
76
  );
432
- if (Array.isArray(enumType?.childs) && enumType.childs.every((x) => x.value))
433
- return enumType.childs.map((x) => x.value);
434
- if (typeof compodocType != "string" || compodocType.indexOf("|") === -1)
77
+ return narrowest !== void 0 && allPrimitive ? { name: narrowest } : void 0;
78
+ }, hasEnumValue = (child) => !!child.value, extractEnumValues = (type, metadataJson, componentFile) => {
79
+ let childs = pickDeclaration(
80
+ metadataJson?.miscellaneous?.enumerations?.filter((x) => x.name === type) ?? [],
81
+ componentFile
82
+ )?.childs;
83
+ if (Array.isArray(childs) && childs.every(hasEnumValue))
84
+ return childs.map((child) => child.value);
85
+ if (typeof type != "string" || type.indexOf("|") === -1)
86
+ return null;
87
+ let selectable = selectableUnionMembers(type);
88
+ if (selectable.length === 0)
435
89
  return null;
436
90
  try {
437
- return compodocType.split("|").map((value) => JSON.parse(value));
91
+ return selectable.map((value) => JSON.parse(value));
438
92
  } catch {
439
93
  return null;
440
94
  }
441
- }, resolveTypealias = (compodocType, compodocJson, componentFile, seen = /* @__PURE__ */ new Set()) => {
442
- if (seen.has(compodocType))
443
- return compodocType;
95
+ }, resolveTypealias = (type, metadataJson, componentFile, seen = /* @__PURE__ */ new Set()) => {
96
+ if (seen.has(type))
97
+ return type;
444
98
  let typeAlias = pickDeclaration(
445
- compodocJson?.miscellaneous?.typealiases?.filter((x) => x.name === compodocType) ?? [],
99
+ metadataJson?.miscellaneous?.typealiases?.filter((x) => x.name === type) ?? [],
446
100
  componentFile
447
101
  );
448
- return typeAlias ? (seen.add(compodocType), resolveTypealias(typeAlias.rawtype, compodocJson, componentFile, seen)) : compodocType;
449
- }, extractType = (property, defaultValue, compodocJson, componentFile) => {
450
- let compodocType = property.type || extractTypeFromValue(defaultValue);
451
- switch (compodocType) {
102
+ return typeAlias ? (seen.add(type), resolveTypealias(typeAlias.rawtype, metadataJson, componentFile, seen)) : type;
103
+ }, isFunctionTypeString = (type) => type === "function" || /^(new\s+)?(<.*>\s*)?\(.*\)\s*=>/.test(type), extractType = (property, defaultValue, metadataJson, componentFile) => {
104
+ let type = property.type || extractTypeFromValue(defaultValue);
105
+ switch (type) {
452
106
  case "string":
453
107
  case "boolean":
454
108
  case "number":
455
- return { name: compodocType };
109
+ return { name: type };
456
110
  case null:
457
111
  return { name: "other", value: "void" };
458
112
  default: {
459
- let resolvedType = resolveTypealias(compodocType, compodocJson, componentFile), enumValues = extractEnumValues(resolvedType, compodocJson, componentFile);
113
+ if (typeof type == "string" && isFunctionTypeString(type))
114
+ return { name: "function" };
115
+ let resolvedType = resolveTypealias(type, metadataJson, componentFile);
116
+ if (typeof resolvedType == "string" && resolvedType.indexOf("|") !== -1) {
117
+ let control = primitiveUnionControl([...new Set(selectableUnionMembers(resolvedType))]);
118
+ if (control)
119
+ return control;
120
+ }
121
+ let enumValues = extractEnumValues(resolvedType, metadataJson, componentFile);
460
122
  return enumValues ? { name: "enum", value: enumValues } : { name: "other", value: "empty-enum" };
461
123
  }
462
124
  }
125
+ }, castUntypedDefault = (defaultValue) => {
126
+ switch (defaultValue) {
127
+ case "true":
128
+ return !0;
129
+ case "false":
130
+ return !1;
131
+ case "null":
132
+ return null;
133
+ case "undefined":
134
+ return;
135
+ default:
136
+ return defaultValue;
137
+ }
463
138
  }, castDefaultValue = (property, defaultValue) => {
464
- let compodocType = property.type;
465
- if (compodocType && ["boolean", "number", "string", "EventEmitter"].includes(compodocType))
466
- switch (compodocType) {
139
+ if (defaultValue !== void 0)
140
+ switch (property.type) {
467
141
  case "boolean":
468
- return defaultValue === "true";
469
- case "number":
470
- return Number(defaultValue);
142
+ return defaultValue === "true" || defaultValue === "false" ? defaultValue === "true" : defaultValue;
143
+ case "number": {
144
+ let parsed = Number(defaultValue);
145
+ return Number.isNaN(parsed) && defaultValue !== "NaN" ? defaultValue : parsed;
146
+ }
471
147
  case "EventEmitter":
472
148
  return;
473
- default:
149
+ case "string":
474
150
  return defaultValue;
475
- }
476
- else
477
- switch (defaultValue) {
478
- case "true":
479
- return !0;
480
- case "false":
481
- return !1;
482
- case "null":
483
- return null;
484
- case "undefined":
485
- return;
486
151
  default:
487
- return defaultValue;
152
+ return castUntypedDefault(defaultValue);
153
+ }
154
+ }, unquote = (value) => value.replace(/^(['"`])([\s\S]*)\1$/, "$2"), authoredDefault = (property) => {
155
+ let value;
156
+ for (let tag of property.jsdoctags ?? []) {
157
+ let tagName = tag.tagName?.escapedText?.toLowerCase();
158
+ (tagName === "default" || tagName === "defaultvalue") && tag.comment !== void 0 && (value = unquote(commentText(tag.comment).trim()));
159
+ }
160
+ return value;
161
+ }, analyzerDefault = (initializer) => {
162
+ switch (initializer.literalKind) {
163
+ case "string":
164
+ return unquote(initializer.text);
165
+ case "number": {
166
+ let parsed = Number(initializer.text);
167
+ return Number.isNaN(parsed) ? initializer.text : parsed;
488
168
  }
489
- }, extractDefaultValueFromComments = (property, value, unwrapHtml) => {
490
- let commentValue = value;
491
- return property.jsdoctags.forEach((tag) => {
492
- let tagName = tag.tagName.escapedText;
493
- (tagName === "default" || tagName === "defaultvalue") && (commentValue = unwrapHtml(tag.comment));
494
- }), commentValue;
495
- }, extractDefaultValue = (property, logger2, unwrapHtml) => {
169
+ case "boolean":
170
+ return initializer.text === "true";
171
+ case "null":
172
+ return null;
173
+ case "undefined":
174
+ return;
175
+ case "bigint":
176
+ case "enum":
177
+ case "composite":
178
+ return initializer.text;
179
+ }
180
+ }, extractDefaultValue = (property, logger42) => {
496
181
  try {
497
- let value = property.defaultValue?.replace(/^'(.*)'$/, "$1");
498
- return value = castDefaultValue(property, value), value == null && (property.jsdoctags?.length ?? 0) > 0 && (value = extractDefaultValueFromComments(property, value, unwrapHtml)), value;
182
+ let authored = authoredDefault(property);
183
+ if (authored !== void 0)
184
+ return castDefaultValue(property, authored);
185
+ if (property.initializer === void 0)
186
+ return;
187
+ if (property.initializer.kind === "expression") {
188
+ logger42.debug(
189
+ `${property.name}: non-literal default '${property.initializer.text}' not shown`
190
+ );
191
+ return;
192
+ }
193
+ return analyzerDefault(property.initializer);
499
194
  } catch {
500
- logger2.debug(`Error extracting ${property.name}: ${property.defaultValue}`);
195
+ logger42.debug(`Error extracting ${property.name}: ${property.initializer?.text}`);
501
196
  return;
502
197
  }
503
- }, readMembers = (componentData, key) => componentData[key] || [], getModelProperties = (componentData) => {
504
- let inputsByName = new Map(
505
- readMembers(componentData, "inputsClass").map((item) => [item.name, item])
506
- );
507
- return readMembers(componentData, "outputsClass").filter((item) => {
198
+ }, extractMemberJsDocTags = (member) => {
199
+ let deprecated, returns;
200
+ for (let tag of member.jsdoctags ?? []) {
201
+ let tagName = tag.tagName?.escapedText;
202
+ tagName === "deprecated" ? deprecated = tag.comment === void 0 ? "" : commentText(tag.comment).trim() : (tagName === "returns" || tagName === "return") && tag.comment !== void 0 && (returns = { description: commentText(tag.comment).trim() });
203
+ }
204
+ if (!(deprecated === void 0 && returns === void 0))
205
+ return {
206
+ ...deprecated !== void 0 ? { deprecated } : {},
207
+ ...returns !== void 0 ? { returns } : {}
208
+ };
209
+ }, documentedInMode = (item, section2, propsTable) => propsTable === "all" ? !0 : item.internal === !0 || item.name.startsWith("#") ? !1 : section2 === "inputs" || section2 === "outputs" || item.visibility !== "private", readMembers = (componentData, key) => componentData[key] || [], isDirectiveEntry = (componentData) => componentData.type === "component" || componentData.type === "directive", getModelProperties = (componentData) => {
210
+ if (!isDirectiveEntry(componentData))
211
+ return [];
212
+ let inputsByName = new Map(componentData.inputsClass.map((item) => [item.name, item]));
213
+ return componentData.outputsClass.filter((item) => {
508
214
  let input = inputsByName.get(item.name);
509
215
  return input?.line !== void 0 && input.line === item.line;
510
216
  });
511
- }, extractArgTypesFromData = (componentData, { compodocJson, filterNonInputControls, logger: logger2 = NOOP_LOGGER, unwrapHtml }) => {
512
- let sectionToItems = {}, componentClasses = filterNonInputControls ? ["inputsClass"] : ["propertiesClass", "methodsClass", "inputsClass", "outputsClass"], compodocClasses = ["component", "directive"].includes(
513
- componentData.type
514
- ) ? componentClasses : ["properties", "methods"], modelProperties = getModelProperties(componentData), modelPropertyNames = new Set(modelProperties.map((item) => item.name));
515
- compodocClasses.forEach((key) => {
217
+ }, extractArgTypesFromData = (componentData, { metadataJson, propsTable, logger: logger42 = NOOP_LOGGER }) => {
218
+ let sectionToItems = {}, componentClasses = propsTable === "inputs" ? ["inputsClass"] : ["propertiesClass", "methodsClass", "inputsClass", "outputsClass"], memberKeys = isDirectiveEntry(componentData) ? componentClasses : ["properties", "methods"], modelProperties = getModelProperties(componentData), modelPropertyNames = new Set(modelProperties.map((item) => item.name));
219
+ memberKeys.forEach((key) => {
516
220
  readMembers(componentData, key).forEach((item) => {
517
- let section = mapItemToSection(key, item);
221
+ let section2 = mapItemToSection(key, item);
518
222
  if (key === "outputsClass" && !isMethod(item) && modelPropertyNames.has(item.name))
519
223
  return;
520
- let defaultValue = isMethod(item) ? void 0 : extractDefaultValue(item, logger2, unwrapHtml), type = isMethod(item) || section !== "inputs" && section !== "properties" ? { name: "other", value: "void" } : extractType(item, defaultValue, compodocJson, componentData.file), action = section === "outputs" ? { action: item.name } : {}, argType = {
224
+ if (!documentedInMode(item, section2, propsTable)) {
225
+ logger42.debug(
226
+ `${componentData.name}.${item.name} left out of the props table: propsTable '${propsTable}'`
227
+ );
228
+ return;
229
+ }
230
+ let defaultValue = isMethod(item) ? void 0 : extractDefaultValue(item, logger42), type = isMethod(item) || section2 !== "inputs" && section2 !== "properties" ? { name: "other", value: "void" } : extractType(item, defaultValue, metadataJson, componentData.file), action = section2 === "outputs" ? { action: item.name } : {}, jsDocTags = extractMemberJsDocTags(item), argType = {
521
231
  name: item.name,
522
232
  description: item.rawdescription || item.description,
523
233
  type,
524
234
  ...action,
525
235
  table: {
526
- category: section,
236
+ category: section2,
237
+ ...jsDocTags !== void 0 ? { jsDocTags } : {},
527
238
  type: {
528
239
  summary: isMethod(item) ? displaySignature(item) : item.type,
529
240
  required: isMethod(item) ? !1 : isRequired(item)
@@ -531,9 +242,9 @@ var displaySignature = (item) => `(${item.args.map(
531
242
  defaultValue: { summary: defaultValue }
532
243
  }
533
244
  };
534
- sectionToItems[section] || (sectionToItems[section] = []), sectionToItems[section].push(argType);
245
+ sectionToItems[section2] || (sectionToItems[section2] = []), sectionToItems[section2].push(argType);
535
246
  });
536
- }), modelProperties.forEach((item) => {
247
+ }), modelProperties.filter((item) => documentedInMode(item, "inputs", propsTable)).forEach((item) => {
537
248
  let changeName = `${item.name}Change`, argType = {
538
249
  name: changeName,
539
250
  description: item.rawdescription || item.description,
@@ -543,176 +254,1426 @@ var displaySignature = (item) => `(${item.args.map(
543
254
  category: "outputs",
544
255
  type: {
545
256
  summary: `(e: ${item.type}) => void`,
546
- // An output is never required to bind, and a real output says so via Compodoc's own
547
- // flag. This one is synthesized, so it has to say so itself rather than inheriting the
548
- // requiredness of the model input it derives from.
549
257
  required: !1
550
258
  }
551
259
  }
552
260
  };
553
261
  sectionToItems.outputs || (sectionToItems.outputs = []), sectionToItems.outputs.push(argType);
554
262
  });
555
- let SECTIONS = [
556
- "properties",
557
- "inputs",
558
- "outputs",
559
- "methods",
560
- "view child",
561
- "view children",
562
- "content child",
563
- "content children"
564
- ], argTypes = {};
565
- return SECTIONS.forEach((section) => {
566
- let items = sectionToItems[section];
263
+ let argTypes = {};
264
+ return SECTION_ORDER.forEach((section2) => {
265
+ let items = sectionToItems[section2];
567
266
  items && items.forEach((argType) => {
568
267
  argTypes[argType.name] = argType;
569
268
  });
570
269
  }), argTypes;
571
- }, HTML_COMMENT = /<!--[\s\S]*?(?:-->|$)/g, TAG_INNER = `(?:[^>=]|=\\s*"[^"]*"|=\\s*'[^']*'|=(?!\\s*["']))*`, HTML_TAG = new RegExp(`<[a-zA-Z!/?]${TAG_INNER}>`, "g"), TRUNCATED_HTML_TAG = new RegExp(`<[a-zA-Z!/?]${TAG_INNER}$`), htmlToText = (html) => {
572
- let stripped = (typeof html == "string" ? html : String(html)).replace(HTML_COMMENT, "").replace(HTML_TAG, "").replace(TRUNCATED_HTML_TAG, "");
573
- return decodeHTMLAttribute(stripped);
270
+ }, resolvedSymbol = (ctx, node) => {
271
+ let symbol = ctx.checker.getSymbolAtLocation(node);
272
+ return symbol && symbol.flags & ctx.ts.SymbolFlags.Alias ? ctx.checker.getAliasedSymbol(symbol) : symbol;
273
+ }, isAngularCoreOrUnresolved = (ctx, node) => {
274
+ let symbol = resolvedSymbol(ctx, node);
275
+ if (!symbol)
276
+ return !0;
277
+ let declarations = symbol.declarations;
278
+ return declarations?.length ? declarations.some(
279
+ (declaration) => declaration.getSourceFile().fileName.includes("@angular/core")
280
+ ) : !0;
281
+ }, importedName = (ctx, target) => {
282
+ let symbol = resolvedSymbol(ctx, target);
283
+ return symbol?.declarations?.length ? symbol.name : ctx.ts.isIdentifier(target) ? ctx.checker.getSymbolAtLocation(target)?.declarations?.find(ctx.ts.isImportSpecifier)?.propertyName?.text ?? target.text : target.name.text;
284
+ }, getDecorators = (ctx, node) => {
285
+ let { ts } = ctx;
286
+ if (!ts.canHaveDecorators(node))
287
+ return [];
288
+ let decorators = [];
289
+ for (let decorator of ts.getDecorators(node) ?? []) {
290
+ let expression = decorator.expression, call = ts.isCallExpression(expression) ? expression : void 0, target = call ? call.expression : expression;
291
+ if (!isAngularCoreOrUnresolved(ctx, target))
292
+ continue;
293
+ let name = ts.isIdentifier(target) || ts.isPropertyAccessExpression(target) ? importedName(ctx, target) : target.getText();
294
+ decorators.push({ name, call });
295
+ }
296
+ return decorators;
297
+ }, objectArgOf = (ctx, call) => {
298
+ let arg = call?.arguments[0];
299
+ return arg && ctx.ts.isObjectLiteralExpression(arg) ? arg : void 0;
300
+ }, decoratorObjectArg = (ctx, node, name) => objectArgOf(ctx, getDecorators(ctx, node).find((decorator) => decorator.name === name)?.call), decoratorStringArg = (ctx, decorator) => {
301
+ let arg = decorator.call?.arguments[0];
302
+ return arg && ctx.ts.isStringLiteralLike(arg) ? arg.text : void 0;
303
+ }, objectProperty = (ctx, object, key) => {
304
+ for (let property of object.properties)
305
+ if (ctx.ts.isPropertyAssignment(property) && ctx.ts.isIdentifier(property.name) && property.name.text === key)
306
+ return property.initializer;
307
+ }, stringOption = (ctx, object, key) => {
308
+ let initializer = objectProperty(ctx, object, key);
309
+ return initializer && ctx.ts.isStringLiteralLike(initializer) ? initializer.text : void 0;
310
+ }, booleanOption = (ctx, object, key) => {
311
+ let initializer = objectProperty(ctx, object, key);
312
+ if (initializer?.kind === ctx.ts.SyntaxKind.TrueKeyword)
313
+ return !0;
314
+ if (initializer?.kind === ctx.ts.SyntaxKind.FalseKeyword)
315
+ return !1;
316
+ }, parseInputDecoratorConfig = (ctx, decorator) => {
317
+ let aliasArg = decoratorStringArg(ctx, decorator);
318
+ if (aliasArg !== void 0)
319
+ return { alias: aliasArg };
320
+ let options = objectArgOf(ctx, decorator.call);
321
+ if (!options)
322
+ return {};
323
+ let alias = stringOption(ctx, options, "alias"), required = booleanOption(ctx, options, "required"), transform = objectProperty(ctx, options, "transform");
324
+ return {
325
+ ...alias === void 0 ? {} : { alias },
326
+ ...required === void 0 ? {} : { required },
327
+ ...transform === void 0 ? {} : { transform }
328
+ };
329
+ }, readMetadataInputsOutputs = (ctx, classNode, decoratorName) => {
330
+ let { ts } = ctx, metadata = decoratorObjectArg(ctx, classNode, decoratorName);
331
+ if (!metadata)
332
+ return [];
333
+ let entries = [];
334
+ for (let property of metadata.properties) {
335
+ if (!ts.isPropertyAssignment(property) || !ts.isIdentifier(property.name))
336
+ continue;
337
+ let bucket = property.name.text;
338
+ if (!(bucket !== "inputs" && bucket !== "outputs" || !ts.isArrayLiteralExpression(property.initializer))) {
339
+ for (let element of property.initializer.elements)
340
+ if (ts.isStringLiteralLike(element)) {
341
+ let [name, alias] = element.text.split(":").map((part) => part.trim());
342
+ entries.push({ bucket, name, ...alias ? { alias } : {} });
343
+ } else if (bucket === "inputs" && ts.isObjectLiteralExpression(element)) {
344
+ let name = stringOption(ctx, element, "name");
345
+ if (!name)
346
+ continue;
347
+ let alias = stringOption(ctx, element, "alias"), required = booleanOption(ctx, element, "required");
348
+ entries.push({
349
+ bucket,
350
+ name,
351
+ ...alias ? { alias } : {},
352
+ ...required !== void 0 ? { required } : {}
353
+ });
354
+ }
355
+ }
356
+ }
357
+ return entries;
358
+ }, unwrapInitializer = (ts, expression) => {
359
+ let unwrapped = expression;
360
+ for (; ts.isParenthesizedExpression(unwrapped) || ts.isAsExpression(unwrapped) || ts.isSatisfiesExpression(unwrapped) || ts.isTypeAssertionExpression(unwrapped) || ts.isNonNullExpression(unwrapped); )
361
+ unwrapped = unwrapped.expression;
362
+ return unwrapped;
363
+ }, isEnumMemberAccess = (ctx, expression) => {
364
+ let resolved = resolvedSymbol(ctx, expression.name);
365
+ return !!(resolved && resolved.flags & ctx.ts.SymbolFlags.EnumMember);
366
+ }, literalKind = (ctx, expression) => {
367
+ let { ts } = ctx, value = unwrapInitializer(ts, expression);
368
+ if (ts.isStringLiteral(value) || ts.isNoSubstitutionTemplateLiteral(value))
369
+ return "string";
370
+ if (ts.isNumericLiteral(value))
371
+ return "number";
372
+ if (ts.isBigIntLiteral(value))
373
+ return "bigint";
374
+ if (value.kind === ts.SyntaxKind.TrueKeyword || value.kind === ts.SyntaxKind.FalseKeyword)
375
+ return "boolean";
376
+ if (value.kind === ts.SyntaxKind.NullKeyword)
377
+ return "null";
378
+ if (ts.isIdentifier(value) && value.text === "undefined" && ctx.checker.getTypeAtLocation(value).flags & ts.TypeFlags.Undefined) {
379
+ let symbol = ctx.checker.getSymbolAtLocation(value);
380
+ if (!symbol?.valueDeclaration && (symbol?.declarations?.length ?? 0) === 0)
381
+ return "undefined";
382
+ }
383
+ if (ts.isPrefixUnaryExpression(value))
384
+ return (value.operator === ts.SyntaxKind.PlusToken || value.operator === ts.SyntaxKind.MinusToken) && ts.isNumericLiteral(value.operand) ? "number" : value.operator === ts.SyntaxKind.MinusToken && ts.isBigIntLiteral(value.operand) ? "bigint" : void 0;
385
+ if (ts.isPropertyAccessExpression(value))
386
+ return isEnumMemberAccess(ctx, value) ? "enum" : void 0;
387
+ if (ts.isArrayLiteralExpression(value))
388
+ return value.elements.every(
389
+ (element) => !ts.isSpreadElement(element) && !ts.isOmittedExpression(element) && literalKind(ctx, element) !== void 0
390
+ ) ? "composite" : void 0;
391
+ if (ts.isObjectLiteralExpression(value))
392
+ return value.properties.every(
393
+ (property) => ts.isPropertyAssignment(property) && !ts.isComputedPropertyName(property.name) && literalKind(ctx, property.initializer) !== void 0
394
+ ) ? "composite" : void 0;
395
+ }, defaultInitializer = (ctx, expression) => {
396
+ let unwrapped = unwrapInitializer(ctx.ts, expression), kind = literalKind(ctx, unwrapped);
397
+ return kind ? { kind: "literal", literalKind: kind, text: unwrapped.getText() } : { kind: "expression", text: expression.getText() };
398
+ }, analyzeInputTransform = (ctx, transform) => {
399
+ let { checker, ts } = ctx, signatures = checker.getTypeAtLocation(transform).getCallSignatures(), signature = signatures[signatures.length - 1], parameter = signature?.getParameters()[0], parameterType = parameter && checker.getTypeOfSymbolAtLocation(parameter, transform);
400
+ if (!parameterType || parameterType.flags & (ts.TypeFlags.Unknown | ts.TypeFlags.Any))
401
+ return;
402
+ let declaration = parameter?.valueDeclaration, node = declaration && ts.isParameter(declaration) ? declaration.type : void 0, unwrappedTransform = transform;
403
+ for (; ts.isParenthesizedExpression(unwrappedTransform) || ts.isSatisfiesExpression(unwrappedTransform) || ts.isNonNullExpression(unwrappedTransform); )
404
+ unwrappedTransform = unwrappedTransform.expression;
405
+ let typeArguments = ts.isCallExpression(unwrappedTransform) || ts.isExpressionWithTypeArguments(unwrappedTransform) ? unwrappedTransform.typeArguments : void 0, substitutions = /* @__PURE__ */ new Map(), typeParameters = ((ts.isCallExpression(unwrappedTransform) ? checker.getResolvedSignature(unwrappedTransform) : signature)?.declaration?.typeParameters ?? []).filter(
406
+ ts.isTypeParameterDeclaration
407
+ );
408
+ for (let [index, typeParameter] of typeParameters.entries()) {
409
+ let symbol = checker.getSymbolAtLocation(typeParameter.name), argument = typeArguments?.[index];
410
+ symbol && argument && substitutions.set(symbol, argument);
411
+ }
412
+ return {
413
+ type: ctx.types.renderValueType(parameterType, transform),
414
+ source: {
415
+ kind: "transform",
416
+ checkerType: parameterType,
417
+ ...node ? { node } : {},
418
+ ...substitutions.size > 0 ? { substitutions } : {}
419
+ }
420
+ };
421
+ }, decorationStripped = (line) => line.match(/^[ \t]*\*(?!\*)[ \t]?(.*)$/)?.[1], indentWidth = (line) => line.match(/^[ \t]*/)[0].length, cleanCommentText = (raw) => {
422
+ let lines = raw.split(`
423
+ `).map((line) => line.replace(/\r$/, "")), undecorated = lines.slice(1).filter((line) => line.trim() !== "" && decorationStripped(line) === void 0), margin = undecorated.length === 0 ? 0 : Math.min(...undecorated.map(indentWidth)), cleaned = lines.map((line, index) => {
424
+ if (line.trim() === "")
425
+ return "";
426
+ let stripped = decorationStripped(line);
427
+ return stripped !== void 0 ? stripped : index === 0 ? line.replace(/^[ \t]+/, "") : line.slice(margin);
428
+ });
429
+ for (; cleaned.length > 0 && cleaned[0] === ""; )
430
+ cleaned.shift();
431
+ return cleaned.join(`
432
+ `);
433
+ }, rawJsDocComment = (sourceText, jsDoc) => {
434
+ let end = jsDoc.tags?.length ? jsDoc.tags[0].pos : jsDoc.end;
435
+ return sourceText.slice(jsDoc.pos, end).replace(/^\/\*\*/, "").replace(/\*\/$/, "");
436
+ }, rawTagComment = (ts, sourceText, tag) => {
437
+ let start;
438
+ return ts.isJSDocSeeTag(tag) && tag.name ? start = tag.name.pos : tag.comment !== void 0 && (start = typeof tag.comment == "string" ? tag.getChildren().at(-1)?.end : tag.comment.pos, start ??= tag.tagName.end), start === void 0 ? void 0 : cleanCommentText(sourceText.slice(start, tag.end)).trimEnd();
574
439
  };
575
-
576
- // src/docgen/resolve-component.ts
577
- import { createMetaComponentResolver } from "storybook/internal/common";
578
- import { loadCsf } from "storybook/internal/csf-tools";
579
- import { readFileSync } from "node:fs";
580
- var resolveMetaComponent = createMetaComponentResolver();
581
- function resolveStoryComponent(storyFilePath, title = "Docgen") {
582
- let csf;
583
- try {
584
- csf = loadCsf(readFileSync(storyFilePath, "utf8"), { makeTitle: () => title }).parse();
585
- } catch {
586
- return { reason: "no-meta-component" };
440
+ function getJsDocDescription(ts, node) {
441
+ let sourceText = node.getSourceFile().text, jsDoc = ts.getJSDocCommentsAndTags(node).filter((doc) => ts.isJSDoc(doc)).at(-1), text = jsDoc?.comment === void 0 ? void 0 : cleanCommentText(rawJsDocComment(sourceText, jsDoc));
442
+ text = text?.replace(/^(?:[ \t]*\*+[ \t]*\n)+/, "").replace(/^[ \t]*\*+[ \t]*$/, "");
443
+ let descriptionTag = ts.getJSDocTags(node).find((tag) => tag.tagName.text === "description" && tag.comment !== void 0);
444
+ descriptionTag && (text = cleanCommentText(sourceText.slice(descriptionTag.tagName.end, descriptionTag.end)));
445
+ let trimmed = text?.replace(/\s+$/, "");
446
+ return trimmed ? { description: trimmed, rawdescription: trimmed } : {};
447
+ }
448
+ function getJsDocTags(ts, node) {
449
+ let tags = ts.getJSDocTags(node);
450
+ if (tags.length === 0)
451
+ return;
452
+ let sourceText = node.getSourceFile().text;
453
+ return tags.map((tag) => {
454
+ let name = tag.tagName.text, comment = rawTagComment(ts, sourceText, tag);
455
+ return { tagName: { text: name, escapedText: name }, ...comment === void 0 ? {} : { comment } };
456
+ });
457
+ }
458
+ function getJsDocTagsField(ts, node) {
459
+ let tags = getJsDocTags(ts, node);
460
+ return tags ? { jsdoctags: tags } : {};
461
+ }
462
+ function hasJsDocTag(ts, node, tagName) {
463
+ return ts.getJSDocTags(node).some((tag) => tag.tagName.text === tagName);
464
+ }
465
+ var memberName = (ts, name) => ts.isComputedPropertyName(name) ? name.getText() : name.text, SIGNAL_INPUT_NAMES = /* @__PURE__ */ new Set(["input", "model"]), SIGNAL_NAMES = /* @__PURE__ */ new Set(["input", "output", "model"]), SIGNAL_TYPE_NAMES = /* @__PURE__ */ new Set([
466
+ "InputSignal",
467
+ "InputSignalWithTransform",
468
+ "ModelSignal",
469
+ "OutputEmitterRef"
470
+ ]), parseSignalCall = (ctx, member) => {
471
+ let { ts } = ctx;
472
+ if (ts.getModifiers(member)?.some((modifier) => modifier.kind === ts.SyntaxKind.StaticKeyword))
473
+ return;
474
+ let initializer = member.initializer;
475
+ if (!initializer || !ts.isCallExpression(initializer))
476
+ return;
477
+ let callee = initializer.expression, base, required = !1;
478
+ if (ts.isIdentifier(callee) && SIGNAL_NAMES.has(callee.text))
479
+ base = callee;
480
+ else if (ts.isPropertyAccessExpression(callee) && callee.name.text === "required" && ts.isIdentifier(callee.expression) && SIGNAL_INPUT_NAMES.has(callee.expression.text))
481
+ base = callee.expression, required = !0;
482
+ else
483
+ return;
484
+ if (isAngularCoreOrUnresolved(ctx, base))
485
+ return { kind: base.text, required, call: initializer };
486
+ }, buildSignalEntry = (ctx, member, signal) => {
487
+ let { ts } = ctx, { call } = signal, hasValueArgument = !signal.required && signal.kind !== "output", valueArgument = hasValueArgument ? call.arguments[0] : void 0, optionsArgument = hasValueArgument ? call.arguments[1] : call.arguments[0], alias = optionsArgument && ts.isObjectLiteralExpression(optionsArgument) ? stringOption(ctx, optionsArgument, "alias") : void 0, writeTypeArgument = signal.kind === "input" && call.typeArguments?.length === 2 ? call.typeArguments[1] : void 0, explicitTypeArgument = writeTypeArgument !== void 0 && writeTypeArgument.kind !== ts.SyntaxKind.UnknownKeyword && writeTypeArgument.kind !== ts.SyntaxKind.AnyKeyword ? writeTypeArgument : call.typeArguments?.[0], type = (explicitTypeArgument ? ctx.types.render(explicitTypeArgument) : void 0) ?? signalValueTypeFromChecker(ctx, member) ?? (valueArgument ? literalTypeName(ctx, valueArgument) : void 0);
488
+ return {
489
+ name: alias ?? memberName(ctx.ts, member.name),
490
+ ...type === void 0 ? {} : { type },
491
+ optional: !1,
492
+ required: signal.required,
493
+ // Downstream tells a `model()` apart from an `@Input('x')`/`@Output('x')` alias collision by
494
+ // the same name appearing in both arrays on the same declaration line.
495
+ line: ts.getLineAndCharacterOfPosition(member.getSourceFile(), member.getStart()).line + 1,
496
+ ...valueArgument ? { initializer: defaultInitializer(ctx, valueArgument) } : {},
497
+ ...getJsDocDescription(ts, member),
498
+ ...getJsDocTagsField(ts, member)
499
+ };
500
+ }, signalValueTypeFromChecker = (ctx, member) => signalValueTypeFromType(ctx, ctx.checker.getTypeAtLocation(member), member), signalValueTypeFromType = (ctx, type, node) => {
501
+ let { checker, ts } = ctx, symbolName = type.aliasSymbol?.name ?? type.getSymbol()?.name;
502
+ if (!symbolName || !SIGNAL_TYPE_NAMES.has(symbolName) || !(type.flags & ts.TypeFlags.Object && type.objectFlags & ts.ObjectFlags.Reference))
503
+ return;
504
+ let typeArguments = checker.getTypeArguments(type), valueType = typeArguments[0];
505
+ if (symbolName === "InputSignalWithTransform") {
506
+ let writeType = typeArguments[1];
507
+ writeType && !(writeType.flags & (ts.TypeFlags.Unknown | ts.TypeFlags.Any)) && (valueType = writeType);
508
+ }
509
+ if (valueType)
510
+ return ctx.types.renderValueType(valueType, node);
511
+ }, literalTypeName = (ctx, expression) => {
512
+ let { ts } = ctx;
513
+ if (ts.isStringLiteralLike(expression))
514
+ return "string";
515
+ if (ts.isNumericLiteral(expression))
516
+ return "number";
517
+ if (expression.kind === ts.SyntaxKind.TrueKeyword || expression.kind === ts.SyntaxKind.FalseKeyword)
518
+ return "boolean";
519
+ }, sameMemberIdentity = (left, right) => left.declName === right.declName && left.isStatic === right.isStatic, owningClassName = (node) => {
520
+ let candidate = node.parent;
521
+ for (; candidate && !("members" in candidate); )
522
+ candidate = candidate.parent;
523
+ return candidate?.name?.text ?? "an anonymous class";
524
+ }, dropped = (node, name, reason) => {
525
+ logger.debug(`[angular-cm] ${owningClassName(node)}.${name} left out of docgen: ${reason}`);
526
+ }, ANGULAR_GENERATED_STATIC = /^(ngAcceptInputType_|ɵ)/;
527
+ function visitClassMembers(ctx, classNode, kind) {
528
+ let { ts } = ctx, members = { inputs: [], outputs: [], properties: [], methods: [] }, visitedAccessors = /* @__PURE__ */ new Set();
529
+ for (let member of classNode.members) {
530
+ if (hasJsDocTag(ts, member, "ignore")) {
531
+ dropped(member, member.name ? memberName(ts, member.name) : "<unnamed>", "tagged @ignore");
532
+ continue;
533
+ }
534
+ if (isStatic(ctx, member)) {
535
+ let staticName = member.name ? memberName(ts, member.name) : "<unnamed>";
536
+ if (kind === "component" || kind === "directive" || ANGULAR_GENERATED_STATIC.test(staticName)) {
537
+ dropped(member, staticName, "a static member");
538
+ continue;
539
+ }
540
+ }
541
+ ts.isConstructorDeclaration(member) ? visitConstructorProperties(ctx, member, members) : ts.isPropertyDeclaration(member) ? visitProperty(ctx, member, members) : ts.isMethodDeclaration(member) ? isPreferredMethodDeclaration(ctx, classNode, member) && members.methods.push(entryFor(ctx, member, visitMethod(ctx, member))) : (ts.isGetAccessor(member) || ts.isSetAccessor(member)) && visitAccessorPair(ctx, classNode, member, members, visitedAccessors);
542
+ }
543
+ return members;
544
+ }
545
+ function applyMetadataInputsOutputs(ctx, classNode, members) {
546
+ for (let decoratorName of ["Component", "Directive"])
547
+ for (let entry of readMetadataInputsOutputs(ctx, classNode, decoratorName)) {
548
+ let index = members.properties.findIndex(
549
+ (property2) => property2.declName === entry.name && !property2.isStatic
550
+ );
551
+ if (index < 0)
552
+ continue;
553
+ let [property] = members.properties.splice(index, 1), renamed = {
554
+ ...property,
555
+ value: { ...property.value, name: entry.alias ?? entry.name }
556
+ };
557
+ entry.bucket === "inputs" ? members.inputs.push({
558
+ ...renamed,
559
+ value: {
560
+ ...renamed.value,
561
+ ...entry.required !== void 0 ? { required: entry.required, optional: !entry.required } : {}
562
+ }
563
+ }) : members.outputs.push(renamed);
564
+ }
565
+ }
566
+ var entryFor = (ctx, member, value, typeSource) => ({
567
+ declName: memberName(ctx.ts, member.name),
568
+ isStatic: isStatic(ctx, member),
569
+ declaration: member,
570
+ ...typeSource ? { typeSource } : {},
571
+ value
572
+ }), visitProperty = (ctx, member, members) => {
573
+ let decorators = getDecorators(ctx, member), inputDecorator = decorators.find((decorator) => decorator.name === "Input");
574
+ if (inputDecorator) {
575
+ let input = buildDecoratorInput(ctx, member, inputDecorator);
576
+ members.inputs.push(entryFor(ctx, member, input.value, input.typeSource));
577
+ return;
578
+ }
579
+ let outputDecorator = decorators.find((decorator) => decorator.name === "Output");
580
+ if (outputDecorator) {
581
+ members.outputs.push(entryFor(ctx, member, buildDecoratorOutput(ctx, member, outputDecorator)));
582
+ return;
583
+ }
584
+ let signal = parseSignalCall(ctx, member);
585
+ if (signal) {
586
+ let entry = entryFor(
587
+ ctx,
588
+ member,
589
+ {
590
+ ...buildSignalEntry(ctx, member, signal),
591
+ ...memberApiFields(ctx, member)
592
+ },
593
+ { kind: "signal", signalKind: signal.kind }
594
+ );
595
+ signal.kind !== "output" && members.inputs.push(entry), signal.kind !== "input" && members.outputs.push(entry);
596
+ return;
597
+ }
598
+ members.properties.push(entryFor(ctx, member, buildPlainProperty(ctx, member, decorators)));
599
+ }, buildDecoratorInput = (ctx, member, decorator) => {
600
+ let config = parseInputDecoratorConfig(ctx, decorator), transform = config.transform ? analyzeInputTransform(ctx, config.transform) : void 0, type = transform?.type ?? typeOfPropertyish(ctx, member);
601
+ return {
602
+ value: {
603
+ name: config.alias ?? memberName(ctx.ts, member.name),
604
+ ...type === void 0 ? {} : { type },
605
+ optional: config.required !== void 0 ? !config.required : !!member.questionToken,
606
+ ...config.required === void 0 ? {} : { required: config.required },
607
+ ...member.initializer ? { initializer: defaultInitializer(ctx, member.initializer) } : {},
608
+ ...memberApiFields(ctx, member),
609
+ ...getJsDocDescription(ctx.ts, member),
610
+ ...getJsDocTagsField(ctx.ts, member)
611
+ },
612
+ ...transform ? { typeSource: transform.source } : {}
613
+ };
614
+ }, buildDecoratorOutput = (ctx, member, decorator) => {
615
+ let type = typeOfPropertyish(ctx, member);
616
+ return {
617
+ name: decoratorStringArg(ctx, decorator) ?? memberName(ctx.ts, member.name),
618
+ ...type === void 0 ? {} : { type },
619
+ ...member.initializer ? { initializer: defaultInitializer(ctx, member.initializer) } : {},
620
+ ...memberApiFields(ctx, member),
621
+ ...getJsDocDescription(ctx.ts, member),
622
+ ...getJsDocTagsField(ctx.ts, member)
623
+ };
624
+ }, buildPlainProperty = (ctx, member, decorators) => {
625
+ let type = typeOfPropertyish(ctx, member), names = decorators.map((decorator) => decorator.name);
626
+ return {
627
+ name: memberName(ctx.ts, member.name),
628
+ ...type === void 0 ? {} : { type },
629
+ optional: !!member.questionToken,
630
+ ...member.initializer ? { initializer: defaultInitializer(ctx, member.initializer) } : {},
631
+ ...memberApiFields(ctx, member),
632
+ ...getJsDocDescription(ctx.ts, member),
633
+ ...getJsDocTagsField(ctx.ts, member),
634
+ ...names.length ? { decorators: names.map((name) => ({ name })) } : {}
635
+ };
636
+ }, accessibilityOf = (ctx, node) => {
637
+ for (let modifier of ctx.ts.getModifiers(node) ?? []) {
638
+ if (modifier.kind === ctx.ts.SyntaxKind.PrivateKeyword)
639
+ return "private";
640
+ if (modifier.kind === ctx.ts.SyntaxKind.ProtectedKeyword)
641
+ return "protected";
642
+ }
643
+ }, memberApiFields = (ctx, ...nodes) => {
644
+ let declared = nodes.filter((node) => node !== void 0), visibility = declared.map((node) => accessibilityOf(ctx, node)).find(Boolean);
645
+ return {
646
+ ...visibility === void 0 ? {} : { visibility },
647
+ ...declared.some((node) => hasJsDocTag(ctx.ts, node, "internal")) ? { internal: !0 } : {}
648
+ };
649
+ }, isStatic = (ctx, node) => (ctx.ts.getModifiers(node) ?? []).some(
650
+ (modifier) => modifier.kind === ctx.ts.SyntaxKind.StaticKeyword
651
+ ), isSameMember = (ctx, a, b) => !!a.name && memberName(ctx.ts, a.name) === memberName(ctx.ts, b.name) && isStatic(ctx, a) === isStatic(ctx, b), isPreferredMethodDeclaration = (ctx, classNode, member) => {
652
+ let { ts } = ctx, declarations = classNode.members.filter(
653
+ (candidate) => ts.isMethodDeclaration(candidate) && isSameMember(ctx, candidate, member)
654
+ );
655
+ return member === (declarations.find((candidate) => candidate.body) ?? declarations[0]);
656
+ }, visitMethod = (ctx, member) => {
657
+ let { ts } = ctx, args = member.parameters.filter((parameter) => !ts.isIdentifier(parameter.name) || parameter.name.text !== "this").map((parameter) => ({
658
+ name: parameter.name.getText(),
659
+ type: (parameter.type ? ctx.types.render(parameter.type) : ctx.types.infer(parameter)) ?? "any",
660
+ optional: !!parameter.questionToken
661
+ })), returnType = (member.type ? ctx.types.render(member.type) : inferReturnType(ctx, member)) ?? "void";
662
+ return {
663
+ name: memberName(ctx.ts, member.name),
664
+ args,
665
+ returnType,
666
+ ...memberApiFields(ctx, member),
667
+ ...getJsDocDescription(ts, member),
668
+ ...getJsDocTagsField(ts, member)
669
+ };
670
+ }, inferReturnType = (ctx, member) => {
671
+ let signature = ctx.checker.getSignatureFromDeclaration(member);
672
+ if (signature)
673
+ return ctx.types.renderCheckerType(signature.getReturnType(), member);
674
+ }, visitConstructorProperties = (ctx, constructor, members) => {
675
+ let { ts } = ctx;
676
+ for (let parameter of constructor.parameters) {
677
+ if (!(ts.getModifiers(parameter) ?? []).some(
678
+ (modifier) => modifier.kind === ts.SyntaxKind.PublicKeyword || modifier.kind === ts.SyntaxKind.PrivateKeyword || modifier.kind === ts.SyntaxKind.ProtectedKeyword || modifier.kind === ts.SyntaxKind.ReadonlyKeyword
679
+ ))
680
+ continue;
681
+ let type = parameter.type ? ctx.types.render(parameter.type) : ctx.types.infer(parameter);
682
+ members.properties.push({
683
+ declName: parameter.name.getText(),
684
+ isStatic: !1,
685
+ declaration: parameter,
686
+ value: {
687
+ name: parameter.name.getText(),
688
+ ...type === void 0 ? {} : { type },
689
+ optional: !!parameter.questionToken,
690
+ ...parameter.initializer ? { initializer: defaultInitializer(ctx, parameter.initializer) } : {},
691
+ ...memberApiFields(ctx, parameter),
692
+ ...getJsDocDescription(ts, parameter),
693
+ ...getJsDocTagsField(ts, parameter)
694
+ }
695
+ });
696
+ }
697
+ }, visitAccessorPair = (ctx, classNode, member, members, visited) => {
698
+ let { ts } = ctx, name = memberName(ctx.ts, member.name);
699
+ if (visited.has(member))
700
+ return;
701
+ let getter = classNode.members.find(
702
+ (candidate) => ts.isGetAccessor(candidate) && isSameMember(ctx, candidate, member)
703
+ ), setter = classNode.members.find(
704
+ (candidate) => ts.isSetAccessor(candidate) && isSameMember(ctx, candidate, member)
705
+ );
706
+ getter && visited.add(getter), setter && visited.add(setter);
707
+ let typeNode = getter?.type ?? setter?.parameters[0]?.type, type = typeNode ? ctx.types.render(typeNode) : ctx.types.infer(getter ?? setter), getterDescription = getter ? getJsDocDescription(ts, getter) : {}, docSource = getterDescription.rawdescription !== void 0 || !setter ? getter : setter, description = docSource === getter ? getterDescription : getJsDocDescription(ts, setter), tags = docSource ? getJsDocTagsField(ts, docSource) : {}, decorators = [
708
+ ...getter ? getDecorators(ctx, getter) : [],
709
+ ...setter ? getDecorators(ctx, setter) : []
710
+ ], apiFields = memberApiFields(ctx, getter, setter), declaration = getter ?? setter, accessorEntry = (value, typeSource) => ({
711
+ declName: name,
712
+ isStatic: isStatic(ctx, declaration),
713
+ declaration,
714
+ ...typeSource ? { typeSource } : {},
715
+ value
716
+ }), inputDecorator = decorators.find((decorator) => decorator.name === "Input");
717
+ if (inputDecorator) {
718
+ let config = parseInputDecoratorConfig(ctx, inputDecorator), transform = config.transform ? analyzeInputTransform(ctx, config.transform) : void 0, inputType = transform?.type ?? type;
719
+ members.inputs.push(
720
+ accessorEntry(
721
+ {
722
+ name: config.alias ?? name,
723
+ ...inputType === void 0 ? {} : { type: inputType },
724
+ optional: config.required !== void 0 ? !config.required : !1,
725
+ ...config.required === void 0 ? {} : { required: config.required },
726
+ ...apiFields,
727
+ ...description,
728
+ ...tags
729
+ },
730
+ transform?.source
731
+ )
732
+ );
733
+ return;
734
+ }
735
+ let outputDecorator = decorators.find((decorator) => decorator.name === "Output");
736
+ if (outputDecorator) {
737
+ members.outputs.push(
738
+ accessorEntry({
739
+ name: decoratorStringArg(ctx, outputDecorator) ?? name,
740
+ ...type === void 0 ? {} : { type },
741
+ ...apiFields,
742
+ ...description,
743
+ ...tags
744
+ })
745
+ );
746
+ return;
747
+ }
748
+ members.properties.push(
749
+ accessorEntry({
750
+ name,
751
+ ...type === void 0 ? {} : { type },
752
+ optional: !1,
753
+ ...apiFields,
754
+ ...description,
755
+ ...tags,
756
+ // The props table routes the view-child and content-child sections off this field, so an
757
+ // accessor-declared query must carry it exactly as a property-declared one does.
758
+ ...decorators.length ? { decorators: decorators.map((decorator) => ({ name: decorator.name })) } : {}
759
+ })
760
+ );
761
+ }, typeOfPropertyish = (ctx, member) => member.type ? ctx.types.render(member.type) : member.initializer && ctx.ts.isNewExpression(member.initializer) ? member.initializer.expression.getText() : ctx.types.infer(member);
762
+ function resolveClassMembers(ctx, classNode, kind) {
763
+ return resolveWithBases(ctx, classNode, kind, /* @__PURE__ */ new Set([classNode]), /* @__PURE__ */ new Map());
764
+ }
765
+ function resolveWithBases(ctx, classNode, kind, visited, substitutions, instantiatedType) {
766
+ let members = visitClassMembers(ctx, classNode, kind);
767
+ return walkBases(ctx, classNode, members, kind, visited, substitutions), applyMetadataInputsOutputs(ctx, classNode, members), instantiatedType && instantiateMembers(ctx, instantiatedType, classNode, members, substitutions), members;
768
+ }
769
+ function walkBases(ctx, classNode, members, kind, visited, substitutions) {
770
+ if (!classNode.name)
771
+ return;
772
+ let symbol = ctx.checker.getSymbolAtLocation(classNode.name), type = symbol && ctx.checker.getDeclaredTypeOfSymbol(symbol);
773
+ if (type?.isClassOrInterface())
774
+ for (let baseType of ctx.checker.getBaseTypes(type)) {
775
+ let declaration = baseType.getSymbol()?.declarations?.find(
776
+ (candidate) => ctx.ts.isClassDeclaration(candidate)
777
+ );
778
+ if (!declaration || visited.has(declaration))
779
+ continue;
780
+ visited.add(declaration);
781
+ let inheritedSubstitutions = new Map(substitutions);
782
+ for (let [parameter, argument] of typeParameterSubstitutions(ctx, classNode, declaration))
783
+ inheritedSubstitutions.set(parameter, argument);
784
+ let baseMembers = resolveWithBases(
785
+ ctx,
786
+ declaration,
787
+ kind,
788
+ visited,
789
+ inheritedSubstitutions,
790
+ baseType
791
+ );
792
+ declaration.getSourceFile().isDeclarationFile || (mergeBucket(ctx, members, baseMembers, "inputs"), mergeBucket(ctx, members, baseMembers, "outputs")), mergeInto(members.properties, baseMembers.properties, members), mergeInto(members.methods, baseMembers.methods, members);
793
+ }
794
+ }
795
+ var extendsClauseFor = (ctx, classNode, declaration) => {
796
+ let { ts } = ctx, expression = classNode.heritageClauses?.find(
797
+ (candidate) => candidate.token === ts.SyntaxKind.ExtendsKeyword
798
+ )?.types[0], target = expression?.expression;
799
+ return !target || !ts.isIdentifier(target) && !ts.isPropertyAccessExpression(target) ? void 0 : resolvedSymbol(ctx, target)?.declarations?.includes(declaration) ? expression : void 0;
800
+ }, typeParameterSubstitutions = (ctx, classNode, declaration) => {
801
+ let substitutions = /* @__PURE__ */ new Map(), parameters = declaration.typeParameters ?? [];
802
+ if (parameters.length === 0)
803
+ return substitutions;
804
+ let clause = extendsClauseFor(ctx, classNode, declaration);
805
+ if (!clause)
806
+ return substitutions;
807
+ let args = clause.typeArguments ?? [];
808
+ for (let [index, parameter] of parameters.entries()) {
809
+ let argument = args[index] ?? parameter.default, symbol = ctx.checker.getSymbolAtLocation(parameter.name);
810
+ !argument || !symbol || substitutions.set(symbol, argument);
811
+ }
812
+ return substitutions;
813
+ }, declaredIn = (ctx, entry, classNode) => {
814
+ let node = entry.declaration;
815
+ for (; node && !ctx.ts.isClassLike(node); )
816
+ node = node.parent;
817
+ return node === classNode;
818
+ }, instantiateMembers = (ctx, instantiatedType, classNode, members, substitutions) => {
819
+ if (substitutions.size === 0)
820
+ return;
821
+ let properties = /* @__PURE__ */ new Set([...members.inputs, ...members.outputs, ...members.properties]);
822
+ for (let entry of properties)
823
+ instantiateProperty(ctx, instantiatedType, classNode, entry, substitutions);
824
+ for (let entry of members.methods)
825
+ instantiateMethod(ctx, instantiatedType, classNode, entry, substitutions);
826
+ }, instantiateProperty = (ctx, instantiatedType, classNode, entry, substitutions) => {
827
+ if (entry.isStatic)
828
+ return;
829
+ if (entry.typeSource?.kind === "transform") {
830
+ let checkerTypeSymbol = entry.typeSource.checkerType.getSymbol(), checkerReplacement = entry.typeSource.checkerType.flags & ctx.ts.TypeFlags.TypeParameter && checkerTypeSymbol ? substitutions.get(checkerTypeSymbol) : void 0;
831
+ if (checkerReplacement) {
832
+ entry.value.type = ctx.types.renderInstantiated(checkerReplacement, substitutions);
833
+ return;
834
+ }
835
+ if (entry.typeSource.node && declaredIn(ctx, entry, classNode)) {
836
+ let transformSubstitutions = new Map(entry.typeSource.substitutions);
837
+ for (let [symbol, replacement] of substitutions)
838
+ transformSubstitutions.set(symbol, replacement);
839
+ entry.value.type = ctx.types.renderInstantiated(
840
+ entry.typeSource.node,
841
+ transformSubstitutions
842
+ );
843
+ }
844
+ return;
845
+ }
846
+ if (ctx.ts.isPropertyDeclaration(entry.declaration) && !entry.declaration.type && entry.declaration.initializer && ctx.ts.isNewExpression(entry.declaration.initializer))
847
+ return;
848
+ if (entry.typeSource?.kind !== "signal") {
849
+ let typeNode = declaredPropertyTypeNode(ctx, entry.declaration);
850
+ if (typeNode) {
851
+ declaredIn(ctx, entry, classNode) && (entry.value.type = ctx.types.renderInstantiated(typeNode, substitutions));
852
+ return;
853
+ }
854
+ }
855
+ let type = propertyType(ctx, instantiatedType, entry);
856
+ if (!type)
857
+ return;
858
+ let rendered = entry.typeSource ? signalValueTypeFromType(ctx, type, entry.declaration) : ctx.types.renderCheckerType(type, entry.declaration);
859
+ rendered !== void 0 && (entry.value.type = rendered);
860
+ }, propertyType = (ctx, instantiatedType, entry) => {
861
+ let declarationSymbol = entry.declaration.name ? ctx.checker.getSymbolAtLocation(entry.declaration.name) : void 0, symbol = instantiatedType.getProperties().find(
862
+ (candidate) => candidate === declarationSymbol || candidate.declarations?.includes(entry.declaration)
863
+ ) ?? ctx.checker.getPropertyOfType(instantiatedType, entry.declName);
864
+ return symbol && ctx.checker.getTypeOfSymbolAtLocation(symbol, entry.declaration);
865
+ }, declaredPropertyTypeNode = (ctx, declaration) => {
866
+ if (ctx.ts.isPropertyDeclaration(declaration) || ctx.ts.isParameter(declaration) || ctx.ts.isGetAccessorDeclaration(declaration))
867
+ return declaration.type;
868
+ if (ctx.ts.isSetAccessorDeclaration(declaration))
869
+ return declaration.parameters[0]?.type;
870
+ }, instantiateMethod = (ctx, instantiatedType, classNode, entry, substitutions) => {
871
+ if (entry.isStatic)
872
+ return;
873
+ let signatures = propertyType(ctx, instantiatedType, entry)?.getCallSignatures() ?? [], signature = signatures.length === 1 ? signatures[0] : void 0, declaredHere = declaredIn(ctx, entry, classNode);
874
+ if (ctx.ts.isMethodDeclaration(entry.declaration)) {
875
+ let parameters = entry.declaration.parameters.filter(
876
+ (parameter) => !ctx.ts.isIdentifier(parameter.name) || parameter.name.text !== "this"
877
+ );
878
+ for (let [index, argument] of entry.value.args.entries()) {
879
+ let declaredType = parameters[index]?.type;
880
+ if (declaredType)
881
+ declaredHere && (argument.type = ctx.types.renderInstantiated(declaredType, substitutions));
882
+ else {
883
+ let parameter = signature?.getParameters()[index];
884
+ if (!parameter)
885
+ continue;
886
+ argument.type = ctx.types.renderCheckerType(
887
+ ctx.checker.getTypeOfSymbolAtLocation(parameter, entry.declaration),
888
+ entry.declaration
889
+ );
890
+ }
891
+ }
892
+ entry.declaration.type ? declaredHere && (entry.value.returnType = ctx.types.renderInstantiated(
893
+ entry.declaration.type,
894
+ substitutions
895
+ )) : signature && (entry.value.returnType = ctx.types.renderCheckerType(
896
+ signature.getReturnType(),
897
+ entry.declaration
898
+ ));
899
+ }
900
+ };
901
+ function mergeBucket(ctx, members, baseMembers, bucket) {
902
+ for (let inherited of baseMembers[bucket]) {
903
+ if ([members[bucket], members.methods].some(
904
+ (entries) => entries.some((entry) => sameMemberIdentity(entry, inherited))
905
+ ))
906
+ continue;
907
+ let index = members.properties.findIndex((entry) => sameMemberIdentity(entry, inherited));
908
+ if (index < 0) {
909
+ members[bucket].push(inherited);
910
+ continue;
911
+ }
912
+ let [own] = members.properties.splice(index, 1), inheritedModel = inherited.typeSource?.kind === "signal" && inherited.typeSource.signalKind === "model", typeOnlyRedeclaration = (ctx.ts.getModifiers(own.declaration) ?? []).some((modifier) => modifier.kind === ctx.ts.SyntaxKind.DeclareKeyword);
913
+ members[bucket].push(promote(own, inherited, inheritedModel && typeOnlyRedeclaration));
914
+ }
915
+ }
916
+ var promote = (own, inherited, preserveInheritedSignal) => preserveInheritedSignal ? {
917
+ ...own,
918
+ ...inherited.typeSource ? { typeSource: inherited.typeSource } : {},
919
+ value: {
920
+ ...inherited.value,
921
+ ...own.value.decorators ? { decorators: own.value.decorators } : {},
922
+ ...own.value.visibility ? { visibility: own.value.visibility } : {},
923
+ ...own.value.internal ? { internal: own.value.internal } : {},
924
+ ...own.value.description ? { description: own.value.description } : {},
925
+ ...own.value.rawdescription ? { rawdescription: own.value.rawdescription } : {},
926
+ ...own.value.jsdoctags ? { jsdoctags: own.value.jsdoctags } : {}
927
+ }
928
+ } : {
929
+ ...own,
930
+ value: {
931
+ ...own.value,
932
+ name: inherited.value.name,
933
+ ...inherited.value.line === void 0 ? {} : { line: inherited.value.line }
934
+ }
935
+ }, claimedElsewhere = (members, inherited) => [members.inputs, members.outputs, members.properties, members.methods].some(
936
+ (bucket) => bucket.some((entry) => sameMemberIdentity(entry, inherited))
937
+ );
938
+ function mergeInto(target, source, members) {
939
+ for (let inherited of source)
940
+ claimedElsewhere(members, inherited) || target.push(inherited);
941
+ }
942
+ function collectClassMembers(ctx, classNode, kind) {
943
+ let members = resolveClassMembers(ctx, classNode, kind);
944
+ return sortMembers(members), emitMembers(members);
945
+ }
946
+ function sortMembers(members) {
947
+ let byName = (a, b) => a.value.name.localeCompare(b.value.name);
948
+ members.inputs.sort(byName), members.outputs.sort(byName), members.properties.sort(byName), members.methods.sort(byName);
949
+ }
950
+ function emitMembers(members) {
951
+ let values = (entries) => entries.map((entry) => entry.value);
952
+ return {
953
+ inputs: values(members.inputs),
954
+ outputs: values(members.outputs),
955
+ properties: values(members.properties),
956
+ methods: values(members.methods)
957
+ };
958
+ }
959
+ var stripImportQualifiers = (text) => text.replace(/import\("[^"]*"\)\./g, ""), collapseWhitespace = (text) => text.replace(/\s+/g, " ").trim(), TypeIndex = class {
960
+ constructor(ts, checker) {
961
+ this.ts = ts, this.checker = checker, this.typealiases = /* @__PURE__ */ new Map(), this.enumerations = /* @__PURE__ */ new Map(), this.aliasCycleGuard = /* @__PURE__ */ new Set();
962
+ }
963
+ /**
964
+ * Render a type node to the spelling the props table shows.
965
+ *
966
+ * Syntactic on purpose, to match the spellings the argTypes extractor depends on: string
967
+ * literals double-quoted, unions joined with ` | `.
968
+ */
969
+ render(typeNode) {
970
+ let { ts } = this;
971
+ if (ts.isLiteralTypeNode(typeNode)) {
972
+ let { literal } = typeNode;
973
+ return ts.isStringLiteral(literal) || ts.isNoSubstitutionTemplateLiteral(literal) ? JSON.stringify(literal.text) : literal.getText();
974
+ }
975
+ if (ts.isUnionTypeNode(typeNode))
976
+ return typeNode.types.map((type) => this.render(type)).join(" | ");
977
+ if (ts.isIntersectionTypeNode(typeNode))
978
+ return typeNode.types.map((type) => this.render(type)).join(" & ");
979
+ if (ts.isArrayTypeNode(typeNode))
980
+ return `${this.render(typeNode.elementType)}[]`;
981
+ if (ts.isTupleTypeNode(typeNode))
982
+ return `[${typeNode.elements.map((element) => this.render(element)).join(", ")}]`;
983
+ if (ts.isParenthesizedTypeNode(typeNode))
984
+ return `(${this.render(typeNode.type)})`;
985
+ if (ts.isFunctionTypeNode(typeNode) || ts.isConstructorTypeNode(typeNode)) {
986
+ let typeParameters = typeNode.typeParameters?.length ? `<${typeNode.typeParameters.map((parameter) => parameter.getText()).join(", ")}>` : "", parameters = typeNode.parameters.map((parameter) => {
987
+ let name = parameter.name.getText(), rest = parameter.dotDotDotToken ? "..." : "", optional = parameter.questionToken ? "?" : "", type = parameter.type ? this.render(parameter.type) : "any";
988
+ return `${rest}${name}${optional}: ${type}`;
989
+ }).join(", ");
990
+ return `${ts.isConstructorTypeNode(typeNode) ? "new " : ""}${typeParameters}(${parameters}) => ${this.render(typeNode.type)}`;
991
+ }
992
+ if (ts.isTypeOperatorNode(typeNode))
993
+ return `${typeNode.operator === ts.SyntaxKind.KeyOfKeyword ? "keyof" : typeNode.operator === ts.SyntaxKind.ReadonlyKeyword ? "readonly" : "unique"} ${this.render(typeNode.type)}`;
994
+ if (ts.isIndexedAccessTypeNode(typeNode))
995
+ return `${this.render(typeNode.objectType)}[${this.render(typeNode.indexType)}]`;
996
+ if (ts.isTypeReferenceNode(typeNode)) {
997
+ let name = typeNode.typeName.getText(), symbol = this.checker.getSymbolAtLocation(typeNode.typeName);
998
+ symbol && this.addFromSymbol(symbol, name);
999
+ let args = typeNode.typeArguments?.length ? `<${typeNode.typeArguments.map((arg) => this.render(arg)).join(", ")}>` : "";
1000
+ return `${name}${args}`;
1001
+ }
1002
+ return collapseWhitespace(typeNode.getText());
1003
+ }
1004
+ /** Render a checker type without losing aliases or truncating its spelling. */
1005
+ renderCheckerType(type, node) {
1006
+ return this.addFromType(type), stripImportQualifiers(
1007
+ this.checker.typeToString(type, node, this.ts.TypeFormatFlags.NoTruncation)
1008
+ );
1009
+ }
1010
+ /** Preserve a union, but widen a lone literal before rendering a value-facing type. */
1011
+ renderValueType(type, node) {
1012
+ let widened = type.isUnion() ? type : this.checker.getBaseTypeOfLiteralType(type);
1013
+ return this.renderCheckerType(widened, node);
1014
+ }
1015
+ /**
1016
+ * Render a type node after substituting class type parameters by symbol identity.
1017
+ *
1018
+ * A source-level transform type is not represented by the class property's checker type, so
1019
+ * inherited decorator transforms take this path instead. Symbol identity leaves method-local
1020
+ * binders with the same spelling untouched.
1021
+ */
1022
+ renderInstantiated(typeNode, substitutions) {
1023
+ if (substitutions.size === 0)
1024
+ return this.render(typeNode);
1025
+ this.addFromTypeNode(typeNode);
1026
+ for (let replacement of substitutions.values())
1027
+ this.addFromTypeNode(replacement);
1028
+ let resolving = /* @__PURE__ */ new Set(), transformed = this.ts.transform(typeNode, [
1029
+ (context) => {
1030
+ let visit = (node) => {
1031
+ if (this.ts.isTypeReferenceNode(node) && this.ts.isIdentifier(node.typeName)) {
1032
+ let symbol = this.checker.getSymbolAtLocation(node.typeName), replacement = symbol && substitutions.get(symbol);
1033
+ if (symbol && replacement && !resolving.has(symbol)) {
1034
+ resolving.add(symbol);
1035
+ let resolved = this.ts.visitNode(replacement, visit);
1036
+ return resolving.delete(symbol), resolved;
1037
+ }
1038
+ }
1039
+ return this.ts.isLiteralTypeNode(node) && (this.ts.isStringLiteral(node.literal) || this.ts.isNoSubstitutionTemplateLiteral(node.literal)) ? this.ts.factory.createLiteralTypeNode(
1040
+ this.ts.factory.createStringLiteral(node.literal.text)
1041
+ ) : this.ts.visitEachChild(node, visit, context);
1042
+ };
1043
+ return (root) => this.ts.visitNode(root, visit);
1044
+ }
1045
+ ]);
1046
+ try {
1047
+ return collapseWhitespace(
1048
+ this.ts.createPrinter({ removeComments: !0 }).printNode(
1049
+ this.ts.EmitHint.Unspecified,
1050
+ transformed.transformed[0],
1051
+ typeNode.getSourceFile()
1052
+ )
1053
+ );
1054
+ } finally {
1055
+ transformed.dispose();
1056
+ }
1057
+ }
1058
+ /** Widen and render a declaration's inferred type, as the legacy pipeline did (`'v1'` to `string`). */
1059
+ infer(node) {
1060
+ let { checker } = this;
1061
+ if (!node.name)
1062
+ return;
1063
+ let symbol = checker.getSymbolAtLocation(node.name);
1064
+ if (!symbol)
1065
+ return;
1066
+ let type = checker.getBaseTypeOfLiteralType(checker.getTypeOfSymbolAtLocation(symbol, node));
1067
+ return this.renderCheckerType(type, node);
1068
+ }
1069
+ // Checker-derived types have no TypeNode to walk, so the type's own symbol and each union
1070
+ // constituent's are fed in directly.
1071
+ addFromType(type) {
1072
+ let feed = (candidate) => {
1073
+ let symbol = candidate.aliasSymbol ?? candidate.getSymbol();
1074
+ symbol && this.addFromSymbol(symbol);
1075
+ };
1076
+ if (feed(type), type.isUnion())
1077
+ for (let constituent of type.types)
1078
+ feed(constituent);
1079
+ }
1080
+ addFromTypeNode(typeNode) {
1081
+ let visit = (node) => {
1082
+ if (this.ts.isTypeReferenceNode(node)) {
1083
+ let symbol = this.checker.getSymbolAtLocation(node.typeName);
1084
+ symbol && this.addFromSymbol(symbol, node.typeName.getText());
1085
+ }
1086
+ this.ts.forEachChild(node, visit);
1087
+ };
1088
+ visit(typeNode);
1089
+ }
1090
+ addDeclaration(declaration, referencedAs) {
1091
+ declaration.getSourceFile().isDeclarationFile || (this.ts.isEnumDeclaration(declaration) ? this.addEnum(declaration, referencedAs ?? declaration.name.text) : this.ts.isTypeAliasDeclaration(declaration) && this.addTypeAlias(declaration, referencedAs ?? declaration.name.text));
1092
+ }
1093
+ toMiscellaneous() {
1094
+ let byName = (a, b) => a.name.localeCompare(b.name);
1095
+ return {
1096
+ typealiases: [...this.typealiases.values()].sort(byName),
1097
+ enumerations: [...this.enumerations.values()].sort(byName)
1098
+ };
1099
+ }
1100
+ /**
1101
+ * `referencedAs` is the spelling {@link render} produced, which an import rename makes differ from
1102
+ * the declaration's own name.
1103
+ */
1104
+ addFromSymbol(symbol, referencedAs) {
1105
+ let target = symbol.flags & this.ts.SymbolFlags.Alias ? this.checker.getAliasedSymbol(symbol) : symbol;
1106
+ for (let declaration of target.declarations ?? [])
1107
+ this.addDeclaration(declaration, referencedAs);
1108
+ }
1109
+ addEnum(declaration, name) {
1110
+ if (this.enumerations.has(name))
1111
+ return;
1112
+ let childs = declaration.members.map((member) => {
1113
+ let value = this.enumMemberValue(member.initializer);
1114
+ return {
1115
+ name: memberName(this.ts, member.name),
1116
+ ...value === void 0 ? {} : { value }
1117
+ };
1118
+ });
1119
+ this.enumerations.set(name, {
1120
+ name,
1121
+ childs,
1122
+ ctype: "miscellaneous",
1123
+ subtype: "enum",
1124
+ file: declaration.getSourceFile().fileName
1125
+ });
587
1126
  }
588
- return resolveMetaComponent(csf, storyFilePath);
1127
+ addTypeAlias(declaration, name) {
1128
+ if (this.typealiases.has(name) || this.aliasCycleGuard.has(name))
1129
+ return;
1130
+ this.aliasCycleGuard.add(name);
1131
+ let rendered = this.render(declaration.type), rawtype = this.enumResolvableAsWritten(declaration.type) ? rendered : this.literalUnionFromChecker(declaration.type) ?? rendered;
1132
+ this.aliasCycleGuard.delete(name), this.typealiases.set(name, {
1133
+ name,
1134
+ ctype: "miscellaneous",
1135
+ subtype: "typealias",
1136
+ rawtype,
1137
+ file: declaration.getSourceFile().fileName,
1138
+ kind: declaration.type.kind
1139
+ });
1140
+ }
1141
+ // What the extractor's enum path can resolve without help: it splits `rawtype` on `|` and
1142
+ // JSON-parses each member, recursing only into a whole-string alias name.
1143
+ enumResolvableAsWritten(typeNode) {
1144
+ let { ts } = this;
1145
+ return ts.isLiteralTypeNode(typeNode) ? !0 : ts.isTypeReferenceNode(typeNode) ? !typeNode.typeArguments?.length : ts.isUnionTypeNode(typeNode) ? typeNode.types.every(
1146
+ (member) => ts.isLiteralTypeNode(member) || member.kind === ts.SyntaxKind.UndefinedKeyword
1147
+ ) : !1;
1148
+ }
1149
+ literalUnionFromChecker(typeNode) {
1150
+ let { checker, ts } = this, type = checker.getTypeAtLocation(typeNode);
1151
+ if (!type.isUnion())
1152
+ return;
1153
+ let literal = ts.TypeFlags.StringLiteral | ts.TypeFlags.NumberLiteral | ts.TypeFlags.BooleanLiteral | ts.TypeFlags.Undefined | ts.TypeFlags.Null;
1154
+ if (type.types.every(
1155
+ (member) => member.flags & literal && !(member.flags & ts.TypeFlags.EnumLiteral)
1156
+ ))
1157
+ return checker.typeToString(
1158
+ type,
1159
+ typeNode,
1160
+ ts.TypeFormatFlags.NoTruncation | ts.TypeFormatFlags.InTypeAlias
1161
+ );
1162
+ }
1163
+ // Numeric initializers stay numbers, so a `0` member is falsy and correctly disables the
1164
+ // extractor's enum path.
1165
+ enumMemberValue(initializer) {
1166
+ let { ts } = this;
1167
+ if (initializer) {
1168
+ if (ts.isStringLiteral(initializer) || ts.isNoSubstitutionTemplateLiteral(initializer))
1169
+ return initializer.text;
1170
+ if (ts.isNumericLiteral(initializer))
1171
+ return Number(initializer.text);
1172
+ }
1173
+ }
1174
+ };
1175
+ function analyzeSourceFile(ts, sourceFile, checker) {
1176
+ let types = new TypeIndex(ts, checker), ctx = { ts, checker, types }, meta = {
1177
+ components: [],
1178
+ directives: [],
1179
+ pipes: [],
1180
+ injectables: [],
1181
+ classes: [],
1182
+ miscellaneous: { typealiases: [], enumerations: [] }
1183
+ };
1184
+ for (let statement of sourceFile.statements) {
1185
+ if (ts.isEnumDeclaration(statement) || ts.isTypeAliasDeclaration(statement)) {
1186
+ types.addDeclaration(statement);
1187
+ continue;
1188
+ }
1189
+ if (!ts.isClassDeclaration(statement) || !statement.name)
1190
+ continue;
1191
+ if (hasJsDocTag(ts, statement, "ignore")) {
1192
+ logger2.debug(`[angular-cm] ${statement.name.text} left out of docgen: tagged @ignore`);
1193
+ continue;
1194
+ }
1195
+ let kind = classify(ctx, statement);
1196
+ if (kind === "ngmodule") {
1197
+ logger2.debug(`[angular-cm] ${statement.name.text} left out of docgen: an @NgModule`);
1198
+ continue;
1199
+ }
1200
+ let name = statement.name.text, file = sourceFile.fileName, members = collectClassMembers(ctx, statement, kind), common = {
1201
+ file,
1202
+ ...getJsDocDescription(ts, statement),
1203
+ ...getJsDocTagsField(ts, statement)
1204
+ };
1205
+ if (kind === "component" || kind === "directive") {
1206
+ let metadata = decoratorObjectArg(
1207
+ ctx,
1208
+ statement,
1209
+ kind === "component" ? "Component" : "Directive"
1210
+ ), selector = metadata && decoratorSelector(ctx, metadata), standalone = metadata && decoratorStandalone(ctx, metadata), record = {
1211
+ name,
1212
+ type: kind,
1213
+ ...selector === void 0 ? {} : { selector },
1214
+ ...standalone === void 0 ? {} : { standalone },
1215
+ inputsClass: members.inputs,
1216
+ outputsClass: members.outputs,
1217
+ propertiesClass: members.properties,
1218
+ methodsClass: members.methods,
1219
+ ...common
1220
+ };
1221
+ (kind === "component" ? meta.components : meta.directives).push(record);
1222
+ } else if (kind === "pipe") {
1223
+ let record = {
1224
+ name,
1225
+ ngname: pipeName(ctx, statement) ?? name,
1226
+ type: "pipe",
1227
+ properties: members.properties,
1228
+ methods: members.methods,
1229
+ ...common
1230
+ };
1231
+ meta.pipes.push(record);
1232
+ } else if (kind === "injectable") {
1233
+ let record = {
1234
+ name,
1235
+ type: "injectable",
1236
+ properties: members.properties,
1237
+ methods: members.methods,
1238
+ ...common
1239
+ };
1240
+ meta.injectables.push(record);
1241
+ } else {
1242
+ let record = {
1243
+ name,
1244
+ type: "class",
1245
+ properties: members.properties,
1246
+ methods: members.methods,
1247
+ ...members.inputs.length ? { inputsClass: members.inputs } : {},
1248
+ ...members.outputs.length ? { outputsClass: members.outputs } : {},
1249
+ ...common
1250
+ };
1251
+ meta.classes.push(record);
1252
+ }
1253
+ }
1254
+ return meta.miscellaneous = types.toMiscellaneous(), meta;
589
1255
  }
1256
+ var KNOWN_DECORATORS = {
1257
+ Component: "component",
1258
+ Directive: "directive",
1259
+ Pipe: "pipe",
1260
+ Injectable: "injectable",
1261
+ NgModule: "ngmodule"
1262
+ }, classify = (ctx, node) => {
1263
+ for (let decorator of getDecorators(ctx, node)) {
1264
+ let kind = KNOWN_DECORATORS[decorator.name];
1265
+ if (kind)
1266
+ return kind;
1267
+ }
1268
+ return "class";
1269
+ }, decoratorSelector = (ctx, metadata) => {
1270
+ let selector = objectProperty(ctx, metadata, "selector"), value = selector && resolveInitializer(ctx, selector);
1271
+ return value && ctx.ts.isStringLiteralLike(value) ? value.text : void 0;
1272
+ }, decoratorStandalone = (ctx, metadata) => {
1273
+ let standalone = objectProperty(ctx, metadata, "standalone"), value = standalone && resolveInitializer(ctx, standalone);
1274
+ if (value?.kind === ctx.ts.SyntaxKind.TrueKeyword)
1275
+ return !0;
1276
+ if (value?.kind === ctx.ts.SyntaxKind.FalseKeyword)
1277
+ return !1;
1278
+ }, resolveInitializer = (ctx, expression) => {
1279
+ let { ts } = ctx;
1280
+ if (!ts.isIdentifier(expression))
1281
+ return expression;
1282
+ let declaration = resolvedSymbol(ctx, expression)?.valueDeclaration;
1283
+ return declaration && ts.isVariableDeclaration(declaration) ? declaration.initializer : void 0;
1284
+ }, pipeName = (ctx, node) => {
1285
+ let metadata = decoratorObjectArg(ctx, node, "Pipe");
1286
+ return metadata && stringOption(ctx, metadata, "name");
1287
+ }, AngularComponentMetaProject = class extends ProgramBackedProject {
1288
+ constructor(typescript, commandLine, configFileName, fsFileSnapshots = /* @__PURE__ */ new Map(), getCommandLineFn, documentRegistry) {
1289
+ super(), this.typescript = typescript, this.commandLine = commandLine, this.configFileName = configFileName, this.documentRegistry = documentRegistry, this.files = new ProjectFileTracker(
1290
+ typescript,
1291
+ commandLine,
1292
+ fsFileSnapshots,
1293
+ (text) => typescript.ScriptSnapshot.fromString(text),
1294
+ getCommandLineFn
1295
+ );
1296
+ let { sys } = typescript, host = {
1297
+ getCompilationSettings: () => this.commandLine.options,
1298
+ // TS only re-reads script names, versions and snapshots when this string moves.
1299
+ getProjectVersion: () => this.files.getProjectVersion(),
1300
+ getScriptFileNames: () => this.files.getScriptFileNames(),
1301
+ getScriptVersion: (fileName) => this.files.getScriptVersion(fileName),
1302
+ getScriptSnapshot: (fileName) => this.files.getSnapshot(fileName),
1303
+ getCurrentDirectory: () => configFileName ? path.dirname(configFileName) : this.commandLine.options.rootDir ?? process.cwd(),
1304
+ getDefaultLibFileName: (options) => typescript.getDefaultLibFilePath(options),
1305
+ useCaseSensitiveFileNames: () => sys.useCaseSensitiveFileNames,
1306
+ fileExists: (fileName) => sys.fileExists(fileName),
1307
+ readFile: (fileName, encoding) => sys.readFile(fileName, encoding),
1308
+ // Without realpath TS cannot dedupe symlinked packages, splitting type identities.
1309
+ realpath: sys.realpath?.bind(sys),
1310
+ directoryExists: (directoryName) => sys.directoryExists(directoryName),
1311
+ getDirectories: (directoryName) => sys.getDirectories(directoryName),
1312
+ readDirectory: (dirName, extensions, exclude, include, depth) => sys.readDirectory(dirName, extensions, exclude, include, depth)
1313
+ };
1314
+ this.service = typescript.createLanguageService(host, this.documentRegistry);
1315
+ }
1316
+ getCommandLine() {
1317
+ return this.commandLine;
1318
+ }
1319
+ extract(componentPath, names) {
1320
+ let fileName = slash(componentPath);
1321
+ this.files.ensureFresh([fileName]);
1322
+ let program = this.service.getProgram(), sourceFile = program?.getSourceFile(fileName);
1323
+ if (sourceFile || (this.ensureFiles([fileName]), program = this.service.getProgram(), sourceFile = program?.getSourceFile(fileName)), !program || !sourceFile) {
1324
+ this.debug(`${fileName} is in no TypeScript program, so nothing was extracted from it`);
1325
+ return;
1326
+ }
1327
+ if (this.files.ensureFresh(importClosure(this.typescript, program, sourceFile)) && (program = this.service.getProgram(), sourceFile = program?.getSourceFile(fileName), !program || !sourceFile)) {
1328
+ this.debug(`${fileName} left the program while being refreshed`);
1329
+ return;
1330
+ }
1331
+ let checker = program.getTypeChecker(), fileMeta = analyzeSourceFile(this.typescript, sourceFile, checker), entry = this.pickEntry(fileMeta, sourceFile, names);
1332
+ if (entry)
1333
+ return this.debug(`${describe(entry)} from ${fileName}`), { entry, json: fileMeta };
1334
+ let viaExports = this.extractViaModuleExports(checker, sourceFile, fileMeta, names);
1335
+ if (viaExports)
1336
+ return this.debug(`${describe(viaExports.entry)} from ${fileName}, reached through its exports`), viaExports;
1337
+ this.debug(
1338
+ `no class named ${[names.exportName, names.localName].filter(Boolean).join(" or ")} in ${fileName}; it declares ${declaredNames(fileMeta).join(", ") || "no classes"}`
1339
+ );
1340
+ }
1341
+ debug(message) {
1342
+ logger3.debug(
1343
+ `[angular-cm] ${message}${this.configFileName ? ` (${this.configFileName})` : ""}`
1344
+ );
1345
+ }
1346
+ pickEntry(fileMeta, sourceFile, { exportName, localName }) {
1347
+ let direct = findRecord(fileMeta, exportName);
1348
+ if (direct)
1349
+ return direct;
1350
+ if (exportName === "default") {
1351
+ let viaDefault = findRecord(
1352
+ fileMeta,
1353
+ findDefaultExportedClassName(this.typescript, sourceFile)
1354
+ );
1355
+ if (viaDefault)
1356
+ return viaDefault;
1357
+ }
1358
+ return findRecord(fileMeta, localName);
1359
+ }
1360
+ extractViaModuleExports(checker, sourceFile, fileMeta, { exportName, localName }) {
1361
+ let { SymbolFlags, isClassDeclaration } = this.typescript, moduleSymbol = checker.getSymbolAtLocation(sourceFile);
1362
+ if (!moduleSymbol)
1363
+ return;
1364
+ let moduleExports = checker.getExportsOfModule(moduleSymbol);
1365
+ for (let name of [exportName, localName]) {
1366
+ let exported = name && moduleExports.find((symbol) => symbol.name === name);
1367
+ if (!exported)
1368
+ continue;
1369
+ let declaration = (exported.flags & SymbolFlags.Alias ? checker.getAliasedSymbol(exported) : exported).declarations?.find(
1370
+ (candidate) => isClassDeclaration(candidate)
1371
+ );
1372
+ if (!declaration?.name || declaration.getSourceFile().isDeclarationFile)
1373
+ continue;
1374
+ let declarationFile = declaration.getSourceFile(), targetMeta = declarationFile === sourceFile ? fileMeta : analyzeSourceFile(this.typescript, declarationFile, checker), entry = findRecord(targetMeta, declaration.name.text);
1375
+ if (entry)
1376
+ return { entry, json: targetMeta };
1377
+ }
1378
+ }
1379
+ }, importClosure = (typescript, program, entry) => {
1380
+ let checker = program.getTypeChecker(), closure = /* @__PURE__ */ new Set(), queue = [entry];
1381
+ for (; queue.length > 0; ) {
1382
+ let file = queue.pop();
1383
+ if (!(closure.has(file.fileName) || isInNodeModules(file.fileName))) {
1384
+ closure.add(file.fileName);
1385
+ for (let statement of file.statements) {
1386
+ let specifier = typescript.isImportDeclaration(statement) || typescript.isExportDeclaration(statement) ? statement.moduleSpecifier : void 0;
1387
+ if (specifier)
1388
+ for (let declaration of checker.getSymbolAtLocation(specifier)?.declarations ?? [])
1389
+ typescript.isSourceFile(declaration) && queue.push(declaration);
1390
+ }
1391
+ }
1392
+ }
1393
+ return [...closure];
1394
+ }, allRecords = (fileMeta) => [
1395
+ ...fileMeta.components,
1396
+ ...fileMeta.directives,
1397
+ ...fileMeta.pipes,
1398
+ ...fileMeta.injectables,
1399
+ ...fileMeta.classes
1400
+ ], declaredNames = (fileMeta) => allRecords(fileMeta).map((record) => `${record.name} (${record.type})`), describe = (entry) => {
1401
+ let counts = "inputsClass" in entry ? `${entry.inputsClass?.length ?? 0} input(s), ${entry.outputsClass?.length ?? 0} output(s), ${"propertiesClass" in entry ? entry.propertiesClass?.length ?? 0 : 0} propertie(s)` : `${entry.properties.length} propertie(s), ${entry.methods.length} method(s)`;
1402
+ return `extracted ${entry.type} ${entry.name} with ${counts}`;
1403
+ }, findRecord = (fileMeta, name) => name ? allRecords(fileMeta).find((record) => record.name === name) : void 0;
1404
+ function findDefaultExportedClassName(typescript, sourceFile) {
1405
+ for (let statement of sourceFile.statements) {
1406
+ if (typescript.isClassDeclaration(statement) && statement.name && statement.modifiers?.some(
1407
+ (modifier) => modifier.kind === typescript.SyntaxKind.DefaultKeyword
1408
+ ))
1409
+ return statement.name.text;
1410
+ if (typescript.isExportAssignment(statement) && !statement.isExportEquals && typescript.isIdentifier(statement.expression))
1411
+ return statement.expression.text;
1412
+ }
1413
+ }
1414
+ function createAngularProjectFactory(typescript) {
1415
+ let fsFileSnapshots = /* @__PURE__ */ new Map(), documentRegistry = typescript.createDocumentRegistry(
1416
+ typescript.sys.useCaseSensitiveFileNames
1417
+ );
1418
+ return {
1419
+ parseCommandLine: (tsconfig) => parseTsconfigCommandLine(typescript, tsconfig),
1420
+ createConfiguredProject: (commandLine, tsconfig, getCommandLine) => new AngularComponentMetaProject(
1421
+ typescript,
1422
+ commandLine,
1423
+ tsconfig,
1424
+ fsFileSnapshots,
1425
+ getCommandLine,
1426
+ documentRegistry
1427
+ ),
1428
+ createInferredProject: () => new AngularComponentMetaProject(
1429
+ typescript,
1430
+ {
1431
+ options: {
1432
+ // Permissive defaults for files no tsconfig claims, which still use legacy decorators.
1433
+ strict: !1,
1434
+ allowJs: !0,
1435
+ skipLibCheck: !0,
1436
+ experimentalDecorators: !0,
1437
+ target: typescript.ScriptTarget.Latest,
1438
+ module: typescript.ModuleKind.ESNext,
1439
+ moduleResolution: typescript.ModuleResolutionKind.Bundler
1440
+ },
1441
+ fileNames: [],
1442
+ errors: []
1443
+ },
1444
+ void 0,
1445
+ fsFileSnapshots,
1446
+ void 0,
1447
+ documentRegistry
1448
+ ),
1449
+ // The snapshots hold every file's source text and are shared across projects, so they outlive
1450
+ // any single one and have to be dropped alongside them.
1451
+ recycle: () => fsFileSnapshots.clear(),
1452
+ dispose: () => fsFileSnapshots.clear()
1453
+ };
1454
+ }
1455
+ var AngularComponentMetaManager = class extends ComponentMetaManager {
1456
+ constructor(typescript) {
1457
+ super(typescript, createAngularProjectFactory(typescript));
1458
+ }
1459
+ /**
1460
+ * Extract the metadata for one component, or `undefined` when neither the file nor its
1461
+ * re-export target declares a class matching `names`.
1462
+ */
1463
+ extractComponentMeta(componentPath, names) {
1464
+ return this.getProjectForFile(componentPath).extract(componentPath, names);
1465
+ }
1466
+ /** Release cached projects under heap pressure; with no batch surface, call it per payload. */
1467
+ recycleIfHeapPressured() {
1468
+ this.recycleProjectsIfHeapPressured();
1469
+ }
1470
+ };
590
1471
 
591
1472
  // src/docgen/build-docgen.ts
592
- var comparablePath = (filePath, base) => {
593
- let posix = getRealPath(base ? resolve(base, filePath) : resolve(filePath), !0).replace(/\\/g, "/"), trimmed = posix.length > 1 ? posix.replace(/\/+$/, "") : posix;
594
- return process.platform === "win32" ? trimmed.toLowerCase() : trimmed;
595
- }, findCompodocEntry = (json, component, workspaceRoot) => {
596
- let { exportName, path } = component, entries = [...json.components ?? [], ...json.directives ?? []].filter(
597
- Boolean
598
- );
599
- if (path) {
600
- let wanted = comparablePath(path), inFile = entries.filter(
601
- (entry) => typeof entry.file == "string" && comparablePath(entry.file, workspaceRoot) === wanted
602
- ), onPath = exportName === "default" ? namesAgree(inFile) ? inFile[0] : void 0 : inFile.find((entry) => entry.name === exportName);
603
- if (onPath)
604
- return onPath;
605
- }
606
- if (exportName === "default")
1473
+ import { getComponentIdFromEntry, getStoryImportPathFromEntry } from "storybook/internal/common";
1474
+ import { resolve } from "node:path";
1475
+
1476
+ // src/docgen/api-description.ts
1477
+ var readMember = (name, argType) => {
1478
+ let table = argType.table;
1479
+ return {
1480
+ name,
1481
+ description: argType.description,
1482
+ type: table?.type?.summary,
1483
+ required: table?.type?.required !== !1,
1484
+ defaultValue: table?.defaultValue?.summary,
1485
+ deprecated: table?.jsDocTags?.deprecated
1486
+ };
1487
+ }, commentLines = (text) => text.replace(/\*\//g, "*\\/").split(`
1488
+ `).map((line) => line.trimEnd()), docComment = (member) => {
1489
+ let description = member.description?.trim(), body = description ? commentLines(description) : [], tags = [];
1490
+ if (member.deprecated !== void 0) {
1491
+ let deprecated = member.deprecated.trim();
1492
+ tags.push(...commentLines(deprecated ? `@deprecated ${deprecated}` : "@deprecated"));
1493
+ }
1494
+ return member.defaultValue !== void 0 && tags.push(
1495
+ ...commentLines(`@default ${member.defaultValue === "" ? "''" : member.defaultValue}`)
1496
+ ), tags.length > 0 && (body.length > 0 && body.push(""), body.push(...tags)), body.length === 0 ? [] : body.length === 1 ? [` /** ${body[0]} */`] : [" /**", ...body.map((line) => line ? ` * ${line}` : " *"), " */"];
1497
+ }, quotedName = (name) => JSON.stringify(name).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029"), fieldName = (name) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(name) ? name : quotedName(name), bindingName = (name) => quotedName(name).slice(1, -1), inputLine = (member, isTwoWay) => {
1498
+ let optional = member.required ? "" : "?", line = ` ${fieldName(member.name)}${optional}: ${member.type ?? "any"};`;
1499
+ return isTwoWay ? `${line} // two-way: [(${bindingName(member.name)})]` : line;
1500
+ }, outputLine = (member) => ` ${fieldName(member.name)}: ${member.type ?? "any"};`, section = (heading, typeName, lines) => [
1501
+ `## ${heading}`,
1502
+ "",
1503
+ "```",
1504
+ `export type ${typeName} = {`,
1505
+ ...lines,
1506
+ "}",
1507
+ "```",
1508
+ ""
1509
+ ];
1510
+ function buildApiDescription(argTypes, componentName) {
1511
+ let inputs = [], outputs = [];
1512
+ for (let [name, argType] of Object.entries(argTypes)) {
1513
+ let category = argType.table?.category;
1514
+ category === "inputs" ? inputs.push(readMember(name, argType)) : category === "outputs" && outputs.push(readMember(name, argType));
1515
+ }
1516
+ if (inputs.length === 0 && outputs.length === 0)
607
1517
  return;
608
- let byName = entries.filter((entry) => entry.name === exportName);
609
- return sameComponent(byName, workspaceRoot) ? byName[0] : void 0;
610
- }, namesAgree = (entries) => entries.length > 0 && entries.every((entry) => entry.name === entries[0].name), sameComponent = (entries, workspaceRoot) => entries.length === 0 ? !1 : new Set(
611
- entries.map(
612
- (entry, index) => typeof entry.file == "string" ? comparablePath(entry.file, workspaceRoot) : `#${index}`
613
- )
614
- ).size === 1, extractJsDocTags = (entry) => {
1518
+ let outputNames = new Set(outputs.map((output) => output.name)), typePrefix = componentName.replace(/\W+/g, ""), parts = [];
1519
+ return inputs.length > 0 && parts.push(
1520
+ ...section(
1521
+ "Inputs",
1522
+ `${typePrefix}Inputs`,
1523
+ inputs.flatMap((input) => [
1524
+ ...docComment(input),
1525
+ inputLine(input, outputNames.has(`${input.name}Change`))
1526
+ ])
1527
+ )
1528
+ ), outputs.length > 0 && parts.push(
1529
+ ...section(
1530
+ "Outputs",
1531
+ `${typePrefix}Outputs`,
1532
+ outputs.flatMap((output) => [...docComment(output), outputLine(output)])
1533
+ )
1534
+ ), parts.join(`
1535
+ `).trim();
1536
+ }
1537
+
1538
+ // src/docgen/build-docgen.ts
1539
+ var inputsOf = (entry) => "inputsClass" in entry ? entry.inputsClass ?? [] : [], outputsOf = (entry) => "outputsClass" in entry ? entry.outputsClass ?? [] : [], metaToSnippetMeta = (meta) => {
1540
+ let { entry } = meta, inputs = inputsOf(entry).map((input) => input.name), inputNames = new Set(inputs), outputs = [];
1541
+ for (let output of outputsOf(entry)) {
1542
+ let bindingName2 = inputNames.has(output.name) ? `${output.name}Change` : output.name;
1543
+ outputs.includes(bindingName2) || outputs.push(bindingName2);
1544
+ }
1545
+ return {
1546
+ name: entry.name,
1547
+ selector: entry.selector,
1548
+ standalone: entry.standalone !== !1,
1549
+ inputs,
1550
+ outputs,
1551
+ enums: (meta.json.miscellaneous?.enumerations ?? []).map((enumeration) => ({
1552
+ name: enumeration.name,
1553
+ members: enumeration.childs.map((child) => ({ name: child.name, value: child.value }))
1554
+ }))
1555
+ };
1556
+ }, extractJsDocTags = (entry) => {
615
1557
  let tags = {};
616
1558
  for (let tag of entry.jsdoctags ?? []) {
617
1559
  let name = tag?.tagName?.escapedText;
618
1560
  if (!name)
619
1561
  continue;
620
- let value = tag.comment === void 0 ? "" : htmlToText(tag.comment).trim();
1562
+ let value = tag.comment === void 0 ? "" : String(tag.comment).trim();
621
1563
  (tags[name] ??= []).push(value);
622
1564
  }
623
1565
  return tags;
624
1566
  }, errorPayload = (base, name, message) => ({ ...base, jsDocTags: {}, error: { name, message } }), buildDocgenPayload = (input, context) => {
625
- let { options, logger: logger2 } = context, storyImportPath = getStoryImportPathFromEntry(input.entry);
1567
+ let { manager, options, logger: logger5 } = context, storyImportPath = getStoryImportPathFromEntry(input.entry);
626
1568
  if (!storyImportPath)
627
1569
  return;
628
- let storyFilePath = resolve(process.cwd(), storyImportPath), resolved = resolveStoryComponent(storyFilePath, input.entry.title);
1570
+ let storyFilePath = (context.resolvePath ?? ((importPath) => resolve(process.cwd(), importPath)))(storyImportPath), resolved = resolveStoryComponent(storyFilePath, input.entry.title);
629
1571
  if ("reason" in resolved) {
630
- logger2.debug(`No Angular component resolved from ${storyFilePath}: ${resolved.reason}.`);
631
- return;
1572
+ if (resolved.reason === "no-meta-component") {
1573
+ logger5.debug(`No Angular component resolved from ${storyFilePath}: ${resolved.reason}.`);
1574
+ return;
1575
+ }
1576
+ let unreadableBase = {
1577
+ id: getComponentIdFromEntry(input.entry),
1578
+ name: resolved.reason === "unreadable-component-expression" ? resolved.expression : input.entry.title.split("/").at(-1) ?? input.entry.title,
1579
+ path: storyImportPath
1580
+ };
1581
+ return errorPayload(
1582
+ unreadableBase,
1583
+ "AngularComponentMetaNotFound",
1584
+ resolved.reason === "unreadable-component-expression" ? `The story file sets \`component: ${resolved.expression}\`, which does not resolve to a class.
1585
+ Storybook follows an imported name, a namespace-import property access, or a chain of property accesses and spreads through modules it can resolve. Assign the component to a name in ${storyFilePath}.` : (
1586
+ // `meta.component` may reach this binding through another module (e.g. a spread config
1587
+ // object), so the type-only or namespace import is not necessarily written in the story
1588
+ // file itself - naming it here would send the reader to the wrong file.
1589
+ `Resolving \`meta.component\` from ${storyFilePath} reached a binding that is a type-only or namespace import, which carries no class to document.
1590
+ Import the component as a value in whichever module declares that binding.`
1591
+ )
1592
+ );
632
1593
  }
633
1594
  let { component } = resolved, displayName = component.exportName === "default" ? component.localName : component.exportName, base = {
634
1595
  id: getComponentIdFromEntry(input.entry),
635
1596
  name: displayName,
636
1597
  path: storyImportPath
637
- }, documentationJson = join(options.outputDir, DOCUMENTATION_JSON), enableCompodoc = `Enable Compodoc so Storybook can extract Angular metadata: make sure framework.options.compodoc is not false, or generate it yourself with "compodoc -p ${options.tsconfig} -e json -d ${options.outputDir}".`;
638
- if (!existsSync(documentationJson))
1598
+ };
1599
+ if (!component.path)
639
1600
  return errorPayload(
640
1601
  base,
641
- "NoCompodocDocumentation",
642
- `No Compodoc documentation.json at ${documentationJson}.
643
- ${enableCompodoc}`
1602
+ "AngularComponentMetaNotFound",
1603
+ // `component.importId` may be read from a module `meta.component` only reaches through a
1604
+ // chain (e.g. a spread config object), so the import is not necessarily written in the story
1605
+ // file itself - naming it here would send the reader to the wrong file.
1606
+ `Storybook could not resolve the import of "${displayName}" from "${component.importId}", reached while resolving \`meta.component\` from ${storyFilePath}.
1607
+ Check the import specifier (and any tsconfig path aliases it relies on) in whichever module actually imports it.`
644
1608
  );
645
- let compodocJson;
1609
+ let meta;
646
1610
  try {
647
- compodocJson = context.readDocumentationJson(documentationJson);
648
- } catch (error) {
1611
+ meta = manager.extractComponentMeta(component.path, {
1612
+ exportName: component.exportName,
1613
+ localName: component.localName
1614
+ });
1615
+ } catch (err) {
649
1616
  return errorPayload(
650
1617
  base,
651
- "NoCompodocDocumentation",
652
- `${documentationJson} could not be read: ${error instanceof Error ? error.message : String(error)}
653
- ${enableCompodoc}`
1618
+ "AngularComponentMetaExtractionFailed",
1619
+ `The analyzer threw while extracting "${component.exportName}" from ${component.path}: ${err instanceof Error ? err.message : String(err)}`
654
1620
  );
655
1621
  }
656
- let entry = findCompodocEntry(compodocJson, component, options.workspaceRoot);
657
- if (!entry) {
658
- let declaredInStoryFile = component.path !== void 0 && comparablePath(component.path) === comparablePath(storyFilePath);
1622
+ if (!meta)
659
1623
  return errorPayload(
660
1624
  base,
661
- "ComponentNotDocumented",
662
- declaredInStoryFile ? `Compodoc does not document components declared inside story files, so "${displayName}" has no metadata.
663
- Move it into its own file to have it documented. Source: ${documentationJson}` : `Compodoc documented this project but not the component "${displayName}".
664
- Check that the component's file is covered by the tsconfig Compodoc runs against (${options.tsconfig}) and re-run Compodoc. Source: ${documentationJson}`
1625
+ "AngularComponentMetaNotFound",
1626
+ `No metadata was extracted for the "${component.exportName}" export of ${component.path}.
1627
+ Check that the file exports the component class and is covered by a tsconfig.json in or above its directory.`
665
1628
  );
666
- }
667
- let argTypes = extractArgTypesFromData(entry, {
668
- compodocJson,
669
- filterNonInputControls: options.angularFilterNonInputControls,
670
- logger: logger2,
671
- unwrapHtml: htmlToText
672
- }), description = entry.description ? htmlToText(entry.description).trim() : void 0, jsDocTags = extractJsDocTags(entry);
1629
+ let argTypes = extractArgTypesFromData(meta.entry, {
1630
+ metadataJson: meta.json,
1631
+ propsTable: options.propsTable,
1632
+ logger: logger5
1633
+ }), apiArgTypes = options.propsTable === "api" ? argTypes : extractArgTypesFromData(meta.entry, {
1634
+ metadataJson: meta.json,
1635
+ propsTable: "api",
1636
+ logger: logger5
1637
+ }), jsDocTags = extractJsDocTags(meta.entry), description = meta.entry.rawdescription?.trim() || (meta.entry.description ?? "").trim() || void 0;
673
1638
  return {
674
1639
  ...base,
675
- // Compodoc knows the class name even when the story file imported it as a default export.
676
- name: entry.name ?? displayName,
1640
+ // The analyzer knows the class name even when the story file imported it as a default export.
1641
+ name: meta.entry.name,
677
1642
  description,
678
- // Same meaning as on React, which also sources `summary` from a `@summary` tag.
679
1643
  summary: jsDocTags.summary?.[0],
680
1644
  jsDocTags,
681
1645
  argTypes,
682
- // `subcomponents` stays unset: Compodoc flattens inherited members into the component's own
683
- // `inputsClass`/`outputsClass`, and Angular has no second construct the field would describe.
684
- compodoc: entry
1646
+ apiDescription: buildApiDescription(apiArgTypes, meta.entry.name),
1647
+ renderer: "angular",
1648
+ angularComponentMeta: metaToSnippetMeta(meta)
685
1649
  };
686
1650
  };
687
1651
 
688
1652
  // src/docgen/docgen-worker.ts
689
1653
  var workerLogger = {
690
- warn: (message) => logger.warn(`[storybook-angular-vite] ${message}`),
691
- debug: (message) => logger.debug(`[storybook-angular-vite] ${message}`)
692
- }, createDocumentationJsonReader = () => {
693
- let cached;
694
- return (path) => {
695
- let stats = statSync(path), key = `${path}:${stats.mtimeMs}:${stats.size}`;
696
- return cached?.key !== key && (cached = { key, json: JSON.parse(readFileSync2(path, "utf8")) }), cached.json;
697
- };
698
- }, createDocgenProvider = async (options) => {
699
- await ensureCompodocDocumentation({
700
- compodocArgs: options.compodocArgs,
701
- tsconfig: options.tsconfig,
702
- workspaceRoot: options.workspaceRoot,
703
- outputDir: options.outputDir
704
- });
705
- let readDocumentationJson = createDocumentationJsonReader();
1654
+ warn: (message) => logger4.warn(`[storybook-angular-vite] ${message}`),
1655
+ debug: (message) => logger4.debug(`[storybook-angular-vite] ${message}`)
1656
+ }, createManager = async () => {
1657
+ try {
1658
+ let typescript = await import("typescript"), manager = new AngularComponentMetaManager(typescript.default ?? typescript);
1659
+ return manager.startWatching(), manager;
1660
+ } catch (error) {
1661
+ logger4.warn(
1662
+ `Angular docgen is unavailable: the component meta analyzer could not be created. ${error instanceof Error ? error.message : String(error)}`
1663
+ );
1664
+ return;
1665
+ }
1666
+ }, createDocgenProvider = (options) => {
1667
+ let managerPromise;
706
1668
  return (nextDocgen) => async (input) => {
707
1669
  let storyImportPath = getStoryImportPathFromEntry2(input.entry);
708
1670
  if (!storyImportPath || !STORY_FILE_TEST_REGEXP.test(storyImportPath))
709
1671
  return nextDocgen(input);
710
- let ours = buildDocgenPayload(input, {
711
- options,
712
- readDocumentationJson,
713
- logger: workerLogger
714
- });
715
- return ours ? ours.error ? await nextDocgen(input) ?? ours : { ...await nextDocgen(input), ...ours } : nextDocgen(input);
1672
+ let manager = await (managerPromise ??= createManager());
1673
+ if (!manager)
1674
+ return nextDocgen(input);
1675
+ let ours = buildDocgenPayload(input, { manager, options, logger: workerLogger });
1676
+ return manager.recycleIfHeapPressured(), ours ? ours.error ? await nextDocgen(input) ?? ours : { ...await nextDocgen(input), ...ours } : nextDocgen(input);
716
1677
  };
717
1678
  };
718
1679
  export {