dns-worker 1.0.2-3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/LICENSE +662 -0
  2. package/README.md +294 -0
  3. package/dist/serverfull.mjs +11777 -0
  4. package/migrations/0000_init.sql +80 -0
  5. package/migrations/0001_move_lists_to_d1.sql +12 -0
  6. package/migrations/0002_activity_tracking.sql +7 -0
  7. package/migrations/0003_fix_profiles_cascade.sql +21 -0
  8. package/migrations/0004_system_settings.sql +12 -0
  9. package/migrations/0005_add_bloom_storage.sql +3 -0
  10. package/migrations/0006_cleanup_profiles_table.sql +18 -0
  11. package/migrations/0007_user_activity_and_totp.sql +37 -0
  12. package/migrations/0008_add_profile_key.sql +8 -0
  13. package/migrations/0009_add_profile_blooms.sql +5 -0
  14. package/migrations/0010_session_device_info.sql +3 -0
  15. package/migrations/0011_session_created_at.sql +2 -0
  16. package/migrations/0012_profile_bloom_chunks.sql +9 -0
  17. package/migrations/0013_add_session_revoked_to_activity_log.sql +29 -0
  18. package/migrations/0014_add_session_geo.sql +3 -0
  19. package/migrations/0015_add_signup_to_activity_log.sql +30 -0
  20. package/migrations/0016_add_session_rotation_counter.sql +2 -0
  21. package/migrations/0017_add_access_points.sql +31 -0
  22. package/migrations/0018_add_list_updated_at.sql +2 -0
  23. package/migrations/0019_add_list_sync_error.sql +2 -0
  24. package/migrations/0020_add_session_last_active.sql +5 -0
  25. package/migrations/0021_add_user_timezone.sql +2 -0
  26. package/migrations/0022_add_user_locale.sql +2 -0
  27. package/migrations/0023_add_user_password_version.sql +2 -0
  28. package/migrations/0024_session_pin_and_pause.sql +37 -0
  29. package/migrations/0025_add_secret_table.sql +10 -0
  30. package/migrations/0026_session_lock_config.sql +2 -0
  31. package/migrations/0027_add_session_id_to_activity_log.sql +2 -0
  32. package/migrations/0028_rename_session_id_to_session_id_hash.sql +2 -0
  33. package/migrations/0029_profile_blooms_staging.sql +12 -0
  34. package/migrations/0030_add_list_blooms.sql +7 -0
  35. package/migrations/0031_list_blooms_chunks.sql +13 -0
  36. package/migrations/0032_profile_blooms_cascade.sql +40 -0
  37. package/migrations/0033_remove_system_secrets.sql +2 -0
  38. package/migrations/0034_remove_list_entries.sql +2 -0
  39. package/migrations/0035_add_envelope_encryption_columns.sql +5 -0
  40. package/migrations/0036_add_cf_proxy_cidrs_setting.sql +7 -0
  41. package/migrations/0037_optimize_logs_composite_indexes.sql +25 -0
  42. package/migrations/0038_optimize_logs_table_and_indexes.sql +49 -0
  43. package/migrations/0039_add_lists_profile_id_index.sql +5 -0
  44. package/migrations/0040_reduce_logs_indexes_write_cost.sql +9 -0
  45. package/migrations/0041_create_log_hourly_rollups.sql +21 -0
  46. package/migrations/0042_add_rule_created_at.sql +3 -0
  47. package/migrations/0043_create_client_hourly_rollups.sql +26 -0
  48. package/migrations/0044_create_destination_hourly_rollups.sql +29 -0
  49. package/migrations/0045_transform_logs_without_rowid.sql +38 -0
  50. package/migrations/0046_add_passkeys.sql +19 -0
  51. package/migrations/0047_add_passkey_actions_to_activity_log.sql +35 -0
  52. package/migrations/0048_add_recovery_key_rotated_to_activity_log.sql +35 -0
  53. package/migrations/0049_optimize_rollups_and_add_domain_rollups.sql +26 -0
  54. package/migrations/0050_add_dest_columns_to_logs.sql +6 -0
  55. package/migrations/0051_add_registration_enabled_setting.sql +2 -0
  56. package/package.json +71 -0
  57. package/static/assets/AccountView-BvRvODjN.js +4 -0
  58. package/static/assets/AnalyticsView-DQ7hDChh.js +2 -0
  59. package/static/assets/AuthView-Bwv6hbdi.js +2 -0
  60. package/static/assets/DestinationMap-BEQNbcb-.js +1 -0
  61. package/static/assets/FilteringView-BWD3e-DS.js +1 -0
  62. package/static/assets/LogsView-kQy7qTGd.js +5 -0
  63. package/static/assets/QRCodeCanvas-X07w5x_G.js +2 -0
  64. package/static/assets/RulesView-3d5hga0L.js +1 -0
  65. package/static/assets/SettingsView-B9D0kPUF.js +1 -0
  66. package/static/assets/SetupView-D7d-Gsdr.js +1 -0
  67. package/static/assets/SwipeableDrawer-B-MfxTWM.js +1 -0
  68. package/static/assets/TrendChart-B20w7SzD.js +53 -0
  69. package/static/assets/allPaths-BEI3QvIM.js +1 -0
  70. package/static/assets/allPathsLoader-DM2JAMeC.js +1 -0
  71. package/static/assets/browser-icErLjuM.js +1 -0
  72. package/static/assets/date-C4b8kvr-.js +1 -0
  73. package/static/assets/de-DE-CXKS_pep.js +10 -0
  74. package/static/assets/es-ES-B2e3ea35.js +10 -0
  75. package/static/assets/formatCountryName-CSBD8pP8.js +1 -0
  76. package/static/assets/fr-FR-1qQHEpoW.js +10 -0
  77. package/static/assets/getFlagEmoji-_Wxhq0lT.js +1 -0
  78. package/static/assets/index-7FKlsF79.js +16 -0
  79. package/static/assets/index-DdQuGqR5.css +2 -0
  80. package/static/assets/ja-JP-CCVeJXwX.js +10 -0
  81. package/static/assets/ko-KR-bQ1okpC2.js +10 -0
  82. package/static/assets/obex_cat_eye_logo-256-CgYNvUIC.webp +0 -0
  83. package/static/assets/paths-CfqdBnl8.js +1 -0
  84. package/static/assets/paths-cc-gUzxh.js +1 -0
  85. package/static/assets/rolldown-runtime-C4Xdq4VV.js +1 -0
  86. package/static/assets/ru-RU-DeRsms_o.js +10 -0
  87. package/static/assets/services-fIMx5oSx.js +1 -0
  88. package/static/assets/splitPathsBySizeLoader-BgBwSA38.js +1 -0
  89. package/static/assets/vendor-i18next-cO7FDf_e.js +1 -0
  90. package/static/assets/vendor-icons-16-BgwRBCeU.js +1 -0
  91. package/static/assets/vendor-icons-20-X5NPN60g.js +1 -0
  92. package/static/assets/vendor-icons-other-Bme3ywH9.js +2 -0
  93. package/static/assets/vendor-react-Kt98jRfM.js +11 -0
  94. package/static/assets/vendor-ui-core-BpucEp_q.js +1 -0
  95. package/static/assets/vendor-utils-CfYGGC23.js +9 -0
  96. package/static/assets/vi-VN-BcXfqmzH.js +10 -0
  97. package/static/assets/zh-CN-D8YK7j27.js +12 -0
  98. package/static/assets/zh-TW-C2_-uaZk.js +12 -0
  99. package/static/favicon.webp +0 -0
  100. package/static/index.html +27 -0
  101. package/static/manifest.webmanifest +1 -0
  102. package/static/registerSW.js +1 -0
  103. package/static/sw.js +1 -0
