@zh-xx/antu 0.9.1 → 0.11.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.
package/lib/html.mjs ADDED
@@ -0,0 +1,1425 @@
1
+ // Antu 0.11.0
2
+ // Copyright (C) 2026 Ji Cheng
3
+ //
4
+ // Antu is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public
5
+ // License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any
6
+ // later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
7
+ // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the licence below.
8
+ //
9
+ // Additional permission under section 7 of the GNU Affero General Public License, version 3: A page made with Antu
10
+ // contains Antu's code together with the diagram data you gave it. The diagram data, and the content of the diagram
11
+ // you drew from your material, are not part of Antu and are not covered by this licence: you may keep them private,
12
+ // publish them, or sell them on any terms you like. This licence covers Antu's code in the page, and the notices in
13
+ // the page must stay with it.
14
+ //
15
+ // Corresponding Source of this version: https://github.com/zh-xx/Antu/tree/v0.11.0
16
+ // The licence: https://github.com/zh-xx/Antu/blob/v0.11.0/LICENSE
17
+ // Third-party notices: https://github.com/zh-xx/Antu/blob/v0.11.0/skills/antu/THIRD-PARTY-NOTICES.md
18
+ //
19
+ // === The licence of Antu ===
20
+ //
21
+ // GNU AFFERO GENERAL PUBLIC LICENSE
22
+ // Version 3, 19 November 2007
23
+ //
24
+ // Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
25
+ // Everyone is permitted to copy and distribute verbatim copies
26
+ // of this license document, but changing it is not allowed.
27
+ //
28
+ // Preamble
29
+ //
30
+ // The GNU Affero General Public License is a free, copyleft license for
31
+ // software and other kinds of works, specifically designed to ensure
32
+ // cooperation with the community in the case of network server software.
33
+ //
34
+ // The licenses for most software and other practical works are designed
35
+ // to take away your freedom to share and change the works. By contrast,
36
+ // our General Public Licenses are intended to guarantee your freedom to
37
+ // share and change all versions of a program--to make sure it remains free
38
+ // software for all its users.
39
+ //
40
+ // When we speak of free software, we are referring to freedom, not
41
+ // price. Our General Public Licenses are designed to make sure that you
42
+ // have the freedom to distribute copies of free software (and charge for
43
+ // them if you wish), that you receive source code or can get it if you
44
+ // want it, that you can change the software or use pieces of it in new
45
+ // free programs, and that you know you can do these things.
46
+ //
47
+ // Developers that use our General Public Licenses protect your rights
48
+ // with two steps: (1) assert copyright on the software, and (2) offer
49
+ // you this License which gives you legal permission to copy, distribute
50
+ // and/or modify the software.
51
+ //
52
+ // A secondary benefit of defending all users' freedom is that
53
+ // improvements made in alternate versions of the program, if they
54
+ // receive widespread use, become available for other developers to
55
+ // incorporate. Many developers of free software are heartened and
56
+ // encouraged by the resulting cooperation. However, in the case of
57
+ // software used on network servers, this result may fail to come about.
58
+ // The GNU General Public License permits making a modified version and
59
+ // letting the public access it on a server without ever releasing its
60
+ // source code to the public.
61
+ //
62
+ // The GNU Affero General Public License is designed specifically to
63
+ // ensure that, in such cases, the modified source code becomes available
64
+ // to the community. It requires the operator of a network server to
65
+ // provide the source code of the modified version running there to the
66
+ // users of that server. Therefore, public use of a modified version, on
67
+ // a publicly accessible server, gives the public access to the source
68
+ // code of the modified version.
69
+ //
70
+ // An older license, called the Affero General Public License and
71
+ // published by Affero, was designed to accomplish similar goals. This is
72
+ // a different license, not a version of the Affero GPL, but Affero has
73
+ // released a new version of the Affero GPL which permits relicensing under
74
+ // this license.
75
+ //
76
+ // The precise terms and conditions for copying, distribution and
77
+ // modification follow.
78
+ //
79
+ // TERMS AND CONDITIONS
80
+ //
81
+ // 0. Definitions.
82
+ //
83
+ // "This License" refers to version 3 of the GNU Affero General Public License.
84
+ //
85
+ // "Copyright" also means copyright-like laws that apply to other kinds of
86
+ // works, such as semiconductor masks.
87
+ //
88
+ // "The Program" refers to any copyrightable work licensed under this
89
+ // License. Each licensee is addressed as "you". "Licensees" and
90
+ // "recipients" may be individuals or organizations.
91
+ //
92
+ // To "modify" a work means to copy from or adapt all or part of the work
93
+ // in a fashion requiring copyright permission, other than the making of an
94
+ // exact copy. The resulting work is called a "modified version" of the
95
+ // earlier work or a work "based on" the earlier work.
96
+ //
97
+ // A "covered work" means either the unmodified Program or a work based
98
+ // on the Program.
99
+ //
100
+ // To "propagate" a work means to do anything with it that, without
101
+ // permission, would make you directly or secondarily liable for
102
+ // infringement under applicable copyright law, except executing it on a
103
+ // computer or modifying a private copy. Propagation includes copying,
104
+ // distribution (with or without modification), making available to the
105
+ // public, and in some countries other activities as well.
106
+ //
107
+ // To "convey" a work means any kind of propagation that enables other
108
+ // parties to make or receive copies. Mere interaction with a user through
109
+ // a computer network, with no transfer of a copy, is not conveying.
110
+ //
111
+ // An interactive user interface displays "Appropriate Legal Notices"
112
+ // to the extent that it includes a convenient and prominently visible
113
+ // feature that (1) displays an appropriate copyright notice, and (2)
114
+ // tells the user that there is no warranty for the work (except to the
115
+ // extent that warranties are provided), that licensees may convey the
116
+ // work under this License, and how to view a copy of this License. If
117
+ // the interface presents a list of user commands or options, such as a
118
+ // menu, a prominent item in the list meets this criterion.
119
+ //
120
+ // 1. Source Code.
121
+ //
122
+ // The "source code" for a work means the preferred form of the work
123
+ // for making modifications to it. "Object code" means any non-source
124
+ // form of a work.
125
+ //
126
+ // A "Standard Interface" means an interface that either is an official
127
+ // standard defined by a recognized standards body, or, in the case of
128
+ // interfaces specified for a particular programming language, one that
129
+ // is widely used among developers working in that language.
130
+ //
131
+ // The "System Libraries" of an executable work include anything, other
132
+ // than the work as a whole, that (a) is included in the normal form of
133
+ // packaging a Major Component, but which is not part of that Major
134
+ // Component, and (b) serves only to enable use of the work with that
135
+ // Major Component, or to implement a Standard Interface for which an
136
+ // implementation is available to the public in source code form. A
137
+ // "Major Component", in this context, means a major essential component
138
+ // (kernel, window system, and so on) of the specific operating system
139
+ // (if any) on which the executable work runs, or a compiler used to
140
+ // produce the work, or an object code interpreter used to run it.
141
+ //
142
+ // The "Corresponding Source" for a work in object code form means all
143
+ // the source code needed to generate, install, and (for an executable
144
+ // work) run the object code and to modify the work, including scripts to
145
+ // control those activities. However, it does not include the work's
146
+ // System Libraries, or general-purpose tools or generally available free
147
+ // programs which are used unmodified in performing those activities but
148
+ // which are not part of the work. For example, Corresponding Source
149
+ // includes interface definition files associated with source files for
150
+ // the work, and the source code for shared libraries and dynamically
151
+ // linked subprograms that the work is specifically designed to require,
152
+ // such as by intimate data communication or control flow between those
153
+ // subprograms and other parts of the work.
154
+ //
155
+ // The Corresponding Source need not include anything that users
156
+ // can regenerate automatically from other parts of the Corresponding
157
+ // Source.
158
+ //
159
+ // The Corresponding Source for a work in source code form is that
160
+ // same work.
161
+ //
162
+ // 2. Basic Permissions.
163
+ //
164
+ // All rights granted under this License are granted for the term of
165
+ // copyright on the Program, and are irrevocable provided the stated
166
+ // conditions are met. This License explicitly affirms your unlimited
167
+ // permission to run the unmodified Program. The output from running a
168
+ // covered work is covered by this License only if the output, given its
169
+ // content, constitutes a covered work. This License acknowledges your
170
+ // rights of fair use or other equivalent, as provided by copyright law.
171
+ //
172
+ // You may make, run and propagate covered works that you do not
173
+ // convey, without conditions so long as your license otherwise remains
174
+ // in force. You may convey covered works to others for the sole purpose
175
+ // of having them make modifications exclusively for you, or provide you
176
+ // with facilities for running those works, provided that you comply with
177
+ // the terms of this License in conveying all material for which you do
178
+ // not control copyright. Those thus making or running the covered works
179
+ // for you must do so exclusively on your behalf, under your direction
180
+ // and control, on terms that prohibit them from making any copies of
181
+ // your copyrighted material outside their relationship with you.
182
+ //
183
+ // Conveying under any other circumstances is permitted solely under
184
+ // the conditions stated below. Sublicensing is not allowed; section 10
185
+ // makes it unnecessary.
186
+ //
187
+ // 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
188
+ //
189
+ // No covered work shall be deemed part of an effective technological
190
+ // measure under any applicable law fulfilling obligations under article
191
+ // 11 of the WIPO copyright treaty adopted on 20 December 1996, or
192
+ // similar laws prohibiting or restricting circumvention of such
193
+ // measures.
194
+ //
195
+ // When you convey a covered work, you waive any legal power to forbid
196
+ // circumvention of technological measures to the extent such circumvention
197
+ // is effected by exercising rights under this License with respect to
198
+ // the covered work, and you disclaim any intention to limit operation or
199
+ // modification of the work as a means of enforcing, against the work's
200
+ // users, your or third parties' legal rights to forbid circumvention of
201
+ // technological measures.
202
+ //
203
+ // 4. Conveying Verbatim Copies.
204
+ //
205
+ // You may convey verbatim copies of the Program's source code as you
206
+ // receive it, in any medium, provided that you conspicuously and
207
+ // appropriately publish on each copy an appropriate copyright notice;
208
+ // keep intact all notices stating that this License and any
209
+ // non-permissive terms added in accord with section 7 apply to the code;
210
+ // keep intact all notices of the absence of any warranty; and give all
211
+ // recipients a copy of this License along with the Program.
212
+ //
213
+ // You may charge any price or no price for each copy that you convey,
214
+ // and you may offer support or warranty protection for a fee.
215
+ //
216
+ // 5. Conveying Modified Source Versions.
217
+ //
218
+ // You may convey a work based on the Program, or the modifications to
219
+ // produce it from the Program, in the form of source code under the
220
+ // terms of section 4, provided that you also meet all of these conditions:
221
+ //
222
+ // a) The work must carry prominent notices stating that you modified
223
+ // it, and giving a relevant date.
224
+ //
225
+ // b) The work must carry prominent notices stating that it is
226
+ // released under this License and any conditions added under section
227
+ // 7. This requirement modifies the requirement in section 4 to
228
+ // "keep intact all notices".
229
+ //
230
+ // c) You must license the entire work, as a whole, under this
231
+ // License to anyone who comes into possession of a copy. This
232
+ // License will therefore apply, along with any applicable section 7
233
+ // additional terms, to the whole of the work, and all its parts,
234
+ // regardless of how they are packaged. This License gives no
235
+ // permission to license the work in any other way, but it does not
236
+ // invalidate such permission if you have separately received it.
237
+ //
238
+ // d) If the work has interactive user interfaces, each must display
239
+ // Appropriate Legal Notices; however, if the Program has interactive
240
+ // interfaces that do not display Appropriate Legal Notices, your
241
+ // work need not make them do so.
242
+ //
243
+ // A compilation of a covered work with other separate and independent
244
+ // works, which are not by their nature extensions of the covered work,
245
+ // and which are not combined with it such as to form a larger program,
246
+ // in or on a volume of a storage or distribution medium, is called an
247
+ // "aggregate" if the compilation and its resulting copyright are not
248
+ // used to limit the access or legal rights of the compilation's users
249
+ // beyond what the individual works permit. Inclusion of a covered work
250
+ // in an aggregate does not cause this License to apply to the other
251
+ // parts of the aggregate.
252
+ //
253
+ // 6. Conveying Non-Source Forms.
254
+ //
255
+ // You may convey a covered work in object code form under the terms
256
+ // of sections 4 and 5, provided that you also convey the
257
+ // machine-readable Corresponding Source under the terms of this License,
258
+ // in one of these ways:
259
+ //
260
+ // a) Convey the object code in, or embodied in, a physical product
261
+ // (including a physical distribution medium), accompanied by the
262
+ // Corresponding Source fixed on a durable physical medium
263
+ // customarily used for software interchange.
264
+ //
265
+ // b) Convey the object code in, or embodied in, a physical product
266
+ // (including a physical distribution medium), accompanied by a
267
+ // written offer, valid for at least three years and valid for as
268
+ // long as you offer spare parts or customer support for that product
269
+ // model, to give anyone who possesses the object code either (1) a
270
+ // copy of the Corresponding Source for all the software in the
271
+ // product that is covered by this License, on a durable physical
272
+ // medium customarily used for software interchange, for a price no
273
+ // more than your reasonable cost of physically performing this
274
+ // conveying of source, or (2) access to copy the
275
+ // Corresponding Source from a network server at no charge.
276
+ //
277
+ // c) Convey individual copies of the object code with a copy of the
278
+ // written offer to provide the Corresponding Source. This
279
+ // alternative is allowed only occasionally and noncommercially, and
280
+ // only if you received the object code with such an offer, in accord
281
+ // with subsection 6b.
282
+ //
283
+ // d) Convey the object code by offering access from a designated
284
+ // place (gratis or for a charge), and offer equivalent access to the
285
+ // Corresponding Source in the same way through the same place at no
286
+ // further charge. You need not require recipients to copy the
287
+ // Corresponding Source along with the object code. If the place to
288
+ // copy the object code is a network server, the Corresponding Source
289
+ // may be on a different server (operated by you or a third party)
290
+ // that supports equivalent copying facilities, provided you maintain
291
+ // clear directions next to the object code saying where to find the
292
+ // Corresponding Source. Regardless of what server hosts the
293
+ // Corresponding Source, you remain obligated to ensure that it is
294
+ // available for as long as needed to satisfy these requirements.
295
+ //
296
+ // e) Convey the object code using peer-to-peer transmission, provided
297
+ // you inform other peers where the object code and Corresponding
298
+ // Source of the work are being offered to the general public at no
299
+ // charge under subsection 6d.
300
+ //
301
+ // A separable portion of the object code, whose source code is excluded
302
+ // from the Corresponding Source as a System Library, need not be
303
+ // included in conveying the object code work.
304
+ //
305
+ // A "User Product" is either (1) a "consumer product", which means any
306
+ // tangible personal property which is normally used for personal, family,
307
+ // or household purposes, or (2) anything designed or sold for incorporation
308
+ // into a dwelling. In determining whether a product is a consumer product,
309
+ // doubtful cases shall be resolved in favor of coverage. For a particular
310
+ // product received by a particular user, "normally used" refers to a
311
+ // typical or common use of that class of product, regardless of the status
312
+ // of the particular user or of the way in which the particular user
313
+ // actually uses, or expects or is expected to use, the product. A product
314
+ // is a consumer product regardless of whether the product has substantial
315
+ // commercial, industrial or non-consumer uses, unless such uses represent
316
+ // the only significant mode of use of the product.
317
+ //
318
+ // "Installation Information" for a User Product means any methods,
319
+ // procedures, authorization keys, or other information required to install
320
+ // and execute modified versions of a covered work in that User Product from
321
+ // a modified version of its Corresponding Source. The information must
322
+ // suffice to ensure that the continued functioning of the modified object
323
+ // code is in no case prevented or interfered with solely because
324
+ // modification has been made.
325
+ //
326
+ // If you convey an object code work under this section in, or with, or
327
+ // specifically for use in, a User Product, and the conveying occurs as
328
+ // part of a transaction in which the right of possession and use of the
329
+ // User Product is transferred to the recipient in perpetuity or for a
330
+ // fixed term (regardless of how the transaction is characterized), the
331
+ // Corresponding Source conveyed under this section must be accompanied
332
+ // by the Installation Information. But this requirement does not apply
333
+ // if neither you nor any third party retains the ability to install
334
+ // modified object code on the User Product (for example, the work has
335
+ // been installed in ROM).
336
+ //
337
+ // The requirement to provide Installation Information does not include a
338
+ // requirement to continue to provide support service, warranty, or updates
339
+ // for a work that has been modified or installed by the recipient, or for
340
+ // the User Product in which it has been modified or installed. Access to a
341
+ // network may be denied when the modification itself materially and
342
+ // adversely affects the operation of the network or violates the rules and
343
+ // protocols for communication across the network.
344
+ //
345
+ // Corresponding Source conveyed, and Installation Information provided,
346
+ // in accord with this section must be in a format that is publicly
347
+ // documented (and with an implementation available to the public in
348
+ // source code form), and must require no special password or key for
349
+ // unpacking, reading or copying.
350
+ //
351
+ // 7. Additional Terms.
352
+ //
353
+ // "Additional permissions" are terms that supplement the terms of this
354
+ // License by making exceptions from one or more of its conditions.
355
+ // Additional permissions that are applicable to the entire Program shall
356
+ // be treated as though they were included in this License, to the extent
357
+ // that they are valid under applicable law. If additional permissions
358
+ // apply only to part of the Program, that part may be used separately
359
+ // under those permissions, but the entire Program remains governed by
360
+ // this License without regard to the additional permissions.
361
+ //
362
+ // When you convey a copy of a covered work, you may at your option
363
+ // remove any additional permissions from that copy, or from any part of
364
+ // it. (Additional permissions may be written to require their own
365
+ // removal in certain cases when you modify the work.) You may place
366
+ // additional permissions on material, added by you to a covered work,
367
+ // for which you have or can give appropriate copyright permission.
368
+ //
369
+ // Notwithstanding any other provision of this License, for material you
370
+ // add to a covered work, you may (if authorized by the copyright holders of
371
+ // that material) supplement the terms of this License with terms:
372
+ //
373
+ // a) Disclaiming warranty or limiting liability differently from the
374
+ // terms of sections 15 and 16 of this License; or
375
+ //
376
+ // b) Requiring preservation of specified reasonable legal notices or
377
+ // author attributions in that material or in the Appropriate Legal
378
+ // Notices displayed by works containing it; or
379
+ //
380
+ // c) Prohibiting misrepresentation of the origin of that material, or
381
+ // requiring that modified versions of such material be marked in
382
+ // reasonable ways as different from the original version; or
383
+ //
384
+ // d) Limiting the use for publicity purposes of names of licensors or
385
+ // authors of the material; or
386
+ //
387
+ // e) Declining to grant rights under trademark law for use of some
388
+ // trade names, trademarks, or service marks; or
389
+ //
390
+ // f) Requiring indemnification of licensors and authors of that
391
+ // material by anyone who conveys the material (or modified versions of
392
+ // it) with contractual assumptions of liability to the recipient, for
393
+ // any liability that these contractual assumptions directly impose on
394
+ // those licensors and authors.
395
+ //
396
+ // All other non-permissive additional terms are considered "further
397
+ // restrictions" within the meaning of section 10. If the Program as you
398
+ // received it, or any part of it, contains a notice stating that it is
399
+ // governed by this License along with a term that is a further
400
+ // restriction, you may remove that term. If a license document contains
401
+ // a further restriction but permits relicensing or conveying under this
402
+ // License, you may add to a covered work material governed by the terms
403
+ // of that license document, provided that the further restriction does
404
+ // not survive such relicensing or conveying.
405
+ //
406
+ // If you add terms to a covered work in accord with this section, you
407
+ // must place, in the relevant source files, a statement of the
408
+ // additional terms that apply to those files, or a notice indicating
409
+ // where to find the applicable terms.
410
+ //
411
+ // Additional terms, permissive or non-permissive, may be stated in the
412
+ // form of a separately written license, or stated as exceptions;
413
+ // the above requirements apply either way.
414
+ //
415
+ // 8. Termination.
416
+ //
417
+ // You may not propagate or modify a covered work except as expressly
418
+ // provided under this License. Any attempt otherwise to propagate or
419
+ // modify it is void, and will automatically terminate your rights under
420
+ // this License (including any patent licenses granted under the third
421
+ // paragraph of section 11).
422
+ //
423
+ // However, if you cease all violation of this License, then your
424
+ // license from a particular copyright holder is reinstated (a)
425
+ // provisionally, unless and until the copyright holder explicitly and
426
+ // finally terminates your license, and (b) permanently, if the copyright
427
+ // holder fails to notify you of the violation by some reasonable means
428
+ // prior to 60 days after the cessation.
429
+ //
430
+ // Moreover, your license from a particular copyright holder is
431
+ // reinstated permanently if the copyright holder notifies you of the
432
+ // violation by some reasonable means, this is the first time you have
433
+ // received notice of violation of this License (for any work) from that
434
+ // copyright holder, and you cure the violation prior to 30 days after
435
+ // your receipt of the notice.
436
+ //
437
+ // Termination of your rights under this section does not terminate the
438
+ // licenses of parties who have received copies or rights from you under
439
+ // this License. If your rights have been terminated and not permanently
440
+ // reinstated, you do not qualify to receive new licenses for the same
441
+ // material under section 10.
442
+ //
443
+ // 9. Acceptance Not Required for Having Copies.
444
+ //
445
+ // You are not required to accept this License in order to receive or
446
+ // run a copy of the Program. Ancillary propagation of a covered work
447
+ // occurring solely as a consequence of using peer-to-peer transmission
448
+ // to receive a copy likewise does not require acceptance. However,
449
+ // nothing other than this License grants you permission to propagate or
450
+ // modify any covered work. These actions infringe copyright if you do
451
+ // not accept this License. Therefore, by modifying or propagating a
452
+ // covered work, you indicate your acceptance of this License to do so.
453
+ //
454
+ // 10. Automatic Licensing of Downstream Recipients.
455
+ //
456
+ // Each time you convey a covered work, the recipient automatically
457
+ // receives a license from the original licensors, to run, modify and
458
+ // propagate that work, subject to this License. You are not responsible
459
+ // for enforcing compliance by third parties with this License.
460
+ //
461
+ // An "entity transaction" is a transaction transferring control of an
462
+ // organization, or substantially all assets of one, or subdividing an
463
+ // organization, or merging organizations. If propagation of a covered
464
+ // work results from an entity transaction, each party to that
465
+ // transaction who receives a copy of the work also receives whatever
466
+ // licenses to the work the party's predecessor in interest had or could
467
+ // give under the previous paragraph, plus a right to possession of the
468
+ // Corresponding Source of the work from the predecessor in interest, if
469
+ // the predecessor has it or can get it with reasonable efforts.
470
+ //
471
+ // You may not impose any further restrictions on the exercise of the
472
+ // rights granted or affirmed under this License. For example, you may
473
+ // not impose a license fee, royalty, or other charge for exercise of
474
+ // rights granted under this License, and you may not initiate litigation
475
+ // (including a cross-claim or counterclaim in a lawsuit) alleging that
476
+ // any patent claim is infringed by making, using, selling, offering for
477
+ // sale, or importing the Program or any portion of it.
478
+ //
479
+ // 11. Patents.
480
+ //
481
+ // A "contributor" is a copyright holder who authorizes use under this
482
+ // License of the Program or a work on which the Program is based. The
483
+ // work thus licensed is called the contributor's "contributor version".
484
+ //
485
+ // A contributor's "essential patent claims" are all patent claims
486
+ // owned or controlled by the contributor, whether already acquired or
487
+ // hereafter acquired, that would be infringed by some manner, permitted
488
+ // by this License, of making, using, or selling its contributor version,
489
+ // but do not include claims that would be infringed only as a
490
+ // consequence of further modification of the contributor version. For
491
+ // purposes of this definition, "control" includes the right to grant
492
+ // patent sublicenses in a manner consistent with the requirements of
493
+ // this License.
494
+ //
495
+ // Each contributor grants you a non-exclusive, worldwide, royalty-free
496
+ // patent license under the contributor's essential patent claims, to
497
+ // make, use, sell, offer for sale, import and otherwise run, modify and
498
+ // propagate the contents of its contributor version.
499
+ //
500
+ // In the following three paragraphs, a "patent license" is any express
501
+ // agreement or commitment, however denominated, not to enforce a patent
502
+ // (such as an express permission to practice a patent or covenant not to
503
+ // sue for patent infringement). To "grant" such a patent license to a
504
+ // party means to make such an agreement or commitment not to enforce a
505
+ // patent against the party.
506
+ //
507
+ // If you convey a covered work, knowingly relying on a patent license,
508
+ // and the Corresponding Source of the work is not available for anyone
509
+ // to copy, free of charge and under the terms of this License, through a
510
+ // publicly available network server or other readily accessible means,
511
+ // then you must either (1) cause the Corresponding Source to be so
512
+ // available, or (2) arrange to deprive yourself of the benefit of the
513
+ // patent license for this particular work, or (3) arrange, in a manner
514
+ // consistent with the requirements of this License, to extend the patent
515
+ // license to downstream recipients. "Knowingly relying" means you have
516
+ // actual knowledge that, but for the patent license, your conveying the
517
+ // covered work in a country, or your recipient's use of the covered work
518
+ // in a country, would infringe one or more identifiable patents in that
519
+ // country that you have reason to believe are valid.
520
+ //
521
+ // If, pursuant to or in connection with a single transaction or
522
+ // arrangement, you convey, or propagate by procuring conveyance of, a
523
+ // covered work, and grant a patent license to some of the parties
524
+ // receiving the covered work authorizing them to use, propagate, modify
525
+ // or convey a specific copy of the covered work, then the patent license
526
+ // you grant is automatically extended to all recipients of the covered
527
+ // work and works based on it.
528
+ //
529
+ // A patent license is "discriminatory" if it does not include within
530
+ // the scope of its coverage, prohibits the exercise of, or is
531
+ // conditioned on the non-exercise of one or more of the rights that are
532
+ // specifically granted under this License. You may not convey a covered
533
+ // work if you are a party to an arrangement with a third party that is
534
+ // in the business of distributing software, under which you make payment
535
+ // to the third party based on the extent of your activity of conveying
536
+ // the work, and under which the third party grants, to any of the
537
+ // parties who would receive the covered work from you, a discriminatory
538
+ // patent license (a) in connection with copies of the covered work
539
+ // conveyed by you (or copies made from those copies), or (b) primarily
540
+ // for and in connection with specific products or compilations that
541
+ // contain the covered work, unless you entered into that arrangement,
542
+ // or that patent license was granted, prior to 28 March 2007.
543
+ //
544
+ // Nothing in this License shall be construed as excluding or limiting
545
+ // any implied license or other defenses to infringement that may
546
+ // otherwise be available to you under applicable patent law.
547
+ //
548
+ // 12. No Surrender of Others' Freedom.
549
+ //
550
+ // If conditions are imposed on you (whether by court order, agreement or
551
+ // otherwise) that contradict the conditions of this License, they do not
552
+ // excuse you from the conditions of this License. If you cannot convey a
553
+ // covered work so as to satisfy simultaneously your obligations under this
554
+ // License and any other pertinent obligations, then as a consequence you may
555
+ // not convey it at all. For example, if you agree to terms that obligate you
556
+ // to collect a royalty for further conveying from those to whom you convey
557
+ // the Program, the only way you could satisfy both those terms and this
558
+ // License would be to refrain entirely from conveying the Program.
559
+ //
560
+ // 13. Remote Network Interaction; Use with the GNU General Public License.
561
+ //
562
+ // Notwithstanding any other provision of this License, if you modify the
563
+ // Program, your modified version must prominently offer all users
564
+ // interacting with it remotely through a computer network (if your version
565
+ // supports such interaction) an opportunity to receive the Corresponding
566
+ // Source of your version by providing access to the Corresponding Source
567
+ // from a network server at no charge, through some standard or customary
568
+ // means of facilitating copying of software. This Corresponding Source
569
+ // shall include the Corresponding Source for any work covered by version 3
570
+ // of the GNU General Public License that is incorporated pursuant to the
571
+ // following paragraph.
572
+ //
573
+ // Notwithstanding any other provision of this License, you have
574
+ // permission to link or combine any covered work with a work licensed
575
+ // under version 3 of the GNU General Public License into a single
576
+ // combined work, and to convey the resulting work. The terms of this
577
+ // License will continue to apply to the part which is the covered work,
578
+ // but the work with which it is combined will remain governed by version
579
+ // 3 of the GNU General Public License.
580
+ //
581
+ // 14. Revised Versions of this License.
582
+ //
583
+ // The Free Software Foundation may publish revised and/or new versions of
584
+ // the GNU Affero General Public License from time to time. Such new versions
585
+ // will be similar in spirit to the present version, but may differ in detail to
586
+ // address new problems or concerns.
587
+ //
588
+ // Each version is given a distinguishing version number. If the
589
+ // Program specifies that a certain numbered version of the GNU Affero General
590
+ // Public License "or any later version" applies to it, you have the
591
+ // option of following the terms and conditions either of that numbered
592
+ // version or of any later version published by the Free Software
593
+ // Foundation. If the Program does not specify a version number of the
594
+ // GNU Affero General Public License, you may choose any version ever published
595
+ // by the Free Software Foundation.
596
+ //
597
+ // If the Program specifies that a proxy can decide which future
598
+ // versions of the GNU Affero General Public License can be used, that proxy's
599
+ // public statement of acceptance of a version permanently authorizes you
600
+ // to choose that version for the Program.
601
+ //
602
+ // Later license versions may give you additional or different
603
+ // permissions. However, no additional obligations are imposed on any
604
+ // author or copyright holder as a result of your choosing to follow a
605
+ // later version.
606
+ //
607
+ // 15. Disclaimer of Warranty.
608
+ //
609
+ // THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
610
+ // APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
611
+ // HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
612
+ // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
613
+ // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
614
+ // PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
615
+ // IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
616
+ // ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
617
+ //
618
+ // 16. Limitation of Liability.
619
+ //
620
+ // IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
621
+ // WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
622
+ // THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
623
+ // GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
624
+ // USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
625
+ // DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
626
+ // PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
627
+ // EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
628
+ // SUCH DAMAGES.
629
+ //
630
+ // 17. Interpretation of Sections 15 and 16.
631
+ //
632
+ // If the disclaimer of warranty and limitation of liability provided
633
+ // above cannot be given local legal effect according to their terms,
634
+ // reviewing courts shall apply local law that most closely approximates
635
+ // an absolute waiver of all civil liability in connection with the
636
+ // Program, unless a warranty or assumption of liability accompanies a
637
+ // copy of the Program in return for a fee.
638
+ //
639
+ // END OF TERMS AND CONDITIONS
640
+ //
641
+ // How to Apply These Terms to Your New Programs
642
+ //
643
+ // If you develop a new program, and you want it to be of the greatest
644
+ // possible use to the public, the best way to achieve this is to make it
645
+ // free software which everyone can redistribute and change under these terms.
646
+ //
647
+ // To do so, attach the following notices to the program. It is safest
648
+ // to attach them to the start of each source file to most effectively
649
+ // state the exclusion of warranty; and each file should have at least
650
+ // the "copyright" line and a pointer to where the full notice is found.
651
+ //
652
+ // <one line to give the program's name and a brief idea of what it does.>
653
+ // Copyright (C) <year> <name of author>
654
+ //
655
+ // This program is free software: you can redistribute it and/or modify
656
+ // it under the terms of the GNU Affero General Public License as published
657
+ // by the Free Software Foundation, either version 3 of the License, or
658
+ // (at your option) any later version.
659
+ //
660
+ // This program is distributed in the hope that it will be useful,
661
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
662
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
663
+ // GNU Affero General Public License for more details.
664
+ //
665
+ // You should have received a copy of the GNU Affero General Public License
666
+ // along with this program. If not, see <https://www.gnu.org/licenses/>.
667
+ //
668
+ // Also add information on how to contact you by electronic and paper mail.
669
+ //
670
+ // If your software can interact with users remotely through a computer
671
+ // network, you should also make sure that it provides a way for users to
672
+ // get its source. For example, if your program is a web application, its
673
+ // interface could display a "Source" link that leads users to an archive
674
+ // of the code. There are many ways you could offer source, and different
675
+ // solutions will be better for different programs; see section 13 for the
676
+ // specific requirements.
677
+ //
678
+ // You should also get your employer (if you work as a programmer) or school,
679
+ // if any, to sign a "copyright disclaimer" for the program, if necessary.
680
+ // For more information on this, and how to apply and follow the GNU AGPL, see
681
+ // <https://www.gnu.org/licenses/>.
682
+ //
683
+ // === Third-party notices ===
684
+ //
685
+ // # Third-party notices
686
+ //
687
+ // Antu itself is licensed under the GNU Affero General Public License, version 3 or any later version (see LICENSE).
688
+ // Its pages (assets/viewer.html and every page made from it) and its command line (scripts/antu.mjs) contain the
689
+ // code of the packages below. Each is used under its own licence, and its notice is kept here as the package ships it.
690
+ //
691
+ // | Package | Licence |
692
+ // | --- | --- |
693
+ // | @xyflow/react | MIT |
694
+ // | @xyflow/system | MIT |
695
+ // | classcat | MIT |
696
+ // | d3-color | ISC |
697
+ // | d3-dispatch | ISC |
698
+ // | d3-drag | ISC |
699
+ // | d3-ease | BSD-3-Clause |
700
+ // | d3-interpolate | ISC |
701
+ // | d3-selection | ISC |
702
+ // | d3-timer | ISC |
703
+ // | d3-transition | ISC |
704
+ // | d3-zoom | ISC |
705
+ // | elkjs | EPL-2.0 OR GPL-3.0-or-later |
706
+ // | html-to-image | MIT |
707
+ // | react | MIT |
708
+ // | react-dom | MIT |
709
+ // | scheduler | MIT |
710
+ // | use-sync-external-store | MIT |
711
+ // | zustand | MIT |
712
+ //
713
+ // ## elkjs
714
+ //
715
+ // elkjs (the layout engine) is offered under `EPL-2.0 OR GPL-3.0-or-later`. Antu uses it under the **GNU General Public
716
+ // License, version 3 or any later version**, which can be combined with the GNU AGPL (section 13 of each licence).
717
+ // The licence file that comes with the package is the Eclipse Public License 2.0 and is reproduced below as shipped.
718
+ // The GNU GPL version 3 is at https://www.gnu.org/licenses/gpl-3.0.txt. Source of elkjs: https://github.com/kieler/elkjs
719
+ //
720
+ // ## The notices
721
+ //
722
+ // ### @xyflow/react
723
+ //
724
+ // Licence: MIT. Source: https://github.com/xyflow/xyflow
725
+ //
726
+ // ````text
727
+ // MIT License
728
+ //
729
+ // Copyright (c) 2019-2025 webkid GmbH
730
+ //
731
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
732
+ // of this software and associated documentation files (the "Software"), to deal
733
+ // in the Software without restriction, including without limitation the rights
734
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
735
+ // copies of the Software, and to permit persons to whom the Software is
736
+ // furnished to do so, subject to the following conditions:
737
+ //
738
+ // The above copyright notice and this permission notice shall be included in all
739
+ // copies or substantial portions of the Software.
740
+ //
741
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
742
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
743
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
744
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
745
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
746
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
747
+ // SOFTWARE.
748
+ // ````
749
+ //
750
+ // ### @xyflow/system
751
+ //
752
+ // Licence: MIT. Source: https://github.com/xyflow/xyflow
753
+ //
754
+ // ````text
755
+ // MIT License
756
+ //
757
+ // Copyright (c) 2019-2025 webkid GmbH
758
+ //
759
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
760
+ // of this software and associated documentation files (the "Software"), to deal
761
+ // in the Software without restriction, including without limitation the rights
762
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
763
+ // copies of the Software, and to permit persons to whom the Software is
764
+ // furnished to do so, subject to the following conditions:
765
+ //
766
+ // The above copyright notice and this permission notice shall be included in all
767
+ // copies or substantial portions of the Software.
768
+ //
769
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
770
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
771
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
772
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
773
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
774
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
775
+ // SOFTWARE.
776
+ // ````
777
+ //
778
+ // ### classcat
779
+ //
780
+ // Licence: MIT. Source: jorgebucaran/classcat
781
+ //
782
+ // ````text
783
+ // Copyright © Jorge Bucaran <<https://jorgebucaran.com>>
784
+ //
785
+ // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
786
+ //
787
+ // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
788
+ //
789
+ // THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
790
+ // ````
791
+ //
792
+ // ### d3-color
793
+ //
794
+ // Licence: ISC. Source: https://github.com/d3/d3-color
795
+ //
796
+ // ````text
797
+ // Copyright 2010-2022 Mike Bostock
798
+ //
799
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
800
+ // with or without fee is hereby granted, provided that the above copyright notice
801
+ // and this permission notice appear in all copies.
802
+ //
803
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
804
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
805
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
806
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
807
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
808
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
809
+ // THIS SOFTWARE.
810
+ // ````
811
+ //
812
+ // ### d3-dispatch
813
+ //
814
+ // Licence: ISC. Source: https://github.com/d3/d3-dispatch
815
+ //
816
+ // ````text
817
+ // Copyright 2010-2021 Mike Bostock
818
+ //
819
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
820
+ // with or without fee is hereby granted, provided that the above copyright notice
821
+ // and this permission notice appear in all copies.
822
+ //
823
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
824
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
825
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
826
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
827
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
828
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
829
+ // THIS SOFTWARE.
830
+ // ````
831
+ //
832
+ // ### d3-drag
833
+ //
834
+ // Licence: ISC. Source: https://github.com/d3/d3-drag
835
+ //
836
+ // ````text
837
+ // Copyright 2010-2021 Mike Bostock
838
+ //
839
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
840
+ // with or without fee is hereby granted, provided that the above copyright notice
841
+ // and this permission notice appear in all copies.
842
+ //
843
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
844
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
845
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
846
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
847
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
848
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
849
+ // THIS SOFTWARE.
850
+ // ````
851
+ //
852
+ // ### d3-ease
853
+ //
854
+ // Licence: BSD-3-Clause. Source: https://github.com/d3/d3-ease
855
+ //
856
+ // ````text
857
+ // Copyright 2010-2021 Mike Bostock
858
+ // Copyright 2001 Robert Penner
859
+ // All rights reserved.
860
+ //
861
+ // Redistribution and use in source and binary forms, with or without modification,
862
+ // are permitted provided that the following conditions are met:
863
+ //
864
+ // * Redistributions of source code must retain the above copyright notice, this
865
+ // list of conditions and the following disclaimer.
866
+ //
867
+ // * Redistributions in binary form must reproduce the above copyright notice,
868
+ // this list of conditions and the following disclaimer in the documentation
869
+ // and/or other materials provided with the distribution.
870
+ //
871
+ // * Neither the name of the author nor the names of contributors may be used to
872
+ // endorse or promote products derived from this software without specific prior
873
+ // written permission.
874
+ //
875
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
876
+ // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
877
+ // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
878
+ // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
879
+ // ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
880
+ // (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
881
+ // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
882
+ // ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
883
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
884
+ // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
885
+ // ````
886
+ //
887
+ // ### d3-interpolate
888
+ //
889
+ // Licence: ISC. Source: https://github.com/d3/d3-interpolate
890
+ //
891
+ // ````text
892
+ // Copyright 2010-2021 Mike Bostock
893
+ //
894
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
895
+ // with or without fee is hereby granted, provided that the above copyright notice
896
+ // and this permission notice appear in all copies.
897
+ //
898
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
899
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
900
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
901
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
902
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
903
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
904
+ // THIS SOFTWARE.
905
+ // ````
906
+ //
907
+ // ### d3-selection
908
+ //
909
+ // Licence: ISC. Source: https://github.com/d3/d3-selection
910
+ //
911
+ // ````text
912
+ // Copyright 2010-2021 Mike Bostock
913
+ //
914
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
915
+ // with or without fee is hereby granted, provided that the above copyright notice
916
+ // and this permission notice appear in all copies.
917
+ //
918
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
919
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
920
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
921
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
922
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
923
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
924
+ // THIS SOFTWARE.
925
+ // ````
926
+ //
927
+ // ### d3-timer
928
+ //
929
+ // Licence: ISC. Source: https://github.com/d3/d3-timer
930
+ //
931
+ // ````text
932
+ // Copyright 2010-2021 Mike Bostock
933
+ //
934
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
935
+ // with or without fee is hereby granted, provided that the above copyright notice
936
+ // and this permission notice appear in all copies.
937
+ //
938
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
939
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
940
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
941
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
942
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
943
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
944
+ // THIS SOFTWARE.
945
+ // ````
946
+ //
947
+ // ### d3-transition
948
+ //
949
+ // Licence: ISC. Source: https://github.com/d3/d3-transition
950
+ //
951
+ // ````text
952
+ // Copyright 2010-2021 Mike Bostock
953
+ //
954
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
955
+ // with or without fee is hereby granted, provided that the above copyright notice
956
+ // and this permission notice appear in all copies.
957
+ //
958
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
959
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
960
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
961
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
962
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
963
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
964
+ // THIS SOFTWARE.
965
+ // ````
966
+ //
967
+ // ### d3-zoom
968
+ //
969
+ // Licence: ISC. Source: https://github.com/d3/d3-zoom
970
+ //
971
+ // ````text
972
+ // Copyright 2010-2021 Mike Bostock
973
+ //
974
+ // Permission to use, copy, modify, and/or distribute this software for any purpose
975
+ // with or without fee is hereby granted, provided that the above copyright notice
976
+ // and this permission notice appear in all copies.
977
+ //
978
+ // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
979
+ // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
980
+ // FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
981
+ // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
982
+ // OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
983
+ // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
984
+ // THIS SOFTWARE.
985
+ // ````
986
+ //
987
+ // ### elkjs
988
+ //
989
+ // Licence: EPL-2.0 OR GPL-3.0-or-later. Source: https://github.com/kieler/elkjs
990
+ //
991
+ // ````text
992
+ // # Eclipse Public License - v 2.0
993
+ //
994
+ // THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
995
+ // PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF
996
+ // THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
997
+ //
998
+ // ## 1. DEFINITIONS
999
+ //
1000
+ // “Contribution” means:
1001
+ //
1002
+ // - a\) in the case of the initial Contributor, the initial content
1003
+ // Distributed under this Agreement, and
1004
+ // - b\) in the case of each subsequent Contributor:
1005
+ // - i\) changes to the Program, and
1006
+ // - ii\) additions to the Program;
1007
+ //
1008
+ // where such changes and/or additions to the Program originate from
1009
+ // and are Distributed by that particular Contributor. A Contribution
1010
+ // “originates” from a Contributor if it was added to the Program by
1011
+ // such Contributor itself or anyone acting on such Contributor's
1012
+ // behalf. Contributions do not include changes or additions to the
1013
+ // Program that are not Modified Works.
1014
+ //
1015
+ // “Contributor” means any person or entity that Distributes the Program.
1016
+ //
1017
+ // “Licensed Patents” mean patent claims licensable by a Contributor which
1018
+ // are necessarily infringed by the use or sale of its Contribution alone
1019
+ // or when combined with the Program.
1020
+ //
1021
+ // “Program” means the Contributions Distributed in accordance with this
1022
+ // Agreement.
1023
+ //
1024
+ // “Recipient” means anyone who receives the Program under this Agreement
1025
+ // or any Secondary License (as applicable), including Contributors.
1026
+ //
1027
+ // “Derivative Works” shall mean any work, whether in Source Code or other
1028
+ // form, that is based on (or derived from) the Program and for which the
1029
+ // editorial revisions, annotations, elaborations, or other modifications
1030
+ // represent, as a whole, an original work of authorship.
1031
+ //
1032
+ // “Modified Works” shall mean any work in Source Code or other form that
1033
+ // results from an addition to, deletion from, or modification of the
1034
+ // contents of the Program, including, for purposes of clarity any new file
1035
+ // in Source Code form that contains any contents of the Program. Modified
1036
+ // Works shall not include works that contain only declarations,
1037
+ // interfaces, types, classes, structures, or files of the Program solely
1038
+ // in each case in order to link to, bind by name, or subclass the Program
1039
+ // or Modified Works thereof.
1040
+ //
1041
+ // “Distribute” means the acts of a) distributing or b) making available in
1042
+ // any manner that enables the transfer of a copy.
1043
+ //
1044
+ // “Source Code” means the form of a Program preferred for making
1045
+ // modifications, including but not limited to software source code,
1046
+ // documentation source, and configuration files.
1047
+ //
1048
+ // “Secondary License” means either the GNU General Public License, Version
1049
+ // 2.0, or any later versions of that license, including any exceptions or
1050
+ // additional permissions as identified by the initial Contributor.
1051
+ //
1052
+ // ## 2. GRANT OF RIGHTS
1053
+ //
1054
+ // - a\) Subject to the terms of this Agreement, each Contributor hereby
1055
+ // grants Recipient a non-exclusive, worldwide, royalty-free copyright
1056
+ // license to reproduce, prepare Derivative Works of, publicly display,
1057
+ // publicly perform, Distribute and sublicense the Contribution of such
1058
+ // Contributor, if any, and such Derivative Works.
1059
+ // - b\) Subject to the terms of this Agreement, each Contributor hereby
1060
+ // grants Recipient a non-exclusive, worldwide, royalty-free patent license
1061
+ // under Licensed Patents to make, use, sell, offer to sell, import and
1062
+ // otherwise transfer the Contribution of such Contributor, if any, in
1063
+ // Source Code or other form. This patent license shall apply to the
1064
+ // combination of the Contribution and the Program if, at the time the
1065
+ // Contribution is added by the Contributor, such addition of the
1066
+ // Contribution causes such combination to be covered by the
1067
+ // Licensed Patents. The patent license shall not apply to any other
1068
+ // combinations which include the Contribution. No hardware per se is
1069
+ // licensed hereunder.
1070
+ // - c\) Recipient understands that although each Contributor grants the
1071
+ // licenses to its Contributions set forth herein, no assurances are
1072
+ // provided by any Contributor that the Program does not infringe the
1073
+ // patent or other intellectual property rights of any other entity. Each
1074
+ // Contributor disclaims any liability to Recipient for claims brought by
1075
+ // any other entity based on infringement of intellectual property rights
1076
+ // or otherwise. As a condition to exercising the rights and licenses
1077
+ // granted hereunder, each Recipient hereby assumes sole responsibility to
1078
+ // secure any other intellectual property rights needed, if any. For
1079
+ // example, if a third party patent license is required to allow Recipient
1080
+ // to Distribute the Program, it is Recipient's responsibility to acquire
1081
+ // that license before distributing the Program.
1082
+ // - d\) Each Contributor represents that to its knowledge it has sufficient
1083
+ // copyright rights in its Contribution, if any, to grant the copyright
1084
+ // license set forth in this Agreement.
1085
+ // - e\) Notwithstanding the terms of any Secondary License, no Contributor
1086
+ // makes additional grants to any Recipient (other than those set forth in
1087
+ // this Agreement) as a result of such Recipient's receipt of the Program
1088
+ // under the terms of a Secondary License (if permitted under the terms of
1089
+ // Section 3).
1090
+ //
1091
+ // ## 3. REQUIREMENTS
1092
+ //
1093
+ // 3.1 If a Contributor Distributes the Program in any form, then:
1094
+ //
1095
+ // - a\) the Program must also be made available as Source Code, in accordance
1096
+ // with section 3.2, and the Contributor must accompany the Program with a
1097
+ // statement that the Source Code for the Program is available under this
1098
+ // Agreement, and informs Recipients how to obtain it in a reasonable
1099
+ // manner on or through a medium customarily used for software exchange;
1100
+ // and
1101
+ // - b\) the Contributor may Distribute the Program under a license different
1102
+ // than this Agreement, provided that such license:
1103
+ // - i\) effectively disclaims on behalf of all other Contributors all
1104
+ // warranties and conditions, express and implied, including warranties or
1105
+ // conditions of title and non-infringement, and implied warranties or
1106
+ // conditions of merchantability and fitness for a particular purpose;
1107
+ // - ii\) effectively excludes on behalf of all other Contributors all
1108
+ // liability for damages, including direct, indirect, special, incidental
1109
+ // and consequential damages, such as lost profits;
1110
+ // - iii\) does not attempt to limit or alter the recipients' rights in the
1111
+ // Source Code under section 3.2; and
1112
+ // - iv\) requires any subsequent distribution of the Program by any party to
1113
+ // be under a license that satisfies the requirements of this section 3.
1114
+ //
1115
+ // 3.2 When the Program is Distributed as Source Code:
1116
+ //
1117
+ // - a\) it must be made available under this Agreement, or if the Program (i)
1118
+ // is combined with other material in a separate file or files made
1119
+ // available under a Secondary License, and (ii) the initial Contributor
1120
+ // attached to the Source Code the notice described in Exhibit A of this
1121
+ // Agreement, then the Program may be made available under the terms of
1122
+ // such Secondary Licenses, and
1123
+ // - b\) a copy of this Agreement must be included with each copy of
1124
+ // the Program.
1125
+ //
1126
+ // 3.3 Contributors may not remove or alter any copyright, patent,
1127
+ // trademark, attribution notices, disclaimers of warranty, or limitations
1128
+ // of liability (‘notices’) contained within the Program from any copy of
1129
+ // the Program which they Distribute, provided that Contributors may add
1130
+ // their own appropriate notices.
1131
+ //
1132
+ // ## 4. COMMERCIAL DISTRIBUTION
1133
+ //
1134
+ // Commercial distributors of software may accept certain responsibilities
1135
+ // with respect to end users, business partners and the like. While this
1136
+ // license is intended to facilitate the commercial use of the Program, the
1137
+ // Contributor who includes the Program in a commercial product offering
1138
+ // should do so in a manner which does not create potential liability for
1139
+ // other Contributors. Therefore, if a Contributor includes the Program in
1140
+ // a commercial product offering, such Contributor (“Commercial
1141
+ // Contributor”) hereby agrees to defend and indemnify every other
1142
+ // Contributor (“Indemnified Contributor”) against any losses, damages and
1143
+ // costs (collectively “Losses”) arising from claims, lawsuits and other
1144
+ // legal actions brought by a third party against the Indemnified
1145
+ // Contributor to the extent caused by the acts or omissions of such
1146
+ // Commercial Contributor in connection with its distribution of the
1147
+ // Program in a commercial product offering. The obligations in this
1148
+ // section do not apply to any claims or Losses relating to any actual or
1149
+ // alleged intellectual property infringement. In order to qualify, an
1150
+ // Indemnified Contributor must: a) promptly notify the Commercial
1151
+ // Contributor in writing of such claim, and b) allow the Commercial
1152
+ // Contributor to control, and cooperate with the Commercial Contributor
1153
+ // in, the defense and any related settlement negotiations. The Indemnified
1154
+ // Contributor may participate in any such claim at its own expense.
1155
+ //
1156
+ // For example, a Contributor might include the Program in a commercial
1157
+ // product offering, Product X. That Contributor is then a Commercial
1158
+ // Contributor. If that Commercial Contributor then makes performance
1159
+ // claims, or offers warranties related to Product X, those performance
1160
+ // claims and warranties are such Commercial Contributor's responsibility
1161
+ // alone. Under this section, the Commercial Contributor would have to
1162
+ // defend claims against the other Contributors related to those
1163
+ // performance claims and warranties, and if a court requires any other
1164
+ // Contributor to pay any damages as a result, the Commercial Contributor
1165
+ // must pay those damages.
1166
+ //
1167
+ // ## 5. NO WARRANTY {#warranty}
1168
+ //
1169
+ // EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
1170
+ // PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS”
1171
+ // BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
1172
+ // IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
1173
+ // TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
1174
+ // PURPOSE. Each Recipient is solely responsible for determining the
1175
+ // appropriateness of using and distributing the Program and assumes all
1176
+ // risks associated with its exercise of rights under this Agreement,
1177
+ // including but not limited to the risks and costs of program errors,
1178
+ // compliance with applicable laws, damage to or loss of data, programs or
1179
+ // equipment, and unavailability or interruption of operations.
1180
+ //
1181
+ // ## 6. DISCLAIMER OF LIABILITY {#disclaimer}
1182
+ //
1183
+ // EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
1184
+ // PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
1185
+ // SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
1186
+ // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
1187
+ // PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1188
+ // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1189
+ // ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
1190
+ // EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
1191
+ // POSSIBILITY OF SUCH DAMAGES.
1192
+ //
1193
+ // ## 7. GENERAL
1194
+ //
1195
+ // If any provision of this Agreement is invalid or unenforceable under
1196
+ // applicable law, it shall not affect the validity or enforceability of
1197
+ // the remainder of the terms of this Agreement, and without further action
1198
+ // by the parties hereto, such provision shall be reformed to the minimum
1199
+ // extent necessary to make such provision valid and enforceable.
1200
+ //
1201
+ // If Recipient institutes patent litigation against any entity (including
1202
+ // a cross-claim or counterclaim in a lawsuit) alleging that the Program
1203
+ // itself (excluding combinations of the Program with other software or
1204
+ // hardware) infringes such Recipient's patent(s), then such Recipient's
1205
+ // rights granted under Section 2(b) shall terminate as of the date such
1206
+ // litigation is filed.
1207
+ //
1208
+ // All Recipient's rights under this Agreement shall terminate if it fails
1209
+ // to comply with any of the material terms or conditions of this Agreement
1210
+ // and does not cure such failure in a reasonable period of time after
1211
+ // becoming aware of such noncompliance. If all Recipient's rights under
1212
+ // this Agreement terminate, Recipient agrees to cease use and distribution
1213
+ // of the Program as soon as reasonably practicable. However, Recipient's
1214
+ // obligations under this Agreement and any licenses granted by Recipient
1215
+ // relating to the Program shall continue and survive.
1216
+ //
1217
+ // Everyone is permitted to copy and distribute copies of this Agreement,
1218
+ // but in order to avoid inconsistency the Agreement is copyrighted and may
1219
+ // only be modified in the following manner. The Agreement Steward reserves
1220
+ // the right to publish new versions (including revisions) of this
1221
+ // Agreement from time to time. No one other than the Agreement Steward has
1222
+ // the right to modify this Agreement. The Eclipse Foundation is the
1223
+ // initial Agreement Steward. The Eclipse Foundation may assign the
1224
+ // responsibility to serve as the Agreement Steward to a suitable separate
1225
+ // entity. Each new version of the Agreement will be given a distinguishing
1226
+ // version number. The Program (including Contributions) may always be
1227
+ // Distributed subject to the version of the Agreement under which it was
1228
+ // received. In addition, after a new version of the Agreement is
1229
+ // published, Contributor may elect to Distribute the Program (including
1230
+ // its Contributions) under the new version.
1231
+ //
1232
+ // Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
1233
+ // receives no rights or licenses to the intellectual property of any
1234
+ // Contributor under this Agreement, whether expressly, by implication,
1235
+ // estoppel or otherwise. All rights in the Program not expressly granted
1236
+ // under this Agreement are reserved. Nothing in this Agreement is intended
1237
+ // to be enforceable by any entity that is not a Contributor or Recipient.
1238
+ // No third-party beneficiary rights are created under this Agreement.
1239
+ //
1240
+ // ## Exhibit A – Form of Secondary Licenses Notice {#exhibit-a}
1241
+ //
1242
+ // “This Source Code may also be made available under the following
1243
+ // Secondary Licenses when the conditions for such availability set forth
1244
+ // in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License v3.0 or later”
1245
+ //
1246
+ // > Simply including a copy of this Agreement, including this Exhibit A is
1247
+ // > not sufficient to license the Source Code under Secondary Licenses.
1248
+ // >
1249
+ // > If it is not possible or desirable to put the notice in a particular
1250
+ // > file, then You may include the notice in a location (such as a LICENSE
1251
+ // > file in a relevant directory) where a recipient would be likely to
1252
+ // > look for such a notice.
1253
+ // >
1254
+ // > You may add additional accurate notices of copyright ownership.
1255
+ // ````
1256
+ //
1257
+ // ### html-to-image
1258
+ //
1259
+ // Licence: MIT. Source: https://github.com/bubkoo/html-to-image
1260
+ //
1261
+ // ````text
1262
+ // MIT License
1263
+ //
1264
+ // Copyright (c) 2017-2025 W.Y.
1265
+ //
1266
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
1267
+ // of this software and associated documentation files (the "Software"), to deal
1268
+ // in the Software without restriction, including without limitation the rights
1269
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1270
+ // copies of the Software, and to permit persons to whom the Software is
1271
+ // furnished to do so, subject to the following conditions:
1272
+ //
1273
+ // The above copyright notice and this permission notice shall be included in all
1274
+ // copies or substantial portions of the Software.
1275
+ //
1276
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1277
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1278
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1279
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1280
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1281
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1282
+ // SOFTWARE.
1283
+ // ````
1284
+ //
1285
+ // ### react
1286
+ //
1287
+ // Licence: MIT. Source: https://github.com/react/react
1288
+ //
1289
+ // ````text
1290
+ // MIT License
1291
+ //
1292
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
1293
+ //
1294
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
1295
+ // of this software and associated documentation files (the "Software"), to deal
1296
+ // in the Software without restriction, including without limitation the rights
1297
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1298
+ // copies of the Software, and to permit persons to whom the Software is
1299
+ // furnished to do so, subject to the following conditions:
1300
+ //
1301
+ // The above copyright notice and this permission notice shall be included in all
1302
+ // copies or substantial portions of the Software.
1303
+ //
1304
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1305
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1306
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1307
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1308
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1309
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1310
+ // SOFTWARE.
1311
+ // ````
1312
+ //
1313
+ // ### react-dom
1314
+ //
1315
+ // Licence: MIT. Source: https://github.com/react/react
1316
+ //
1317
+ // ````text
1318
+ // MIT License
1319
+ //
1320
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
1321
+ //
1322
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
1323
+ // of this software and associated documentation files (the "Software"), to deal
1324
+ // in the Software without restriction, including without limitation the rights
1325
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1326
+ // copies of the Software, and to permit persons to whom the Software is
1327
+ // furnished to do so, subject to the following conditions:
1328
+ //
1329
+ // The above copyright notice and this permission notice shall be included in all
1330
+ // copies or substantial portions of the Software.
1331
+ //
1332
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1333
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1334
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1335
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1336
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1337
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1338
+ // SOFTWARE.
1339
+ // ````
1340
+ //
1341
+ // ### scheduler
1342
+ //
1343
+ // Licence: MIT. Source: https://github.com/react/react
1344
+ //
1345
+ // ````text
1346
+ // MIT License
1347
+ //
1348
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
1349
+ //
1350
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
1351
+ // of this software and associated documentation files (the "Software"), to deal
1352
+ // in the Software without restriction, including without limitation the rights
1353
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1354
+ // copies of the Software, and to permit persons to whom the Software is
1355
+ // furnished to do so, subject to the following conditions:
1356
+ //
1357
+ // The above copyright notice and this permission notice shall be included in all
1358
+ // copies or substantial portions of the Software.
1359
+ //
1360
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1361
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1362
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1363
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1364
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1365
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1366
+ // SOFTWARE.
1367
+ // ````
1368
+ //
1369
+ // ### use-sync-external-store
1370
+ //
1371
+ // Licence: MIT. Source: https://github.com/facebook/react
1372
+ //
1373
+ // ````text
1374
+ // MIT License
1375
+ //
1376
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
1377
+ //
1378
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
1379
+ // of this software and associated documentation files (the "Software"), to deal
1380
+ // in the Software without restriction, including without limitation the rights
1381
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1382
+ // copies of the Software, and to permit persons to whom the Software is
1383
+ // furnished to do so, subject to the following conditions:
1384
+ //
1385
+ // The above copyright notice and this permission notice shall be included in all
1386
+ // copies or substantial portions of the Software.
1387
+ //
1388
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1389
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1390
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1391
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1392
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1393
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1394
+ // SOFTWARE.
1395
+ // ````
1396
+ //
1397
+ // ### zustand
1398
+ //
1399
+ // Licence: MIT. Source: https://github.com/pmndrs/zustand
1400
+ //
1401
+ // ````text
1402
+ // MIT License
1403
+ //
1404
+ // Copyright (c) 2019 Paul Henschel
1405
+ //
1406
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
1407
+ // of this software and associated documentation files (the "Software"), to deal
1408
+ // in the Software without restriction, including without limitation the rights
1409
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1410
+ // copies of the Software, and to permit persons to whom the Software is
1411
+ // furnished to do so, subject to the following conditions:
1412
+ //
1413
+ // The above copyright notice and this permission notice shall be included in all
1414
+ // copies or substantial portions of the Software.
1415
+ //
1416
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1417
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1418
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1419
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1420
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1421
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1422
+ // SOFTWARE.
1423
+ // ````
1424
+ //
1425
+ import{a as e,n as t,o as n,s as r}from"./chunks/report-BV3j2cS_.mjs";import{readFileSync as i}from"node:fs";import{dirname as a,join as o,resolve as s}from"node:path";import{fileURLToPath as c}from"node:url";var l=`/*ANTU_SPEC*/null`;function u(e){return String(e).replace(/</g,`\\u003c`)}function d(e,t,{preset:n}={}){if(e.split(`/*ANTU_SPEC*/null`).length!==2)throw Error(`the viewer template does not hold exactly one ${l}`);let r=u(JSON.stringify(t)),i=n?`;window.__ANTU_PRESET__ = ${u(JSON.stringify(n))}`:``;return e.replace(l,()=>r+i)}s(a(c(import.meta.url)),`../..`);var f=s(a(c(import.meta.url)),`..`);o(f,`dist-engine/engine.js`),o(f,`dist-engine/engine.css`);function p(e){return String(e).replace(/[&<>"]/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`})[e])}function m(e,{preset:t,force:n=!1,quiet:r=!1}={}){{let n=p(e?.title||`Antu`);return d(i(o(f,`assets/viewer.html`),`utf8`),e,{preset:t}).replace(/<title>[^<]*<\/title>/,()=>`<title>${n} · Antu</title>`)}}var h=[`document`,`modern`,`legal`],g={equity:{width:r.normal},control:{width:r.heavy},contract:{width:r.normal,dash:n.longDash},debt:{width:r.strong,dash:n.dashDot},guarantee:{width:r.normal,dash:n.dashed},kinship:{width:3.6,double:!0},employment:{width:r.normal,dash:n.dotted},agency:{width:r.strong,dash:`1 4`,round:!0},other:{width:r.hair,dash:`3 3`}},_=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n])=>[e,{...n,stroke:t}])),v={neutral:{width:r.normal},positive:{width:r.strong},negative:{width:r.normal,dash:n.dashed}},y={main:{width:r.strong},plain:{width:r.normal},back:{width:r.normal,dash:n.dashed}},b={conclusion:{width:r.heavy},norm:{width:r.normal},element:{width:r.normal},fact:{width:r.hair},inference:{width:r.normal,dash:n.dotted},judgement:{width:r.strong}},x={for:{width:r.normal},against:{width:r.strong,dash:n.dashed},basis:{width:r.normal,dash:n.dotted}},S=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,n])=>[e,{...n,...t[e]}])),C={document:{id:`document`,shadowRgb:`17, 17, 17`,chrome:{radius:2,capsule:2,chip:2,bg:`#ffffff`,bgPop:`#ffffff`,border:`1px solid #111111`,shadow:`none`,blur:`none`},labelKey:`theme.document`,font:{body:`"FangSong", "STFangsong", "FangSong_GB2312", "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif`,head:`"SimHei", "Heiti SC", "STHeiti", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif`},color:{ink:`#111111`,ink2:`#2b2b2b`,ink3:`#4d4d4d`,ink4:`#767676`,bg:`#ffffff`,canvas:`#ffffff`,frame:`#111111`,line:`#c9c9c9`,chip:`#f0f0f0`,side1:`#111111`,side2:`#555555`,axis:`#767676`},radius:{person:12,company:0,organization:0,government:0,other:0,pill:2,group:0},entity:{person:{stroke:`#111111`,fill:`#ffffff`,width:1},company:{stroke:`#111111`,fill:`#ffffff`,width:1.5},organization:{stroke:`#111111`,fill:`#ffffff`,width:1,dash:n.dashed},government:{stroke:`#111111`,fill:`#ffffff`,width:1},other:{stroke:`#555555`,fill:`#ffffff`,width:.9,dash:n.dotted}},relation:_(g,`#111111`),camp:[{fill:`#ffffff`,stroke:`#111111`,text:`#111111`},{fill:`#ececec`,stroke:`#111111`,text:`#111111`},{fill:`#f7f7f7`,stroke:`#8a8a8a`,text:`#4d4d4d`}],group:{fill:`#f5f5f5`,stroke:`#8a8a8a`,title:`#111111`},flow:{outcome:S(v,{neutral:{stroke:`#111111`,fill:`#ffffff`},positive:{stroke:`#111111`,fill:`#ffffff`},negative:{stroke:`#111111`,fill:`#ececec`}}),start:{stroke:`#111111`,fill:`#e2e2e2`},note:{stroke:`none`,fill:`#f5f5f5`,fold:`#767676`},stage:{fill:`#f5f5f5`,stroke:`#8a8a8a`,title:`#111111`},stageLit:{fill:`#e2e2e2`,stroke:`#111111`,title:`#111111`},link:S(y,{main:{stroke:`#111111`},plain:{stroke:`#2b2b2b`},back:{stroke:`#4d4d4d`}})},justify:{node:S(b,{conclusion:{stroke:`#111111`,fill:`#ffffff`},norm:{stroke:`#111111`,fill:`#ececec`},element:{stroke:`#111111`,fill:`#ffffff`},fact:{stroke:`#111111`,fill:`#ffffff`},inference:{stroke:`#111111`,fill:`#ffffff`},judgement:{stroke:`#111111`,fill:`#ececec`}}),stance:S(x,{for:{stroke:`#2b2b2b`},against:{stroke:`#111111`},basis:{stroke:`#4d4d4d`}})},pill:{colored:!1,border:`#111111`}},modern:{id:`modern`,shadowRgb:`15, 23, 42`,chrome:{radius:14,capsule:999,chip:999,bg:`rgba(255, 255, 255, 0.78)`,bgPop:`rgba(255, 255, 255, 0.94)`,border:`1px solid rgba(15, 23, 42, 0.07)`,shadow:`0 4px 18px rgba(15, 23, 42, 0.10), 0 1px 2px rgba(15, 23, 42, 0.06)`,blur:`blur(16px) saturate(1.8)`},labelKey:`theme.modern`,font:{body:`system-ui, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif`,head:`system-ui, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif`},color:{ink:`#0f172a`,ink2:`#475569`,ink3:`#64748b`,ink4:`#94a3b8`,bg:`#fbfcfd`,canvas:`#fbfcfd`,frame:`#e2e8f0`,line:`#e8ebef`,chip:`#f1f4f8`,side1:`#475569`,side2:`#64748b`,axis:`#94a3b8`},radius:{person:14,company:8,organization:8,government:6,other:8,pill:12,group:12},entity:{person:{stroke:`#94a3b8`,fill:`#f1f5f9`,width:1},company:{stroke:`#334155`,fill:`#ffffff`,width:1.25},organization:{stroke:`#94a3b8`,fill:`#ffffff`,width:1,dash:n.dashed},government:{stroke:`#64748b`,fill:`#f8fafc`,width:1},other:{stroke:`#94a3b8`,fill:`#f8fafc`,width:.9,dash:n.dotted}},relation:_(g,`#475569`),camp:[{fill:`#f1f5f9`,stroke:`#94a3b8`,text:`#334155`},{fill:`#ffffff`,stroke:`#94a3b8`,text:`#334155`},{fill:`#f8fafc`,stroke:`#e2e8f0`,text:`#64748b`}],group:{fill:`#f8fafc`,stroke:`#e2e8f0`,title:`#475569`},flow:{outcome:S(v,{neutral:{stroke:`#64748b`,fill:`#f8fafc`},positive:{stroke:`#334155`,fill:`#f1f5f9`},negative:{stroke:`#64748b`,fill:`#f1f5f9`}}),start:{stroke:`#334155`,fill:`#e2e8f0`},note:{stroke:`none`,fill:`#f1f5f9`,fold:`#94a3b8`},stage:{fill:`#f8fafc`,stroke:`#e2e8f0`,title:`#475569`},stageLit:{fill:`#f1f5f9`,stroke:`#64748b`,title:`#334155`},link:S(y,{main:{stroke:`#0f172a`},plain:{stroke:`#475569`},back:{stroke:`#64748b`}})},justify:{node:S(b,{conclusion:{stroke:`#0f172a`,fill:`#f1f5f9`},norm:{stroke:`#475569`,fill:`#e2e8f0`},element:{stroke:`#64748b`,fill:`#f8fafc`},fact:{stroke:`#94a3b8`,fill:`#ffffff`},inference:{stroke:`#64748b`,fill:`#f8fafc`},judgement:{stroke:`#334155`,fill:`#e2e8f0`}}),stance:S(x,{for:{stroke:`#475569`},against:{stroke:`#334155`},basis:{stroke:`#94a3b8`}})},pill:{colored:!1,border:`#cbd5e1`}},legal:{id:`legal`,shadowRgb:`19, 35, 63`,chrome:{radius:6,capsule:6,chip:4,bg:`#ffffff`,bgPop:`#ffffff`,border:`1px solid #c7d2e4`,shadow:`0 2px 10px rgba(19, 35, 63, 0.10)`,blur:`none`},labelKey:`theme.legal`,font:{body:`system-ui, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif`,head:`system-ui, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif`},color:{ink:`#13233f`,ink2:`#2d4366`,ink3:`#5b6f8f`,ink4:`#8aa0c4`,bg:`#ffffff`,canvas:`#ffffff`,frame:`#c7d2e4`,line:`#dbe3f0`,chip:`#eef3fb`,side1:`#1f3f7f`,side2:`#9a1b1b`,axis:`#8aa0c4`},radius:{person:14,company:3,organization:4,government:3,other:4,pill:4,group:6},entity:{person:{stroke:`#2f5aa8`,fill:`#eef3fb`,width:1},company:{stroke:`#1f3f7f`,fill:`#e3ecfa`,width:1.5},organization:{stroke:`#2f5aa8`,fill:`#f4f7fc`,width:1,dash:n.dashed},government:{stroke:`#13233f`,fill:`#eef3fb`,width:1.1},other:{stroke:`#8aa0c4`,fill:`#f8fafd`,width:.9,dash:n.dotted}},relation:{equity:{...g.equity,stroke:`#1f3f7f`},control:{...g.control,stroke:`#13233f`},contract:{...g.contract,stroke:`#5b6f8f`},debt:{...g.debt,stroke:`#9a1b1b`},guarantee:{...g.guarantee,stroke:`#2f5aa8`},kinship:{...g.kinship,stroke:`#4b3a8c`},employment:{...g.employment,stroke:`#1d6b6b`},agency:{...g.agency,stroke:`#1d6b6b`},other:{...g.other,stroke:`#8aa0c4`}},camp:[{fill:`#eaf0fb`,stroke:`#9fb6e0`,text:`#1f3f7f`},{fill:`#fbecec`,stroke:`#e3b4b4`,text:`#9a1b1b`},{fill:`#f4f7fc`,stroke:`#c7d2e4`,text:`#5b6f8f`}],group:{fill:`#f4f7fc`,stroke:`#c7d2e4`,title:`#2d4366`},flow:{outcome:S(v,{neutral:{stroke:`#2f5aa8`,fill:`#eef3fb`},positive:{stroke:`#1f3f7f`,fill:`#e3ecfa`},negative:{stroke:`#9a1b1b`,fill:`#fbecec`}}),start:{stroke:`#13233f`,fill:`#dbe5f5`},note:{stroke:`none`,fill:`#f4f7fc`,fold:`#8aa0c4`},stage:{fill:`#f4f7fc`,stroke:`#c7d2e4`,title:`#2d4366`},stageLit:{fill:`#eaf0fb`,stroke:`#1f3f7f`,title:`#1f3f7f`},link:S(y,{main:{stroke:`#13233f`},plain:{stroke:`#2d4366`},back:{stroke:`#5b6f8f`}})},justify:{node:S(b,{conclusion:{stroke:`#1f3f7f`,fill:`#e3ecfa`},norm:{stroke:`#4b3a8c`,fill:`#efecf8`},element:{stroke:`#2f5aa8`,fill:`#eef3fb`},fact:{stroke:`#8aa0c4`,fill:`#f8fafd`},inference:{stroke:`#1d6b6b`,fill:`#e8f4f4`},judgement:{stroke:`#13233f`,fill:`#dbe5f5`}}),stance:S(x,{for:{stroke:`#2d4366`},against:{stroke:`#9a1b1b`},basis:{stroke:`#4b3a8c`}})},pill:{colored:!0,border:`#c7d2e4`}}},w=e=>Object.prototype.hasOwnProperty.call(C,e);function T(n,{kind:r,theme:i}={}){let a=e(n);if(a.length)throw Object.assign(Error(`antu: the spec is not valid (${a.length} problem(s)): ${a[0]}`),{errors:[...a]});let o=t(n,r);if(o)throw Error(`antu: ${o}`);if(i!==void 0&&!w(i))throw Error(`antu: the theme is one of ${h.join(`, `)}`);return m(n,{preset:r||i?{...r&&{defaultKind:r},...i&&{theme:i}}:void 0,quiet:!0})}export{T as renderHtml};