@node-projects/web-component-designer-zpl 0.2.0 → 0.3.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.
Files changed (75) hide show
  1. package/README.md +16 -2
  2. package/THIRD-PARTY-LICENSES.md +432 -0
  3. package/dist/assets/fonts/LICENSE-APACHE-2.0.txt +202 -0
  4. package/dist/assets/fonts/NOTICE.md +27 -0
  5. package/dist/assets/fonts/OCRA-NOTICE.md +27 -0
  6. package/dist/assets/fonts/OCRA.ttf +0 -0
  7. package/dist/assets/fonts/OCRB-NOTICE.md +21 -0
  8. package/dist/assets/fonts/OCRB.ttf +0 -0
  9. package/dist/assets/fonts/PrintLabMono-NOTICE.md +24 -0
  10. package/dist/assets/fonts/PrintLabMono.ttf +0 -0
  11. package/dist/assets/fonts/PrintLabZPL-Bold.ttf +0 -0
  12. package/dist/assets/fonts/PrintLabZPL-Bold.woff2 +0 -0
  13. package/dist/assets/fonts/VeraMono-Bold.ttf +0 -0
  14. package/dist/assets/fonts/VeraMono-NOTICE.md +57 -0
  15. package/dist/assets/fonts/VeraMono.ttf +0 -0
  16. package/dist/assets/licenses/BWIP-JS-LICENSE.txt +23 -0
  17. package/dist/assets/licenses/ZPLab-LICENSE.txt +21 -0
  18. package/dist/barcodes/barcodeRegistry.d.ts +124 -0
  19. package/dist/barcodes/barcodeRegistry.js +357 -0
  20. package/dist/barcodes/bwipRenderer.d.ts +70 -0
  21. package/dist/barcodes/bwipRenderer.js +552 -0
  22. package/dist/fonts/zplFonts.d.ts +27 -0
  23. package/dist/fonts/zplFonts.js +85 -0
  24. package/dist/index.d.ts +10 -3
  25. package/dist/index.js +10 -3
  26. package/dist/services/ZplBarcodeElementsService.d.ts +5 -0
  27. package/dist/services/ZplBarcodeElementsService.js +16 -0
  28. package/dist/services/ZplBarcodePropertiesService.d.ts +10 -0
  29. package/dist/services/ZplBarcodePropertiesService.js +59 -0
  30. package/dist/services/ZplDiagonalLineExtension.d.ts +46 -0
  31. package/dist/services/ZplDiagonalLineExtension.js +255 -0
  32. package/dist/services/ZplElementResizeStrategy.d.ts +20 -0
  33. package/dist/services/ZplElementResizeStrategy.js +182 -0
  34. package/dist/services/ZplGraphicResizeStrategy.d.ts +18 -0
  35. package/dist/services/ZplGraphicResizeStrategy.js +81 -0
  36. package/dist/services/ZplIncludeInOutputPropertiesService.d.ts +12 -0
  37. package/dist/services/ZplIncludeInOutputPropertiesService.js +50 -0
  38. package/dist/services/ZplParserService.d.ts +7 -4
  39. package/dist/services/ZplParserService.js +214 -249
  40. package/dist/services/ZplSelectionExtensionProvider.d.ts +9 -0
  41. package/dist/services/ZplSelectionExtensionProvider.js +15 -0
  42. package/dist/services/ZplTextEditExtension.d.ts +20 -0
  43. package/dist/services/ZplTextEditExtension.js +80 -0
  44. package/dist/services/ZplTextPropertiesService.d.ts +8 -0
  45. package/dist/services/ZplTextPropertiesService.js +24 -0
  46. package/dist/services/hiddenMetadata.d.ts +17 -0
  47. package/dist/services/hiddenMetadata.js +95 -0
  48. package/dist/services/zplResizeGeometry.d.ts +6 -0
  49. package/dist/services/zplResizeGeometry.js +8 -0
  50. package/dist/setupZplServiceContainer.js +24 -5
  51. package/dist/widgets/elements.json +0 -24
  52. package/dist/widgets/views/zpl-demo-view.js +2 -1
  53. package/dist/widgets/zpl-barcode.d.ts +68 -14
  54. package/dist/widgets/zpl-barcode.js +162 -74
  55. package/dist/widgets/zpl-comment.d.ts +2 -0
  56. package/dist/widgets/zpl-comment.js +6 -3
  57. package/dist/widgets/zpl-graphic-box.d.ts +12 -0
  58. package/dist/widgets/zpl-graphic-box.js +49 -13
  59. package/dist/widgets/zpl-graphic-circle.d.ts +2 -0
  60. package/dist/widgets/zpl-graphic-circle.js +7 -0
  61. package/dist/widgets/zpl-graphic-diagonal-line.d.ts +2 -0
  62. package/dist/widgets/zpl-graphic-diagonal-line.js +7 -0
  63. package/dist/widgets/zpl-image.d.ts +4 -1
  64. package/dist/widgets/zpl-image.js +17 -14
  65. package/dist/widgets/zpl-text.d.ts +38 -8
  66. package/dist/widgets/zpl-text.js +183 -49
  67. package/dist/zplHelper.d.ts +1 -1
  68. package/dist/zplHelper.js +5 -1
  69. package/package.json +9 -4
  70. package/dist/extensions/ZplLayoutResizeExtensionProvider.d.ts +0 -4
  71. package/dist/extensions/ZplLayoutResizeExtensionProvider.js +0 -16
  72. package/dist/jsBarcodeOptions.d.ts +0 -27
  73. package/dist/jsBarcodeOptions.js +0 -14
  74. package/dist/qr.d.ts +0 -11
  75. package/dist/qr.js +0 -759
