Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
903
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KohiCityLights
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-22 */ // Sources flattened with hardhat v2.6.8 https://hardhat.org // SPDX-License-Identifier: UNLICENSED // /* &@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@% @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@ /@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@& #@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@ (@@@@@@@@@@@@@@@@@@ %@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@* .@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@& ,@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@ /@@@@@@@@@@@@@@@@@@/ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ (@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@,@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ (@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ #@@@@@, @@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@@@. @@@@@@@@@@@ @@@@@@@@@@@@@@@@, @@@@@@@@@@@@@@@@ @@@@@@@@@@@ &@@@@@@@@@@@ &@@@@@@@@@@@@@@@@@# @@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@& @@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@( @@@@@@@@@@@@@@@@@& @@@@@@@@@@@@@@( @@@@@@@@@@@ .@@@@@# */ // File @openzeppelin/contracts/utils/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/utils/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File contracts/V1/MathV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; library MathV1 { function max(int256 a, int256 b) internal pure returns (int256) { return a >= b ? a : b; } function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } function max3( int256 a, int256 b, int256 c ) internal pure returns (int256) { int256 d = b >= c ? b : c; return a >= d ? a : d; } function min3( int256 a, int256 b, int256 c ) internal pure returns (int256) { int256 d = b < c ? b : c; return a < d ? a : d; } function abs(int256 x) internal pure returns (int256) { return x >= 0 ? x : -x; } function sign(int256 x) internal pure returns (int8) { return x == 0 ? int8(0) : x > 0 ? int8(1) : int8(-1); } } // File contracts/V1/Fix64V1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* Provides mathematical operations and representation in Q31.Q32 format. exp: Adapted from Petteri Aimonen's libfixmath See: https://github.com/PetteriAimonen/libfixmath https://github.com/PetteriAimonen/libfixmath/blob/master/LICENSE other functions: Adapted from André Slupik's FixedMath.NET https://github.com/asik/FixedMath.Net/blob/master/LICENSE.txt THIRD PARTY NOTICES: ==================== libfixmath is Copyright (c) 2011-2021 Flatmush <[email protected]>, Petteri Aimonen <[email protected]>, & libfixmath AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Copyright 2012 André Slupik Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. This project uses code from the log2fix library, which is under the following license: The MIT License (MIT) Copyright (c) 2015 Dan Moulding Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library Fix64V1 { int64 public constant FRACTIONAL_PLACES = 32; int64 public constant ONE = 4294967296; // 1 << FRACTIONAL_PLACES int64 public constant TWO = ONE * 2; int64 public constant PI = 0x3243F6A88; int64 public constant TWO_PI = 0x6487ED511; int64 public constant MAX_VALUE = type(int64).max; int64 public constant MIN_VALUE = type(int64).min; int64 public constant PI_OVER_2 = 0x1921FB544; function countLeadingZeros(uint64 x) internal pure returns (int64) { int64 result = 0; while ((x & 0xF000000000000000) == 0) { result += 4; x <<= 4; } while ((x & 0x8000000000000000) == 0) { result += 1; x <<= 1; } return result; } function div(int64 x, int64 y) internal pure returns (int64) { if (y == 0) { revert("attempted to divide by zero"); } int64 xl = x; int64 yl = y; uint64 remainder = uint64(xl >= 0 ? xl : -xl); uint64 divider = uint64((yl >= 0 ? yl : -yl)); uint64 quotient = 0; int64 bitPos = 64 / 2 + 1; while ((divider & 0xF) == 0 && bitPos >= 4) { divider >>= 4; bitPos -= 4; } while (remainder != 0 && bitPos >= 0) { int64 shift = countLeadingZeros(remainder); if (shift > bitPos) { shift = bitPos; } remainder <<= uint64(shift); bitPos -= shift; uint64 d = remainder / divider; remainder = remainder % divider; quotient += d << uint64(bitPos); if ((d & ~(uint64(0xFFFFFFFFFFFFFFFF) >> uint64(bitPos)) != 0)) { return ((xl ^ yl) & MIN_VALUE) == 0 ? MAX_VALUE : MIN_VALUE; } remainder <<= 1; --bitPos; } ++quotient; int64 result = int64(quotient >> 1); if (((xl ^ yl) & MIN_VALUE) != 0) { result = -result; } return int64(result); } function mul(int64 x, int64 y) internal pure returns (int64) { int64 xl = x; int64 yl = y; uint64 xlo = (uint64)((xl & (int64)(0x00000000FFFFFFFF))); int64 xhi = xl >> 32; // FRACTIONAL_PLACES uint64 ylo = (uint64)(yl & (int64)(0x00000000FFFFFFFF)); int64 yhi = yl >> 32; // FRACTIONAL_PLACES uint64 lolo = xlo * ylo; int64 lohi = int64(xlo) * yhi; int64 hilo = xhi * int64(ylo); int64 hihi = xhi * yhi; uint64 loResult = lolo >> 32; // FRACTIONAL_PLACES int64 midResult1 = lohi; int64 midResult2 = hilo; int64 hiResult = hihi << 32; // FRACTIONAL_PLACES int64 sum = int64(loResult) + midResult1 + midResult2 + hiResult; return int64(sum); } function mul_256(int x, int y) internal pure returns (int) { int xl = x; int yl = y; uint xlo = uint((xl & int(0x00000000FFFFFFFF))); int xhi = xl >> 32; // FRACTIONAL_PLACES uint ylo = uint(yl & int(0x00000000FFFFFFFF)); int yhi = yl >> 32; // FRACTIONAL_PLACES uint lolo = xlo * ylo; int lohi = int(xlo) * yhi; int hilo = xhi * int(ylo); int hihi = xhi * yhi; uint loResult = lolo >> 32; // FRACTIONAL_PLACES int midResult1 = lohi; int midResult2 = hilo; int hiResult = hihi << 32; // FRACTIONAL_PLACES int sum = int(loResult) + midResult1 + midResult2 + hiResult; return sum; } function floor(int x) internal pure returns (int64) { return int64(x & 0xFFFFFFFF00000000); } function round(int x) internal pure returns (int) { int fractionalPart = x & 0x00000000FFFFFFFF; int integralPart = floor(x); if (fractionalPart < 0x80000000) return integralPart; if (fractionalPart > 0x80000000) return integralPart + ONE; if ((integralPart & ONE) == 0) return integralPart; return integralPart + ONE; } function sub(int64 x, int64 y) internal pure returns (int64) { int64 xl = x; int64 yl = y; int64 diff = xl - yl; if (((xl ^ yl) & (xl ^ diff) & MIN_VALUE) != 0) diff = xl < 0 ? MIN_VALUE : MAX_VALUE; return diff; } function add(int64 x, int64 y) internal pure returns (int64) { int64 xl = x; int64 yl = y; int64 sum = xl + yl; if ((~(xl ^ yl) & (xl ^ sum) & MIN_VALUE) != 0) sum = xl > 0 ? MAX_VALUE : MIN_VALUE; return sum; } function sign(int64 x) internal pure returns (int8) { return x == int8(0) ? int8(0) : x > int8(0) ? int8(1) : int8(-1); } function abs(int64 x) internal pure returns (int64) { int64 mask = x >> 63; return (x + mask) ^ mask; } } // File contracts/V1/SinLut256.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community Inc. All rights reserved. */ pragma solidity ^0.8.0; library SinLut256 { /** * @notice Lookup tables for computing the sine value for a given angle. * @param i The clamped and rounded angle integral to index into the table. * @return The sine value in fixed-point (Q31.32) space. */ function sinlut(int256 i) external pure returns (int64) { if (i <= 127) { if (i <= 63) { if (i <= 31) { if (i <= 15) { if (i <= 7) { if (i <= 3) { if (i <= 1) { if (i == 0) { return 0; } else { return 26456769; } } else { if (i == 2) { return 52912534; } else { return 79366292; } } } else { if (i <= 5) { if (i == 4) { return 105817038; } else { return 132263769; } } else { if (i == 6) { return 158705481; } else { return 185141171; } } } } else { if (i <= 11) { if (i <= 9) { if (i == 8) { return 211569835; } else { return 237990472; } } else { if (i == 10) { return 264402078; } else { return 290803651; } } } else { if (i <= 13) { if (i == 12) { return 317194190; } else { return 343572692; } } else { if (i == 14) { return 369938158; } else { return 396289586; } } } } } else { if (i <= 23) { if (i <= 19) { if (i <= 17) { if (i == 16) { return 422625977; } else { return 448946331; } } else { if (i == 18) { return 475249649; } else { return 501534935; } } } else { if (i <= 21) { if (i == 20) { return 527801189; } else { return 554047416; } } else { if (i == 22) { return 580272619; } else { return 606475804; } } } } else { if (i <= 27) { if (i <= 25) { if (i == 24) { return 632655975; } else { return 658812141; } } else { if (i == 26) { return 684943307; } else { return 711048483; } } } else { if (i <= 29) { if (i == 28) { return 737126679; } else { return 763176903; } } else { if (i == 30) { return 789198169; } else { return 815189489; } } } } } } else { if (i <= 47) { if (i <= 39) { if (i <= 35) { if (i <= 33) { if (i == 32) { return 841149875; } else { return 867078344; } } else { if (i == 34) { return 892973912; } else { return 918835595; } } } else { if (i <= 37) { if (i == 36) { return 944662413; } else { return 970453386; } } else { if (i == 38) { return 996207534; } else { return 1021923881; } } } } else { if (i <= 43) { if (i <= 41) { if (i == 40) { return 1047601450; } else { return 1073239268; } } else { if (i == 42) { return 1098836362; } else { return 1124391760; } } } else { if (i <= 45) { if (i == 44) { return 1149904493; } else { return 1175373592; } } else { if (i == 46) { return 1200798091; } else { return 1226177026; } } } } } else { if (i <= 55) { if (i <= 51) { if (i <= 49) { if (i == 48) { return 1251509433; } else { return 1276794351; } } else { if (i == 50) { return 1302030821; } else { return 1327217884; } } } else { if (i <= 53) { if (i == 52) { return 1352354586; } else { return 1377439973; } } else { if (i == 54) { return 1402473092; } else { return 1427452994; } } } } else { if (i <= 59) { if (i <= 57) { if (i == 56) { return 1452378731; } else { return 1477249357; } } else { if (i == 58) { return 1502063928; } else { return 1526821503; } } } else { if (i <= 61) { if (i == 60) { return 1551521142; } else { return 1576161908; } } else { if (i == 62) { return 1600742866; } else { return 1625263084; } } } } } } } else { if (i <= 95) { if (i <= 79) { if (i <= 71) { if (i <= 67) { if (i <= 65) { if (i == 64) { return 1649721630; } else { return 1674117578; } } else { if (i == 66) { return 1698450000; } else { return 1722717974; } } } else { if (i <= 69) { if (i == 68) { return 1746920580; } else { return 1771056897; } } else { if (i == 70) { return 1795126012; } else { return 1819127010; } } } } else { if (i <= 75) { if (i <= 73) { if (i == 72) { return 1843058980; } else { return 1866921015; } } else { if (i == 74) { return 1890712210; } else { return 1914431660; } } } else { if (i <= 77) { if (i == 76) { return 1938078467; } else { return 1961651733; } } else { if (i == 78) { return 1985150563; } else { return 2008574067; } } } } } else { if (i <= 87) { if (i <= 83) { if (i <= 81) { if (i == 80) { return 2031921354; } else { return 2055191540; } } else { if (i == 82) { return 2078383740; } else { return 2101497076; } } } else { if (i <= 85) { if (i == 84) { return 2124530670; } else { return 2147483647; } } else { if (i == 86) { return 2170355138; } else { return 2193144275; } } } } else { if (i <= 91) { if (i <= 89) { if (i == 88) { return 2215850191; } else { return 2238472027; } } else { if (i == 90) { return 2261008923; } else { return 2283460024; } } } else { if (i <= 93) { if (i == 92) { return 2305824479; } else { return 2328101438; } } else { if (i == 94) { return 2350290057; } else { return 2372389494; } } } } } } else { if (i <= 111) { if (i <= 103) { if (i <= 99) { if (i <= 97) { if (i == 96) { return 2394398909; } else { return 2416317469; } } else { if (i == 98) { return 2438144340; } else { return 2459878695; } } } else { if (i <= 101) { if (i == 100) { return 2481519710; } else { return 2503066562; } } else { if (i == 102) { return 2524518435; } else { return 2545874514; } } } } else { if (i <= 107) { if (i <= 105) { if (i == 104) { return 2567133990; } else { return 2588296054; } } else { if (i == 106) { return 2609359905; } else { return 2630324743; } } } else { if (i <= 109) { if (i == 108) { return 2651189772; } else { return 2671954202; } } else { if (i == 110) { return 2692617243; } else { return 2713178112; } } } } } else { if (i <= 119) { if (i <= 115) { if (i <= 113) { if (i == 112) { return 2733636028; } else { return 2753990216; } } else { if (i == 114) { return 2774239903; } else { return 2794384321; } } } else { if (i <= 117) { if (i == 116) { return 2814422705; } else { return 2834354295; } } else { if (i == 118) { return 2854178334; } else { return 2873894071; } } } } else { if (i <= 123) { if (i <= 121) { if (i == 120) { return 2893500756; } else { return 2912997648; } } else { if (i == 122) { return 2932384004; } else { return 2951659090; } } } else { if (i <= 125) { if (i == 124) { return 2970822175; } else { return 2989872531; } } else { if (i == 126) { return 3008809435; } else { return 3027632170; } } } } } } } } else { if (i <= 191) { if (i <= 159) { if (i <= 143) { if (i <= 135) { if (i <= 131) { if (i <= 129) { if (i == 128) { return 3046340019; } else { return 3064932275; } } else { if (i == 130) { return 3083408230; } else { return 3101767185; } } } else { if (i <= 133) { if (i == 132) { return 3120008443; } else { return 3138131310; } } else { if (i == 134) { return 3156135101; } else { return 3174019130; } } } } else { if (i <= 139) { if (i <= 137) { if (i == 136) { return 3191782721; } else { return 3209425199; } } else { if (i == 138) { return 3226945894; } else { return 3244344141; } } } else { if (i <= 141) { if (i == 140) { return 3261619281; } else { return 3278770658; } } else { if (i == 142) { return 3295797620; } else { return 3312699523; } } } } } else { if (i <= 151) { if (i <= 147) { if (i <= 145) { if (i == 144) { return 3329475725; } else { return 3346125588; } } else { if (i == 146) { return 3362648482; } else { return 3379043779; } } } else { if (i <= 149) { if (i == 148) { return 3395310857; } else { return 3411449099; } } else { if (i == 150) { return 3427457892; } else { return 3443336630; } } } } else { if (i <= 155) { if (i <= 153) { if (i == 152) { return 3459084709; } else { return 3474701532; } } else { if (i == 154) { return 3490186507; } else { return 3505539045; } } } else { if (i <= 157) { if (i == 156) { return 3520758565; } else { return 3535844488; } } else { if (i == 158) { return 3550796243; } else { return 3565613262; } } } } } } else { if (i <= 175) { if (i <= 167) { if (i <= 163) { if (i <= 161) { if (i == 160) { return 3580294982; } else { return 3594840847; } } else { if (i == 162) { return 3609250305; } else { return 3623522808; } } } else { if (i <= 165) { if (i == 164) { return 3637657816; } else { return 3651654792; } } else { if (i == 166) { return 3665513205; } else { return 3679232528; } } } } else { if (i <= 171) { if (i <= 169) { if (i == 168) { return 3692812243; } else { return 3706251832; } } else { if (i == 170) { return 3719550786; } else { return 3732708601; } } } else { if (i <= 173) { if (i == 172) { return 3745724777; } else { return 3758598821; } } else { if (i == 174) { return 3771330243; } else { return 3783918561; } } } } } else { if (i <= 183) { if (i <= 179) { if (i <= 177) { if (i == 176) { return 3796363297; } else { return 3808663979; } } else { if (i == 178) { return 3820820141; } else { return 3832831319; } } } else { if (i <= 181) { if (i == 180) { return 3844697060; } else { return 3856416913; } } else { if (i == 182) { return 3867990433; } else { return 3879417181; } } } } else { if (i <= 187) { if (i <= 185) { if (i == 184) { return 3890696723; } else { return 3901828632; } } else { if (i == 186) { return 3912812484; } else { return 3923647863; } } } else { if (i <= 189) { if (i == 188) { return 3934334359; } else { return 3944871565; } } else { if (i == 190) { return 3955259082; } else { return 3965496515; } } } } } } } else { if (i <= 223) { if (i <= 207) { if (i <= 199) { if (i <= 195) { if (i <= 193) { if (i == 192) { return 3975583476; } else { return 3985519583; } } else { if (i == 194) { return 3995304457; } else { return 4004937729; } } } else { if (i <= 197) { if (i == 196) { return 4014419032; } else { return 4023748007; } } else { if (i == 198) { return 4032924300; } else { return 4041947562; } } } } else { if (i <= 203) { if (i <= 201) { if (i == 200) { return 4050817451; } else { return 4059533630; } } else { if (i == 202) { return 4068095769; } else { return 4076503544; } } } else { if (i <= 205) { if (i == 204) { return 4084756634; } else { return 4092854726; } } else { if (i == 206) { return 4100797514; } else { return 4108584696; } } } } } else { if (i <= 215) { if (i <= 211) { if (i <= 209) { if (i == 208) { return 4116215977; } else { return 4123691067; } } else { if (i == 210) { return 4131009681; } else { return 4138171544; } } } else { if (i <= 213) { if (i == 212) { return 4145176382; } else { return 4152023930; } } else { if (i == 214) { return 4158713929; } else { return 4165246124; } } } } else { if (i <= 219) { if (i <= 217) { if (i == 216) { return 4171620267; } else { return 4177836117; } } else { if (i == 218) { return 4183893437; } else { return 4189791999; } } } else { if (i <= 221) { if (i == 220) { return 4195531577; } else { return 4201111955; } } else { if (i == 222) { return 4206532921; } else { return 4211794268; } } } } } } else { if (i <= 239) { if (i <= 231) { if (i <= 227) { if (i <= 225) { if (i == 224) { return 4216895797; } else { return 4221837315; } } else { if (i == 226) { return 4226618635; } else { return 4231239573; } } } else { if (i <= 229) { if (i == 228) { return 4235699957; } else { return 4239999615; } } else { if (i == 230) { return 4244138385; } else { return 4248116110; } } } } else { if (i <= 235) { if (i <= 233) { if (i == 232) { return 4251932639; } else { return 4255587827; } } else { if (i == 234) { return 4259081536; } else { return 4262413632; } } } else { if (i <= 237) { if (i == 236) { return 4265583990; } else { return 4268592489; } } else { if (i == 238) { return 4271439015; } else { return 4274123460; } } } } } else { if (i <= 247) { if (i <= 243) { if (i <= 241) { if (i == 240) { return 4276645722; } else { return 4279005706; } } else { if (i == 242) { return 4281203321; } else { return 4283238485; } } } else { if (i <= 245) { if (i == 244) { return 4285111119; } else { return 4286821154; } } else { if (i == 246) { return 4288368525; } else { return 4289753172; } } } } else { if (i <= 251) { if (i <= 249) { if (i == 248) { return 4290975043; } else { return 4292034091; } } else { if (i == 250) { return 4292930277; } else { return 4293663567; } } } else { if (i <= 253) { if (i == 252) { return 4294233932; } else { return 4294641351; } } else { if (i == 254) { return 4294885809; } else { return 4294967296; } } } } } } } } } } // File contracts/V1/Trig256.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* Provides trigonometric functions in Q31.Q32 format. exp: Adapted from Petteri Aimonen's libfixmath See: https://github.com/PetteriAimonen/libfixmath https://github.com/PetteriAimonen/libfixmath/blob/master/LICENSE other functions: Adapted from André Slupik's FixedMath.NET https://github.com/asik/FixedMath.Net/blob/master/LICENSE.txt THIRD PARTY NOTICES: ==================== libfixmath is Copyright (c) 2011-2021 Flatmush <[email protected]>, Petteri Aimonen <[email protected]>, & libfixmath AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Copyright 2012 André Slupik Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. This project uses code from the log2fix library, which is under the following license: The MIT License (MIT) Copyright (c) 2015 Dan Moulding Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library Trig256 { int64 private constant LARGE_PI = 7244019458077122842; int64 private constant LN2 = 0xB17217F7; int64 private constant LN_MAX = 0x157CD0E702; int64 private constant LN_MIN = -0x162E42FEFA; int64 private constant E = -0x2B7E15162; function sin(int64 x) internal pure returns (int64) { ( int64 clamped, bool flipHorizontal, bool flipVertical ) = clamp(x); int64 lutInterval = Fix64V1.div(((256 - 1) * Fix64V1.ONE), Fix64V1.PI_OVER_2); int rawIndex = Fix64V1.mul_256(clamped, lutInterval); int64 roundedIndex = int64(Fix64V1.round(rawIndex)); int64 indexError = Fix64V1.sub(int64(rawIndex), roundedIndex); roundedIndex = roundedIndex >> 32; /* FRACTIONAL_PLACES */ int64 nearestValueIndex = flipHorizontal ? (256 - 1) - roundedIndex : roundedIndex; int64 nearestValue = SinLut256.sinlut(nearestValueIndex); int64 secondNearestValue = SinLut256.sinlut( flipHorizontal ? (256 - 1) - roundedIndex - Fix64V1.sign(indexError) : roundedIndex + Fix64V1.sign(indexError) ); int64 delta = Fix64V1.mul(indexError, Fix64V1.abs(Fix64V1.sub(nearestValue, secondNearestValue))); int64 interpolatedValue = nearestValue + (flipHorizontal ? -delta : delta); int64 finalValue = flipVertical ? -interpolatedValue: interpolatedValue; return finalValue; } function cos(int64 x) internal pure returns (int64) { int64 xl = x; int64 angle; if(xl > 0) { angle = Fix64V1.add(xl, Fix64V1.sub(0 - Fix64V1.PI, Fix64V1.PI_OVER_2)); } else { angle = Fix64V1.add(xl, Fix64V1.PI_OVER_2); } return sin(angle); } function sqrt(int64 x) internal pure returns (int64) { int64 xl = x; if (xl < 0) revert("negative value passed to sqrt"); uint64 num = uint64(xl); uint64 result = uint64(0); uint64 bit = uint64(1) << (64 - 2); while (bit > num) bit >>= 2; for (uint8 i = 0; i < 2; ++i) { while (bit != 0) { if (num >= result + bit) { num -= result + bit; result = (result >> 1) + bit; } else { result = result >> 1; } bit >>= 2; } if (i == 0) { if (num > (uint64(1) << (64 / 2)) - 1) { num -= result; num = (num << (64 / 2)) - uint64(0x80000000); result = (result << (64 / 2)) + uint64(0x80000000); } else { num <<= 64 / 2; result <<= 64 / 2; } bit = uint64(1) << (64 / 2 - 2); } } if (num > result) ++result; return int64(result); } function log2_256(int x) internal pure returns (int) { if (x <= 0) { revert("negative value passed to log2_256"); } // This implementation is based on Clay. S. Turner's fast binary logarithm // algorithm (C. S. Turner, "A Fast Binary Logarithm Algorithm", IEEE Signal // Processing Mag., pp. 124,140, Sep. 2010.) int b = 1 << 31; // FRACTIONAL_PLACES - 1 int y = 0; int rawX = x; while (rawX < Fix64V1.ONE) { rawX <<= 1; y -= Fix64V1.ONE; } while (rawX >= Fix64V1.ONE << 1) { rawX >>= 1; y += Fix64V1.ONE; } int z = rawX; for (uint8 i = 0; i < 32 /* FRACTIONAL_PLACES */; i++) { z = Fix64V1.mul_256(z, z); if (z >= Fix64V1.ONE << 1) { z = z >> 1; y += b; } b >>= 1; } return y; } function log_256(int x) internal pure returns (int) { return Fix64V1.mul_256(log2_256(x), LN2); } function log2(int64 x) internal pure returns (int64) { if (x <= 0) revert("non-positive value passed to log2"); // This implementation is based on Clay. S. Turner's fast binary logarithm // algorithm (C. S. Turner, "A Fast Binary Logarithm Algorithm", IEEE Signal // Processing Mag., pp. 124,140, Sep. 2010.) int64 b = 1 << 31; // FRACTIONAL_PLACES - 1 int64 y = 0; int64 rawX = x; while (rawX < Fix64V1.ONE) { rawX <<= 1; y -= Fix64V1.ONE; } while (rawX >= Fix64V1.ONE << 1) { rawX >>= 1; y += Fix64V1.ONE; } int64 z = rawX; for (int32 i = 0; i < Fix64V1.FRACTIONAL_PLACES; i++) { z = Fix64V1.mul(z, z); if (z >= Fix64V1.ONE << 1) { z = z >> 1; y += b; } b >>= 1; } return y; } function log(int64 x) internal pure returns (int64) { return Fix64V1.mul(log2(x), LN2); } function exp(int64 x) internal pure returns (int64) { if (x == 0) return Fix64V1.ONE; if (x == Fix64V1.ONE) return E; if (x >= LN_MAX) return Fix64V1.MAX_VALUE; if (x <= LN_MIN) return 0; /* The algorithm is based on the power series for exp(x): * http://en.wikipedia.org/wiki/Exponential_function#Formal_definition * * From term n, we get term n+1 by multiplying with x/n. * When the sum term drops to zero, we can stop summing. */ // The power-series converges much faster on positive values // and exp(-x) = 1/exp(x). bool neg = (x < 0); if (neg) x = -x; int64 result = Fix64V1.add( int64(x), Fix64V1.ONE ); int64 term = x; for (uint32 i = 2; i < 40; i++) { term = Fix64V1.mul( x, Fix64V1.div(term, int32(i) * Fix64V1.ONE) ); result = Fix64V1.add(result, int64(term)); if (term == 0) break; } if (neg) { result = Fix64V1.div(Fix64V1.ONE, result); } return result; } function clamp(int64 x) internal pure returns ( int64, bool, bool ) { int64 clamped2Pi = x; for (uint8 i = 0; i < 29; ++i) { clamped2Pi %= LARGE_PI >> i; } if (x < 0) { clamped2Pi += Fix64V1.TWO_PI; } bool flipVertical = clamped2Pi >= Fix64V1.PI; int64 clampedPi = clamped2Pi; while (clampedPi >= Fix64V1.PI) { clampedPi -= Fix64V1.PI; } bool flipHorizontal = clampedPi >= Fix64V1.PI_OVER_2; int64 clampedPiOver2 = clampedPi; if (clampedPiOver2 >= Fix64V1.PI_OVER_2) clampedPiOver2 -= Fix64V1.PI_OVER_2; return (clampedPiOver2, flipHorizontal, flipVertical); } } // File contracts/V1/RandomV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* A pseudo-random number generator, adapted from and matching the algorithm for .NET maximum compatibility Random implementation. See: https://github.com/dotnet/runtime/blob/f7633f498a8be34bee739b240a0aa9ae6a660cd9/src/libraries/System.Private.CoreLib/src/System/Random.Net5CompatImpl.cs#L192 https://github.com/dotnet/runtime/blob/main/LICENSE.TXT THIRD PARTY NOTICES: ==================== The MIT License (MIT) Copyright (c) .NET Foundation and Contributors All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library RandomV1 { int32 private constant MBIG = 0x7fffffff; int32 private constant MSEED = 161803398; struct PRNG { int32[56] _seedArray; int32 _inext; int32 _inextp; } function buildSeedTable(int32 seed) internal pure returns(PRNG memory prng) { uint8 ii = 0; int32 mj; int32 mk; int32 subtraction = (seed == type(int32).min) ? type(int32).max : int32(MathV1.abs(seed)); mj = MSEED - subtraction; prng._seedArray[55] = mj; mk = 1; for (uint8 i = 1; i < 55; i++) { if ((ii += 21) >= 55) { ii -= 55; } prng._seedArray[uint64(ii)] = mk; mk = mj - mk; if (mk < 0) mk += MBIG; mj = prng._seedArray[uint8(ii)]; } for (uint8 k = 1; k < 5; k++) { for (uint8 i = 1; i < 56; i++) { uint8 n = i + 30; if (n >= 55) { n -= 55; } int64 an = prng._seedArray[1 + n]; int64 ai = prng._seedArray[i]; prng._seedArray[i] = int32(ai - an); if (prng._seedArray[i] < 0) { int64 x = prng._seedArray[i]; x += MBIG; prng._seedArray[i] = int32(x); } } } prng._inextp = 21; } function next(PRNG memory prng, int32 maxValue) internal pure returns (int32) { require(maxValue >= 0, "maxValue < 0"); int32 retval = next(prng); int64 fretval = retval * Fix64V1.ONE; int64 sample = Fix64V1.mul(fretval, Fix64V1.div(Fix64V1.ONE, MBIG * Fix64V1.ONE)); int64 sr = Fix64V1.mul(sample, maxValue * Fix64V1.ONE); int32 r = int32(sr >> 32 /* FRACTIONAL_PLACES */); return r; } function next(PRNG memory prng, int32 minValue, int32 maxValue) internal pure returns(int32) { require(maxValue > minValue, "maxValue <= minValue"); int64 range = maxValue - minValue; if (range <= type(int32).max) { int32 retval = next(prng); int64 fretval = retval * Fix64V1.ONE; int64 sample = Fix64V1.mul(fretval, Fix64V1.div(Fix64V1.ONE, MBIG * Fix64V1.ONE)); int64 sr = Fix64V1.mul(sample, range * Fix64V1.ONE); int32 r = int32(sr >> 32 /* FRACTIONAL_PLACES */) + minValue; return r; } else { int64 fretval = nextForLargeRange(prng); int64 sr = Fix64V1.mul(fretval, range * Fix64V1.ONE); int32 r = int32(sr >> 32 /* FRACTIONAL_PLACES */) + minValue; return r; } } function next(PRNG memory prng) internal pure returns(int32) { int64 retVal; int32 locINext = prng._inext; int32 locINextp = prng._inextp; if (++locINext >= 56) locINext = 1; if (++locINextp >= 56) locINextp = 1; int64 a = int64(prng._seedArray[uint32(locINext)]); int64 b = int64(prng._seedArray[uint32(locINextp)]); retVal = a - b; if (retVal == MBIG) { retVal--; } if (retVal < 0) { retVal += MBIG; } prng._seedArray[uint32(locINext)] = int32(retVal); prng._inext = locINext; prng._inextp = locINextp; int32 r = int32(retVal); return r; } function nextForLargeRange(PRNG memory prng) private pure returns(int64) { int sample1 = next(prng); int sample2 = next(prng); bool negative = sample2 % 2 == 0; if (negative) { sample1 = -sample1; } int64 d = int64(sample1) * Fix64V1.ONE; d = Fix64V1.add(int64(d), (type(int32).max - 1)); d = Fix64V1.div(int64(d), int64(2) * (type(int32).max - 1)); return d; } function nextGaussian(PRNG memory prng) internal pure returns (int64 randNormal) { int64 u1 = Fix64V1.sub(Fix64V1.ONE, Fix64V1.mul(next(prng) * Fix64V1.ONE, Fix64V1.div(Fix64V1.ONE, Fix64V1.MAX_VALUE))); int64 u2 = Fix64V1.sub(Fix64V1.ONE, Fix64V1.mul(next(prng) * Fix64V1.ONE, Fix64V1.div(Fix64V1.ONE, Fix64V1.MAX_VALUE))); int64 sqrt = Trig256.sqrt(Fix64V1.mul(-2 * Fix64V1.ONE, Trig256.log(u1))); int64 randStdNormal = Fix64V1.mul(sqrt, Trig256.sin(Fix64V1.mul(Fix64V1.TWO, Fix64V1.mul(Fix64V1.PI, u2)))); randNormal = Fix64V1.add(0, Fix64V1.mul(Fix64V1.ONE, randStdNormal)); return randNormal; } } // File contracts/V1/IRenderer.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; interface IRenderer { struct RenderArgs { int16 index; uint8 stage; int32 seed; uint32[20480] buffer; RandomV1.PRNG prng; } /** * @notice Renders a chunk of the artwork, given an index. * @dev The output is an array of packed uint32s, in ARGB format. */ function render(RenderArgs memory args) external view returns (RenderArgs memory results); } // File contracts/Projects/CityLights/Errors.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; error InvalidStage(); error IndexOutOfRange(); error AdminOnly(); error NoOwnerAddress(); error NoCreatorAddress(); error AddressMustBeSet(); error InvalidSeed(); error InvalidRenderer(); error InvalidOwnerRoyalty(); error SeedNotSet(); error SeedAlreadySet(); error CannotPurchaseFromContract(); error InsufficientFundsForPurchase(); error InvalidFundsDistribution(); error CollectionPaused(); error CollectionLocked(); error CollectionInactive(); error CollectionSoldOut(); error PresaleNotOpen(); error PublicSaleNotOpen(); error NotEligibleForPresale(); error NoRemainingPresaleMints(); error AccountExceedsMaxMints(); error RenderDisallowed(); // File contracts/Projects/CityLights/CityLightsProxy.sol // File contracts/V1/IAttributes.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; interface IAttributes { function getAttributes(int32 seed) external view returns (string memory attributes); } // File @openzeppelin/contracts/utils/introspection/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File @openzeppelin/contracts/token/ERC721/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/utils/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/utils/introspection/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/token/ERC721/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // File @openzeppelin/contracts/security/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } } // File @openzeppelin/contracts/access/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File @openzeppelin/contracts/access/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } // File @openzeppelin/contracts/access/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/utils/structs/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } // File @openzeppelin/contracts/access/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {grantRole} to track enumerable memberships */ function grantRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {revokeRole} to track enumerable memberships */ function revokeRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.revokeRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {renounceRole} to track enumerable memberships */ function renounceRole(bytes32 role, address account) public virtual override(AccessControl, IAccessControl) { super.renounceRole(role, account); _roleMembers[role].remove(account); } /** * @dev Overload {_setupRole} to track enumerable memberships */ function _setupRole(bytes32 role, address account) internal virtual override { super._setupRole(role, account); _roleMembers[role].add(account); } } // File @openzeppelin/contracts/security/[email protected] // License: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File contracts/Projects/CityLights/KohiCityLights.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; interface IBloomList { function updateAdmin(address newAdmin) external; function isInBloomList(address _address) external view returns (bool); } contract KohiCityLights is Context, AccessControlEnumerable, ERC721, ERC721Enumerable, ERC721Pausable, ERC721Burnable, ReentrancyGuard { using Address for address; struct Collection { string name; string baseTokenUri; string description; string license; uint priceInWei; int32 seed; uint minted; uint mintedMax; uint mintedMaxPerOwner; uint lockAt; bool paused; bool active; string creatorName; address payable creatorAddress; address _renderer; } mapping(uint8 => Collection) internal collections; event CollectionMinted ( uint256 indexed tokenId, address indexed recipient, uint256 mintId, uint256 priceInWei, int32 seed ); uint private lastTokenId; mapping(address => uint) private ownerMints; mapping(uint => int32) internal tokenSeed; bool private locked; bool private presale; uint8 private ownerRoyalty; address payable private ownerAddress; address private _admin; address private _ownership; uint presalePriceInWei; mapping(address => uint) presaleMints; mapping(uint => bool) presoldTokens; constructor(address ownership) ERC721("CityLights", "EEPCL") { lastTokenId = 0; _admin = _msgSender(); _contractUri = "https://kohi.art/metadata"; _ownership = ownership; presalePriceInWei = 330000000000000000; _pause(); } string private _contractUri; /* * @dev See: https://docs.opensea.io/docs/contract-level-metadata */ function contractURI() public view returns (string memory) { return _contractUri; } function updateContractUri(string memory contractUri) public { if(_msgSender() != _admin) revert AdminOnly(); _contractUri = contractUri; } function updateAdmin(address newAdmin) public { if(_msgSender() != _admin) revert AdminOnly(); if(newAdmin == address(0x0)) revert AddressMustBeSet(); _admin = newAdmin; } function updateOwnerData(uint8 royalty, address payable newAddress) public { if(_msgSender() != _admin) revert AdminOnly(); if(newAddress == address(0x0)) revert AddressMustBeSet(); if(royalty == 0 || royalty > 100) revert InvalidOwnerRoyalty(); ownerRoyalty = royalty; ownerAddress = newAddress; } function getPresale() external view returns (bool) { return presale; } function togglePresale() external { if(_msgSender() != _admin) revert AdminOnly(); if(presale) { presale = false; } else { presale = true; } } function toggleLocked() external { if(_msgSender() != _admin) revert AdminOnly(); if(locked) { locked = false; } else { locked = true; } } function togglePaused() external { if(_msgSender() != _admin) revert AdminOnly(); if(paused()) { _unpause(); } else { _pause(); } } function setPresalePrice(uint priceInWei) public { if(_msgSender() != _admin) revert AdminOnly(); presalePriceInWei = priceInWei; } function setPrice(uint priceInWei) public { if(_msgSender() != _admin) revert AdminOnly(); collections[0].priceInWei = priceInWei; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControlEnumerable, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override (ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); if(collections[0].paused) revert CollectionPaused(); } function getCollection() public view returns (Collection memory collection) { return collections[0]; } function updateCollection(Collection memory collection) public { if(_msgSender() != _admin) revert AdminOnly(); if(collection._renderer == address(0x0) || !collection._renderer.isContract()) revert InvalidRenderer(); collections[0] = collection; } /** * @notice Sets the collection's unique seed. It cannot be modified once set. * @dev This is a source of external entropy, by the contract owner, to avoid determinism on PRNG that could exploit the mint's parameters. */ function setSeed(int32 seed) external { if(_msgSender() != _admin) revert AdminOnly(); if(seed == 0) revert InvalidSeed(); if(collections[0].seed != 0) revert SeedAlreadySet(); collections[0].seed = seed; } function getSeed() external view returns (int32) { if(_msgSender() != _admin) revert AdminOnly(); if(collections[0].seed == 0) revert SeedNotSet(); return collections[0].seed; } function getOwnership() external view returns(address) { if(_msgSender() != _admin) revert AdminOnly(); return _ownership; } function setOwnership(address newOwnership) external { if(_msgSender() != _admin) revert AdminOnly(); _ownership = newOwnership; } function releaseControl() external { if(_msgSender() != _admin) revert AdminOnly(); IBloomList(_ownership).updateAdmin(_msgSender()); } function purchasePresale(uint count) external payable { purchasePresaleFor(_msgSender(), count); } function purchasePresaleFor(address recipient, uint count) public payable nonReentrant { if(!presale) revert PresaleNotOpen(); address minter = _msgSender(); uint balance = IERC721(_ownership).balanceOf(minter); bool inBloomList = IBloomList(_ownership).isInBloomList(minter); // start with simple eligibility check if(!inBloomList && balance < 1) revert NotEligibleForPresale(); // get count of all owned kintsugi tokens not already presold uint presaleBalance = 0; for(uint i = 0; i < balance; i++) { uint tokenId = IERC721Enumerable(_ownership).tokenOfOwnerByIndex(minter, i); if(!presoldTokens[tokenId]) { presaleBalance++; presoldTokens[tokenId] = true; if(presaleBalance >= count) { break; // have enough } } } // if in bloom list, with no entitlements, give one if they haven't minted one if(inBloomList && presaleBalance == 0 && presaleMints[minter] == 0) { presaleBalance = 1; } // if minter's count is over their balance, adjust it down count = uint(MathV1.min(int(count), int(presaleBalance))); // final balance check before minting if(count == 0) revert NoRemainingPresaleMints(); // edge case: minter wants to buy multiple but we have less supply than their count, // but don't want them to get nothing int remaining = MathV1.max(0, int(collections[0].mintedMax) - MathV1.min(int(collections[0].lockAt), int(collections[0].minted))); count = uint(MathV1.min(int(count), remaining)); if(count == 0) revert CollectionSoldOut(); presaleMints[minter] = presaleMints[minter] + count; mint(minter, recipient, presalePriceInWei, count); } function purchase(uint count) external payable { purchaseFor(_msgSender(), count); } function purchaseFor(address recipient, uint count) public payable nonReentrant { if(presale) revert PublicSaleNotOpen(); address minter = _msgSender(); uint mintedMaxPerOwner = collections[0].mintedMaxPerOwner; if(mintedMaxPerOwner != 0) { // reset for presale minters uint totalMintsAllowed = mintedMaxPerOwner + presaleMints[minter]; if(ownerMints[minter] >= totalMintsAllowed) revert AccountExceedsMaxMints(); } // edge case: minter wants to buy multiple but we have less supply than their count, // but don't want them to get nothing int remaining = MathV1.max(0, int(collections[0].mintedMax) - MathV1.min(int(collections[0].lockAt), int(collections[0].minted))); count = uint(MathV1.min(int(count), remaining)); if(count == 0) revert CollectionSoldOut(); mint(_msgSender(), recipient, collections[0].priceInWei, count); } function mint(address minter, address recipient, uint priceInWei, uint count) private { if(ownerAddress == address(0x0)) revert NoOwnerAddress(); if(minter.isContract()) revert CannotPurchaseFromContract(); if(locked && minter != _admin) revert CollectionLocked(); uint totalPrice = priceInWei * count; if(msg.value < totalPrice) revert InsufficientFundsForPurchase(); Collection memory collection = collections[0]; if(collection.creatorAddress == address(0x0)) revert NoCreatorAddress(); if(!collection.active && minter != _admin) revert CollectionInactive(); if(collection.seed == 0) revert SeedNotSet(); for(uint i = 0; i < count; i++) { uint256 nextTokenId = lastTokenId + 1; int32 seed = int32(int(uint(keccak256(abi.encodePacked(collection.seed, block.number, minter, recipient, nextTokenId))))); lastTokenId = nextTokenId; tokenSeed[lastTokenId] = seed; collections[0].minted = collection.minted + 1; ownerMints[minter] = ownerMints[minter] + 1; _safeMint(recipient, nextTokenId); emit CollectionMinted(nextTokenId, recipient, collection.minted, collection.priceInWei, seed); if(collection.lockAt > 0) { if(lastTokenId >= collection.lockAt) locked = true; } } distributeFunds(totalPrice, collection.creatorAddress); } function distributeFunds(uint priceInWei, address payable creatorAddress) private { if (msg.value > 0) { uint overpaid = msg.value - priceInWei; if (overpaid > 0) { payable(_msgSender()).transfer(overpaid); } uint dueToOwner = ownerRoyalty * priceInWei / 100; uint paidToOwner; if (dueToOwner > 0) { ownerAddress.transfer(dueToOwner); paidToOwner = dueToOwner; } uint dueToCreator = priceInWei - paidToOwner; uint paidToCreator; if (dueToCreator > 0) { creatorAddress.transfer(dueToCreator); paidToCreator = dueToCreator; } if(priceInWei - paidToOwner - paidToCreator != 0) { revert InvalidFundsDistribution(); } } } function ownsToken(address owner, uint tokenId) public view returns (bool) { for(uint i = 0; i < balanceOf(owner); i++) { if(tokenId == tokenOfOwnerByIndex(owner, i)) { return true; } } return false; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); Collection memory collection = collections[0]; string memory baseURI = collection.baseTokenUri; return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } function setRenderer(address renderer) external { if(_msgSender() != _admin) revert AdminOnly(); collections[0]._renderer = renderer; } /** * @notice Retrieve's an artwork's attributes, given a token ID. */ function getAttributes(uint tokenId) external view returns (string memory attributes) { if(_msgSender() != _admin && !ownsToken(_msgSender(), tokenId)) revert RenderDisallowed(); return IAttributes(collections[0]._renderer).getAttributes(tokenSeed[tokenId]); } /** * @notice Begins rendering an artwork given a token ID, and continuation arguments, which must be owned by the caller. */ function _render(uint tokenId, IRenderer.RenderArgs memory args) private view returns (IRenderer.RenderArgs memory results) { if(_msgSender() != _admin && !ownsToken(_msgSender(), tokenId)) revert RenderDisallowed(); if(args.seed != tokenSeed[tokenId]) revert InvalidSeed(); return IRenderer(collections[0]._renderer).render(args); } /** * @notice Continues rendering an artwork given a token ID and previous arguments. Token must be owned by the caller. */ function render(uint tokenId, IRenderer.RenderArgs memory args) external view returns (IRenderer.RenderArgs memory results) { return _render(tokenId, args); } /** * @notice Begins rendering an artwork given a token ID. Token must be owned by the caller. */ function beginRender(uint tokenId) external view returns (IRenderer.RenderArgs memory results) { uint32[20480] memory buffer; RandomV1.PRNG memory prng; return _render(tokenId, IRenderer.RenderArgs(0, 0, tokenSeed[tokenId], buffer, prng)); } } // File contracts/V1/TypesV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; library TypesV1 { /** * @dev Represents a point in two-dimensional space. */ struct Point2D { int256 x; int256 y; } /** * @dev Represents a chunked rendering region. */ struct Chunk2D { uint16 index; uint16 width; uint16 height; uint16 chunkWidth; uint16 chunkHeight; uint32 startX; uint32 startY; } } // File contracts/V1/GeometryV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; library GeometryV1 { struct Triangle2D { TypesV1.Point2D v0; TypesV1.Point2D v1; TypesV1.Point2D v2; uint32 strokeColor; uint32 fillColor; TypesV1.Chunk2D chunk; } struct Line2D { TypesV1.Point2D v0; TypesV1.Point2D v1; uint32 color; TypesV1.Chunk2D chunk; } struct Polygon2D { TypesV1.Point2D[40960] vertices; uint32 vertexCount; uint32 strokeColor; uint32 fillColor; TypesV1.Chunk2D chunk; } function edge( TypesV1.Point2D memory a, TypesV1.Point2D memory b, TypesV1.Point2D memory c ) external pure returns (int256) { return ((b.y - a.y) * (c.x - a.x)) - ((b.x - a.x) * (c.y - a.y)); } function getBoundingBox(TypesV1.Point2D[] memory vertices) external pure returns (TypesV1.Point2D memory tl, TypesV1.Point2D memory br) { int256 xMax = vertices[0].x; int256 xMin = vertices[0].x; int256 yMax = vertices[0].y; int256 yMin = vertices[0].y; for (uint256 i; i < vertices.length; i++) { TypesV1.Point2D memory p = vertices[i]; if (p.x > xMax) xMax = p.x; if (p.x < xMin) xMin = p.x; if (p.y > yMax) yMax = p.y; if (p.y < yMin) yMin = p.y; } return (TypesV1.Point2D(xMin, yMin), TypesV1.Point2D(xMax, yMax)); } } // File contracts/V1/LCG64.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* An implementation of a Linear Congruential Generator in Q31.Q32 format. Adapted from the algorithm used by p5js, which is licensed under the LGPL v2.1. See: https://github.com/processing/p5.js/blob/374acfb44588bfd565c54d61264df197d798d121/src/math/noise.js https://github.com/processing/p5.js/blob/main/license.txt This adaptation was necessary to ensure generative art in p5js produces identical results for noise values in Solidity. THIRD PARTY NOTICES: ==================== GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. (This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.) Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS */ library LCG64 { uint64 internal constant M = 4294967296; uint32 internal constant A = 1664525; uint32 internal constant C = 1013904223; function next(uint64 z) internal pure returns(uint64, int64) { uint256 r = uint(A) * uint(z) + uint(C); uint64 g = uint64(r % M); int lz = Trig256.log_256(int64(g) * int(Fix64V1.ONE)); int lm = Trig256.log_256(int64(M) * int(Fix64V1.ONE)); int64 lml = Fix64V1.sub(int64(lz), int64(lm)); int64 v = Trig256.exp(lml); return (g, v); } } // File contracts/V1/NoiseV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* An implementation of fixed-point noise in Q31.Q32 format. Adapted from the algorithm used by p5js, which is licensed under the LGPL v2.1. See: https://github.com/processing/p5.js/blob/374acfb44588bfd565c54d61264df197d798d121/src/math/noise.js https://github.com/processing/p5.js/blob/main/license.txt This adaptation was necessary to ensure generative art in p5js produces identical results for noise values in Solidity. THIRD PARTY NOTICES: ==================== GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. (This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.) Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS */ library NoiseV1 { uint32 private constant NOISE_TABLE_SIZE = 4095; int32 private constant PERLIN_YWRAPB = 4; int32 private constant PERLIN_YWRAP = 16; // 1 << PERLIN_YWRAPB int32 private constant PERLIN_ZWRAPB = 8; int32 private constant PERLIN_ZWRAP = 256; // 1 << PERLIN_ZWRAPB uint8 private constant PERLIN_OCTAVES = 4; int64 private constant PERLIN_AMP_FALLOFF = 2147483648; // 0.5 struct noiseFunction { int64[NOISE_TABLE_SIZE + 1] noiseTable; int64 x; int64 y; int64 z; int32 xi; int32 yi; int32 zi; int64 xf; int64 yf; int64 zf; int64 rxf; int64 ryf; int64 n1; int64 n2; int64 n3; } function buildNoiseTable(int32 seed) external pure returns (int64[4096] memory noiseTable){ for (uint16 i = 0; i < NOISE_TABLE_SIZE + 1; i++) { (uint64 s, int64 v) = LCG64.next(uint32(seed)); noiseTable[i] = v; seed = int32(uint32(s)); } } function noise( int64[NOISE_TABLE_SIZE + 1] memory noiseTable, int64 x, int64 y ) external pure returns (int64) { return noise_impl(noiseFunction(noiseTable, x, y, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); } function noise(noiseFunction memory f) external pure returns (int64) { return noise_impl(f); } function noise_impl(noiseFunction memory f) private pure returns (int64) { if (f.x < 0) { f.x = -f.x; } if (f.y < 0) { f.y = -f.y; } if (f.z < 0) { f.z = -f.z; } f.xi = int32(Fix64V1.floor(f.x) >> 32 /* FRACTIONAL_PLACES */); f.yi = int32(Fix64V1.floor(f.y) >> 32 /* FRACTIONAL_PLACES */); f.zi = int32(Fix64V1.floor(f.z) >> 32 /* FRACTIONAL_PLACES */); f.xf = Fix64V1.sub(f.x, (f.xi * Fix64V1.ONE)); f.yf = Fix64V1.sub(f.y, (f.yi * Fix64V1.ONE)); f.zf = Fix64V1.sub(f.z, (f.zi * Fix64V1.ONE)); int64 r = 0; int64 ampl = PERLIN_AMP_FALLOFF; for (uint8 o = 0; o < PERLIN_OCTAVES; o++) { int32 off = f.xi + (f.yi << uint32(PERLIN_YWRAPB)) + (f.zi << uint32(PERLIN_ZWRAPB)); f.rxf = scaled_cosine(f.xf); f.ryf = scaled_cosine(f.yf); f.n1 = f.noiseTable[uint32(off) & NOISE_TABLE_SIZE]; { f.n1 = Fix64V1.add(f.n1, Fix64V1.mul(f.rxf, Fix64V1.sub(int64(f.noiseTable[(uint32(off) + 1) & NOISE_TABLE_SIZE]), f.n1))); f.n2 = f.noiseTable[(uint32(off) + uint32(PERLIN_YWRAP)) & NOISE_TABLE_SIZE]; f.n2 = Fix64V1.add(f.n2, Fix64V1.mul(f.rxf, Fix64V1.sub(int64(f.noiseTable[(uint32(off) + uint32(PERLIN_YWRAP) + 1) & NOISE_TABLE_SIZE]), f.n2))); f.n1 = Fix64V1.add(f.n1, Fix64V1.mul(f.ryf, Fix64V1.sub(f.n2, f.n1))); off += PERLIN_ZWRAP; f.n2 = f.noiseTable[uint32(off) & NOISE_TABLE_SIZE]; f.n2 = Fix64V1.add(f.n2, Fix64V1.mul(f.rxf, Fix64V1.sub(int64(f.noiseTable[((uint32(off) + 1)) & NOISE_TABLE_SIZE]), f.n2))); f.n3 = f.noiseTable[(uint32(off) + uint32(PERLIN_YWRAP)) & NOISE_TABLE_SIZE]; f.n3 = Fix64V1.add(f.n3, Fix64V1.mul(f.rxf, Fix64V1.sub(int64(f.noiseTable[(uint32(off) + uint32(PERLIN_YWRAP) + 1) & NOISE_TABLE_SIZE]), f.n3))); f.n2 = Fix64V1.add(f.n2, Fix64V1.mul(f.ryf, Fix64V1.sub(f.n3, f.n2))); f.n1 = Fix64V1.add(f.n1, Fix64V1.mul(scaled_cosine(f.zf), Fix64V1.sub(f.n2, f.n1))); } r = Fix64V1.add(r, Fix64V1.mul(f.n1, ampl)); ampl = Fix64V1.mul(ampl, PERLIN_AMP_FALLOFF); f.xi <<= 1; f.xf = Fix64V1.mul(f.xf, Fix64V1.TWO); f.yi <<= 1; f.yf = Fix64V1.mul(f.yf, Fix64V1.TWO); f.zi <<= 1; f.zf = Fix64V1.mul(f.zf, Fix64V1.TWO); if (f.xf >= Fix64V1.ONE) { f.xi++; f.xf = f.xf - Fix64V1.ONE; } if (f.yf >= Fix64V1.ONE) { f.yi++; f.yf = f.yf - Fix64V1.ONE; } if (f.zf >= Fix64V1.ONE) { f.zi++; f.zf = f.zf - Fix64V1.ONE; } } return r; } function scaled_cosine(int64 i) private pure returns (int64) { int64 angle = Fix64V1.mul(i, Fix64V1.PI); int64 cosine = Trig256.cos(angle); int64 scaled = Fix64V1.mul( 2147483648, /* 0.5f */ Fix64V1.sub(Fix64V1.ONE, cosine) ); return scaled; } } // File contracts/V1/ParticleV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* A noise-based particle simulator, built for generative art that uses flow fields. Based on techniques in Sighack's "Getting Creative with Perlin Noise Fields": See: https://github.com/sighack/perlin-noise-fields See: https://github.com/sighack/perlin-noise-fields/blob/master/LICENSE THIRD PARTY NOTICES: ==================== MIT License Copyright (c) 2018 Manohar Vanga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library ParticleV1 { uint16 internal constant NOISE_TABLE_SIZE = 4096; struct Particle2D { int64 ox; int64 oy; int64 px; int64 py; int64 x; int64 y; uint32 frames; bool dead; TypesV1.Point2D force; uint8 _lifetime; int64 _forceScale; int64 _noiseScale; } function update( int64[NOISE_TABLE_SIZE] memory noiseTable, Particle2D memory p, uint256 width, uint256 height ) internal pure { p.frames++; if (p.frames >= p._lifetime) { p.dead = true; return; } p.force = forceAt(noiseTable, p, p.x, p.y); if ( p.x >= int256(width) + int256(width) / 2 || p.x < -int256(width) / 2 || p.y >= int256(height) + int256(height) / 2 || p.y < -int256(height) / 2 ) { p.dead = true; return; } p.px = p.x; p.py = p.y; p.x += int64(p.force.x); p.y += int64(p.force.y); } function forceAt( int64[NOISE_TABLE_SIZE] memory noiseTable, Particle2D memory p, int64 x, int64 y ) internal pure returns (TypesV1.Point2D memory force) { int64 nx = Fix64V1.mul(x * Fix64V1.ONE, p._noiseScale); int64 ny = Fix64V1.mul(y * Fix64V1.ONE, p._noiseScale); int64 noise = NoiseV1.noise(noiseTable, nx, ny); int64 theta = Fix64V1.mul(noise, Fix64V1.TWO_PI); return forceFromAngle(p, theta); } function forceFromAngle(Particle2D memory p, int64 theta) internal pure returns (TypesV1.Point2D memory force) { int64 px = Trig256.cos(theta); int64 py = Trig256.sin(theta); int64 pxl = Fix64V1.mul(px, p._forceScale) >> 32 /* FRACTIONAL_PLACES */; int64 pyl = Fix64V1.mul(py, p._forceScale) >> 32 /* FRACTIONAL_PLACES */; force = TypesV1.Point2D(int32(pxl), int32(pyl)); } } // File contracts/V1/ParticleSetV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* A noise-based particle simulator, built for generative art that uses flow fields. Based on techniques in Sighack's "Getting Creative with Perlin Noise Fields": See: https://github.com/sighack/perlin-noise-fields See: https://github.com/sighack/perlin-noise-fields/blob/master/LICENSE THIRD PARTY NOTICES: ==================== MIT License Copyright (c) 2018 Manohar Vanga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ abstract contract ParticleSetV1 { uint16 internal constant NOISE_TABLE_SIZE = 4095; uint16 internal constant PARTICLE_TABLE_SIZE = 5000; struct ParticleSet2D { ParticleV1.Particle2D[5000] particles; bool dead; } function update( int64[NOISE_TABLE_SIZE + 1] memory noiseTable, ParticleSet2D memory set, uint16 particleCount, uint256 width, uint256 height ) internal pure { set.dead = true; for (uint16 i = 0; i < particleCount; i++) { ParticleV1.Particle2D memory p = set.particles[i]; if (p.dead) { continue; } set.dead = false; ParticleV1.update(noiseTable, p, width, height); } } function draw( ParticleSet2D memory set, uint16 particleCount, uint32[16384] memory result, TypesV1.Chunk2D memory chunk ) internal pure { if (set.dead) { return; } for (uint256 i = 0; i < particleCount; i++) { ParticleV1.Particle2D memory p = set.particles[i]; if (p.dead) { continue; } step(p, result, chunk); } } function step( ParticleV1.Particle2D memory p, uint32[16384] memory result, TypesV1.Chunk2D memory chunk ) internal pure virtual; } // File contracts/V1/ParticleSetFactoryV1.sol // License-Identifier: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; /* A noise-based particle simulator, built for generative art that uses flow fields. Based on techniques in Sighack's "Getting Creative with Perlin Noise Fields": See: https://github.com/sighack/perlin-noise-fields See: https://github.com/sighack/perlin-noise-fields/blob/master/LICENSE THIRD PARTY NOTICES: ==================== MIT License Copyright (c) 2018 Manohar Vanga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ library ParticleSetFactoryV1 { uint16 internal constant PARTICLE_TABLE_SIZE = 5000; struct CreateParticleSet2D { int32 seed; uint32 range; uint16 width; uint16 height; uint16 n; int64 forceScale; int64 noiseScale; uint8 lifetime; } function createSet(CreateParticleSet2D memory f, RandomV1.PRNG memory prng) external pure returns (ParticleSetV1.ParticleSet2D memory set, RandomV1.PRNG memory) { ParticleV1.Particle2D[PARTICLE_TABLE_SIZE] memory particles; for (uint16 i = 0; i < f.n; i++) { int256 px = RandomV1.next( prng, -int32(f.range), int16(f.width) + int32(f.range) ); int256 py = RandomV1.next( prng, -int32(f.range), int16(f.height) + int32(f.range) ); ParticleV1.Particle2D memory particle = ParticleV1.Particle2D( int64(px), int64(py), 0, 0, int64(px), int64(py), 0, false, TypesV1.Point2D(0, 0), f.lifetime, f.forceScale, f.noiseScale ); particles[i] = particle; } set.particles = particles; return (set, prng); } } // File contracts/V1/GraphicsV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; library GraphicsV1 { function setPixel( uint32[20480 /* 128 * 160 */] memory result, uint256 width, int256 x, int256 y, uint32 color ) internal pure { uint256 p = uint256(int256(width) * y + x); result[p] = blend(result[p], color); } function blend(uint32 bg, uint32 fg) internal pure returns (uint32) { uint32 r1 = bg >> 16; uint32 g1 = bg >> 8; uint32 b1 = bg; uint32 a2 = fg >> 24; uint32 r2 = fg >> 16; uint32 g2 = fg >> 8; uint32 b2 = fg; uint32 alpha = (a2 & 0xFF) + 1; uint32 inverseAlpha = 257 - alpha; uint32 r = (alpha * (r2 & 0xFF) + inverseAlpha * (r1 & 0xFF)) >> 8; uint32 g = (alpha * (g2 & 0xFF) + inverseAlpha * (g1 & 0xFF)) >> 8; uint32 b = (alpha * (b2 & 0xFF) + inverseAlpha * (b1 & 0xFF)) >> 8; uint32 rgb = 0; rgb |= uint32(0xFF) << 24; rgb |= r << 16; rgb |= g << 8; rgb |= b; return rgb; } function setOpacity(uint32 color, uint32 opacity) internal pure returns (uint32) { require(opacity > 0 && opacity <= 255, "opacity must be between 0 and 255"); uint32 r = color >> 16 & 0xFF; uint32 g = color >> 8 & 0xFF; uint32 b = color & 0xFF; uint32 rgb = 0; rgb |= opacity << 24; rgb |= r << 16; rgb |= g << 8; rgb |= b; return uint32(rgb); } } // File contracts/V1/ProcessingV1.sol // License: UNLICENSED /* Copyright (c) 2021 Kohi Art Community, Inc. All rights reserved. */ pragma solidity ^0.8.0; library ProcessingV1 { uint32 internal constant BG_COLOR = 0xFFD3D3D3; uint32 internal constant FILL_COLOR = 0xFFFFFFFF; uint32 internal constant STROKE_COLOR = 0x00000000; uint32 internal constant MAX_POLYGON_NODES = 400; /** * @notice Sets the color used for the background of the drawing surface. * @notice https://processing.org/reference/background_.html */ function background( uint32[20480] /* 128 * 160 */ memory result, uint32 color, TypesV1.Chunk2D memory chunk ) internal pure { for (uint256 x = 0; x < chunk.chunkWidth; x++) { for (uint256 y = 0; y < chunk.chunkHeight; y++) { GraphicsV1.setPixel( result, chunk.chunkWidth, int256(x), int256(y), color ); } } } /** * @notice A triangle is a plane created by connecting three points. The first two arguments specify the first point, the middle two arguments specify the second point, and the last two arguments specify the third point. * @notice https://processing.org/reference/triangle_.html * @dev Renders a filled triangle, using the Barycentric rasterization algorithm. */ function triangle( uint32[20480] /* 128 * 160 */ memory result, GeometryV1.Triangle2D memory f ) internal pure { TypesV1.Point2D memory p; uint256 minX = f.chunk.startX; uint256 maxX = (f.chunk.startX + f.chunk.chunkWidth) - 1; uint256 minY = f.chunk.startY; uint256 maxY = (f.chunk.startY + f.chunk.chunkHeight) - 1; while (GeometryV1.edge(f.v0, f.v1, f.v2) < 0) { TypesV1.Point2D memory temp = f.v1; f.v1 = f.v2; f.v2 = temp; } for (p.x = int256(minX); p.x <= int256(maxX); p.x++) { for (p.y = int256(minY); p.y <= int256(maxY); p.y++) { int256 w0 = GeometryV1.edge(f.v1, f.v2, p); int256 w1 = GeometryV1.edge(f.v2, f.v0, p); int256 w2 = GeometryV1.edge(f.v0, f.v1, p); if (w0 >= 0 && w1 >= 0 && w2 >= 0) { GraphicsV1.setPixel( result, f.chunk.chunkWidth, int256(p.x - int32(f.chunk.startX)), int256(p.y - int32(f.chunk.startY)), f.fillColor ); } } } if (f.strokeColor == f.fillColor) return; { line(result, GeometryV1.Line2D(f.v0, f.v1, f.strokeColor, f.chunk)); line(result, GeometryV1.Line2D(f.v1, f.v2, f.strokeColor, f.chunk)); line(result, GeometryV1.Line2D(f.v2, f.v0, f.strokeColor, f.chunk)); } } /** * @notice Draws a line (a direct path between two points) to the screen. * @notice https://processing.org/reference/line_.html * @dev Renders a line between two points, using Bresenham's rasterization algorithm. */ function line(uint32[20480] memory result, GeometryV1.Line2D memory f) internal pure { int256 x0 = f.v0.x; int256 x1 = f.v1.x; int256 y0 = f.v0.y; int256 y1 = f.v1.y; int256 dx = MathV1.abs(x1 - x0); int256 dy = MathV1.abs(y1 - y0); int256 err = (dx > dy ? dx : -dy) / 2; int256 e2; for (;;) { if ( x0 <= int32(f.chunk.startX) + int16(f.chunk.chunkWidth) - 1 && x0 >= int32(f.chunk.startX) && y0 <= int32(f.chunk.startY) + int16(f.chunk.chunkHeight) - 1 && y0 >= int32(f.chunk.startY) ) { GraphicsV1.setPixel( result, f.chunk.chunkWidth, x0 - int32(f.chunk.startX), y0 - int32(f.chunk.startY), f.color ); } if (x0 == x1 && y0 == y1) break; e2 = err; if (e2 > -dx) { err -= dy; x0 += x0 < x1 ? int8(1) : -1; } if (e2 < dy) { err += dx; y0 += y0 < y1 ? int8(1) : -1; } } } /** * @notice Draw a polygon shape to the screen. * @notice https://processing.org/reference/beginShape_.html * @notice https://processing.org/reference/vertex_.html * @notice https://processing.org/reference/endShape_.html * @dev Renders a filled polygon, using Finley's algorithm. */ function polygon(uint32[20480] memory result, GeometryV1.Polygon2D memory f) internal pure { uint32 polyCorners = f.vertexCount; int32[MAX_POLYGON_NODES] memory nodeX; for ( uint32 pixelY = f.chunk.startY; pixelY < (f.chunk.startY + f.chunk.chunkHeight); pixelY++ ) { uint32 i; uint256 nodes = 0; uint32 j = polyCorners - 1; for (i = 0; i < polyCorners; i++) { TypesV1.Point2D memory a = TypesV1.Point2D( f.vertices[i].x, f.vertices[i].y ); TypesV1.Point2D memory b = TypesV1.Point2D( f.vertices[j].x, f.vertices[j].y ); if ( (a.y < int32(pixelY) && b.y >= int32(pixelY)) || (b.y < int32(pixelY) && a.y >= int32(pixelY)) ) { int32 t = int32(a.x) + ((int32(pixelY) - int32(a.y)) / (int32(b.y) - int32(a.y))) * (int32(b.x) - int32(a.x)); nodeX[nodes++] = t; } j = i; } if (nodes == 0) { continue; // nothing to draw } i = 0; while (i < nodes - 1) { if (nodeX[i] > nodeX[i + 1]) { (nodeX[i], nodeX[i + 1]) = (nodeX[i + 1], nodeX[i]); if (i != 0) i--; } else { i++; } } for (i = 0; i < nodes; i += 2) { if ( nodeX[i] >= int32(f.chunk.startX) + int16(f.chunk.chunkHeight) ) break; if (nodeX[i + 1] <= int32(f.chunk.startX)) continue; if (nodeX[i] < int32(f.chunk.startX)) nodeX[i] = int32(f.chunk.startX); if ( nodeX[i + 1] > int32(f.chunk.startX) + int16(f.chunk.chunkHeight) ) nodeX[i + 1] = int32( int32(f.chunk.startX) + int16(f.chunk.chunkHeight) ); for (int32 pixelX = nodeX[i]; pixelX < nodeX[i + 1]; pixelX++) { if ( pixelX >= int32(f.chunk.startX) + int16(f.chunk.chunkHeight) ) continue; int32 px = int32(pixelX) - int32(f.chunk.startX); int32 py = int32(pixelY) - int32(f.chunk.startY); if ( px >= 0 && px < int16(f.chunk.chunkWidth) && py >= 0 && py < int16(f.chunk.chunkHeight) ) { GraphicsV1.setPixel( result, f.chunk.chunkWidth, px, py, f.fillColor ); } } } } if (f.strokeColor == f.fillColor) return; { uint256 j = f.vertices.length - 1; for (uint256 i = 0; i < f.vertices.length; i++) { TypesV1.Point2D memory a = f.vertices[i]; TypesV1.Point2D memory b = f.vertices[j]; line(result, GeometryV1.Line2D(a, b, f.strokeColor, f.chunk)); j = i; } line( result, GeometryV1.Line2D( f.vertices[f.vertices.length - 1], f.vertices[0], f.strokeColor, f.chunk ) ); } } /** * @notice Renders a number from a random series of numbers having a mean of 0 and standard deviation of 1.git * @notice https://processing.org/reference/randomGaussian_.html */ function randomGaussian(RandomV1.PRNG memory prng) internal pure returns (int64) { return RandomV1.nextGaussian(prng); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"ownership","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccountExceedsMaxMints","type":"error"},{"inputs":[],"name":"AddressMustBeSet","type":"error"},{"inputs":[],"name":"AdminOnly","type":"error"},{"inputs":[],"name":"CannotPurchaseFromContract","type":"error"},{"inputs":[],"name":"CollectionInactive","type":"error"},{"inputs":[],"name":"CollectionLocked","type":"error"},{"inputs":[],"name":"CollectionPaused","type":"error"},{"inputs":[],"name":"CollectionSoldOut","type":"error"},{"inputs":[],"name":"InsufficientFundsForPurchase","type":"error"},{"inputs":[],"name":"InvalidFundsDistribution","type":"error"},{"inputs":[],"name":"InvalidOwnerRoyalty","type":"error"},{"inputs":[],"name":"InvalidRenderer","type":"error"},{"inputs":[],"name":"InvalidSeed","type":"error"},{"inputs":[],"name":"NoCreatorAddress","type":"error"},{"inputs":[],"name":"NoOwnerAddress","type":"error"},{"inputs":[],"name":"NoRemainingPresaleMints","type":"error"},{"inputs":[],"name":"NotEligibleForPresale","type":"error"},{"inputs":[],"name":"PresaleNotOpen","type":"error"},{"inputs":[],"name":"PublicSaleNotOpen","type":"error"},{"inputs":[],"name":"RenderDisallowed","type":"error"},{"inputs":[],"name":"SeedAlreadySet","type":"error"},{"inputs":[],"name":"SeedNotSet","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"priceInWei","type":"uint256"},{"indexed":false,"internalType":"int32","name":"seed","type":"int32"}],"name":"CollectionMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"beginRender","outputs":[{"components":[{"internalType":"int16","name":"index","type":"int16"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint32[20480]","name":"buffer","type":"uint32[20480]"},{"components":[{"internalType":"int32[56]","name":"_seedArray","type":"int32[56]"},{"internalType":"int32","name":"_inext","type":"int32"},{"internalType":"int32","name":"_inextp","type":"int32"}],"internalType":"struct RandomV1.PRNG","name":"prng","type":"tuple"}],"internalType":"struct IRenderer.RenderArgs","name":"results","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAttributes","outputs":[{"internalType":"string","name":"attributes","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCollection","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"baseTokenUri","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"license","type":"string"},{"internalType":"uint256","name":"priceInWei","type":"uint256"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"mintedMax","type":"uint256"},{"internalType":"uint256","name":"mintedMaxPerOwner","type":"uint256"},{"internalType":"uint256","name":"lockAt","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"string","name":"creatorName","type":"string"},{"internalType":"address payable","name":"creatorAddress","type":"address"},{"internalType":"address","name":"_renderer","type":"address"}],"internalType":"struct KohiCityLights.Collection","name":"collection","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwnership","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPresale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSeed","outputs":[{"internalType":"int32","name":"","type":"int32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownsToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"purchaseFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"purchasePresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"purchasePresaleFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"releaseControl","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"int16","name":"index","type":"int16"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint32[20480]","name":"buffer","type":"uint32[20480]"},{"components":[{"internalType":"int32[56]","name":"_seedArray","type":"int32[56]"},{"internalType":"int32","name":"_inext","type":"int32"},{"internalType":"int32","name":"_inextp","type":"int32"}],"internalType":"struct RandomV1.PRNG","name":"prng","type":"tuple"}],"internalType":"struct IRenderer.RenderArgs","name":"args","type":"tuple"}],"name":"render","outputs":[{"components":[{"internalType":"int16","name":"index","type":"int16"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint32[20480]","name":"buffer","type":"uint32[20480]"},{"components":[{"internalType":"int32[56]","name":"_seedArray","type":"int32[56]"},{"internalType":"int32","name":"_inext","type":"int32"},{"internalType":"int32","name":"_inextp","type":"int32"}],"internalType":"struct RandomV1.PRNG","name":"prng","type":"tuple"}],"internalType":"struct IRenderer.RenderArgs","name":"results","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwnership","type":"address"}],"name":"setOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInWei","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"priceInWei","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"renderer","type":"address"}],"name":"setRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int32","name":"seed","type":"int32"}],"name":"setSeed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"updateAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"baseTokenUri","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"license","type":"string"},{"internalType":"uint256","name":"priceInWei","type":"uint256"},{"internalType":"int32","name":"seed","type":"int32"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"uint256","name":"mintedMax","type":"uint256"},{"internalType":"uint256","name":"mintedMaxPerOwner","type":"uint256"},{"internalType":"uint256","name":"lockAt","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"string","name":"creatorName","type":"string"},{"internalType":"address payable","name":"creatorAddress","type":"address"},{"internalType":"address","name":"_renderer","type":"address"}],"internalType":"struct KohiCityLights.Collection","name":"collection","type":"tuple"}],"name":"updateCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"updateContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"royalty","type":"uint8"},{"internalType":"address payable","name":"newAddress","type":"address"}],"name":"updateOwnerData","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620056ba380380620056ba833981016040819052620000349162000285565b604080518082018252600a815269436974794c696768747360b01b60208083019182528351808501909452600584526411515410d360da1b9084015281519192916200008391600291620001df565b50805162000099906003906020840190620001df565b5050600c805460ff19169055506001600d556000600f55601380546001600160a01b031916331790556040805180820190915260198082527f68747470733a2f2f6b6f68692e6172742f6d657461646174610000000000000060209092019182526200010891601891620001df565b50601480546001600160a01b0319166001600160a01b038316179055670494654067e100006015556200013a62000141565b50620002f4565b600c5460ff16156200018c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001c23390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620001ed90620002b7565b90600052602060002090601f0160209004810192826200021157600085556200025c565b82601f106200022c57805160ff19168380011785556200025c565b828001600101855582156200025c579182015b828111156200025c5782518255916020019190600101906200023f565b506200026a9291506200026e565b5090565b5b808211156200026a57600081556001016200026f565b6000602082840312156200029857600080fd5b81516001600160a01b0381168114620002b057600080fd5b9392505050565b600181811c90821680620002cc57607f821691505b60208210811415620002ee57634e487b7160e01b600052602260045260246000fd5b50919050565b6153b680620003046000396000f3fe60806040526004361061024f5760003560e01c806301b117921461025457806301ffc9a71461026b57806306fdde03146102a0578063081812fc146102c2578063095ea7b3146102ef57806318160ddd1461030f57806323b872dd1461032e578063248a9ca31461034e5780632f2ff15d1461036e5780632f745c591461038e57806334393743146103ae5780633549345e146103c357806336566f06146103e357806336568abe146103f857806339e7357c146104185780634251921e1461044057806342842e0e1461046257806342966c68146104825780634378a6e3146104a257806347c8ff5e146104c25780634f6ccce7146104e257806356d3163d146105025780635c975abb146105225780636352211e1461053a57806370a082311461055a5780638639a4871461057a5780639010d07c1461058d57806390a2641c146105ad57806391b7f5ed146105da57806391d14854146105fa57806395d89b411461061a5780639ab0cd881461062f5780639f3b8cd71461064f578063a217fddf1461066f578063a22cb46514610684578063a7016023146106a4578063aacd7321146106c4578063aee99e52146106d9578063b5d7c159146106f6578063b88d4fde1461070b578063c1c8e4b31461072b578063c7b3fe5e1461073e578063c87b56dd1461075e578063ca15c8731461077e578063ceed2fcc1461079e578063d547741f146107be578063e2f273bd146107de578063e35a063f146107fe578063e8a3d48514610811578063e985e9c514610826578063efef39a114610846578063f0bed7df14610859575b600080fd5b34801561026057600080fd5b50610269610879565b005b34801561027757600080fd5b5061028b6102863660046146c2565b6108d4565b60405190151581526020015b60405180910390f35b3480156102ac57600080fd5b506102b56108e5565b6040516102979190614cb9565b3480156102ce57600080fd5b506102e26102dd366004614662565b610977565b6040516102979190614c68565b3480156102fb57600080fd5b5061026961030a366004614619565b610a04565b34801561031b57600080fd5b50600a545b604051908152602001610297565b34801561033a57600080fd5b5061026961034936600461452b565b610b15565b34801561035a57600080fd5b50610320610369366004614662565b610b47565b34801561037a57600080fd5b5061026961038936600461467b565b610b5c565b34801561039a57600080fd5b506103206103a9366004614619565b610b7e565b3480156103ba57600080fd5b50610269610c14565b3480156103cf57600080fd5b506102696103de366004614662565b610c76565b3480156103ef57600080fd5b50610269610caf565b34801561040457600080fd5b5061026961041336600461467b565b610cfe565b34801561042457600080fd5b5061042d610d20565b60405160039190910b8152602001610297565b34801561044c57600080fd5b50610455610db4565b6040516102979190614da6565b34801561046e57600080fd5b5061026961047d36600461452b565b6111d4565b34801561048e57600080fd5b5061026961049d366004614662565b6111ef565b3480156104ae57600080fd5b506102b56104bd366004614662565b611269565b3480156104ce57600080fd5b506102696104dd366004614719565b61135b565b3480156104ee57600080fd5b506103206104fd366004614662565b6113a6565b34801561050e57600080fd5b5061026961051d3660046144d5565b611439565b34801561052e57600080fd5b50600c5460ff1661028b565b34801561054657600080fd5b506102e2610555366004614662565b6114a5565b34801561056657600080fd5b506103206105753660046144d5565b61151c565b610269610588366004614619565b6115a3565b34801561059957600080fd5b506102e26105a83660046146a0565b611758565b3480156105b957600080fd5b506105cd6105c8366004614a3b565b611777565b6040516102979190614eef565b3480156105e657600080fd5b506102696105f5366004614662565b611789565b34801561060657600080fd5b5061028b61061536600461467b565b6117d8565b34801561062657600080fd5b506102b5611801565b34801561063b57600080fd5b5061028b61064a366004614619565b611810565b34801561065b57600080fd5b5061026961066a3660046147c3565b61185b565b34801561067b57600080fd5b50610320600081565b34801561069057600080fd5b5061026961069f3660046145eb565b611a3f565b3480156106b057600080fd5b506102696106bf3660046144d5565b611b00565b3480156106d057600080fd5b506102e2611b56565b3480156106e557600080fd5b50601254610100900460ff1661028b565b34801561070257600080fd5b50610269611b9d565b34801561071757600080fd5b5061026961072636600461456c565b611c33565b610269610739366004614662565b611c65565b34801561074a57600080fd5b506102696107593660046146fc565b611c6f565b34801561076a57600080fd5b506102b5610779366004614662565b611d3d565b34801561078a57600080fd5b50610320610799366004614662565b61218d565b3480156107aa57600080fd5b506102696107b9366004614b28565b6121a4565b3480156107ca57600080fd5b506102696107d936600461467b565b612279565b3480156107ea57600080fd5b506102696107f93660046144d5565b612283565b61026961080c366004614619565b612300565b34801561081d57600080fd5b506102b561269b565b34801561083257600080fd5b5061028b6108413660046144f2565b6126aa565b610269610854366004614662565b6126d8565b34801561086557600080fd5b506105cd610874366004614662565b6126e2565b6013546001600160a01b0316336001600160a01b0316146108ad57604051633057182d60e21b815260040160405180910390fd5b60125460ff16156108c4576012805460ff19169055565b6012805460ff191660011790555b565b60006108df82612743565b92915050565b6060600280546108f490615150565b80601f016020809104026020016040519081016040528092919081815260200182805461092090615150565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b5050505050905090565b600061098282612768565b6109e85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a0f826114a5565b9050806001600160a01b0316836001600160a01b03161415610a7d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109df565b336001600160a01b0382161480610a995750610a9981336126aa565b610b065760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016109df565b610b108383612785565b505050565b610b20335b826127f3565b610b3c5760405162461bcd60e51b81526004016109df90614d1e565b610b108383836128b5565b60009081526020819052604090206001015490565b610b668282612a4e565b6000828152600160205260409020610b109082612a6b565b6000610b898361151c565b8210610beb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109df565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6013546001600160a01b0316336001600160a01b031614610c4857604051633057182d60e21b815260040160405180910390fd5b601254610100900460ff1615610c65576012805461ff0019169055565b6012805461ff001916610100179055565b6013546001600160a01b0316336001600160a01b031614610caa57604051633057182d60e21b815260040160405180910390fd5b601555565b6013546001600160a01b0316336001600160a01b031614610ce357604051633057182d60e21b815260040160405180910390fd5b600c5460ff1615610cf6576108d2612a80565b6108d2612b0d565b610d088282612b88565b6000828152600160205260409020610b109082612c02565b6013546000906001600160a01b0316336001600160a01b031614610d5757604051633057182d60e21b815260040160405180910390fd5b60008052600e60205260008051602061536183398151915254600390810b900b610d9457604051635b4f9e2b60e01b815260040160405180910390fd5b5060008052600e6020526000805160206153618339815191525460030b90565b610e46604051806101e001604052806060815260200160608152602001606081526020016060815260200160008152602001600060030b8152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016060815260200160006001600160a01b0316815260200160006001600160a01b031681525090565b60008052600e602052604080516101e08101909152600080516020615341833981519152805482908290610e7990615150565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea590615150565b8015610ef25780601f10610ec757610100808354040283529160200191610ef2565b820191906000526020600020905b815481529060010190602001808311610ed557829003601f168201915b50505050508152602001600182018054610f0b90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3790615150565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b50505050508152602001600282018054610f9d90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc990615150565b80156110165780601f10610feb57610100808354040283529160200191611016565b820191906000526020600020905b815481529060010190602001808311610ff957829003601f168201915b5050505050815260200160038201805461102f90615150565b80601f016020809104026020016040519081016040528092919081815260200182805461105b90615150565b80156110a85780601f1061107d576101008083540402835291602001916110a8565b820191906000526020600020905b81548152906001019060200180831161108b57829003601f168201915b5050509183525050600482015460208201526005820154600390810b810b900b60408201526006820154606082015260078201546080820152600882015460a0820152600982015460c0820152600a82015460ff808216151560e08401526101009182900416151590820152600b820180546101209092019161112a90615150565b80601f016020809104026020016040519081016040528092919081815260200182805461115690615150565b80156111a35780601f10611178576101008083540402835291602001916111a3565b820191906000526020600020905b81548152906001019060200180831161118657829003601f168201915b5050509183525050600c8201546001600160a01b039081166020830152600d90920154909116604090910152919050565b610b1083838360405180602001604052806000815250611c33565b6111f833610b1a565b61125d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016109df565b61126681612c17565b50565b6013546060906001600160a01b0316336001600160a01b03161415801561129757506112953383611810565b155b156112b557604051630c675c2960e01b815260040160405180910390fd5b6000805160206152c1833981519152546000838152601160205260409081902054905160016223c18d60e21b03198152600391820b90910b60048201526001600160a01b039091169063ff70f9cc9060240160006040518083038186803b15801561131f57600080fd5b505afa158015611333573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108df919081019061474d565b6013546001600160a01b0316336001600160a01b03161461138f57604051633057182d60e21b815260040160405180910390fd5b80516113a29060189060208401906141d2565b5050565b60006113b1600a5490565b82106114145760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109df565b600a8281548110611427576114276151fc565b90600052602060002001549050919050565b6013546001600160a01b0316336001600160a01b03161461146d57604051633057182d60e21b815260040160405180910390fd5b60008052600e6020526000805160206152c183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600460205260408120546001600160a01b0316806108df5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109df565b60006001600160a01b0382166115875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109df565b506001600160a01b031660009081526005602052604090205490565b6002600d5414156115c65760405162461bcd60e51b81526004016109df90614d6f565b6002600d55601254610100900460ff16156115f4576040516363a2de0f60e01b815260040160405180910390fd5b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f88245433908015611687576001600160a01b03821660009081526016602052604081205461164a908361506c565b6001600160a01b038416600090815260106020526040902054909150811161168557604051637184542760e01b815260040160405180910390fd5b505b6000808052600e60205260008051602061530183398151915254600080516020615321833981519152546116fb9183916116c19190612cac565b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8823546116f691906150b7565b612cc2565b90506117078482612cac565b93508361172757604051635fd48f9160e01b815260040160405180910390fd5b61174c3360008052600e6020526000805160206152a183398151915254879087612cd2565b50506001600d55505050565b60008281526001602052604081206117709083613372565b9392505050565b61177f614256565b611770838361337e565b6013546001600160a01b0316336001600160a01b0316146117bd57604051633057182d60e21b815260040160405180910390fd5b60008052600e6020526000805160206152a183398151915255565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546108f490615150565b6000805b61181d8461151c565b8110156118515761182e8482610b7e565b83141561183f5760019150506108df565b806118498161518b565b915050611814565b5060009392505050565b6013546001600160a01b0316336001600160a01b03161461188f57604051633057182d60e21b815260040160405180910390fd5b6101c08101516001600160a01b031615806118b757506101c08101516001600160a01b03163b155b156118d557604051630161139960e31b815260040160405180910390fd5b60008052600e60209081528151805183926000805160206153418339815191529261190692849291909101906141d2565b50602082810151805161191f92600185019201906141d2565b506040820151805161193b9160028401916020909101906141d2565b50606082015180516119579160038401916020909101906141d2565b506080820151600482015560a082015160058201805463ffffffff191663ffffffff60039390930b9290921691909117905560c0820151600682015560e082015160078201556101008083015160088301556101208301516009830155610140830151600a8301805461016086015161ffff1990911692151561ff0019169290921791151590920217905561018082015180516119fe91600b8401916020909101906141d2565b506101a0820151600c820180546001600160a01b03199081166001600160a01b03938416179091556101c090930151600d9092018054909316911617905550565b6001600160a01b038216331415611a945760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016109df565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6013546001600160a01b0316336001600160a01b031614611b3457604051633057182d60e21b815260040160405180910390fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6013546000906001600160a01b0316336001600160a01b031614611b8d57604051633057182d60e21b815260040160405180910390fd5b506014546001600160a01b031690565b6013546001600160a01b0316336001600160a01b031614611bd157604051633057182d60e21b815260040160405180910390fd5b6014546001600160a01b031663e2f273bd336040518263ffffffff1660e01b8152600401611bff9190614c68565b600060405180830381600087803b158015611c1957600080fd5b505af1158015611c2d573d6000803e3d6000fd5b50505050565b611c3d33836127f3565b611c595760405162461bcd60e51b81526004016109df90614d1e565b611c2d848484846134a3565b6112663382612300565b6013546001600160a01b0316336001600160a01b031614611ca357604051633057182d60e21b815260040160405180910390fd5b8060030b60001415611cc85760405163431d3a4360e11b815260040160405180910390fd5b60008052600e60205260008051602061536183398151915254600390810b900b15611d0657604051635f89b5d960e11b815260040160405180910390fd5b60008052600e602052600080516020615361833981519152805460039290920b63ffffffff1663ffffffff19909216919091179055565b6060611d4882612768565b611dac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109df565b6000808052600e602052604080516101e08101909152600080516020615341833981519152805482908290611de090615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0c90615150565b8015611e595780601f10611e2e57610100808354040283529160200191611e59565b820191906000526020600020905b815481529060010190602001808311611e3c57829003601f168201915b50505050508152602001600182018054611e7290615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9e90615150565b8015611eeb5780601f10611ec057610100808354040283529160200191611eeb565b820191906000526020600020905b815481529060010190602001808311611ece57829003601f168201915b50505050508152602001600282018054611f0490615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3090615150565b8015611f7d5780601f10611f5257610100808354040283529160200191611f7d565b820191906000526020600020905b815481529060010190602001808311611f6057829003601f168201915b50505050508152602001600382018054611f9690615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc290615150565b801561200f5780601f10611fe45761010080835404028352916020019161200f565b820191906000526020600020905b815481529060010190602001808311611ff257829003601f168201915b5050509183525050600482015460208201526005820154600390810b810b900b60408201526006820154606082015260078201546080820152600882015460a0820152600982015460c0820152600a82015460ff808216151560e08401526101009182900416151590820152600b820180546101209092019161209190615150565b80601f01602080910402602001604051908101604052809291908181526020018280546120bd90615150565b801561210a5780601f106120df5761010080835404028352916020019161210a565b820191906000526020600020905b8154815290600101906020018083116120ed57829003601f168201915b5050509183525050600c8201546001600160a01b03908116602080840191909152600d909301541660409091015281015180519192509061215a5760405180602001604052806000815250612185565b80612164856134d6565b604051602001612175929190614bca565b6040516020818303038152906040525b949350505050565b60008181526001602052604081206108df906135d3565b6013546001600160a01b0316336001600160a01b0316146121d857604051633057182d60e21b815260040160405180910390fd5b6001600160a01b0381166121ff5760405163849369ed60e01b815260040160405180910390fd5b60ff82161580612212575060648260ff16115b15612230576040516353ca3a3360e11b815260040160405180910390fd5b601280546001600160a01b039092166301000000026301000000600160b81b031960ff90941662010000029390931662010000600160b81b031990921691909117919091179055565b610d0882826135dd565b6013546001600160a01b0316336001600160a01b0316146122b757604051633057182d60e21b815260040160405180910390fd5b6001600160a01b0381166122de5760405163849369ed60e01b815260040160405180910390fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6002600d5414156123235760405162461bcd60e51b81526004016109df90614d6f565b6002600d55601254610100900460ff1661235057604051637963e2b560e01b815260040160405180910390fd5b6014546040516370a0823160e01b815233916000916001600160a01b03909116906370a0823190612385908590600401614c68565b60206040518083038186803b15801561239d57600080fd5b505afa1580156123b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d59190614a22565b60145460405162def01360e61b81529192506000916001600160a01b03909116906337bc04c09061240a908690600401614c68565b60206040518083038186803b15801561242257600080fd5b505afa158015612436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245a9190614645565b90508015801561246a5750600182105b1561248857604051637ca4c08960e11b815260040160405180910390fd5b6000805b8381101561257857601454604051632f745c5960e01b81526001600160a01b038781166004830152602482018490526000921690632f745c599060440160206040518083038186803b1580156124e157600080fd5b505afa1580156124f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125199190614a22565b60008181526017602052604090205490915060ff16612565578261253c8161518b565b6000838152601760205260409020805460ff191660011790559350508683106125655750612578565b50806125708161518b565b91505061248c565b50818015612584575080155b80156125a657506001600160a01b038416600090815260166020526040902054155b156125af575060015b6125b98582612cac565b9450846125d9576040516303b6c17760e01b815260040160405180910390fd5b6000808052600e60205260008051602061530183398151915254600080516020615321833981519152546126139183916116c19190612cac565b905061261f8682612cac565b95508561263f57604051635fd48f9160e01b815260040160405180910390fd5b6001600160a01b03851660009081526016602052604090205461266390879061506c565b6001600160a01b03861660009081526016602052604090205560155461268d908690899089612cd2565b50506001600d555050505050565b6060601880546108f490615150565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61126633826115a3565b6126ea614256565b6126f2614291565b6126fa6142b2565b6040805160a081018252600080825260208083018290528782526011905282902054600390810b900b91810191909152606081018390526080810182905261218590859061337e565b60006001600160e01b0319821663780e9d6360e01b14806108df57506108df826135fa565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906127ba826114a5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127fe82612768565b61285f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109df565b600061286a836114a5565b9050806001600160a01b0316846001600160a01b031614806128a55750836001600160a01b031661289a84610977565b6001600160a01b0316145b80612185575061218581856126aa565b826001600160a01b03166128c8826114a5565b6001600160a01b0316146129305760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109df565b6001600160a01b0382166129925760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109df565b61299d83838361363a565b6129a8600082612785565b6001600160a01b03831660009081526005602052604081208054600192906129d19084906150f6565b90915550506001600160a01b03821660009081526005602052604081208054600192906129ff90849061506c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206152e183398151915291a4505050565b612a5782610b47565b612a618133613691565b610b1083836136f5565b6000611770836001600160a01b038416613779565b600c5460ff16612ac95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109df565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051612b039190614c68565b60405180910390a1565b600c5460ff1615612b535760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109df565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612af63390565b6001600160a01b0381163314612bf85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109df565b6113a282826137c8565b6000611770836001600160a01b03841661382d565b6000612c22826114a5565b9050612c308160008461363a565b612c3b600083612785565b6001600160a01b0381166000908152600560205260408120805460019290612c649084906150f6565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206152e1833981519152908390a45050565b6000818312612cbb5781611770565b5090919050565b600081831215612cbb5781611770565b601254630100000090046001600160a01b0316612d025760405163ae59eff160e01b815260040160405180910390fd5b6001600160a01b0384163b15612d2b57604051634eaab2df60e11b815260040160405180910390fd5b60125460ff168015612d4b57506013546001600160a01b03858116911614155b15612d6957604051631bd131c360e01b815260040160405180910390fd5b6000612d758284615098565b905080341015612d985760405163832e53a960e01b815260040160405180910390fd5b6000808052600e602052604080516101e08101909152600080516020615341833981519152805482908290612dcc90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612df890615150565b8015612e455780601f10612e1a57610100808354040283529160200191612e45565b820191906000526020600020905b815481529060010190602001808311612e2857829003601f168201915b50505050508152602001600182018054612e5e90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612e8a90615150565b8015612ed75780601f10612eac57610100808354040283529160200191612ed7565b820191906000526020600020905b815481529060010190602001808311612eba57829003601f168201915b50505050508152602001600282018054612ef090615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1c90615150565b8015612f695780601f10612f3e57610100808354040283529160200191612f69565b820191906000526020600020905b815481529060010190602001808311612f4c57829003601f168201915b50505050508152602001600382018054612f8290615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612fae90615150565b8015612ffb5780601f10612fd057610100808354040283529160200191612ffb565b820191906000526020600020905b815481529060010190602001808311612fde57829003601f168201915b5050509183525050600482015460208201526005820154600390810b810b900b60408201526006820154606082015260078201546080820152600882015460a0820152600982015460c0820152600a82015460ff808216151560e08401526101009182900416151590820152600b820180546101209092019161307d90615150565b80601f01602080910402602001604051908101604052809291908181526020018280546130a990615150565b80156130f65780601f106130cb576101008083540402835291602001916130f6565b820191906000526020600020905b8154815290600101906020018083116130d957829003601f168201915b5050509183525050600c8201546001600160a01b039081166020830152600d9092015482166040909101526101a08201519192501661314857604051631d3ace7160e21b815260040160405180910390fd5b80610160015115801561316957506013546001600160a01b03878116911614155b1561318757604051634f7f3e2960e11b815260040160405180910390fd5b60a081015160030b6131ac57604051635b4f9e2b60e01b815260040160405180910390fd5b60005b8381101561335a576000600f5460016131c8919061506c565b60a084015160405160039190910b60e01b60208201524360248201526001600160601b031960608b811b821660448401528a901b166058820152606c8101829052909150600090608c0160408051808303601f190181529181528151602092830120600f859055600085815260119093529120805463ffffffff191663ffffffff600384900b1617905560c085015190915061326590600161506c565b600080516020615321833981519152556001600160a01b03891660009081526010602052604090205461329990600161506c565b6001600160a01b038a166000908152601060205260409020556132bc8883613927565b876001600160a01b0316827f8336b91ac6f4cdb4d82522a7b52346c16dac9efd729e69c2303b8ad7625311c18660c0015187608001518560405161331693929190928352602083019190915260030b604082015260600190565b60405180910390a36101208401511561334557836101200151600f5410613345576012805460ff191660011790555b505080806133529061518b565b9150506131af565b5061336a82826101a00151613941565b505050505050565b60006117708383613a8d565b613386614256565b6013546001600160a01b0316336001600160a01b0316141580156133b157506133af3384611810565b155b156133cf57604051630c675c2960e01b815260040160405180910390fd5b600083815260116020526040908190205490830151600391820b820b910b1461340b5760405163431d3a4360e11b815260040160405180910390fd5b60008052600e6020526000805160206152c18339815191525460405163f728f07d60e01b81526001600160a01b039091169063f728f07d90613451908590600401614eef565b620a07a06040518083038186803b15801561346b57600080fd5b505afa15801561347f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117709190614957565b6134ae8484846128b5565b6134ba84848484613ab7565b611c2d5760405162461bcd60e51b81526004016109df90614ccc565b6060816134fa5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613524578061350e8161518b565b915061351d9050600a83615084565b91506134fe565b6000816001600160401b0381111561353e5761353e615212565b6040519080825280601f01601f191660200182016040528015613568576020820181803683370190505b5090505b84156121855761357d6001836150f6565b915061358a600a866151a6565b61359590603061506c565b60f81b8183815181106135aa576135aa6151fc565b60200101906001600160f81b031916908160001a9053506135cc600a86615084565b945061356c565b60006108df825490565b6135e682610b47565b6135f08133613691565b610b1083836137c8565b60006001600160e01b031982166380ac58cd60e01b148061362b57506001600160e01b03198216635b5e139f60e01b145b806108df57506108df82613bc4565b613645838383613be9565b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f88265460ff1615610b10576040516338512cbb60e21b815260040160405180910390fd5b61369b82826117d8565b6113a2576136b3816001600160a01b03166014613c5b565b6136be836020613c5b565b6040516020016136cf929190614bf9565b60408051601f198184030181529082905262461bcd60e51b82526109df91600401614cb9565b6136ff82826117d8565b6113a2576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556137353390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546137c0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556108df565b5060006108df565b6137d282826117d8565b156113a2576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156139165760006138516001836150f6565b8554909150600090613865906001906150f6565b90508181146138ca576000866000018281548110613885576138856151fc565b90600052602060002001549050808760000184815481106138a8576138a86151fc565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806138db576138db6151e6565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506108df565b60009150506108df565b5092915050565b6113a2828260405180602001604052806000815250613df6565b34156113a257600061395383346150f6565b9050801561398a57604051339082156108fc029083906000818181858888f19350505050158015613988573d6000803e3d6000fd5b505b6012546000906064906139a790869062010000900460ff16615098565b6139b19190615084565b905060008115613a005760125460405163010000009091046001600160a01b0316906108fc8415029084906000818181858888f193505050501580156139fb573d6000803e3d6000fd5b508190505b6000613a0c82876150f6565b905060008115613a51576040516001600160a01b0387169083156108fc029084906000818181858888f19350505050158015613a4c573d6000803e3d6000fd5b508190505b80613a5c84896150f6565b613a6691906150f6565b15613a845760405163a558587d60e01b815260040160405180910390fd5b50505050505050565b6000826000018281548110613aa457613aa46151fc565b9060005260206000200154905092915050565b60006001600160a01b0384163b15613bb957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613afb903390899088908890600401614c7c565b602060405180830381600087803b158015613b1557600080fd5b505af1925050508015613b45575060408051601f3d908101601f19168201909252613b42918101906146df565b60015b613b9f573d808015613b73576040519150601f19603f3d011682016040523d82523d6000602084013e613b78565b606091505b508051613b975760405162461bcd60e51b81526004016109df90614ccc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612185565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b14806108df57506108df82613e29565b613bf4838383613e5e565b600c5460ff1615610b105760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b60648201526084016109df565b60606000613c6a836002615098565b613c7590600261506c565b6001600160401b03811115613c8c57613c8c615212565b6040519080825280601f01601f191660200182016040528015613cb6576020820181803683370190505b509050600360fc1b81600081518110613cd157613cd16151fc565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613d0057613d006151fc565b60200101906001600160f81b031916908160001a9053506000613d24846002615098565b613d2f90600161506c565b90505b6001811115613da7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613d6357613d636151fc565b1a60f81b828281518110613d7957613d796151fc565b60200101906001600160f81b031916908160001a90535060049490941c93613da081615139565b9050613d32565b5083156117705760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109df565b613e008383613f16565b613e0d6000848484613ab7565b610b105760405162461bcd60e51b81526004016109df90614ccc565b60006001600160e01b03198216637965db0b60e01b14806108df57506301ffc9a760e01b6001600160e01b03198316146108df565b6001600160a01b038316613eb957613eb481600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b613edc565b816001600160a01b0316836001600160a01b031614613edc57613edc8382614042565b6001600160a01b038216613ef357610b10816140df565b826001600160a01b0316826001600160a01b031614610b1057610b10828261418e565b6001600160a01b038216613f6c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109df565b613f7581612768565b15613fc15760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016109df565b613fcd6000838361363a565b6001600160a01b0382166000908152600560205260408120805460019290613ff690849061506c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206152e1833981519152908290a45050565b6000600161404f8461151c565b61405991906150f6565b6000838152600960205260409020549091508082146140ac576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a546000906140f1906001906150f6565b6000838152600b6020526040812054600a8054939450909284908110614119576141196151fc565b9060005260206000200154905080600a838154811061413a5761413a6151fc565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480614172576141726151e6565b6001900381819060005260206000200160009055905550505050565b60006141998361151c565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b8280546141de90615150565b90600052602060002090601f0160209004810192826142005760008555614246565b82601f1061421957805160ff1916838001178555614246565b82800160010185558215614246579182015b8281111561424657825182559160200191906001019061422b565b506142529291506142d9565b5090565b6040805160a081018252600080825260208201819052918101919091526060810161427f614291565b815260200161428c6142b2565b905290565b60405180620a00000160405280615000906020820280368337509192915050565b60405180606001604052806142c56142ee565b815260006020820181905260409091015290565b5b8082111561425257600081556001016142da565b6040518061070001604052806038906020820280368337509192915050565b600061432061431b84615045565b615015565b905082815283838301111561433457600080fd5b828260208301376000602084830101529392505050565b803561435681615228565b919050565b80356143568161523d565b803561435681615270565b805161435681615270565b600082601f83011261438d57600080fd5b6117708383356020850161430d565b600061074082840312156143af57600080fd5b6143b7614f61565b905082601f8301126143c857600080fd5b6143d0614fce565b80836107008501868111156143e457600080fd5b60005b60388110156144105782356143fb81615270565b855260209485019492909201916001016143e7565b5082855261441d81614366565b6020860152505050506144336107208301614366565b604082015292915050565b6000610740828403121561445157600080fd5b614459614f61565b905082601f83011261446a57600080fd5b614472614fce565b808361070085018681111561448657600080fd5b60005b60388110156144b257825161449d81615270565b85526020948501949290920191600101614489565b508285526144bf81614371565b6020860152505050506144336107208301614371565b6000602082840312156144e757600080fd5b813561177081615228565b6000806040838503121561450557600080fd5b823561451081615228565b9150602083013561452081615228565b809150509250929050565b60008060006060848603121561454057600080fd5b833561454b81615228565b9250602084013561455b81615228565b929592945050506040919091013590565b6000806000806080858703121561458257600080fd5b843561458d81615228565b9350602085013561459d81615228565b92506040850135915060608501356001600160401b038111156145bf57600080fd5b8501601f810187136145d057600080fd5b6145df8782356020840161430d565b91505092959194509250565b600080604083850312156145fe57600080fd5b823561460981615228565b915060208301356145208161523d565b6000806040838503121561462c57600080fd5b823561463781615228565b946020939093013593505050565b60006020828403121561465757600080fd5b81516117708161523d565b60006020828403121561467457600080fd5b5035919050565b6000806040838503121561468e57600080fd5b82359150602083013561452081615228565b600080604083850312156146b357600080fd5b50508035926020909101359150565b6000602082840312156146d457600080fd5b81356117708161524b565b6000602082840312156146f157600080fd5b81516117708161524b565b60006020828403121561470e57600080fd5b813561177081615270565b60006020828403121561472b57600080fd5b81356001600160401b0381111561474157600080fd5b6121858482850161437c565b60006020828403121561475f57600080fd5b81516001600160401b0381111561477557600080fd5b8201601f8101841361478657600080fd5b805161479461431b82615045565b8181528560208385010111156147a957600080fd5b6147ba82602083016020860161510d565b95945050505050565b6000602082840312156147d557600080fd5b81356001600160401b03808211156147ec57600080fd5b908301906101e0828603121561480157600080fd5b614809614f89565b82358281111561481857600080fd5b6148248782860161437c565b82525060208301358281111561483957600080fd5b6148458782860161437c565b60208301525060408301358281111561485d57600080fd5b6148698782860161437c565b60408301525060608301358281111561488157600080fd5b61488d8782860161437c565b606083015250608083013560808201526148a960a08401614366565b60a082015260c083013560c082015260e083013560e08201526101008084013581830152506101208084013581830152506101406148e881850161435b565b908201526101606148fa84820161435b565b90820152610180838101358381111561491257600080fd5b61491e8882870161437c565b8284015250506101a0915061493482840161434b565b828201526101c0915061494882840161434b565b91810191909152949350505050565b6000620a07a0828403121561496b57600080fd5b614973614fac565b825161497e81615261565b815260208381015161498f81615291565b8282015260408401516149a181615270565b6040830152607f840185136149b557600080fd5b6149bd614ff1565b8060608601620a00608701888111156149d557600080fd5b60005b6150008110156149ff5782516149ed8161527f565b855293850193918501916001016149d8565b50826060870152614a10898261443e565b60808701525093979650505050505050565b600060208284031215614a3457600080fd5b5051919050565b600080828403620a07c0811215614a5157600080fd5b833592506020620a07a0601f1983011215614a6b57600080fd5b614a73614fac565b915080850135614a8281615261565b82526040850135614a9281615291565b828201526060850135614aa481615270565b6040830152609f85018613614ab857600080fd5b614ac0614ff1565b8060808701620a0080880189811115614ad857600080fd5b60005b615000811015614b02578235614af08161527f565b85529385019391850191600101614adb565b50826060870152614b138a8261439c565b60808701525050505050809150509250929050565b60008060408385031215614b3b57600080fd5b823561451081615291565b6001600160a01b03169052565b60008151808452614b6b81602086016020860161510d565b601f01601f19169290920160200192915050565b80518260005b6038811015614ba757825160030b825260209283019290910190600101614b85565b505050602081015160030b610700830152604081015160030b6107208301525050565b60008351614bdc81846020880161510d565b835190830190614bf081836020880161510d565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351614c2b81601785016020880161510d565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614c5c81602884016020880161510d565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614caf90830184614b53565b9695505050505050565b6020815260006117706020830184614b53565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208152600082516101e0806020850152614dc5610200850183614b53565b91506020850151601f1980868503016040870152614de38483614b53565b93506040870151915080868503016060870152614e008483614b53565b93506060870151915080868503016080870152614e1d8483614b53565b9350608087015160a087015260a08701519150614e3f60c087018360030b9052565b60c087015160e0878101919091528701516101008088019190915287015161012080880191909152870151610140808801919091528701519150610160614e898188018415159052565b8701519150610180614e9e8782018415159052565b808801519250506101a0818786030181880152614ebb8584614b53565b945080880151925050506101c0614ed481870183614b46565b8601519050614ee585830182614b46565b5090949350505050565b8151600190810b825260208084015160ff168184015260408085015160030b90840152606080850151620a07a085019391850160005b615000811015614f4857825163ffffffff16825291840191908401908301614f25565b50505050506080830151613920620a0060840182614b7f565b604051606081016001600160401b0381118282101715614f8357614f83615212565b60405290565b6040516101e081016001600160401b0381118282101715614f8357614f83615212565b60405160a081016001600160401b0381118282101715614f8357614f83615212565b60405161070081016001600160401b0381118282101715614f8357614f83615212565b604051620a000081016001600160401b0381118282101715614f8357614f83615212565b604051601f8201601f191681016001600160401b038111828210171561503d5761503d615212565b604052919050565b60006001600160401b0382111561505e5761505e615212565b50601f01601f191660200190565b6000821982111561507f5761507f6151ba565b500190565b600082615093576150936151d0565b500490565b60008160001904831182151516156150b2576150b26151ba565b500290565b60008083128015600160ff1b8501841216156150d5576150d56151ba565b6001600160ff1b03840183138116156150f0576150f06151ba565b50500390565b600082821015615108576151086151ba565b500390565b60005b83811015615128578181015183820152602001615110565b83811115611c2d5750506000910152565b600081615148576151486151ba565b506000190190565b600181811c9082168061516457607f821691505b6020821081141561518557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561519f5761519f6151ba565b5060010190565b6000826151b5576151b56151d0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461126657600080fd5b801515811461126657600080fd5b6001600160e01b03198116811461126657600080fd5b8060010b811461126657600080fd5b8060030b811461126657600080fd5b63ffffffff8116811461126657600080fd5b60ff8116811461126657600080fdfee710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8820e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8829ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8825e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8822e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881ce710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8821a264697066735822122074077fcb1c1a38bcb75546bd837be4866889e0be2bd30c2dfc34a22c738e3cf064736f6c63430008070033000000000000000000000000df6e32d85d17e907e0da157fab7c12788e7161da
Deployed Bytecode
0x60806040526004361061024f5760003560e01c806301b117921461025457806301ffc9a71461026b57806306fdde03146102a0578063081812fc146102c2578063095ea7b3146102ef57806318160ddd1461030f57806323b872dd1461032e578063248a9ca31461034e5780632f2ff15d1461036e5780632f745c591461038e57806334393743146103ae5780633549345e146103c357806336566f06146103e357806336568abe146103f857806339e7357c146104185780634251921e1461044057806342842e0e1461046257806342966c68146104825780634378a6e3146104a257806347c8ff5e146104c25780634f6ccce7146104e257806356d3163d146105025780635c975abb146105225780636352211e1461053a57806370a082311461055a5780638639a4871461057a5780639010d07c1461058d57806390a2641c146105ad57806391b7f5ed146105da57806391d14854146105fa57806395d89b411461061a5780639ab0cd881461062f5780639f3b8cd71461064f578063a217fddf1461066f578063a22cb46514610684578063a7016023146106a4578063aacd7321146106c4578063aee99e52146106d9578063b5d7c159146106f6578063b88d4fde1461070b578063c1c8e4b31461072b578063c7b3fe5e1461073e578063c87b56dd1461075e578063ca15c8731461077e578063ceed2fcc1461079e578063d547741f146107be578063e2f273bd146107de578063e35a063f146107fe578063e8a3d48514610811578063e985e9c514610826578063efef39a114610846578063f0bed7df14610859575b600080fd5b34801561026057600080fd5b50610269610879565b005b34801561027757600080fd5b5061028b6102863660046146c2565b6108d4565b60405190151581526020015b60405180910390f35b3480156102ac57600080fd5b506102b56108e5565b6040516102979190614cb9565b3480156102ce57600080fd5b506102e26102dd366004614662565b610977565b6040516102979190614c68565b3480156102fb57600080fd5b5061026961030a366004614619565b610a04565b34801561031b57600080fd5b50600a545b604051908152602001610297565b34801561033a57600080fd5b5061026961034936600461452b565b610b15565b34801561035a57600080fd5b50610320610369366004614662565b610b47565b34801561037a57600080fd5b5061026961038936600461467b565b610b5c565b34801561039a57600080fd5b506103206103a9366004614619565b610b7e565b3480156103ba57600080fd5b50610269610c14565b3480156103cf57600080fd5b506102696103de366004614662565b610c76565b3480156103ef57600080fd5b50610269610caf565b34801561040457600080fd5b5061026961041336600461467b565b610cfe565b34801561042457600080fd5b5061042d610d20565b60405160039190910b8152602001610297565b34801561044c57600080fd5b50610455610db4565b6040516102979190614da6565b34801561046e57600080fd5b5061026961047d36600461452b565b6111d4565b34801561048e57600080fd5b5061026961049d366004614662565b6111ef565b3480156104ae57600080fd5b506102b56104bd366004614662565b611269565b3480156104ce57600080fd5b506102696104dd366004614719565b61135b565b3480156104ee57600080fd5b506103206104fd366004614662565b6113a6565b34801561050e57600080fd5b5061026961051d3660046144d5565b611439565b34801561052e57600080fd5b50600c5460ff1661028b565b34801561054657600080fd5b506102e2610555366004614662565b6114a5565b34801561056657600080fd5b506103206105753660046144d5565b61151c565b610269610588366004614619565b6115a3565b34801561059957600080fd5b506102e26105a83660046146a0565b611758565b3480156105b957600080fd5b506105cd6105c8366004614a3b565b611777565b6040516102979190614eef565b3480156105e657600080fd5b506102696105f5366004614662565b611789565b34801561060657600080fd5b5061028b61061536600461467b565b6117d8565b34801561062657600080fd5b506102b5611801565b34801561063b57600080fd5b5061028b61064a366004614619565b611810565b34801561065b57600080fd5b5061026961066a3660046147c3565b61185b565b34801561067b57600080fd5b50610320600081565b34801561069057600080fd5b5061026961069f3660046145eb565b611a3f565b3480156106b057600080fd5b506102696106bf3660046144d5565b611b00565b3480156106d057600080fd5b506102e2611b56565b3480156106e557600080fd5b50601254610100900460ff1661028b565b34801561070257600080fd5b50610269611b9d565b34801561071757600080fd5b5061026961072636600461456c565b611c33565b610269610739366004614662565b611c65565b34801561074a57600080fd5b506102696107593660046146fc565b611c6f565b34801561076a57600080fd5b506102b5610779366004614662565b611d3d565b34801561078a57600080fd5b50610320610799366004614662565b61218d565b3480156107aa57600080fd5b506102696107b9366004614b28565b6121a4565b3480156107ca57600080fd5b506102696107d936600461467b565b612279565b3480156107ea57600080fd5b506102696107f93660046144d5565b612283565b61026961080c366004614619565b612300565b34801561081d57600080fd5b506102b561269b565b34801561083257600080fd5b5061028b6108413660046144f2565b6126aa565b610269610854366004614662565b6126d8565b34801561086557600080fd5b506105cd610874366004614662565b6126e2565b6013546001600160a01b0316336001600160a01b0316146108ad57604051633057182d60e21b815260040160405180910390fd5b60125460ff16156108c4576012805460ff19169055565b6012805460ff191660011790555b565b60006108df82612743565b92915050565b6060600280546108f490615150565b80601f016020809104026020016040519081016040528092919081815260200182805461092090615150565b801561096d5780601f106109425761010080835404028352916020019161096d565b820191906000526020600020905b81548152906001019060200180831161095057829003601f168201915b5050505050905090565b600061098282612768565b6109e85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610a0f826114a5565b9050806001600160a01b0316836001600160a01b03161415610a7d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109df565b336001600160a01b0382161480610a995750610a9981336126aa565b610b065760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b60648201526084016109df565b610b108383612785565b505050565b610b20335b826127f3565b610b3c5760405162461bcd60e51b81526004016109df90614d1e565b610b108383836128b5565b60009081526020819052604090206001015490565b610b668282612a4e565b6000828152600160205260409020610b109082612a6b565b6000610b898361151c565b8210610beb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109df565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6013546001600160a01b0316336001600160a01b031614610c4857604051633057182d60e21b815260040160405180910390fd5b601254610100900460ff1615610c65576012805461ff0019169055565b6012805461ff001916610100179055565b6013546001600160a01b0316336001600160a01b031614610caa57604051633057182d60e21b815260040160405180910390fd5b601555565b6013546001600160a01b0316336001600160a01b031614610ce357604051633057182d60e21b815260040160405180910390fd5b600c5460ff1615610cf6576108d2612a80565b6108d2612b0d565b610d088282612b88565b6000828152600160205260409020610b109082612c02565b6013546000906001600160a01b0316336001600160a01b031614610d5757604051633057182d60e21b815260040160405180910390fd5b60008052600e60205260008051602061536183398151915254600390810b900b610d9457604051635b4f9e2b60e01b815260040160405180910390fd5b5060008052600e6020526000805160206153618339815191525460030b90565b610e46604051806101e001604052806060815260200160608152602001606081526020016060815260200160008152602001600060030b8152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016060815260200160006001600160a01b0316815260200160006001600160a01b031681525090565b60008052600e602052604080516101e08101909152600080516020615341833981519152805482908290610e7990615150565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea590615150565b8015610ef25780601f10610ec757610100808354040283529160200191610ef2565b820191906000526020600020905b815481529060010190602001808311610ed557829003601f168201915b50505050508152602001600182018054610f0b90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3790615150565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b50505050508152602001600282018054610f9d90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc990615150565b80156110165780601f10610feb57610100808354040283529160200191611016565b820191906000526020600020905b815481529060010190602001808311610ff957829003601f168201915b5050505050815260200160038201805461102f90615150565b80601f016020809104026020016040519081016040528092919081815260200182805461105b90615150565b80156110a85780601f1061107d576101008083540402835291602001916110a8565b820191906000526020600020905b81548152906001019060200180831161108b57829003601f168201915b5050509183525050600482015460208201526005820154600390810b810b900b60408201526006820154606082015260078201546080820152600882015460a0820152600982015460c0820152600a82015460ff808216151560e08401526101009182900416151590820152600b820180546101209092019161112a90615150565b80601f016020809104026020016040519081016040528092919081815260200182805461115690615150565b80156111a35780601f10611178576101008083540402835291602001916111a3565b820191906000526020600020905b81548152906001019060200180831161118657829003601f168201915b5050509183525050600c8201546001600160a01b039081166020830152600d90920154909116604090910152919050565b610b1083838360405180602001604052806000815250611c33565b6111f833610b1a565b61125d5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016109df565b61126681612c17565b50565b6013546060906001600160a01b0316336001600160a01b03161415801561129757506112953383611810565b155b156112b557604051630c675c2960e01b815260040160405180910390fd5b6000805160206152c1833981519152546000838152601160205260409081902054905160016223c18d60e21b03198152600391820b90910b60048201526001600160a01b039091169063ff70f9cc9060240160006040518083038186803b15801561131f57600080fd5b505afa158015611333573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108df919081019061474d565b6013546001600160a01b0316336001600160a01b03161461138f57604051633057182d60e21b815260040160405180910390fd5b80516113a29060189060208401906141d2565b5050565b60006113b1600a5490565b82106114145760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109df565b600a8281548110611427576114276151fc565b90600052602060002001549050919050565b6013546001600160a01b0316336001600160a01b03161461146d57604051633057182d60e21b815260040160405180910390fd5b60008052600e6020526000805160206152c183398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600460205260408120546001600160a01b0316806108df5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109df565b60006001600160a01b0382166115875760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109df565b506001600160a01b031660009081526005602052604090205490565b6002600d5414156115c65760405162461bcd60e51b81526004016109df90614d6f565b6002600d55601254610100900460ff16156115f4576040516363a2de0f60e01b815260040160405180910390fd5b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f88245433908015611687576001600160a01b03821660009081526016602052604081205461164a908361506c565b6001600160a01b038416600090815260106020526040902054909150811161168557604051637184542760e01b815260040160405180910390fd5b505b6000808052600e60205260008051602061530183398151915254600080516020615321833981519152546116fb9183916116c19190612cac565b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8823546116f691906150b7565b612cc2565b90506117078482612cac565b93508361172757604051635fd48f9160e01b815260040160405180910390fd5b61174c3360008052600e6020526000805160206152a183398151915254879087612cd2565b50506001600d55505050565b60008281526001602052604081206117709083613372565b9392505050565b61177f614256565b611770838361337e565b6013546001600160a01b0316336001600160a01b0316146117bd57604051633057182d60e21b815260040160405180910390fd5b60008052600e6020526000805160206152a183398151915255565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600380546108f490615150565b6000805b61181d8461151c565b8110156118515761182e8482610b7e565b83141561183f5760019150506108df565b806118498161518b565b915050611814565b5060009392505050565b6013546001600160a01b0316336001600160a01b03161461188f57604051633057182d60e21b815260040160405180910390fd5b6101c08101516001600160a01b031615806118b757506101c08101516001600160a01b03163b155b156118d557604051630161139960e31b815260040160405180910390fd5b60008052600e60209081528151805183926000805160206153418339815191529261190692849291909101906141d2565b50602082810151805161191f92600185019201906141d2565b506040820151805161193b9160028401916020909101906141d2565b50606082015180516119579160038401916020909101906141d2565b506080820151600482015560a082015160058201805463ffffffff191663ffffffff60039390930b9290921691909117905560c0820151600682015560e082015160078201556101008083015160088301556101208301516009830155610140830151600a8301805461016086015161ffff1990911692151561ff0019169290921791151590920217905561018082015180516119fe91600b8401916020909101906141d2565b506101a0820151600c820180546001600160a01b03199081166001600160a01b03938416179091556101c090930151600d9092018054909316911617905550565b6001600160a01b038216331415611a945760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b60448201526064016109df565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6013546001600160a01b0316336001600160a01b031614611b3457604051633057182d60e21b815260040160405180910390fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6013546000906001600160a01b0316336001600160a01b031614611b8d57604051633057182d60e21b815260040160405180910390fd5b506014546001600160a01b031690565b6013546001600160a01b0316336001600160a01b031614611bd157604051633057182d60e21b815260040160405180910390fd5b6014546001600160a01b031663e2f273bd336040518263ffffffff1660e01b8152600401611bff9190614c68565b600060405180830381600087803b158015611c1957600080fd5b505af1158015611c2d573d6000803e3d6000fd5b50505050565b611c3d33836127f3565b611c595760405162461bcd60e51b81526004016109df90614d1e565b611c2d848484846134a3565b6112663382612300565b6013546001600160a01b0316336001600160a01b031614611ca357604051633057182d60e21b815260040160405180910390fd5b8060030b60001415611cc85760405163431d3a4360e11b815260040160405180910390fd5b60008052600e60205260008051602061536183398151915254600390810b900b15611d0657604051635f89b5d960e11b815260040160405180910390fd5b60008052600e602052600080516020615361833981519152805460039290920b63ffffffff1663ffffffff19909216919091179055565b6060611d4882612768565b611dac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016109df565b6000808052600e602052604080516101e08101909152600080516020615341833981519152805482908290611de090615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611e0c90615150565b8015611e595780601f10611e2e57610100808354040283529160200191611e59565b820191906000526020600020905b815481529060010190602001808311611e3c57829003601f168201915b50505050508152602001600182018054611e7290615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9e90615150565b8015611eeb5780601f10611ec057610100808354040283529160200191611eeb565b820191906000526020600020905b815481529060010190602001808311611ece57829003601f168201915b50505050508152602001600282018054611f0490615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3090615150565b8015611f7d5780601f10611f5257610100808354040283529160200191611f7d565b820191906000526020600020905b815481529060010190602001808311611f6057829003601f168201915b50505050508152602001600382018054611f9690615150565b80601f0160208091040260200160405190810160405280929190818152602001828054611fc290615150565b801561200f5780601f10611fe45761010080835404028352916020019161200f565b820191906000526020600020905b815481529060010190602001808311611ff257829003601f168201915b5050509183525050600482015460208201526005820154600390810b810b900b60408201526006820154606082015260078201546080820152600882015460a0820152600982015460c0820152600a82015460ff808216151560e08401526101009182900416151590820152600b820180546101209092019161209190615150565b80601f01602080910402602001604051908101604052809291908181526020018280546120bd90615150565b801561210a5780601f106120df5761010080835404028352916020019161210a565b820191906000526020600020905b8154815290600101906020018083116120ed57829003601f168201915b5050509183525050600c8201546001600160a01b03908116602080840191909152600d909301541660409091015281015180519192509061215a5760405180602001604052806000815250612185565b80612164856134d6565b604051602001612175929190614bca565b6040516020818303038152906040525b949350505050565b60008181526001602052604081206108df906135d3565b6013546001600160a01b0316336001600160a01b0316146121d857604051633057182d60e21b815260040160405180910390fd5b6001600160a01b0381166121ff5760405163849369ed60e01b815260040160405180910390fd5b60ff82161580612212575060648260ff16115b15612230576040516353ca3a3360e11b815260040160405180910390fd5b601280546001600160a01b039092166301000000026301000000600160b81b031960ff90941662010000029390931662010000600160b81b031990921691909117919091179055565b610d0882826135dd565b6013546001600160a01b0316336001600160a01b0316146122b757604051633057182d60e21b815260040160405180910390fd5b6001600160a01b0381166122de5760405163849369ed60e01b815260040160405180910390fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6002600d5414156123235760405162461bcd60e51b81526004016109df90614d6f565b6002600d55601254610100900460ff1661235057604051637963e2b560e01b815260040160405180910390fd5b6014546040516370a0823160e01b815233916000916001600160a01b03909116906370a0823190612385908590600401614c68565b60206040518083038186803b15801561239d57600080fd5b505afa1580156123b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d59190614a22565b60145460405162def01360e61b81529192506000916001600160a01b03909116906337bc04c09061240a908690600401614c68565b60206040518083038186803b15801561242257600080fd5b505afa158015612436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245a9190614645565b90508015801561246a5750600182105b1561248857604051637ca4c08960e11b815260040160405180910390fd5b6000805b8381101561257857601454604051632f745c5960e01b81526001600160a01b038781166004830152602482018490526000921690632f745c599060440160206040518083038186803b1580156124e157600080fd5b505afa1580156124f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125199190614a22565b60008181526017602052604090205490915060ff16612565578261253c8161518b565b6000838152601760205260409020805460ff191660011790559350508683106125655750612578565b50806125708161518b565b91505061248c565b50818015612584575080155b80156125a657506001600160a01b038416600090815260166020526040902054155b156125af575060015b6125b98582612cac565b9450846125d9576040516303b6c17760e01b815260040160405180910390fd5b6000808052600e60205260008051602061530183398151915254600080516020615321833981519152546126139183916116c19190612cac565b905061261f8682612cac565b95508561263f57604051635fd48f9160e01b815260040160405180910390fd5b6001600160a01b03851660009081526016602052604090205461266390879061506c565b6001600160a01b03861660009081526016602052604090205560155461268d908690899089612cd2565b50506001600d555050505050565b6060601880546108f490615150565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61126633826115a3565b6126ea614256565b6126f2614291565b6126fa6142b2565b6040805160a081018252600080825260208083018290528782526011905282902054600390810b900b91810191909152606081018390526080810182905261218590859061337e565b60006001600160e01b0319821663780e9d6360e01b14806108df57506108df826135fa565b6000908152600460205260409020546001600160a01b0316151590565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906127ba826114a5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127fe82612768565b61285f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109df565b600061286a836114a5565b9050806001600160a01b0316846001600160a01b031614806128a55750836001600160a01b031661289a84610977565b6001600160a01b0316145b80612185575061218581856126aa565b826001600160a01b03166128c8826114a5565b6001600160a01b0316146129305760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109df565b6001600160a01b0382166129925760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109df565b61299d83838361363a565b6129a8600082612785565b6001600160a01b03831660009081526005602052604081208054600192906129d19084906150f6565b90915550506001600160a01b03821660009081526005602052604081208054600192906129ff90849061506c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206152e183398151915291a4505050565b612a5782610b47565b612a618133613691565b610b1083836136f5565b6000611770836001600160a01b038416613779565b600c5460ff16612ac95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016109df565b600c805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051612b039190614c68565b60405180910390a1565b600c5460ff1615612b535760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016109df565b600c805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612af63390565b6001600160a01b0381163314612bf85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016109df565b6113a282826137c8565b6000611770836001600160a01b03841661382d565b6000612c22826114a5565b9050612c308160008461363a565b612c3b600083612785565b6001600160a01b0381166000908152600560205260408120805460019290612c649084906150f6565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416906000805160206152e1833981519152908390a45050565b6000818312612cbb5781611770565b5090919050565b600081831215612cbb5781611770565b601254630100000090046001600160a01b0316612d025760405163ae59eff160e01b815260040160405180910390fd5b6001600160a01b0384163b15612d2b57604051634eaab2df60e11b815260040160405180910390fd5b60125460ff168015612d4b57506013546001600160a01b03858116911614155b15612d6957604051631bd131c360e01b815260040160405180910390fd5b6000612d758284615098565b905080341015612d985760405163832e53a960e01b815260040160405180910390fd5b6000808052600e602052604080516101e08101909152600080516020615341833981519152805482908290612dcc90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612df890615150565b8015612e455780601f10612e1a57610100808354040283529160200191612e45565b820191906000526020600020905b815481529060010190602001808311612e2857829003601f168201915b50505050508152602001600182018054612e5e90615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612e8a90615150565b8015612ed75780601f10612eac57610100808354040283529160200191612ed7565b820191906000526020600020905b815481529060010190602001808311612eba57829003601f168201915b50505050508152602001600282018054612ef090615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612f1c90615150565b8015612f695780601f10612f3e57610100808354040283529160200191612f69565b820191906000526020600020905b815481529060010190602001808311612f4c57829003601f168201915b50505050508152602001600382018054612f8290615150565b80601f0160208091040260200160405190810160405280929190818152602001828054612fae90615150565b8015612ffb5780601f10612fd057610100808354040283529160200191612ffb565b820191906000526020600020905b815481529060010190602001808311612fde57829003601f168201915b5050509183525050600482015460208201526005820154600390810b810b900b60408201526006820154606082015260078201546080820152600882015460a0820152600982015460c0820152600a82015460ff808216151560e08401526101009182900416151590820152600b820180546101209092019161307d90615150565b80601f01602080910402602001604051908101604052809291908181526020018280546130a990615150565b80156130f65780601f106130cb576101008083540402835291602001916130f6565b820191906000526020600020905b8154815290600101906020018083116130d957829003601f168201915b5050509183525050600c8201546001600160a01b039081166020830152600d9092015482166040909101526101a08201519192501661314857604051631d3ace7160e21b815260040160405180910390fd5b80610160015115801561316957506013546001600160a01b03878116911614155b1561318757604051634f7f3e2960e11b815260040160405180910390fd5b60a081015160030b6131ac57604051635b4f9e2b60e01b815260040160405180910390fd5b60005b8381101561335a576000600f5460016131c8919061506c565b60a084015160405160039190910b60e01b60208201524360248201526001600160601b031960608b811b821660448401528a901b166058820152606c8101829052909150600090608c0160408051808303601f190181529181528151602092830120600f859055600085815260119093529120805463ffffffff191663ffffffff600384900b1617905560c085015190915061326590600161506c565b600080516020615321833981519152556001600160a01b03891660009081526010602052604090205461329990600161506c565b6001600160a01b038a166000908152601060205260409020556132bc8883613927565b876001600160a01b0316827f8336b91ac6f4cdb4d82522a7b52346c16dac9efd729e69c2303b8ad7625311c18660c0015187608001518560405161331693929190928352602083019190915260030b604082015260600190565b60405180910390a36101208401511561334557836101200151600f5410613345576012805460ff191660011790555b505080806133529061518b565b9150506131af565b5061336a82826101a00151613941565b505050505050565b60006117708383613a8d565b613386614256565b6013546001600160a01b0316336001600160a01b0316141580156133b157506133af3384611810565b155b156133cf57604051630c675c2960e01b815260040160405180910390fd5b600083815260116020526040908190205490830151600391820b820b910b1461340b5760405163431d3a4360e11b815260040160405180910390fd5b60008052600e6020526000805160206152c18339815191525460405163f728f07d60e01b81526001600160a01b039091169063f728f07d90613451908590600401614eef565b620a07a06040518083038186803b15801561346b57600080fd5b505afa15801561347f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117709190614957565b6134ae8484846128b5565b6134ba84848484613ab7565b611c2d5760405162461bcd60e51b81526004016109df90614ccc565b6060816134fa5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613524578061350e8161518b565b915061351d9050600a83615084565b91506134fe565b6000816001600160401b0381111561353e5761353e615212565b6040519080825280601f01601f191660200182016040528015613568576020820181803683370190505b5090505b84156121855761357d6001836150f6565b915061358a600a866151a6565b61359590603061506c565b60f81b8183815181106135aa576135aa6151fc565b60200101906001600160f81b031916908160001a9053506135cc600a86615084565b945061356c565b60006108df825490565b6135e682610b47565b6135f08133613691565b610b1083836137c8565b60006001600160e01b031982166380ac58cd60e01b148061362b57506001600160e01b03198216635b5e139f60e01b145b806108df57506108df82613bc4565b613645838383613be9565b60008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f88265460ff1615610b10576040516338512cbb60e21b815260040160405180910390fd5b61369b82826117d8565b6113a2576136b3816001600160a01b03166014613c5b565b6136be836020613c5b565b6040516020016136cf929190614bf9565b60408051601f198184030181529082905262461bcd60e51b82526109df91600401614cb9565b6136ff82826117d8565b6113a2576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556137353390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008181526001830160205260408120546137c0575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556108df565b5060006108df565b6137d282826117d8565b156113a2576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600081815260018301602052604081205480156139165760006138516001836150f6565b8554909150600090613865906001906150f6565b90508181146138ca576000866000018281548110613885576138856151fc565b90600052602060002001549050808760000184815481106138a8576138a86151fc565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806138db576138db6151e6565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506108df565b60009150506108df565b5092915050565b6113a2828260405180602001604052806000815250613df6565b34156113a257600061395383346150f6565b9050801561398a57604051339082156108fc029083906000818181858888f19350505050158015613988573d6000803e3d6000fd5b505b6012546000906064906139a790869062010000900460ff16615098565b6139b19190615084565b905060008115613a005760125460405163010000009091046001600160a01b0316906108fc8415029084906000818181858888f193505050501580156139fb573d6000803e3d6000fd5b508190505b6000613a0c82876150f6565b905060008115613a51576040516001600160a01b0387169083156108fc029084906000818181858888f19350505050158015613a4c573d6000803e3d6000fd5b508190505b80613a5c84896150f6565b613a6691906150f6565b15613a845760405163a558587d60e01b815260040160405180910390fd5b50505050505050565b6000826000018281548110613aa457613aa46151fc565b9060005260206000200154905092915050565b60006001600160a01b0384163b15613bb957604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613afb903390899088908890600401614c7c565b602060405180830381600087803b158015613b1557600080fd5b505af1925050508015613b45575060408051601f3d908101601f19168201909252613b42918101906146df565b60015b613b9f573d808015613b73576040519150601f19603f3d011682016040523d82523d6000602084013e613b78565b606091505b508051613b975760405162461bcd60e51b81526004016109df90614ccc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612185565b506001949350505050565b60006001600160e01b03198216635a05180f60e01b14806108df57506108df82613e29565b613bf4838383613e5e565b600c5460ff1615610b105760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201526a1a1a5b19481c185d5cd95960aa1b60648201526084016109df565b60606000613c6a836002615098565b613c7590600261506c565b6001600160401b03811115613c8c57613c8c615212565b6040519080825280601f01601f191660200182016040528015613cb6576020820181803683370190505b509050600360fc1b81600081518110613cd157613cd16151fc565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613d0057613d006151fc565b60200101906001600160f81b031916908160001a9053506000613d24846002615098565b613d2f90600161506c565b90505b6001811115613da7576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613d6357613d636151fc565b1a60f81b828281518110613d7957613d796151fc565b60200101906001600160f81b031916908160001a90535060049490941c93613da081615139565b9050613d32565b5083156117705760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016109df565b613e008383613f16565b613e0d6000848484613ab7565b610b105760405162461bcd60e51b81526004016109df90614ccc565b60006001600160e01b03198216637965db0b60e01b14806108df57506301ffc9a760e01b6001600160e01b03198316146108df565b6001600160a01b038316613eb957613eb481600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b613edc565b816001600160a01b0316836001600160a01b031614613edc57613edc8382614042565b6001600160a01b038216613ef357610b10816140df565b826001600160a01b0316826001600160a01b031614610b1057610b10828261418e565b6001600160a01b038216613f6c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109df565b613f7581612768565b15613fc15760405162461bcd60e51b815260206004820152601c60248201527b115490cdcc8c4e881d1bdad95b88185b1c9958591e481b5a5b9d195960221b60448201526064016109df565b613fcd6000838361363a565b6001600160a01b0382166000908152600560205260408120805460019290613ff690849061506c565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206152e1833981519152908290a45050565b6000600161404f8461151c565b61405991906150f6565b6000838152600960205260409020549091508082146140ac576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a546000906140f1906001906150f6565b6000838152600b6020526040812054600a8054939450909284908110614119576141196151fc565b9060005260206000200154905080600a838154811061413a5761413a6151fc565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480614172576141726151e6565b6001900381819060005260206000200160009055905550505050565b60006141998361151c565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b8280546141de90615150565b90600052602060002090601f0160209004810192826142005760008555614246565b82601f1061421957805160ff1916838001178555614246565b82800160010185558215614246579182015b8281111561424657825182559160200191906001019061422b565b506142529291506142d9565b5090565b6040805160a081018252600080825260208201819052918101919091526060810161427f614291565b815260200161428c6142b2565b905290565b60405180620a00000160405280615000906020820280368337509192915050565b60405180606001604052806142c56142ee565b815260006020820181905260409091015290565b5b8082111561425257600081556001016142da565b6040518061070001604052806038906020820280368337509192915050565b600061432061431b84615045565b615015565b905082815283838301111561433457600080fd5b828260208301376000602084830101529392505050565b803561435681615228565b919050565b80356143568161523d565b803561435681615270565b805161435681615270565b600082601f83011261438d57600080fd5b6117708383356020850161430d565b600061074082840312156143af57600080fd5b6143b7614f61565b905082601f8301126143c857600080fd5b6143d0614fce565b80836107008501868111156143e457600080fd5b60005b60388110156144105782356143fb81615270565b855260209485019492909201916001016143e7565b5082855261441d81614366565b6020860152505050506144336107208301614366565b604082015292915050565b6000610740828403121561445157600080fd5b614459614f61565b905082601f83011261446a57600080fd5b614472614fce565b808361070085018681111561448657600080fd5b60005b60388110156144b257825161449d81615270565b85526020948501949290920191600101614489565b508285526144bf81614371565b6020860152505050506144336107208301614371565b6000602082840312156144e757600080fd5b813561177081615228565b6000806040838503121561450557600080fd5b823561451081615228565b9150602083013561452081615228565b809150509250929050565b60008060006060848603121561454057600080fd5b833561454b81615228565b9250602084013561455b81615228565b929592945050506040919091013590565b6000806000806080858703121561458257600080fd5b843561458d81615228565b9350602085013561459d81615228565b92506040850135915060608501356001600160401b038111156145bf57600080fd5b8501601f810187136145d057600080fd5b6145df8782356020840161430d565b91505092959194509250565b600080604083850312156145fe57600080fd5b823561460981615228565b915060208301356145208161523d565b6000806040838503121561462c57600080fd5b823561463781615228565b946020939093013593505050565b60006020828403121561465757600080fd5b81516117708161523d565b60006020828403121561467457600080fd5b5035919050565b6000806040838503121561468e57600080fd5b82359150602083013561452081615228565b600080604083850312156146b357600080fd5b50508035926020909101359150565b6000602082840312156146d457600080fd5b81356117708161524b565b6000602082840312156146f157600080fd5b81516117708161524b565b60006020828403121561470e57600080fd5b813561177081615270565b60006020828403121561472b57600080fd5b81356001600160401b0381111561474157600080fd5b6121858482850161437c565b60006020828403121561475f57600080fd5b81516001600160401b0381111561477557600080fd5b8201601f8101841361478657600080fd5b805161479461431b82615045565b8181528560208385010111156147a957600080fd5b6147ba82602083016020860161510d565b95945050505050565b6000602082840312156147d557600080fd5b81356001600160401b03808211156147ec57600080fd5b908301906101e0828603121561480157600080fd5b614809614f89565b82358281111561481857600080fd5b6148248782860161437c565b82525060208301358281111561483957600080fd5b6148458782860161437c565b60208301525060408301358281111561485d57600080fd5b6148698782860161437c565b60408301525060608301358281111561488157600080fd5b61488d8782860161437c565b606083015250608083013560808201526148a960a08401614366565b60a082015260c083013560c082015260e083013560e08201526101008084013581830152506101208084013581830152506101406148e881850161435b565b908201526101606148fa84820161435b565b90820152610180838101358381111561491257600080fd5b61491e8882870161437c565b8284015250506101a0915061493482840161434b565b828201526101c0915061494882840161434b565b91810191909152949350505050565b6000620a07a0828403121561496b57600080fd5b614973614fac565b825161497e81615261565b815260208381015161498f81615291565b8282015260408401516149a181615270565b6040830152607f840185136149b557600080fd5b6149bd614ff1565b8060608601620a00608701888111156149d557600080fd5b60005b6150008110156149ff5782516149ed8161527f565b855293850193918501916001016149d8565b50826060870152614a10898261443e565b60808701525093979650505050505050565b600060208284031215614a3457600080fd5b5051919050565b600080828403620a07c0811215614a5157600080fd5b833592506020620a07a0601f1983011215614a6b57600080fd5b614a73614fac565b915080850135614a8281615261565b82526040850135614a9281615291565b828201526060850135614aa481615270565b6040830152609f85018613614ab857600080fd5b614ac0614ff1565b8060808701620a0080880189811115614ad857600080fd5b60005b615000811015614b02578235614af08161527f565b85529385019391850191600101614adb565b50826060870152614b138a8261439c565b60808701525050505050809150509250929050565b60008060408385031215614b3b57600080fd5b823561451081615291565b6001600160a01b03169052565b60008151808452614b6b81602086016020860161510d565b601f01601f19169290920160200192915050565b80518260005b6038811015614ba757825160030b825260209283019290910190600101614b85565b505050602081015160030b610700830152604081015160030b6107208301525050565b60008351614bdc81846020880161510d565b835190830190614bf081836020880161510d565b01949350505050565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351614c2b81601785016020880161510d565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351614c5c81602884016020880161510d565b01602801949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614caf90830184614b53565b9695505050505050565b6020815260006117706020830184614b53565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208152600082516101e0806020850152614dc5610200850183614b53565b91506020850151601f1980868503016040870152614de38483614b53565b93506040870151915080868503016060870152614e008483614b53565b93506060870151915080868503016080870152614e1d8483614b53565b9350608087015160a087015260a08701519150614e3f60c087018360030b9052565b60c087015160e0878101919091528701516101008088019190915287015161012080880191909152870151610140808801919091528701519150610160614e898188018415159052565b8701519150610180614e9e8782018415159052565b808801519250506101a0818786030181880152614ebb8584614b53565b945080880151925050506101c0614ed481870183614b46565b8601519050614ee585830182614b46565b5090949350505050565b8151600190810b825260208084015160ff168184015260408085015160030b90840152606080850151620a07a085019391850160005b615000811015614f4857825163ffffffff16825291840191908401908301614f25565b50505050506080830151613920620a0060840182614b7f565b604051606081016001600160401b0381118282101715614f8357614f83615212565b60405290565b6040516101e081016001600160401b0381118282101715614f8357614f83615212565b60405160a081016001600160401b0381118282101715614f8357614f83615212565b60405161070081016001600160401b0381118282101715614f8357614f83615212565b604051620a000081016001600160401b0381118282101715614f8357614f83615212565b604051601f8201601f191681016001600160401b038111828210171561503d5761503d615212565b604052919050565b60006001600160401b0382111561505e5761505e615212565b50601f01601f191660200190565b6000821982111561507f5761507f6151ba565b500190565b600082615093576150936151d0565b500490565b60008160001904831182151516156150b2576150b26151ba565b500290565b60008083128015600160ff1b8501841216156150d5576150d56151ba565b6001600160ff1b03840183138116156150f0576150f06151ba565b50500390565b600082821015615108576151086151ba565b500390565b60005b83811015615128578181015183820152602001615110565b83811115611c2d5750506000910152565b600081615148576151486151ba565b506000190190565b600181811c9082168061516457607f821691505b6020821081141561518557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561519f5761519f6151ba565b5060010190565b6000826151b5576151b56151d0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461126657600080fd5b801515811461126657600080fd5b6001600160e01b03198116811461126657600080fd5b8060010b811461126657600080fd5b8060030b811461126657600080fd5b63ffffffff8116811461126657600080fd5b60ff8116811461126657600080fdfee710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8820e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8829ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8825e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8822e710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881ce710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f8821a264697066735822122074077fcb1c1a38bcb75546bd837be4866889e0be2bd30c2dfc34a22c738e3cf064736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000df6e32d85d17e907e0da157fab7c12788e7161da
-----Decoded View---------------
Arg [0] : ownership (address): 0xDf6e32D85d17e907e0DA157faB7C12788e7161Da
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000df6e32d85d17e907e0da157fab7c12788e7161da
Deployed Bytecode Sourcemap
156306:14936:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;159266:206;;;;;;;;;;;;;:::i;:::-;;160084:254;;;;;;;;;;-1:-1:-1;160084:254:0;;;;;:::i;:::-;;:::i;:::-;;;17898:14:1;;17891:22;17873:41;;17861:2;17846:18;160084:254:0;;;;;;;;103195:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;104754:221::-;;;;;;;;;;-1:-1:-1;104754:221:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;104277:411::-;;;;;;;;;;-1:-1:-1;104277:411:0;;;;;:::i;:::-;;:::i;116976:113::-;;;;;;;;;;-1:-1:-1;117064:10:0;:17;116976:113;;;18071:25:1;;;18059:2;18044:18;116976:113:0;17925:177:1;105644:339:0;;;;;;;;;;-1:-1:-1;105644:339:0;;;;;:::i;:::-;;:::i;134565:123::-;;;;;;;;;;-1:-1:-1;134565:123:0;;;;;:::i;:::-;;:::i;152180:196::-;;;;;;;;;;-1:-1:-1;152180:196:0;;;;;:::i;:::-;;:::i;116644:256::-;;;;;;;;;;-1:-1:-1;116644:256:0;;;;;:::i;:::-;;:::i;159041:217::-;;;;;;;;;;;;;:::i;159695:154::-;;;;;;;;;;-1:-1:-1;159695:154:0;;;;;:::i;:::-;;:::i;159480:207::-;;;;;;;;;;;;;:::i;152765:205::-;;;;;;;;;;-1:-1:-1;152765:205:0;;;;;:::i;:::-;;:::i;162173:211::-;;;;;;;;;;;;;:::i;:::-;;;18278:1:1;18267:21;;;;18249:40;;18237:2;18222:18;162173:211:0;18107:188:1;161243:124:0;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;106054:185::-;;;;;;;;;;-1:-1:-1;106054:185:0;;;;;:::i;:::-;;:::i;126145:245::-;;;;;;;;;;-1:-1:-1;126145:245:0;;;;;:::i;:::-;;:::i;169705:283::-;;;;;;;;;;-1:-1:-1;169705:283:0;;;;;:::i;:::-;;:::i;158197:162::-;;;;;;;;;;-1:-1:-1;158197:162:0;;;;;:::i;:::-;;:::i;117166:233::-;;;;;;;;;;-1:-1:-1;117166:233:0;;;;;:::i;:::-;;:::i;169451:158::-;;;;;;;;;;-1:-1:-1;169451:158:0;;;;;:::i;:::-;;:::i;123579:86::-;;;;;;;;;;-1:-1:-1;123650:7:0;;;;123579:86;;102889:239;;;;;;;;;;-1:-1:-1;102889:239:0;;;;;:::i;:::-;;:::i;102619:208::-;;;;;;;;;;-1:-1:-1;102619:208:0;;;;;:::i;:::-;;:::i;165077:1018::-;;;;;;:::i;:::-;;:::i;151635:145::-;;;;;;;;;;-1:-1:-1;151635:145:0;;;;;:::i;:::-;;:::i;170655:180::-;;;;;;;;;;-1:-1:-1;170655:180:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;159857:155::-;;;;;;;;;;-1:-1:-1;159857:155:0;;;;;:::i;:::-;;:::i;133450:139::-;;;;;;;;;;-1:-1:-1;133450:139:0;;;;;:::i;:::-;;:::i;103364:104::-;;;;;;;;;;;;;:::i;168684:288::-;;;;;;;;;;-1:-1:-1;168684:288:0;;;;;:::i;:::-;;:::i;161375:279::-;;;;;;;;;;-1:-1:-1;161375:279:0;;;;;:::i;:::-;;:::i;132541:49::-;;;;;;;;;;-1:-1:-1;132541:49:0;132586:4;132541:49;;105047:295;;;;;;;;;;-1:-1:-1;105047:295:0;;;;;:::i;:::-;;:::i;162547:153::-;;;;;;;;;;-1:-1:-1;162547:153:0;;;;;:::i;:::-;;:::i;162392:147::-;;;;;;;;;;;;;:::i;158949:84::-;;;;;;;;;;-1:-1:-1;159018:7:0;;;;;;;158949:84;;162708:158;;;;;;;;;;;;;:::i;106310:328::-;;;;;;;;;;-1:-1:-1;106310:328:0;;;;;:::i;:::-;;:::i;162881:112::-;;;;;;:::i;:::-;;:::i;161916:249::-;;;;;;;;;;-1:-1:-1;161916:249:0;;;;;:::i;:::-;;:::i;169043:400::-;;;;;;;;;;-1:-1:-1;169043:400:0;;;;;:::i;:::-;;:::i;151954:134::-;;;;;;;;;;-1:-1:-1;151954:134:0;;;;;:::i;:::-;;:::i;158585:356::-;;;;;;;;;;-1:-1:-1;158585:356:0;;;;;:::i;:::-;;:::i;152469:201::-;;;;;;;;;;-1:-1:-1;152469:201:0;;;;;:::i;:::-;;:::i;158367:210::-;;;;;;;;;;-1:-1:-1;158367:210:0;;;;;:::i;:::-;;:::i;163004:1959::-;;;;;;:::i;:::-;;:::i;158092:97::-;;;;;;;;;;;;;:::i;105413:164::-;;;;;;;;;;-1:-1:-1;105413:164:0;;;;;:::i;:::-;;:::i;164971:98::-;;;;;;:::i;:::-;;:::i;170958:281::-;;;;;;;;;;-1:-1:-1;170958:281:0;;;;;:::i;:::-;;:::i;159266:206::-;159329:6;;-1:-1:-1;;;;;159329:6:0;99780:10;-1:-1:-1;;;;;159313:22:0;;159310:45;;159344:11;;-1:-1:-1;;;159344:11:0;;;;;;;;;;;159310:45;159369:6;;;;159366:98;;;159392:6;:14;;-1:-1:-1;;159392:14:0;;;159266:206::o;159366:98::-;159439:6;:13;;-1:-1:-1;;159439:13:0;159448:4;159439:13;;;159366:98;159266:206::o;160084:254::-;160265:4;160294:36;160318:11;160294:23;:36::i;:::-;160287:43;160084:254;-1:-1:-1;;160084:254:0:o;103195:100::-;103249:13;103282:5;103275:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103195:100;:::o;104754:221::-;104830:7;104858:16;104866:7;104858;:16::i;:::-;104850:73;;;;-1:-1:-1;;;104850:73:0;;24160:2:1;104850:73:0;;;24142:21:1;24199:2;24179:18;;;24172:30;24238:34;24218:18;;;24211:62;-1:-1:-1;;;24289:18:1;;;24282:42;24341:19;;104850:73:0;;;;;;;;;-1:-1:-1;104943:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;104943:24:0;;104754:221::o;104277:411::-;104358:13;104374:23;104389:7;104374:14;:23::i;:::-;104358:39;;104422:5;-1:-1:-1;;;;;104416:11:0;:2;-1:-1:-1;;;;;104416:11:0;;;104408:57;;;;-1:-1:-1;;;104408:57:0;;25399:2:1;104408:57:0;;;25381:21:1;25438:2;25418:18;;;25411:30;25477:34;25457:18;;;25450:62;-1:-1:-1;;;25528:18:1;;;25521:31;25569:19;;104408:57:0;25197:397:1;104408:57:0;99780:10;-1:-1:-1;;;;;104500:21:0;;;;:62;;-1:-1:-1;104525:37:0;104542:5;99780:10;105413:164;:::i;104525:37::-;104478:168;;;;-1:-1:-1;;;104478:168:0;;22553:2:1;104478:168:0;;;22535:21:1;22592:2;22572:18;;;22565:30;22631:34;22611:18;;;22604:62;-1:-1:-1;;;22682:18:1;;;22675:54;22746:19;;104478:168:0;22351:420:1;104478:168:0;104659:21;104668:2;104672:7;104659:8;:21::i;:::-;104347:341;104277:411;;:::o;105644:339::-;105839:41;99780:10;105858:12;105872:7;105839:18;:41::i;:::-;105831:103;;;;-1:-1:-1;;;105831:103:0;;;;;;;:::i;:::-;105947:28;105957:4;105963:2;105967:7;105947:9;:28::i;134565:123::-;134631:7;134658:12;;;;;;;;;;:22;;;;134565:123::o;152180:196::-;152296:30;152312:4;152318:7;152296:15;:30::i;:::-;152337:18;;;;:12;:18;;;;;:31;;152360:7;152337:22;:31::i;116644:256::-;116741:7;116777:23;116794:5;116777:16;:23::i;:::-;116769:5;:31;116761:87;;;;-1:-1:-1;;;116761:87:0;;19848:2:1;116761:87:0;;;19830:21:1;19887:2;19867:18;;;19860:30;19926:34;19906:18;;;19899:62;-1:-1:-1;;;19977:18:1;;;19970:41;20028:19;;116761:87:0;19646:407:1;116761:87:0;-1:-1:-1;;;;;;116866:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;116644:256::o;159041:217::-;159105:6;;-1:-1:-1;;;;;159105:6:0;99780:10;-1:-1:-1;;;;;159089:22:0;;159086:45;;159120:11;;-1:-1:-1;;;159120:11:0;;;;;;;;;;;159086:45;159145:7;;;;;;;159142:101;;;159169:7;:15;;-1:-1:-1;;159169:15:0;;;159266:206::o;159142:101::-;159217:7;:14;;-1:-1:-1;;159217:14:0;;;;;159041:217::o;159695:154::-;159774:6;;-1:-1:-1;;;;;159774:6:0;99780:10;-1:-1:-1;;;;;159758:22:0;;159755:45;;159789:11;;-1:-1:-1;;;159789:11:0;;;;;;;;;;;159755:45;159811:17;:30;159695:154::o;159480:207::-;159543:6;;-1:-1:-1;;;;;159543:6:0;99780:10;-1:-1:-1;;;;;159527:22:0;;159524:45;;159558:11;;-1:-1:-1;;;159558:11:0;;;;;;;;;;;159524:45;123650:7;;;;159580:100;;;159608:10;:8;:10::i;159580:100::-;159660:8;:6;:8::i;152765:205::-;152884:33;152903:4;152909:7;152884:18;:33::i;:::-;152928:18;;;;:12;:18;;;;;:34;;152954:7;152928:25;:34::i;162173:211::-;162254:6;;162215:5;;-1:-1:-1;;;;;162254:6:0;99780:10;-1:-1:-1;;;;;162238:22:0;;162235:45;;162269:11;;-1:-1:-1;;;162269:11:0;;;;;;;;;;;162235:45;162294:14;;;:11;:14;;-1:-1:-1;;;;;;;;;;;162294:19:0;;;;;:24;;162291:48;;162327:12;;-1:-1:-1;;;162327:12:0;;;;;;;;;;;162291:48;-1:-1:-1;162357:14:0;;;:11;:14;;-1:-1:-1;;;;;;;;;;;162357:19:0;;;;162173:211::o;161243:124::-;161289:28;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;161289:28:0;161345:14;;;:11;:14;;;161338:21;;;;;;;;-1:-1:-1;;;;;;;;;;;161338:21:0;;;;161345:14;;161338:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;161338:21:0;;;-1:-1:-1;;161338:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;161338:21:0;;;-1:-1:-1;;161338:21:0;;;;-1:-1:-1;;;;;161338:21:0;;;;;;;;;;;;;;;;;;;;;161243:124;-1:-1:-1;161243:124:0:o;106054:185::-;106192:39;106209:4;106215:2;106219:7;106192:39;;;;;;;;;;;;:16;:39::i;126145:245::-;126263:41;99780:10;126282:12;99700:98;126263:41;126255:102;;;;-1:-1:-1;;;126255:102:0;;26992:2:1;126255:102:0;;;26974:21:1;27031:2;27011:18;;;27004:30;27070:34;27050:18;;;27043:62;-1:-1:-1;;;27121:18:1;;;27114:46;27177:19;;126255:102:0;26790:412:1;126255:102:0;126368:14;126374:7;126368:5;:14::i;:::-;126145:245;:::o;169705:283::-;169821:6;;169765:24;;-1:-1:-1;;;;;169821:6:0;99780:10;-1:-1:-1;;;;;169805:22:0;;;:59;;;;-1:-1:-1;169832:32:0;99780:10;169856:7;169832:9;:32::i;:::-;169831:33;169805:59;169802:89;;;169873:18;;-1:-1:-1;;;169873:18:0;;;;;;;;;;;169802:89;-1:-1:-1;;;;;;;;;;;169921:24:0;:14;169961:18;;;:9;169921:14;169961:18;169921:14;169961:18;;;;;169909:71;;-1:-1:-1;;;;;;169909:71:0;;169961:18;;;;18267:21:1;;;169909:71:0;;;18249:40:1;-1:-1:-1;;;;;169921:24:0;;;;169909:51;;18222:18:1;;169909:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;169909:71:0;;;;;;;;;;;;:::i;158197:162::-;158288:6;;-1:-1:-1;;;;;158288:6:0;99780:10;-1:-1:-1;;;;;158272:22:0;;158269:45;;158303:11;;-1:-1:-1;;;158303:11:0;;;;;;;;;;;158269:45;158325:26;;;;:12;;:26;;;;;:::i;:::-;;158197:162;:::o;117166:233::-;117241:7;117277:30;117064:10;:17;;116976:113;117277:30;117269:5;:38;117261:95;;;;-1:-1:-1;;;117261:95:0;;26219:2:1;117261:95:0;;;26201:21:1;26258:2;26238:18;;;26231:30;26297:34;26277:18;;;26270:62;-1:-1:-1;;;26348:18:1;;;26341:42;26400:19;;117261:95:0;26017:408:1;117261:95:0;117374:10;117385:5;117374:17;;;;;;;;:::i;:::-;;;;;;;;;117367:24;;117166:233;;;:::o;169451:158::-;169529:6;;-1:-1:-1;;;;;169529:6:0;99780:10;-1:-1:-1;;;;;169513:22:0;;169510:45;;169544:11;;-1:-1:-1;;;169544:11:0;;;;;;;;;;;169510:45;169566:14;;;:11;:14;;-1:-1:-1;;;;;;;;;;;169566:35:0;;-1:-1:-1;;;;;;169566:35:0;-1:-1:-1;;;;;169566:35:0;;;;;;;;;;169451:158::o;102889:239::-;102961:7;102997:16;;;:7;:16;;;;;;-1:-1:-1;;;;;102997:16:0;103032:19;103024:73;;;;-1:-1:-1;;;103024:73:0;;23389:2:1;103024:73:0;;;23371:21:1;23428:2;23408:18;;;23401:30;23467:34;23447:18;;;23440:62;-1:-1:-1;;;23518:18:1;;;23511:39;23567:19;;103024:73:0;23187:405:1;102619:208:0;102691:7;-1:-1:-1;;;;;102719:19:0;;102711:74;;;;-1:-1:-1;;;102711:74:0;;22978:2:1;102711:74:0;;;22960:21:1;23017:2;22997:18;;;22990:30;23056:34;23036:18;;;23029:62;-1:-1:-1;;;23107:18:1;;;23100:40;23157:19;;102711:74:0;22776:406:1;102711:74:0;-1:-1:-1;;;;;;102803:16:0;;;;;:9;:16;;;;;;;102619:208::o;165077:1018::-;155009:1;155605:7;;:19;;155597:63;;;;-1:-1:-1;;;155597:63:0;;;;;;;:::i;:::-;155009:1;155738:7;:18;165179:7:::1;::::0;::::1;::::0;::::1;;;165176:38;;;165195:19;;-1:-1:-1::0;;;165195:19:0::1;;;;;;;;;;;165176:38;165227:14;165294::::0;;:11:::1;:14;::::0;:32;;99780:10;;165340:22;;165337:263:::1;;-1:-1:-1::0;;;;;165478:20:0;::::1;165433:22;165478:20:::0;;;:12:::1;:20;::::0;;;;;165458:40:::1;::::0;:17;:40:::1;:::i;:::-;-1:-1:-1::0;;;;;165516:18:0;::::1;;::::0;;;:10:::1;:18;::::0;;;;;165433:65;;-1:-1:-1;165516:39:0;-1:-1:-1;165513:75:0::1;;165564:24;;-1:-1:-1::0;;;165564:24:0::1;;;;;;;;;;;165513:75;165364:236;165337:263;165764:13;165841:14:::0;;;:11:::1;:14;::::0;-1:-1:-1;;;;;;;;;;;165841:21:0;-1:-1:-1;;;;;;;;;;;165869:21:0;165780:113:::1;::::0;165764:13;;165826:66:::1;::::0;165841:21;165826:10:::1;:66::i;:::-;165798:14;::::0;;:11:::1;:14;::::0;:24;;165794:98:::1;::::0;;::::1;:::i;:::-;165780:10;:113::i;:::-;165764:129;;165917:33;165932:5;165940:9;165917:10;:33::i;:::-;165904:47:::0;-1:-1:-1;165965:10:0;165962:41:::1;;165984:19;;-1:-1:-1::0;;;165984:19:0::1;;;;;;;;;;;165962:41;166016:63;99780:10:::0;166046:14:::1;::::0;;:11:::1;:14;::::0;-1:-1:-1;;;;;;;;;;;166046:25:0;166035:9;;166073:5;166016:4:::1;:63::i;:::-;-1:-1:-1::0;;154965:1:0;155917:7;:22;-1:-1:-1;;;165077:1018:0:o;151635:145::-;151717:7;151744:18;;;:12;:18;;;;;:28;;151766:5;151744:21;:28::i;:::-;151737:35;151635:145;-1:-1:-1;;;151635:145:0:o;170655:180::-;170742:35;;:::i;:::-;170805:22;170813:7;170822:4;170805:7;:22::i;159857:155::-;159929:6;;-1:-1:-1;;;;;159929:6:0;99780:10;-1:-1:-1;;;;;159913:22:0;;159910:45;;159944:11;;-1:-1:-1;;;159944:11:0;;;;;;;;;;;159910:45;159966:14;;;:11;:14;;-1:-1:-1;;;;;;;;;;;159966:38:0;159857:155::o;133450:139::-;133528:4;133552:12;;;;;;;;;;;-1:-1:-1;;;;;133552:29:0;;;;;;;;;;;;;;;133450:139::o;103364:104::-;103420:13;103453:7;103446:14;;;;;:::i;168684:288::-;168753:4;;168770:172;168790:16;168800:5;168790:9;:16::i;:::-;168786:1;:20;168770:172;;;168842:29;168862:5;168869:1;168842:19;:29::i;:::-;168831:7;:40;168828:91;;;168899:4;168892:11;;;;;168828:91;168808:3;;;;:::i;:::-;;;;168770:172;;;-1:-1:-1;168959:5:0;;168684:288;-1:-1:-1;;;168684:288:0:o;161375:279::-;161468:6;;-1:-1:-1;;;;;161468:6:0;99780:10;-1:-1:-1;;;;;161452:22:0;;161449:45;;161483:11;;-1:-1:-1;;;161483:11:0;;;;;;;;;;;161449:45;161508:20;;;;-1:-1:-1;;;;;161508:36:0;;;:74;;-1:-1:-1;161549:20:0;;;;-1:-1:-1;;;;;161549:31:0;4344:20;4392:8;161508:74;161505:103;;;161591:17;;-1:-1:-1;;;161591:17:0;;;;;;;;;;;161505:103;161619:14;;;:11;:14;;;;:27;;;;161636:10;;-1:-1:-1;;;;;;;;;;;161619:14:0;:27;;:14;;:27;;;;;;:::i;:::-;-1:-1:-1;161619:27:0;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;161619:27:0;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;161619:27:0;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;161619:27:0;;;;;;;;;;;;;;;;;-1:-1:-1;;161619:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;161619:27:0;;;;;;-1:-1:-1;;161619:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;161619:27:0;;;;;;;;;-1:-1:-1;;;;;;161619:27:0;;;-1:-1:-1;;;;;161619:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;161375:279:0:o;105047:295::-;-1:-1:-1;;;;;105150:24:0;;99780:10;105150:24;;105142:62;;;;-1:-1:-1;;;105142:62:0;;21441:2:1;105142:62:0;;;21423:21:1;21480:2;21460:18;;;21453:30;-1:-1:-1;;;21499:18:1;;;21492:55;21564:18;;105142:62:0;21239:349:1;105142:62:0;99780:10;105217:32;;;;:18;:32;;;;;;;;-1:-1:-1;;;;;105217:42:0;;;;;;;;;;;;:53;;-1:-1:-1;;105217:53:0;;;;;;;;;;105286:48;;17873:41:1;;;105217:42:0;;99780:10;105286:48;;17846:18:1;105286:48:0;;;;;;;105047:295;;:::o;162547:153::-;162630:6;;-1:-1:-1;;;;;162630:6:0;99780:10;-1:-1:-1;;;;;162614:22:0;;162611:45;;162645:11;;-1:-1:-1;;;162645:11:0;;;;;;;;;;;162611:45;162667:10;:25;;-1:-1:-1;;;;;;162667:25:0;-1:-1:-1;;;;;162667:25:0;;;;;;;;;;162547:153::o;162392:147::-;162477:6;;162438:7;;-1:-1:-1;;;;;162477:6:0;99780:10;-1:-1:-1;;;;;162461:22:0;;162458:45;;162492:11;;-1:-1:-1;;;162492:11:0;;;;;;;;;;;162458:45;-1:-1:-1;162521:10:0;;-1:-1:-1;;;;;162521:10:0;;162392:147::o;162708:158::-;162773:6;;-1:-1:-1;;;;;162773:6:0;99780:10;-1:-1:-1;;;;;162757:22:0;;162754:45;;162788:11;;-1:-1:-1;;;162788:11:0;;;;;;;;;;;162754:45;162821:10;;-1:-1:-1;;;;;162821:10:0;162810:34;99780:10;162810:48;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;162708:158::o;106310:328::-;106485:41;99780:10;106518:7;106485:18;:41::i;:::-;106477:103;;;;-1:-1:-1;;;106477:103:0;;;;;;;:::i;:::-;106591:39;106605:4;106611:2;106615:7;106624:5;106591:13;:39::i;162881:112::-;162946:39;99780:10;162979:5;162946:18;:39::i;161916:249::-;161986:6;;-1:-1:-1;;;;;161986:6:0;99780:10;-1:-1:-1;;;;;161970:22:0;;161967:45;;162001:11;;-1:-1:-1;;;162001:11:0;;;;;;;;;;;161967:45;162026:4;:9;;162034:1;162026:9;162023:34;;;162044:13;;-1:-1:-1;;;162044:13:0;;;;;;;;;;;162023:34;162071:14;;;:11;:14;;-1:-1:-1;;;;;;;;;;;162071:19:0;;;;;:24;;;162068:52;;162104:16;;-1:-1:-1;;;162104:16:0;;;;;;;;;;;162068:52;162131:14;;;:11;:14;;-1:-1:-1;;;;;;;;;;;162131:26:0;;;;;;;;;-1:-1:-1;;162131:26:0;;;;;;;;;161916:249::o;169043:400::-;169108:13;169142:16;169150:7;169142;:16::i;:::-;169134:76;;;;-1:-1:-1;;;169134:76:0;;24983:2:1;169134:76:0;;;24965:21:1;25022:2;25002:18;;;24995:30;25061:34;25041:18;;;25034:62;-1:-1:-1;;;25112:18:1;;;25105:45;25167:19;;169134:76:0;24781:411:1;169134:76:0;169221:28;169252:14;;;:11;:14;;;169221:45;;;;;;;;-1:-1:-1;;;;;;;;;;;169221:45:0;;;;169252:14;;169221:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;169221:45:0;;;-1:-1:-1;;169221:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;169221:45:0;;;-1:-1:-1;;169221:45:0;;;;-1:-1:-1;;;;;169221:45:0;;;;;;;;;;;;;;;;;;;;;;169301:23;;;169342:21;;169221:45;;-1:-1:-1;169301:23:0;169342:93;;;;;;;;;;;;;;;;;169394:7;169403:25;169420:7;169403:16;:25::i;:::-;169377:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;169342:93;169335:100;169043:400;-1:-1:-1;;;;169043:400:0:o;151954:134::-;152026:7;152053:18;;;:12;:18;;;;;:27;;:25;:27::i;158585:356::-;158690:6;;-1:-1:-1;;;;;158690:6:0;99780:10;-1:-1:-1;;;;;158674:22:0;;158671:45;;158705:11;;-1:-1:-1;;;158705:11:0;;;;;;;;;;;158671:45;-1:-1:-1;;;;;158730:26:0;;158727:56;;158765:18;;-1:-1:-1;;;158765:18:0;;;;;;;;;;;158727:56;158797:12;;;;;:29;;;158823:3;158813:7;:13;;;158797:29;158794:62;;;158835:21;;-1:-1:-1;;;158835:21:0;;;;;;;;;;;158794:62;158875:12;:22;;-1:-1:-1;;;;;158908:25:0;;;;;-1:-1:-1;;;;;;158875:22:0;;;;;;158908:25;;;;-1:-1:-1;;;;;;158908:25:0;;;;;;;;;;;;;158585:356::o;152469:201::-;152586:31;152603:4;152609:7;152586:16;:31::i;158367:210::-;158443:6;;-1:-1:-1;;;;;158443:6:0;99780:10;-1:-1:-1;;;;;158427:22:0;;158424:45;;158458:11;;-1:-1:-1;;;158458:11:0;;;;;;;;;;;158424:45;-1:-1:-1;;;;;158483:24:0;;158480:54;;158516:18;;-1:-1:-1;;;158516:18:0;;;;;;;;;;;158480:54;158545:6;:17;;-1:-1:-1;;;;;;158545:17:0;-1:-1:-1;;;;;158545:17:0;;;;;;;;;;158367:210::o;163004:1959::-;155009:1;155605:7;;:19;;155597:63;;;;-1:-1:-1;;;155597:63:0;;;;;;;:::i;:::-;155009:1;155738:7;:18;163106:7:::1;::::0;::::1;::::0;::::1;;;163102:36;;163122:16;;-1:-1:-1::0;;;163122:16:0::1;;;;;;;;;;;163102:36;163214:10;::::0;163206:37:::1;::::0;-1:-1:-1;;;163206:37:0;;99780:10;;163151:14:::1;::::0;-1:-1:-1;;;;;163214:10:0;;::::1;::::0;163206:29:::1;::::0;:37:::1;::::0;99780:10;;163206:37:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;163292:10;::::0;163281:44:::1;::::0;-1:-1:-1;;;163281:44:0;;163191:52;;-1:-1:-1;163262:16:0::1;::::0;-1:-1:-1;;;;;163292:10:0;;::::1;::::0;163281:36:::1;::::0;:44:::1;::::0;163318:6;;163281:44:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;163262:63;;163398:11;163397:12;:27;;;;;163423:1;163413:7;:11;163397:27;163394:62;;;163433:23;;-1:-1:-1::0;;;163433:23:0::1;;;;;;;;;;;163394:62;163540:19;163578:6:::0;163574:388:::1;163594:7;163590:1;:11;163574:388;;;163658:10;::::0;163640:60:::1;::::0;-1:-1:-1;;;163640:60:0;;-1:-1:-1;;;;;17646:32:1;;;163640:60:0::1;::::0;::::1;17628:51:1::0;17695:18;;;17688:34;;;163625:12:0::1;::::0;163658:10:::1;::::0;163640:49:::1;::::0;17601:18:1;;163640:60:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;163719:22;::::0;;;:13:::1;:22;::::0;;;;;163625:75;;-1:-1:-1;163719:22:0::1;;163715:236;;163762:16:::0;::::1;::::0;::::1;:::i;:::-;163797:22;::::0;;;:13:::1;:22;::::0;;;;:29;;-1:-1:-1;;163797:29:0::1;163822:4;163797:29;::::0;;163762:16;-1:-1:-1;;163848:23:0;;::::1;163845:91;;163896:5;;;163845:91;-1:-1:-1::0;163603:3:0;::::1;::::0;::::1;:::i;:::-;;;;163574:388;;;;164073:11;:34;;;;-1:-1:-1::0;164088:19:0;;164073:34:::1;:63;;;;-1:-1:-1::0;;;;;;164111:20:0;::::1;;::::0;;;:12:::1;:20;::::0;;;;;:25;164073:63:::1;164070:113;;;-1:-1:-1::0;164170:1:0::1;164070:113;164276:43;164291:5;164303:14;164276:10;:43::i;:::-;164263:57:::0;-1:-1:-1;164383:10:0;164380:47:::1;;164402:25;;-1:-1:-1::0;;;164402:25:0::1;;;;;;;;;;;164380:47;164592:13;164669:14:::0;;;:11:::1;:14;::::0;-1:-1:-1;;;;;;;;;;;164669:21:0;-1:-1:-1;;;;;;;;;;;164697:21:0;164608:113:::1;::::0;164592:13;;164654:66:::1;::::0;164669:21;164654:10:::1;:66::i;164608:113::-;164592:129;;164745:33;164760:5;164768:9;164745:10;:33::i;:::-;164732:47:::0;-1:-1:-1;164793:10:0;164790:41:::1;;164812:19;;-1:-1:-1::0;;;164812:19:0::1;;;;;;;;;;;164790:41;-1:-1:-1::0;;;;;164867:20:0;::::1;;::::0;;;:12:::1;:20;::::0;;;;;:28:::1;::::0;164890:5;;164867:28:::1;:::i;:::-;-1:-1:-1::0;;;;;164844:20:0;::::1;;::::0;;;:12:::1;:20;::::0;;;;:51;164930:17:::1;::::0;164906:49:::1;::::0;164857:6;;164919:9;;164949:5;164906:4:::1;:49::i;:::-;-1:-1:-1::0;;154965:1:0;155917:7;:22;-1:-1:-1;;;;;163004:1959:0:o;158092:97::-;158136:13;158169:12;158162:19;;;;;:::i;105413:164::-;-1:-1:-1;;;;;105534:25:0;;;105510:4;105534:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;105413:164::o;164971:98::-;165029:32;99780:10;165055:5;165029:11;:32::i;170958:281::-;171016:35;;:::i;:::-;171072:27;;:::i;:::-;171110:25;;:::i;:::-;171170:60;;;;;;;;-1:-1:-1;171170:60:0;;;;;;;;;;171197:18;;;:9;:18;;;;;;;;;;171170:60;;;;;;;;;;;;;;;;;;;;;171153:78;;171161:7;;171153;:78::i;116336:224::-;116438:4;-1:-1:-1;;;;;;116462:50:0;;-1:-1:-1;;;116462:50:0;;:90;;;116516:36;116540:11;116516:23;:36::i;108148:127::-;108213:4;108237:16;;;:7;:16;;;;;;-1:-1:-1;;;;;108237:16:0;:30;;;108148:127::o;112130:174::-;112205:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;112205:29:0;-1:-1:-1;;;;;112205:29:0;;;;;;;;:24;;112259:23;112205:24;112259:14;:23::i;:::-;-1:-1:-1;;;;;112250:46:0;;;;;;;;;;;112130:174;;:::o;108442:348::-;108535:4;108560:16;108568:7;108560;:16::i;:::-;108552:73;;;;-1:-1:-1;;;108552:73:0;;21795:2:1;108552:73:0;;;21777:21:1;21834:2;21814:18;;;21807:30;21873:34;21853:18;;;21846:62;-1:-1:-1;;;21924:18:1;;;21917:42;21976:19;;108552:73:0;21593:408:1;108552:73:0;108636:13;108652:23;108667:7;108652:14;:23::i;:::-;108636:39;;108705:5;-1:-1:-1;;;;;108694:16:0;:7;-1:-1:-1;;;;;108694:16:0;;:51;;;;108738:7;-1:-1:-1;;;;;108714:31:0;:20;108726:7;108714:11;:20::i;:::-;-1:-1:-1;;;;;108714:31:0;;108694:51;:87;;;;108749:32;108766:5;108773:7;108749:16;:32::i;111434:578::-;111593:4;-1:-1:-1;;;;;111566:31:0;:23;111581:7;111566:14;:23::i;:::-;-1:-1:-1;;;;;111566:31:0;;111558:85;;;;-1:-1:-1;;;111558:85:0;;24573:2:1;111558:85:0;;;24555:21:1;24612:2;24592:18;;;24585:30;24651:34;24631:18;;;24624:62;-1:-1:-1;;;24702:18:1;;;24695:39;24751:19;;111558:85:0;24371:405:1;111558:85:0;-1:-1:-1;;;;;111662:16:0;;111654:65;;;;-1:-1:-1;;;111654:65:0;;21036:2:1;111654:65:0;;;21018:21:1;21075:2;21055:18;;;21048:30;21114:34;21094:18;;;21087:62;-1:-1:-1;;;21165:18:1;;;21158:34;21209:19;;111654:65:0;20834:400:1;111654:65:0;111732:39;111753:4;111759:2;111763:7;111732:20;:39::i;:::-;111836:29;111853:1;111857:7;111836:8;:29::i;:::-;-1:-1:-1;;;;;111878:15:0;;;;;;:9;:15;;;;;:20;;111897:1;;111878:15;:20;;111897:1;;111878:20;:::i;:::-;;;;-1:-1:-1;;;;;;;111909:13:0;;;;;;:9;:13;;;;;:18;;111926:1;;111909:13;:18;;111926:1;;111909:18;:::i;:::-;;;;-1:-1:-1;;111938:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;111938:21:0;-1:-1:-1;;;;;111938:21:0;;;;;;;;;111977:27;;111938:16;;111977:27;;;;-1:-1:-1;;;;;;;;;;;111977:27:0;;111434:578;;;:::o;134950:147::-;135033:18;135046:4;135033:12;:18::i;:::-;133032:30;133043:4;99780:10;133032;:30::i;:::-;135064:25:::1;135075:4;135081:7;135064:10;:25::i;145603:152::-:0;145673:4;145697:50;145702:3;-1:-1:-1;;;;;145722:23:0;;145697:4;:50::i;124638:120::-;123650:7;;;;124174:41;;;;-1:-1:-1;;;124174:41:0;;19499:2:1;124174:41:0;;;19481:21:1;19538:2;19518:18;;;19511:30;-1:-1:-1;;;19557:18:1;;;19550:50;19617:18;;124174:41:0;19297:344:1;124174:41:0;124697:7:::1;:15:::0;;-1:-1:-1;;124697:15:0::1;::::0;;124728:22:::1;99780:10:::0;124737:12:::1;124728:22;;;;;;:::i;:::-;;;;;;;;124638:120::o:0;124379:118::-;123650:7;;;;123904:9;123896:38;;;;-1:-1:-1;;;123896:38:0;;22208:2:1;123896:38:0;;;22190:21:1;22247:2;22227:18;;;22220:30;-1:-1:-1;;;22266:18:1;;;22259:46;22322:18;;123896:38:0;22006:340:1;123896:38:0;124439:7:::1;:14:::0;;-1:-1:-1;;124439:14:0::1;124449:4;124439:14;::::0;;124469:20:::1;124476:12;99780:10:::0;;99700:98;135998:218;-1:-1:-1;;;;;136094:23:0;;99780:10;136094:23;136086:83;;;;-1:-1:-1;;;136086:83:0;;27409:2:1;136086:83:0;;;27391:21:1;27448:2;27428:18;;;27421:30;27487:34;27467:18;;;27460:62;-1:-1:-1;;;27538:18:1;;;27531:45;27593:19;;136086:83:0;27207:411:1;136086:83:0;136182:26;136194:4;136200:7;136182:11;:26::i;145931:158::-;146004:4;146028:53;146036:3;-1:-1:-1;;;;;146056:23:0;;146028:7;:53::i;110737:360::-;110797:13;110813:23;110828:7;110813:14;:23::i;:::-;110797:39;;110849:48;110870:5;110885:1;110889:7;110849:20;:48::i;:::-;110938:29;110955:1;110959:7;110938:8;:29::i;:::-;-1:-1:-1;;;;;110980:16:0;;;;;;:9;:16;;;;;:21;;111000:1;;110980:16;:21;;111000:1;;110980:21;:::i;:::-;;;;-1:-1:-1;;111019:16:0;;;;:7;:16;;;;;;111012:23;;-1:-1:-1;;;;;;111012:23:0;;;111053:36;111027:7;;111019:16;-1:-1:-1;;;;;111053:36:0;;;-1:-1:-1;;;;;;;;;;;111053:36:0;111019:16;;111053:36;110786:311;110737:360;:::o;13741:103::-;13797:6;13827:1;13823;:5;:13;;13835:1;13823:13;;;-1:-1:-1;13831:1:0;;13741:103;-1:-1:-1;13741:103:0:o;13629:104::-;13685:6;13716:1;13711;:6;;:14;;13724:1;13711:14;;166103:1597;166211:12;;;;;-1:-1:-1;;;;;166211:12:0;166208:56;;166248:16;;-1:-1:-1;;;166248:16:0;;;;;;;;;;;166208:56;-1:-1:-1;;;;;166288:17:0;;4344:20;4392:8;166285:59;;166316:28;;-1:-1:-1;;;166316:28:0;;;;;;;;;;;166285:59;166368:6;;;;:26;;;;-1:-1:-1;166388:6:0;;-1:-1:-1;;;;;166378:16:0;;;166388:6;;166378:16;;166368:26;166365:56;;;166403:18;;-1:-1:-1;;;166403:18:0;;;;;;;;;;;166365:56;166434:15;166452:18;166465:5;166452:10;:18;:::i;:::-;166434:36;;166498:10;166486:9;:22;166483:64;;;166517:30;;-1:-1:-1;;;166517:30:0;;;;;;;;;;;166483:64;166566:28;166597:14;;;:11;:14;;;166566:45;;;;;;;;-1:-1:-1;;;;;;;;;;;166566:45:0;;;;166597:14;;166566:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;166566:45:0;;;-1:-1:-1;;166566:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;166566:45:0;;;-1:-1:-1;;166566:45:0;;;;-1:-1:-1;;;;;166566:45:0;;;;;;;;;;;;;;;;;;;166633:25;;;;166566:45;;-1:-1:-1;166633:41:0;166630:71;;166683:18;;-1:-1:-1;;;166683:18:0;;;;;;;;;;;166630:71;166722:10;:17;;;166721:18;:38;;;;-1:-1:-1;166753:6:0;;-1:-1:-1;;;;;166743:16:0;;;166753:6;;166743:16;;166721:38;166718:70;;;166768:20;;-1:-1:-1;;;166768:20:0;;;;;;;;;;;166718:70;166803:15;;;;:20;;166800:44;;166832:12;;-1:-1:-1;;;166832:12:0;;;;;;;;;;;166800:44;166861:6;166857:769;166877:5;166873:1;:9;166857:769;;;166904:19;166926:11;;166940:1;166926:15;;;;:::i;:::-;167011;;;;166994:79;;15210:1:1;15199:21;;;;15194:3;15190:31;166994:79:0;;;15178:44:1;167028:12:0;15238:11:1;;;15231:27;-1:-1:-1;;;;;;15289:2:1;15334:15;;;15330:24;;15316:12;;;15309:46;15389:15;;;15385:24;15371:12;;;15364:46;15426:12;;;15419:28;;;166904:37:0;;-1:-1:-1;166956:10:0;;15463:13:1;;166994:79:0;;;;;;-1:-1:-1;;166994:79:0;;;;;;166984:90;;166994:79;166984:90;;;;167100:11;:25;;;166979:96;167148:22;;;:9;:22;;;;;:29;;-1:-1:-1;;167148:29:0;;;;;;;;;;167224:17;;;;166984:90;;-1:-1:-1;167224:21:0;;-1:-1:-1;167224:21:0;:::i;:::-;-1:-1:-1;;;;;;;;;;;167200:45:0;-1:-1:-1;;;;;167281:18:0;;167200:14;167281:18;;;:10;167200:14;167281:18;167200:14;167281:18;;;:22;;167302:1;167281:22;:::i;:::-;-1:-1:-1;;;;;167260:18:0;;;;;;:10;:18;;;;;:43;167320:33;167330:9;167341:11;167320:9;:33::i;:::-;167403:9;-1:-1:-1;;;;;167373:88:0;167390:11;167373:88;167414:10;:17;;;167433:10;:21;;;167456:4;167373:88;;;;;;;31251:25:1;;;31307:2;31292:18;;31285:34;;;;31366:1;31355:21;31350:2;31335:18;;31328:49;31239:2;31224:18;;31053:330;167373:88:0;;;;;;;;167481:17;;;;:21;167478:137;;167541:10;:17;;;167526:11;;:32;167523:71;;167581:6;:13;;-1:-1:-1;;167581:13:0;167590:4;167581:13;;;167523:71;166889:737;;166884:3;;;;;:::i;:::-;;;;166857:769;;;;167638:54;167654:10;167666;:25;;;167638:15;:54::i;:::-;166189:1511;;166103:1597;;;;:::o;146899:158::-;146973:7;147024:22;147028:3;147040:5;147024:3;:22::i;170139:367::-;170226:35;;:::i;:::-;170293:6;;-1:-1:-1;;;;;170293:6:0;99780:10;-1:-1:-1;;;;;170277:22:0;;;:59;;;;-1:-1:-1;170304:32:0;99780:10;170328:7;170304:9;:32::i;:::-;170303:33;170277:59;170274:89;;;170345:18;;-1:-1:-1;;;170345:18:0;;;;;;;;;;;170274:89;170390:18;;;;:9;:18;;;;;;;;170377:9;;;;170390:18;;;;170377:31;;;;;170374:56;;170417:13;;-1:-1:-1;;;170417:13:0;;;;;;;;;;;170374:56;170460:14;;;:11;:14;;-1:-1:-1;;;;;;;;;;;170460:24:0;:14;170450:48;-1:-1:-1;;;170450:48:0;;-1:-1:-1;;;;;170460:24:0;;;;170450:42;;:48;;170493:4;;170450:48;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;107520:315::-;107677:28;107687:4;107693:2;107697:7;107677:9;:28::i;:::-;107724:48;107747:4;107753:2;107757:7;107766:5;107724:22;:48::i;:::-;107716:111;;;;-1:-1:-1;;;107716:111:0;;;;;;;:::i;11686:723::-;11742:13;11963:10;11959:53;;-1:-1:-1;;11990:10:0;;;;;;;;;;;;-1:-1:-1;;;11990:10:0;;;;;11686:723::o;11959:53::-;12037:5;12022:12;12078:78;12085:9;;12078:78;;12111:8;;;;:::i;:::-;;-1:-1:-1;12134:10:0;;-1:-1:-1;12142:2:0;12134:10;;:::i;:::-;;;12078:78;;;12166:19;12198:6;-1:-1:-1;;;;;12188:17:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12188:17:0;;12166:39;;12216:154;12223:10;;12216:154;;12250:11;12260:1;12250:11;;:::i;:::-;;-1:-1:-1;12319:10:0;12327:2;12319:5;:10;:::i;:::-;12306:24;;:2;:24;:::i;:::-;12293:39;;12276:6;12283;12276:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;12276:56:0;;;;;;;;-1:-1:-1;12347:11:0;12356:2;12347:11;;:::i;:::-;;;12216:154;;146428:117;146491:7;146518:19;146526:3;141912:18;;141829:109;135342:149;135426:18;135439:4;135426:12;:18::i;:::-;133032:30;133043:4;99780:10;133032;:30::i;:::-;135457:26:::1;135469:4;135475:7;135457:11;:26::i;102250:305::-:0;102352:4;-1:-1:-1;;;;;;102389:40:0;;-1:-1:-1;;;102389:40:0;;:105;;-1:-1:-1;;;;;;;102446:48:0;;-1:-1:-1;;;102446:48:0;102389:105;:158;;;;102511:36;102535:11;102511:23;:36::i;160910:325::-;161097:45;161124:4;161130:2;161134:7;161097:26;:45::i;:::-;161159:14;;;:11;:14;;:21;;:14;:21;161156:51;;;161189:18;;-1:-1:-1;;;161189:18:0;;;;;;;;;;;133879:497;133960:22;133968:4;133974:7;133960;:22::i;:::-;133955:414;;134148:41;134176:7;-1:-1:-1;;;;;134148:41:0;134186:2;134148:19;:41::i;:::-;134262:38;134290:4;134297:2;134262:19;:38::i;:::-;134053:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;134053:270:0;;;;;;;;;;-1:-1:-1;;;133999:358:0;;;;;;;:::i;137302:229::-;137377:22;137385:4;137391:7;137377;:22::i;:::-;137372:152;;137416:6;:12;;;;;;;;;;;-1:-1:-1;;;;;137416:29:0;;;;;;;;;:36;;-1:-1:-1;;137416:36:0;137448:4;137416:36;;;137499:12;99780:10;;99700:98;137499:12;-1:-1:-1;;;;;137472:40:0;137490:7;-1:-1:-1;;;;;137472:40:0;137484:4;137472:40;;;;;;;;;;137302:229;;:::o;139518:414::-;139581:4;141711:19;;;:12;;;:19;;;;;;139598:327;;-1:-1:-1;139641:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;139824:18;;139802:19;;;:12;;;:19;;;;;;:40;;;;139857:11;;139598:327;-1:-1:-1;139908:5:0;139901:12;;137539:230;137614:22;137622:4;137628:7;137614;:22::i;:::-;137610:152;;;137685:5;137653:12;;;;;;;;;;;-1:-1:-1;;;;;137653:29:0;;;;;;;;;;:37;;-1:-1:-1;;137653:37:0;;;137710:40;99780:10;;137653:12;;137710:40;;137685:5;137710:40;137539:230;;:::o;140108:1420::-;140174:4;140313:19;;;:12;;;:19;;;;;;140349:15;;140345:1176;;140724:21;140748:14;140761:1;140748:10;:14;:::i;:::-;140797:18;;140724:38;;-1:-1:-1;140777:17:0;;140797:22;;140818:1;;140797:22;:::i;:::-;140777:42;;140853:13;140840:9;:26;140836:405;;140887:17;140907:3;:11;;140919:9;140907:22;;;;;;;;:::i;:::-;;;;;;;;;140887:42;;141061:9;141032:3;:11;;141044:13;141032:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;141146:23;;;:12;;;:23;;;;;:36;;;140836:405;141322:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;141417:3;:12;;:19;141430:5;141417:19;;;;;;;;;;;141410:26;;;141460:4;141453:11;;;;;;;140345:1176;141504:5;141497:12;;;;;140345:1176;140180:1348;140108:1420;;;;:::o;109132:110::-;109208:26;109218:2;109222:7;109208:26;;;;;;;;;;;;:9;:26::i;167708:961::-;167805:9;:13;167801:861;;167835:13;167851:22;167863:10;167851:9;:22;:::i;:::-;167835:38;-1:-1:-1;167892:12:0;;167888:93;;167925:40;;99780:10;;167925:40;;;;;167956:8;;167925:40;;;;167956:8;99780:10;167925:40;;;;;;;;;;;;;;;;;;;;;167888:93;168015:12;;167997:15;;168043:3;;168015:25;;168030:10;;168015:12;;;;;:25;:::i;:::-;:31;;;;:::i;:::-;167997:49;-1:-1:-1;168061:16:0;168098:14;;168094:147;;168149:12;;:33;;:12;;;;-1:-1:-1;;;;;168149:12:0;;:33;;;;;;;;;;;;:12;:33;;;;;;;;;;;;;;;;;;;;;168215:10;168201:24;;168094:147;168257:17;168277:24;168290:11;168277:10;:24;:::i;:::-;168257:44;-1:-1:-1;168316:18:0;168353:16;;168349:157;;168406:37;;-1:-1:-1;;;;;168406:23:0;;;:37;;;;;168430:12;;168406:37;;;;168430:12;168406:23;:37;;;;;;;;;;;;;;;;;;;;;168478:12;168462:28;;168349:157;168552:13;168525:24;168538:11;168525:10;:24;:::i;:::-;:40;;;;:::i;:::-;:45;168522:129;;168598:26;;-1:-1:-1;;;168598:26:0;;;;;;;;;;;168522:129;167820:842;;;;;167708:961;;:::o;142292:120::-;142359:7;142386:3;:11;;142398:5;142386:18;;;;;;;;:::i;:::-;;;;;;;;;142379:25;;142292:120;;;;:::o;112869:799::-;113024:4;-1:-1:-1;;;;;113045:13:0;;4344:20;4392:8;113041:620;;113081:72;;-1:-1:-1;;;113081:72:0;;-1:-1:-1;;;;;113081:36:0;;;;;:72;;99780:10;;113132:4;;113138:7;;113147:5;;113081:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;113081:72:0;;;;;;;;-1:-1:-1;;113081:72:0;;;;;;;;;;;;:::i;:::-;;;113077:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;113323:13:0;;113319:272;;113366:60;;-1:-1:-1;;;113366:60:0;;;;;;;:::i;113319:272::-;113541:6;113535:13;113526:6;113522:2;113518:15;113511:38;113077:529;-1:-1:-1;;;;;;113204:51:0;-1:-1:-1;;;113204:51:0;;-1:-1:-1;113197:58:0;;113041:620;-1:-1:-1;113645:4:0;112869:799;;;;;;:::o;150822:214::-;150907:4;-1:-1:-1;;;;;;150931:57:0;;-1:-1:-1;;;150931:57:0;;:97;;;150992:36;151016:11;150992:23;:36::i;125385:275::-;125529:45;125556:4;125562:2;125566:7;125529:26;:45::i;:::-;123650:7;;;;125595:9;125587:65;;;;-1:-1:-1;;;125587:65:0;;19087:2:1;125587:65:0;;;19069:21:1;19126:2;19106:18;;;19099:30;19165:34;19145:18;;;19138:62;-1:-1:-1;;;19216:18:1;;;19209:41;19267:19;;125587:65:0;18885:407:1;12987:451:0;13062:13;13088:19;13120:10;13124:6;13120:1;:10;:::i;:::-;:14;;13133:1;13120:14;:::i;:::-;-1:-1:-1;;;;;13110:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13110:25:0;;13088:47;;-1:-1:-1;;;13146:6:0;13153:1;13146:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;13146:15:0;;;;;;;;;-1:-1:-1;;;13172:6:0;13179:1;13172:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;13172:15:0;;;;;;;;-1:-1:-1;13203:9:0;13215:10;13219:6;13215:1;:10;:::i;:::-;:14;;13228:1;13215:14;:::i;:::-;13203:26;;13198:135;13235:1;13231;:5;13198:135;;;-1:-1:-1;;;13283:5:0;13291:3;13283:11;13270:25;;;;;;;:::i;:::-;;;;13258:6;13265:1;13258:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;13258:37:0;;;;;;;;-1:-1:-1;13320:1:0;13310:11;;;;;13238:3;;;:::i;:::-;;;13198:135;;;-1:-1:-1;13351:10:0;;13343:55;;;;-1:-1:-1;;;13343:55:0;;18726:2:1;13343:55:0;;;18708:21:1;;;18745:18;;;18738:30;18804:34;18784:18;;;18777:62;18856:18;;13343:55:0;18524:356:1;109469:321:0;109599:18;109605:2;109609:7;109599:5;:18::i;:::-;109650:54;109681:1;109685:2;109689:7;109698:5;109650:22;:54::i;:::-;109628:154;;;;-1:-1:-1;;;109628:154:0;;;;;;;:::i;133154:204::-;133239:4;-1:-1:-1;;;;;;133263:47:0;;-1:-1:-1;;;133263:47:0;;:87;;-1:-1:-1;;;;;;;;;;100842:40:0;;;133314:36;100733:157;118012:589;-1:-1:-1;;;;;118218:18:0;;118214:187;;118253:40;118285:7;119428:10;:17;;119401:24;;;;:15;:24;;;;;:44;;;119456:24;;;;;;;;;;;;119324:164;118253:40;118214:187;;;118323:2;-1:-1:-1;;;;;118315:10:0;:4;-1:-1:-1;;;;;118315:10:0;;118311:90;;118342:47;118375:4;118381:7;118342:32;:47::i;:::-;-1:-1:-1;;;;;118415:16:0;;118411:183;;118448:45;118485:7;118448:36;:45::i;118411:183::-;118521:4;-1:-1:-1;;;;;118515:10:0;:2;-1:-1:-1;;;;;118515:10:0;;118511:83;;118542:40;118570:2;118574:7;118542:27;:40::i;110126:382::-;-1:-1:-1;;;;;110206:16:0;;110198:61;;;;-1:-1:-1;;;110198:61:0;;23799:2:1;110198:61:0;;;23781:21:1;;;23818:18;;;23811:30;23877:34;23857:18;;;23850:62;23929:18;;110198:61:0;23597:356:1;110198:61:0;110279:16;110287:7;110279;:16::i;:::-;110278:17;110270:58;;;;-1:-1:-1;;;110270:58:0;;20679:2:1;110270:58:0;;;20661:21:1;20718:2;20698:18;;;20691:30;-1:-1:-1;;;20737:18:1;;;20730:58;20805:18;;110270:58:0;20477:352:1;110270:58:0;110341:45;110370:1;110374:2;110378:7;110341:20;:45::i;:::-;-1:-1:-1;;;;;110399:13:0;;;;;;:9;:13;;;;;:18;;110416:1;;110399:13;:18;;110416:1;;110399:18;:::i;:::-;;;;-1:-1:-1;;110428:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;110428:21:0;-1:-1:-1;;;;;110428:21:0;;;;;;;;110467:33;;110428:16;;;-1:-1:-1;;;;;;;;;;;110467:33:0;110428:16;;110467:33;110126:382;;:::o;120115:988::-;120381:22;120431:1;120406:22;120423:4;120406:16;:22::i;:::-;:26;;;;:::i;:::-;120443:18;120464:26;;;:17;:26;;;;;;120381:51;;-1:-1:-1;120597:28:0;;;120593:328;;-1:-1:-1;;;;;120664:18:0;;120642:19;120664:18;;;:12;:18;;;;;;;;:34;;;;;;;;;120715:30;;;;;;:44;;;120832:30;;:17;:30;;;;;:43;;;120593:328;-1:-1:-1;121017:26:0;;;;:17;:26;;;;;;;;121010:33;;;-1:-1:-1;;;;;121061:18:0;;;;;:12;:18;;;;;:34;;;;;;;121054:41;120115:988::o;121398:1079::-;121676:10;:17;121651:22;;121676:21;;121696:1;;121676:21;:::i;:::-;121708:18;121729:24;;;:15;:24;;;;;;122102:10;:26;;121651:46;;-1:-1:-1;121729:24:0;;121651:46;;122102:26;;;;;;:::i;:::-;;;;;;;;;122080:48;;122166:11;122141:10;122152;122141:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;122246:28;;;:15;:28;;;;;;;:41;;;122418:24;;;;;122411:31;122453:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;121469:1008;;;121398:1079;:::o;118902:221::-;118987:14;119004:20;119021:2;119004:16;:20::i;:::-;-1:-1:-1;;;;;119035:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;119080:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;118902:221:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:336:1:-;78:5;107:52;123:35;151:6;123:35;:::i;:::-;107:52;:::i;:::-;98:61;;182:6;175:5;168:21;222:3;213:6;208:3;204:16;201:25;198:45;;;239:1;236;229:12;198:45;288:6;283:3;276:4;269:5;265:16;252:43;342:1;335:4;326:6;319:5;315:18;311:29;304:40;14:336;;;;;:::o;355:134::-;423:20;;452:31;423:20;452:31;:::i;:::-;355:134;;;:::o;494:128::-;559:20;;588:28;559:20;588:28;:::i;627:130::-;693:20;;722:29;693:20;722:29;:::i;762:134::-;839:13;;861:29;839:13;861:29;:::i;901:221::-;944:5;997:3;990:4;982:6;978:17;974:27;964:55;;1015:1;1012;1005:12;964:55;1037:79;1112:3;1103:6;1090:20;1083:4;1075:6;1071:17;1037:79;:::i;1127:867::-;1178:5;1226:6;1214:9;1209:3;1205:19;1201:32;1198:52;;;1246:1;1243;1236:12;1198:52;1268:22;;:::i;:::-;1259:31;;1335:3;1328:4;1317:9;1313:20;1309:30;1299:58;;1353:1;1350;1343:12;1299:58;1377:22;;:::i;:::-;1421:3;1444:9;1487:4;1476:9;1472:20;1511:3;1507:2;1504:11;1501:31;;;1528:1;1525;1518:12;1501:31;1550:1;1560:271;1574:4;1571:1;1568:11;1560:271;;;1649:3;1636:17;1666:31;1689:7;1666:31;:::i;:::-;1710:20;;1753:4;1777:12;;;;1809;;;;;1594:1;1587:9;1560:271;;;1564:3;1854:5;1847;1840:20;1894;1911:2;1894:20;:::i;:::-;1887:4;1880:5;1876:16;1869:46;;;;;1949:38;1981:4;1970:9;1966:20;1949:38;:::i;:::-;1942:4;1935:5;1931:16;1924:64;1127:867;;;;:::o;1999:893::-;2061:5;2109:6;2097:9;2092:3;2088:19;2084:32;2081:52;;;2129:1;2126;2119:12;2081:52;2151:22;;:::i;:::-;2142:31;;2218:3;2211:4;2200:9;2196:20;2192:30;2182:58;;2236:1;2233;2226:12;2182:58;2260:22;;:::i;:::-;2304:3;2327:9;2370:4;2359:9;2355:20;2394:3;2390:2;2387:11;2384:31;;;2411:1;2408;2401:12;2384:31;2433:1;2443:264;2457:4;2454:1;2451:11;2443:264;;;2525:3;2519:10;2542:31;2565:7;2542:31;:::i;:::-;2586:20;;2629:4;2653:12;;;;2685;;;;;2477:1;2470:9;2443:264;;;2447:3;2730:5;2723;2716:20;2770:31;2798:2;2770:31;:::i;:::-;2763:4;2756:5;2752:16;2745:57;;;;;2836:49;2879:4;2868:9;2864:20;2836:49;:::i;2897:247::-;2956:6;3009:2;2997:9;2988:7;2984:23;2980:32;2977:52;;;3025:1;3022;3015:12;2977:52;3064:9;3051:23;3083:31;3108:5;3083:31;:::i;3149:388::-;3217:6;3225;3278:2;3266:9;3257:7;3253:23;3249:32;3246:52;;;3294:1;3291;3284:12;3246:52;3333:9;3320:23;3352:31;3377:5;3352:31;:::i;:::-;3402:5;-1:-1:-1;3459:2:1;3444:18;;3431:32;3472:33;3431:32;3472:33;:::i;:::-;3524:7;3514:17;;;3149:388;;;;;:::o;3542:456::-;3619:6;3627;3635;3688:2;3676:9;3667:7;3663:23;3659:32;3656:52;;;3704:1;3701;3694:12;3656:52;3743:9;3730:23;3762:31;3787:5;3762:31;:::i;:::-;3812:5;-1:-1:-1;3869:2:1;3854:18;;3841:32;3882:33;3841:32;3882:33;:::i;:::-;3542:456;;3934:7;;-1:-1:-1;;;3988:2:1;3973:18;;;;3960:32;;3542:456::o;4003:794::-;4098:6;4106;4114;4122;4175:3;4163:9;4154:7;4150:23;4146:33;4143:53;;;4192:1;4189;4182:12;4143:53;4231:9;4218:23;4250:31;4275:5;4250:31;:::i;:::-;4300:5;-1:-1:-1;4357:2:1;4342:18;;4329:32;4370:33;4329:32;4370:33;:::i;:::-;4422:7;-1:-1:-1;4476:2:1;4461:18;;4448:32;;-1:-1:-1;4531:2:1;4516:18;;4503:32;-1:-1:-1;;;;;4547:30:1;;4544:50;;;4590:1;4587;4580:12;4544:50;4613:22;;4666:4;4658:13;;4654:27;-1:-1:-1;4644:55:1;;4695:1;4692;4685:12;4644:55;4718:73;4783:7;4778:2;4765:16;4760:2;4756;4752:11;4718:73;:::i;:::-;4708:83;;;4003:794;;;;;;;:::o;4802:382::-;4867:6;4875;4928:2;4916:9;4907:7;4903:23;4899:32;4896:52;;;4944:1;4941;4934:12;4896:52;4983:9;4970:23;5002:31;5027:5;5002:31;:::i;:::-;5052:5;-1:-1:-1;5109:2:1;5094:18;;5081:32;5122:30;5081:32;5122:30;:::i;5189:315::-;5257:6;5265;5318:2;5306:9;5297:7;5293:23;5289:32;5286:52;;;5334:1;5331;5324:12;5286:52;5373:9;5360:23;5392:31;5417:5;5392:31;:::i;:::-;5442:5;5494:2;5479:18;;;;5466:32;;-1:-1:-1;;;5189:315:1:o;5509:245::-;5576:6;5629:2;5617:9;5608:7;5604:23;5600:32;5597:52;;;5645:1;5642;5635:12;5597:52;5677:9;5671:16;5696:28;5718:5;5696:28;:::i;5759:180::-;5818:6;5871:2;5859:9;5850:7;5846:23;5842:32;5839:52;;;5887:1;5884;5877:12;5839:52;-1:-1:-1;5910:23:1;;5759:180;-1:-1:-1;5759:180:1:o;5944:315::-;6012:6;6020;6073:2;6061:9;6052:7;6048:23;6044:32;6041:52;;;6089:1;6086;6079:12;6041:52;6125:9;6112:23;6102:33;;6185:2;6174:9;6170:18;6157:32;6198:31;6223:5;6198:31;:::i;6264:248::-;6332:6;6340;6393:2;6381:9;6372:7;6368:23;6364:32;6361:52;;;6409:1;6406;6399:12;6361:52;-1:-1:-1;;6432:23:1;;;6502:2;6487:18;;;6474:32;;-1:-1:-1;6264:248:1:o;6517:245::-;6575:6;6628:2;6616:9;6607:7;6603:23;6599:32;6596:52;;;6644:1;6641;6634:12;6596:52;6683:9;6670:23;6702:30;6726:5;6702:30;:::i;6767:249::-;6836:6;6889:2;6877:9;6868:7;6864:23;6860:32;6857:52;;;6905:1;6902;6895:12;6857:52;6937:9;6931:16;6956:30;6980:5;6956:30;:::i;7021:243::-;7078:6;7131:2;7119:9;7110:7;7106:23;7102:32;7099:52;;;7147:1;7144;7137:12;7099:52;7186:9;7173:23;7205:29;7228:5;7205:29;:::i;7269:322::-;7338:6;7391:2;7379:9;7370:7;7366:23;7362:32;7359:52;;;7407:1;7404;7397:12;7359:52;7434:23;;-1:-1:-1;;;;;7469:30:1;;7466:50;;;7512:1;7509;7502:12;7466:50;7535;7577:7;7568:6;7557:9;7553:22;7535:50;:::i;7596:635::-;7676:6;7729:2;7717:9;7708:7;7704:23;7700:32;7697:52;;;7745:1;7742;7735:12;7697:52;7772:16;;-1:-1:-1;;;;;7800:30:1;;7797:50;;;7843:1;7840;7833:12;7797:50;7866:22;;7919:4;7911:13;;7907:27;-1:-1:-1;7897:55:1;;7948:1;7945;7938:12;7897:55;7977:2;7971:9;8002:48;8018:31;8046:2;8018:31;:::i;8002:48::-;8073:2;8066:5;8059:17;8113:7;8108:2;8103;8099;8095:11;8091:20;8088:33;8085:53;;;8134:1;8131;8124:12;8085:53;8147:54;8198:2;8193;8186:5;8182:14;8177:2;8173;8169:11;8147:54;:::i;:::-;8220:5;7596:635;-1:-1:-1;;;;;7596:635:1:o;8236:2070::-;8323:6;8376:2;8364:9;8355:7;8351:23;8347:32;8344:52;;;8392:1;8389;8382:12;8344:52;8419:23;;-1:-1:-1;;;;;8491:14:1;;;8488:34;;;8518:1;8515;8508:12;8488:34;8541:22;;;;8597:6;8579:16;;;8575:29;8572:49;;;8617:1;8614;8607:12;8572:49;8643:22;;:::i;:::-;8703:2;8690:16;8731:2;8721:8;8718:16;8715:36;;;8747:1;8744;8737:12;8715:36;8774:45;8811:7;8800:8;8796:2;8792:17;8774:45;:::i;:::-;8767:5;8760:60;;8866:2;8862;8858:11;8845:25;8895:2;8885:8;8882:16;8879:36;;;8911:1;8908;8901:12;8879:36;8947:45;8984:7;8973:8;8969:2;8965:17;8947:45;:::i;:::-;8942:2;8935:5;8931:14;8924:69;;9039:2;9035;9031:11;9018:25;9068:2;9058:8;9055:16;9052:36;;;9084:1;9081;9074:12;9052:36;9120:45;9157:7;9146:8;9142:2;9138:17;9120:45;:::i;:::-;9115:2;9108:5;9104:14;9097:69;;9212:2;9208;9204:11;9191:25;9241:2;9231:8;9228:16;9225:36;;;9257:1;9254;9247:12;9225:36;9293:45;9330:7;9319:8;9315:2;9311:17;9293:45;:::i;:::-;9288:2;9281:5;9277:14;9270:69;;9393:3;9389:2;9385:12;9372:26;9366:3;9359:5;9355:15;9348:51;9432:30;9457:3;9453:2;9449:12;9432:30;:::i;:::-;9426:3;9419:5;9415:15;9408:55;9517:3;9513:2;9509:12;9496:26;9490:3;9483:5;9479:15;9472:51;9577:3;9573:2;9569:12;9556:26;9550:3;9543:5;9539:15;9532:51;9602:3;9658:2;9654;9650:11;9637:25;9632:2;9625:5;9621:14;9614:49;;9682:3;9738:2;9734;9730:11;9717:25;9712:2;9705:5;9701:14;9694:49;;9762:3;9797:28;9821:2;9817;9813:11;9797:28;:::i;:::-;9781:14;;;9774:52;9845:3;9880:28;9896:11;;;9880:28;:::i;:::-;9864:14;;;9857:52;9928:3;9969:11;;;9956:25;9993:16;;;9990:36;;;10022:1;10019;10012:12;9990:36;10058:45;10095:7;10084:8;10080:2;10076:17;10058:45;:::i;:::-;10053:2;10046:5;10042:14;10035:69;;;10123:3;10113:13;;10158:31;10185:2;10181;10177:11;10158:31;:::i;:::-;10153:2;10146:5;10142:14;10135:55;10209:3;10199:13;;10244:31;10271:2;10267;10263:11;10244:31;:::i;:::-;10228:14;;;10221:55;;;;10232:5;8236:2070;-1:-1:-1;;;;8236:2070:1:o;10311:1286::-;10409:6;10462;10450:9;10441:7;10437:23;10433:36;10430:56;;;10482:1;10479;10472:12;10430:56;10508:22;;:::i;:::-;10560:9;10554:16;10579:31;10602:7;10579:31;:::i;:::-;10619:22;;10660:2;10692:18;;;10686:25;10720:31;10686:25;10720:31;:::i;:::-;10767:14;;;10760:31;10836:2;10821:18;;10815:25;10849:31;10815:25;10849:31;:::i;:::-;10907:2;10896:14;;10889:31;10958:3;10943:19;;10939:33;-1:-1:-1;10929:61:1;;10986:1;10983;10976:12;10929:61;11010:22;;:::i;:::-;11054:3;11092:2;11081:9;11077:18;11129:6;11118:9;11114:22;11155:7;11151:2;11148:15;11145:35;;;11176:1;11173;11166:12;11145:35;11198:1;11208:240;11222:6;11219:1;11216:13;11208:240;;;11292:3;11286:10;11309:32;11333:7;11309:32;:::i;:::-;11354:20;;11394:12;;;;11426;;;;11244:1;11237:9;11208:240;;;11212:3;11480:5;11475:2;11468:5;11464:14;11457:29;11520:46;11558:7;11554:2;11520:46;:::i;:::-;11513:4;11502:16;;11495:72;-1:-1:-1;11506:5:1;;10311:1286;-1:-1:-1;;;;;;;10311:1286:1:o;11787:184::-;11857:6;11910:2;11898:9;11889:7;11885:23;11881:32;11878:52;;;11926:1;11923;11916:12;11878:52;-1:-1:-1;11949:16:1;;11787:184;-1:-1:-1;11787:184:1:o;11976:1441::-;12072:6;12080;12124:9;12115:7;12111:23;12154:6;12150:2;12146:15;12143:35;;;12174:1;12171;12164:12;12143:35;12197:23;;;-1:-1:-1;12239:2:1;12275:8;-1:-1:-1;;12257:16:1;;12253:31;12250:51;;;12297:1;12294;12287:12;12250:51;12323:22;;:::i;:::-;12310:35;;12397:2;12386:9;12382:18;12369:32;12410:31;12433:7;12410:31;:::i;:::-;12450:22;;12524:2;12509:18;;12496:32;12537:31;12496:32;12537:31;:::i;:::-;12584:14;;;12577:31;12660:2;12645:18;;12632:32;12673:31;12632:32;12673:31;:::i;:::-;12731:2;12720:14;;12713:31;12782:3;12767:19;;12763:33;-1:-1:-1;12753:61:1;;12810:1;12807;12800:12;12753:61;12834:22;;:::i;:::-;12878:3;12916;12905:9;12901:19;12954:6;12943:9;12939:22;12980:7;12976:2;12973:15;12970:35;;;13001:1;12998;12991:12;12970:35;13023:1;13033:247;13047:6;13044:1;13041:13;13033:247;;;13124:3;13111:17;13141:32;13165:7;13141:32;:::i;:::-;13186:20;;13226:12;;;;13258;;;;13069:1;13062:9;13033:247;;;13037:3;13312:5;13307:2;13300:5;13296:14;13289:29;13351:35;13378:7;13374:2;13351:35;:::i;:::-;13345:3;13338:5;13334:15;13327:60;;;;;;13406:5;13396:15;;;11976:1441;;;;;:::o;13422:392::-;13496:6;13504;13557:2;13545:9;13536:7;13532:23;13528:32;13525:52;;;13573:1;13570;13563:12;13525:52;13612:9;13599:23;13631:29;13654:5;13631:29;:::i;13819:112::-;-1:-1:-1;;;;;13893:31:1;13881:44;;13819:112::o;14032:257::-;14073:3;14111:5;14105:12;14138:6;14133:3;14126:19;14154:63;14210:6;14203:4;14198:3;14194:14;14187:4;14180:5;14176:16;14154:63;:::i;:::-;14271:2;14250:15;-1:-1:-1;;14246:29:1;14237:39;;;;14278:4;14233:50;;14032:257;-1:-1:-1;;14032:257:1:o;14390:546::-;14458:12;;14492:3;14559:1;14569:215;14583:4;14580:1;14577:11;14569:215;;;14658:13;;14655:1;14644:28;14630:43;;14696:4;14759:15;;;;14722:14;;;;14603:1;14596:9;14569:215;;;14573:3;;;14849:4;14842:5;14838:16;14832:23;14829:1;14818:38;14809:6;14804:3;14800:16;14793:64;14922:4;14915:5;14911:16;14905:23;14902:1;14891:38;14882:6;14877:3;14873:16;14866:64;14390:546;;:::o;15487:470::-;15666:3;15704:6;15698:13;15720:53;15766:6;15761:3;15754:4;15746:6;15742:17;15720:53;:::i;:::-;15836:13;;15795:16;;;;15858:57;15836:13;15795:16;15892:4;15880:17;;15858:57;:::i;:::-;15931:20;;15487:470;-1:-1:-1;;;;15487:470:1:o;15962:786::-;-1:-1:-1;;;16368:3:1;16361:38;16343:3;16428:6;16422:13;16444:62;16499:6;16494:2;16489:3;16485:12;16478:4;16470:6;16466:17;16444:62;:::i;:::-;-1:-1:-1;;;16565:2:1;16525:16;;;16557:11;;;16550:40;16615:13;;16637:63;16615:13;16686:2;16678:11;;16671:4;16659:17;;16637:63;:::i;:::-;16720:17;16739:2;16716:26;;15962:786;-1:-1:-1;;;;15962:786:1:o;16753:203::-;-1:-1:-1;;;;;16917:32:1;;;;16899:51;;16887:2;16872:18;;16753:203::o;16961:488::-;-1:-1:-1;;;;;17230:15:1;;;17212:34;;17282:15;;17277:2;17262:18;;17255:43;17329:2;17314:18;;17307:34;;;17377:3;17372:2;17357:18;;17350:31;;;17155:4;;17398:45;;17423:19;;17415:6;17398:45;:::i;:::-;17390:53;16961:488;-1:-1:-1;;;;;;16961:488:1:o;18300:219::-;18449:2;18438:9;18431:21;18412:4;18469:44;18509:2;18498:9;18494:18;18486:6;18469:44;:::i;20058:414::-;20260:2;20242:21;;;20299:2;20279:18;;;20272:30;20338:34;20333:2;20318:18;;20311:62;-1:-1:-1;;;20404:2:1;20389:18;;20382:48;20462:3;20447:19;;20058:414::o;25599:413::-;25801:2;25783:21;;;25840:2;25820:18;;;25813:30;25879:34;25874:2;25859:18;;25852:62;-1:-1:-1;;;25945:2:1;25930:18;;25923:47;26002:3;25987:19;;25599:413::o;26430:355::-;26632:2;26614:21;;;26671:2;26651:18;;;26644:30;26710:33;26705:2;26690:18;;26683:61;26776:2;26761:18;;26430:355::o;27623:2276::-;27808:2;27797:9;27790:21;27771:4;27846:6;27840:13;27872:6;27914:2;27909;27898:9;27894:18;27887:30;27940:51;27986:3;27975:9;27971:19;27957:12;27940:51;:::i;:::-;27926:65;;28040:2;28032:6;28028:15;28022:22;28067:2;28063:7;28134:2;28122:9;28114:6;28110:22;28106:31;28101:2;28090:9;28086:18;28079:59;28161:40;28194:6;28178:14;28161:40;:::i;:::-;28147:54;;28250:2;28242:6;28238:15;28232:22;28210:44;;28318:2;28306:9;28298:6;28294:22;28290:31;28285:2;28274:9;28270:18;28263:59;28345:40;28378:6;28362:14;28345:40;:::i;:::-;28331:54;;28434:2;28426:6;28422:15;28416:22;28394:44;;28503:2;28491:9;28483:6;28479:22;28475:31;28469:3;28458:9;28454:19;28447:60;28530:40;28563:6;28547:14;28530:40;:::i;:::-;28516:54;;28625:3;28617:6;28613:16;28607:23;28601:3;28590:9;28586:19;28579:52;28680:3;28672:6;28668:16;28662:23;28640:45;;28694:53;28742:3;28731:9;28727:19;28711:14;14369:1;14358:20;14346:33;;14294:91;28694:53;28802:3;28790:16;;28784:23;28778:3;28763:19;;;28756:52;;;;28833:16;;28827:23;28869:3;28888:18;;;28881:30;;;;28936:15;;28930:22;28971:3;28990:18;;;28983:30;;;;29038:15;;29032:22;29073:3;29092:18;;;29085:30;;;;29152:15;;29146:22;;-1:-1:-1;29187:3:1;29199:51;29231:18;;;29146:22;14006:13;13999:21;13987:34;;13936:91;29199:51;29287:15;;29281:22;;-1:-1:-1;29323:3:1;29335:52;29367:19;;;29281:22;14006:13;13999:21;13987:34;;13936:91;29335:52;29436:3;29428:6;29424:16;29418:23;29396:45;;;29461:3;29529:2;29517:9;29509:6;29505:22;29501:31;29495:3;29484:9;29480:19;29473:60;29556:40;29589:6;29573:14;29556:40;:::i;:::-;29542:54;;29645:3;29637:6;29633:16;29627:23;29605:45;;;;29670:3;29682:63;29740:3;29729:9;29725:19;29709:14;29682:63;:::i;:::-;29782:16;;29776:23;;-1:-1:-1;29808:62:1;29851:18;;;29776:23;29808:62;:::i;:::-;-1:-1:-1;29887:6:1;;27623:2276;-1:-1:-1;;;;27623:2276:1:o;29904:962::-;30120:13;;30152:1;30180:18;;;30162:37;;30218:4;30268:15;;;30262:22;30286:4;30258:33;30238:18;;;30231:61;30362:4;30350:17;;;30344:24;30341:1;30330:39;30308:20;;;30301:69;30417:4;30405:17;;;30399:24;30094:6;30079:22;;;30152:1;30443:20;;30052:4;30545:187;30559:6;30556:1;30553:13;30545:187;;;30625:13;;30640:10;30621:30;30609:43;;30707:15;;;;30672:12;;;;30574:10;;30545:187;;;30549:3;;;;;30781:4;30773:6;30769:17;30763:24;30796:64;30850:8;30839:9;30835:24;30819:14;30796:64;:::i;31388:253::-;31460:2;31454:9;31502:4;31490:17;;-1:-1:-1;;;;;31522:34:1;;31558:22;;;31519:62;31516:88;;;31584:18;;:::i;:::-;31620:2;31613:22;31388:253;:::o;31646:255::-;31718:2;31712:9;31760:6;31748:19;;-1:-1:-1;;;;;31782:34:1;;31818:22;;;31779:62;31776:88;;;31844:18;;:::i;31906:253::-;31978:2;31972:9;32020:4;32008:17;;-1:-1:-1;;;;;32040:34:1;;32076:22;;;32037:62;32034:88;;;32102:18;;:::i;32164:253::-;32236:2;32230:9;32278:4;32266:17;;-1:-1:-1;;;;;32298:34:1;;32334:22;;;32295:62;32292:88;;;32360:18;;:::i;32422:255::-;32494:2;32488:9;32536:6;32524:19;;-1:-1:-1;;;;;32558:34:1;;32594:22;;;32555:62;32552:88;;;32620:18;;:::i;32682:275::-;32753:2;32747:9;32818:2;32799:13;;-1:-1:-1;;32795:27:1;32783:40;;-1:-1:-1;;;;;32838:34:1;;32874:22;;;32835:62;32832:88;;;32900:18;;:::i;:::-;32936:2;32929:22;32682:275;;-1:-1:-1;32682:275:1:o;32962:186::-;33010:4;-1:-1:-1;;;;;33032:30:1;;33029:56;;;33065:18;;:::i;:::-;-1:-1:-1;33131:2:1;33110:15;-1:-1:-1;;33106:29:1;33137:4;33102:40;;32962:186::o;33153:128::-;33193:3;33224:1;33220:6;33217:1;33214:13;33211:39;;;33230:18;;:::i;:::-;-1:-1:-1;33266:9:1;;33153:128::o;33286:120::-;33326:1;33352;33342:35;;33357:18;;:::i;:::-;-1:-1:-1;33391:9:1;;33286:120::o;33411:168::-;33451:7;33517:1;33513;33509:6;33505:14;33502:1;33499:21;33494:1;33487:9;33480:17;33476:45;33473:71;;;33524:18;;:::i;:::-;-1:-1:-1;33564:9:1;;33411:168::o;33584:267::-;33623:4;33652:9;;;33677:10;;-1:-1:-1;;;33696:19:1;;33689:27;;33673:44;33670:70;;;33720:18;;:::i;:::-;-1:-1:-1;;;;;33767:27:1;;33760:35;;33752:44;;33749:70;;;33799:18;;:::i;:::-;-1:-1:-1;;33836:9:1;;33584:267::o;33856:125::-;33896:4;33924:1;33921;33918:8;33915:34;;;33929:18;;:::i;:::-;-1:-1:-1;33966:9:1;;33856:125::o;33986:258::-;34058:1;34068:113;34082:6;34079:1;34076:13;34068:113;;;34158:11;;;34152:18;34139:11;;;34132:39;34104:2;34097:10;34068:113;;;34199:6;34196:1;34193:13;34190:48;;;-1:-1:-1;;34234:1:1;34216:16;;34209:27;33986:258::o;34249:136::-;34288:3;34316:5;34306:39;;34325:18;;:::i;:::-;-1:-1:-1;;;34361:18:1;;34249:136::o;34390:380::-;34469:1;34465:12;;;;34512;;;34533:61;;34587:4;34579:6;34575:17;34565:27;;34533:61;34640:2;34632:6;34629:14;34609:18;34606:38;34603:161;;;34686:10;34681:3;34677:20;34674:1;34667:31;34721:4;34718:1;34711:15;34749:4;34746:1;34739:15;34603:161;;34390:380;;;:::o;34775:135::-;34814:3;-1:-1:-1;;34835:17:1;;34832:43;;;34855:18;;:::i;:::-;-1:-1:-1;34902:1:1;34891:13;;34775:135::o;34915:112::-;34947:1;34973;34963:35;;34978:18;;:::i;:::-;-1:-1:-1;35012:9:1;;34915:112::o;35032:127::-;35093:10;35088:3;35084:20;35081:1;35074:31;35124:4;35121:1;35114:15;35148:4;35145:1;35138:15;35164:127;35225:10;35220:3;35216:20;35213:1;35206:31;35256:4;35253:1;35246:15;35280:4;35277:1;35270:15;35296:127;35357:10;35352:3;35348:20;35345:1;35338:31;35388:4;35385:1;35378:15;35412:4;35409:1;35402:15;35428:127;35489:10;35484:3;35480:20;35477:1;35470:31;35520:4;35517:1;35510:15;35544:4;35541:1;35534:15;35560:127;35621:10;35616:3;35612:20;35609:1;35602:31;35652:4;35649:1;35642:15;35676:4;35673:1;35666:15;35692:131;-1:-1:-1;;;;;35767:31:1;;35757:42;;35747:70;;35813:1;35810;35803:12;35828:118;35914:5;35907:13;35900:21;35893:5;35890:32;35880:60;;35936:1;35933;35926:12;35951:131;-1:-1:-1;;;;;;36025:32:1;;36015:43;;36005:71;;36072:1;36069;36062:12;36087:118;36174:5;36171:1;36160:20;36153:5;36150:31;36140:59;;36195:1;36192;36185:12;36210:118;36297:5;36294:1;36283:20;36276:5;36273:31;36263:59;;36318:1;36315;36308:12;36333:121;36418:10;36411:5;36407:22;36400:5;36397:33;36387:61;;36444:1;36441;36434:12;36459:114;36543:4;36536:5;36532:16;36525:5;36522:27;36512:55;;36563:1;36560;36553:12
Swarm Source
ipfs://74077fcb1c1a38bcb75546bd837be4866889e0be2bd30c2dfc34a22c738e3cf0
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.