@likec4/core 1.48.0 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/THIRD-PARTY-LICENSES.md +1034 -0
  2. package/dist/_chunks/Builder.view-element.mjs +2 -3284
  3. package/dist/_chunks/LikeC4Model.d.mts +21 -25
  4. package/dist/_chunks/_types.d.mts +1 -5
  5. package/dist/_chunks/_types2.d.mts +2 -4
  6. package/dist/_chunks/assignTagColors.mjs +1 -24
  7. package/dist/_chunks/geometry.mjs +1 -335
  8. package/dist/_chunks/index.d.mts +1995 -131
  9. package/dist/_chunks/index2.d.mts +153 -892
  10. package/dist/_chunks/index3.d.mts +15 -13
  11. package/dist/_chunks/index4.d.mts +229 -3
  12. package/dist/_chunks/index5.d.mts +392 -30
  13. package/dist/_chunks/libs/@mantine/colors-generator.mjs +2 -3403
  14. package/dist/_chunks/libs/@radix-ui/colors.mjs +1 -0
  15. package/dist/_chunks/libs/@ungap/structured-clone.mjs +1 -213
  16. package/dist/_chunks/libs/bail.mjs +1 -14
  17. package/dist/_chunks/libs/ccount.mjs +1 -25
  18. package/dist/_chunks/libs/character-entities-html4.mjs +1 -263
  19. package/dist/_chunks/libs/character-entities-legacy.mjs +1 -117
  20. package/dist/_chunks/libs/character-entities.mjs +2 -2136
  21. package/dist/_chunks/libs/comma-separated-tokens.mjs +1 -18
  22. package/dist/_chunks/libs/decode-named-character-reference.mjs +1 -21
  23. package/dist/_chunks/libs/defu.mjs +1 -42
  24. package/dist/_chunks/libs/devlop.mjs +1 -5
  25. package/dist/_chunks/libs/escape-string-regexp.mjs +1 -8
  26. package/dist/_chunks/libs/extend.mjs +1 -77
  27. package/dist/_chunks/libs/graphology-dag.mjs +1 -703
  28. package/dist/_chunks/libs/graphology.mjs +1 -4565
  29. package/dist/_chunks/libs/hast-util-sanitize.mjs +1 -863
  30. package/dist/_chunks/libs/hast-util-to-html.mjs +9 -2696
  31. package/dist/_chunks/libs/is-plain-obj.mjs +1 -9
  32. package/dist/_chunks/libs/longest-streak.mjs +1 -30
  33. package/dist/_chunks/libs/markdown-table.mjs +2 -290
  34. package/dist/_chunks/libs/mdast-util-find-and-replace.mjs +1 -653
  35. package/dist/_chunks/libs/mdast-util-from-markdown.mjs +3 -8522
  36. package/dist/_chunks/libs/mdast-util-gfm.mjs +15 -2393
  37. package/dist/_chunks/libs/mdast-util-to-hast.mjs +11 -1803
  38. package/dist/_chunks/libs/micromark-extension-gfm.mjs +1 -2243
  39. package/dist/_chunks/libs/mnemonist.d.mts +1 -91
  40. package/dist/_chunks/libs/mnemonist.mjs +1 -1978
  41. package/dist/_chunks/libs/natural-compare-lite.mjs +9 -42
  42. package/dist/_chunks/libs/ohash.mjs +1 -0
  43. package/dist/_chunks/libs/rehype-sanitize.mjs +1 -29
  44. package/dist/_chunks/libs/rehype-stringify.mjs +1 -34
  45. package/dist/_chunks/libs/remark-gfm.mjs +1 -36
  46. package/dist/_chunks/libs/remark-github-blockquote-alert.mjs +3 -100
  47. package/dist/_chunks/libs/remark-parse.mjs +1 -39
  48. package/dist/_chunks/libs/remark-rehype.mjs +1 -171
  49. package/dist/_chunks/libs/remeda.mjs +2 -702
  50. package/dist/_chunks/libs/trough.mjs +1 -158
  51. package/dist/_chunks/libs/unified.mjs +1 -2212
  52. package/dist/_chunks/manual-layout.mjs +1 -0
  53. package/dist/_chunks/model.mjs +4 -1898
  54. package/dist/_chunks/rolldown-runtime.mjs +1 -42
  55. package/dist/_chunks/types.mjs +1 -0
  56. package/dist/_chunks/utils.mjs +1 -483
  57. package/dist/builder/index.d.mts +3 -6
  58. package/dist/builder/index.mjs +1 -662
  59. package/dist/compute-view/index.d.mts +85 -13
  60. package/dist/compute-view/index.mjs +2 -262
  61. package/dist/geometry/index.d.mts +2 -2
  62. package/dist/geometry/index.mjs +1 -3
  63. package/dist/index.d.mts +7 -13
  64. package/dist/index.mjs +1 -27
  65. package/dist/model/index.d.mts +4 -11
  66. package/dist/model/index.mjs +1 -11
  67. package/dist/styles/index.d.mts +2 -7
  68. package/dist/styles/index.mjs +1 -30
  69. package/dist/types/index.d.mts +3 -9
  70. package/dist/types/index.mjs +1 -15
  71. package/dist/utils/graphology/index.d.mts +1 -1
  72. package/dist/utils/graphology/index.mjs +1 -3
  73. package/dist/utils/index.d.mts +5 -10
  74. package/dist/utils/index.mjs +1 -17
  75. package/package.json +14 -13
  76. package/dist/_chunks/LikeC4Styles.mjs +0 -691
  77. package/dist/_chunks/RichText.d.mts +0 -84
  78. package/dist/_chunks/RichText.mjs +0 -148
  79. package/dist/_chunks/_aux.d.mts +0 -289
  80. package/dist/_chunks/_aux.mjs +0 -18
  81. package/dist/_chunks/calcDriftsFromSnapshot.mjs +0 -379
  82. package/dist/_chunks/connection.mjs +0 -0
  83. package/dist/_chunks/const.d.mts +0 -43
  84. package/dist/_chunks/const.mjs +0 -33
  85. package/dist/_chunks/expression-model.d.mts +0 -192
  86. package/dist/_chunks/expression-model.mjs +0 -103
  87. package/dist/_chunks/expression.d.mts +0 -347
  88. package/dist/_chunks/expression.mjs +0 -107
  89. package/dist/_chunks/find.d.mts +0 -82
  90. package/dist/_chunks/find.mjs +0 -646
  91. package/dist/_chunks/find2.d.mts +0 -78
  92. package/dist/_chunks/find2.mjs +0 -287
  93. package/dist/_chunks/fqnRef.d.mts +0 -58
  94. package/dist/_chunks/fqnRef.mjs +0 -41
  95. package/dist/_chunks/index6.d.mts +0 -43
  96. package/dist/_chunks/index7.d.mts +0 -268
  97. package/dist/_chunks/index8.d.mts +0 -144
  98. package/dist/_chunks/invariant.mjs +0 -18
  99. package/dist/_chunks/iterable.mjs +0 -146
  100. package/dist/_chunks/libs/graphology-types.d.mts +0 -601
  101. package/dist/_chunks/libs/graphology.d.mts +0 -6
  102. package/dist/_chunks/mnemonist.mjs +0 -0
  103. package/dist/_chunks/model2.mjs +0 -0
  104. package/dist/_chunks/relationships-view.mjs +0 -132
  105. package/dist/_chunks/scalar.d.mts +0 -109
  106. package/dist/_chunks/scalar.mjs +0 -84
  107. package/dist/compute-view/relationships-view/index.d.mts +0 -16
  108. package/dist/compute-view/relationships-view/index.mjs +0 -7
  109. package/dist/model/connection/deployment/index.d.mts +0 -12
  110. package/dist/model/connection/deployment/index.mjs +0 -9
  111. package/dist/model/connection/index.d.mts +0 -14
  112. package/dist/model/connection/index.mjs +0 -10
  113. package/dist/model/connection/model/index.d.mts +0 -12
  114. package/dist/model/connection/model/index.mjs +0 -8
  115. package/dist/types/RichText.d.mts +0 -3
  116. package/dist/types/RichText.mjs +0 -7
  117. package/dist/types/_aux.d.mts +0 -3
  118. package/dist/types/_aux.mjs +0 -3
  119. package/dist/types/expression-model.d.mts +0 -6
  120. package/dist/types/expression-model.mjs +0 -7
  121. package/dist/types/expression.d.mts +0 -5
  122. package/dist/types/expression.mjs +0 -7
  123. package/dist/types/fqnRef.d.mts +0 -4
  124. package/dist/types/fqnRef.mjs +0 -7
  125. package/dist/types/scalar.d.mts +0 -2
  126. package/dist/types/scalar.mjs +0 -7
  127. package/dist/utils/iterable/index.d.mts +0 -9
  128. package/dist/utils/iterable/index.mjs +0 -3
  129. package/dist/utils/mnemonist.d.mts +0 -2
  130. package/dist/utils/mnemonist.mjs +0 -12
