1*4882a593SmuzhiyunValid-License-Identifier: Apache-2.0 2*4882a593SmuzhiyunSPDX-URL: https://spdx.org/licenses/Apache-2.0.html 3*4882a593SmuzhiyunUsage-Guide: 4*4882a593Smuzhiyun To use the Apache License version 2.0 put the following SPDX tag/value 5*4882a593Smuzhiyun pair into a comment according to the placement guidelines in the 6*4882a593Smuzhiyun licensing rules documentation: 7*4882a593Smuzhiyun SPDX-License-Identifier: Apache-2.0 8*4882a593SmuzhiyunLicense-Text: 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunApache License 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunVersion 2.0, January 2004 13*4882a593Smuzhiyun 14*4882a593Smuzhiyunhttp://www.apache.org/licenses/ 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun1. Definitions. 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun"License" shall mean the terms and conditions for use, reproduction, and 21*4882a593Smuzhiyundistribution as defined by Sections 1 through 9 of this document. 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun"Licensor" shall mean the copyright owner or entity authorized by the 24*4882a593Smuzhiyuncopyright owner that is granting the License. 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun"Legal Entity" shall mean the union of the acting entity and all other 27*4882a593Smuzhiyunentities that control, are controlled by, or are under common control with 28*4882a593Smuzhiyunthat entity. For the purposes of this definition, "control" means (i) the 29*4882a593Smuzhiyunpower, direct or indirect, to cause the direction or management of such 30*4882a593Smuzhiyunentity, whether by contract or otherwise, or (ii) ownership of fifty 31*4882a593Smuzhiyunpercent (50%) or more of the outstanding shares, or (iii) beneficial 32*4882a593Smuzhiyunownership of such entity. 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun"You" (or "Your") shall mean an individual or Legal Entity exercising 35*4882a593Smuzhiyunpermissions granted by this License. 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun"Source" form shall mean the preferred form for making modifications, 38*4882a593Smuzhiyunincluding but not limited to software source code, documentation source, 39*4882a593Smuzhiyunand configuration files. 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun"Object" form shall mean any form resulting from mechanical transformation 42*4882a593Smuzhiyunor translation of a Source form, including but not limited to compiled 43*4882a593Smuzhiyunobject code, generated documentation, and conversions to other media types. 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun"Work" shall mean the work of authorship, whether in Source or Object form, 46*4882a593Smuzhiyunmade available under the License, as indicated by a copyright notice that 47*4882a593Smuzhiyunis included in or attached to the work (an example is provided in the 48*4882a593SmuzhiyunAppendix below). 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun"Derivative Works" shall mean any work, whether in Source or Object form, 51*4882a593Smuzhiyunthat is based on (or derived from) the Work and for which the editorial 52*4882a593Smuzhiyunrevisions, annotations, elaborations, or other modifications represent, as 53*4882a593Smuzhiyuna whole, an original work of authorship. For the purposes of this License, 54*4882a593SmuzhiyunDerivative Works shall not include works that remain separable from, or 55*4882a593Smuzhiyunmerely link (or bind by name) to the interfaces of, the Work and Derivative 56*4882a593SmuzhiyunWorks thereof. 57*4882a593Smuzhiyun 58*4882a593Smuzhiyun"Contribution" shall mean any work of authorship, including the original 59*4882a593Smuzhiyunversion of the Work and any modifications or additions to that Work or 60*4882a593SmuzhiyunDerivative Works thereof, that is intentionally submitted to Licensor for 61*4882a593Smuzhiyuninclusion in the Work by the copyright owner or by an individual or Legal 62*4882a593SmuzhiyunEntity authorized to submit on behalf of the copyright owner. For the 63*4882a593Smuzhiyunpurposes of this definition, "submitted" means any form of electronic, 64*4882a593Smuzhiyunverbal, or written communication sent to the Licensor or its 65*4882a593Smuzhiyunrepresentatives, including but not limited to communication on electronic 66*4882a593Smuzhiyunmailing lists, source code control systems, and issue tracking systems that 67*4882a593Smuzhiyunare managed by, or on behalf of, the Licensor for the purpose of discussing 68*4882a593Smuzhiyunand improving the Work, but excluding communication that is conspicuously 69*4882a593Smuzhiyunmarked or otherwise designated in writing by the copyright owner as "Not a 70*4882a593SmuzhiyunContribution." 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun"Contributor" shall mean Licensor and any individual or Legal Entity on 73*4882a593Smuzhiyunbehalf of whom a Contribution has been received by Licensor and 74*4882a593Smuzhiyunsubsequently incorporated within the Work. 75*4882a593Smuzhiyun 76*4882a593Smuzhiyun2. Grant of Copyright License. Subject to the terms and conditions of this 77*4882a593Smuzhiyun License, each Contributor hereby grants to You a perpetual, worldwide, 78*4882a593Smuzhiyun non-exclusive, no-charge, royalty-free, irrevocable copyright license to 79*4882a593Smuzhiyun reproduce, prepare Derivative Works of, publicly display, publicly 80*4882a593Smuzhiyun perform, sublicense, and distribute the Work and such Derivative Works 81*4882a593Smuzhiyun in Source or Object form. 82*4882a593Smuzhiyun 83*4882a593Smuzhiyun3. Grant of Patent License. Subject to the terms and conditions of this 84*4882a593Smuzhiyun License, each Contributor hereby grants to You a perpetual, worldwide, 85*4882a593Smuzhiyun non-exclusive, no-charge, royalty-free, irrevocable (except as stated in 86*4882a593Smuzhiyun this section) patent license to make, have made, use, offer to sell, 87*4882a593Smuzhiyun sell, import, and otherwise transfer the Work, where such license 88*4882a593Smuzhiyun applies only to those patent claims licensable by such Contributor that 89*4882a593Smuzhiyun are necessarily infringed by their Contribution(s) alone or by 90*4882a593Smuzhiyun combination of their Contribution(s) with the Work to which such 91*4882a593Smuzhiyun Contribution(s) was submitted. If You institute patent litigation 92*4882a593Smuzhiyun against any entity (including a cross-claim or counterclaim in a 93*4882a593Smuzhiyun lawsuit) alleging that the Work or a Contribution incorporated within 94*4882a593Smuzhiyun the Work constitutes direct or contributory patent infringement, then 95*4882a593Smuzhiyun any patent licenses granted to You under this License for that Work 96*4882a593Smuzhiyun shall terminate as of the date such litigation is filed. 97*4882a593Smuzhiyun 98*4882a593Smuzhiyun4. Redistribution. You may reproduce and distribute copies of the Work or 99*4882a593Smuzhiyun Derivative Works thereof in any medium, with or without modifications, 100*4882a593Smuzhiyun and in Source or Object form, provided that You meet the following 101*4882a593Smuzhiyun conditions: 102*4882a593Smuzhiyun 103*4882a593Smuzhiyun a. You must give any other recipients of the Work or Derivative Works a 104*4882a593Smuzhiyun copy of this License; and 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun b. You must cause any modified files to carry prominent notices stating 107*4882a593Smuzhiyun that You changed the files; and 108*4882a593Smuzhiyun 109*4882a593Smuzhiyun c. You must retain, in the Source form of any Derivative Works that You 110*4882a593Smuzhiyun distribute, all copyright, patent, trademark, and attribution notices 111*4882a593Smuzhiyun from the Source form of the Work, excluding those notices that do not 112*4882a593Smuzhiyun pertain to any part of the Derivative Works; and 113*4882a593Smuzhiyun 114*4882a593Smuzhiyun d. If the Work includes a "NOTICE" text file as part of its 115*4882a593Smuzhiyun distribution, then any Derivative Works that You distribute must 116*4882a593Smuzhiyun include a readable copy of the attribution notices contained within 117*4882a593Smuzhiyun such NOTICE file, excluding those notices that do not pertain to any 118*4882a593Smuzhiyun part of the Derivative Works, in at least one of the following 119*4882a593Smuzhiyun places: within a NOTICE text file distributed as part of the 120*4882a593Smuzhiyun Derivative Works; within the Source form or documentation, if 121*4882a593Smuzhiyun provided along with the Derivative Works; or, within a display 122*4882a593Smuzhiyun generated by the Derivative Works, if and wherever such third-party 123*4882a593Smuzhiyun notices normally appear. The contents of the NOTICE file are for 124*4882a593Smuzhiyun informational purposes only and do not modify the License. You may 125*4882a593Smuzhiyun add Your own attribution notices within Derivative Works that You 126*4882a593Smuzhiyun distribute, alongside or as an addendum to the NOTICE text from the 127*4882a593Smuzhiyun Work, provided that such additional attribution notices cannot be 128*4882a593Smuzhiyun construed as modifying the License. 129*4882a593Smuzhiyun 130*4882a593Smuzhiyun You may add Your own copyright statement to Your modifications and may 131*4882a593Smuzhiyun provide additional or different license terms and conditions for use, 132*4882a593Smuzhiyun reproduction, or distribution of Your modifications, or for any such 133*4882a593Smuzhiyun Derivative Works as a whole, provided Your use, reproduction, and 134*4882a593Smuzhiyun distribution of the Work otherwise complies with the conditions stated 135*4882a593Smuzhiyun in this License. 136*4882a593Smuzhiyun 137*4882a593Smuzhiyun5. Submission of Contributions. Unless You explicitly state otherwise, any 138*4882a593Smuzhiyun Contribution intentionally submitted for inclusion in the Work by You to 139*4882a593Smuzhiyun the Licensor shall be under the terms and conditions of this License, 140*4882a593Smuzhiyun without any additional terms or conditions. Notwithstanding the above, 141*4882a593Smuzhiyun nothing herein shall supersede or modify the terms of any separate 142*4882a593Smuzhiyun license agreement you may have executed with Licensor regarding such 143*4882a593Smuzhiyun Contributions. 144*4882a593Smuzhiyun 145*4882a593Smuzhiyun6. Trademarks. This License does not grant permission to use the trade 146*4882a593Smuzhiyun names, trademarks, service marks, or product names of the Licensor, 147*4882a593Smuzhiyun except as required for reasonable and customary use in describing the 148*4882a593Smuzhiyun origin of the Work and reproducing the content of the NOTICE file. 149*4882a593Smuzhiyun 150*4882a593Smuzhiyun7. Disclaimer of Warranty. Unless required by applicable law or agreed to 151*4882a593Smuzhiyun in writing, Licensor provides the Work (and each Contributor provides 152*4882a593Smuzhiyun its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 153*4882a593Smuzhiyun OF ANY KIND, either express or implied, including, without limitation, 154*4882a593Smuzhiyun any warranties or conditions of TITLE, NON-INFRINGEMENT, 155*4882a593Smuzhiyun MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely 156*4882a593Smuzhiyun responsible for determining the appropriateness of using or 157*4882a593Smuzhiyun redistributing the Work and assume any risks associated with Your 158*4882a593Smuzhiyun exercise of permissions under this License. 159*4882a593Smuzhiyun 160*4882a593Smuzhiyun8. Limitation of Liability. In no event and under no legal theory, whether 161*4882a593Smuzhiyun in tort (including negligence), contract, or otherwise, unless required 162*4882a593Smuzhiyun by applicable law (such as deliberate and grossly negligent acts) or 163*4882a593Smuzhiyun agreed to in writing, shall any Contributor be liable to You for 164*4882a593Smuzhiyun damages, including any direct, indirect, special, incidental, or 165*4882a593Smuzhiyun consequential damages of any character arising as a result of this 166*4882a593Smuzhiyun License or out of the use or inability to use the Work (including but 167*4882a593Smuzhiyun not limited to damages for loss of goodwill, work stoppage, computer 168*4882a593Smuzhiyun failure or malfunction, or any and all other commercial damages or 169*4882a593Smuzhiyun losses), even if such Contributor has been advised of the possibility of 170*4882a593Smuzhiyun such damages. 171*4882a593Smuzhiyun 172*4882a593Smuzhiyun9. Accepting Warranty or Additional Liability. While redistributing the 173*4882a593Smuzhiyun Work or Derivative Works thereof, You may choose to offer, and charge a 174*4882a593Smuzhiyun fee for, acceptance of support, warranty, indemnity, or other liability 175*4882a593Smuzhiyun obligations and/or rights consistent with this License. However, in 176*4882a593Smuzhiyun accepting such obligations, You may act only on Your own behalf and on 177*4882a593Smuzhiyun Your sole responsibility, not on behalf of any other Contributor, and 178*4882a593Smuzhiyun only if You agree to indemnify, defend, and hold each Contributor 179*4882a593Smuzhiyun harmless for any liability incurred by, or claims asserted against, such 180*4882a593Smuzhiyun Contributor by reason of your accepting any such warranty or additional 181*4882a593Smuzhiyun liability. 182*4882a593Smuzhiyun 183*4882a593SmuzhiyunEND OF TERMS AND CONDITIONS 184