Contract 0x0A058646784E2cF89B24BFE12C9C2f2920342fA7 1

 
Ad
Ad
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x8549855d94484a3c4b30a6bf749ce3a2dd22b016cfc23358b5de3173211fd3eaClaim204934792021-10-22 16:53:0317 mins ago0xa68da471f0cd389fc94a05de4349aad8303b1711 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00297066
0xbbd08a424e3eac26bdb19a9e5573fbe4f7d19166c7f495f361702dd8be0a27aeClaim All204933072021-10-22 16:44:5925 mins ago0x477181370361900c058f2b56ac5ee5c0f175e75d IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010555125
0xd27d9bdac92e29b4ddf3974a466a359e03810adf2314fe54317123e49eaa6956Claim All204931522021-10-22 16:38:3931 mins ago0x1daa53338fb16f2579faae8144763f421e64d5f4 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.01398519
0xdc54ac7505ee4c920250bfee751e55966fd17fc9f969b4837571536cca2c7076Claim All204929192021-10-22 16:25:1544 mins ago0x0dffd12121759bff4221a1cafb9fa8457ec18c57 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.011447275
0x8d63d2a91855fc15c6c5343f7e056929520f73c9d2479f6c0fd5856c73767633Claim All204926762021-10-22 16:16:5753 mins ago0x07494efb9fc623b74b31714192826c70eba7423f IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.01294925
0x330ca02fb4040151e5b1827d62077873570d0dc8cf533cf5a05ca01a59fdc6b2Claim All204923582021-10-22 16:00:041 hr 10 mins ago0xb35d24ff2c9a5924352b9b5002ad3d5c32e3f5a6 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00877086
0x302065a89e33c5a7ddd6725427c3eec8dcd340c0c34031ae7051422628447e75Claim All204915342021-10-22 15:27:001 hr 43 mins ago0x232a77b95a8affb431f8965cc2f8dd00f2383836 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.009064475
0xb6cb2547c20d594914764b593fcd602224ec411473d2417919d5874792bdb8cfDeposit NFT204910102021-10-22 15:02:422 hrs 7 mins ago0x49de5fb13f195192baaa83af6ef8d31f75b2b165 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.09358258
0x8efdb34bdbf76ff85068844dcdf643f49a221670e439375555f0a32585d466f3Claim All204909782021-10-22 15:01:282 hrs 8 mins ago0x43017bb855a827696ca3aa6f4586bc6e8bf8fa26 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.009956625
0xfbdf1f9321c78a4f8119de988b2f02c250d99b0840fd03b50871e1b014fd6766Claim All204909512021-10-22 15:00:342 hrs 9 mins ago0xd022a7fe29b000c427686b91244aa17ac8a92ddf IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00817236
0x456d668471249fa06e3884fe729937f4e8404086d7e7181216fa8ece973d6ca0Claim All204905352021-10-22 14:46:142 hrs 23 mins ago0x4d3122ea24d779cf7741f1d6a5829905b235c48c IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010555125
0x1f557646833aab7359bacca39d4b7d3d3a34c12ccebe2440fd9f1820292551aeClaim All204905162021-10-22 14:45:362 hrs 24 mins ago0xcb7181a31dad17d09c0456ffc6299a6e9df0c2ff IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00817236
0x1181b727b88cba2138c2e46fbd12aca55ec7743173b9f4ecb41c3e5a260797b4Deposit NFT204904782021-10-22 14:43:422 hrs 26 mins ago0x15b58f23cb921cc50eca5a6507a25b370c585927 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00801924
0xe2b44e54a246c2dc6866aa02fcea6284df75a571dc1c1fc2d16b8fe130c3aaceClaim All204904602021-10-22 14:42:302 hrs 27 mins ago0xdf5b04457ee77a0fa0d79ec098f69fcf79a19d5a IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.011447275
0x57c8bd59d02132af9a22e547d5ff6b285fba32b472a32a1a6d27a883d26a41abClaim All204901252021-10-22 14:30:022 hrs 40 mins ago0xc989c172964809cf922677e4c8747f4f9c395259 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010555125
0x722ff2bf8f4b30a6e506348a4476b720d1db79e68af1af97b6494626b168a250Claim All204901112021-10-22 14:29:302 hrs 40 mins ago0xcefd86066047c7b08ff529ba078d0692bcbfa798 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00981195
0xa1e33dd631926054062752e7b4c3f11c2d14be8fd22449bdb3db0f14f999ca24Claim All204900012021-10-22 14:24:142 hrs 45 mins ago0x48f9caa7a23c9eb9b6cfeb2bd392472aef0d03f9 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010848775
0x9008f88d0ced362f786f1145d03ed79b097504395ac6809728d5fea3597dfc3aClaim204899592021-10-22 14:20:342 hrs 49 mins ago0xbc960200a76aff47682f45d268557c5fa8c16e4b IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.004795392
0x41de57801e0037763452b9f3b82da72c53d632a569641ce16ebee5b8311e89b4Claim All204899102021-10-22 14:16:122 hrs 53 mins ago0x0ea649739c6ccf2c7244822b91bd8527b0885172 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.00751788
0x4b6d81ff14ddffc71838619b40917ece6a3843d795b0893cd9430d6838d6bb25Claim All204896652021-10-22 14:03:343 hrs 6 mins ago0x5ca8d20146f05f7dfd25c068eb53027f422ecfa1 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.009956625
0xa4afeccf5c4a9427d40cd8c51c948cd0e9cb4940cbb189ae5b4321e89fe1447fClaim All204895932021-10-22 14:01:023 hrs 9 mins ago0x0c4b47d7eb199e6ed3bf0af6fe2ab33df7faeeeb IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010555125
0x069178ad3497cede2ab64a3a0a4a68002cd13fe5b5fb035150796c302d89b078Deposit NFT204895302021-10-22 13:58:523 hrs 11 mins ago0xa21df89c3f7375ebe7381cc858e0aa0b7c83aee0 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.02734508
0x76b9f4d73b72f5e14fc8f1df2480a83ba551f13f46673881c4b61bd73c9ca82bClaim All204895062021-10-22 13:58:043 hrs 12 mins ago0x82c8edca9c4ceb030725c226ff49f95252a4a150 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010555125
0x17a03b9eb0a3d2635c68e45a900426e98948d799fbe4cace8e525f71c95f0c82Claim All204894012021-10-22 13:54:143 hrs 15 mins ago0xa21df89c3f7375ebe7381cc858e0aa0b7c83aee0 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.010848775
0x3f2ef8e96cc5ef0ad20ef3215e609a8471062d673eb3e11d73c51864b78c41f0Claim All204893992021-10-22 13:54:063 hrs 16 mins ago0xa2af46f436af8479e5637fd2be1d8058f84bf279 IN  0x0a058646784e2cf89b24bfe12c9c2f2920342fa70 MATIC0.008173935
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x21b8339760eBD0dD7644Aad8D0b54F6CED2aB633

Contract Name:
ChickMining

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-07-21
*/

// File: ..\node_modules\@openzeppelin\contracts\utils\Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin\contracts\GSN\Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

