1*4882a593SmuzhiyunMozilla Public License, version 2.0 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun1. Definitions 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun1.1. "Contributor" 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun means each individual or legal entity that creates, contributes to the 8*4882a593Smuzhiyun creation of, or owns Covered Software. 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun1.2. "Contributor Version" 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun means the combination of the Contributions of others (if any) used by a 13*4882a593Smuzhiyun Contributor and that particular Contributor's Contribution. 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun1.3. "Contribution" 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun means Covered Software of a particular Contributor. 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun1.4. "Covered Software" 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun means Source Code Form to which the initial Contributor has attached the 22*4882a593Smuzhiyun notice in Exhibit A, the Executable Form of such Source Code Form, and 23*4882a593Smuzhiyun Modifications of such Source Code Form, in each case including portions 24*4882a593Smuzhiyun thereof. 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun1.5. "Incompatible With Secondary Licenses" 27*4882a593Smuzhiyun means 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun a. that the initial Contributor has attached the notice described in 30*4882a593Smuzhiyun Exhibit B to the Covered Software; or 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun b. that the Covered Software was made available under the terms of 33*4882a593Smuzhiyun version 1.1 or earlier of the License, but not also under the terms of 34*4882a593Smuzhiyun a Secondary License. 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun1.6. "Executable Form" 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun means any form of the work other than Source Code Form. 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun1.7. "Larger Work" 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun means a work that combines Covered Software with other material, in a 43*4882a593Smuzhiyun separate file or files, that is not Covered Software. 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun1.8. "License" 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun means this document. 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun1.9. "Licensable" 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun means having the right to grant, to the maximum extent possible, whether 52*4882a593Smuzhiyun at the time of the initial grant or subsequently, any and all of the 53*4882a593Smuzhiyun rights conveyed by this License. 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun1.10. "Modifications" 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun means any of the following: 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun a. any file in Source Code Form that results from an addition to, 60*4882a593Smuzhiyun deletion from, or modification of the contents of Covered Software; or 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun b. any new file in Source Code Form that contains any Covered Software. 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun1.11. "Patent Claims" of a Contributor 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun means any patent claim(s), including without limitation, method, 67*4882a593Smuzhiyun process, and apparatus claims, in any patent Licensable by such 68*4882a593Smuzhiyun Contributor that would be infringed, but for the grant of the License, 69*4882a593Smuzhiyun by the making, using, selling, offering for sale, having made, import, 70*4882a593Smuzhiyun or transfer of either its Contributions or its Contributor Version. 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun1.12. "Secondary License" 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun means either the GNU General Public License, Version 2.0, the GNU Lesser 75*4882a593Smuzhiyun General Public License, Version 2.1, the GNU Affero General Public 76*4882a593Smuzhiyun License, Version 3.0, or any later versions of those licenses. 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun1.13. "Source Code Form" 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun means the form of the work preferred for making modifications. 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun1.14. "You" (or "Your") 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun means an individual or a legal entity exercising rights under this 85*4882a593Smuzhiyun License. For legal entities, "You" includes any entity that controls, is 86*4882a593Smuzhiyun controlled by, or is under common control with You. For purposes of this 87*4882a593Smuzhiyun definition, "control" means (a) the power, direct or indirect, to cause 88*4882a593Smuzhiyun the direction or management of such entity, whether by contract or 89*4882a593Smuzhiyun otherwise, or (b) ownership of more than fifty percent (50%) of the 90*4882a593Smuzhiyun outstanding shares or beneficial ownership of such entity. 91*4882a593Smuzhiyun 92*4882a593Smuzhiyun 93*4882a593Smuzhiyun2. License Grants and Conditions 94*4882a593Smuzhiyun 95*4882a593Smuzhiyun2.1. Grants 96*4882a593Smuzhiyun 97*4882a593Smuzhiyun Each Contributor hereby grants You a world-wide, royalty-free, 98*4882a593Smuzhiyun non-exclusive license: 99*4882a593Smuzhiyun 100*4882a593Smuzhiyun a. under intellectual property rights (other than patent or trademark) 101*4882a593Smuzhiyun Licensable by such Contributor to use, reproduce, make available, 102*4882a593Smuzhiyun modify, display, perform, distribute, and otherwise exploit its 103*4882a593Smuzhiyun Contributions, either on an unmodified basis, with Modifications, or 104*4882a593Smuzhiyun as part of a Larger Work; and 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun b. under Patent Claims of such Contributor to make, use, sell, offer for 107*4882a593Smuzhiyun sale, have made, import, and otherwise transfer either its 108*4882a593Smuzhiyun Contributions or its Contributor Version. 109*4882a593Smuzhiyun 110*4882a593Smuzhiyun2.2. Effective Date 111*4882a593Smuzhiyun 112*4882a593Smuzhiyun The licenses granted in Section 2.1 with respect to any Contribution 113*4882a593Smuzhiyun become effective for each Contribution on the date the Contributor first 114*4882a593Smuzhiyun distributes such Contribution. 115*4882a593Smuzhiyun 116*4882a593Smuzhiyun2.3. Limitations on Grant Scope 117*4882a593Smuzhiyun 118*4882a593Smuzhiyun The licenses granted in this Section 2 are the only rights granted under 119*4882a593Smuzhiyun this License. No additional rights or licenses will be implied from the 120*4882a593Smuzhiyun distribution or licensing of Covered Software under this License. 121*4882a593Smuzhiyun Notwithstanding Section 2.1(b) above, no patent license is granted by a 122*4882a593Smuzhiyun Contributor: 123*4882a593Smuzhiyun 124*4882a593Smuzhiyun a. for any code that a Contributor has removed from Covered Software; or 125*4882a593Smuzhiyun 126*4882a593Smuzhiyun b. for infringements caused by: (i) Your and any other third party's 127*4882a593Smuzhiyun modifications of Covered Software, or (ii) the combination of its 128*4882a593Smuzhiyun Contributions with other software (except as part of its Contributor 129*4882a593Smuzhiyun Version); or 130*4882a593Smuzhiyun 131*4882a593Smuzhiyun c. under Patent Claims infringed by Covered Software in the absence of 132*4882a593Smuzhiyun its Contributions. 133*4882a593Smuzhiyun 134*4882a593Smuzhiyun This License does not grant any rights in the trademarks, service marks, 135*4882a593Smuzhiyun or logos of any Contributor (except as may be necessary to comply with 136*4882a593Smuzhiyun the notice requirements in Section 3.4). 137*4882a593Smuzhiyun 138*4882a593Smuzhiyun2.4. Subsequent Licenses 139*4882a593Smuzhiyun 140*4882a593Smuzhiyun No Contributor makes additional grants as a result of Your choice to 141*4882a593Smuzhiyun distribute the Covered Software under a subsequent version of this 142*4882a593Smuzhiyun License (see Section 10.2) or under the terms of a Secondary License (if 143*4882a593Smuzhiyun permitted under the terms of Section 3.3). 144*4882a593Smuzhiyun 145*4882a593Smuzhiyun2.5. Representation 146*4882a593Smuzhiyun 147*4882a593Smuzhiyun Each Contributor represents that the Contributor believes its 148*4882a593Smuzhiyun Contributions are its original creation(s) or it has sufficient rights to 149*4882a593Smuzhiyun grant the rights to its Contributions conveyed by this License. 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun2.6. Fair Use 152*4882a593Smuzhiyun 153*4882a593Smuzhiyun This License is not intended to limit any rights You have under 154*4882a593Smuzhiyun applicable copyright doctrines of fair use, fair dealing, or other 155*4882a593Smuzhiyun equivalents. 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun2.7. Conditions 158*4882a593Smuzhiyun 159*4882a593Smuzhiyun Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in 160*4882a593Smuzhiyun Section 2.1. 161*4882a593Smuzhiyun 162*4882a593Smuzhiyun 163*4882a593Smuzhiyun3. Responsibilities 164*4882a593Smuzhiyun 165*4882a593Smuzhiyun3.1. Distribution of Source Form 166*4882a593Smuzhiyun 167*4882a593Smuzhiyun All distribution of Covered Software in Source Code Form, including any 168*4882a593Smuzhiyun Modifications that You create or to which You contribute, must be under 169*4882a593Smuzhiyun the terms of this License. You must inform recipients that the Source 170*4882a593Smuzhiyun Code Form of the Covered Software is governed by the terms of this 171*4882a593Smuzhiyun License, and how they can obtain a copy of this License. You may not 172*4882a593Smuzhiyun attempt to alter or restrict the recipients' rights in the Source Code 173*4882a593Smuzhiyun Form. 174*4882a593Smuzhiyun 175*4882a593Smuzhiyun3.2. Distribution of Executable Form 176*4882a593Smuzhiyun 177*4882a593Smuzhiyun If You distribute Covered Software in Executable Form then: 178*4882a593Smuzhiyun 179*4882a593Smuzhiyun a. such Covered Software must also be made available in Source Code Form, 180*4882a593Smuzhiyun as described in Section 3.1, and You must inform recipients of the 181*4882a593Smuzhiyun Executable Form how they can obtain a copy of such Source Code Form by 182*4882a593Smuzhiyun reasonable means in a timely manner, at a charge no more than the cost 183*4882a593Smuzhiyun of distribution to the recipient; and 184*4882a593Smuzhiyun 185*4882a593Smuzhiyun b. You may distribute such Executable Form under the terms of this 186*4882a593Smuzhiyun License, or sublicense it under different terms, provided that the 187*4882a593Smuzhiyun license for the Executable Form does not attempt to limit or alter the 188*4882a593Smuzhiyun recipients' rights in the Source Code Form under this License. 189*4882a593Smuzhiyun 190*4882a593Smuzhiyun3.3. Distribution of a Larger Work 191*4882a593Smuzhiyun 192*4882a593Smuzhiyun You may create and distribute a Larger Work under terms of Your choice, 193*4882a593Smuzhiyun provided that You also comply with the requirements of this License for 194*4882a593Smuzhiyun the Covered Software. If the Larger Work is a combination of Covered 195*4882a593Smuzhiyun Software with a work governed by one or more Secondary Licenses, and the 196*4882a593Smuzhiyun Covered Software is not Incompatible With Secondary Licenses, this 197*4882a593Smuzhiyun License permits You to additionally distribute such Covered Software 198*4882a593Smuzhiyun under the terms of such Secondary License(s), so that the recipient of 199*4882a593Smuzhiyun the Larger Work may, at their option, further distribute the Covered 200*4882a593Smuzhiyun Software under the terms of either this License or such Secondary 201*4882a593Smuzhiyun License(s). 202*4882a593Smuzhiyun 203*4882a593Smuzhiyun3.4. Notices 204*4882a593Smuzhiyun 205*4882a593Smuzhiyun You may not remove or alter the substance of any license notices 206*4882a593Smuzhiyun (including copyright notices, patent notices, disclaimers of warranty, or 207*4882a593Smuzhiyun limitations of liability) contained within the Source Code Form of the 208*4882a593Smuzhiyun Covered Software, except that You may alter any license notices to the 209*4882a593Smuzhiyun extent required to remedy known factual inaccuracies. 210*4882a593Smuzhiyun 211*4882a593Smuzhiyun3.5. Application of Additional Terms 212*4882a593Smuzhiyun 213*4882a593Smuzhiyun You may choose to offer, and to charge a fee for, warranty, support, 214*4882a593Smuzhiyun indemnity or liability obligations to one or more recipients of Covered 215*4882a593Smuzhiyun Software. However, You may do so only on Your own behalf, and not on 216*4882a593Smuzhiyun behalf of any Contributor. You must make it absolutely clear that any 217*4882a593Smuzhiyun such warranty, support, indemnity, or liability obligation is offered by 218*4882a593Smuzhiyun You alone, and You hereby agree to indemnify every Contributor for any 219*4882a593Smuzhiyun liability incurred by such Contributor as a result of warranty, support, 220*4882a593Smuzhiyun indemnity or liability terms You offer. You may include additional 221*4882a593Smuzhiyun disclaimers of warranty and limitations of liability specific to any 222*4882a593Smuzhiyun jurisdiction. 223*4882a593Smuzhiyun 224*4882a593Smuzhiyun4. Inability to Comply Due to Statute or Regulation 225*4882a593Smuzhiyun 226*4882a593Smuzhiyun If it is impossible for You to comply with any of the terms of this License 227*4882a593Smuzhiyun with respect to some or all of the Covered Software due to statute, 228*4882a593Smuzhiyun judicial order, or regulation then You must: (a) comply with the terms of 229*4882a593Smuzhiyun this License to the maximum extent possible; and (b) describe the 230*4882a593Smuzhiyun limitations and the code they affect. Such description must be placed in a 231*4882a593Smuzhiyun text file included with all distributions of the Covered Software under 232*4882a593Smuzhiyun this License. Except to the extent prohibited by statute or regulation, 233*4882a593Smuzhiyun such description must be sufficiently detailed for a recipient of ordinary 234*4882a593Smuzhiyun skill to be able to understand it. 235*4882a593Smuzhiyun 236*4882a593Smuzhiyun5. Termination 237*4882a593Smuzhiyun 238*4882a593Smuzhiyun5.1. The rights granted under this License will terminate automatically if You 239*4882a593Smuzhiyun fail to comply with any of its terms. However, if You become compliant, 240*4882a593Smuzhiyun then the rights granted under this License from a particular Contributor 241*4882a593Smuzhiyun are reinstated (a) provisionally, unless and until such Contributor 242*4882a593Smuzhiyun explicitly and finally terminates Your grants, and (b) on an ongoing 243*4882a593Smuzhiyun basis, if such Contributor fails to notify You of the non-compliance by 244*4882a593Smuzhiyun some reasonable means prior to 60 days after You have come back into 245*4882a593Smuzhiyun compliance. Moreover, Your grants from a particular Contributor are 246*4882a593Smuzhiyun reinstated on an ongoing basis if such Contributor notifies You of the 247*4882a593Smuzhiyun non-compliance by some reasonable means, this is the first time You have 248*4882a593Smuzhiyun received notice of non-compliance with this License from such 249*4882a593Smuzhiyun Contributor, and You become compliant prior to 30 days after Your receipt 250*4882a593Smuzhiyun of the notice. 251*4882a593Smuzhiyun 252*4882a593Smuzhiyun5.2. If You initiate litigation against any entity by asserting a patent 253*4882a593Smuzhiyun infringement claim (excluding declaratory judgment actions, 254*4882a593Smuzhiyun counter-claims, and cross-claims) alleging that a Contributor Version 255*4882a593Smuzhiyun directly or indirectly infringes any patent, then the rights granted to 256*4882a593Smuzhiyun You by any and all Contributors for the Covered Software under Section 257*4882a593Smuzhiyun 2.1 of this License shall terminate. 258*4882a593Smuzhiyun 259*4882a593Smuzhiyun5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user 260*4882a593Smuzhiyun license agreements (excluding distributors and resellers) which have been 261*4882a593Smuzhiyun validly granted by You or Your distributors under this License prior to 262*4882a593Smuzhiyun termination shall survive termination. 263*4882a593Smuzhiyun 264*4882a593Smuzhiyun6. Disclaimer of Warranty 265*4882a593Smuzhiyun 266*4882a593Smuzhiyun Covered Software is provided under this License on an "as is" basis, 267*4882a593Smuzhiyun without warranty of any kind, either expressed, implied, or statutory, 268*4882a593Smuzhiyun including, without limitation, warranties that the Covered Software is free 269*4882a593Smuzhiyun of defects, merchantable, fit for a particular purpose or non-infringing. 270*4882a593Smuzhiyun The entire risk as to the quality and performance of the Covered Software 271*4882a593Smuzhiyun is with You. Should any Covered Software prove defective in any respect, 272*4882a593Smuzhiyun You (not any Contributor) assume the cost of any necessary servicing, 273*4882a593Smuzhiyun repair, or correction. This disclaimer of warranty constitutes an essential 274*4882a593Smuzhiyun part of this License. No use of any Covered Software is authorized under 275*4882a593Smuzhiyun this License except under this disclaimer. 276*4882a593Smuzhiyun 277*4882a593Smuzhiyun7. Limitation of Liability 278*4882a593Smuzhiyun 279*4882a593Smuzhiyun Under no circumstances and under no legal theory, whether tort (including 280*4882a593Smuzhiyun negligence), contract, or otherwise, shall any Contributor, or anyone who 281*4882a593Smuzhiyun distributes Covered Software as permitted above, be liable to You for any 282*4882a593Smuzhiyun direct, indirect, special, incidental, or consequential damages of any 283*4882a593Smuzhiyun character including, without limitation, damages for lost profits, loss of 284*4882a593Smuzhiyun goodwill, work stoppage, computer failure or malfunction, or any and all 285*4882a593Smuzhiyun other commercial damages or losses, even if such party shall have been 286*4882a593Smuzhiyun informed of the possibility of such damages. This limitation of liability 287*4882a593Smuzhiyun shall not apply to liability for death or personal injury resulting from 288*4882a593Smuzhiyun such party's negligence to the extent applicable law prohibits such 289*4882a593Smuzhiyun limitation. Some jurisdictions do not allow the exclusion or limitation of 290*4882a593Smuzhiyun incidental or consequential damages, so this exclusion and limitation may 291*4882a593Smuzhiyun not apply to You. 292*4882a593Smuzhiyun 293*4882a593Smuzhiyun8. Litigation 294*4882a593Smuzhiyun 295*4882a593Smuzhiyun Any litigation relating to this License may be brought only in the courts 296*4882a593Smuzhiyun of a jurisdiction where the defendant maintains its principal place of 297*4882a593Smuzhiyun business and such litigation shall be governed by laws of that 298*4882a593Smuzhiyun jurisdiction, without reference to its conflict-of-law provisions. Nothing 299*4882a593Smuzhiyun in this Section shall prevent a party's ability to bring cross-claims or 300*4882a593Smuzhiyun counter-claims. 301*4882a593Smuzhiyun 302*4882a593Smuzhiyun9. Miscellaneous 303*4882a593Smuzhiyun 304*4882a593Smuzhiyun This License represents the complete agreement concerning the subject 305*4882a593Smuzhiyun matter hereof. If any provision of this License is held to be 306*4882a593Smuzhiyun unenforceable, such provision shall be reformed only to the extent 307*4882a593Smuzhiyun necessary to make it enforceable. Any law or regulation which provides that 308*4882a593Smuzhiyun the language of a contract shall be construed against the drafter shall not 309*4882a593Smuzhiyun be used to construe this License against a Contributor. 310*4882a593Smuzhiyun 311*4882a593Smuzhiyun 312*4882a593Smuzhiyun10. Versions of the License 313*4882a593Smuzhiyun 314*4882a593Smuzhiyun10.1. New Versions 315*4882a593Smuzhiyun 316*4882a593Smuzhiyun Mozilla Foundation is the license steward. Except as provided in Section 317*4882a593Smuzhiyun 10.3, no one other than the license steward has the right to modify or 318*4882a593Smuzhiyun publish new versions of this License. Each version will be given a 319*4882a593Smuzhiyun distinguishing version number. 320*4882a593Smuzhiyun 321*4882a593Smuzhiyun10.2. Effect of New Versions 322*4882a593Smuzhiyun 323*4882a593Smuzhiyun You may distribute the Covered Software under the terms of the version 324*4882a593Smuzhiyun of the License under which You originally received the Covered Software, 325*4882a593Smuzhiyun or under the terms of any subsequent version published by the license 326*4882a593Smuzhiyun steward. 327*4882a593Smuzhiyun 328*4882a593Smuzhiyun10.3. Modified Versions 329*4882a593Smuzhiyun 330*4882a593Smuzhiyun If you create software not governed by this License, and you want to 331*4882a593Smuzhiyun create a new license for such software, you may create and use a 332*4882a593Smuzhiyun modified version of this License if you rename the license and remove 333*4882a593Smuzhiyun any references to the name of the license steward (except to note that 334*4882a593Smuzhiyun such modified license differs from this License). 335*4882a593Smuzhiyun 336*4882a593Smuzhiyun10.4. Distributing Source Code Form that is Incompatible With Secondary 337*4882a593Smuzhiyun Licenses If You choose to distribute Source Code Form that is 338*4882a593Smuzhiyun Incompatible With Secondary Licenses under the terms of this version of 339*4882a593Smuzhiyun the License, the notice described in Exhibit B of this License must be 340*4882a593Smuzhiyun attached. 341*4882a593Smuzhiyun 342*4882a593SmuzhiyunExhibit A - Source Code Form License Notice 343*4882a593Smuzhiyun 344*4882a593Smuzhiyun This Source Code Form is subject to the 345*4882a593Smuzhiyun terms of the Mozilla Public License, v. 346*4882a593Smuzhiyun 2.0. If a copy of the MPL was not 347*4882a593Smuzhiyun distributed with this file, You can 348*4882a593Smuzhiyun obtain one at 349*4882a593Smuzhiyun http://mozilla.org/MPL/2.0/. 350*4882a593Smuzhiyun 351*4882a593SmuzhiyunIf it is not possible or desirable to put the notice in a particular file, 352*4882a593Smuzhiyunthen You may include the notice in a location (such as a LICENSE file in a 353*4882a593Smuzhiyunrelevant directory) where a recipient would be likely to look for such a 354*4882a593Smuzhiyunnotice. 355*4882a593Smuzhiyun 356*4882a593SmuzhiyunYou may add additional accurate notices of copyright ownership. 357*4882a593Smuzhiyun 358*4882a593SmuzhiyunExhibit B - "Incompatible With Secondary Licenses" Notice 359*4882a593Smuzhiyun 360*4882a593Smuzhiyun This Source Code Form is "Incompatible 361*4882a593Smuzhiyun With Secondary Licenses", as defined by 362*4882a593Smuzhiyun the Mozilla Public License, v. 2.0. 363