package/README.md CHANGED
@@ -8,8 +8,22 @@ https://www.npmjs.com/package/@node-projects/web-component-designer-zpl
8
8
 
9
9
  ## Description
10
10
 
11
- This package contains widgets and services wich help to create a zpl designer.
11
+ This package contains widgets and services which help to create a ZPL designer.
12
+
13
+ It supports printer-oriented previews for ZPL fonts 0 and A-H, 28 barcode
14
+ symbologies rendered with BWIP-JS, property-aware resizing, and preservation of
15
+ designer-only objects in ZPL metadata comments.
12
16
 
13
17
  ## Usage
14
18
 
15
- see the zpl designer sample application
19
+ See the ZPL designer sample application.
20
+
21
+ ## Acknowledgements and third-party licenses
22
+
23
+ Parts of the barcode mappings, preview geometry, resizing behavior, font metrics,
24
+ and bundled printer-preview fonts were adapted from
25
+ [ZPLab](https://github.com/u8array/ZPLab).
26
+
27
+ See [THIRD-PARTY-LICENSES.md](./THIRD-PARTY-LICENSES.md) for the complete ZPLab,
28
+ BWIP-JS, and font notices. The add-on's original source remains MIT licensed;
29
+ third-party components retain their respective licenses.
@@ -0,0 +1,432 @@
1
+ # Third-party licenses
2
+
3
+ The original source code of `@node-projects/web-component-designer-zpl` is MIT licensed. This document records third-party code and font material redistributed by the package. Those components retain the terms stated below.
4
+
5
+ ## ZPLab
6
+
7
+ Barcode command mappings, BWIP-JS preview geometry, reverse-field compositing, resize behavior, device-font mappings and the bundled printer-preview fonts were adapted from [ZPLab](https://github.com/u8array/ZPLab) at commit `19af998017b1a5559f0a9b069c7ccb34ff4f4223`.
8
+
9
+ ```text
10
+ MIT License
11
+
12
+ Copyright (c) 2026 u8array
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ ```
32
+
33
+ ## BWIP-JS / @bwip-js/browser 4.11.2
34
+
35
+ Barcode previews use [`@bwip-js/browser`](https://github.com/metafloor/bwip-js).
36
+
37
+ ```text
38
+ bwip-js : Barcode Writer in Pure JavaScript
39
+
40
+ Copyright (c) 2011-2026 Mark Warren
41
+
42
+ The MIT License
43
+
44
+ Permission is hereby granted, free of charge, to any person obtaining a copy
45
+ of this software and associated documentation files (the "Software"), to deal
46
+ in the Software without restriction, including without limitation the rights
47
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48
+ copies of the Software, and to permit persons to whom the Software is
49
+ furnished to do so, subject to the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be included in
52
+ all copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
60
+ THE SOFTWARE.
61
+ ```
62
+
63
+ ## Bundled fonts
64
+
65
+ The following notices are preserved verbatim from ZPLab. The published font binaries ship in `dist/assets/fonts/`.
66
+
67
+ # PrintLab ZPL Bold
68
+
69
+ PrintLab ZPL Bold is a derivative work of Roboto Condensed by
70
+ Christian Robertson, distributed by Google Fonts under the Apache
71
+ License, Version 2.0.
72
+
73
+ ## Modifications
74
+
75
+ Relative to upstream Roboto Condensed:
76
+
77
+ - Built from the `wght=900` instance of the variable font.
78
+ - Per-glyph horizontal advance widths (`hmtx`) and outlines scaled
79
+ individually to match the metrics of Zebra firmware's CG Triumvirate
80
+ Condensed Bold, so layout positions agree with ZPL `^A0` rendering.
81
+ - Vertical outlines scaled to align cap heights with the same target.
82
+ - TrueType hinting tables (`prep`, `fpgm`, `cvt`) removed so the
83
+ modified outlines render unhinted.
84
+ - Family and PostScript names renamed from "Roboto Condensed" to
85
+ "PrintLab ZPL".
86
+
87
+ ## License
88
+
89
+ Apache License, Version 2.0. Full text in `LICENSE-APACHE-2.0.txt`
90
+ next to this file, or at https://www.apache.org/licenses/LICENSE-2.0
91
+
92
+ Upstream source:
93
+ https://github.com/google/fonts/tree/main/ofl/robotocondensed
94
+
95
+ # PrintLab Mono
96
+
97
+ PrintLab Mono is a derivative work of **Bitstream Vera Sans Mono**
98
+ (Copyright (c) 2003 by Bitstream, Inc.), used as the canvas substitute for
99
+ ZPL device fonts A/C/D/F/G.
100
+
101
+ ## Modifications
102
+
103
+ Relative to upstream Bitstream Vera Sans Mono:
104
+
105
+ - The dash glyphs (hyphen, en-dash, em-dash) are replaced with a wider,
106
+ taller bar matching Zebra's device-font dash (the upstream hyphen is too
107
+ narrow/short for ZPL fidelity). All other glyphs and metrics are unchanged.
108
+ - Renamed from "Bitstream Vera Sans Mono" to "PrintLab Mono" as the license
109
+ requires for modified fonts. The original copyright, trademark and
110
+ permission notices are retained in the font's `name` table and below.
111
+
112
+ ## License (Bitstream Vera Fonts Copyright)
113
+
114
+ The Bitstream Vera license permits modification provided the font is renamed
115
+ to a name containing neither "Bitstream" nor "Vera", and that the copyright
116
+ and permission notice accompany all copies. Full license text is in
117
+ `VeraMono-NOTICE.md` next to this file and embedded in the font's `name`
118
+ record (ID 13).
119
+
120
+ # Bitstream Vera Sans Mono
121
+
122
+ Copyright (c) 2003 by Bitstream, Inc. "Bitstream Vera" is a trademark of
123
+ Bitstream, Inc. Bundled weights: `VeraMono.ttf` (regular) and
124
+ `VeraMono-Bold.ttf` (bold); both ship unmodified under the license below.
125
+
126
+ Source (DejaVu fork; the original gnome.org/fonts distribution is gone):
127
+ https://github.com/dejavu-fonts/dejavu-fonts
128
+
129
+ ## License (Bitstream Vera Fonts Copyright)
130
+
131
+ Reproduced verbatim from the font's embedded license record (name ID 13):
132
+
133
+ Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream
134
+ Vera is a trademark of Bitstream, Inc.
135
+
136
+ Permission is hereby granted, free of charge, to any person obtaining a
137
+ copy of the fonts accompanying this license ("Fonts") and associated
138
+ documentation files (the "Font Software"), to reproduce and distribute
139
+ the Font Software, including without limitation the rights to use, copy,
140
+ merge, publish, distribute, and/or sell copies of the Font Software, and
141
+ to permit persons to whom the Font Software is furnished to do so,
142
+ subject to the following conditions:
143
+
144
+ The above copyright and trademark notices and this permission notice
145
+ shall be included in all copies of one or more of the Font Software
146
+ typefaces.
147
+
148
+ The Font Software may be modified, altered, or added to, and in
149
+ particular the designs of glyphs or characters in the Fonts may be
150
+ modified and additional glyphs or characters may be added to the Fonts,
151
+ only if the fonts are renamed to names not containing either the words
152
+ "Bitstream" or the word "Vera".
153
+
154
+ This License becomes null and void to the extent applicable to Fonts or
155
+ Font Software that has been modified and is distributed under the
156
+ "Bitstream Vera" names.
157
+
158
+ The Font Software may be sold as part of a larger software package but no
159
+ copy of one or more of the Font Software typefaces may be sold by itself.
160
+
161
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
162
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
163
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
164
+ COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM
165
+ OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
166
+ LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR
167
+ CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
168
+ OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT
169
+ SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
170
+
171
+ Except as contained in this notice, the names of Gnome, the Gnome
172
+ Foundation, and Bitstream Inc., shall not be used in advertising or
173
+ otherwise to promote the sale, use or other dealings in this Font
174
+ Software without prior written authorization from the Gnome Foundation
175
+ or Bitstream Inc., respectively. For further information, contact: fonts
176
+ at gnome dot org.
177
+
178
+ # OCR-B
179
+
180
+ OCR-B TrueType font by Matthew Skala (2011, 2021), derived from METAFONT
181
+ definitions by Norbert Schwarz.
182
+
183
+ Source: https://tsukurimashou.org/ocr.php.en
184
+
185
+ ## License
186
+
187
+ The font carries no embedded license record. The author's documentation
188
+ ("OCR-A and OCR-B fonts version 0.4pre", Matthew Skala, 2021-07-01,
189
+ https://tsukurimashou.org/ocr.pdf, section 3) states:
190
+
191
+ > He [Schwarz] originally distributed it under a "non-commercial use
192
+ > only" restriction but has since released it for unrestricted use and
193
+ > distribution.
194
+
195
+ > I make no copyright claim on these fonts myself. I do not believe
196
+ > anyone else makes a copyright claim that would conflict with the use
197
+ > of these fonts in a commercial project, but I cannot speak for any
198
+ > party other than myself.
199
+
200
+ # OCR-A
201
+
202
+ OCR-A TrueType font by Matthew Skala (2011-12, 2021), built from a METAFONT
203
+ definition originally by Richard B. Wales (1988-89), with later work by Tor
204
+ Lillqvist. The bundled file reports "Version 2" (built 2021-03-28).
205
+
206
+ Source: https://tsukurimashou.org/ocr.php.en
207
+
208
+ ## License
209
+
210
+ The TrueType file carries no embedded license record. Two upstream parties'
211
+ terms apply and are reproduced here as required.
212
+
213
+ **Matthew Skala** (TrueType/OpenType conversion) places his own contributions in
214
+ the public domain and states they are "available for free use, including in
215
+ commercial applications" (https://tsukurimashou.org/ocr.php.en). His
216
+ documentation adds: "I make no copyright claim on these fonts myself ... I
217
+ cannot give any kind of binding legal opinion" (https://tsukurimashou.org/ocr.pdf).
218
+
219
+ **Richard B. Wales** (original OCR-A METAFONT, 1988-89) requires that his
220
+ copyright notice and credit be retained, and that no fee be charged for
221
+ distribution beyond a reasonable copying or communications charge. CTAN
222
+ catalogues the upstream `ocr-a` package as "Do Not Sell Except by Arrangement"
223
+ (https://ctan.org/pkg/ocr-a; source notice: https://tug.ctan.org/fonts/oca/ocra.mf).
224
+
225
+ This font ships as part of this free, open-source project and is not sold
226
+ separately; the credits above are retained as the Wales terms require.
227
+
228
+ ### Apache License 2.0 (PrintLab ZPL / Roboto Condensed)
229
+
230
+ ```text
231
+ Apache License
232
+ Version 2.0, January 2004
233
+ http://www.apache.org/licenses/
234
+
235
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
236
+
237
+ 1. Definitions.
238
+
239
+ "License" shall mean the terms and conditions for use, reproduction,
240
+ and distribution as defined by Sections 1 through 9 of this document.
241
+
242
+ "Licensor" shall mean the copyright owner or entity authorized by
243
+ the copyright owner that is granting the License.
244
+
245
+ "Legal Entity" shall mean the union of the acting entity and all
246
+ other entities that control, are controlled by, or are under common
247
+ control with that entity. For the purposes of this definition,
248
+ "control" means (i) the power, direct or indirect, to cause the
249
+ direction or management of such entity, whether by contract or
250
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
251
+ outstanding shares, or (iii) beneficial ownership of such entity.
252
+
253
+ "You" (or "Your") shall mean an individual or Legal Entity
254
+ exercising permissions granted by this License.
255
+
256
+ "Source" form shall mean the preferred form for making modifications,
257
+ including but not limited to software source code, documentation
258
+ source, and configuration files.
259
+
260
+ "Object" form shall mean any form resulting from mechanical
261
+ transformation or translation of a Source form, including but
262
+ not limited to compiled object code, generated documentation,
263
+ and conversions to other media types.
264
+
265
+ "Work" shall mean the work of authorship, whether in Source or
266
+ Object form, made available under the License, as indicated by a
267
+ copyright notice that is included in or attached to the work
268
+ (an example is provided in the Appendix below).
269
+
270
+ "Derivative Works" shall mean any work, whether in Source or Object
271
+ form, that is based on (or derived from) the Work and for which the
272
+ editorial revisions, annotations, elaborations, or other modifications
273
+ represent, as a whole, an original work of authorship. For the purposes
274
+ of this License, Derivative Works shall not include works that remain
275
+ separable from, or merely link (or bind by name) to the interfaces of,
276
+ the Work and Derivative Works thereof.
277
+
278
+ "Contribution" shall mean any work of authorship, including
279
+ the original version of the Work and any modifications or additions
280
+ to that Work or Derivative Works thereof, that is intentionally
281
+ submitted to Licensor for inclusion in the Work by the copyright owner
282
+ or by an individual or Legal Entity authorized to submit on behalf of
283
+ the copyright owner. For the purposes of this definition, "submitted"
284
+ means any form of electronic, verbal, or written communication sent
285
+ to the Licensor or its representatives, including but not limited to
286
+ communication on electronic mailing lists, source code control systems,
287
+ and issue tracking systems that are managed by, or on behalf of, the
288
+ Licensor for the purpose of discussing and improving the Work, but
289
+ excluding communication that is conspicuously marked or otherwise
290
+ designated in writing by the copyright owner as "Not a Contribution."
291
+
292
+ "Contributor" shall mean Licensor and any individual or Legal Entity
293
+ on behalf of whom a Contribution has been received by Licensor and
294
+ subsequently incorporated within the Work.
295
+
296
+ 2. Grant of Copyright License. Subject to the terms and conditions of
297
+ this License, each Contributor hereby grants to You a perpetual,
298
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
299
+ copyright license to reproduce, prepare Derivative Works of,
300
+ publicly display, publicly perform, sublicense, and distribute the
301
+ Work and such Derivative Works in Source or Object form.
302
+
303
+ 3. Grant of Patent License. Subject to the terms and conditions of
304
+ this License, each Contributor hereby grants to You a perpetual,
305
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
306
+ (except as stated in this section) patent license to make, have made,
307
+ use, offer to sell, sell, import, and otherwise transfer the Work,
308
+ where such license applies only to those patent claims licensable
309
+ by such Contributor that are necessarily infringed by their
310
+ Contribution(s) alone or by combination of their Contribution(s)
311
+ with the Work to which such Contribution(s) was submitted. If You
312
+ institute patent litigation against any entity (including a
313
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
314
+ or a Contribution incorporated within the Work constitutes direct
315
+ or contributory patent infringement, then any patent licenses
316
+ granted to You under this License for that Work shall terminate
317
+ as of the date such litigation is filed.
318
+
319
+ 4. Redistribution. You may reproduce and distribute copies of the
320
+ Work or Derivative Works thereof in any medium, with or without
321
+ modifications, and in Source or Object form, provided that You
322
+ meet the following conditions:
323
+
324
+ (a) You must give any other recipients of the Work or
325
+ Derivative Works a copy of this License; and
326
+
327
+ (b) You must cause any modified files to carry prominent notices
328
+ stating that You changed the files; and
329
+
330
+ (c) You must retain, in the Source form of any Derivative Works
331
+ that You distribute, all copyright, patent, trademark, and
332
+ attribution notices from the Source form of the Work,
333
+ excluding those notices that do not pertain to any part of
334
+ the Derivative Works; and
335
+
336
+ (d) If the Work includes a "NOTICE" text file as part of its
337
+ distribution, then any Derivative Works that You distribute must
338
+ include a readable copy of the attribution notices contained
339
+ within such NOTICE file, excluding those notices that do not
340
+ pertain to any part of the Derivative Works, in at least one
341
+ of the following places: within a NOTICE text file distributed
342
+ as part of the Derivative Works; within the Source form or
343
+ documentation, if provided along with the Derivative Works; or,
344
+ within a display generated by the Derivative Works, if and
345
+ wherever such third-party notices normally appear. The contents
346
+ of the NOTICE file are for informational purposes only and
347
+ do not modify the License. You may add Your own attribution
348
+ notices within Derivative Works that You distribute, alongside
349
+ or as an addendum to the NOTICE text from the Work, provided
350
+ that such additional attribution notices cannot be construed
351
+ as modifying the License.
352
+
353
+ You may add Your own copyright statement to Your modifications and
354
+ may provide additional or different license terms and conditions
355
+ for use, reproduction, or distribution of Your modifications, or
356
+ for any such Derivative Works as a whole, provided Your use,
357
+ reproduction, and distribution of the Work otherwise complies with
358
+ the conditions stated in this License.
359
+
360
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
361
+ any Contribution intentionally submitted for inclusion in the Work
362
+ by You to the Licensor shall be under the terms and conditions of
363
+ this License, without any additional terms or conditions.
364
+ Notwithstanding the above, nothing herein shall supersede or modify
365
+ the terms of any separate license agreement you may have executed
366
+ with Licensor regarding such Contributions.
367
+
368
+ 6. Trademarks. This License does not grant permission to use the trade
369
+ names, trademarks, service marks, or product names of the Licensor,
370
+ except as required for reasonable and customary use in describing the
371
+ origin of the Work and reproducing the content of the NOTICE file.
372
+
373
+ 7. Disclaimer of Warranty. Unless required by applicable law or
374
+ agreed to in writing, Licensor provides the Work (and each
375
+ Contributor provides its Contributions) on an "AS IS" BASIS,
376
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
377
+ implied, including, without limitation, any warranties or conditions
378
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
379
+ PARTICULAR PURPOSE. You are solely responsible for determining the
380
+ appropriateness of using or redistributing the Work and assume any
381
+ risks associated with Your exercise of permissions under this License.
382
+
383
+ 8. Limitation of Liability. In no event and under no legal theory,
384
+ whether in tort (including negligence), contract, or otherwise,
385
+ unless required by applicable law (such as deliberate and grossly
386
+ negligent acts) or agreed to in writing, shall any Contributor be
387
+ liable to You for damages, including any direct, indirect, special,
388
+ incidental, or consequential damages of any character arising as a
389
+ result of this License or out of the use or inability to use the
390
+ Work (including but not limited to damages for loss of goodwill,
391
+ work stoppage, computer failure or malfunction, or any and all
392
+ other commercial damages or losses), even if such Contributor
393
+ has been advised of the possibility of such damages.
394
+
395
+ 9. Accepting Warranty or Additional Liability. While redistributing
396
+ the Work or Derivative Works thereof, You may choose to offer,
397
+ and charge a fee for, acceptance of support, warranty, indemnity,
398
+ or other liability obligations and/or rights consistent with this
399
+ License. However, in accepting such obligations, You may act only
400
+ on Your own behalf and on Your sole responsibility, not on behalf
401
+ of any other Contributor, and only if You agree to indemnify,
402
+ defend, and hold each Contributor harmless for any liability
403
+ incurred by, or claims asserted against, such Contributor by reason
404
+ of your accepting any such warranty or additional liability.
405
+
406
+ END OF TERMS AND CONDITIONS
407
+
408
+ APPENDIX: How to apply the Apache License to your work.
409
+
410
+ To apply the Apache License to your work, attach the following
411
+ boilerplate notice, with the fields enclosed by brackets "[]"
412
+ replaced with your own identifying information. (Don't include
413
+ the brackets!) The text should be enclosed in the appropriate
414
+ comment syntax for the file format. We also recommend that a
415
+ file or class name and description of purpose be included on the
416
+ same "printed page" as the copyright notice for easier
417
+ identification within third-party archives.
418
+
419
+ Copyright [yyyy] [name of copyright owner]
420
+
421
+ Licensed under the Apache License, Version 2.0 (the "License");
422
+ you may not use this file except in compliance with the License.
423
+ You may obtain a copy of the License at
424
+
425
+ http://www.apache.org/licenses/LICENSE-2.0
426
+
427
+ Unless required by applicable law or agreed to in writing, software
428
+ distributed under the License is distributed on an "AS IS" BASIS,
429
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
430
+ See the License for the specific language governing permissions and
431
+ limitations under the License.
432
+ ```
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.