package/LICENSE ADDED
@@ -0,0 +1,662 @@
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our general public licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, there is a special problem. The
38
+ standard GNU General Public License, version 3, is designed to allow
39
+ users of a program to access a modified version without actually
40
+ getting its source, if they receive the program's services over a
41
+ network. This GNU Affero General Public License is designed
42
+ specifically to alter that outcome and ensure that the modified
43
+ version's source code becomes available to the community.
44
+
45
+ As with the GNU General Public License, the GNU Affero General
46
+ Public License permits making a modified version available as a
47
+ service, but requires the modified version's source code to be
48
+ made available to the public. The License also allows any party
49
+ to make a modified version available as a service provided that
50
+ they also make the source code of that version available.
51
+
52
+ The precise terms and conditions for copying, distribution and
53
+ modification follow.
54
+
55
+ TERMS AND CONDITIONS
56
+
57
+ 0. Definitions.
58
+
59
+ "This License" refers to version 3 of the GNU Affero General Public License.
60
+
61
+ "Copyright" also means copyright-like laws that apply to other kinds of
62
+ works, such as semiconductor masks.
63
+
64
+ "The Program" refers to any copyrightable work licensed under this
65
+ License. Each licensee is addressed as "you". "Licensees" and
66
+ "recipients" may be individuals or organizations.
67
+
68
+ To "modify" a work means to copy from or adapt all or part of the work
69
+ in a fashion requiring copyright permission, other than the making of an
70
+ exact copy. The resulting work is called a "modified version" of the
71
+ earlier work or a work "based on" the earlier work.
72
+
73
+ A "covered work" means either the unmodified Program or a work based
74
+ on the Program.
75
+
76
+ To "propagate" a work means to do anything with it that, without
77
+ permission, would make you directly or secondarily liable for
78
+ infringement under applicable copyright law, except executing it on a
79
+ computer or modifying a private copy. Propagation includes copying,
80
+ distribution (with or without modification), making available to the
81
+ public, and in some countries other activities as well.
82
+
83
+ To "convey" a work means any kind of propagation that enables other
84
+ parties to make or receive copies. Mere interaction with a user through
85
+ a computer network, with no transfer of a copy, is not conveying.
86
+
87
+ An interactive user interface displays "Appropriate Legal Notices"
88
+ to the extent that it includes a convenient and prominently visible
89
+ feature that (1) displays an appropriate copyright notice, and (2)
90
+ tells the user that there is no warranty for the work (except to the
91
+ extent that warranties are provided), that licensees may convey the
92
+ work under this License, and how to view a copy of this License. If
93
+ the interface presents a list of user commands or options, such as a
94
+ menu, a prominent item in the list meets this criterion.
95
+
96
+ 1. Source Code.
97
+
98
+ The "source code" for a work means the preferred form of the work
99
+ for making modifications to it. "Object code" means any non-source
100
+ form of a work.
101
+
102
+ A "Standard Interface" means an interface that either is an official
103
+ standard defined by a recognized international standards body, or, in
104
+ the case of interfaces specified for a particular programming
105
+ language, one that is widely used among developers working in that
106
+ language.
107
+
108
+ The "System Libraries" of an executable work include anything, other
109
+ than the work as a whole, that (a) is included in the normal form of
110
+ packaging a Component, but which is not part of that Component, and
111
+ (b) serves only to enable use of the work with that Component, or to
112
+ implement a Standard Interface for which an implementation is
113
+ available to the public in source code form. A "Component" in this
114
+ context means a major essential component (kernel, window system, and
115
+ so on) of the specific operating system (if any) on which the
116
+ executable work runs, or a compiler used to produce the work, or an
117
+ object code interpreter used to run it.
118
+
119
+ The "Corresponding Source" for a work in object code form means all
120
+ the source code needed to generate, install, and (for an executable
121
+ work) run the object code and to modify the work, including scripts to
122
+ control those activities. However, it does not include the work's
123
+ System Libraries, or general-purpose tools or generally available free
124
+ programs which are used unmodified in performing those activities but
125
+ which are not part of the work. For example, Corresponding Source
126
+ includes interface definition files associated with source files for
127
+ the work, and the source code for shared libraries and dynamically
128
+ linked subprograms that the work is specifically designed to require,
129
+ such as by intimate data communication or control flow between those
130
+ subprograms and other parts of the work.
131
+
132
+ The Corresponding Source need not include anything that users
133
+ can regenerate automatically from other parts of the Corresponding
134
+ Source.
135
+
136
+ The Corresponding Source for a work in source code form is that
137
+ same work.
138
+
139
+ 2. Basic Permissions.
140
+
141
+ All rights granted under this License are granted for the term of
142
+ copyright on the Program, and are irrevocable provided the stated
143
+ conditions are met. This License explicitly affirms your unlimited
144
+ permission to run the unmodified Program. The output from running a
145
+ covered work is covered by this License only if the output, given its
146
+ content, constitutes a covered work. This License acknowledges your
147
+ rights of fair use or other equivalent, as provided by copyright law.
148
+
149
+ You may make, run and propagate covered works that you do not
150
+ convey, without conditions so long as your license otherwise remains
151
+ in force. You may convey covered works to others for the sole purpose
152
+ of having them make modifications exclusively for you, or provide you
153
+ with facilities for running those works, provided that you comply with
154
+ the terms of this License in conveying all material for which you do
155
+ not control copyright. Those thus making or running the covered works
156
+ for you must do so exclusively on your behalf, under your direction
157
+ and control, on terms that prohibit them from making any copies of
158
+ your copyrighted material outside their relationship with you.
159
+
160
+ Conveying under any other circumstances is permitted solely under
161
+ the conditions stated below. Sublicensing is not allowed; section 10
162
+ makes it unnecessary.
163
+
164
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
165
+
166
+ No covered work shall be deemed part of an effective technological
167
+ measure under any applicable law fulfilling obligations under article
168
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
169
+ similar laws prohibiting or restricting circumvention of such
170
+ measures.
171
+
172
+ When you convey a covered work, you waive any legal power to forbid
173
+ circumvention of technological measures to the extent such circumvention
174
+ is effected by exercising rights under this License with respect to
175
+ the covered work, and you disclaim any intention to limit operation or
176
+ modification of the work as a means of enforcing, against the work's
177
+ users, your or third parties' legal rights to forbid circumvention of
178
+ technological measures.
179
+
180
+ 4. Conveying Verbatim Copies.
181
+
182
+ You may convey verbatim copies of the Program's source code as you
183
+ receive it, in any medium, provided that you conspicuously and
184
+ appropriately publish on each copy an appropriate copyright notice;
185
+ keep intact all notices stating that this License and any
186
+ non-permissive terms added in accordance with section 7 apply to the
187
+ code; keep intact all notices of the absence of any warranty; and
188
+ give all recipients a copy of this License along with the Program.
189
+
190
+ You may charge any price or no price for each copy that you convey,
191
+ and you may offer support or warranty protection for a fee.
192
+
193
+ 5. Conveying Modified Source Versions.
194
+
195
+ You may convey a work based on the Program, or the modifications to
196
+ produce it from the Program, in the form of source code under the
197
+ terms of section 4, provided that you also meet all of these conditions:
198
+
199
+ a) The work must carry prominent notices stating that you modified
200
+ it, and giving a relevant date.
201
+
202
+ b) The work must carry prominent notices stating that it is
203
+ released under this License and any conditions added under
204
+ section 7. This requirement modifies the requirement in
205
+ section 4 to "keep intact all notices".
206
+
207
+ c) You must license the entire work, as a whole, under this
208
+ License to anyone who comes into possession of a copy. This
209
+ License will therefore apply, along with any applicable section 7
210
+ additional terms, to the whole of the work, and all its parts,
211
+ regardless of how they are packaged. This License gives no
212
+ permission to license the work in any other way, but it does not
213
+ invalidate such permission if you have separately received it.
214
+
215
+ d) If the work has interactive user interfaces, each must display
216
+ Appropriate Legal Notices; however, if the Program has
217
+ interactive interfaces that do not display Appropriate Legal
218
+ Notices, your work need not make them do so.
219
+
220
+ A compilation of a covered work with other separate and independent
221
+ works, which are not by their nature extensions of the covered work,
222
+ and which are not combined with it such as to form a larger program,
223
+ in or on a volume of a storage or distribution medium, is called an
224
+ "aggregate" if the compilation and its resulting copyright are not
225
+ used to limit the access or legal rights of the compilation's users
226
+ beyond what the individual works permit. Inclusion of a covered work
227
+ in an aggregate does not cause this License to apply to the other
228
+ parts of the aggregate.
229
+
230
+ 6. Conveying Non-Source Forms.
231
+
232
+ You may convey a covered work in object code form under the terms
233
+ of sections 4 and 5, provided that you also convey the
234
+ machine-readable Corresponding Source under the terms of this License,
235
+ in one of these ways:
236
+
237
+ a) Convey the object code in, or embodied in, a physical product
238
+ (including a physical distribution medium), accompanied by the
239
+ Corresponding Source fixed on a durable physical medium
240
+ customarily used for software interchange.
241
+
242
+ b) Convey the object code in, or embodied in, a physical product
243
+ (including a physical distribution medium), accompanied by a
244
+ written offer, valid for at least three years and valid for as
245
+ long as you offer spare parts or customer support for that
246
+ product model, to give anyone who possesses the object code
247
+ either (1) a copy of the Corresponding Source for all the
248
+ software in the product that is covered by this License, on a
249
+ durable physical medium customarily used for software
250
+ interchange, for a price no more than your reasonable cost of
251
+ physically performing this conveying of source, or (2) access to
252
+ copy the Corresponding Source from a network server at no charge.
253
+
254
+ c) Convey individual copies of the object code with a copy of the
255
+ written offer to provide the Corresponding Source. This
256
+ alternative is allowed only occasionally and noncommercially, and
257
+ only if you received the object code with such an offer, in
258
+ accord with subsection 6b.
259
+
260
+ d) Convey the object code by offering access from a designated
261
+ place (gratis or for a charge), and offer equivalent access to
262
+ the Corresponding Source in the same way through the same place
263
+ at no further charge. You need not require recipients to copy
264
+ the Corresponding Source along with the object code. If the
265
+ place to copy the object code is a network server, the
266
+ Corresponding Source may be on a different server (operated by
267
+ you or a third party) that supports equivalent copying
268
+ facilities, provided you maintain clear directions next to the
269
+ object code saying where the Corresponding Source is located.
270
+ Regardless of what server hosts the Corresponding Source, you
271
+ remain obligated to ensure that it is available for as long as
272
+ needed to satisfy these requirements.
273
+
274
+ e) Convey the object code using peer-to-peer transmission, provided
275
+ you inform other peers where the object code and Corresponding
276
+ Source of the work are being offered to the general public at no
277
+ charge under subsection 6d.
278
+
279
+ A separable portion of the object code, whose source code is excluded
280
+ from the Corresponding Source as a System Library, need not be
281
+ included in conveying the object code work.
282
+
283
+ A "User Product" is either (1) a "consumer product", which means any
284
+ tangible personal property which is normally used for personal,
285
+ family, or household purposes, or (2) anything designed or sold for
286
+ incorporation into a dwelling. In determining whether a product is a
287
+ consumer product, doubtful cases shall be resolved in favor of
288
+ coverage. For a particular product received by a particular user,
289
+ "normally used" refers to a typical or common use of that class of
290
+ product, regardless of the status of the particular user or of the
291
+ way in which the particular user actually uses, or expects or is
292
+ expected to use, the product. A product is a consumer product
293
+ regardless of whether the product has substantial commercial,
294
+ industrial or non-consumer uses, unless such uses represent the only
295
+ significant mode of use of the product.
296
+
297
+ "Installation Information" for a User Product means any methods,
298
+ procedures, authorization keys, or other information required to
299
+ install and execute modified versions of a covered work in that User
300
+ Product from a modified version of its Corresponding Source. The
301
+ information must suffice to ensure that the continued functioning of
302
+ the modified object code is in no case prevented or interfered with
303
+ solely because modification has been made.
304
+
305
+ If you convey an object code work under this section in, or with, or
306
+ specifically for use in, a User Product, and the conveying occurs as
307
+ part of a transaction in which the right of possession and use of the
308
+ User Product is transferred to the recipient in perpetuity or for a
309
+ fixed term (regardless of how the transaction is characterized), the
310
+ Corresponding Source conveyed under this section must be accompanied
311
+ by the Installation Information. But this requirement does not apply
312
+ if neither you nor any third party retains the ability to install
313
+ modified object code on the User Product (for example, the work has
314
+ been installed in ROM).
315
+
316
+ The requirement to provide Installation Information does not include a
317
+ requirement to continue to provide support service, warranty, or
318
+ updates for a work that has been modified or installed by the
319
+ recipient, or for the User Product in which it has been modified or
320
+ installed. Access to a network may be denied when the modification
321
+ itself materially and adversely affects the operation of the network
322
+ or violates the rules and protocols for communication across the
323
+ network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 13. Remote Network Interaction; Use with the GNU General Public License.
332
+
333
+ Notwithstanding any other provision of this License, if you modify the
334
+ Program, your modified version must prominently offer all users
335
+ interacting with it remotely through a computer network (if your
336
+ version supports such interaction) an opportunity to receive the
337
+ Corresponding Source of your version by providing access to the
338
+ Corresponding Source from a network server at no charge, through some
339
+ standard or customary means of facilitating copying of software. This
340
+ Corresponding Source shall include the Corresponding Source for any
341
+ work covered by version 3 of the GNU General Public License that is
342
+ incorporated pursuant to the following paragraph.
343
+
344
+ Notwithstanding any other provision of this License, you have
345
+ permission to link or combine any covered work with a work licensed
346
+ under version 3 of the GNU General Public License into a single
347
+ combined work, and to convey the resulting work. The terms of this
348
+ License will continue to apply to the part which is the covered work,
349
+ but the work with which it is combined will remain governed by version
350
+ 3 of the GNU General Public License.
351
+
352
+ 7. Additional Terms.
353
+
354
+ "Additional permissions" are terms that supplement the terms of this
355
+ License by making exceptions from one or more of its conditions.
356
+ Additional permissions that are applicable to the entire Program shall
357
+ be treated as though they were included in this License, to the extent
358
+ that they are valid under applicable law. If additional permissions
359
+ apply only to part of the Program, that part may be used separately
360
+ under those permissions, but the entire Program remains governed by
361
+ this License without regard to the additional permissions.
362
+
363
+ When you convey a copy of a covered work, you may at your option
364
+ remove any additional permissions from that copy, or from any part of
365
+ it. (Additional permissions may be written to require their own
366
+ removal in certain cases when you modify the work.) You may place
367
+ additional permissions on material, added by you to a covered work,
368
+ for which you have or can give appropriate copyright permission.
369
+
370
+ Notwithstanding any other provision of this License, for material you
371
+ add to a covered work, you may (if authorized by the copyright holders
372
+ of that material) supplement the terms of this License with terms:
373
+
374
+ a) Disclaiming warranty or limiting liability differently from the
375
+ terms of sections 15 and 16 of this License; or
376
+
377
+ b) Requiring preservation of specified reasonable legal notices or
378
+ author attributions in that material or in the Appropriate Legal
379
+ Notices displayed by works containing it; or
380
+
381
+ c) Prohibiting misrepresentation of the origin of that material, or
382
+ requiring that modified versions of such material be marked in
383
+ reasonable ways as different from the original version; or
384
+
385
+ d) Limiting the use for publicity purposes of names of licensors or
386
+ authors of the material; or
387
+
388
+ e) Declining to grant rights under trademark law for use of some
389
+ trade names, trademarks, or service marks; or
390
+
391
+ f) Requiring indemnification of licensors and authors of that
392
+ material by anyone who conveys the material (or modified versions
393
+ of it) with contractual assumptions of liability to the
394
+ recipient, for any liability that these contractual assumptions
395
+ directly impose on those licensors and authors.
396
+
397
+ All other non-permissive additional terms are considered "further
398
+ restrictions" within the meaning of section 10. If the Program as you
399
+ received it, or any part of it, contains a notice stating that it is
400
+ governed by this License along with a term that is a further
401
+ restriction, you may remove that term. If a license document contains
402
+ a further restriction but permits relicensing or conveying under this
403
+ License, you may add to a covered work material governed by the terms
404
+ of that license document, provided that the further restriction does
405
+ not survive such relicensing or conveying.
406
+
407
+ If you add terms to a covered work in accordance with this section,
408
+ you must place, in the relevant source files, a statement of the
409
+ additional terms that apply to those files, or a notice indicating
410
+ where to find the applicable terms.
411
+
412
+ Additional terms, permissive or non-permissive, may be stated in the
413
+ form of a separately written license, or stated as exceptions;
414
+ the above requirements apply either way.
415
+
416
+ 8. Termination.
417
+
418
+ You may not propagate or modify a covered work except as expressly
419
+ provided under this License. Any attempt otherwise to propagate or
420
+ modify it is void, and will automatically terminate your rights under
421
+ this License (including any patent licenses granted under the third
422
+ paragraph of section 11).
423
+
424
+ However, if you cease all violation of this License, then your
425
+ license from a particular copyright holder is reinstated (a)
426
+ provisionally, unless and until the copyright holder explicitly and
427
+ finally terminates your license, and (b) permanently, if the copyright
428
+ holder fails to notify you of the violation by some reasonable means
429
+ prior to 60 days after the cessation.
430
+
431
+ Moreover, your license from a particular copyright holder is
432
+ reinstated permanently if the copyright holder notifies you of the
433
+ violation by some reasonable means, this is the first time you have
434
+ received notice of violation of this License (for any work) from that
435
+ copyright holder, and you cure the violation prior to 30 days after
436
+ your receipt of the notice.
437
+
438
+ Termination of your rights under this section does not terminate the
439
+ licenses of parties who have received copies or rights from you under
440
+ this License. If your rights have been terminated and not permanently
441
+ reinstated, you do not qualify to receive new licenses for the same
442
+ material under section 10.
443
+
444
+ 9. Acceptance Not Required for Having Copies.
445
+
446
+ You are not required to accept this License in order to receive or
447
+ run a copy of the Program. Ancillary propagation of a covered work
448
+ occurring solely as a consequence of using peer-to-peer transmission
449
+ to receive a copy likewise does not require acceptance. However,
450
+ nothing other than this License grants you permission to propagate or
451
+ modify any covered work. These actions infringe copyright if you do
452
+ not accept this License. Therefore, by modifying or propagating a
453
+ covered work, you indicate your acceptance of this License to do so.
454
+
455
+ 10. Automatic Licensing of Downstream Recipients.
456
+
457
+ Each time you convey a covered work, the recipient automatically
458
+ receives a license from the original licensors, to run, modify and
459
+ propagate that work, subject to this License. You are not responsible
460
+ for enforcing compliance by third parties with this License.
461
+
462
+ An "entity transaction" is a transaction transferring control of an
463
+ organization, or substantially all assets of one, or subdividing an
464
+ organization, or merging organizations. If propagation of a covered
465
+ work results from an entity transaction, each party to that
466
+ transaction who receives a copy of the work also receives whatever
467
+ licenses to the work the party's predecessor in interest had or could
468
+ give under the previous paragraph, plus a right to possession of the
469
+ Corresponding Source of the work from the predecessor in interest, if
470
+ the predecessor has it or can get it with reasonable efforts.
471
+
472
+ You may not impose any further restrictions on the exercise of the
473
+ rights granted or affirmed under this License. For example, you may
474
+ not impose a sublicensing fee, royalty, or other charge for exercise
475
+ of rights granted under this License, and you may not initiate
476
+ litigation (including a cross-claim or counterclaim in a lawsuit)
477
+ alleging that any patent claim is infringed by making, using, selling,
478
+ offering for sale, or importing the Program or any portion of it.
479
+
480
+ 11. Patents.
481
+
482
+ A "contributor" is a copyright holder who authorizes use under this
483
+ License of the Program or a work on which the Program is based. The
484
+ work thus licensed is called the contributor's "contributor version".
485
+
486
+ A contributor's "essential patent claims" are all patent claims
487
+ owned or controlled by the contributor, whether already acquired or
488
+ hereafter acquired, that would be infringed by some manner, permitted
489
+ by this License, of making, using, or selling its contributor version,
490
+ but do not include claims that would be infringed only as a
491
+ consequence of further modification of the contributor version. For
492
+ purposes of this definition, "control" includes the right to grant
493
+ patent sublicenses in a manner consistent with the requirements of
494
+ this License.
495
+
496
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
497
+ patent license under the contributor's essential patent claims, to
498
+ make, use, sell, offer for sale, import and otherwise run, modify and
499
+ propagate the contents of its contributor version.
500
+
501
+ In the following three paragraphs, a "patent license" is any express
502
+ agreement or commitment, however denominated, not to enforce a patent
503
+ (such as an express permission to practice a patent or covenant not to
504
+ sue for patent infringement). To "grant" such a patent license to a
505
+ party means to make such an agreement or commitment not to enforce a
506
+ patent against the party.
507
+
508
+ If you convey a covered work, knowingly relying on a patent license,
509
+ and the Corresponding Source of the work is not available for anyone
510
+ to copy, free of charge and under the terms of this License, through a
511
+ publicly available network server or other readily accessible means,
512
+ then you must either (1) cause the Corresponding Source to be so
513
+ available, or (2) arrange to deprive yourself of the benefit of the
514
+ patent license for this particular work, or (3) arrange, in a manner
515
+ consistent with the requirements of this License, to extend the patent
516
+ license to downstream recipients. "Knowingly relying" means you have
517
+ actual knowledge that, but for the patent license, your conveying the
518
+ covered work in a country, or your recipient's use of the covered work
519
+ in a country, would infringe one or more identifiable patents in that
520
+ country that you have reason to believe are valid.
521
+
522
+ If, pursuant to or in connection with a single transaction or
523
+ arrangement, you convey, or propagate by procuring conveyance of, a
524
+ covered work, and grant a patent license to some of the parties
525
+ receiving the covered work authorizing them to use, propagate, modify
526
+ or convey a specific copy of the covered work, then the patent license
527
+ you grant is automatically extended to all recipients of the covered
528
+ work and works based on it.
529
+
530
+ A patent license is "discriminatory" if it does not include within
531
+ the scope of its coverage, prohibits the exercise of, or is
532
+ conditioned on the non-exercise of one or more of the rights that are
533
+ specifically granted under this License. You may not convey a covered
534
+ work if you are a party to an arrangement with a third party that is
535
+ in the business of distributing software, under which you make payment
536
+ to the third party based on the extent of your activity of conveying
537
+ the work, and under which the third party grants, to any of the
538
+ parties who would receive the covered work from you, a discriminatory
539
+ patent license (a) in connection with copies of the covered work
540
+ conveyed by you (or copies made from those copies), or (b) primarily
541
+ for and in connection with specific products or compilations that
542
+ contain the covered work, unless you entered into that arrangement,
543
+ or that patent license was granted, prior to 28 March 2007.
544
+
545
+ Nothing in this License shall be construed as excluding or limiting
546
+ any implied license or other defenses to infringement that may
547
+ otherwise be available to you under applicable patent law.
548
+
549
+ 12. No Surrender of Others' Freedom.
550
+
551
+ If conditions are imposed on you (whether by court order, agreement or
552
+ otherwise) that contradict the conditions of this License, they do not
553
+ excuse you from the conditions of this License. If you cannot convey a
554
+ covered work so as to satisfy simultaneously your obligations under this
555
+ License and any other pertinent obligations, then as a consequence you
556
+ may not convey it at all. For example, if you agree to terms that
557
+ obligate you to collect a royalty for further conveying from those to
558
+ whom you convey the Program, the only way you could satisfy both those
559
+ terms and this License would be to refrain entirely from conveying the
560
+ Program.
561
+
562
+ 14. Revised Versions of this License.
563
+
564
+ The Free Software Foundation may publish revised and/or new versions
565
+ of the GNU Affero General Public License from time to time. Such new
566
+ versions will be similar in spirit to the present version, but may
567
+ differ in detail to address new problems or concerns.
568
+
569
+ Each version is given a distinguishing version number. If the
570
+ Program specifies that a certain numbered version of the GNU Affero
571
+ General Public License "or any later version" applies to it, you have
572
+ the option of following the terms and conditions either of that
573
+ numbered version or of any later version published by the Free
574
+ Software Foundation. If the Program does not specify a version number
575
+ of the GNU Affero General Public License, you may choose any version
576
+ ever published by the Free Software Foundation.
577
+
578
+ If the Program specifies that a proxy can decide which future
579
+ versions of the GNU Affero General Public License can be used, that
580
+ proxy's public statement of acceptance of a version permanently
581
+ authorizes you to choose that version for the Program.
582
+
583
+ Later license versions may give you additional or different
584
+ permissions. However, no additional obligations are imposed on any
585
+ author or copyright holder as a result of your choosing to follow a
586
+ later version.
587
+
588
+ 15. Disclaimer of Warranty.
589
+
590
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
591
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
592
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
593
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
594
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
595
+ A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
596
+ OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU
597
+ ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
598
+
599
+ 16. Limitation of Liability.
600
+
601
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
602
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
603
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING
604
+ ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT
605
+ OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
606
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED
607
+ BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH
608
+ ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
609
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
610
+
611
+ 17. Interpretation of Sections 15 and 16.
612
+
613
+ If the disclaimer of warranty and limitation of liability provided
614
+ above cannot be given local legal effect according to their terms,
615
+ reviewing courts shall apply local law that most closely approximates
616
+ an absolute waiver of all civil liability in connection with the
617
+ Program, unless a warranty or assumption of liability accompanies a
618
+ copy of the Program in return for a fee.
619
+
620
+ END OF TERMS AND CONDITIONS
621
+
622
+ How to Apply These Terms to Your New Programs
623
+
624
+ If you develop a new program, and you want it to be of the greatest
625
+ possible use to the public, the best way to achieve this is to make it
626
+ free software which everyone can redistribute and change under these terms.
627
+
628
+ To do so, attach the following notices to the program. It is safest
629
+ to attach them to the start of each source file to most effectively
630
+ state the exclusion of warranty; and each file should have at least
631
+ the "copyright" line and a pointer to where the full notice is found.
632
+
633
+ <one line to give the program's name and a brief idea of what it does.>
634
+ Copyright (C) <year> <name of author>
635
+
636
+ This program is free software: you can redistribute it and/or modify
637
+ it under the terms of the GNU Affero General Public License as
638
+ published by the Free Software Foundation, either version 3 of the
639
+ License, or (at your option) any later version.
640
+
641
+ This program is distributed in the hope that it will be useful,
642
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
643
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
644
+ GNU Affero General Public License for more details.
645
+
646
+ You should have received a copy of the GNU Affero General Public License
647
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
648
+
649
+ Also add information on how to contact you by electronic and paper mail.
650
+
651
+ If your software can interact with users remotely through a computer
652
+ network, you should also make sure that it provides a way for users to
653
+ get its source. For example, if your program is a web application, its
654
+ interface could display a "Source" link that leads users to an archive
655
+ of the code. There are many ways you could offer source, and different
656
+ solutions will be better for different programs; see section 13 for the
657
+ specific requirements.
658
+
659
+ You should also get your employer (if you work as a programmer) or school,
660
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
661
+ For more information on this, and how to apply and follow the GNU AGPL,
662
+ see <https://www.gnu.org/licenses/>.