Mozilla Public License Version 2.0

1. Definitions
--------------

1.1. "Contributor"
     means each individual or legal entity that creates, contributes to
     the creation of, or owns Covered Software.

1.2. "Contributor Version"
     means the combination of the Contributions of others (if any) used
     by a Contributor and that particular Contributor's Contribution.

1.3. "Contribution"
     means Covered Software of a particular Contributor.

1.4. "Covered Software"
     means Source Code Form to which the initial Contributor has attached
     the notice in Exhibit A, the Executable Form of such Source Code
     Form, and Modifications of such Source Code Form, in each case
     including portions thereof.

1.5. "Incompatible With Secondary Licenses"
     means that the work at issue cannot be redistributed under the terms
     of this License without violating, conflicting with, or otherwise
     being incompatible with the terms of the Secondary License.

1.6. "Larger Work"
     means a work that combines Covered Software with other material, in
     a separate file or files, that is not Covered Software.

1.7. "License"
     means this document.

1.8. "Licensable"
     means having the right to grant, to the maximum extent possible,
     whether at the time of the initial grant or subsequently, any and
     all of the rights conveyed by this License.

1.9. "Modifications"
     means any of the following:

     (a) any addition to or deletion from the substance or structure of
         the Covered Software; or

     (b) any new Source Code Form to which the initial Contributor has
         attached the notice in Exhibit A and which constitutes Covered
         Software.

1.10. "Patent Claims" of a Contributor
      means any patent claim, including without limitation, method,
      process, and apparatus claims, in any patent Licensable by such
      Contributor that would be infringed, but for the grant of the
      License, by the making, using, selling, offering for sale, having
      made, import, or transfer of either its Contributions or its
      Contributor Version.

1.11. "Secondary License"
      means either the GNU General Public License, Version 2.0, or any
      later version of such license published by the Free Software
      Foundation; or the GNU Lesser General Public License, Version 2.1,
      or any later version of such license published by the Free Software
      Foundation; or the GNU Affero General Public License, Version 3.0,
      or any later version of such license published by the Free Software
      Foundation.

1.12. "Source Code Form"
     means the form of software preferred for making modifications.

1.13. "You" (or "Your")
     means an individual or a legal entity exercising rights under this
     License.

2. License Grants and Conditions
--------------------------------

2.1. Grants

     Each Contributor hereby grants You a world-wide, royalty-free,
     non-exclusive license, subject to third-party intellectual property
     claims, under intellectual property rights (other than patent or
     trademark) Licensable by such Contributor to use, reproduce, make
     available, modify, display, perform, distribute, and otherwise
     exploit its Contributions, either on an unmodified basis, with
     Modifications, or as part of a Larger Work; and under Patent Claims
     of such Contributor to make, use, sell, offer for sale, have made,
     import, and otherwise transfer either its Contributions or its
     Contributor Version.

2.2. Effective Date

     The licenses granted in Section 2.1 with respect to any Contribution
     become effective for each Contribution on the date the Contributor
     first distributes such Contribution.

2.3. Limitations on Grant Scope

     Nothing in this License shall be construed as excluding or limiting
     any implied license or other defense to infringement that may
     otherwise be available to You under applicable patent law.

2.4. Subsequent Licenses

     No Contributor makes additional grants as a result of Your choice to
     distribute the Covered Software under a subsequent version of this
     License or under the terms of a Secondary License (if permitted
     under the terms of this License).

2.5. Representation

     Each Contributor represents that the Contributor believes its
     Contributions are its original creation(s) or it has sufficient
     rights to grant the rights to its Contributions conveyed by this
     License.

3. Obligations
--------------

3.1. Distribution of Source Code Form

     All distribution of Covered Software in Source Code Form, including
     any Modifications that You create or to which You contribute, must
     be under the terms of this License. You must inform recipients that
     the Source Code Form of the Covered Software is subject to the terms
     of this License, and how they can obtain a copy of this License.

3.2. Distribution of Executable Form

     If You distribute Covered Software in Executable Form then:

     (a) such Covered Software must also be made available in Source Code
         Form; and

     (b) You may distribute such Executable Form under the terms of this
         License; and

     (c) You must include a copy of this License with every copy of the
         Covered Software in Executable Form You distribute; and

     (d) You may not prevent recipients from copying, modifying, or
         further distributing the Covered Software in Source Code Form.

3.3. Distribution of a Larger Work

     You may create and distribute a Larger Work under terms of Your
     choice, provided that You also comply with the requirements of this
     License for the Covered Software.

3.4. Notices

     You may not remove or alter the substance of any license notices
     (including copyright notices, patent notices, disclaimers of
     warranty, or limitations of liability) contained within the Source
     Code Form of the Covered Software.

3.5. Application of Additional Terms

     You may not offer or impose any additional or different terms on any
     portion of the Covered Software that would alter or restrict the
     applicable version of this License or the recipients' rights
     hereunder.

4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------

If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect.

5. Termination
--------------

5.1. The rights granted under this License will terminate automatically
     if You fail to comply with any of its terms. However, if You become
     compliant, then the rights granted under this License are
     reinstated.

5.2. If You initiate litigation against any entity by asserting a patent
     infringement claim (excluding declaratory judgment actions,
     counter-claims, and cross-claims) alleging that a Contributor
     Version directly or indirectly infringes any patent, then the rights
     granted to You by any and all Contributors for the Covered Software
     under Sections 2.1 and 2.2 shall terminate.

6. Disclaimer of Warranty
-------------------------

Covered Software is provided under this License on an "as is" basis,
without warranty of any kind, either express or implied.

7. Limitation of Liability
---------------------------

To the extent permitted by applicable law, in no event shall any
Contributor be liable to You for any indirect, special, incidental, or
consequential damages.

8. Miscellaneous
----------------

8.1. This License represents the complete agreement concerning subject
     matter hereof.

8.2. If any provision of this License is held to be unenforceable, it
     shall be reformed only to the minimum extent necessary.