// File: @openzeppelin\contracts\token\ERC20\IERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin\contracts\math\SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin\contracts\utils\Address.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin\contracts\utils\ReentrancyGuard.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        _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: @openzeppelin\contracts\token\ERC20\SafeERC20.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @openzeppelin\contracts\access\Ownable.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: ..\node_modules\@openzeppelin\contracts\introspection\IERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721Metadata.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721Enumerable.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <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: ..\node_modules\@openzeppelin\contracts\token\ERC721\IERC721Receiver.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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: ..\node_modules\@openzeppelin\contracts\introspection\ERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\EnumerableSet.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            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] = toDeleteIndex + 1; // All indexes are 1-based

            // 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) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // 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);
    }

    // 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))));
    }


    // 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));
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\EnumerableMap.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element 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(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

// File: ..\node_modules\@openzeppelin\contracts\utils\Strings.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin\contracts\token\ERC721\ERC721.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;












/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // 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;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @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 _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @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 _tokenURI = _tokenURIs[tokenId];
        string memory base = baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(base, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view virtual returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @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 || ERC721.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 _tokenOwners.contains(tokenId);
    }

    /**
     * @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 || ERC721.isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(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); // internal owner

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(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"); // internal owner
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId); // internal owner
    }

    /**
     * @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 { }
}


// File: contracts\OwnableContract.sol

pragma solidity 0.6.6;

contract OwnableContract {
    address public owner;
    address public pendingOwner;
    address public admin;

    event NewAdmin(address oldAdmin, address newAdmin);
    event NewOwner(address oldOwner, address newOwner);
    event NewPendingOwner(address oldPendingOwner, address newPendingOwner);

    constructor() public {
        owner = msg.sender;
        admin = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner,"onlyOwner");
        _;
    }

    modifier onlyPendingOwner {
        require(msg.sender == pendingOwner,"onlyPendingOwner");
        _;
    }

    modifier onlyAdmin {
        require(msg.sender == admin || msg.sender == owner,"onlyAdmin");
        _;
    } 
    
    function transferOwnership(address _pendingOwner) public onlyOwner {
        emit NewPendingOwner(pendingOwner, _pendingOwner);
        pendingOwner = _pendingOwner;
    }

    function renounceOwnership() public virtual onlyOwner {
        emit NewOwner(owner, address(0));
        emit NewAdmin(admin, address(0));
        emit NewPendingOwner(pendingOwner, address(0));

        owner = address(0);
        pendingOwner = address(0);
        admin = address(0);
    }
    
    function acceptOwner() public onlyPendingOwner {
        emit NewOwner(owner, pendingOwner);
        owner = pendingOwner;

        address newPendingOwner = address(0);
        emit NewPendingOwner(pendingOwner, newPendingOwner);
        pendingOwner = newPendingOwner;
    }    
    
    function setAdmin(address newAdmin) public onlyOwner {
        emit NewAdmin(admin, newAdmin);
        admin = newAdmin;
    }
}

// File: contracts\ChickMining.sol

pragma solidity 0.6.6;











contract ChickMining is OwnableContract, ReentrancyGuard, IERC721Receiver{
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.UintSet;

    // Info of each user.
    struct UserInfo {
        uint256 amount;     // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt. See explanation below.
        uint256 rewardToClaim; // when deposit or withdraw, update pending reward  to rewardToClaim.
        EnumerableSet.UintSet holderTokens;
    }

    struct PoolInfo {
        address lpToken;            // Address of   LP token.
        uint256 allocPoint;         // How many allocation points assigned to this pool. mining token  distribute per block.
        uint256 lastRewardBlock;    // Last block number that mining token distribution occurs.
        uint256 accPerShare;        // Accumulated mining token per share, times 1e18. See below.
        uint256 maxAmountPerUser;   // The maximum amount of deposits per user, 0 means unlimited.
        uint256 lpTokenAmount;      // lpToken deposit amount in this pool, for calculating APY
        bool    isNFT;              // true : NFT; false: ERC20
    }

    IERC20 public miningToken; // The mining token TOKEN


    PoolInfo[] public poolInfo; // Info of each pool.
    mapping(uint256 => mapping(address => UserInfo)) private userInfo; // Info of each user that stakes LP tokens.
    uint256 public totalAllocPoint = 0;  // Total allocation points. Must be the sum of all allocation points in all pools.

    bool public whitelistSwitch = true;

    uint256 public whitelistCount;

    mapping(address => bool) public minerAddress;

    uint256 public minerCount;

    uint256[] public phaseEndBlockNumberArray;

    uint256[] public phasePerBlockRewardArray;

    uint256 public phase1StartBlockNumber;

    uint256 public constant blockCountPerDay = 43200; // day blockNumber total, 2s one block

    event Claim(address indexed user, uint256 pid, uint256 amount);
    event Deposit(address indexed user, uint256 pid, uint256 amount);
    event Withdraw(address indexed user, uint256 pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 pid, uint256 amount);

    mapping(address => bool) private whitelist;

    modifier onlyWhitelisted() {
        require(isWhitelisted(msg.sender), "The address is not on the whitelist");
        _;
    }

    constructor(address _mining_token, uint256 _mining_start_block) public {
        miningToken = IERC20(_mining_token);



        phase1StartBlockNumber = _mining_start_block;

        phaseEndBlockNumberArray = new uint256[](7);
        phaseEndBlockNumberArray[0] = phase1StartBlockNumber.add(blockCountPerDay.mul(14));
        phaseEndBlockNumberArray[1] = phaseEndBlockNumberArray[0].add(blockCountPerDay.mul(14));
        phaseEndBlockNumberArray[2] = phaseEndBlockNumberArray[1].add(blockCountPerDay.mul(14));
        phaseEndBlockNumberArray[3] = phaseEndBlockNumberArray[2].add(blockCountPerDay.mul(90));
        phaseEndBlockNumberArray[4] = phaseEndBlockNumberArray[3].add(blockCountPerDay.mul(90));
        phaseEndBlockNumberArray[5] = phaseEndBlockNumberArray[4].add(blockCountPerDay.mul(90));
        phaseEndBlockNumberArray[6] = phaseEndBlockNumberArray[5].add(blockCountPerDay.mul(90));

        phasePerBlockRewardArray = new uint256[](7);
        phasePerBlockRewardArray[0] = 384 * 1e16;
        phasePerBlockRewardArray[1] = 192 * 1e16;
        phasePerBlockRewardArray[2] = 96 * 1e16;
        phasePerBlockRewardArray[3] = 48 * 1e16;
        phasePerBlockRewardArray[4] = 24 * 1e16;
        phasePerBlockRewardArray[5] = 12 * 1e16;
        phasePerBlockRewardArray[6] = 6 * 1e16;
    }

    function updateBlockReward(uint256 _phaseIndex, uint256 _reward) public onlyOwner {
        require(_phaseIndex < phasePerBlockRewardArray.length, "invalid _phaseIndex");
        phasePerBlockRewardArray[_phaseIndex] = _reward;
    }

    function updatePhaseEndBlockNumber(uint256 _phaseIndex, uint256 _endBlockNumber) public onlyOwner {
        require(_phaseIndex < phaseEndBlockNumberArray.length, "invalid _phaseIndex");
        phaseEndBlockNumberArray[_phaseIndex] = _endBlockNumber;
    }

    function addMiningPhase(uint256 _phaseEndBlockNumber, uint256 _phasePerBlockReward) public onlyOwner {
        require(_phaseEndBlockNumber > phaseEndBlockNumberArray[phaseEndBlockNumberArray.length - 1], "invalid _phaseEndBlockNumber");
        phaseEndBlockNumberArray.push(_phaseEndBlockNumber);
        phasePerBlockRewardArray.push(_phasePerBlockReward);
    }

    function getUserInfo(uint256 _pid, address _user) public view returns (
        uint256 _amount, uint256 _rewardDebt, uint256 _rewardToClaim) {
        require(_pid < poolInfo.length, "invalid _pid");
        UserInfo memory info = userInfo[_pid][_user];
        _amount = info.amount;
        _rewardDebt = info.rewardDebt;
        _rewardToClaim = info.rewardToClaim;
    }

    function getUserStakingNftTokenIdArray(uint256 _pid, address _user, uint256 _pageNumber, uint256 _pageSize) public view returns (uint256[] memory) {
        require(_pageSize <= 50, 'The maximum PageSize is 50!');
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(pool.isNFT, 'invalid _pid');
        UserInfo storage user = userInfo[_pid][_user];
        uint256 start;
        start = _pageNumber * _pageSize;
        require(start < user.holderTokens.length(), '_pageNumber input error!');
        uint256 end;
        if(start + _pageSize > user.holderTokens.length()){
            end = user.holderTokens.length();
        }else{
            end = start + _pageSize;
        }
        uint256[] memory tokenIds = new uint256[](end - start);
        uint256 count = 0;
        for(uint256 i=start; i<end; i++){
            uint256 tokenId = user.holderTokens.at(i);
            tokenIds[count] = tokenId;
            count++;
        }
        return tokenIds;
    }
    
    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    function add(uint256 _allocPoint, address _lpToken, uint256 _maxAmountPerUser, bool _withUpdate, bool _isNFT) public onlyAdmin {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > phase1StartBlockNumber ? block.number : phase1StartBlockNumber;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);

        PoolInfo memory _poolInfo;
        _poolInfo.isNFT = _isNFT;
        _poolInfo.lpToken = _lpToken;
        _poolInfo.allocPoint = _allocPoint;
        _poolInfo.lastRewardBlock = lastRewardBlock;
        _poolInfo.accPerShare = 0;
        _poolInfo.maxAmountPerUser = _maxAmountPerUser;
        _poolInfo.lpTokenAmount = 0;

        poolInfo.push(_poolInfo);
    }

    function set(uint256 _pid, uint256 _allocPoint, uint256 _maxAmountPerUser, bool _withUpdate) public onlyAdmin {
        require(_pid < poolInfo.length, "invalid _pid");
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].maxAmountPerUser = _maxAmountPerUser;
    }

    function getCurrentRewardsPerBlock() public view returns (uint256) {
        return getMultiplier(block.number - 1, block.number);
    }

    // Return reward  over the given _from to _to block. Suppose it doesn't span greater than  two phases
    function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
        require(_to > _from, "_to should greater than _from");
        if(_to <= phase1StartBlockNumber || _from > phaseEndBlockNumberArray[phaseEndBlockNumberArray.length - 1]){
            return 0;
        }
        if(_from < phase1StartBlockNumber){
            _from = phase1StartBlockNumber;
        }

        if(_to > phaseEndBlockNumberArray[phaseEndBlockNumberArray.length - 1]){
            _to = phaseEndBlockNumberArray[phaseEndBlockNumberArray.length - 1];
        }

        // _from  and _to between first phase :
        if( phase1StartBlockNumber <= _from && _to <= phaseEndBlockNumberArray[0]){
            return  _to.sub(_from).mul(phasePerBlockRewardArray[0]);
        }

        
        for(uint256 i=1; i< phaseEndBlockNumberArray.length; i++){

            // _from  and _to between one  phase:
            if( phaseEndBlockNumberArray[i-1] <= _from && _to <= phaseEndBlockNumberArray[i]){
                return _to.sub(_from).mul(phasePerBlockRewardArray[i]);                
            }

            // _from and _to span two  phase: 
            if(_from < phaseEndBlockNumberArray[i - 1] &&  phaseEndBlockNumberArray[i - 1] <  _to  && _to <= phaseEndBlockNumberArray[i]){
                uint256 reword1 = phaseEndBlockNumberArray[i - 1].sub(_from).mul(phasePerBlockRewardArray[i - 1]);
                uint256 reword2 = _to.sub(phaseEndBlockNumberArray[i - 1]).mul(phasePerBlockRewardArray[i]);
                return  reword1.add(reword2);
            }
        } 


        return 0;
    }

    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    function updatePool(uint256 _pid) public {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.lpTokenAmount;
        if (lpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 reward = multiplier.mul(pool.allocPoint).div(totalAllocPoint);
        pool.accPerShare = pool.accPerShare.add(reward.mul(1e18).div(lpSupply));
        pool.lastRewardBlock = block.number;
    }

    function getPendingAmount(uint256 _pid, address _user) public view returns (uint256) {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accPerShare = pool.accPerShare;
        uint256 lpSupply = pool.lpTokenAmount;
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 reward = multiplier.mul(pool.allocPoint).div(totalAllocPoint);
            accPerShare = accPerShare.add(reward.mul(1e18).div(lpSupply));
        }
        uint256 pending = user.amount.mul(accPerShare).div(1e18).sub(user.rewardDebt);
        uint256 totalPendingAmount = user.rewardToClaim.add(pending);
        return totalPendingAmount;
    }

    function getAllPendingAmount(address _user) external view returns (uint256) {
        uint256 length = poolInfo.length;
        uint256 allAmount = 0;
        for (uint256 pid = 0; pid < length; ++pid) {
            allAmount = allAmount.add(getPendingAmount(pid, _user));
        }
        return allAmount;
    }

    function claimAll() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            if (getPendingAmount(pid, msg.sender) > 0) {
                claim(pid);
            }
        }
    }

    function claim(uint256 _pid) public {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accPerShare).div(1e18).sub(user.rewardDebt);
            user.rewardToClaim = user.rewardToClaim.add(pending);
        }
        user.rewardDebt = user.amount.mul(pool.accPerShare).div(1e18);
        safeMiningTokenTransfer(msg.sender, user.rewardToClaim);
        emit Claim(msg.sender, _pid, user.rewardToClaim);
        user.rewardToClaim = 0;
    }

    // Deposit LP tokens to Mining for token allocation.
    function depositERC20(uint256 _pid, uint256 _amount) public nonReentrant onlyWhitelisted {
        require(_amount > 0, '_amount should be greater than 0');
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(!pool.isNFT, 'invalid _pid');
        UserInfo storage user = userInfo[_pid][msg.sender];
        if(pool.maxAmountPerUser != 0){
            uint256 allowance = pool.maxAmountPerUser.sub(user.amount);
            require(_amount <= allowance, "deposit amount exceeds allowance");
        }
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accPerShare).div(1e18).sub(user.rewardDebt);
            user.rewardToClaim = user.rewardToClaim.add(pending);
        }
        IERC20 erc20 = IERC20(pool.lpToken);
        erc20.safeTransferFrom(address(msg.sender), address(this), _amount);
        user.amount = user.amount.add(_amount);
        emit Deposit(msg.sender, _pid, _amount);

        pool.lpTokenAmount = pool.lpTokenAmount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accPerShare).div(1e18);

        if(!minerAddress[msg.sender]){
            minerAddress[msg.sender] = true;
            minerCount++;
        }
    }

    // Withdraw LP tokens from Mining.
    function withdrawERC20(uint256 _pid, uint256 _amount) public nonReentrant {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(!pool.isNFT, 'PID error, please send the PID of erc20');
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: user.amount is not enough");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accPerShare).div(1e18).sub(user.rewardDebt);
        user.rewardToClaim = user.rewardToClaim.add(pending);
        user.amount = user.amount.sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accPerShare).div(1e18);
        IERC20 erc20 = IERC20(pool.lpToken);
        erc20.safeTransfer(address(msg.sender), _amount);
        pool.lpTokenAmount = pool.lpTokenAmount.sub(_amount);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdrawERC20(uint256 _pid) public nonReentrant {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(!pool.isNFT, 'PID error, please send the PID of erc20');
        UserInfo storage user = userInfo[_pid][msg.sender];
        IERC20 erc20 = IERC20(pool.lpToken);
        erc20.safeTransfer(address(msg.sender), user.amount);
        pool.lpTokenAmount = pool.lpTokenAmount.sub(user.amount);
        emit EmergencyWithdraw(msg.sender, _pid, user.amount);
        user.amount = 0;
        user.rewardDebt = 0;
        user.rewardToClaim = 0;
    }

    function depositNFT(uint256 _pid, uint256 _amount) public nonReentrant {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(pool.isNFT, 'invalid _pid');
        ERC721 erc721 = ERC721(pool.lpToken);
        uint256 tokenIdLength = erc721.balanceOf(msg.sender);
        require(tokenIdLength > 0, "there is no chick in your account!");
        require(_amount <= tokenIdLength, "invalid _amount ");
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(pool.accPerShare).div(1e18).sub(user.rewardDebt);
            user.rewardToClaim = user.rewardToClaim.add(pending);
        }

        
        for(uint256 i=0; i<_amount; i++){
            // after call erc721.safeTransferFrom(address(msg.sender), address(this), tokenId),  the tokenId of index 0 will change
            uint256 tokenId = erc721.tokenOfOwnerByIndex(msg.sender, 0); // index = 0 
            user.holderTokens.add(tokenId);
            erc721.safeTransferFrom(address(msg.sender), address(this), tokenId);
        }
        user.amount = user.amount.add(_amount);
        pool.lpTokenAmount = pool.lpTokenAmount.add(_amount);
        user.rewardDebt = user.amount.mul(pool.accPerShare).div(1e18);

        emit Deposit(msg.sender, _pid, _amount);

        if(!minerAddress[msg.sender]){
            minerAddress[msg.sender] = true;
            minerCount++;
        }

        require(user.amount == user.holderTokens.length(), "user.amount != user.holderTokens.length()");
    }

    function withdrawNFT(uint256 _pid, uint256 _amount) public nonReentrant{
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(pool.isNFT, 'invalid _pid');
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(_amount <= user.holderTokens.length(), "invalid _amount");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accPerShare).div(1e18).sub(user.rewardDebt);
        user.rewardToClaim = user.rewardToClaim.add(pending);
        user.amount = user.holderTokens.length().sub(_amount);
        user.rewardDebt = user.amount.mul(pool.accPerShare).div(1e18);

        ERC721 erc721 = ERC721(pool.lpToken);

        for(uint256 i=0; i < _amount; i++){
            uint256 tokenId = user.holderTokens.at(0); 
            erc721.safeTransferFrom(address(this), address(msg.sender), tokenId);
            user.holderTokens.remove(tokenId);
        }
        pool.lpTokenAmount = pool.lpTokenAmount.sub(_amount);
        emit Withdraw(msg.sender, _pid, _amount);
        require(user.amount == user.holderTokens.length(), "user.amount != user.holderTokens.length()");
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdrawNFT(uint256 _pid, uint256 _amount) public nonReentrant {
        require(_pid < poolInfo.length, "invalid _pid");
        PoolInfo storage pool = poolInfo[_pid];
        require(pool.isNFT, 'invalid _pid');
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(_amount <= user.holderTokens.length(), "invalid _amount");

        ERC721 erc721 = ERC721(pool.lpToken);
        
        for(uint256 i=0; i < _amount; i++){
            uint256 tokenId = user.holderTokens.at(0); 
            erc721.safeTransferFrom(address(this), address(msg.sender), tokenId);
            user.holderTokens.remove(tokenId);
        }

        pool.lpTokenAmount = pool.lpTokenAmount.sub(_amount);
        
        emit EmergencyWithdraw(msg.sender, _pid, _amount);
        user.amount = 0; // set amount to 0, there will be no rewards.
        user.rewardDebt = 0;
        user.rewardToClaim = 0;        
    }

    // Safe token transfer function, just in case if rounding error causes pool to not have enough mining token.
    function safeMiningTokenTransfer(address _to, uint256 _amount) internal {
        uint256 bal = miningToken.balanceOf(address(this));
        require(bal >= _amount, "balance is not enough.");
        miningToken.safeTransfer(_to, _amount);
    }

    function addAddressToWhitelist(address[] memory _addresses) public onlyAdmin {
        require(_addresses.length > 0, "_addresses is empty");
        for (uint256 i = 0; i < _addresses.length; i++) {
            address addr = _addresses[i];
            if(!whitelist[addr]){
                whitelistCount++;
                whitelist[addr] = true;
            }
        }
    }

    function removeAddressFromWhitelist(address[] memory _addresses) public onlyAdmin {
        require(_addresses.length > 0, "_addresses is empty");
        for (uint256 i = 0; i < _addresses.length; i++) {
            address addr = _addresses[i];
            if(whitelist[addr]){
                whitelistCount--;
                whitelist[addr] = false;
            }
        }
    }

    // Whether the address is on the whitelist
    function isWhitelisted(address _address) public view returns (bool) {
        return (whitelistSwitch == false) || whitelist[_address];
    }

    function updateWhitelistSwitch(bool _whitelistSwitch) public onlyAdmin {
        whitelistSwitch = _whitelistSwitch;
    }

    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external override returns (bytes4){
        bytes4 received = 0x150b7a02;
        return received;
    }

    function totalMiningRewardsUpToNow() public view returns(uint256){
        uint256 _block = block.number;
        if(_block <= phase1StartBlockNumber){
            return 0;
        }
        uint256 currentPhaseIndex = 0;
        if(_block > phaseEndBlockNumberArray[phaseEndBlockNumberArray.length.sub(1)]){
            currentPhaseIndex = phaseEndBlockNumberArray.length.sub(1);
            _block = phaseEndBlockNumberArray[currentPhaseIndex];
        }else{
            for(uint256 i=0; i<phaseEndBlockNumberArray.length; i++){
                if(_block <= phaseEndBlockNumberArray[i]){
                    currentPhaseIndex = i;
                    break;
                }
            }
        }

        uint256 rewards = 0;
        if(currentPhaseIndex == 0){
            rewards = _block.sub(phase1StartBlockNumber).mul(phasePerBlockRewardArray[0]);
        }else{
            rewards = _block.sub(phaseEndBlockNumberArray[currentPhaseIndex.sub(1)]).mul(phasePerBlockRewardArray[currentPhaseIndex]);
        }

        for(uint256 i = 0; i < currentPhaseIndex; i++){
            if(i == 0){
                rewards = rewards.add(phaseEndBlockNumberArray[0].sub(phase1StartBlockNumber).mul(phasePerBlockRewardArray[0]));
            }else{
                rewards = rewards.add((phaseEndBlockNumberArray[i].sub(phaseEndBlockNumberArray[i.sub(1)])).mul(phasePerBlockRewardArray[i]));
            }
        }

        return rewards;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_mining_token","type":"address"},{"internalType":"uint256","name":"_mining_start_block","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"NewOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingOwner","type":"address"}],"name":"NewPendingOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"acceptOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_maxAmountPerUser","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"bool","name":"_isNFT","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addAddressToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseEndBlockNumber","type":"uint256"},{"internalType":"uint256","name":"_phasePerBlockReward","type":"uint256"}],"name":"addMiningPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockCountPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getAllPendingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRewardsPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getPendingAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUserInfo","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_rewardDebt","type":"uint256"},{"internalType":"uint256","name":"_rewardToClaim","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_pageNumber","type":"uint256"},{"internalType":"uint256","name":"_pageSize","type":"uint256"}],"name":"getUserStakingNftTokenIdArray","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minerAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minerCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"miningToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase1StartBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phaseEndBlockNumberArray","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"phasePerBlockRewardArray","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"address","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accPerShare","type":"uint256"},{"internalType":"uint256","name":"maxAmountPerUser","type":"uint256"},{"internalType":"uint256","name":"lpTokenAmount","type":"uint256"},{"internalType":"bool","name":"isNFT","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeAddressFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_maxAmountPerUser","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMiningRewardsUpToNow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseIndex","type":"uint256"},{"internalType":"uint256","name":"_reward","type":"uint256"}],"name":"updateBlockReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_phaseIndex","type":"uint256"},{"internalType":"uint256","name":"_endBlockNumber","type":"uint256"}],"name":"updatePhaseEndBlockNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelistSwitch","type":"bool"}],"name":"updateWhitelistSwitch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSwitch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006007556008805460ff191660011790553480156200002357600080fd5b506040516200463e3803806200463e833981810160405260408110156200004957600080fd5b50805160209182015160008054336001600160a01b031991821681179092556002805482169092179091556001600355600480549091166001600160a01b038416179055600e81905560408051600780825261010082019092529293919291820160e08036833750508151620000c792600c92506020019062000511565b5062000100620000e9600e61a8c06200044f60201b6200378e1790919060201c565b600e54620004b660201b6200384e1790919060201c565b600c6000815481106200010f57fe5b90600052602060002001819055506200016c6200013e600e61a8c06200044f60201b6200378e1790919060201c565b600c6000815481106200014d57fe5b9060005260206000200154620004b660201b6200384e1790919060201c565b600c6001815481106200017b57fe5b9060005260206000200181905550620001b9620001aa600e61a8c06200044f60201b6200378e1790919060201c565b600c6001815481106200014d57fe5b600c600281548110620001c857fe5b906000526020600020018190555062000206620001f7605a61a8c06200044f60201b6200378e1790919060201c565b600c6002815481106200014d57fe5b600c6003815481106200021557fe5b90600052602060002001819055506200025362000244605a61a8c06200044f60201b6200378e1790919060201c565b600c6003815481106200014d57fe5b600c6004815481106200026257fe5b9060005260206000200181905550620002a062000291605a61a8c06200044f60201b6200378e1790919060201c565b600c6004815481106200014d57fe5b600c600581548110620002af57fe5b9060005260206000200181905550620002ed620002de605a61a8c06200044f60201b6200378e1790919060201c565b600c6005815481106200014d57fe5b600c600681548110620002fc57fe5b600091825260209091200155604080516007808252610100820190925290816020016020820280368337505081516200033d92600d92506020019062000511565b5067354a6ba7a1800000600d6000815481106200035657fe5b9060005260206000200181905550671aa535d3d0c00000600d6001815481106200037c57fe5b9060005260206000200181905550670d529ae9e8600000600d600281548110620003a257fe5b90600052602060002001819055506706a94d74f4300000600d600381548110620003c857fe5b9060005260206000200181905550670354a6ba7a180000600d600481548110620003ee57fe5b90600052602060002001819055506701aa535d3d0c0000600d6005815481106200041457fe5b906000526020600020018190555066d529ae9e860000600d6006815481106200043957fe5b9060005260206000200181905550505062000581565b6000826200046057506000620004b0565b828202828482816200046e57fe5b0414620004ad5760405162461bcd60e51b81526004018080602001828103825260218152602001806200461d6021913960400191505060405180910390fd5b90505b92915050565b600082820183811015620004ad576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8280548282559060005260206000209081019282156200054f579160200282015b828111156200054f57825182559160200191906001019062000532565b506200055d92915062000561565b5090565b6200057e91905b808211156200055d576000815560010162000568565b90565b61408c80620005916000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c8063715018a61161015c578063bd25adb4116100ce578063ebbc496511610087578063ebbc496514610960578063ec216c6b14610968578063f2624b5d14610970578063f2fde38b14610978578063f851a4401461099e578063fbe41ca8146109a65761028a565b8063bd25adb414610840578063d1058e5914610882578063d3bcbb3c1461088a578063e00e8bf31461092d578063e2f0e52614610950578063e30c3978146109585761028a565b806392efefec1161012057806392efefec1461079057806396b5551f146107b6578063ae2ac67a146107d5578063b25cfaf6146107f8578063b2cbd01d14610815578063bcd25ee5146108385761028a565b8063715018a6146106a457806386f6f27b146106ac5780638862445a146107345780638da5cb5b146107655780638dbb1e3a1461076d5761028a565b80633a0196af1161020057806362726aab116101b957806362726aab14610625578063630b5ba11461062d578063644367171461063557806369cf7ac3146106525780636d1da43114610676578063704b6c021461067e5761028a565b80633a0196af146105365780633af32abf146105595780633ef1a2bd14610593578063411e17a1146105b95780634e15baf0146105dc57806351eb05a6146106085761028a565b8063112f372611610252578063112f3726146103de578063150b7a02146103fb5780631526fe27146104a857806317caf6f114610509578063293ad57414610511578063379607f5146105195761028a565b806307043cb21461028f578063081e3eda146102b45780630fb13dfd146102ce5780631069f3b5146102f157806310c988ce1461033b575b600080fd5b6102b2600480360360408110156102a557600080fd5b50803590602001356109c9565b005b6102bc610a7e565b60408051918252519081900360200190f35b6102b2600480360360408110156102e457600080fd5b5080359060200135610a85565b61031d6004803603604081101561030757600080fd5b50803590602001356001600160a01b0316610d0e565b60408051938452602084019290925282820152519081900360600190f35b6102b26004803603602081101561035157600080fd5b81019060208101813564010000000081111561036c57600080fd5b82018360208201111561037e57600080fd5b803590602001918460208302840111640100000000831117156103a057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610e31945050505050565b6102b2600480360360208110156103f457600080fd5b5035610f60565b61048b6004803603608081101561041157600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561044c57600080fd5b82018360208201111561045e57600080fd5b8035906020019184600183028401116401000000008311171561048057600080fd5b509092509050611101565b604080516001600160e01b03199092168252519081900360200190f35b6104c5600480360360208110156104be57600080fd5b5035611112565b604080516001600160a01b0390981688526020880196909652868601949094526060860192909252608085015260a0840152151560c0830152519081900360e00190f35b6102bc61116b565b6102bc611171565b6102b26004803603602081101561052f57600080fd5b5035611185565b6102b26004803603604081101561054c57600080fd5b50803590602001356112ff565b61057f6004803603602081101561056f57600080fd5b50356001600160a01b0316611655565b604080519115158252519081900360200190f35b61057f600480360360208110156105a957600080fd5b50356001600160a01b0316611688565b6102b2600480360360408110156105cf57600080fd5b508035906020013561169d565b6102bc600480360360408110156105f257600080fd5b50803590602001356001600160a01b0316611a1f565b6102b26004803603602081101561061e57600080fd5b5035611b85565b6102bc611c8a565b6102b2611c90565b6102bc6004803603602081101561064b57600080fd5b5035611caf565b61065a611ccd565b604080516001600160a01b039092168252519081900360200190f35b6102bc611cdc565b6102b26004803603602081101561069457600080fd5b50356001600160a01b0316611ce2565b6102b2611d97565b6106e4600480360360808110156106c257600080fd5b508035906001600160a01b036020820135169060408101359060600135611ee0565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610720578181015183820152602001610708565b505050509050019250505060405180910390f35b6102b26004803603608081101561074a57600080fd5b5080359060208101359060408101359060600135151561213a565b61065a612282565b6102bc6004803603604081101561078357600080fd5b5080359060200135612291565b6102bc600480360360208110156107a657600080fd5b50356001600160a01b031661259b565b6102b2600480360360208110156107cc57600080fd5b503515156125d8565b6102b2600480360360408110156107eb57600080fd5b508035906020013561264b565b6102bc6004803603602081101561080e57600080fd5b5035612aee565b6102b26004803603604081101561082b57600080fd5b5080359060200135612afb565b61057f612ba0565b6102b2600480360360a081101561085657600080fd5b508035906001600160a01b03602082013516906040810135906060810135151590608001351515612ba9565b6102b2612dc8565b6102b2600480360360208110156108a057600080fd5b8101906020810181356401000000008111156108bb57600080fd5b8201836020820111156108cd57600080fd5b803590602001918460208302840111640100000000831117156108ef57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612df9945050505050565b6102b26004803603604081101561094357600080fd5b5080359060200135612f28565b6102bc613188565b61065a61318e565b6102b261319d565b6102bc6132bb565b6102bc6134c6565b6102b26004803603602081101561098e57600080fd5b50356001600160a01b03166134cc565b61065a613581565b6102b2600480360360408110156109bc57600080fd5b5080359060200135613590565b6000546001600160a01b03163314610a14576040805162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015290519081900360640190fd5b600c548210610a60576040805162461bcd60e51b81526020600482015260136024820152720d2dcecc2d8d2c840bee0d0c2e6ca92dcc8caf606b1b604482015290519081900360640190fd5b80600c8381548110610a6e57fe5b6000918252602090912001555050565b6005545b90565b60026003541415610acb576040805162461bcd60e51b815260206004820152601f6024820152600080516020613f59833981519152604482015290519081900360640190fd5b60026003556005548210610b15576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600060058381548110610b2457fe5b60009182526020909120600790910201600681015490915060ff16610b7f576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b60008381526006602090815260408083203384529091529020610ba4600382016136b0565b831115610bea576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a590817d85b5bdd5b9d608a1b604482015290519081900360640190fd5b81546001600160a01b031660005b84811015610c9d576000610c15600385018263ffffffff6136bb16565b60408051632142170760e11b81523060048201523360248201526044810183905290519192506001600160a01b038516916342842e0e9160648082019260009290919082900301818387803b158015610c6d57600080fd5b505af1158015610c81573d6000803e3d6000fd5b50610c939250505060038501826136ce565b5050600101610bf8565b506005830154610cb3908563ffffffff6136da16565b60058401556040805186815260208101869052815133927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595928290030190a25060008082556001808301829055600290920155600355505050565b60008060006005805490508510610d5b576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b610d63613e5a565b60008681526006602090815260408083206001600160a01b0389168452825291829020825160808101845281548152600182015481840152600282015481850152835160038301805460608187028401810188529683018181529396949585880195939492938593918401928592849290918491870182828015610e0657602002820191906000526020600020905b815481526020019060010190808311610df2575b5050509190925250505090525090525080516020820151604090920151909891975095509350505050565b6002546001600160a01b0316331480610e5457506000546001600160a01b031633145b610e91576040805162461bcd60e51b815260206004820152600960248201526837b7363ca0b236b4b760b91b604482015290519081900360640190fd5b6000815111610edd576040805162461bcd60e51b81526020600482015260136024820152725f61646472657373657320697320656d70747960681b604482015290519081900360640190fd5b60005b8151811015610f5c576000828281518110610ef757fe5b6020908102919091018101516001600160a01b0381166000908152600f90925260409091205490915060ff1615610f5357600980546000190190556001600160a01b0381166000908152600f60205260409020805460ff191690555b50600101610ee0565b5050565b60026003541415610fa6576040805162461bcd60e51b815260206004820152601f6024820152600080516020613f59833981519152604482015290519081900360640190fd5b60026003556005548110610ff0576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600060058281548110610fff57fe5b60009182526020909120600790910201600681015490915060ff16156110565760405162461bcd60e51b81526004018080602001828103825260278152602001806140066027913960400191505060405180910390fd5b60008281526006602090815260408083203380855292529091208254815491926001600160a01b039091169161108d918391613737565b815460058401546110a39163ffffffff6136da16565b60058401558154604080518681526020810192909252805133927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059592908290030190a250600080825560018083018290556002909201556003555050565b630a85bd0160e11b95945050505050565b6005818154811061111f57fe5b600091825260209091206007909102018054600182015460028301546003840154600485015460058601546006909601546001600160a01b039095169650929491939092919060ff1687565b60075481565b60006111806001430343612291565b905090565b60055481106111ca576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b6000600582815481106111d957fe5b6000918252602080832085845260068252604080852033865290925292206007909102909101915061120a83611b85565b80541561127957600061125a826001015461124e670de0b6b3a76400006112428760030154876000015461378e90919063ffffffff16565b9063ffffffff6137e716565b9063ffffffff6136da16565b6002830154909150611272908263ffffffff61384e16565b6002830155505b6003820154815461129d91670de0b6b3a7640000916112429163ffffffff61378e16565b600182015560028101546112b29033906138a8565b6002810154604080518581526020810192909252805133927f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf792908290030190a260006002909101555050565b60026003541415611345576040805162461bcd60e51b815260206004820152601f6024820152600080516020613f59833981519152604482015290519081900360640190fd5b6002600355600554821061138f576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b60006005838154811061139e57fe5b60009182526020909120600790910201600681015490915060ff166113f9576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b6000838152600660209081526040808320338452909152902061141e600382016136b0565b831115611464576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a590817d85b5bdd5b9d608a1b604482015290519081900360640190fd5b61146d84611b85565b600061149e826001015461124e670de0b6b3a76400006112428760030154876000015461378e90919063ffffffff16565b60028301549091506114b6908263ffffffff61384e16565b60028301556114cb8461124e600385016136b0565b80835560038401546114f191670de0b6b3a764000091611242919063ffffffff61378e16565b600183015582546001600160a01b031660005b858110156115a9576000611521600386018263ffffffff6136bb16565b60408051632142170760e11b81523060048201523360248201526044810183905290519192506001600160a01b038516916342842e0e9160648082019260009290919082900301818387803b15801561157957600080fd5b505af115801561158d573d6000803e3d6000fd5b5061159f9250505060038601826136ce565b5050600101611504565b5060058401546115bf908663ffffffff6136da16565b60058501556040805187815260208101879052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a261160a836003016136b0565b8354146116485760405162461bcd60e51b8152600401808060200182810382526029815260200180613eea6029913960400191505060405180910390fd5b5050600160035550505050565b60085460009060ff16158061168257506001600160a01b0382166000908152600f602052604090205460ff165b92915050565b600a6020526000908152604090205460ff1681565b600260035414156116e3576040805162461bcd60e51b815260206004820152601f6024820152600080516020613f59833981519152604482015290519081900360640190fd5b60026003556116f133611655565b61172c5760405162461bcd60e51b8152600401808060200182810382526023815260200180613f9c6023913960400191505060405180910390fd5b60008111611781576040805162461bcd60e51b815260206004820181905260248201527f5f616d6f756e742073686f756c642062652067726561746572207468616e2030604482015290519081900360640190fd5b60055482106117c6576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b6000600583815481106117d557fe5b60009182526020909120600790910201600681015490915060ff1615611831576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600083815260066020908152604080832033845290915290206004820154156118c7578054600483015460009161186e919063ffffffff6136da16565b9050808411156118c5576040805162461bcd60e51b815260206004820181905260248201527f6465706f73697420616d6f756e74206578636565647320616c6c6f77616e6365604482015290519081900360640190fd5b505b6118d084611b85565b805415611927576000611908826001015461124e670de0b6b3a76400006112428760030154876000015461378e90919063ffffffff16565b6002830154909150611920908263ffffffff61384e16565b6002830155505b81546001600160a01b03166119448133308763ffffffff61399016565b8154611956908563ffffffff61384e16565b82556040805186815260208101869052815133927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15928290030190a260058301546119a7908563ffffffff61384e16565b6005840155600383015482546119d091670de0b6b3a7640000916112429163ffffffff61378e16565b6001830155336000908152600a602052604090205460ff16611a1357336000908152600a60205260409020805460ff19166001908117909155600b805490910190555b50506001600355505050565b6005546000908310611a67576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600060058481548110611a7657fe5b600091825260208083208784526006825260408085206001600160a01b03891686529092529220600360079092029092019081015460058201546002830154929450909143118015611ac757508015155b15611b30576000611adc856002015443612291565b90506000611afd60075461124288600101548561378e90919063ffffffff16565b9050611b2b611b1e8461124284670de0b6b3a764000063ffffffff61378e16565b859063ffffffff61384e16565b935050505b6000611b5d846001015461124e670de0b6b3a764000061124287896000015461378e90919063ffffffff16565b90506000611b7882866002015461384e90919063ffffffff16565b9998505050505050505050565b6005548110611bca576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600060058281548110611bd957fe5b9060005260206000209060070201905080600201544311611bfa5750611c87565b600581015480611c11575043600290910155611c87565b6000611c21836002015443612291565b90506000611c4260075461124286600101548561378e90919063ffffffff16565b9050611c74611c638461124284670de0b6b3a764000063ffffffff61378e16565b60038601549063ffffffff61384e16565b6003850155505043600290920191909155505b50565b61a8c081565b60055460005b81811015610f5c57611ca781611b85565b600101611c96565b600c8181548110611cbc57fe5b600091825260209091200154905081565b6004546001600160a01b031681565b600b5481565b6000546001600160a01b03163314611d2d576040805162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015290519081900360640190fd5b600254604080516001600160a01b039283168152918316602083015280517ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc9281900390910190a1600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611de2576040805162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015290519081900360640190fd5b60008054604080516001600160a01b039092168252602082019290925281517f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b2364929181900390910190a1600254604080516001600160a01b0390921682526000602083015280517ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc9281900390910190a1600154604080516001600160a01b0390921682526000602083015280517fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b9281900390910190a1600080546001600160a01b03199081169091556001805482169055600280549091169055565b60606032821115611f38576040805162461bcd60e51b815260206004820152601d60248201527f546865206d6178696d756d205061676553697a65206973203530efbc81000000604482015290519081900360640190fd5b6005548510611f7d576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600060058681548110611f8c57fe5b60009182526020909120600790910201600681015490915060ff16611fe7576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b60008681526006602090815260408083206001600160a01b03891684529091529020848402612018600383016136b0565b811061206b576040805162461bcd60e51b815260206004820152601a60248201527f5f706167654e756d62657220696e707574206572726f72efbc81000000000000604482015290519081900360640190fd5b6000612079836003016136b0565b86830111156120955761208e836003016136b0565b905061209a565b508085015b606082820367ffffffffffffffff811180156120b557600080fd5b506040519080825280602002602001820160405280156120df578160200160208202803683370190505b5090506000835b8381101561212a576000612103600388018363ffffffff6136bb16565b90508084848151811061211257fe5b602090810291909101015250600191820191016120e6565b50909a9950505050505050505050565b6002546001600160a01b031633148061215d57506000546001600160a01b031633145b61219a576040805162461bcd60e51b815260206004820152600960248201526837b7363ca0b236b4b760b91b604482015290519081900360640190fd5b60055484106121df576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b80156121ed576121ed611c90565b612230836122246005878154811061220157fe5b9060005260206000209060070201600101546007546136da90919063ffffffff16565b9063ffffffff61384e16565b600781905550826005858154811061224457fe5b906000526020600020906007020160010181905550816005858154811061226757fe5b90600052602060002090600702016004018190555050505050565b6000546001600160a01b031681565b60008282116122e7576040805162461bcd60e51b815260206004820152601d60248201527f5f746f2073686f756c642067726561746572207468616e205f66726f6d000000604482015290519081900360640190fd5b600e54821115806123135750600c8054600019810190811061230557fe5b906000526020600020015483115b1561232057506000611682565b600e5483101561233057600e5492505b600c8054600019810190811061234257fe5b906000526020600020015482111561237457600c8054600019810190811061236657fe5b906000526020600020015491505b82600e541115801561239e5750600c60008154811061238f57fe5b90600052602060002001548211155b156123e3576123dc600d6000815481106123b457fe5b6000918252602090912001546123d0848663ffffffff6136da16565b9063ffffffff61378e16565b9050611682565b60015b600c548110156125915783600c600183038154811061240157fe5b9060005260206000200154111580156124315750600c818154811061242257fe5b90600052602060002001548311155b1561246a57612462600d828154811061244657fe5b6000918252602090912001546123d0858763ffffffff6136da16565b915050611682565b600c600182038154811061247a57fe5b9060005260206000200154841080156124ac575082600c600183038154811061249f57fe5b9060005260206000200154105b80156124cf5750600c81815481106124c057fe5b90600052602060002001548311155b15612589576000612521600d60018403815481106124e957fe5b90600052602060002001546123d087600c600187038154811061250857fe5b90600052602060002001546136da90919063ffffffff16565b9050600061256d600d848154811061253557fe5b90600052602060002001546123d0600c600187038154811061255357fe5b9060005260206000200154886136da90919063ffffffff16565b905061257f828263ffffffff61384e16565b9350505050611682565b6001016123e6565b5060009392505050565b60055460009081805b828110156125d0576125c66125b98287611a1f565b839063ffffffff61384e16565b91506001016125a4565b509392505050565b6002546001600160a01b03163314806125fb57506000546001600160a01b031633145b612638576040805162461bcd60e51b815260206004820152600960248201526837b7363ca0b236b4b760b91b604482015290519081900360640190fd5b6008805460ff1916911515919091179055565b60026003541415612691576040805162461bcd60e51b815260206004820152601f6024820152600080516020613f59833981519152604482015290519081900360640190fd5b600260035560055482106126db576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b6000600583815481106126ea57fe5b60009182526020909120600790910201600681015490915060ff16612745576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b8054604080516370a0823160e01b815233600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b15801561279457600080fd5b505afa1580156127a8573d6000803e3d6000fd5b505050506040513d60208110156127be57600080fd5b50519050806127fe5760405162461bcd60e51b8152600401808060200182810382526024815260200180613f356024913960400191505060405180910390fd5b80841115612846576040805162461bcd60e51b815260206004820152601060248201526f034b73b30b634b2102fb0b6b7bab73a160851b604482015290519081900360640190fd5b6000858152600660209081526040808320338452909152902061286886611b85565b8054156128bf5760006128a0826001015461124e670de0b6b3a76400006112428960030154876000015461378e90919063ffffffff16565b60028301549091506128b8908263ffffffff61384e16565b6002830155505b60005b858110156129d45760408051632f745c5960e01b815233600482015260006024820181905291516001600160a01b03871691632f745c59916044808301926020929190829003018186803b15801561291957600080fd5b505afa15801561292d573d6000803e3d6000fd5b505050506040513d602081101561294357600080fd5b5051905061295a600384018263ffffffff6139f016565b5060408051632142170760e11b81523360048201523060248201526044810183905290516001600160a01b038716916342842e0e91606480830192600092919082900301818387803b1580156129af57600080fd5b505af11580156129c3573d6000803e3d6000fd5b5050600190930192506128c2915050565b5080546129e7908663ffffffff61384e16565b815560058401546129fe908663ffffffff61384e16565b600585015560038401548154612a2791670de0b6b3a7640000916112429163ffffffff61378e16565b60018201556040805187815260208101879052815133927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15928290030190a2336000908152600a602052604090205460ff16612aa457336000908152600a60205260409020805460ff19166001908117909155600b805490910190555b612ab0816003016136b0565b8154146116485760405162461bcd60e51b8152600401808060200182810382526029815260200180613eea6029913960400191505060405180910390fd5b600d8181548110611cbc57fe5b6000546001600160a01b03163314612b46576040805162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015290519081900360640190fd5b600d548210612b92576040805162461bcd60e51b81526020600482015260136024820152720d2dcecc2d8d2c840bee0d0c2e6ca92dcc8caf606b1b604482015290519081900360640190fd5b80600d8381548110610a6e57fe5b60085460ff1681565b6002546001600160a01b0316331480612bcc57506000546001600160a01b031633145b612c09576040805162461bcd60e51b815260206004820152600960248201526837b7363ca0b236b4b760b91b604482015290519081900360640190fd5b8115612c1757612c17611c90565b6000600e544311612c2a57600e54612c2c565b435b600754909150612c42908763ffffffff61384e16565b600755612c4d613e87565b91151560c083019081526001600160a01b03958616835260208301968752604083019182526000606084018181526080850196875260a0850182815260058054600181018255935294517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600790930292830180546001600160a01b031916919099161790975596517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db188015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db287015593517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db386015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db485015550517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db5830155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db6909101805460ff1916911515919091179055565b60055460005b81811015610f5c576000612de28233611a1f565b1115612df157612df181611185565b600101612dce565b6002546001600160a01b0316331480612e1c57506000546001600160a01b031633145b612e59576040805162461bcd60e51b815260206004820152600960248201526837b7363ca0b236b4b760b91b604482015290519081900360640190fd5b6000815111612ea5576040805162461bcd60e51b81526020600482015260136024820152725f61646472657373657320697320656d70747960681b604482015290519081900360640190fd5b60005b8151811015610f5c576000828281518110612ebf57fe5b6020908102919091018101516001600160a01b0381166000908152600f90925260409091205490915060ff16612f1f576009805460019081019091556001600160a01b0382166000908152600f60205260409020805460ff191690911790555b50600101612ea8565b60026003541415612f6e576040805162461bcd60e51b815260206004820152601f6024820152600080516020613f59833981519152604482015290519081900360640190fd5b60026003556005548210612fb8576040805162461bcd60e51b815260206004820152600c60248201526b1a5b9d985b1a590817dc1a5960a21b604482015290519081900360640190fd5b600060058381548110612fc757fe5b60009182526020909120600790910201600681015490915060ff161561301e5760405162461bcd60e51b81526004018080602001828103825260278152602001806140066027913960400191505060405180910390fd5b6000838152600660209081526040808320338452909152902080548311156130775760405162461bcd60e51b8152600401808060200182810382526023815260200180613f796023913960400191505060405180910390fd5b61308084611b85565b60006130b1826001015461124e670de0b6b3a76400006112428760030154876000015461378e90919063ffffffff16565b60028301549091506130c9908263ffffffff61384e16565b600283015581546130e0908563ffffffff6136da16565b808355600384015461310691670de0b6b3a764000091611242919063ffffffff61378e16565b600183015582546001600160a01b031661312781338763ffffffff61373716565b600584015461313c908663ffffffff6136da16565b60058501556040805187815260208101879052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a25050600160035550505050565b600e5481565b6001546001600160a01b031681565b6001546001600160a01b031633146131ef576040805162461bcd60e51b815260206004820152601060248201526f37b7363ca832b73234b733a7bbb732b960811b604482015290519081900360640190fd5b600054600154604080516001600160a01b03938416815292909116602083015280517f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b23649281900390910190a1600154600080546001600160a01b0319166001600160a01b0390921691821781556040805192835260208301829052805191927fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b929081900390910190a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b600e54600090439081116132d3576000915050610a82565b600c8054600091906132ec90600163ffffffff6136da16565b815481106132f657fe5b906000526020600020015482111561333d57600c5461331c90600163ffffffff6136da16565b9050600c818154811061332b57fe5b9060005260206000200154915061337a565b60005b600c5481101561337857600c818154811061335757fe5b9060005260206000200154831161337057809150613378565b600101613340565b505b6000816133b9576133b2600d60008154811061339257fe5b90600052602060002001546123d0600e54866136da90919063ffffffff16565b9050613412565b61340f600d83815481106133c957fe5b6000918252602090912001546123d0600c6133eb86600163ffffffff6136da16565b815481106133f557fe5b9060005260206000200154866136da90919063ffffffff16565b90505b60005b828110156134be578061345c576134556125b9600d60008154811061343657fe5b90600052602060002001546123d0600e54600c60008154811061250857fe5b91506134b6565b6134b36125b9600d838154811061346f57fe5b6000918252602090912001546123d0600c61349186600163ffffffff6136da16565b8154811061349b57fe5b9060005260206000200154600c868154811061250857fe5b91505b600101613415565b509250505090565b60095481565b6000546001600160a01b03163314613517576040805162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015290519081900360640190fd5b600154604080516001600160a01b039283168152918316602083015280517fb3d55174552271a4f1aaf36b72f50381e892171636b3fb5447fe00e995e7a37b9281900390910190a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6000546001600160a01b031633146135db576040805162461bcd60e51b815260206004820152600960248201526837b7363ca7bbb732b960b91b604482015290519081900360640190fd5b600c805460001981019081106135ed57fe5b9060005260206000200154821161364b576040805162461bcd60e51b815260206004820152601c60248201527f696e76616c6964205f7068617365456e64426c6f636b4e756d62657200000000604482015290519081900360640190fd5b600c805460018181019092557fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70192909255600d805492830181556000527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb590910155565b6000611682826139fc565b60006136c78383613a00565b9392505050565b60006136c78383613a64565b600082821115613731576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613789908490613b2a565b505050565b60008261379d57506000611682565b828202828482816137aa57fe5b04146136c75760405162461bcd60e51b8152600401808060200182810382526021815260200180613fe56021913960400191505060405180910390fd5b600080821161383d576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161384657fe5b049392505050565b6000828201838110156136c7576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156138f757600080fd5b505afa15801561390b573d6000803e3d6000fd5b505050506040513d602081101561392157600080fd5b5051905081811015613973576040805162461bcd60e51b81526020600482015260166024820152753130b630b731b29034b9903737ba1032b737bab3b41760511b604482015290519081900360640190fd5b600454613789906001600160a01b0316848463ffffffff61373716565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526139ea908590613b2a565b50505050565b60006136c78383613bdb565b5490565b81546000908210613a425760405162461bcd60e51b8152600401808060200182810382526022815260200180613f136022913960400191505060405180910390fd5b826000018281548110613a5157fe5b9060005260206000200154905092915050565b60008181526001830160205260408120548015613b205783546000198083019190810190600090879083908110613a9757fe5b9060005260206000200154905080876000018481548110613ab457fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080613ae457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611682565b6000915050611682565b6060613b7f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613c259092919063ffffffff16565b80519091501561378957808060200190516020811015613b9e57600080fd5b50516137895760405162461bcd60e51b815260040180806020018281038252602a81526020018061402d602a913960400191505060405180910390fd5b6000613be78383613c3c565b613c1d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611682565b506000611682565b6060613c348484600085613c54565b949350505050565b60009081526001919091016020526040902054151590565b606082471015613c955760405162461bcd60e51b8152600401808060200182810382526026815260200180613fbf6026913960400191505060405180910390fd5b613c9e85613db0565b613cef576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613d2e5780518252601f199092019160209182019101613d0f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613d90576040519150601f19603f3d011682016040523d82523d6000602084013e613d95565b606091505b5091509150613da5828286613db6565b979650505050505050565b3b151590565b60608315613dc55750816136c7565b825115613dd55782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613e1f578181015183820152602001613e07565b50505050905090810190601f168015613e4c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060800160405280600081526020016000815260200160008152602001613e82613ecf565b905290565b6040518060e0016040528060006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b604080518082019091526060602082019081528190613e8256fe757365722e616d6f756e7420213d20757365722e686f6c646572546f6b656e732e6c656e6774682829456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64737468657265206973206e6f20636869636b20696e20796f7572206163636f756e74efbc815265656e7472616e637947756172643a207265656e7472616e742063616c6c0077697468647261773a20757365722e616d6f756e74206973206e6f7420656e6f7567685468652061646472657373206973206e6f74206f6e207468652077686974656c697374416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77504944206572726f722c20706c656173652073656e642074686520504944206f662065726332305361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f74108f84d4338dcfe86009e0a6e53da4705552fc298311e8a267e7d7b6ff87d64736f6c63430006060033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000002c8a975311302515dfc9f152730ee464283f2568000000000000000000000000000000000000000000000000000000000105b2ca

Deployed ByteCode Sourcemap

78679:22685:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;78679:22685:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;82743:260:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;82743:260:0;;;;;;;:::i;:::-;;84858:95;;;:::i;:::-;;;;;;;;;;;;;;;;97201:960;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;97201:960:0;;;;;;;:::i;83388:382::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;83388:382:0;;;;;;-1:-1:-1;;;;;83388:382:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;98937:393;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;98937:393:0;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;98937:393:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;98937:393:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;98937:393:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;98937:393:0;;-1:-1:-1;98937:393:0;;-1:-1:-1;;;;;98937:393:0:i;93603:645::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;93603:645:0;;:::i;99669:203::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;99669:203:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;99669:203:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;99669:203:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;99669:203:0;;-1:-1:-1;99669:203:0;-1:-1:-1;99669:203:0;:::i;:::-;;;;-1:-1:-1;;;;;;99669:203:0;;;;;;;;;;;;;;79968:26;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;79968:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;79968:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80139:34;;;:::i;86255:138::-;;;:::i;90510:676::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;90510:676:0;;:::i;95927:1203::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;95927:1203:0;;;;;;;:::i;99386:143::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;99386:143:0;-1:-1:-1;;;;;99386:143:0;;:::i;:::-;;;;;;;;;;;;;;;;;;80347:44;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;80347:44:0;-1:-1:-1;;;;;80347:44:0;;:::i;91252:1304::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;91252:1304:0;;;;;;;:::i;89047:873::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;89047:873:0;;;;;;-1:-1:-1;;;;;89047:873:0;;:::i;88349:690::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;88349:690:0;;:::i;80580:48::-;;;:::i;88161:180::-;;;:::i;80434:41::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;80434:41:0;;:::i;79906:25::-;;;:::i;:::-;;;;-1:-1:-1;;;;;79906:25:0;;;;;;;;;;;;;;80400;;;:::i;78459:129::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;78459:129:0;-1:-1:-1;;;;;78459:129:0;;:::i;77847:301::-;;;:::i;83778:1068::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;83778:1068:0;;;-1:-1:-1;;;;;83778:1068:0;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;83778:1068:0;;;;;;;;;;;;;;;;;85796:451;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;85796:451:0;;;;;;;;;;;;;;;;;;;:::i;76943:20::-;;;:::i;86508:1645::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;86508:1645:0;;;;;;;:::i;89928:321::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;89928:321:0;-1:-1:-1;;;;;89928:321:0;;:::i;99537:124::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;99537:124:0;;;;:::i;94256:1663::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;94256:1663:0;;;;;;;:::i;80484:41::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;80484:41:0;;:::i;82499:236::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;82499:236:0;;;;;;;:::i;80266:34::-;;;:::i;85028:760::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;85028:760:0;;;-1:-1:-1;;;;;85028:760:0;;;;;;;;;;;;;;;;;;;;;;;;:::i;90257:245::-;;;:::i;98541:388::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;98541:388:0;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;98541:388:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;98541:388:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;98541:388:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;98541:388:0;;-1:-1:-1;98541:388:0;;-1:-1:-1;;;;;98541:388:0:i;92604:928::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;92604:928:0;;;;;;;:::i;80534:37::-;;;:::i;76970:27::-;;;:::i;78160:283::-;;;:::i;99880:1481::-;;;:::i;80309:29::-;;;:::i;77665:174::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;77665:174:0;-1:-1:-1;;;;;77665:174:0;;:::i;77004:20::-;;;:::i;83011:369::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;83011:369:0;;;;;;;:::i;82743:260::-;77374:5;;-1:-1:-1;;;;;77374:5:0;77360:10;:19;77352:40;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;;;;82874:24:::1;:31:::0;82860:45;::::1;82852:77;;;::::0;;-1:-1:-1;;;82852:77:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;82852:77:0;;;;;;;;;;;;;::::1;;82980:15;82940:24;82965:11;82940:37;;;;;;;;;::::0;;;::::1;::::0;;;::::1;:55:::0;-1:-1:-1;;82743:260:0:o;84858:95::-;84930:8;:15;84858:95;;:::o;97201:960::-;21343:1;21949:7;;:19;;21941:63;;;;;-1:-1:-1;;;21941:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21941:63:0;;;;;;;;;;;;;;;21343:1;22082:7;:18;97308:8:::1;:15:::0;97301:22;::::1;97293:47;;;::::0;;-1:-1:-1;;;97293:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;97293:47:0;;;;;;;;;;;;;::::1;;97351:21;97375:8;97384:4;97375:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;97408:10;::::0;::::1;::::0;97375:14;;-1:-1:-1;97408:10:0::1;;97400:35;;;::::0;;-1:-1:-1;;;97400:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;97400:35:0;;;;;;;;;;;;;::::1;;97446:21;97470:14:::0;;;:8:::1;:14;::::0;;;;;;;97485:10:::1;97470:26:::0;;;;;;;97526::::1;:17;::::0;::::1;:24;:26::i;:::-;97515:7;:37;;97507:65;;;::::0;;-1:-1:-1;;;97507:65:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;97507:65:0;;;;;;;;;;;;;::::1;;97608:12:::0;;-1:-1:-1;;;;;97608:12:0::1;97585:13;97642:234;97663:7;97659:1;:11;97642:234;;;97691:15;97709:23;:17;::::0;::::1;97691:15:::0;97709:23:::1;:20;:23;:::i;:::-;97748:68;::::0;;-1:-1:-1;;;97748:68:0;;97780:4:::1;97748:68;::::0;::::1;::::0;97795:10:::1;97748:68:::0;;;;;;;;;;;;97691:41;;-1:-1:-1;;;;;;97748:23:0;::::1;::::0;::::1;::::0;:68;;;;;-1:-1:-1;;97748:68:0;;;;;;;;-1:-1:-1;97748:23:0;:68;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;97748:68:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;-1:-1:::0;97831:33:0::1;::::0;-1:-1:-1;;;97831:17:0::1;::::0;::::1;97856:7:::0;97831:24:::1;:33::i;:::-;-1:-1:-1::0;;97672:3:0::1;;97642:234;;;-1:-1:-1::0;97909:18:0::1;::::0;::::1;::::0;:31:::1;::::0;97932:7;97909:31:::1;:22;:31;:::i;:::-;97888:18;::::0;::::1;:52:::0;97966:44:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;97984:10:::1;::::0;97966:44:::1;::::0;;;;;;::::1;-1:-1:-1::0;98035:1:0::1;98021:15:::0;;;98093::::1;::::0;;::::1;:19:::0;;;98123:18:::1;::::0;;::::1;:22:::0;22261:7;:22;-1:-1:-1;;;97201:960:0:o;83388:382::-;83469:15;83486:19;83507:22;83557:8;:15;;;;83550:4;:22;83542:47;;;;;-1:-1:-1;;;83542:47:0;;;;;;;;;;;;-1:-1:-1;;;83542:47:0;;;;;;;;;;;;;;;83600:20;;:::i;:::-;83623:14;;;;:8;:14;;;;;;;;-1:-1:-1;;;;;83623:21:0;;;;;;;;;;83600:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83623:21;;83600:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;83600:44:0;;;;-1:-1:-1;;;83600:44:0;;-1:-1:-1;83600:44:0;;-1:-1:-1;83665:11:0;;83701:15;;;;83744:18;;;;;83665:11;;83701:15;;-1:-1:-1;83744:18:0;-1:-1:-1;83388:382:0;-1:-1:-1;;;;83388:382:0:o;98937:393::-;77591:5;;-1:-1:-1;;;;;77591:5:0;77577:10;:19;;:42;;-1:-1:-1;77614:5:0;;-1:-1:-1;;;;;77614:5:0;77600:10;:19;77577:42;77569:63;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;;;;99058:1:::1;99038:10;:17;:21;99030:53;;;::::0;;-1:-1:-1;;;99030:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;99030:53:0;;;;;;;;;;;;;::::1;;99099:9;99094:229;99118:10;:17;99114:1;:21;99094:229;;;99157:12;99172:10;99183:1;99172:13;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;99203:15:0;::::1;;::::0;;;:9:::1;:15:::0;;;;;;;;99172:13;;-1:-1:-1;99203:15:0::1;;99200:112;;;99238:14;:16:::0;;-1:-1:-1;;99238:16:0;;;-1:-1:-1;;;;;99273:15:0;::::1;99238:14;99273:15:::0;;;:9:::1;:15;::::0;;;;:23;;-1:-1:-1;;99273:23:0::1;::::0;;99200:112:::1;-1:-1:-1::0;99137:3:0::1;;99094:229;;;;98937:393:::0;:::o;93603:645::-;21343:1;21949:7;;:19;;21941:63;;;;;-1:-1:-1;;;21941:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21941:63:0;;;;;;;;;;;;;;;21343:1;22082:7;:18;93695:8:::1;:15:::0;93688:22;::::1;93680:47;;;::::0;;-1:-1:-1;;;93680:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;93680:47:0;;;;;;;;;;;;;::::1;;93738:21;93762:8;93771:4;93762:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;93796:10;::::0;::::1;::::0;93762:14;;-1:-1:-1;93796:10:0::1;;93795:11;93787:63;;;;-1:-1:-1::0;;;93787:63:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93861:21;93885:14:::0;;;:8:::1;:14;::::0;;;;;;;93900:10:::1;93885:26:::0;;;;;;;;93944:12;;94008:11;;93885:26;;-1:-1:-1;;;;;93944:12:0;;::::1;::::0;93968:52:::1;::::0;93944:12;;93968:18:::1;:52::i;:::-;94075:11:::0;;94052:18:::1;::::0;::::1;::::0;:35:::1;::::0;::::1;:22;:35;:::i;:::-;94031:18;::::0;::::1;:56:::0;94139:11;;94103:48:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;94121:10:::1;::::0;94103:48:::1;::::0;;;;;;;::::1;-1:-1:-1::0;94176:1:0::1;94162:15:::0;;;94188::::1;::::0;;::::1;:19:::0;;;94218:18:::1;::::0;;::::1;:22:::0;22261:7;:22;-1:-1:-1;;93603:645:0:o;99669:203::-;-1:-1:-1;;;99669:203:0;;;;;;;:::o;79968:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;79968:26:0;;;;-1:-1:-1;79968:26:0;;;;;;;;;;;:::o;80139:34::-;;;;:::o;86255:138::-;86313:7;86340:45;86369:1;86354:12;:16;86372:12;86340:13;:45::i;:::-;86333:52;;86255:138;:::o;90510:676::-;90572:8;:15;90565:22;;90557:47;;;;;-1:-1:-1;;;90557:47:0;;;;;;;;;;;;-1:-1:-1;;;90557:47:0;;;;;;;;;;;;;;;90615:21;90639:8;90648:4;90639:14;;;;;;;;;;;;;;;;90688;;;:8;:14;;;;;;90703:10;90688:26;;;;;;;90639:14;;;;;;;;-1:-1:-1;90725:16:0;90697:4;90725:10;:16::i;:::-;90756:11;;:15;90752:197;;90788:15;90806:64;90854:4;:15;;;90806:43;90844:4;90806:33;90822:4;:16;;;90806:4;:11;;;:15;;:33;;;;:::i;:::-;:37;:43;:37;:43;:::i;:::-;:47;:64;:47;:64;:::i;:::-;90906:18;;;;90788:82;;-1:-1:-1;90906:31:0;;90788:82;90906:31;:22;:31;:::i;:::-;90885:18;;;:52;-1:-1:-1;90752:197:0;90993:16;;;;90977:11;;:43;;91015:4;;90977:33;;;:15;:33;:::i;:43::-;90959:15;;;:61;91067:18;;;;91031:55;;91055:10;;91031:23;:55::i;:::-;91126:18;;;;91102:43;;;;;;;;;;;;;;;91108:10;;91102:43;;;;;;;;;91177:1;91156:18;;;;:22;-1:-1:-1;;90510:676:0:o;95927:1203::-;21343:1;21949:7;;:19;;21941:63;;;;;-1:-1:-1;;;21941:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21941:63:0;;;;;;;;;;;;;;;21343:1;22082:7;:18;96024:8:::1;:15:::0;96017:22;::::1;96009:47;;;::::0;;-1:-1:-1;;;96009:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;96009:47:0;;;;;;;;;;;;;::::1;;96067:21;96091:8;96100:4;96091:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;96124:10;::::0;::::1;::::0;96091:14;;-1:-1:-1;96124:10:0::1;;96116:35;;;::::0;;-1:-1:-1;;;96116:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;96116:35:0;;;;;;;;;;;;;::::1;;96162:21;96186:14:::0;;;:8:::1;:14;::::0;;;;;;;96201:10:::1;96186:26:::0;;;;;;;96242::::1;:17;::::0;::::1;:24;:26::i;:::-;96231:7;:37;;96223:65;;;::::0;;-1:-1:-1;;;96223:65:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;96223:65:0;;;;;;;;;;;;;::::1;;96299:16;96310:4;96299:10;:16::i;:::-;96326:15;96344:64;96392:4;:15;;;96344:43;96382:4;96344:33;96360:4;:16;;;96344:4;:11;;;:15;;:33;;;;:::i;:64::-;96440:18;::::0;::::1;::::0;96326:82;;-1:-1:-1;96440:31:0::1;::::0;96326:82;96440:31:::1;:22;:31;:::i;:::-;96419:18;::::0;::::1;:52:::0;96496:39:::1;96527:7:::0;96496:26:::1;:17;::::0;::::1;:24;:26::i;:39::-;96482:53:::0;;;96580:16:::1;::::0;::::1;::::0;96564:43:::1;::::0;96602:4:::1;::::0;96564:33:::1;::::0;96482:53;96564:33:::1;:15;:33;:::i;:43::-;96546:15;::::0;::::1;:61:::0;96643:12;;-1:-1:-1;;;;;96643:12:0::1;96620:13;96669:234;96690:7;96686:1;:11;96669:234;;;96718:15;96736:23;:17;::::0;::::1;96718:15:::0;96736:23:::1;:20;:23;:::i;:::-;96775:68;::::0;;-1:-1:-1;;;96775:68:0;;96807:4:::1;96775:68;::::0;::::1;::::0;96822:10:::1;96775:68:::0;;;;;;;;;;;;96718:41;;-1:-1:-1;;;;;;96775:23:0;::::1;::::0;::::1;::::0;:68;;;;;-1:-1:-1;;96775:68:0;;;;;;;;-1:-1:-1;96775:23:0;:68;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;96775:68:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;-1:-1:::0;96858:33:0::1;::::0;-1:-1:-1;;;96858:17:0::1;::::0;::::1;96883:7:::0;96858:24:::1;:33::i;:::-;-1:-1:-1::0;;96699:3:0::1;;96669:234;;;-1:-1:-1::0;96934:18:0::1;::::0;::::1;::::0;:31:::1;::::0;96957:7;96934:31:::1;:22;:31;:::i;:::-;96913:18;::::0;::::1;:52:::0;96981:35:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;96990:10:::1;::::0;96981:35:::1;::::0;;;;;;::::1;97050:26;:4;:17;;:24;:26::i;:::-;97035:11:::0;;:41:::1;97027:95;;;;-1:-1:-1::0;;;97027:95:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;21299:1:0;22261:7;:22;-1:-1:-1;;;;95927:1203:0:o;99386:143::-;99473:15;;99448:4;;99473:15;;:24;;99472:49;;-1:-1:-1;;;;;;99502:19:0;;;;;;:9;:19;;;;;;;;99472:49;99465:56;99386:143;-1:-1:-1;;99386:143:0:o;80347:44::-;;;;;;;;;;;;;;;:::o;91252:1304::-;21343:1;21949:7;;:19;;21941:63;;;;;-1:-1:-1;;;21941:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21941:63:0;;;;;;;;;;;;;;;21343:1;22082:7;:18;81068:25:::1;81082:10;81068:13;:25::i;:::-;81060:73;;;;-1:-1:-1::0;;;81060:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91370:1:::2;91360:7;:11;91352:56;;;::::0;;-1:-1:-1;;;91352:56:0;;::::2;;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;::::2;;91434:8;:15:::0;91427:22;::::2;91419:47;;;::::0;;-1:-1:-1;;;91419:47:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;91419:47:0;;;;;;;;;;;;;::::2;;91477:21;91501:8;91510:4;91501:14;;;;;;;;;::::0;;;::::2;::::0;;;::::2;::::0;;::::2;;91535:10;::::0;::::2;::::0;91501:14;;-1:-1:-1;91535:10:0::2;;91534:11;91526:36;;;::::0;;-1:-1:-1;;;91526:36:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;91526:36:0;;;;;;;;;;;;;::::2;;91573:21;91597:14:::0;;;:8:::2;:14;::::0;;;;;;;91612:10:::2;91597:26:::0;;;;;;;91637:21:::2;::::0;::::2;::::0;:26;91634:195:::2;;91725:11:::0;;91699:21:::2;::::0;::::2;::::0;91679:17:::2;::::0;91699:38:::2;::::0;:21;:38:::2;:25;:38;:::i;:::-;91679:58;;91771:9;91760:7;:20;;91752:65;;;::::0;;-1:-1:-1;;;91752:65:0;;::::2;;::::0;::::2;::::0;;;;;;;::::2;::::0;;;;;;;;;;;;;::::2;;91634:195;;91839:16;91850:4;91839:10;:16::i;:::-;91870:11:::0;;:15;91866:197:::2;;91902:15;91920:64;91968:4;:15;;;91920:43;91958:4;91920:33;91936:4;:16;;;91920:4;:11;;;:15;;:33;;;;:::i;:64::-;92020:18;::::0;::::2;::::0;91902:82;;-1:-1:-1;92020:31:0::2;::::0;91902:82;92020:31:::2;:22;:31;:::i;:::-;91999:18;::::0;::::2;:52:::0;-1:-1:-1;91866:197:0::2;92095:12:::0;;-1:-1:-1;;;;;92095:12:0::2;92119:67;92095:12:::0;92150:10:::2;92171:4;92178:7:::0;92119:67:::2;:22;:67;:::i;:::-;92211:11:::0;;:24:::2;::::0;92227:7;92211:24:::2;:15;:24;:::i;:::-;92197:38:::0;;92251:34:::2;::::0;;;;;::::2;::::0;::::2;::::0;;;;;92259:10:::2;::::0;92251:34:::2;::::0;;;;;;::::2;92319:18;::::0;::::2;::::0;:31:::2;::::0;92342:7;92319:31:::2;:22;:31;:::i;:::-;92298:18;::::0;::::2;:52:::0;92395:16:::2;::::0;::::2;::::0;92379:11;;:43:::2;::::0;92417:4:::2;::::0;92379:33:::2;::::0;::::2;:15;:33;:::i;:43::-;92361:15;::::0;::::2;:61:::0;92452:10:::2;92439:24;::::0;;;:12:::2;:24;::::0;;;;;::::2;;92435:114;;92492:10;92479:24;::::0;;;:12:::2;:24;::::0;;;;:31;;-1:-1:-1;;92479:31:0::2;92506:4;92479:31:::0;;::::2;::::0;;;92525:10:::2;:12:::0;;;;::::2;::::0;;92435:114:::2;-1:-1:-1::0;;21299:1:0;22261:7;:22;-1:-1:-1;;;91252:1304:0:o;89047:873::-;89158:8;:15;89123:7;;89151:22;;89143:47;;;;;-1:-1:-1;;;89143:47:0;;;;;;;;;;;;-1:-1:-1;;;89143:47:0;;;;;;;;;;;;;;;89201:21;89225:8;89234:4;89225:14;;;;;;;;;;;;;;;;89274;;;:8;:14;;;;;;-1:-1:-1;;;;;89274:21:0;;;;;;;;;89328:16;89225:14;;;;;;;89328:16;;;;89374:18;;;;89422:20;;;;89225:14;;-1:-1:-1;89328:16:0;;89407:12;:35;:52;;;;-1:-1:-1;89446:13:0;;;89407:52;89403:315;;;89476:18;89497:49;89511:4;:20;;;89533:12;89497:13;:49::i;:::-;89476:70;;89561:14;89578:52;89614:15;;89578:31;89593:4;:15;;;89578:10;:14;;:31;;;;:::i;:52::-;89561:69;-1:-1:-1;89659:47:0;89675:30;89696:8;89675:16;89561:69;89686:4;89675:16;:10;:16;:::i;:30::-;89659:11;;:47;:15;:47;:::i;:::-;89645:61;;89403:315;;;89728:15;89746:59;89789:4;:15;;;89746:38;89779:4;89746:28;89762:11;89746:4;:11;;;:15;;:28;;;;:::i;:59::-;89728:77;;89816:26;89845:31;89868:7;89845:4;:18;;;:22;;:31;;;;:::i;:::-;89816:60;89047:873;-1:-1:-1;;;;;;;;;89047:873:0:o;88349:690::-;88416:8;:15;88409:22;;88401:47;;;;;-1:-1:-1;;;88401:47:0;;;;;;;;;;;;-1:-1:-1;;;88401:47:0;;;;;;;;;;;;;;;88459:21;88483:8;88492:4;88483:14;;;;;;;;;;;;;;;;;;88459:38;;88528:4;:20;;;88512:12;:36;88508:75;;88565:7;;;88508:75;88612:18;;;;88645:13;88641:102;;-1:-1:-1;88698:12:0;88675:20;;;;:35;88725:7;;88641:102;88753:18;88774:49;88788:4;:20;;;88810:12;88774:13;:49::i;:::-;88753:70;;88834:14;88851:52;88887:15;;88851:31;88866:4;:15;;;88851:10;:14;;:31;;;;:::i;:52::-;88834:69;-1:-1:-1;88933:52:0;88954:30;88975:8;88954:16;88834:69;88965:4;88954:16;:10;:16;:::i;:30::-;88933:16;;;;;:52;:20;:52;:::i;:::-;88914:16;;;:71;-1:-1:-1;;89019:12:0;88996:20;;;;:35;;;;-1:-1:-1;88349:690:0;;:::o;80580:48::-;80623:5;80580:48;:::o;88161:180::-;88223:8;:15;88206:14;88249:85;88277:6;88271:3;:12;88249:85;;;88307:15;88318:3;88307:10;:15::i;:::-;88285:5;;88249:85;;80434:41;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80434:41:0;:::o;79906:25::-;;;-1:-1:-1;;;;;79906:25:0;;:::o;80400:::-;;;;:::o;78459:129::-;77374:5;;-1:-1:-1;;;;;77374:5:0;77360:10;:19;77352:40;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;;;;78537:5:::1;::::0;78528:25:::1;::::0;;-1:-1:-1;;;;;78537:5:0;;::::1;78528:25:::0;;;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;78564:5;:16:::0;;-1:-1:-1;;;;;;78564:16:0::1;-1:-1:-1::0;;;;;78564:16:0;;;::::1;::::0;;;::::1;::::0;;78459:129::o;77847:301::-;77374:5;;-1:-1:-1;;;;;77374:5:0;77360:10;:19;77352:40;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;;;;77926:5:::1;::::0;;77917:27:::1;::::0;;-1:-1:-1;;;;;77926:5:0;;::::1;77917:27:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;::::1;77969:5;::::0;77960:27:::1;::::0;;-1:-1:-1;;;;;77969:5:0;;::::1;77960:27:::0;;77969:5:::1;77960:27;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;78019:12;::::0;78003:41:::1;::::0;;-1:-1:-1;;;;;78019:12:0;;::::1;78003:41:::0;;78019:12:::1;78003:41;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;78073:1;78057:18:::0;;-1:-1:-1;;;;;;78057:18:0;;::::1;::::0;;;;78086:25;;;::::1;::::0;;78122:5:::1;:18:::0;;;;::::1;::::0;;77847:301::o;83778:1068::-;83907:16;83957:2;83944:9;:15;;83936:57;;;;;-1:-1:-1;;;83936:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;84019:8;:15;84012:22;;84004:47;;;;;-1:-1:-1;;;84004:47:0;;;;;;;;;;;;-1:-1:-1;;;84004:47:0;;;;;;;;;;;;;;;84062:21;84086:8;84095:4;84086:14;;;;;;;;;;;;;;;;;;;;;84119:10;;;;84086:14;;-1:-1:-1;84119:10:0;;84111:35;;;;;-1:-1:-1;;;84111:35:0;;;;;;;;;;;;-1:-1:-1;;;84111:35:0;;;;;;;;;;;;;;;84157:21;84181:14;;;:8;:14;;;;;;;;-1:-1:-1;;;;;84181:21:0;;;;;;;;;84245:23;;;84295:26;:17;;;:24;:26::i;:::-;84287:5;:34;84279:73;;;;;-1:-1:-1;;;84279:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;84363:11;84408:26;:4;:17;;:24;:26::i;:::-;84396:9;84388:5;:17;:46;84385:163;;;84456:26;:4;:17;;:24;:26::i;:::-;84450:32;;84385:163;;;-1:-1:-1;84519:17:0;;;84385:163;84558:25;84606:5;84600:3;:11;84586:26;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;84586:26:0;;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;125:4;109:14;101:6;88:42;144:17;;-1:-1;84586:26:0;-1:-1:-1;84558:54:0;-1:-1:-1;84623:13:0;84665:5;84651:162;84674:3;84672:1;:5;84651:162;;;84698:15;84716:23;:17;;;84737:1;84716:23;:20;:23;:::i;:::-;84698:41;;84772:7;84754:8;84763:5;84754:15;;;;;;;;;;;;;;;;;:25;-1:-1:-1;84794:7:0;;;;;84679:3;84651:162;;;-1:-1:-1;84830:8:0;;83778:1068;-1:-1:-1;;;;;;;;;;83778:1068:0:o;85796:451::-;77591:5;;-1:-1:-1;;;;;77591:5:0;77577:10;:19;;:42;;-1:-1:-1;77614:5:0;;-1:-1:-1;;;;;77614:5:0;77600:10;:19;77577:42;77569:63;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;;;;85932:8:::1;:15:::0;85925:22;::::1;85917:47;;;::::0;;-1:-1:-1;;;85917:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;85917:47:0;;;;;;;;;;;;;::::1;;85979:11;85975:61;;;86007:17;:15;:17::i;:::-;86064:63;86115:11;86064:46;86084:8;86093:4;86084:14;;;;;;;;;;;;;;;;;;:25;;;86064:15;;:19;;:46;;;;:::i;:::-;:50:::0;:63:::1;:50;:63;:::i;:::-;86046:15;:81;;;;86166:11;86138:8;86147:4;86138:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;86222:17;86188:8;86197:4;86188:14;;;;;;;;;;;;;;;;;;:31;;:51;;;;85796:451:::0;;;;:::o;76943:20::-;;;-1:-1:-1;;;;;76943:20:0;;:::o;86508:1645::-;86580:7;86614:5;86608:3;:11;86600:53;;;;;-1:-1:-1;;;86600:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;86674:22;;86667:3;:29;;:102;;;-1:-1:-1;86708:24:0;86733:31;;-1:-1:-1;;86733:35:0;;;86708:61;;;;;;;;;;;;;;86700:5;:69;86667:102;86664:141;;;-1:-1:-1;86792:1:0;86785:8;;86664:141;86826:22;;86818:5;:30;86815:91;;;86872:22;;86864:30;;86815:91;86927:24;86952:31;;-1:-1:-1;;86952:35:0;;;86927:61;;;;;;;;;;;;;;86921:3;:67;86918:165;;;87010:24;87035:31;;-1:-1:-1;;87035:35:0;;;87010:61;;;;;;;;;;;;;;87004:67;;86918:165;87174:5;87148:22;;:31;;:69;;;;;87190:24;87215:1;87190:27;;;;;;;;;;;;;;;;87183:3;:34;;87148:69;87144:156;;;87241:47;87260:24;87285:1;87260:27;;;;;;;;;;;;;;;;;;87241:14;:3;87249:5;87241:14;:7;:14;:::i;:::-;:18;:47;:18;:47;:::i;:::-;87233:55;;;;87144:156;87336:1;87322:800;87342:24;:31;87339:34;;87322:800;;;87484:5;87451:24;87478:1;87476;:3;87451:29;;;;;;;;;;;;;;;;:38;;:76;;;;;87500:24;87525:1;87500:27;;;;;;;;;;;;;;;;87493:3;:34;;87451:76;87447:186;;;87554:47;87573:24;87598:1;87573:27;;;;;;;;;;;;;;;;;;87554:14;:3;87562:5;87554:14;:7;:14;:::i;:47::-;87547:54;;;;;87447:186;87708:24;87737:1;87733;:5;87708:31;;;;;;;;;;;;;;;;87700:5;:39;:82;;;;;87779:3;87744:24;87773:1;87769;:5;87744:31;;;;;;;;;;;;;;;;:38;87700:82;:121;;;;;87794:24;87819:1;87794:27;;;;;;;;;;;;;;;;87787:3;:34;;87700:121;87697:414;;;87841:15;87859:79;87906:24;87935:1;87931;:5;87906:31;;;;;;;;;;;;;;;;87859:42;87895:5;87859:24;87888:1;87884;:5;87859:31;;;;;;;;;;;;;;;;:35;;:42;;;;:::i;:79::-;87841:97;;87957:15;87975:73;88020:24;88045:1;88020:27;;;;;;;;;;;;;;;;87975:40;87983:24;88012:1;88008;:5;87983:31;;;;;;;;;;;;;;;;87975:3;:7;;:40;;;;:::i;:73::-;87957:91;-1:-1:-1;88075:20:0;:7;87957:91;88075:20;:11;:20;:::i;:::-;88067:28;;;;;;;87697:414;87375:3;;87322:800;;;-1:-1:-1;88144:1:0;;86508:1645;-1:-1:-1;;;86508:1645:0:o;89928:321::-;90032:8;:15;89995:7;;;;90090:125;90118:6;90112:3;:12;90090:125;;;90160:43;90174:28;90191:3;90196:5;90174:16;:28::i;:::-;90160:9;;:43;:13;:43;:::i;:::-;90148:55;-1:-1:-1;90126:5:0;;90090:125;;;-1:-1:-1;90232:9:0;89928:321;-1:-1:-1;;;89928:321:0:o;99537:124::-;77591:5;;-1:-1:-1;;;;;77591:5:0;77577:10;:19;;:42;;-1:-1:-1;77614:5:0;;-1:-1:-1;;;;;77614:5:0;77600:10;:19;77577:42;77569:63;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;;;;99619:15:::1;:34:::0;;-1:-1:-1;;99619:34:0::1;::::0;::::1;;::::0;;;::::1;::::0;;99537:124::o;94256:1663::-;21343:1;21949:7;;:19;;21941:63;;;;;-1:-1:-1;;;21941:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21941:63:0;;;;;;;;;;;;;;;21343:1;22082:7;:18;94353:8:::1;:15:::0;94346:22;::::1;94338:47;;;::::0;;-1:-1:-1;;;94338:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;94338:47:0;;;;;;;;;;;;;::::1;;94396:21;94420:8;94429:4;94420:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;94453:10;::::0;::::1;::::0;94420:14;;-1:-1:-1;94453:10:0::1;;94445:35;;;::::0;;-1:-1:-1;;;94445:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;94445:35:0;;;;;;;;;;;;;::::1;;94514:12:::0;;94562:28:::1;::::0;;-1:-1:-1;;;94562:28:0;;94579:10:::1;94562:28;::::0;::::1;::::0;;;-1:-1:-1;;;;;94514:12:0;;::::1;::::0;94491:13:::1;::::0;94514:12;;94562:16:::1;::::0;:28;;;;;::::1;::::0;;;;;;;;;94514:12;94562:28;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;94562:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;94562:28:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;94562:28:0;;-1:-1:-1;94609:17:0;94601:66:::1;;;;-1:-1:-1::0;;;94601:66:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94697:13;94686:7;:24;;94678:53;;;::::0;;-1:-1:-1;;;94678:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;94678:53:0;;;;;;;;;;;;;::::1;;94742:21;94766:14:::0;;;:8:::1;:14;::::0;;;;;;;94781:10:::1;94766:26:::0;;;;;;;94803:16:::1;94775:4:::0;94803:10:::1;:16::i;:::-;94834:11:::0;;:15;94830:197:::1;;94866:15;94884:64;94932:4;:15;;;94884:43;94922:4;94884:33;94900:4;:16;;;94884:4;:11;;;:15;;:33;;;;:::i;:64::-;94984:18;::::0;::::1;::::0;94866:82;;-1:-1:-1;94984:31:0::1;::::0;94866:82;94984:31:::1;:22;:31;:::i;:::-;94963:18;::::0;::::1;:52:::0;-1:-1:-1;94830:197:0::1;95053:9;95049:393;95068:7;95066:1;:9;95049:393;;;95247:41;::::0;;-1:-1:-1;;;95247:41:0;;95274:10:::1;95247:41;::::0;::::1;::::0;95229:15:::1;95247:41:::0;;;;;;;;-1:-1:-1;;;;;95247:26:0;::::1;::::0;::::1;::::0;:41;;;;;::::1;::::0;;;;;;;;:26;:41;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;95247:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;95247:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;95247:41:0;;-1:-1:-1;95317:30:0::1;:17;::::0;::::1;95247:41:::0;95317:30:::1;:21;:30;:::i;:::-;-1:-1:-1::0;95362:68:0::1;::::0;;-1:-1:-1;;;95362:68:0;;95394:10:::1;95362:68;::::0;::::1;::::0;95415:4:::1;95362:68:::0;;;;;;;;;;;;-1:-1:-1;;;;;95362:23:0;::::1;::::0;::::1;::::0;:68;;;;;-1:-1:-1;;95362:68:0;;;;;;;-1:-1:-1;95362:23:0;:68;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;95362:68:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;-1:-1:::0;;95077:3:0::1;::::0;;::::1;::::0;-1:-1:-1;95049:393:0::1;::::0;-1:-1:-1;;95049:393:0::1;;-1:-1:-1::0;95466:11:0;;:24:::1;::::0;95482:7;95466:24:::1;:15;:24;:::i;:::-;95452:38:::0;;95522:18:::1;::::0;::::1;::::0;:31:::1;::::0;95545:7;95522:31:::1;:22;:31;:::i;:::-;95501:18;::::0;::::1;:52:::0;95598:16:::1;::::0;::::1;::::0;95582:11;;:43:::1;::::0;95620:4:::1;::::0;95582:33:::1;::::0;::::1;:15;:33;:::i;:43::-;95564:15;::::0;::::1;:61:::0;95643:34:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;95651:10:::1;::::0;95643:34:::1;::::0;;;;;;::::1;95707:10;95694:24;::::0;;;:12:::1;:24;::::0;;;;;::::1;;95690:114;;95747:10;95734:24;::::0;;;:12:::1;:24;::::0;;;;:31;;-1:-1:-1;;95734:31:0::1;95761:4;95734:31:::0;;::::1;::::0;;;95780:10:::1;:12:::0;;;;::::1;::::0;;95690:114:::1;95839:26;:4;:17;;:24;:26::i;:::-;95824:11:::0;;:41:::1;95816:95;;;;-1:-1:-1::0;;;95816:95:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80484:41:::0;;;;;;;;;;82499:236;77374:5;;-1:-1:-1;;;;;77374:5:0;77360:10;:19;77352:40;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;;;;82614:24:::1;:31:::0;82600:45;::::1;82592:77;;;::::0;;-1:-1:-1;;;82592:77:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;82592:77:0;;;;;;;;;;;;;::::1;;82720:7;82680:24;82705:11;82680:37;;;;;;;80266:34:::0;;;;;;:::o;85028:760::-;77591:5;;-1:-1:-1;;;;;77591:5:0;77577:10;:19;;:42;;-1:-1:-1;77614:5:0;;-1:-1:-1;;;;;77614:5:0;77600:10;:19;77577:42;77569:63;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;;;;85170:11:::1;85166:61;;;85198:17;:15;:17::i;:::-;85237:23;85278:22;;85263:12;:37;:77;;85318:22;;85263:77;;;85303:12;85263:77;85369:15;::::0;85237:103;;-1:-1:-1;85369:32:0::1;::::0;85389:11;85369:32:::1;:19;:32;:::i;:::-;85351:15;:50:::0;85414:25:::1;;:::i;:::-;85450:24:::0;::::1;;:15;::::0;::::1;:24:::0;;;-1:-1:-1;;;;;85485:28:0;;::::1;::::0;;85524:20:::1;::::0;::::1;:34:::0;;;85569:25:::1;::::0;::::1;:43:::0;;;-1:-1:-1;85623:21:0::1;::::0;::::1;:25:::0;;;-1:-1:-1;85659:26:0;::::1;:46:::0;;;-1:-1:-1;85716:23:0;::::1;:27:::0;;;85756:8:::1;27:10:-1::0;;39:1:::1;23:18:::0;::::1;45:23:::0;;85756:24:0;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;85756:24:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;85756:24:0;;;;;;;;;;;;-1:-1:-1;;85756:24:0::1;::::0;::::1;;::::0;;;::::1;::::0;;85028:760::o;90257:245::-;90312:8;:15;90295:14;90338:157;90366:6;90360:3;:12;90338:157;;;90436:1;90400:33;90417:3;90422:10;90400:16;:33::i;:::-;:37;90396:88;;;90458:10;90464:3;90458:5;:10::i;:::-;90374:5;;90338:157;;98541:388;77591:5;;-1:-1:-1;;;;;77591:5:0;77577:10;:19;;:42;;-1:-1:-1;77614:5:0;;-1:-1:-1;;;;;77614:5:0;77600:10;:19;77577:42;77569:63;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;-1:-1:-1;;;77569:63:0;;;;;;;;;;;;;;;98657:1:::1;98637:10;:17;:21;98629:53;;;::::0;;-1:-1:-1;;;98629:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;98629:53:0;;;;;;;;;;;;;::::1;;98698:9;98693:229;98717:10;:17;98713:1;:21;98693:229;;;98756:12;98771:10;98782:1;98771:13;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;98803:15:0;::::1;;::::0;;;:9:::1;:15:::0;;;;;;;;98771:13;;-1:-1:-1;98803:15:0::1;;98799:112;;98838:14;:16:::0;;::::1;::::0;;::::1;::::0;;;-1:-1:-1;;;;;98873:15:0;::::1;98838:14;98873:15:::0;;;:9:::1;:15;::::0;;;;:22;;-1:-1:-1;;98873:22:0::1;::::0;;::::1;::::0;;98799:112:::1;-1:-1:-1::0;98736:3:0::1;;98693:229;;92604:928:::0;21343:1;21949:7;;:19;;21941:63;;;;;-1:-1:-1;;;21941:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21941:63:0;;;;;;;;;;;;;;;21343:1;22082:7;:18;92704:8:::1;:15:::0;92697:22;::::1;92689:47;;;::::0;;-1:-1:-1;;;92689:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;92689:47:0;;;;;;;;;;;;;::::1;;92747:21;92771:8;92780:4;92771:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;92805:10;::::0;::::1;::::0;92771:14;;-1:-1:-1;92805:10:0::1;;92804:11;92796:63;;;;-1:-1:-1::0;;;92796:63:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92870:21;92894:14:::0;;;:8:::1;:14;::::0;;;;;;;92909:10:::1;92894:26:::0;;;;;;;92939:11;;:22;-1:-1:-1;92939:22:0::1;92931:70;;;;-1:-1:-1::0;;;92931:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93012:16;93023:4;93012:10;:16::i;:::-;93039:15;93057:64;93105:4;:15;;;93057:43;93095:4;93057:33;93073:4;:16;;;93057:4;:11;;;:15;;:33;;;;:::i;:64::-;93153:18;::::0;::::1;::::0;93039:82;;-1:-1:-1;93153:31:0::1;::::0;93039:82;93153:31:::1;:22;:31;:::i;:::-;93132:18;::::0;::::1;:52:::0;93209:11;;:24:::1;::::0;93225:7;93209:24:::1;:15;:24;:::i;:::-;93195:38:::0;;;93278:16:::1;::::0;::::1;::::0;93262:43:::1;::::0;93300:4:::1;::::0;93262:33:::1;::::0;93195:38;93262:33:::1;:15;:33;:::i;:43::-;93244:15;::::0;::::1;:61:::0;93338:12;;-1:-1:-1;;;;;93338:12:0::1;93362:48;93338:12:::0;93389:10:::1;93402:7:::0;93362:48:::1;:18;:48;:::i;:::-;93442:18;::::0;::::1;::::0;:31:::1;::::0;93465:7;93442:31:::1;:22;:31;:::i;:::-;93421:18;::::0;::::1;:52:::0;93489:35:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;93498:10:::1;::::0;93489:35:::1;::::0;;;;;;::::1;-1:-1:-1::0;;21299:1:0;22261:7;:22;-1:-1:-1;;;;92604:928:0:o;80534:37::-;;;;:::o;76970:27::-;;;-1:-1:-1;;;;;76970:27:0;;:::o;78160:283::-;77479:12;;-1:-1:-1;;;;;77479:12:0;77465:10;:26;77457:54;;;;;-1:-1:-1;;;77457:54:0;;;;;;;;;;;;-1:-1:-1;;;77457:54:0;;;;;;;;;;;;;;;78232:5:::1;::::0;;78239:12;78223:29:::1;::::0;;-1:-1:-1;;;;;78232:5:0;;::::1;78223:29:::0;;78239:12;;;::::1;78223:29;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;78271:12;::::0;::::1;78263:20:::0;;-1:-1:-1;;;;;;78263:20:0::1;-1:-1:-1::0;;;;;78271:12:0;;::::1;78263:20:::0;;::::1;::::0;;78348:46:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;78271:12;;78348:46:::1;::::0;;;;;;;;;::::1;78405:12;:30:::0;;-1:-1:-1;;;;;;78405:30:0::1;-1:-1:-1::0;;;;;78405:30:0;;;::::1;::::0;;;::::1;::::0;;78160:283::o;99880:1481::-;100009:22;;99937:7;;99973:12;;99999:32;;99996:71;;100054:1;100047:8;;;;;99996:71;100129:24;100154:31;;100077:25;;100129:24;100154:38;;100190:1;100154:38;:35;:38;:::i;:::-;100129:64;;;;;;;;;;;;;;;;100120:6;:73;100117:482;;;100229:24;:31;:38;;100265:1;100229:38;:35;:38;:::i;:::-;100209:58;;100291:24;100316:17;100291:43;;;;;;;;;;;;;;;;100282:52;;100117:482;;;100369:9;100365:223;100384:24;:31;100382:33;;100365:223;;;100453:24;100478:1;100453:27;;;;;;;;;;;;;;;;100443:6;:37;100440:133;;100524:1;100504:21;;100548:5;;100440:133;100417:3;;100365:223;;;;100117:482;100611:15;100644:22;100641:282;;100692:67;100731:24;100756:1;100731:27;;;;;;;;;;;;;;;;100692:34;100703:22;;100692:6;:10;;:34;;;;:::i;:67::-;100682:77;;100641:282;;;100800:111;100867:24;100892:17;100867:43;;;;;;;;;;;;;;;;;;100800:62;100811:24;100836;:17;100858:1;100836:24;:21;:24;:::i;:::-;100811:50;;;;;;;;;;;;;;;;100800:6;:10;;:62;;;;:::i;:111::-;100790:121;;100641:282;100939:9;100935:392;100958:17;100954:1;:21;100935:392;;;100999:6;100996:320;;101035:101;101047:88;101107:24;101132:1;101107:27;;;;;;;;;;;;;;;;101047:55;101079:22;;101047:24;101072:1;101047:27;;;;;;;101035:101;101025:111;;100996:320;;;101185:115;101197:102;101271:24;101296:1;101271:27;;;;;;;;;;;;;;;;;;101198:67;101230:24;101255:8;:1;101261;101255:8;:5;:8;:::i;:::-;101230:34;;;;;;;;;;;;;;;;101198:24;101223:1;101198:27;;;;;;;101185:115;101175:125;;100996:320;100977:3;;100935:392;;;-1:-1:-1;101346:7:0;-1:-1:-1;;;99880:1481:0;:::o;80309:29::-;;;;:::o;77665:174::-;77374:5;;-1:-1:-1;;;;;77374:5:0;77360:10;:19;77352:40;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;;;;77764:12:::1;::::0;77748:44:::1;::::0;;-1:-1:-1;;;;;77764:12:0;;::::1;77748:44:::0;;;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;77803:12;:28:::0;;-1:-1:-1;;;;;;77803:28:0::1;-1:-1:-1::0;;;;;77803:28:0;;;::::1;::::0;;;::::1;::::0;;77665:174::o;77004:20::-;;;-1:-1:-1;;;;;77004:20:0;;:::o;83011:369::-;77374:5;;-1:-1:-1;;;;;77374:5:0;77360:10;:19;77352:40;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;-1:-1:-1;;;77352:40:0;;;;;;;;;;;;;;;83154:24:::1;83179:31:::0;;-1:-1:-1;;83179:35:0;;;83154:61;::::1;;;;;;;;;;;;;83131:20;:84;83123:125;;;::::0;;-1:-1:-1;;;83123:125:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;83259:24;27:10:-1::0;;39:1:::1;23:18:::0;;::::1;45:23:::0;;;83259:51:0;::::1;::::0;;;;83321:24:::1;27:10:-1::0;;23:18;;::::1;45:23:::0;;-1:-1;83321:51:0;;;;::::1;::::0;83011:369::o;47841:114::-;47901:7;47928:19;47936:3;47928:7;:19::i;48299:137::-;48370:7;48405:22;48409:3;48421:5;48405:3;:22::i;:::-;48397:31;48299:137;-1:-1:-1;;;48299:137:0:o;47386:::-;47456:4;47480:35;47488:3;47508:5;47480:7;:35::i;7291:158::-;7349:7;7382:1;7377;:6;;7369:49;;;;;-1:-1:-1;;;7369:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7436:5:0;;;7291:158::o;22999:177::-;23109:58;;;-1:-1:-1;;;;;23109:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;23109:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;23082:86:0;;23102:5;;23082:19;:86::i;:::-;22999:177;;;:::o;7708:220::-;7766:7;7790:6;7786:20;;-1:-1:-1;7805:1:0;7798:8;;7786:20;7829:5;;;7833:1;7829;:5;:1;7853:5;;;;;:10;7845:56;;;;-1:-1:-1;;;7845:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8406:153;8464:7;8496:1;8492;:5;8484:44;;;;;-1:-1:-1;;;8484:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8550:1;8546;:5;;;;;;;8406:153;-1:-1:-1;;;8406:153:0:o;6829:179::-;6887:7;6919:5;;;6943:6;;;;6935:46;;;;;-1:-1:-1;;;6935:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;98283:250;98380:11;;;:36;;;-1:-1:-1;;;98380:36:0;;98410:4;98380:36;;;;;;;;98366:11;;-1:-1:-1;;;;;98380:11:0;;;;:21;;:36;;;;;;;;;;;;;;:11;:36;;;2:2:-1;;;;27:1;24;17:12;2:2;98380:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;98380:36:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;98380:36:0;;-1:-1:-1;98435:14:0;;;;98427:49;;;;;-1:-1:-1;;;98427:49:0;;;;;;;;;;;;-1:-1:-1;;;98427:49:0;;;;;;;;;;;;;;;98487:11;;:38;;-1:-1:-1;;;;;98487:11:0;98512:3;98517:7;98487:38;:24;:38;:::i;23184:205::-;23312:68;;;-1:-1:-1;;;;;23312:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;23312:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;23285:96:0;;23305:5;;23285:19;:96::i;:::-;23184:205;;;;:::o;47079:131::-;47146:4;47170:32;47175:3;47195:5;47170:4;:32::i;42884:109::-;42967:18;;42884:109::o;43337:204::-;43432:18;;43404:7;;43432:26;-1:-1:-1;43424:73:0;;;;-1:-1:-1;;;43424:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43515:3;:11;;43527:5;43515:18;;;;;;;;;;;;;;;;43508:25;;43337:204;;;;:::o;41039:1544::-;41105:4;41244:19;;;:12;;;:19;;;;;;41280:15;;41276:1300;;41715:18;;-1:-1:-1;;41666:14:0;;;;41715:22;;;;41642:21;;41715:3;;:22;;42002;;;;;;;;;;;;;;41982:42;;42148:9;42119:3;:11;;42131:13;42119:26;;;;;;;;;;;;;;;;;;;:38;;;;42225:23;;;42267:1;42225:12;;;:23;;;;;;42251:17;;;42225:43;;42377:17;;42225:3;;42377:17;;;;;;;;;;;;;;;;;;;;;;42472:3;:12;;:19;42485:5;42472:19;;;;;;;;;;;42465:26;;;42515:4;42508:11;;;;;;;;41276:1300;42559:5;42552:12;;;;;25304:761;25728:23;25754:69;25782:4;25754:69;;;;;;;;;;;;;;;;;25762:5;-1:-1:-1;;;;;25754:27:0;;;:69;;;;;:::i;:::-;25838:17;;25728:95;;-1:-1:-1;25838:21:0;25834:224;;25980:10;25969:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;25969:30:0;25961:85;;;;-1:-1:-1;;;25961:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40449:414;40512:4;40534:21;40544:3;40549:5;40534:9;:21::i;:::-;40529:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;40572:11:0;:23;;;;;;;;;;;;;40755:18;;40733:19;;;:12;;;:19;;;;;;:40;;;;40788:11;;40529:327;-1:-1:-1;40839:5:0;40832:12;;15219:195;15322:12;15354:52;15376:6;15384:4;15390:1;15393:12;15354:21;:52::i;:::-;15347:59;15219:195;-1:-1:-1;;;;15219:195:0:o;42669:129::-;42742:4;42766:19;;;:12;;;;;:19;;;;;;:24;;;42669:129::o;16271:530::-;16398:12;16456:5;16431:21;:30;;16423:81;;;;-1:-1:-1;;;16423:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16523:18;16534:6;16523:10;:18::i;:::-;16515:60;;;;;-1:-1:-1;;;16515:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16649:12;16663:23;16690:6;-1:-1:-1;;;;;16690:11:0;16710:5;16718:4;16690:33;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;16690:33:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;16648:75:0;;;;16741:52;16759:7;16768:10;16780:12;16741:17;:52::i;:::-;16734:59;16271:530;-1:-1:-1;;;;;;;16271:530:0:o;12301:422::-;12668:20;12707:8;;;12301:422::o;18811:742::-;18926:12;18955:7;18951:595;;;-1:-1:-1;18986:10:0;18979:17;;18951:595;19100:17;;:21;19096:439;;19363:10;19357:17;19424:15;19411:10;19407:2;19403:19;19396:44;19311:148;19506:12;19499:20;;-1:-1:-1;;;19499:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;19499:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78679:22685;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;-1:-1:-1;;;;;78679:22685:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://f74108f84d4338dcfe86009e0a6e53da4705552fc298311e8a267e7d7b6ff87d
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.