swf2es 0.0.0 → 0.1.1

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.
@@ -0,0 +1,899 @@
1
+ Code from elsewhere in swf2es, and its terms. The package's own
2
+ code is under the Apache License 2.0 (LICENSE).
3
+
4
+
5
+ Ruffle
6
+ ======
7
+
8
+ dist/swf2es.js, dist/worker.js and dist/chunks/ bundle the modules of
9
+ swf2es's packages, @swf2es/codegen, @swf2es/format, @swf2es/player and
10
+ @swf2es/runtime among them. Parts of them are taken or ported from Ruffle,
11
+ Copyright (c) 2018-2022 Ruffle LLC and Ruffle contributors, as each file's
12
+ header in those packages says, and playerglobal's ABC is compiled from
13
+ ActionScript much of which is Ruffle's. Where Flash's readings of
14
+ malformed AVM1 actions are not documented, dist/codegen.wasm's decoder
15
+ follows Ruffle's: swf/src/avm1/read.rs and core/src/avm1/activation.rs.
16
+
17
+ Ruffle, https://github.com/ruffle-rs/ruffle, is under the MIT license or
18
+ the Apache License 2.0 (LICENSE), at your choice. Its MIT terms:
19
+
20
+ The MIT License (MIT)
21
+
22
+ Copyright (c) 2018-2022 Ruffle LLC and Ruffle contributors
23
+
24
+ Permission is hereby granted, free of charge, to any person obtaining a copy
25
+ of this software and associated documentation files (the "Software"), to deal
26
+ in the Software without restriction, including without limitation the rights
27
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
+ copies of the Software, and to permit persons to whom the Software is
29
+ furnished to do so, subject to the following conditions:
30
+
31
+ The above copyright notice and this permission notice shall be included in all
32
+ copies or substantial portions of the Software.
33
+
34
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
+ SOFTWARE.
41
+
42
+
43
+ avmplus
44
+ =======
45
+
46
+ The bundle holds @swf2es/runtime's modules: avmplus' builtin.abc, and the
47
+ files whose headers say they are translated from avmplus.
48
+
49
+ These are subject to the Mozilla Public License, v. 2.0, below.
50
+ Their TypeScript is @swf2es/runtime's src/, and
51
+ the repository's packages/runtime/src/; the bundle's source maps hold the
52
+ modules they were bundled from.
53
+ Each ABC is compiled from avmplus' ActionScript, whose source form is at
54
+ https://github.com/swf2es/avmplus/tree/858d034a3bd3a54d9b70909386435cf4aec81d21.
55
+
56
+ Mozilla Public License Version 2.0
57
+ ==================================
58
+
59
+ 1. Definitions
60
+ --------------
61
+
62
+ 1.1. "Contributor"
63
+ means each individual or legal entity that creates, contributes to
64
+ the creation of, or owns Covered Software.
65
+
66
+ 1.2. "Contributor Version"
67
+ means the combination of the Contributions of others (if any) used
68
+ by a Contributor and that particular Contributor's Contribution.
69
+
70
+ 1.3. "Contribution"
71
+ means Covered Software of a particular Contributor.
72
+
73
+ 1.4. "Covered Software"
74
+ means Source Code Form to which the initial Contributor has attached
75
+ the notice in Exhibit A, the Executable Form of such Source Code
76
+ Form, and Modifications of such Source Code Form, in each case
77
+ including portions thereof.
78
+
79
+ 1.5. "Incompatible With Secondary Licenses"
80
+ means
81
+
82
+ (a) that the initial Contributor has attached the notice described
83
+ in Exhibit B to the Covered Software; or
84
+
85
+ (b) that the Covered Software was made available under the terms of
86
+ version 1.1 or earlier of the License, but not also under the
87
+ terms of a Secondary License.
88
+
89
+ 1.6. "Executable Form"
90
+ means any form of the work other than Source Code Form.
91
+
92
+ 1.7. "Larger Work"
93
+ means a work that combines Covered Software with other material, in
94
+ a separate file or files, that is not Covered Software.
95
+
96
+ 1.8. "License"
97
+ means this document.
98
+
99
+ 1.9. "Licensable"
100
+ means having the right to grant, to the maximum extent possible,
101
+ whether at the time of the initial grant or subsequently, any and
102
+ all of the rights conveyed by this License.
103
+
104
+ 1.10. "Modifications"
105
+ means any of the following:
106
+
107
+ (a) any file in Source Code Form that results from an addition to,
108
+ deletion from, or modification of the contents of Covered
109
+ Software; or
110
+
111
+ (b) any new file in Source Code Form that contains any Covered
112
+ Software.
113
+
114
+ 1.11. "Patent Claims" of a Contributor
115
+ means any patent claim(s), including without limitation, method,
116
+ process, and apparatus claims, in any patent Licensable by such
117
+ Contributor that would be infringed, but for the grant of the
118
+ License, by the making, using, selling, offering for sale, having
119
+ made, import, or transfer of either its Contributions or its
120
+ Contributor Version.
121
+
122
+ 1.12. "Secondary License"
123
+ means either the GNU General Public License, Version 2.0, the GNU
124
+ Lesser General Public License, Version 2.1, the GNU Affero General
125
+ Public License, Version 3.0, or any later versions of those
126
+ licenses.
127
+
128
+ 1.13. "Source Code Form"
129
+ means the form of the work preferred for making modifications.
130
+
131
+ 1.14. "You" (or "Your")
132
+ means an individual or a legal entity exercising rights under this
133
+ License. For legal entities, "You" includes any entity that
134
+ controls, is controlled by, or is under common control with You. For
135
+ purposes of this definition, "control" means (a) the power, direct
136
+ or indirect, to cause the direction or management of such entity,
137
+ whether by contract or otherwise, or (b) ownership of more than
138
+ fifty percent (50%) of the outstanding shares or beneficial
139
+ ownership of such entity.
140
+
141
+ 2. License Grants and Conditions
142
+ --------------------------------
143
+
144
+ 2.1. Grants
145
+
146
+ Each Contributor hereby grants You a world-wide, royalty-free,
147
+ non-exclusive license:
148
+
149
+ (a) under intellectual property rights (other than patent or trademark)
150
+ Licensable by such Contributor to use, reproduce, make available,
151
+ modify, display, perform, distribute, and otherwise exploit its
152
+ Contributions, either on an unmodified basis, with Modifications, or
153
+ as part of a Larger Work; and
154
+
155
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
156
+ for sale, have made, import, and otherwise transfer either its
157
+ Contributions or its Contributor Version.
158
+
159
+ 2.2. Effective Date
160
+
161
+ The licenses granted in Section 2.1 with respect to any Contribution
162
+ become effective for each Contribution on the date the Contributor first
163
+ distributes such Contribution.
164
+
165
+ 2.3. Limitations on Grant Scope
166
+
167
+ The licenses granted in this Section 2 are the only rights granted under
168
+ this License. No additional rights or licenses will be implied from the
169
+ distribution or licensing of Covered Software under this License.
170
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
171
+ Contributor:
172
+
173
+ (a) for any code that a Contributor has removed from Covered Software;
174
+ or
175
+
176
+ (b) for infringements caused by: (i) Your and any other third party's
177
+ modifications of Covered Software, or (ii) the combination of its
178
+ Contributions with other software (except as part of its Contributor
179
+ Version); or
180
+
181
+ (c) under Patent Claims infringed by Covered Software in the absence of
182
+ its Contributions.
183
+
184
+ This License does not grant any rights in the trademarks, service marks,
185
+ or logos of any Contributor (except as may be necessary to comply with
186
+ the notice requirements in Section 3.4).
187
+
188
+ 2.4. Subsequent Licenses
189
+
190
+ No Contributor makes additional grants as a result of Your choice to
191
+ distribute the Covered Software under a subsequent version of this
192
+ License (see Section 10.2) or under the terms of a Secondary License (if
193
+ permitted under the terms of Section 3.3).
194
+
195
+ 2.5. Representation
196
+
197
+ Each Contributor represents that the Contributor believes its
198
+ Contributions are its original creation(s) or it has sufficient rights
199
+ to grant the rights to its Contributions conveyed by this License.
200
+
201
+ 2.6. Fair Use
202
+
203
+ This License is not intended to limit any rights You have under
204
+ applicable copyright doctrines of fair use, fair dealing, or other
205
+ equivalents.
206
+
207
+ 2.7. Conditions
208
+
209
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
210
+ in Section 2.1.
211
+
212
+ 3. Responsibilities
213
+ -------------------
214
+
215
+ 3.1. Distribution of Source Form
216
+
217
+ All distribution of Covered Software in Source Code Form, including any
218
+ Modifications that You create or to which You contribute, must be under
219
+ the terms of this License. You must inform recipients that the Source
220
+ Code Form of the Covered Software is governed by the terms of this
221
+ License, and how they can obtain a copy of this License. You may not
222
+ attempt to alter or restrict the recipients' rights in the Source Code
223
+ Form.
224
+
225
+ 3.2. Distribution of Executable Form
226
+
227
+ If You distribute Covered Software in Executable Form then:
228
+
229
+ (a) such Covered Software must also be made available in Source Code
230
+ Form, as described in Section 3.1, and You must inform recipients of
231
+ the Executable Form how they can obtain a copy of such Source Code
232
+ Form by reasonable means in a timely manner, at a charge no more
233
+ than the cost of distribution to the recipient; and
234
+
235
+ (b) You may distribute such Executable Form under the terms of this
236
+ License, or sublicense it under different terms, provided that the
237
+ license for the Executable Form does not attempt to limit or alter
238
+ the recipients' rights in the Source Code Form under this License.
239
+
240
+ 3.3. Distribution of a Larger Work
241
+
242
+ You may create and distribute a Larger Work under terms of Your choice,
243
+ provided that You also comply with the requirements of this License for
244
+ the Covered Software. If the Larger Work is a combination of Covered
245
+ Software with a work governed by one or more Secondary Licenses, and the
246
+ Covered Software is not Incompatible With Secondary Licenses, this
247
+ License permits You to additionally distribute such Covered Software
248
+ under the terms of such Secondary License(s), so that the recipient of
249
+ the Larger Work may, at their option, further distribute the Covered
250
+ Software under the terms of either this License or such Secondary
251
+ License(s).
252
+
253
+ 3.4. Notices
254
+
255
+ You may not remove or alter the substance of any license notices
256
+ (including copyright notices, patent notices, disclaimers of warranty,
257
+ or limitations of liability) contained within the Source Code Form of
258
+ the Covered Software, except that You may alter any license notices to
259
+ the extent required to remedy known factual inaccuracies.
260
+
261
+ 3.5. Application of Additional Terms
262
+
263
+ You may choose to offer, and to charge a fee for, warranty, support,
264
+ indemnity or liability obligations to one or more recipients of Covered
265
+ Software. However, You may do so only on Your own behalf, and not on
266
+ behalf of any Contributor. You must make it absolutely clear that any
267
+ such warranty, support, indemnity, or liability obligation is offered by
268
+ You alone, and You hereby agree to indemnify every Contributor for any
269
+ liability incurred by such Contributor as a result of warranty, support,
270
+ indemnity or liability terms You offer. You may include additional
271
+ disclaimers of warranty and limitations of liability specific to any
272
+ jurisdiction.
273
+
274
+ 4. Inability to Comply Due to Statute or Regulation
275
+ ---------------------------------------------------
276
+
277
+ If it is impossible for You to comply with any of the terms of this
278
+ License with respect to some or all of the Covered Software due to
279
+ statute, judicial order, or regulation then You must: (a) comply with
280
+ the terms of this License to the maximum extent possible; and (b)
281
+ describe the limitations and the code they affect. Such description must
282
+ be placed in a text file included with all distributions of the Covered
283
+ Software under this License. Except to the extent prohibited by statute
284
+ or regulation, such description must be sufficiently detailed for a
285
+ recipient of ordinary skill to be able to understand it.
286
+
287
+ 5. Termination
288
+ --------------
289
+
290
+ 5.1. The rights granted under this License will terminate automatically
291
+ if You fail to comply with any of its terms. However, if You become
292
+ compliant, then the rights granted under this License from a particular
293
+ Contributor are reinstated (a) provisionally, unless and until such
294
+ Contributor explicitly and finally terminates Your grants, and (b) on an
295
+ ongoing basis, if such Contributor fails to notify You of the
296
+ non-compliance by some reasonable means prior to 60 days after You have
297
+ come back into compliance. Moreover, Your grants from a particular
298
+ Contributor are reinstated on an ongoing basis if such Contributor
299
+ notifies You of the non-compliance by some reasonable means, this is the
300
+ first time You have received notice of non-compliance with this License
301
+ from such Contributor, and You become compliant prior to 30 days after
302
+ Your receipt of the notice.
303
+
304
+ 5.2. If You initiate litigation against any entity by asserting a patent
305
+ infringement claim (excluding declaratory judgment actions,
306
+ counter-claims, and cross-claims) alleging that a Contributor Version
307
+ directly or indirectly infringes any patent, then the rights granted to
308
+ You by any and all Contributors for the Covered Software under Section
309
+ 2.1 of this License shall terminate.
310
+
311
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
312
+ end user license agreements (excluding distributors and resellers) which
313
+ have been validly granted by You or Your distributors under this License
314
+ prior to termination shall survive termination.
315
+
316
+ ************************************************************************
317
+ * *
318
+ * 6. Disclaimer of Warranty *
319
+ * ------------------------- *
320
+ * *
321
+ * Covered Software is provided under this License on an "as is" *
322
+ * basis, without warranty of any kind, either expressed, implied, or *
323
+ * statutory, including, without limitation, warranties that the *
324
+ * Covered Software is free of defects, merchantable, fit for a *
325
+ * particular purpose or non-infringing. The entire risk as to the *
326
+ * quality and performance of the Covered Software is with You. *
327
+ * Should any Covered Software prove defective in any respect, You *
328
+ * (not any Contributor) assume the cost of any necessary servicing, *
329
+ * repair, or correction. This disclaimer of warranty constitutes an *
330
+ * essential part of this License. No use of any Covered Software is *
331
+ * authorized under this License except under this disclaimer. *
332
+ * *
333
+ ************************************************************************
334
+
335
+ ************************************************************************
336
+ * *
337
+ * 7. Limitation of Liability *
338
+ * -------------------------- *
339
+ * *
340
+ * Under no circumstances and under no legal theory, whether tort *
341
+ * (including negligence), contract, or otherwise, shall any *
342
+ * Contributor, or anyone who distributes Covered Software as *
343
+ * permitted above, be liable to You for any direct, indirect, *
344
+ * special, incidental, or consequential damages of any character *
345
+ * including, without limitation, damages for lost profits, loss of *
346
+ * goodwill, work stoppage, computer failure or malfunction, or any *
347
+ * and all other commercial damages or losses, even if such party *
348
+ * shall have been informed of the possibility of such damages. This *
349
+ * limitation of liability shall not apply to liability for death or *
350
+ * personal injury resulting from such party's negligence to the *
351
+ * extent applicable law prohibits such limitation. Some *
352
+ * jurisdictions do not allow the exclusion or limitation of *
353
+ * incidental or consequential damages, so this exclusion and *
354
+ * limitation may not apply to You. *
355
+ * *
356
+ ************************************************************************
357
+
358
+ 8. Litigation
359
+ -------------
360
+
361
+ Any litigation relating to this License may be brought only in the
362
+ courts of a jurisdiction where the defendant maintains its principal
363
+ place of business and such litigation shall be governed by laws of that
364
+ jurisdiction, without reference to its conflict-of-law provisions.
365
+ Nothing in this Section shall prevent a party's ability to bring
366
+ cross-claims or counter-claims.
367
+
368
+ 9. Miscellaneous
369
+ ----------------
370
+
371
+ This License represents the complete agreement concerning the subject
372
+ matter hereof. If any provision of this License is held to be
373
+ unenforceable, such provision shall be reformed only to the extent
374
+ necessary to make it enforceable. Any law or regulation which provides
375
+ that the language of a contract shall be construed against the drafter
376
+ shall not be used to construe this License against a Contributor.
377
+
378
+ 10. Versions of the License
379
+ ---------------------------
380
+
381
+ 10.1. New Versions
382
+
383
+ Mozilla Foundation is the license steward. Except as provided in Section
384
+ 10.3, no one other than the license steward has the right to modify or
385
+ publish new versions of this License. Each version will be given a
386
+ distinguishing version number.
387
+
388
+ 10.2. Effect of New Versions
389
+
390
+ You may distribute the Covered Software under the terms of the version
391
+ of the License under which You originally received the Covered Software,
392
+ or under the terms of any subsequent version published by the license
393
+ steward.
394
+
395
+ 10.3. Modified Versions
396
+
397
+ If you create software not governed by this License, and you want to
398
+ create a new license for such software, you may create and use a
399
+ modified version of this License if you rename the license and remove
400
+ any references to the name of the license steward (except to note that
401
+ such modified license differs from this License).
402
+
403
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
404
+ Licenses
405
+
406
+ If You choose to distribute Source Code Form that is Incompatible With
407
+ Secondary Licenses under the terms of this version of the License, the
408
+ notice described in Exhibit B of this License must be attached.
409
+
410
+ Exhibit A - Source Code Form License Notice
411
+ -------------------------------------------
412
+
413
+ This Source Code Form is subject to the terms of the Mozilla Public
414
+ License, v. 2.0. If a copy of the MPL was not distributed with this
415
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
416
+
417
+ If it is not possible or desirable to put the notice in a particular
418
+ file, then You may include the notice in a location (such as a LICENSE
419
+ file in a relevant directory) where a recipient would be likely to look
420
+ for such a notice.
421
+
422
+ You may add additional accurate notices of copyright ownership.
423
+
424
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
425
+ ---------------------------------------------------------
426
+
427
+ This Source Code Form is "Incompatible With Secondary Licenses", as
428
+ defined by the Mozilla Public License, v. 2.0.
429
+
430
+
431
+ SVG's feTurbulence
432
+ ==================
433
+
434
+ The bundle holds @swf2es/player's bitmap/turbulence.js, which derives
435
+ from the reference implementation of feTurbulence in Scalable Vector
436
+ Graphics (SVG) 1.1 (Second Edition),
437
+ https://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement
438
+
439
+ Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). This software or
440
+ document includes material copied from or derived from SVG 1.1, under the
441
+ W3C Software and Document License:
442
+ https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
443
+
444
+
445
+ AssemblyScript
446
+ ==============
447
+
448
+ dist/codegen.wasm is compiled by AssemblyScript,
449
+ https://github.com/AssemblyScript/assemblyscript, and holds its runtime
450
+ and the parts of its standard library the compiler uses, under the Apache
451
+ License 2.0 (LICENSE). swf2es changes one of them, its Grisu2 number
452
+ formatting (std/assembly/util/number.ts), so that it reads no further than
453
+ its table of powers of ten: the repository's
454
+ patches/assemblyscript@0.28.20.patch. Its NOTICE:
455
+
456
+ The following authors have all licensed their contributions to AssemblyScript
457
+ under the licensing terms detailed in LICENSE:
458
+
459
+ * Daniel Wirtz <dcode@dcode.io>
460
+ * Max Graey <maxgraey@gmail.com>
461
+ * Igor Sbitnev <PinkaminaDianePie@gmail.com>
462
+ * Norton Wang <me@nortonwang.com>
463
+ * Alan Pierce <alangpierce@gmail.com>
464
+ * Palmer <pengliao@live.cn>
465
+ * Linus Unnebäck <linus@folkdatorn.se>
466
+ * Joshua Tenner <tenner.joshua@gmail.com>
467
+ * Nidin Vinayakan <01@01alchemist.com>
468
+ * Aaron Turner <aaron@aaronthedev.com>
469
+ * Willem Wyndham <willem@cs.umd.edu>
470
+ * Bowen Wang <bowen@nearprotocol.com>
471
+ * Emil Laine <laine.emil@gmail.com>
472
+ * Stephen Paul Weber <stephen.weber@shopify.com>
473
+ * Jay Phelps <hello@jayphelps.com>
474
+ * jhwgh1968 <jhwgh1968@protonmail.com>
475
+ * Jeffrey Charles <jeffreycharles@gmail.com>
476
+ * Vladimir Tikhonov <reg@tikhonov.by>
477
+ * Duncan Uszkay <duncan.uszkay@shopify.com>
478
+ * Surma <surma@surma.dev>
479
+ * Julien Letellier <letellier.julien@gmail.com>
480
+ * Guido Zuidhof <me@guido.io>
481
+ * ncave <777696+ncave@users.noreply.github.com>
482
+ * Andrew Davis <pulpdrew@gmail.com>
483
+ * Maël Nison <nison.mael@gmail.com>
484
+ * Valeria Viana Gusmao <valeria.viana.gusmao@gmail.com>
485
+ * Gabor Greif <ggreif@gmail.com>
486
+ * Martin Fredriksson <martin.fredriksson@vikinganalytics.se>
487
+ * forcepusher <bionitsoup@gmail.com>
488
+ * Piotr Oleś <piotrek.oles@gmail.com>
489
+ * Saúl Cabrera <saulecabrera@gmail.com>
490
+ * Chance Snow <git@chancesnow.me>
491
+ * Peter Salomonsen <petersalomonsen@runbox.com>
492
+ * ookangzheng <git-ed@runbox.no>
493
+ * yjhmelody <yjh465402634@gmail.com>
494
+ * bnbarak <bn.barak@gmail.com>
495
+ * Colin Eberhardt <colin.eberhardt@gmail.com>
496
+ * Ryan Pivovar <ryanpivovar@gmail.com>
497
+ * Roman F. <70765447+romdotdog@users.noreply.github.com>
498
+ * Joe Pea <trusktr@gmail.com>
499
+ * Felipe Gasper <FGasper@users.noreply.github.com>
500
+ * Congcong Cai <congcongcai0907@163.com>
501
+ * mooooooi <emwings@outlook.com>
502
+ * Yasushi Ando <andyjpn@gmail.com>
503
+ * Syed Jafri <syed@metalpay.co>
504
+ * Peter Hayman <peteyhayman@gmail.com>
505
+ * ApsarasX <apsarax@outlook.com>
506
+ * Adrien Zinger <zinger.ad@gmail.com>
507
+ * Ruixiang Chen <xiang19890319@gmail.com>
508
+ * Daniel Salvadori <danaugrs@gmail.com>
509
+ * Jairus Tanaka <me@jairus.dev>
510
+ * CountBleck <Mr.YouKnowWhoIAm@protonmail.com>
511
+ * Abdul Rauf <abdulraufmujahid@gmail.com>
512
+ * Bach Le <bach@bullno1.com>
513
+ * Xinquan Xu <xinquan0203@163.com>
514
+ * Matt Johnson-Pint <mattjohnsonpint@gmail.com>
515
+ * Fabián Heredia Montiel <fabianhjr@users.noreply.github.com>
516
+ * Jonas Minnberg <sasq64@gmail.com>
517
+ * Kam Chehresa <kaz.che@gmail.com>
518
+ * Mopsgamer <79159094+Mopsgamer@users.noreply.github.com>
519
+ * EDM115 <github@edm115.dev>
520
+ * Weixie Cui <cuiweixie@gmail.com>
521
+
522
+ Portions of this software are derived from third-party works licensed under
523
+ the following terms:
524
+
525
+ * TypeScript: https://github.com/Microsoft/TypeScript
526
+
527
+ Copyright (c) Microsoft Corporation
528
+ Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0)
529
+
530
+ * Binaryen: https://github.com/WebAssembly/binaryen
531
+
532
+ Copyright (c) WebAssembly Community Group participants
533
+ Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0)
534
+
535
+ * musl libc: http://www.musl-libc.org
536
+
537
+ Copyright (c) Rich Felker, et al.
538
+ The MIT License (https://opensource.org/licenses/MIT)
539
+
540
+ * V8: https://developers.google.com/v8/
541
+
542
+ Copyright (c) the V8 project authors
543
+ The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause)
544
+
545
+ * Arm Optimized Routines: https://github.com/ARM-software/optimized-routines
546
+
547
+ Copyright (c) Arm Limited
548
+ The MIT License (https://opensource.org/licenses/MIT)
549
+
550
+
551
+ @swf2es/native
552
+ ==============
553
+
554
+ The bundle holds @swf2es/native's modules, with their WebAssembly. Its LICENSE.third-party:
555
+
556
+ Third-party code compiled into @swf2es/native's WebAssembly binaries, each
557
+ notice verbatim. The package's own code is under the Apache License 2.0.
558
+
559
+
560
+ @swf2es/native/compress: zlib
561
+ =============================
562
+
563
+ Copyright notice:
564
+
565
+ (C) 1995-2026 Jean-loup Gailly and Mark Adler
566
+
567
+ This software is provided 'as-is', without any express or implied
568
+ warranty. In no event will the authors be held liable for any damages
569
+ arising from the use of this software.
570
+
571
+ Permission is granted to anyone to use this software for any purpose,
572
+ including commercial applications, and to alter it and redistribute it
573
+ freely, subject to the following restrictions:
574
+
575
+ 1. The origin of this software must not be misrepresented; you must not
576
+ claim that you wrote the original software. If you use this software
577
+ in a product, an acknowledgment in the product documentation would be
578
+ appreciated but is not required.
579
+ 2. Altered source versions must be plainly marked as such, and must not be
580
+ misrepresented as being the original software.
581
+ 3. This notice may not be removed or altered from any source distribution.
582
+
583
+ Jean-loup Gailly Mark Adler
584
+ jloup@gzip.org madler@alumni.caltech.edu
585
+
586
+
587
+ @swf2es/native/compress: the LZMA SDK
588
+ =====================================
589
+
590
+ The LZMA encoder and decoder in this package's WebAssembly binary are
591
+ compiled from the LZMA SDK 26.05's C sources (C/LzmaEnc.c, C/LzFind.c,
592
+ C/LzmaDec.c and the headers they include), by Igor Pavlov, unchanged but
593
+ for line endings in swf2es/lzma-sdk. Each
594
+ of those files states:
595
+
596
+ Igor Pavlov : Public domain
597
+
598
+ and the SDK's DOC/lzma-sdk.txt says:
599
+
600
+ LZMA SDK is written and placed in the public domain by Igor Pavlov.
601
+
602
+ Anyone is free to copy, modify, publish, use, compile, sell, or distribute
603
+ the original LZMA SDK code, either in source code form or as a compiled
604
+ binary, for any purpose, commercial or non-commercial, and by any means.
605
+
606
+ This notice records where they come from.
607
+
608
+ https://www.7-zip.org/sdk.html
609
+
610
+
611
+ @swf2es/native/mp3: minimp3
612
+ ===========================
613
+
614
+ CC0 1.0 Universal
615
+
616
+ Statement of Purpose
617
+
618
+ The laws of most jurisdictions throughout the world automatically confer
619
+ exclusive Copyright and Related Rights (defined below) upon the creator and
620
+ subsequent owner(s) (each and all, an "owner") of an original work of
621
+ authorship and/or a database (each, a "Work").
622
+
623
+ Certain owners wish to permanently relinquish those rights to a Work for the
624
+ purpose of contributing to a commons of creative, cultural and scientific
625
+ works ("Commons") that the public can reliably and without fear of later
626
+ claims of infringement build upon, modify, incorporate in other works, reuse
627
+ and redistribute as freely as possible in any form whatsoever and for any
628
+ purposes, including without limitation commercial purposes. These owners may
629
+ contribute to the Commons to promote the ideal of a free culture and the
630
+ further production of creative, cultural and scientific works, or to gain
631
+ reputation or greater distribution for their Work in part through the use and
632
+ efforts of others.
633
+
634
+ For these and/or other purposes and motivations, and without any expectation
635
+ of additional consideration or compensation, the person associating CC0 with a
636
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
637
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
638
+ and publicly distribute the Work under its terms, with knowledge of his or her
639
+ Copyright and Related Rights in the Work and the meaning and intended legal
640
+ effect of CC0 on those rights.
641
+
642
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
643
+ protected by copyright and related or neighboring rights ("Copyright and
644
+ Related Rights"). Copyright and Related Rights include, but are not limited
645
+ to, the following:
646
+
647
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
648
+ and translate a Work;
649
+
650
+ ii. moral rights retained by the original author(s) and/or performer(s);
651
+
652
+ iii. publicity and privacy rights pertaining to a person's image or likeness
653
+ depicted in a Work;
654
+
655
+ iv. rights protecting against unfair competition in regards to a Work,
656
+ subject to the limitations in paragraph 4(a), below;
657
+
658
+ v. rights protecting the extraction, dissemination, use and reuse of data in
659
+ a Work;
660
+
661
+ vi. database rights (such as those arising under Directive 96/9/EC of the
662
+ European Parliament and of the Council of 11 March 1996 on the legal
663
+ protection of databases, and under any national implementation thereof,
664
+ including any amended or successor version of such directive); and
665
+
666
+ vii. other similar, equivalent or corresponding rights throughout the world
667
+ based on applicable law or treaty, and any national implementations thereof.
668
+
669
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
670
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
671
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
672
+ and Related Rights and associated claims and causes of action, whether now
673
+ known or unknown (including existing as well as future claims and causes of
674
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
675
+ duration provided by applicable law or treaty (including future time
676
+ extensions), (iii) in any current or future medium and for any number of
677
+ copies, and (iv) for any purpose whatsoever, including without limitation
678
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
679
+ the Waiver for the benefit of each member of the public at large and to the
680
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
681
+ shall not be subject to revocation, rescission, cancellation, termination, or
682
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
683
+ by the public as contemplated by Affirmer's express Statement of Purpose.
684
+
685
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
686
+ judged legally invalid or ineffective under applicable law, then the Waiver
687
+ shall be preserved to the maximum extent permitted taking into account
688
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
689
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
690
+ non transferable, non sublicensable, non exclusive, irrevocable and
691
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
692
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
693
+ provided by applicable law or treaty (including future time extensions), (iii)
694
+ in any current or future medium and for any number of copies, and (iv) for any
695
+ purpose whatsoever, including without limitation commercial, advertising or
696
+ promotional purposes (the "License"). The License shall be deemed effective as
697
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
698
+ License for any reason be judged legally invalid or ineffective under
699
+ applicable law, such partial invalidity or ineffectiveness shall not
700
+ invalidate the remainder of the License, and in such case Affirmer hereby
701
+ affirms that he or she will not (i) exercise any of his or her remaining
702
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
703
+ and causes of action with respect to the Work, in either case contrary to
704
+ Affirmer's express Statement of Purpose.
705
+
706
+ 4. Limitations and Disclaimers.
707
+
708
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
709
+ surrendered, licensed or otherwise affected by this document.
710
+
711
+ b. Affirmer offers the Work as-is and makes no representations or warranties
712
+ of any kind concerning the Work, express, implied, statutory or otherwise,
713
+ including without limitation warranties of title, merchantability, fitness
714
+ for a particular purpose, non infringement, or the absence of latent or
715
+ other defects, accuracy, or the present or absence of errors, whether or not
716
+ discoverable, all to the greatest extent permissible under applicable law.
717
+
718
+ c. Affirmer disclaims responsibility for clearing rights of other persons
719
+ that may apply to the Work or any use thereof, including without limitation
720
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
721
+ disclaims responsibility for obtaining any necessary consents, permissions
722
+ or other rights required for any use of the Work.
723
+
724
+ d. Affirmer understands and acknowledges that Creative Commons is not a
725
+ party to this document and has no duty or obligation with respect to this
726
+ CC0 or use of the Work.
727
+
728
+ For more information, please see
729
+ <http://creativecommons.org/publicdomain/zero/1.0/>
730
+
731
+
732
+
733
+ @swf2es/native/audio: FFmpeg's Nellymoser decoder
734
+ =================================================
735
+
736
+ src/audio/nellymoser.zig is translated from FFmpeg's
737
+ libavcodec/nellymoser.c and nellymoserdec.c, which carry this notice:
738
+
739
+ Copyright (c) 2007 a840bda5870ba11f19698ff6eb9581dfb0f95fa5,
740
+ 539459aeb7d425140b62a3ec7dbf6dc8e408a306, and
741
+ 520e17cd55896441042b14df2566a6eb610ed444
742
+ Copyright (c) 2007 Loic Minier <lool at dooz.org>
743
+ Benjamin Larsson
744
+
745
+ Permission is hereby granted, free of charge, to any person obtaining a
746
+ copy of this software and associated documentation files (the "Software"),
747
+ to deal in the Software without restriction, including without limitation
748
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
749
+ and/or sell copies of the Software, and to permit persons to whom the
750
+ Software is furnished to do so, subject to the following conditions:
751
+
752
+ The above copyright notice and this permission notice shall be included in
753
+ all copies or substantial portions of the Software.
754
+
755
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
756
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
757
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
758
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
759
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
760
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
761
+ DEALINGS IN THE SOFTWARE.
762
+
763
+ (The three alphanumeric notices are the MD5 sums of the original
764
+ implementers' names, of nelly2pcm.)
765
+
766
+
767
+ @swf2es/native/render: libtess2
768
+ ===============================
769
+
770
+ ** SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
771
+ ** Copyright (C) [dates of first publication] Silicon Graphics, Inc.
772
+ ** All Rights Reserved.
773
+ **
774
+ ** Permission is hereby granted, free of charge, to any person obtaining a copy
775
+ ** of this software and associated documentation files (the "Software"), to deal
776
+ ** in the Software without restriction, including without limitation the rights
777
+ ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
778
+ ** of the Software, and to permit persons to whom the Software is furnished to do so,
779
+ ** subject to the following conditions:
780
+ **
781
+ ** The above copyright notice including the dates of first publication and either this
782
+ ** permission notice or a reference to http://oss.sgi.com/projects/FreeB/ shall be
783
+ ** included in all copies or substantial portions of the Software.
784
+ **
785
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
786
+ ** INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
787
+ ** PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL SILICON GRAPHICS, INC.
788
+ ** BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
789
+ ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
790
+ ** OR OTHER DEALINGS IN THE SOFTWARE.
791
+ **
792
+ ** Except as contained in this notice, the name of Silicon Graphics, Inc. shall not
793
+ ** be used in advertising or otherwise to promote the sale, use or other dealings in
794
+ ** this Software without prior written authorization from Silicon Graphics, Inc.
795
+
796
+
797
+ @swf2es/native/render: SVG's feTurbulence (perlinNoise)
798
+ =======================================================
799
+
800
+ src/render/pixels.zig's noise for BitmapData.perlinNoise is derived from
801
+ the reference implementation of feTurbulence in Scalable Vector Graphics
802
+ (SVG) 1.1 (Second Edition),
803
+ https://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement
804
+
805
+ Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). This software or
806
+ document includes material copied from or derived from SVG 1.1, under the
807
+ W3C Software and Document License:
808
+ https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
809
+
810
+
811
+ @swf2es/native/atf: jxrlib
812
+ ==========================
813
+
814
+ BSD 2-Clause License
815
+
816
+ Copyright © Microsoft Corp.
817
+ All rights reserved.
818
+
819
+ Redistribution and use in source and binary forms, with or without
820
+ modification, are permitted provided that the following conditions are met:
821
+
822
+ * Redistributions of source code must retain the above copyright notice, this
823
+ list of conditions and the following disclaimer.
824
+
825
+ * Redistributions in binary form must reproduce the above copyright notice,
826
+ this list of conditions and the following disclaimer in the documentation
827
+ and/or other materials provided with the distribution.
828
+
829
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
830
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
831
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
832
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
833
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
834
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
835
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
836
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
837
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
838
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
839
+
840
+
841
+ @swf2es/native: Zig's standard library and compiler-rt
842
+ ======================================================
843
+
844
+ Every binary holds code from Zig 0.17.0 (https://ziglang.org), compiled in
845
+ by the pinned Zig that builds it: parts of its standard library, and
846
+ compiler-rt's routines the C calls (memcmp, strlen). Zig's licence:
847
+
848
+ The MIT License (Expat)
849
+
850
+ Copyright (c) Zig contributors
851
+
852
+ Permission is hereby granted, free of charge, to any person obtaining a copy
853
+ of this software and associated documentation files (the "Software"), to deal
854
+ in the Software without restriction, including without limitation the rights
855
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
856
+ copies of the Software, and to permit persons to whom the Software is
857
+ furnished to do so, subject to the following conditions:
858
+
859
+ The above copyright notice and this permission notice shall be included in
860
+ all copies or substantial portions of the Software.
861
+
862
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
863
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
864
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
865
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
866
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
867
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
868
+ THE SOFTWARE.
869
+
870
+
871
+ Rspack
872
+ ======
873
+
874
+ dist/swf2es.js, dist/worker.js and dist/chunks/ are bundled by Rspack,
875
+ https://github.com/web-infra-dev/rspack, and hold the runtime it writes
876
+ into a bundle, under the MIT License:
877
+
878
+ MIT License
879
+
880
+ Copyright (c) 2022-present Bytedance, Inc. and its affiliates.
881
+
882
+
883
+ Permission is hereby granted, free of charge, to any person obtaining a copy
884
+ of this software and associated documentation files (the "Software"), to deal
885
+ in the Software without restriction, including without limitation the rights
886
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
887
+ copies of the Software, and to permit persons to whom the Software is
888
+ furnished to do so, subject to the following conditions:
889
+
890
+ The above copyright notice and this permission notice shall be included in all
891
+ copies or substantial portions of the Software.
892
+
893
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
894
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
895
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
896
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
897
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
898
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
899
+ SOFTWARE.