@@ -0,0 +1 @@
1
+ const e={tomato1:`#fffcfc`,tomato2:`#fff8f7`,tomato3:`#feebe7`,tomato4:`#ffdcd3`,tomato5:`#ffcdc2`,tomato6:`#fdbdaf`,tomato7:`#f5a898`,tomato8:`#ec8e7b`,tomato9:`#e54d2e`,tomato10:`#dd4425`,tomato11:`#d13415`,tomato12:`#5c271f`},t={red1:`#fffcfc`,red2:`#fff7f7`,red3:`#feebec`,red4:`#ffdbdc`,red5:`#ffcdce`,red6:`#fdbdbe`,red7:`#f4a9aa`,red8:`#eb8e90`,red9:`#e5484d`,red10:`#dc3e42`,red11:`#ce2c31`,red12:`#641723`},n={ruby1:`#fffcfd`,ruby2:`#fff7f8`,ruby3:`#feeaed`,ruby4:`#ffdce1`,ruby5:`#ffced6`,ruby6:`#f8bfc8`,ruby7:`#efacb8`,ruby8:`#e592a3`,ruby9:`#e54666`,ruby10:`#dc3b5d`,ruby11:`#ca244d`,ruby12:`#64172b`},r={crimson1:`#fffcfd`,crimson2:`#fef7f9`,crimson3:`#ffe9f0`,crimson4:`#fedce7`,crimson5:`#facedd`,crimson6:`#f3bed1`,crimson7:`#eaacc3`,crimson8:`#e093b2`,crimson9:`#e93d82`,crimson10:`#df3478`,crimson11:`#cb1d63`,crimson12:`#621639`},i={pink1:`#fffcfe`,pink2:`#fef7fb`,pink3:`#fee9f5`,pink4:`#fbdcef`,pink5:`#f6cee7`,pink6:`#efbfdd`,pink7:`#e7acd0`,pink8:`#dd93c2`,pink9:`#d6409f`,pink10:`#cf3897`,pink11:`#c2298a`,pink12:`#651249`},a={purple1:`#fefcfe`,purple2:`#fbf7fe`,purple3:`#f7edfe`,purple4:`#f2e2fc`,purple5:`#ead5f9`,purple6:`#e0c4f4`,purple7:`#d1afec`,purple8:`#be93e4`,purple9:`#8e4ec6`,purple10:`#8347b9`,purple11:`#8145b5`,purple12:`#402060`},o={violet1:`#fdfcfe`,violet2:`#faf8ff`,violet3:`#f4f0fe`,violet4:`#ebe4ff`,violet5:`#e1d9ff`,violet6:`#d4cafe`,violet7:`#c2b5f5`,violet8:`#aa99ec`,violet9:`#6e56cf`,violet10:`#654dc4`,violet11:`#6550b9`,violet12:`#2f265f`},s={indigo1:`#fdfdfe`,indigo2:`#f7f9ff`,indigo3:`#edf2fe`,indigo4:`#e1e9ff`,indigo5:`#d2deff`,indigo6:`#c1d0ff`,indigo7:`#abbdf9`,indigo8:`#8da4ef`,indigo9:`#3e63dd`,indigo10:`#3358d4`,indigo11:`#3a5bc7`,indigo12:`#1f2d5c`},c={blue1:`#fbfdff`,blue2:`#f4faff`,blue3:`#e6f4fe`,blue4:`#d5efff`,blue5:`#c2e5ff`,blue6:`#acd8fc`,blue7:`#8ec8f6`,blue8:`#5eb1ef`,blue9:`#0090ff`,blue10:`#0588f0`,blue11:`#0d74ce`,blue12:`#113264`},l={teal1:`#fafefd`,teal2:`#f3fbf9`,teal3:`#e0f8f3`,teal4:`#ccf3ea`,teal5:`#b8eae0`,teal6:`#a1ded2`,teal7:`#83cdc1`,teal8:`#53b9ab`,teal9:`#12a594`,teal10:`#0d9b8a`,teal11:`#008573`,teal12:`#0d3d38`},u={grass1:`#fbfefb`,grass2:`#f5fbf5`,grass3:`#e9f6e9`,grass4:`#daf1db`,grass5:`#c9e8ca`,grass6:`#b2ddb5`,grass7:`#94ce9a`,grass8:`#65ba74`,grass9:`#46a758`,grass10:`#3e9b4f`,grass11:`#2a7e3b`,grass12:`#203c25`},d={lime1:`#fcfdfa`,lime2:`#f8faf3`,lime3:`#eef6d6`,lime4:`#e2f0bd`,lime5:`#d3e7a6`,lime6:`#c2da91`,lime7:`#abc978`,lime8:`#8db654`,lime9:`#bdee63`,lime10:`#b0e64c`,lime11:`#5c7c2f`,lime12:`#37401c`},f={yellow1:`#fdfdf9`,yellow2:`#fefce9`,yellow3:`#fffab8`,yellow4:`#fff394`,yellow5:`#ffe770`,yellow6:`#f3d768`,yellow7:`#e4c767`,yellow8:`#d5ae39`,yellow9:`#ffe629`,yellow10:`#ffdc00`,yellow11:`#9e6c00`,yellow12:`#473b1f`},p={amber1:`#fefdfb`,amber2:`#fefbe9`,amber3:`#fff7c2`,amber4:`#ffee9c`,amber5:`#fbe577`,amber6:`#f3d673`,amber7:`#e9c162`,amber8:`#e2a336`,amber9:`#ffc53d`,amber10:`#ffba18`,amber11:`#ab6400`,amber12:`#4f3422`},m={orange1:`#fefcfb`,orange2:`#fff7ed`,orange3:`#ffefd6`,orange4:`#ffdfb5`,orange5:`#ffd19a`,orange6:`#ffc182`,orange7:`#f5ae73`,orange8:`#ec9455`,orange9:`#f76b15`,orange10:`#ef5f00`,orange11:`#cc4e00`,orange12:`#582d1d`};export{s as a,i as c,n as d,l as f,f as h,u as i,a as l,o as m,c as n,d as o,e as p,r,m as s,p as t,t as u};
@@ -1,213 +1 @@
1
- //#region ../../node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/types.js
2
- const VOID = -1;
3
- const PRIMITIVE = 0;
4
- const ARRAY = 1;
5
- const OBJECT = 2;
6
- const DATE = 3;
7
- const REGEXP = 4;
8
- const MAP = 5;
9
- const SET = 6;
10
- const ERROR = 7;
11
- const BIGINT = 8;
12
-
13
- //#endregion
14
- //#region ../../node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/deserialize.js
15
- const env = typeof self === "object" ? self : globalThis;
16
- const deserializer = ($, _) => {
17
- const as = (out, index) => {
18
- $.set(index, out);
19
- return out;
20
- };
21
- const unpair = (index) => {
22
- if ($.has(index)) return $.get(index);
23
- const [type, value] = _[index];
24
- switch (type) {
25
- case PRIMITIVE:
26
- case VOID: return as(value, index);
27
- case ARRAY: {
28
- const arr = as([], index);
29
- for (const index of value) arr.push(unpair(index));
30
- return arr;
31
- }
32
- case OBJECT: {
33
- const object = as({}, index);
34
- for (const [key, index] of value) object[unpair(key)] = unpair(index);
35
- return object;
36
- }
37
- case DATE: return as(new Date(value), index);
38
- case REGEXP: {
39
- const { source, flags } = value;
40
- return as(new RegExp(source, flags), index);
41
- }
42
- case MAP: {
43
- const map = as(/* @__PURE__ */ new Map(), index);
44
- for (const [key, index] of value) map.set(unpair(key), unpair(index));
45
- return map;
46
- }
47
- case SET: {
48
- const set = as(/* @__PURE__ */ new Set(), index);
49
- for (const index of value) set.add(unpair(index));
50
- return set;
51
- }
52
- case ERROR: {
53
- const { name, message } = value;
54
- return as(new env[name](message), index);
55
- }
56
- case BIGINT: return as(BigInt(value), index);
57
- case "BigInt": return as(Object(BigInt(value)), index);
58
- case "ArrayBuffer": return as(new Uint8Array(value).buffer, value);
59
- case "DataView": {
60
- const { buffer } = new Uint8Array(value);
61
- return as(new DataView(buffer), value);
62
- }
63
- }
64
- return as(new env[type](value), index);
65
- };
66
- return unpair;
67
- };
68
- /**
69
- * @typedef {Array<string,any>} Record a type representation
70
- */
71
- /**
72
- * Returns a deserialized value from a serialized array of Records.
73
- * @param {Record[]} serialized a previously serialized value.
74
- * @returns {any}
75
- */
76
- const deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
77
-
78
- //#endregion
79
- //#region ../../node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/serialize.js
80
- const EMPTY = "";
81
- const { toString } = {};
82
- const { keys } = Object;
83
- const typeOf = (value) => {
84
- const type = typeof value;
85
- if (type !== "object" || !value) return [PRIMITIVE, type];
86
- const asString = toString.call(value).slice(8, -1);
87
- switch (asString) {
88
- case "Array": return [ARRAY, EMPTY];
89
- case "Object": return [OBJECT, EMPTY];
90
- case "Date": return [DATE, EMPTY];
91
- case "RegExp": return [REGEXP, EMPTY];
92
- case "Map": return [MAP, EMPTY];
93
- case "Set": return [SET, EMPTY];
94
- case "DataView": return [ARRAY, asString];
95
- }
96
- if (asString.includes("Array")) return [ARRAY, asString];
97
- if (asString.includes("Error")) return [ERROR, asString];
98
- return [OBJECT, asString];
99
- };
100
- const shouldSkip = ([TYPE, type]) => TYPE === PRIMITIVE && (type === "function" || type === "symbol");
101
- const serializer = (strict, json, $, _) => {
102
- const as = (out, value) => {
103
- const index = _.push(out) - 1;
104
- $.set(value, index);
105
- return index;
106
- };
107
- const pair = (value) => {
108
- if ($.has(value)) return $.get(value);
109
- let [TYPE, type] = typeOf(value);
110
- switch (TYPE) {
111
- case PRIMITIVE: {
112
- let entry = value;
113
- switch (type) {
114
- case "bigint":
115
- TYPE = BIGINT;
116
- entry = value.toString();
117
- break;
118
- case "function":
119
- case "symbol":
120
- if (strict) throw new TypeError("unable to serialize " + type);
121
- entry = null;
122
- break;
123
- case "undefined": return as([VOID], value);
124
- }
125
- return as([TYPE, entry], value);
126
- }
127
- case ARRAY: {
128
- if (type) {
129
- let spread = value;
130
- if (type === "DataView") spread = new Uint8Array(value.buffer);
131
- else if (type === "ArrayBuffer") spread = new Uint8Array(value);
132
- return as([type, [...spread]], value);
133
- }
134
- const arr = [];
135
- const index = as([TYPE, arr], value);
136
- for (const entry of value) arr.push(pair(entry));
137
- return index;
138
- }
139
- case OBJECT: {
140
- if (type) switch (type) {
141
- case "BigInt": return as([type, value.toString()], value);
142
- case "Boolean":
143
- case "Number":
144
- case "String": return as([type, value.valueOf()], value);
145
- }
146
- if (json && "toJSON" in value) return pair(value.toJSON());
147
- const entries = [];
148
- const index = as([TYPE, entries], value);
149
- for (const key of keys(value)) if (strict || !shouldSkip(typeOf(value[key]))) entries.push([pair(key), pair(value[key])]);
150
- return index;
151
- }
152
- case DATE: return as([TYPE, value.toISOString()], value);
153
- case REGEXP: {
154
- const { source, flags } = value;
155
- return as([TYPE, {
156
- source,
157
- flags
158
- }], value);
159
- }
160
- case MAP: {
161
- const entries = [];
162
- const index = as([TYPE, entries], value);
163
- for (const [key, entry] of value) if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry)))) entries.push([pair(key), pair(entry)]);
164
- return index;
165
- }
166
- case SET: {
167
- const entries = [];
168
- const index = as([TYPE, entries], value);
169
- for (const entry of value) if (strict || !shouldSkip(typeOf(entry))) entries.push(pair(entry));
170
- return index;
171
- }
172
- }
173
- const { message } = value;
174
- return as([TYPE, {
175
- name: type,
176
- message
177
- }], value);
178
- };
179
- return pair;
180
- };
181
- /**
182
- * @typedef {Array<string,any>} Record a type representation
183
- */
184
- /**
185
- * Returns an array of serialized Records.
186
- * @param {any} value a serializable value.
187
- * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,
188
- * if `true`, will not throw errors on incompatible types, and behave more
189
- * like JSON stringify would behave. Symbol and Function will be discarded.
190
- * @returns {Record[]}
191
- */
192
- const serialize = (value, { json, lossy } = {}) => {
193
- const _ = [];
194
- return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
195
- };
196
-
197
- //#endregion
198
- //#region ../../node_modules/.pnpm/@ungap+structured-clone@1.3.0/node_modules/@ungap/structured-clone/esm/index.js
199
- /**
200
- * @typedef {Array<string,any>} Record a type representation
201
- */
202
- /**
203
- * Returns an array of serialized Records.
204
- * @param {any} any a serializable value.
205
- * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with
206
- * a transfer option (ignored when polyfilled) and/or non standard fields that
207
- * fallback to the polyfill if present.
208
- * @returns {Record[]}
209
- */
210
- var esm_default = typeof structuredClone === "function" ? (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any) : (any, options) => deserialize(serialize(any, options));
211
-
212
- //#endregion
213
- export { esm_default as t };
1
+ const e=typeof self==`object`?self:globalThis,t=(t,n)=>{let r=(e,n)=>(t.set(n,e),e),i=a=>{if(t.has(a))return t.get(a);let[o,s]=n[a];switch(o){case 0:case-1:return r(s,a);case 1:{let e=r([],a);for(let t of s)e.push(i(t));return e}case 2:{let e=r({},a);for(let[t,n]of s)e[i(t)]=i(n);return e}case 3:return r(new Date(s),a);case 4:{let{source:e,flags:t}=s;return r(new RegExp(e,t),a)}case 5:{let e=r(new Map,a);for(let[t,n]of s)e.set(i(t),i(n));return e}case 6:{let e=r(new Set,a);for(let t of s)e.add(i(t));return e}case 7:{let{name:t,message:n}=s;return r(new e[t](n),a)}case 8:return r(BigInt(s),a);case`BigInt`:return r(Object(BigInt(s)),a);case`ArrayBuffer`:return r(new Uint8Array(s).buffer,s);case`DataView`:{let{buffer:e}=new Uint8Array(s);return r(new DataView(e),s)}}return r(new e[o](s),a)};return i},n=e=>t(new Map,e)(0),{toString:r}={},{keys:i}=Object,a=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=r.call(e).slice(8,-1);switch(n){case`Array`:return[1,``];case`Object`:return[2,``];case`Date`:return[3,``];case`RegExp`:return[4,``];case`Map`:return[5,``];case`Set`:return[6,``];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},o=([e,t])=>e===0&&(t===`function`||t===`symbol`),s=(e,t,n,r)=>{let s=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},c=r=>{if(n.has(r))return n.get(r);let[l,u]=a(r);switch(l){case 0:{let t=r;switch(u){case`bigint`:l=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+u);t=null;break;case`undefined`:return s([-1],r)}return s([l,t],r)}case 1:{if(u){let e=r;return u===`DataView`?e=new Uint8Array(r.buffer):u===`ArrayBuffer`&&(e=new Uint8Array(r)),s([u,[...e]],r)}let e=[],t=s([l,e],r);for(let t of r)e.push(c(t));return t}case 2:{if(u)switch(u){case`BigInt`:return s([u,r.toString()],r);case`Boolean`:case`Number`:case`String`:return s([u,r.valueOf()],r)}if(t&&`toJSON`in r)return c(r.toJSON());let n=[],d=s([l,n],r);for(let t of i(r))(e||!o(a(r[t])))&&n.push([c(t),c(r[t])]);return d}case 3:return s([l,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return s([l,{source:e,flags:t}],r)}case 5:{let t=[],n=s([l,t],r);for(let[n,i]of r)(e||!(o(a(n))||o(a(i))))&&t.push([c(n),c(i)]);return n}case 6:{let t=[],n=s([l,t],r);for(let n of r)(e||!o(a(n)))&&t.push(c(n));return n}}let{message:d}=r;return s([l,{name:u,message:d}],r)};return c},c=(e,{json:t,lossy:n}={})=>{let r=[];return s(!(t||n),!!t,new Map,r)(e),r};var l=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?n(c(e,t)):structuredClone(e):(e,t)=>n(c(e,t));export{l as t};
@@ -1,14 +1 @@
1
- //#region ../../node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.js
2
- /**
3
- * Throw a given error.
4
- *
5
- * @param {Error|null|undefined} [error]
6
- * Maybe error.
7
- * @returns {asserts error is null|undefined}
8
- */
9
- function bail(error) {
10
- if (error) throw error;
11
- }
12
-
13
- //#endregion
14
- export { bail as t };
1
+ function e(e){if(e)throw e}export{e as t};
@@ -1,25 +1 @@
1
- //#region ../../node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
2
- /**
3
- * Count how often a character (or substring) is used in a string.
4
- *
5
- * @param {string} value
6
- * Value to search in.
7
- * @param {string} character
8
- * Character (or substring) to look for.
9
- * @return {number}
10
- * Number of times `character` occurred in `value`.
11
- */
12
- function ccount(value, character) {
13
- const source = String(value);
14
- if (typeof character !== "string") throw new TypeError("Expected character");
15
- let count = 0;
16
- let index = source.indexOf(character);
17
- while (index !== -1) {
18
- count++;
19
- index = source.indexOf(character, index + character.length);
20
- }
21
- return count;
22
- }
23
-
24
- //#endregion
25
- export { ccount as t };
1
+ function e(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}export{e as t};
@@ -1,263 +1 @@
1
- //#region ../../node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.js
2
- /**
3
- * Map of named character references from HTML 4.
4
- *
5
- * @type {Record<string, string>}
6
- */
7
- const characterEntitiesHtml4 = {
8
- nbsp: "\xA0",
9
- iexcl: "¡",
10
- cent: "¢",
11
- pound: "£",
12
- curren: "¤",
13
- yen: "¥",
14
- brvbar: "¦",
15
- sect: "§",
16
- uml: "¨",
17
- copy: "©",
18
- ordf: "ª",
19
- laquo: "«",
20
- not: "¬",
21
- shy: "­",
22
- reg: "®",
23
- macr: "¯",
24
- deg: "°",
25
- plusmn: "±",
26
- sup2: "²",
27
- sup3: "³",
28
- acute: "´",
29
- micro: "µ",
30
- para: "¶",
31
- middot: "·",
32
- cedil: "¸",
33
- sup1: "¹",
34
- ordm: "º",
35
- raquo: "»",
36
- frac14: "¼",
37
- frac12: "½",
38
- frac34: "¾",
39
- iquest: "¿",
40
- Agrave: "À",
41
- Aacute: "Á",
42
- Acirc: "Â",
43
- Atilde: "Ã",
44
- Auml: "Ä",
45
- Aring: "Å",
46
- AElig: "Æ",
47
- Ccedil: "Ç",
48
- Egrave: "È",
49
- Eacute: "É",
50
- Ecirc: "Ê",
51
- Euml: "Ë",
52
- Igrave: "Ì",
53
- Iacute: "Í",
54
- Icirc: "Î",
55
- Iuml: "Ï",
56
- ETH: "Ð",
57
- Ntilde: "Ñ",
58
- Ograve: "Ò",
59
- Oacute: "Ó",
60
- Ocirc: "Ô",
61
- Otilde: "Õ",
62
- Ouml: "Ö",
63
- times: "×",
64
- Oslash: "Ø",
65
- Ugrave: "Ù",
66
- Uacute: "Ú",
67
- Ucirc: "Û",
68
- Uuml: "Ü",
69
- Yacute: "Ý",
70
- THORN: "Þ",
71
- szlig: "ß",
72
- agrave: "à",
73
- aacute: "á",
74
- acirc: "â",
75
- atilde: "ã",
76
- auml: "ä",
77
- aring: "å",
78
- aelig: "æ",
79
- ccedil: "ç",
80
- egrave: "è",
81
- eacute: "é",
82
- ecirc: "ê",
83
- euml: "ë",
84
- igrave: "ì",
85
- iacute: "í",
86
- icirc: "î",
87
- iuml: "ï",
88
- eth: "ð",
89
- ntilde: "ñ",
90
- ograve: "ò",
91
- oacute: "ó",
92
- ocirc: "ô",
93
- otilde: "õ",
94
- ouml: "ö",
95
- divide: "÷",
96
- oslash: "ø",
97
- ugrave: "ù",
98
- uacute: "ú",
99
- ucirc: "û",
100
- uuml: "ü",
101
- yacute: "ý",
102
- thorn: "þ",
103
- yuml: "ÿ",
104
- fnof: "ƒ",
105
- Alpha: "Α",
106
- Beta: "Β",
107
- Gamma: "Γ",
108
- Delta: "Δ",
109
- Epsilon: "Ε",
110
- Zeta: "Ζ",
111
- Eta: "Η",
112
- Theta: "Θ",
113
- Iota: "Ι",
114
- Kappa: "Κ",
115
- Lambda: "Λ",
116
- Mu: "Μ",
117
- Nu: "Ν",
118
- Xi: "Ξ",
119
- Omicron: "Ο",
120
- Pi: "Π",
121
- Rho: "Ρ",
122
- Sigma: "Σ",
123
- Tau: "Τ",
124
- Upsilon: "Υ",
125
- Phi: "Φ",
126
- Chi: "Χ",
127
- Psi: "Ψ",
128
- Omega: "Ω",
129
- alpha: "α",
130
- beta: "β",
131
- gamma: "γ",
132
- delta: "δ",
133
- epsilon: "ε",
134
- zeta: "ζ",
135
- eta: "η",
136
- theta: "θ",
137
- iota: "ι",
138
- kappa: "κ",
139
- lambda: "λ",
140
- mu: "μ",
141
- nu: "ν",
142
- xi: "ξ",
143
- omicron: "ο",
144
- pi: "π",
145
- rho: "ρ",
146
- sigmaf: "ς",
147
- sigma: "σ",
148
- tau: "τ",
149
- upsilon: "υ",
150
- phi: "φ",
151
- chi: "χ",
152
- psi: "ψ",
153
- omega: "ω",
154
- thetasym: "ϑ",
155
- upsih: "ϒ",
156
- piv: "ϖ",
157
- bull: "•",
158
- hellip: "…",
159
- prime: "′",
160
- Prime: "″",
161
- oline: "‾",
162
- frasl: "⁄",
163
- weierp: "℘",
164
- image: "ℑ",
165
- real: "ℜ",
166
- trade: "™",
167
- alefsym: "ℵ",
168
- larr: "←",
169
- uarr: "↑",
170
- rarr: "→",
171
- darr: "↓",
172
- harr: "↔",
173
- crarr: "↵",
174
- lArr: "⇐",
175
- uArr: "⇑",
176
- rArr: "⇒",
177
- dArr: "⇓",
178
- hArr: "⇔",
179
- forall: "∀",
180
- part: "∂",
181
- exist: "∃",
182
- empty: "∅",
183
- nabla: "∇",
184
- isin: "∈",
185
- notin: "∉",
186
- ni: "∋",
187
- prod: "∏",
188
- sum: "∑",
189
- minus: "−",
190
- lowast: "∗",
191
- radic: "√",
192
- prop: "∝",
193
- infin: "∞",
194
- ang: "∠",
195
- and: "∧",
196
- or: "∨",
197
- cap: "∩",
198
- cup: "∪",
199
- int: "∫",
200
- there4: "∴",
201
- sim: "∼",
202
- cong: "≅",
203
- asymp: "≈",
204
- ne: "≠",
205
- equiv: "≡",
206
- le: "≤",
207
- ge: "≥",
208
- sub: "⊂",
209
- sup: "⊃",
210
- nsub: "⊄",
211
- sube: "⊆",
212
- supe: "⊇",
213
- oplus: "⊕",
214
- otimes: "⊗",
215
- perp: "⊥",
216
- sdot: "⋅",
217
- lceil: "⌈",
218
- rceil: "⌉",
219
- lfloor: "⌊",
220
- rfloor: "⌋",
221
- lang: "〈",
222
- rang: "〉",
223
- loz: "◊",
224
- spades: "♠",
225
- clubs: "♣",
226
- hearts: "♥",
227
- diams: "♦",
228
- quot: "\"",
229
- amp: "&",
230
- lt: "<",
231
- gt: ">",
232
- OElig: "Œ",
233
- oelig: "œ",
234
- Scaron: "Š",
235
- scaron: "š",
236
- Yuml: "Ÿ",
237
- circ: "ˆ",
238
- tilde: "˜",
239
- ensp: " ",
240
- emsp: " ",
241
- thinsp: " ",
242
- zwnj: "‌",
243
- zwj: "‍",
244
- lrm: "‎",
245
- rlm: "‏",
246
- ndash: "–",
247
- mdash: "—",
248
- lsquo: "‘",
249
- rsquo: "’",
250
- sbquo: "‚",
251
- ldquo: "“",
252
- rdquo: "”",
253
- bdquo: "„",
254
- dagger: "†",
255
- Dagger: "‡",
256
- permil: "‰",
257
- lsaquo: "‹",
258
- rsaquo: "›",
259
- euro: "€"
260
- };
261
-
262
- //#endregion
263
- export { characterEntitiesHtml4 as t };
1
+ const e={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`};export{e as t};
@@ -1,117 +1 @@
1
- //#region ../../node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js
2
- /**
3
- * List of legacy HTML named character references that don’t need a trailing semicolon.
4
- *
5
- * @type {Array<string>}
6
- */
7
- const characterEntitiesLegacy = [
8
- "AElig",
9
- "AMP",
10
- "Aacute",
11
- "Acirc",
12
- "Agrave",
13
- "Aring",
14
- "Atilde",
15
- "Auml",
16
- "COPY",
17
- "Ccedil",
18
- "ETH",
19
- "Eacute",
20
- "Ecirc",
21
- "Egrave",
22
- "Euml",
23
- "GT",
24
- "Iacute",
25
- "Icirc",
26
- "Igrave",
27
- "Iuml",
28
- "LT",
29
- "Ntilde",
30
- "Oacute",
31
- "Ocirc",
32
- "Ograve",
33
- "Oslash",
34
- "Otilde",
35
- "Ouml",
36
- "QUOT",
37
- "REG",
38
- "THORN",
39
- "Uacute",
40
- "Ucirc",
41
- "Ugrave",
42
- "Uuml",
43
- "Yacute",
44
- "aacute",
45
- "acirc",
46
- "acute",
47
- "aelig",
48
- "agrave",
49
- "amp",
50
- "aring",
51
- "atilde",
52
- "auml",
53
- "brvbar",
54
- "ccedil",
55
- "cedil",
56
- "cent",
57
- "copy",
58
- "curren",
59
- "deg",
60
- "divide",
61
- "eacute",
62
- "ecirc",
63
- "egrave",
64
- "eth",
65
- "euml",
66
- "frac12",
67
- "frac14",
68
- "frac34",
69
- "gt",
70
- "iacute",
71
- "icirc",
72
- "iexcl",
73
- "igrave",
74
- "iquest",
75
- "iuml",
76
- "laquo",
77
- "lt",
78
- "macr",
79
- "micro",
80
- "middot",
81
- "nbsp",
82
- "not",
83
- "ntilde",
84
- "oacute",
85
- "ocirc",
86
- "ograve",
87
- "ordf",
88
- "ordm",
89
- "oslash",
90
- "otilde",
91
- "ouml",
92
- "para",
93
- "plusmn",
94
- "pound",
95
- "quot",
96
- "raquo",
97
- "reg",
98
- "sect",
99
- "shy",
100
- "sup1",
101
- "sup2",
102
- "sup3",
103
- "szlig",
104
- "thorn",
105
- "times",
106
- "uacute",
107
- "ucirc",
108
- "ugrave",
109
- "uml",
110
- "uuml",
111
- "yacute",
112
- "yen",
113
- "yuml"
114
- ];
115
-
116
- //#endregion
117
- export { characterEntitiesLegacy as t };
1
+ const e=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`);export{e as t};