ETH Price: $2,975.64 (+1.90%)
Gas: 1 Gwei

Contract

0xCb9f819Dc5Cf25AB1719Cd2ed91d9F5e2aC0D214
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60a06040145831262022-04-14 10:53:15813 days ago1649933595IN
 Create: KODAV3UpgradableGatedMarketplace
0 ETH0.124566426.71594504

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KODAV3UpgradableGatedMarketplace

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-04-14
*/

// File @openzeppelin/contracts/utils/cryptography/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}


// File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)



/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        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-upgradeable/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts-upgradeable/token/ERC20/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)




/**
 * @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 SafeERC20Upgradeable {
    using AddressUpgradeable for address;

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

    function safeTransferFrom(
        IERC20Upgradeable 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(
        IERC20Upgradeable 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'
        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(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20Upgradeable token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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(IERC20Upgradeable 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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)



/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}


// File @openzeppelin/contracts-upgradeable/security/[email protected]


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)



/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal onlyInitializing {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal onlyInitializing {
        _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 making 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;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)



/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}


// File @openzeppelin/contracts-upgradeable/security/[email protected]


// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)




/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}


// File @openzeppelin/contracts-upgradeable/interfaces/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)



/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}


// File @openzeppelin/contracts-upgradeable/proxy/beacon/[email protected]


// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)



/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}


// File @openzeppelin/contracts-upgradeable/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)



/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly {
            r.slot := slot
        }
    }
}


// File @openzeppelin/contracts-upgradeable/proxy/ERC1967/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;





/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @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) private returns (bytes memory) {
        require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}


// File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)





/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate that the this implementation remains valid after an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}


// File @openzeppelin/contracts/token/ERC20/[email protected]





/**
 * @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 contracts/access/IKOAccessControlsLookup.sol



pragma solidity 0.8.4;

interface IKOAccessControlsLookup {
    function hasAdminRole(address _address) external view returns (bool);

    function isVerifiedArtist(uint256 _index, address _account, bytes32[] calldata _merkleProof) external view returns (bool);

    function isVerifiedArtistProxy(address _artist, address _proxy) external view returns (bool);

    function hasLegacyMinterRole(address _address) external view returns (bool);

    function hasContractRole(address _address) external view returns (bool);

    function hasContractOrAdminRole(address _address) external view returns (bool);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]





/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]





/**
 * @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 contracts/core/IERC2309.sol



pragma solidity 0.8.4;

/**
  @title ERC-2309: ERC-721 Batch Mint Extension
  @dev https://github.com/ethereum/EIPs/issues/2309
 */
interface IERC2309 {
    /**
      @notice This event is emitted when ownership of a batch of tokens changes by any mechanism.
      This includes minting, transferring, and burning.

      @dev The address executing the transaction MUST own all the tokens within the range of
      fromTokenId and toTokenId, or MUST be an approved operator to act on the owners behalf.
      The fromTokenId and toTokenId MUST be a sequential range of tokens IDs.
      When minting/creating tokens, the `fromAddress` argument MUST be set to `0x0` (i.e. zero address).
      When burning/destroying tokens, the `toAddress` argument MUST be set to `0x0` (i.e. zero address).

      @param fromTokenId The token ID that begins the batch of tokens being transferred
      @param toTokenId The token ID that ends the batch of tokens being transferred
      @param fromAddress The address transferring ownership of the specified range of tokens
      @param toAddress The address receiving ownership of the specified range of tokens.
    */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress);
}


// File contracts/core/IERC2981.sol



pragma solidity 0.8.4;

/// @notice This is purely an extension for the KO platform
/// @notice Royalties on KO are defined at an edition level for all tokens from the same edition
interface IERC2981EditionExtension {

    /// @notice Does the edition have any royalties defined
    function hasRoyalties(uint256 _editionId) external view returns (bool);

    /// @notice Get the royalty receiver - all royalties should be sent to this account if not zero address
    function getRoyaltiesReceiver(uint256 _editionId) external view returns (address);
}

/**
 * ERC2981 standards interface for royalties
 */
interface IERC2981 is IERC165, IERC2981EditionExtension {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for _value sale price
    function royaltyInfo(
        uint256 _tokenId,
        uint256 _value
    ) external view returns (
        address _receiver,
        uint256 _royaltyAmount
    );

}


// File contracts/core/IHasSecondarySaleFees.sol



pragma solidity 0.8.4;

/// @title Royalties formats required for use on the Rarible platform
/// @dev https://docs.rarible.com/asset/royalties-schema
interface IHasSecondarySaleFees is IERC165 {

    event SecondarySaleFees(uint256 tokenId, address[] recipients, uint[] bps);

    function getFeeRecipients(uint256 id) external returns (address payable[] memory);

    function getFeeBps(uint256 id) external returns (uint[] memory);
}


// File contracts/core/IKODAV3.sol



pragma solidity 0.8.4;





/// @title Core KODA V3 functionality
interface IKODAV3 is
IERC165, // Contract introspection
IERC721, // Core NFTs
IERC2309, // Consecutive batch mint
IERC2981, // Royalties
IHasSecondarySaleFees // Rariable / Foundation royalties
{
    // edition utils

    function getCreatorOfEdition(uint256 _editionId) external view returns (address _originalCreator);

    function getCreatorOfToken(uint256 _tokenId) external view returns (address _originalCreator);

    function getSizeOfEdition(uint256 _editionId) external view returns (uint256 _size);

    function getEditionSizeOfToken(uint256 _tokenId) external view returns (uint256 _size);

    function editionExists(uint256 _editionId) external view returns (bool);

    // Has the edition been disabled / soft burnt
    function isEditionSalesDisabled(uint256 _editionId) external view returns (bool);

    // Has the edition been disabled / soft burnt OR sold out
    function isSalesDisabledOrSoldOut(uint256 _editionId) external view returns (bool);

    // Work out the max token ID for an edition ID
    function maxTokenIdOfEdition(uint256 _editionId) external view returns (uint256 _tokenId);

    // Helper method for getting the next primary sale token from an edition starting low to high token IDs
    function getNextAvailablePrimarySaleToken(uint256 _editionId) external returns (uint256 _tokenId);

    // Helper method for getting the next primary sale token from an edition starting high to low token IDs
    function getReverseAvailablePrimarySaleToken(uint256 _editionId) external view returns (uint256 _tokenId);

    // Utility method to get all data needed for the next primary sale, low token ID to high
    function facilitateNextPrimarySale(uint256 _editionId) external returns (address _receiver, address _creator, uint256 _tokenId);

    // Utility method to get all data needed for the next primary sale, high token ID to low
    function facilitateReversePrimarySale(uint256 _editionId) external returns (address _receiver, address _creator, uint256 _tokenId);

    // Expanded royalty method for the edition, not token
    function royaltyAndCreatorInfo(uint256 _editionId, uint256 _value) external returns (address _receiver, address _creator, uint256 _amount);

    // Allows the creator to correct mistakes until the first token from an edition is sold
    function updateURIIfNoSaleMade(uint256 _editionId, string calldata _newURI) external;

    // Has any primary transfer happened from an edition
    function hasMadePrimarySale(uint256 _editionId) external view returns (bool);

    // Has the edition sold out
    function isEditionSoldOut(uint256 _editionId) external view returns (bool);

    // Toggle on/off the edition from being able to make sales
    function toggleEditionSalesDisabled(uint256 _editionId) external;

    // token utils

    function exists(uint256 _tokenId) external view returns (bool);

    function getEditionIdOfToken(uint256 _tokenId) external pure returns (uint256 _editionId);

    function getEditionDetails(uint256 _tokenId) external view returns (address _originalCreator, address _owner, uint16 _size, uint256 _editionId, string memory _uri);

    function hadPrimarySaleOfToken(uint256 _tokenId) external view returns (bool);

}


// File contracts/marketplace/BaseUpgradableMarketplace.sol



pragma solidity 0.8.4;







/// @notice Core logic and state shared between upgradable marketplaces
abstract contract BaseUpgradableMarketplace is ReentrancyGuardUpgradeable, PausableUpgradeable, UUPSUpgradeable {

    event AdminUpdateModulo(uint256 _modulo);
    event AdminUpdatePlatformPrimaryCommission(uint256 newAmount);
    event AdminUpdateMinBidAmount(uint256 _minBidAmount);
    event AdminUpdateAccessControls(IKOAccessControlsLookup indexed _oldAddress, IKOAccessControlsLookup indexed _newAddress);
    event AdminUpdateBidLockupPeriod(uint256 _bidLockupPeriod);
    event AdminUpdatePlatformAccount(address indexed _oldAddress, address indexed _newAddress);
    event AdminRecoverERC20(address indexed _token, address indexed _recipient, uint256 _amount);
    event AdminRecoverETH(address payable indexed _recipient, uint256 _amount);

    event BidderRefunded(uint256 indexed _id, address _bidder, uint256 _bid, address _newBidder, uint256 _newOffer);
    event BidderRefundedFailed(uint256 indexed _id, address _bidder, uint256 _bid, address _newBidder, uint256 _newOffer);

    // KO Commission override definition for a given item
    struct KOCommissionOverride {
        bool active;
        uint256 koCommission;
    }

    // Only admin defined in the access controls contract
    modifier onlyAdmin() {
        require(accessControls.hasAdminRole(_msgSender()), "Caller not admin");
        _;
    }

    modifier onlyCreatorContractOrAdmin(uint256 _editionId) {
        require(
            koda.getCreatorOfEdition(_editionId) == _msgSender() || accessControls.hasContractOrAdminRole(_msgSender()),
            "Caller not creator or admin"
        );
        _;
    }

    /// @notice Address of the access control contract
    IKOAccessControlsLookup public accessControls;

    /// @notice KODA V3 token
    IKODAV3 public koda;

    /// @notice platform funds collector
    address public platformAccount;

    /// @notice precision 100.00000%
    uint256 public modulo;

    /// @notice Minimum bid / minimum list amount
    uint256 public minBidAmount;

    /// @notice Bid lockup period
    uint256 public bidLockupPeriod;

    /// @notice Primary commission percentage
    uint256 public platformPrimaryCommission;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() initializer {}

    function initialize(IKOAccessControlsLookup _accessControls, IKODAV3 _koda, address _platformAccount) public initializer {
        __ReentrancyGuard_init();
        __Pausable_init();

        require(address(_accessControls) != address(0), "Unable to set invalid accessControls address");
        require(address(_koda) != address(0), "Unable to set invalid koda address");
        require(_platformAccount != address(0), "Unable to set invalid _platformAccount address");

        accessControls = _accessControls;
        koda = _koda;
        platformAccount = _platformAccount;

        // initial values for adjustable vars
        modulo = 100_00000;
        platformPrimaryCommission = 15_00000;
        minBidAmount = 0.01 ether;
        bidLockupPeriod = 6 hours;
    }

    function _authorizeUpgrade(address newImplementation) internal view override {
        require(accessControls.hasAdminRole(msg.sender), "Only admin can upgrade");
    }

    function recoverERC20(address _token, address _recipient, uint256 _amount) public onlyAdmin {
        require(_recipient != address(0), "Unable to send funds to invalid _recipient address");
        SafeERC20Upgradeable.safeTransfer(IERC20Upgradeable(_token), _recipient, _amount);
        emit AdminRecoverERC20(_token, _recipient, _amount);
    }

    function recoverStuckETH(address payable _recipient, uint256 _amount) public onlyAdmin {
        require(_recipient != address(0), "Unable to send funds to invalid _recipient address");
        (bool success,) = _recipient.call{value : _amount}("");
        require(success, "Unable to send recipient ETH");
        emit AdminRecoverETH(_recipient, _amount);
    }

    function updatePlatformPrimaryCommission(uint256 _newAmount) external onlyAdmin {
        require(_newAmount <= 10**40, "Platform commission too high - danger of over overflow");
        platformPrimaryCommission = _newAmount;
        emit AdminUpdatePlatformPrimaryCommission(_newAmount);
    }

    function updateAccessControls(IKOAccessControlsLookup _accessControls) public onlyAdmin {
        require(_accessControls.hasAdminRole(_msgSender()), "Sender must have admin role in new contract");
        emit AdminUpdateAccessControls(accessControls, _accessControls);
        accessControls = _accessControls;
    }

    function updateModulo(uint256 _modulo) public onlyAdmin {
        require(_modulo > 0, "Modulo point cannot be zero");
        modulo = _modulo;
        emit AdminUpdateModulo(_modulo);
    }

    function updateMinBidAmount(uint256 _minBidAmount) public onlyAdmin {
        minBidAmount = _minBidAmount;
        emit AdminUpdateMinBidAmount(_minBidAmount);
    }

    function updateBidLockupPeriod(uint256 _bidLockupPeriod) public onlyAdmin {
        bidLockupPeriod = _bidLockupPeriod;
        emit AdminUpdateBidLockupPeriod(_bidLockupPeriod);
    }

    function updatePlatformAccount(address _newPlatformAccount) public onlyAdmin {
        require(_newPlatformAccount != address(0), "Unable to set invalid _newPlatformAccount address");
        emit AdminUpdatePlatformAccount(platformAccount, _newPlatformAccount);
        platformAccount = _newPlatformAccount;
    }

    function pause() public onlyAdmin {
        super._pause();
    }

    function unpause() public onlyAdmin {
        super._unpause();
    }

    function _getLockupTime() internal view returns (uint256 lockupUntil) {
        lockupUntil = block.timestamp + bidLockupPeriod;
    }

    function _handleSaleFunds(address _fundsReceiver, uint256 _platformCommission) internal {
        uint256 koCommission = msg.value * _platformCommission / modulo;
        if (koCommission > 0) {
            (bool koCommissionSuccess,) = platformAccount.call{value : koCommission}("");
            require(koCommissionSuccess, "commission payment failed");
        }
        (bool success,) = _fundsReceiver.call{value : msg.value - koCommission}("");
        require(success, "payment failed");
    }

    function _refundBidder(uint256 _id, address _receiver, uint256 _paymentAmount, address _newBidder, uint256 _newOffer) internal {
        (bool success,) = _receiver.call{value : _paymentAmount}("");
        if (!success) {
            emit BidderRefundedFailed(_id, _receiver, _paymentAmount, _newBidder, _newOffer);
        } else {
            emit BidderRefunded(_id, _receiver, _paymentAmount, _newBidder, _newOffer);
        }
    }

}


// File contracts/marketplace/IKODAV3Marketplace.sol


pragma solidity 0.8.4;

interface IBuyNowMarketplace {
    event ListedForBuyNow(uint256 indexed _id, uint256 _price, address _currentOwner, uint256 _startDate);
    event BuyNowPriceChanged(uint256 indexed _id, uint256 _price);
    event BuyNowDeListed(uint256 indexed _id);
    event BuyNowPurchased(uint256 indexed _tokenId, address _buyer, address _currentOwner, uint256 _price);

    function listForBuyNow(address _creator, uint256 _id, uint128 _listingPrice, uint128 _startDate) external;

    function buyEditionToken(uint256 _id) external payable;
    function buyEditionTokenFor(uint256 _id, address _recipient) external payable;

    function setBuyNowPriceListing(uint256 _editionId, uint128 _listingPrice) external;
}

interface IEditionOffersMarketplace {
    event EditionAcceptingOffer(uint256 indexed _editionId, uint128 _startDate);
    event EditionBidPlaced(uint256 indexed _editionId, address _bidder, uint256 _amount);
    event EditionBidWithdrawn(uint256 indexed _editionId, address _bidder);
    event EditionBidAccepted(uint256 indexed _editionId, uint256 indexed _tokenId, address _bidder, uint256 _amount);
    event EditionBidRejected(uint256 indexed _editionId, address _bidder, uint256 _amount);
    event EditionConvertedFromOffersToBuyItNow(uint256 _editionId, uint128 _price, uint128 _startDate);

    function enableEditionOffers(uint256 _editionId, uint128 _startDate) external;

    function placeEditionBid(uint256 _editionId) external payable;
    function placeEditionBidFor(uint256 _editionId, address _bidder) external payable;

    function withdrawEditionBid(uint256 _editionId) external;

    function rejectEditionBid(uint256 _editionId) external;

    function acceptEditionBid(uint256 _editionId, uint256 _offerPrice) external;

    function convertOffersToBuyItNow(uint256 _editionId, uint128 _listingPrice, uint128 _startDate) external;
}

interface IEditionSteppedMarketplace {
    event EditionSteppedSaleListed(uint256 indexed _editionId, uint128 _basePrice, uint128 _stepPrice, uint128 _startDate);
    event EditionSteppedSaleBuy(uint256 indexed _editionId, uint256 indexed _tokenId, address _buyer, uint256 _price, uint16 _currentStep);
    event EditionSteppedAuctionUpdated(uint256 indexed _editionId, uint128 _basePrice, uint128 _stepPrice);

    function listSteppedEditionAuction(address _creator, uint256 _editionId, uint128 _basePrice, uint128 _stepPrice, uint128 _startDate) external;

    function buyNextStep(uint256 _editionId) external payable;
    function buyNextStepFor(uint256 _editionId, address _buyer) external payable;

    function convertSteppedAuctionToListing(uint256 _editionId, uint128 _listingPrice, uint128 _startDate) external;

    function convertSteppedAuctionToOffers(uint256 _editionId, uint128 _startDate) external;

    function updateSteppedAuction(uint256 _editionId, uint128 _basePrice, uint128 _stepPrice) external;
}

interface IReserveAuctionMarketplace {
    event ListedForReserveAuction(uint256 indexed _id, uint256 _reservePrice, uint128 _startDate);
    event BidPlacedOnReserveAuction(uint256 indexed _id, address _currentOwner, address _bidder, uint256 _amount, uint256 _originalBiddingEnd, uint256 _currentBiddingEnd);
    event ReserveAuctionResulted(uint256 indexed _id, uint256 _finalPrice, address _currentOwner, address _winner, address _resulter);
    event BidWithdrawnFromReserveAuction(uint256 _id, address _bidder, uint128 _bid);
    event ReservePriceUpdated(uint256 indexed _id, uint256 _reservePrice);
    event ReserveAuctionConvertedToBuyItNow(uint256 indexed _id, uint128 _listingPrice, uint128 _startDate);
    event EmergencyBidWithdrawFromReserveAuction(uint256 indexed _id, address _bidder, uint128 _bid);

    function placeBidOnReserveAuction(uint256 _id) external payable;
    function placeBidOnReserveAuctionFor(uint256 _id, address _bidder) external payable;

    function listForReserveAuction(address _creator, uint256 _id, uint128 _reservePrice, uint128 _startDate) external;

    function resultReserveAuction(uint256 _id) external;

    function withdrawBidFromReserveAuction(uint256 _id) external;

    function updateReservePriceForReserveAuction(uint256 _id, uint128 _reservePrice) external;

    function emergencyExitBidFromReserveAuction(uint256 _id) external;
}

interface IKODAV3PrimarySaleMarketplace is IEditionSteppedMarketplace, IEditionOffersMarketplace, IBuyNowMarketplace, IReserveAuctionMarketplace {
    function convertReserveAuctionToBuyItNow(uint256 _editionId, uint128 _listingPrice, uint128 _startDate) external;

    function convertReserveAuctionToOffers(uint256 _editionId, uint128 _startDate) external;
}

interface ITokenBuyNowMarketplace {
    event TokenDeListed(uint256 indexed _tokenId);

    function delistToken(uint256 _tokenId) external;
}

interface ITokenOffersMarketplace {
    event TokenBidPlaced(uint256 indexed _tokenId, address _currentOwner, address _bidder, uint256 _amount);
    event TokenBidAccepted(uint256 indexed _tokenId, address _currentOwner, address _bidder, uint256 _amount);
    event TokenBidRejected(uint256 indexed _tokenId, address _currentOwner, address _bidder, uint256 _amount);
    event TokenBidWithdrawn(uint256 indexed _tokenId, address _bidder);

    function acceptTokenBid(uint256 _tokenId, uint256 _offerPrice) external;

    function rejectTokenBid(uint256 _tokenId) external;

    function withdrawTokenBid(uint256 _tokenId) external;

    function placeTokenBid(uint256 _tokenId) external payable;
    function placeTokenBidFor(uint256 _tokenId, address _bidder) external payable;
}

interface IBuyNowSecondaryMarketplace {
    function listTokenForBuyNow(uint256 _tokenId, uint128 _listingPrice, uint128 _startDate) external;
}

interface IEditionOffersSecondaryMarketplace {
    event EditionBidPlaced(uint256 indexed _editionId, address indexed _bidder, uint256 _bid);
    event EditionBidWithdrawn(uint256 indexed _editionId, address _bidder);
    event EditionBidAccepted(uint256 indexed _tokenId, address _currentOwner, address _bidder, uint256 _amount);

    function placeEditionBid(uint256 _editionId) external payable;
    function placeEditionBidFor(uint256 _editionId, address _bidder) external payable;

    function withdrawEditionBid(uint256 _editionId) external;

    function acceptEditionBid(uint256 _tokenId, uint256 _offerPrice) external;
}

interface IKODAV3SecondarySaleMarketplace is ITokenBuyNowMarketplace, ITokenOffersMarketplace, IEditionOffersSecondaryMarketplace, IBuyNowSecondaryMarketplace {
    function convertReserveAuctionToBuyItNow(uint256 _tokenId, uint128 _listingPrice, uint128 _startDate) external;

    function convertReserveAuctionToOffers(uint256 _tokenId) external;
}

interface IKODAV3GatedMarketplace {

    function createSale(uint256 _editionId) external;

    function createPhase(
        uint256 _editionId,
        uint128 _startTime,
        uint128 _endTime,
        uint128 _priceInWei,
        uint16 _mintCap,
        uint16 _walletMintLimit,
        bytes32 _merkleRoot,
        string calldata _merkleIPFSHash
    ) external;

    function createSaleWithPhases(
        uint256 _editionId,
        uint128[] memory _startTimes,
        uint128[] memory _endTimes,
        uint128[] memory _pricesInWei,
        uint16[] memory _mintCaps,
        uint16[] memory _walletMintLimits,
        bytes32[] memory _merkleRoots,
        string[] memory _merkleIPFSHashes
    ) external;

    function createPhases(
        uint256 _editionId,
        uint128[] memory _startTimes,
        uint128[] memory _endTimes,
        uint128[] memory _pricesInWei,
        uint16[] memory _mintCaps,
        uint16[] memory _walletMintLimits,
        bytes32[] memory _merkleRoots,
        string[] memory _merkleIPFSHashes
    ) external;

    function removePhase(uint256 _editionId, uint256 _phaseId) external;
}


// File contracts/marketplace/KODAV3UpgradableGatedMarketplace.sol


pragma solidity 0.8.4;




contract KODAV3UpgradableGatedMarketplace is IKODAV3GatedMarketplace, BaseUpgradableMarketplace {

    /// @notice emitted when admin updates funds receiver
    event AdminUpdateFundReceiver(uint256 indexed _saleId, address _newFundsReceiver);

    /// @notice emitted when admin updates max edition ID
    event AdminUpdateMaxEditionId(uint256 indexed _saleId, uint256 _newMaxEditionId);

    /// @notice emitted when admin updates creator
    event AdminUpdateCreator(uint256 indexed _saleId, address _newCreator);

    /// @notice emitted when gated sale commission is updated for a given sale
    event AdminSetKoCommissionOverrideForSale(uint256 indexed _saleId, uint256 _platformPrimarySaleCommission);

    /// @notice emitted when a sale is paused
    event SalePaused(uint256 indexed _saleId);

    /// @notice emitted when a sale is resumed
    event SaleResumed(uint256 indexed _saleId);

    /// @notice emitted when a sale and its phases are created
    event SaleWithPhaseCreated(uint256 indexed _saleId);

    /// @notice emitted when a sale without any phases created
    event SaleCreated(uint256 indexed _saleId);

    /// @notice emitted when a new phase is added to a sale
    event PhaseCreated(uint256 indexed _saleId, uint256 indexed _phaseId);

    /// @notice emitted when a phase is removed from a sale
    event PhaseRemoved(uint256 indexed _saleId, uint256 indexed _phaseId);

    /// @notice emitted when someone mints from a sale
    event MintFromSale(uint256 indexed _saleId, uint256 indexed _phaseId, uint256 indexed _tokenId, address _recipient);

    /// @notice Phase represents a time structured part of a sale, i.e. VIP, pre sale or open sale
    struct Phase {
        uint128 startTime;      // The start time of the sale as a whole
        uint128 endTime;        // The end time of the sale phase, also the beginning of the next phase if applicable
        uint128 priceInWei;     // Price in wei for one mint
        uint16 mintCounter;     // The current amount of items minted
        uint16 mintCap;         // The maximum amount of mints for the phase
        uint16 walletMintLimit; // The mint limit per wallet for the phase
        bytes32 merkleRoot;     // The merkle tree root for the phase
        string merkleIPFSHash;  // The IPFS hash referencing the merkle tree
    }

    /// @notice Sale represents a gated sale, with mapping links to different sale phases
    struct Sale {
        uint256 id;             // The ID of the sale
        uint256 editionId;      // The ID of the edition the sale will mint
        address creator;        // Set on creation to save gas - the original edition creator
        address fundsReceiver;  // Where are the funds set
        uint256 maxEditionId;   // Stores the max edition ID for the edition - used when assigning tokens
        uint16 mintCounter;     // Keeps a pointer to the overall mint count for the full sale
        uint8 paused;           // Whether the sale is currently paused > 0 is paused
    }

    /// @notice sale Id -> KO commission override
    mapping(uint256 => KOCommissionOverride) public koCommissionOverrideForSale;

    /// @dev incremental counter for the ID of a sale
    uint256 public saleIdCounter;

    /// @dev totalMints is a mapping of hash(sale id, phase id, address) => total minted by that address
    mapping(bytes32 => uint256) public totalMints;

    /// @dev edition to sale is a mapping of edition id => sale id
    mapping(uint256 => uint256) public editionToSale;

    /// @dev sales is a mapping of sale id => Sale
    mapping(uint256 => Sale) public sales;

    /// @dev phases is a mapping of sale id => array of associated phases
    mapping(uint256 => Phase[]) public phases;

    /// @notice Allow an artist or admin to create a sale with 1 or more phases
    function createSaleWithPhases(
        uint256 _editionId,
        uint128[] memory _startTimes,
        uint128[] memory _endTimes,
        uint128[] memory _pricesInWei,
        uint16[] memory _mintCaps,
        uint16[] memory _walletMintLimits,
        bytes32[] memory _merkleRoots,
        string[] memory _merkleIPFSHashes
    ) external override whenNotPaused {
        address creator = koda.getCreatorOfEdition(_editionId);
        require(
            creator == _msgSender() || accessControls.hasContractOrAdminRole(_msgSender()),
            "Caller not creator or admin"
        );

        // Check no existing sale in place
        require(editionToSale[_editionId] == 0, "Sale exists for this edition");

        uint256 saleId = _createSale(_editionId, creator);

        _addMultiplePhasesToSale(
            saleId,
            _startTimes,
            _endTimes,
            _pricesInWei,
            _mintCaps,
            _walletMintLimits,
            _merkleRoots,
            _merkleIPFSHashes
        );

        emit SaleWithPhaseCreated(saleId);
    }

    /// @notice Allow an artist or admin to create a sale with 0 phases
    function createSale(uint256 _editionId) external override whenNotPaused {
        address creator = koda.getCreatorOfEdition(_editionId);
        require(
            creator == _msgSender() || accessControls.hasContractOrAdminRole(_msgSender()),
            "Caller not creator or admin"
        );

        // Check no existing sale in place
        require(editionToSale[_editionId] == 0, "Sale exists for this edition");

        uint256 saleId = _createSale(_editionId, creator);

        emit SaleCreated(saleId);
    }

    function _createSale(uint256 _editionId, address _creator) internal returns (uint256) {
        uint256 saleId = ++saleIdCounter;

        // Assign the sale to the sales and editionToSale mappings
        sales[saleId] = Sale({
        id : saleId,
        creator : _creator,
        fundsReceiver : koda.getRoyaltiesReceiver(_editionId),
        editionId : _editionId,
        maxEditionId : koda.maxTokenIdOfEdition(_editionId) - 1,
        paused : 0,
        mintCounter : 0
        });

        editionToSale[_editionId] = saleId;

        return saleId;
    }

    /// @notice Mint an NFT from the gated list
    function mint(
        uint256 _saleId,
        uint256 _phaseId,
        uint16 _mintCount,
        uint256 _index,
        bytes32[] calldata _merkleProof
    ) payable external nonReentrant whenNotPaused {
        Sale storage sale = sales[_saleId];
        require(sale.paused == 0, 'Sale is paused');

        Phase storage phase = phases[_saleId][_phaseId];

        require(block.timestamp >= phase.startTime && block.timestamp < phase.endTime, 'Sale phase not in progress');
        require(phase.mintCounter + _mintCount <= phase.mintCap, 'Phase mint cap reached');

        bytes32 totalMintsKey = keccak256(abi.encode(_saleId, _phaseId, _msgSender()));

        require(totalMints[totalMintsKey] + _mintCount <= phase.walletMintLimit, 'Cannot exceed total mints for sale phase');
        require(msg.value >= phase.priceInWei * _mintCount, 'Not enough wei sent to complete mint');
        require(onPhaseMintList(_saleId, _phaseId, _index, _msgSender(), _merkleProof), 'Address not able to mint from sale');

        handleMint(_saleId, _phaseId, sale.editionId, _mintCount, _msgSender());

        // Up the mint count for the user and the phase mint counter
        totalMints[totalMintsKey] += _mintCount;
        phase.mintCounter += _mintCount;
        sale.mintCounter += _mintCount;
    }

    function createPhase(
        uint256 _editionId,
        uint128 _startTime,
        uint128 _endTime,
        uint128 _priceInWei,
        uint16 _mintCap,
        uint16 _walletMintLimit,
        bytes32 _merkleRoot,
        string calldata _merkleIPFSHash
    )
    external override whenNotPaused onlyCreatorContractOrAdmin(_editionId) {
        uint256 saleId = editionToSale[_editionId];
        require(saleId > 0, 'No sale associated with edition id');

        _addPhaseToSale(
            saleId,
            _startTime,
            _endTime,
            _priceInWei,
            _mintCap,
            _walletMintLimit,
            _merkleRoot,
            _merkleIPFSHash
        );
    }

    function createPhases(
        uint256 _editionId,
        uint128[] memory _startTimes,
        uint128[] memory _endTimes,
        uint128[] memory _pricesInWei,
        uint16[] memory _mintCaps,
        uint16[] memory _walletMintLimits,
        bytes32[] memory _merkleRoots,
        string[] memory _merkleIPFSHashes
    )
    external override onlyCreatorContractOrAdmin(_editionId) whenNotPaused {

        // Ensure sale is valid
        uint256 saleId = editionToSale[_editionId];
        require(saleId > 0, 'No sale associated with edition id');

        _addMultiplePhasesToSale(
            saleId,
            _startTimes,
            _endTimes,
            _pricesInWei,
            _mintCaps,
            _walletMintLimits,
            _merkleRoots,
            _merkleIPFSHashes
        );
    }

    function removePhase(uint256 _editionId, uint256 _phaseId)
    external override onlyCreatorContractOrAdmin(_editionId) {
        require(koda.editionExists(_editionId), 'Edition does not exist');

        uint256 saleId = editionToSale[_editionId];
        require(saleId > 0, 'No sale associated with edition id');

        delete phases[saleId][_phaseId];

        emit PhaseRemoved(saleId, _phaseId);
    }

    /// @dev checks whether a given user is on the list to mint from a phase
    function onPhaseMintList(uint256 _saleId, uint256 _phaseId, uint256 _index, address _account, bytes32[] calldata _merkleProof)
    public view returns (bool) {
        Phase storage phase = phases[_saleId][_phaseId];
        // assume balance of 1 for enabled with access to the sale
        bytes32 node = keccak256(abi.encodePacked(_index, _account, uint256(1)));
        return MerkleProof.verify(_merkleProof, phase.merkleRoot, node);
    }

    function toggleSalePause(uint256 _saleId, uint256 _editionId) external onlyCreatorContractOrAdmin(_editionId) {
        if (sales[_saleId].paused != 0) {
            sales[_saleId].paused = 0;
            emit SaleResumed(_saleId);
        } else {
            sales[_saleId].paused = 1;
            emit SalePaused(_saleId);
        }
    }

    function remainingPhaseMintAllowance(uint256 _saleId, uint256 _phaseId, uint256 _index, address _account, bytes32[] calldata _merkleProof)
    external view returns (uint256) {
        require(onPhaseMintList(_saleId, _phaseId, _index, _account, _merkleProof), 'Address not able to mint from sale');

        return phases[_saleId][_phaseId].walletMintLimit - totalMints[keccak256(abi.encode(_saleId, _phaseId, _account))];
    }

    function handleMint(
        uint256 _saleId,
        uint256 _phaseId,
        uint256 _editionId,
        uint16 _mintCount,
        address _recipient
    ) internal {
        require(_mintCount > 0, "Nothing being minted");

        address creator = sales[_saleId].creator;
        uint256 startId = sales[_saleId].maxEditionId - sales[_saleId].mintCounter;

        for (uint256 i; i < _mintCount; ++i) {
            uint256 tokenId = getNextAvailablePrimarySaleToken(startId, _editionId, creator);

            // send token to buyer (assumes approval has been made, if not then this will fail)
            koda.safeTransferFrom(creator, _recipient, tokenId);

            emit MintFromSale(_saleId, _phaseId, tokenId, _recipient);

            // reduce start ID to allow to optimised token ID determination
            unchecked {startId = tokenId--;}
        }
        _handleSaleFunds(sales[_saleId].fundsReceiver, getPlatformSaleCommissionForSale(_saleId));
    }

    function getPlatformSaleCommissionForSale(uint256 _saleId) internal view returns (uint256) {
        if (koCommissionOverrideForSale[_saleId].active) {
            return koCommissionOverrideForSale[_saleId].koCommission;
        }
        return platformPrimaryCommission;
    }

    function getNextAvailablePrimarySaleToken(uint256 _startId, uint256 _editionId, address creator) internal view returns (uint256 _tokenId) {
        for (uint256 tokenId = _startId; tokenId >= _editionId; --tokenId) {
            if (koda.ownerOf(tokenId) == creator) {
                return tokenId;
            }
        }
        revert("Primary market exhausted");
    }

    function _addMultiplePhasesToSale(
        uint256 _saleId,
        uint128[] memory _startTimes,
        uint128[] memory _endTimes,
        uint128[] memory _pricesInWei,
        uint16[] memory _mintCaps,
        uint16[] memory _walletMintLimits,
        bytes32[] memory _merkleRoots,
        string[] memory _merkleIPFSHashes
    ) internal {
        uint256 numOfPhases = _startTimes.length;
        for (uint256 i; i < numOfPhases; ++i) {
            _addPhaseToSale(
                _saleId,
                _startTimes[i],
                _endTimes[i],
                _pricesInWei[i],
                _mintCaps[i],
                _walletMintLimits[i],
                _merkleRoots[i],
                _merkleIPFSHashes[i]
            );
        }
    }

    function _addPhaseToSale(
        uint256 _saleId,
        uint128 _startTime,
        uint128 _endTime,
        uint128 _priceInWei,
        uint16 _mintCap,
        uint16 _walletMintLimit,
        bytes32 _merkleRoot,
        string memory _merkleIPFSHash
    ) internal {
        require(_endTime > _startTime, 'Phase end time must be after start time');
        require(_walletMintLimit > 0, 'Zero mint limit');
        require(_mintCap > 0, "Zero mint cap");
        require(_merkleRoot != bytes32(0), "Zero merkle root");
        require(bytes(_merkleIPFSHash).length == 46, "Invalid IPFS hash");

        // Add the phase to the phases mapping
        phases[_saleId].push(Phase({
            startTime : _startTime,
            endTime : _endTime,
            priceInWei : _priceInWei,
            mintCounter : 0,
            mintCap : _mintCap,
            walletMintLimit : _walletMintLimit,
            merkleRoot : _merkleRoot,
            merkleIPFSHash : _merkleIPFSHash
        }));

        emit PhaseCreated(_saleId, phases[_saleId].length - 1);
    }

    function updateFundsReceiver(uint256 _saleId, address _newFundsReceiver) public onlyAdmin {
        require(_newFundsReceiver != address(0), "Unable to send funds to invalid address");
        sales[_saleId].fundsReceiver = _newFundsReceiver;
        emit AdminUpdateFundReceiver(_saleId, _newFundsReceiver);
    }

    function updateMaxEditionId(uint256 _saleId, uint256 _newMaxEditionId) public onlyAdmin {
        require(_newMaxEditionId >= 1, "Unable to set max edition");
        sales[_saleId].maxEditionId = _newMaxEditionId;
        emit AdminUpdateMaxEditionId(_saleId, _newMaxEditionId);
    }

    function updateCreator(uint256 _saleId, address _newCreator) public onlyAdmin {
        require(_newCreator != address(0), "Unable to make invalid address creator");
        sales[_saleId].creator = _newCreator;
        emit AdminUpdateCreator(_saleId, _newCreator);
    }

    function setKoCommissionOverrideForSale(uint256 _saleId, bool _active, uint256 _koCommission) public onlyAdmin {
        require(_koCommission <= (10**40), "KO Commission too high - danger of over overflow");
        KOCommissionOverride storage koCommissionOverride = koCommissionOverrideForSale[_saleId];
        koCommissionOverride.active = _active;
        koCommissionOverride.koCommission = _koCommission;
        emit AdminSetKoCommissionOverrideForSale(_saleId, _koCommission);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AdminRecoverERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address payable","name":"_recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"AdminRecoverETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_platformPrimarySaleCommission","type":"uint256"}],"name":"AdminSetKoCommissionOverrideForSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IKOAccessControlsLookup","name":"_oldAddress","type":"address"},{"indexed":true,"internalType":"contract IKOAccessControlsLookup","name":"_newAddress","type":"address"}],"name":"AdminUpdateAccessControls","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_bidLockupPeriod","type":"uint256"}],"name":"AdminUpdateBidLockupPeriod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_newCreator","type":"address"}],"name":"AdminUpdateCreator","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_newFundsReceiver","type":"address"}],"name":"AdminUpdateFundReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newMaxEditionId","type":"uint256"}],"name":"AdminUpdateMaxEditionId","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_minBidAmount","type":"uint256"}],"name":"AdminUpdateMinBidAmount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_modulo","type":"uint256"}],"name":"AdminUpdateModulo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldAddress","type":"address"},{"indexed":true,"internalType":"address","name":"_newAddress","type":"address"}],"name":"AdminUpdatePlatformAccount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"AdminUpdatePlatformPrimaryCommission","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"address","name":"_bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_bid","type":"uint256"},{"indexed":false,"internalType":"address","name":"_newBidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_newOffer","type":"uint256"}],"name":"BidderRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"address","name":"_bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_bid","type":"uint256"},{"indexed":false,"internalType":"address","name":"_newBidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"_newOffer","type":"uint256"}],"name":"BidderRefundedFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_phaseId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_recipient","type":"address"}],"name":"MintFromSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_phaseId","type":"uint256"}],"name":"PhaseCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_phaseId","type":"uint256"}],"name":"PhaseRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"SaleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"SalePaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"SaleResumed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_saleId","type":"uint256"}],"name":"SaleWithPhaseCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"accessControls","outputs":[{"internalType":"contract IKOAccessControlsLookup","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bidLockupPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint128","name":"_startTime","type":"uint128"},{"internalType":"uint128","name":"_endTime","type":"uint128"},{"internalType":"uint128","name":"_priceInWei","type":"uint128"},{"internalType":"uint16","name":"_mintCap","type":"uint16"},{"internalType":"uint16","name":"_walletMintLimit","type":"uint16"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_merkleIPFSHash","type":"string"}],"name":"createPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint128[]","name":"_startTimes","type":"uint128[]"},{"internalType":"uint128[]","name":"_endTimes","type":"uint128[]"},{"internalType":"uint128[]","name":"_pricesInWei","type":"uint128[]"},{"internalType":"uint16[]","name":"_mintCaps","type":"uint16[]"},{"internalType":"uint16[]","name":"_walletMintLimits","type":"uint16[]"},{"internalType":"bytes32[]","name":"_merkleRoots","type":"bytes32[]"},{"internalType":"string[]","name":"_merkleIPFSHashes","type":"string[]"}],"name":"createPhases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"createSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint128[]","name":"_startTimes","type":"uint128[]"},{"internalType":"uint128[]","name":"_endTimes","type":"uint128[]"},{"internalType":"uint128[]","name":"_pricesInWei","type":"uint128[]"},{"internalType":"uint16[]","name":"_mintCaps","type":"uint16[]"},{"internalType":"uint16[]","name":"_walletMintLimits","type":"uint16[]"},{"internalType":"bytes32[]","name":"_merkleRoots","type":"bytes32[]"},{"internalType":"string[]","name":"_merkleIPFSHashes","type":"string[]"}],"name":"createSaleWithPhases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"editionToSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IKOAccessControlsLookup","name":"_accessControls","type":"address"},{"internalType":"contract IKODAV3","name":"_koda","type":"address"},{"internalType":"address","name":"_platformAccount","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"koCommissionOverrideForSale","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"koCommission","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"koda","outputs":[{"internalType":"contract IKODAV3","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBidAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"uint256","name":"_phaseId","type":"uint256"},{"internalType":"uint16","name":"_mintCount","type":"uint16"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"modulo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"uint256","name":"_phaseId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"onPhaseMintList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"phases","outputs":[{"internalType":"uint128","name":"startTime","type":"uint128"},{"internalType":"uint128","name":"endTime","type":"uint128"},{"internalType":"uint128","name":"priceInWei","type":"uint128"},{"internalType":"uint16","name":"mintCounter","type":"uint16"},{"internalType":"uint16","name":"mintCap","type":"uint16"},{"internalType":"uint16","name":"walletMintLimit","type":"uint16"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string","name":"merkleIPFSHash","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformAccount","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformPrimaryCommission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"uint256","name":"_phaseId","type":"uint256"},{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"remainingPhaseMintAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_editionId","type":"uint256"},{"internalType":"uint256","name":"_phaseId","type":"uint256"}],"name":"removePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sales","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"editionId","type":"uint256"},{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"fundsReceiver","type":"address"},{"internalType":"uint256","name":"maxEditionId","type":"uint256"},{"internalType":"uint16","name":"mintCounter","type":"uint16"},{"internalType":"uint8","name":"paused","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"bool","name":"_active","type":"bool"},{"internalType":"uint256","name":"_koCommission","type":"uint256"}],"name":"setKoCommissionOverrideForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"uint256","name":"_editionId","type":"uint256"}],"name":"toggleSalePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"totalMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IKOAccessControlsLookup","name":"_accessControls","type":"address"}],"name":"updateAccessControls","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bidLockupPeriod","type":"uint256"}],"name":"updateBidLockupPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"address","name":"_newCreator","type":"address"}],"name":"updateCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"address","name":"_newFundsReceiver","type":"address"}],"name":"updateFundsReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleId","type":"uint256"},{"internalType":"uint256","name":"_newMaxEditionId","type":"uint256"}],"name":"updateMaxEditionId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBidAmount","type":"uint256"}],"name":"updateMinBidAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_modulo","type":"uint256"}],"name":"updateModulo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPlatformAccount","type":"address"}],"name":"updatePlatformAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"updatePlatformPrimaryCommission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]

60a06040523060601b6080523480156200001857600080fd5b50600054610100900460ff16620000365760005460ff161562000040565b62000040620000e5565b620000a85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b600054610100900460ff16158015620000cb576000805461ffff19166101011790555b8015620000de576000805461ff00191690555b5062000112565b6000620000fd306200010360201b6200319d1760201c565b15905090565b6001600160a01b03163b151590565b60805160601c6152e96200014d6000396000818161112201528181611162015281816114bc015281816114fc015261158f01526152e96000f3fe6080604052600436106102465760003560e01c8063748365ef11610139578063918dafa4116100b6578063adca7aed1161007a578063adca7aed146106a2578063b5f522f7146106f4578063c0c53b8b146107aa578063ce1fc427146107ca578063ed4ac86f146107ea578063f8361bab1461080a57600080fd5b8063918dafa4146105f757806395880bfe1461062b57806397849eb3146106425780639da1b02a14610662578063a1d1e5641461068257600080fd5b80638456cb59116100fd5780638456cb591461056f57806384c95d2a14610584578063854f0385146105a457806388d56073146105b757806391186443146105d757600080fd5b8063748365ef146104a9578063772184d7146104e157806377d13db21461050f5780637ee020c81461052f5780638396a0d71461054f57600080fd5b80633f4ba83a116101c75780635e09aa271161018b5780635e09aa271461041257806361200f94146104295780636305246e146104495780636ef3da941461046957806372ec7eec1461048957600080fd5b80633f4ba83a1461039b57806349751788146103b05780634f1ef286146103c657806352d1902d146103d95780635c975abb146103ee57600080fd5b8063297452621161020e57806329745262146103055780632a989f491461031b578063357706b31461033b5780633659cfe61461035b5780633e377ade1461037b57600080fd5b806303fb61da1461024b5780631171bda91461028c57806317890d6b146102ae57806322fc648c146102ce5780632591a15f146102e5575b600080fd5b34801561025757600080fd5b506102796102663660046149c5565b6101056020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561029857600080fd5b506102ac6102a7366004614908565b61082a565b005b3480156102ba57600080fd5b506102ac6102c9366004614a6e565b61095b565b3480156102da57600080fd5b506102796101015481565b3480156102f157600080fd5b506102ac610300366004614bb1565b610afe565b34801561031157600080fd5b5061027960fe5481565b34801561032757600080fd5b506102ac610336366004614b8b565b610cd8565b34801561034757600080fd5b506102ac610356366004614c85565b610e55565b34801561036757600080fd5b506102ac6103763660046148a5565b611117565b34801561038757600080fd5b506102ac610396366004614a6e565b6111f7565b3480156103a757600080fd5b506102ac611402565b3480156103bc57600080fd5b5061027960ff5481565b6102ac6103d4366004614948565b6114b1565b3480156103e557600080fd5b50610279611582565b3480156103fa57600080fd5b5060655460ff165b6040519015158152602001610283565b34801561041e57600080fd5b506102796101035481565b34801561043557600080fd5b506102ac6104443660046148dd565b611635565b34801561045557600080fd5b506102ac6104643660046149c5565b6117eb565b34801561047557600080fd5b506102ac6104843660046148a5565b6118cc565b34801561049557600080fd5b506102ac6104a43660046149c5565b611ab4565b3480156104b557600080fd5b5060fb546104c9906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b3480156104ed57600080fd5b506102796104fc3660046149c5565b6101046020526000908152604090205481565b34801561051b57600080fd5b5061027961052a366004614d15565b611bde565b34801561053b57600080fd5b5061040261054a366004614d15565b611cc0565b34801561055b57600080fd5b506102ac61056a366004614c85565b611d98565b34801561057b57600080fd5b506102ac611ee3565b34801561059057600080fd5b5060fc546104c9906001600160a01b031681565b6102ac6105b2366004614ca6565b611f90565b3480156105c357600080fd5b506102ac6105d2366004614a3f565b6123d2565b3480156105e357600080fd5b506102ac6105f23660046149c5565b61253e565b34801561060357600080fd5b50610617610612366004614c85565b612619565b604051610283989796959493929190615007565b34801561063757600080fd5b506102796101005481565b34801561064e57600080fd5b5060fd546104c9906001600160a01b031681565b34801561066e57600080fd5b506102ac61067d3660046149c5565b612720565b34801561068e57600080fd5b506102ac61069d3660046148a5565b612915565b3480156106ae57600080fd5b506106dd6106bd3660046149c5565b610102602052600090815260409020805460019091015460ff9091169082565b604080519215158352602083019190915201610283565b34801561070057600080fd5b5061076261070f3660046149c5565b61010660205260009081526040902080546001820154600283015460038401546004850154600590950154939492936001600160a01b0392831693919092169161ffff81169060ff620100009091041687565b6040805197885260208801969096526001600160a01b0394851695870195909552929091166060850152608084015261ffff1660a083015260ff1660c082015260e001610283565b3480156107b657600080fd5b506102ac6107c53660046149f5565b612a86565b3480156107d657600080fd5b506102ac6107e53660046149c5565b612ce9565b3480156107f657600080fd5b506102ac610805366004614c85565b612e44565b34801561081657600080fd5b506102ac610825366004614a3f565b613032565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561087b57600080fd5b505afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b391906149a9565b6108d85760405162461bcd60e51b81526004016108cf90614f9b565b60405180910390fd5b6001600160a01b0382166108fe5760405162461bcd60e51b81526004016108cf90614f49565b6109098383836131ac565b816001600160a01b0316836001600160a01b03167f305fd4b7f973d3d7ee0074e0c7b4db74db3bbf0c21b17bf10e003985e4fc9f7b8360405161094e91815260200190565b60405180910390a3505050565b873360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd91906148c1565b6001600160a01b03161480610a76575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610a3e57600080fd5b505afa158015610a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7691906149a9565b610a925760405162461bcd60e51b81526004016108cf90614ec7565b60655460ff1615610ab55760405162461bcd60e51b81526004016108cf90614e9d565b6000898152610105602052604090205480610ae25760405162461bcd60e51b81526004016108cf90614fc5565b610af2818a8a8a8a8a8a8a6131fe565b50505050505050505050565b60655460ff1615610b215760405162461bcd60e51b81526004016108cf90614e9d565b883360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b158015610b6b57600080fd5b505afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba391906148c1565b6001600160a01b03161480610c3c575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610c0457600080fd5b505afa158015610c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3c91906149a9565b610c585760405162461bcd60e51b81526004016108cf90614ec7565b60008a8152610105602052604090205480610c855760405162461bcd60e51b81526004016108cf90614fc5565b610ccb818b8b8b8b8b8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061333c92505050565b5050505050505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610d2957600080fd5b505afa158015610d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6191906149a9565b610d7d5760405162461bcd60e51b81526004016108cf90614f9b565b701d6329f1c35ca4bfabb9f5610000000000811115610df75760405162461bcd60e51b815260206004820152603060248201527f4b4f20436f6d6d697373696f6e20746f6f2068696768202d2064616e6765722060448201526f6f66206f766572206f766572666c6f7760801b60648201526084016108cf565b60008381526101026020908152604091829020805460ff191685151517815560018101849055915183815285917f539d0ed3cb552a76fcbb80a6e143bcab8ffd0cf062a4e0d8d06d948c2c153ccf910160405180910390a250505050565b813360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b158015610e9f57600080fd5b505afa158015610eb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed791906148c1565b6001600160a01b03161480610f70575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610f3857600080fd5b505afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7091906149a9565b610f8c5760405162461bcd60e51b81526004016108cf90614ec7565b60fc546040516361597daf60e11b8152600481018590526001600160a01b039091169063c2b2fb5e9060240160206040518083038186803b158015610fd057600080fd5b505afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100891906149a9565b61104d5760405162461bcd60e51b815260206004820152601660248201527511591a5d1a5bdb88191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016108cf565b600083815261010560205260409020548061107a5760405162461bcd60e51b81526004016108cf90614fc5565b6000818152610107602052604090208054849081106110a957634e487b7160e01b600052603260045260246000fd5b6000918252602082206004909102018181556001810180546001600160b01b031916905560028101829055906110e26003830182614538565b5050604051839082907fd892afb60f8efb7b4fb62a237322a4f9a9868dd7759e75eeee89cb9ed034244190600090a350505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156111605760405162461bcd60e51b81526004016108cf90614e05565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166111a960008051602061526d833981519152546001600160a01b031690565b6001600160a01b0316146111cf5760405162461bcd60e51b81526004016108cf90614e51565b6111d881613626565b604080516000808252602082019092526111f4918391906136e6565b50565b60655460ff161561121a5760405162461bcd60e51b81526004016108cf90614e9d565b60fc5460405163d41911d760e01b8152600481018a90526000916001600160a01b03169063d41911d79060240160206040518083038186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129791906148c1565b90506001600160a01b038116331480611334575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133491906149a9565b6113505760405162461bcd60e51b81526004016108cf90614ec7565b60008981526101056020526040902054156113ad5760405162461bcd60e51b815260206004820152601c60248201527f53616c652065786973747320666f7220746869732065646974696f6e0000000060448201526064016108cf565b60006113b98a83613860565b90506113cb818a8a8a8a8a8a8a6131fe565b60405181907f43ddc529ae41c777c0e40b54633b745a2797eb865f6dd329feff6a270e66bc7590600090a250505050505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561145357600080fd5b505afa158015611467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148b91906149a9565b6114a75760405162461bcd60e51b81526004016108cf90614f9b565b6114af613a66565b565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156114fa5760405162461bcd60e51b81526004016108cf90614e05565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661154360008051602061526d833981519152546001600160a01b031690565b6001600160a01b0316146115695760405162461bcd60e51b81526004016108cf90614e51565b61157282613626565b61157e828260016136e6565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116225760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016108cf565b5060008051602061526d83398151915290565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be91906149a9565b6116da5760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b0382166117005760405162461bcd60e51b81526004016108cf90614f49565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461174d576040519150601f19603f3d011682016040523d82523d6000602084013e611752565b606091505b50509050806117a35760405162461bcd60e51b815260206004820152601c60248201527f556e61626c6520746f2073656e6420726563697069656e74204554480000000060448201526064016108cf565b826001600160a01b03167f4d688afe1abc567d30e199aa99174c72a9653aec3e1e87dd2b5e60ed469fad55836040516117de91815260200190565b60405180910390a2505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561183c57600080fd5b505afa158015611850573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187491906149a9565b6118905760405162461bcd60e51b81526004016108cf90614f9b565b60ff8190556040518181527f0e782e841a04fe2a18adf67ea33f1becfdca41420dee80c4c28d966524f2e6e7906020015b60405180910390a150565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561191d57600080fd5b505afa158015611931573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195591906149a9565b6119715760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b03811663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156119c057600080fd5b505afa1580156119d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f891906149a9565b611a585760405162461bcd60e51b815260206004820152602b60248201527f53656e646572206d75737420686176652061646d696e20726f6c6520696e206e60448201526a195dc818dbdb9d1c9858dd60aa1b60648201526084016108cf565b60fb546040516001600160a01b038084169216907facd428448d30f3fadee1e7d643a28cfee0ec86aef546e1cfc717d844b99eedf290600090a360fb80546001600160a01b0319166001600160a01b0392909216919091179055565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611b0557600080fd5b505afa158015611b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3d91906149a9565b611b595760405162461bcd60e51b81526004016108cf90614f9b565b60008111611ba95760405162461bcd60e51b815260206004820152601b60248201527f4d6f64756c6f20706f696e742063616e6e6f74206265207a65726f000000000060448201526064016108cf565b60fe8190556040518181527f0974c11e488a74018e3da44e0750b7d0ec99a431c45f79a6110d722b823d0af0906020016118c1565b6000611bee878787878787611cc0565b611c0a5760405162461bcd60e51b81526004016108cf90614dc3565b60408051602081018990529081018790526001600160a01b0385166060820152610104906000906080016040516020818303038152906040528051906020012081526020019081526020016000205461010760008981526020019081526020016000208781548110611c8c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020160010154611cb59190600160a01b900461ffff1661516d565b979650505050505050565b600086815261010760205260408120805482919088908110611cf257634e487b7160e01b600052603260045260246000fd5b60009182526020808320604080519283018b90526bffffffffffffffffffffffff1960608b901b16908301526001605483015260049092029091019250607401604051602081830303815290604052805190602001209050611d8b858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250505050600284015483613af9565b9998505050505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611de957600080fd5b505afa158015611dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2191906149a9565b611e3d5760405162461bcd60e51b81526004016108cf90614f9b565b6001811015611e8e5760405162461bcd60e51b815260206004820152601960248201527f556e61626c6520746f20736574206d61782065646974696f6e0000000000000060448201526064016108cf565b60008281526101066020526040908190206004018290555182907faf165292ec7322e623ce972321f199431e7cc1cb899e56cbc86f6f7bfab49f6790611ed79084815260200190565b60405180910390a25050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611f3457600080fd5b505afa158015611f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6c91906149a9565b611f885760405162461bcd60e51b81526004016108cf90614f9b565b6114af613bb8565b60026001541415611fe35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108cf565b600260015560655460ff161561200b5760405162461bcd60e51b81526004016108cf90614e9d565b600086815261010660205260409020600581015462010000900460ff16156120665760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b60448201526064016108cf565b60008781526101076020526040812080548890811061209557634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020180549091506001600160801b031642108015906120d257508054600160801b90046001600160801b031642105b61211e5760405162461bcd60e51b815260206004820152601a60248201527f53616c65207068617365206e6f7420696e2070726f677265737300000000000060448201526064016108cf565b600181015461ffff600160901b8204811691612143918991600160801b9004166150c1565b61ffff16111561218e5760405162461bcd60e51b8152602060048201526016602482015275141a185cd9481b5a5b9d0818d85c081c995858da195960521b60448201526064016108cf565b60008888336040805160208101949094528301919091526001600160a01b0316606082015260800160408051601f19818403018152918152815160209283012060018501546000828152610104909452919092205491925061ffff600160a01b909104811691612200918a16906150e7565b111561225f5760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742065786365656420746f74616c206d696e747320666f722073616044820152676c6520706861736560c01b60648201526084016108cf565b600182015461227c9061ffff8916906001600160801b031661511f565b6001600160801b03163410156122e05760405162461bcd60e51b8152602060048201526024808201527f4e6f7420656e6f756768207765692073656e7420746f20636f6d706c657465206044820152631b5a5b9d60e21b60648201526084016108cf565b6122ee898988338989611cc0565b61230a5760405162461bcd60e51b81526004016108cf90614dc3565b612321898985600101548a61231c3390565b613c10565b600081815261010460205260408120805461ffff8a1692906123449084906150e7565b909155505060018201805488919060109061236b908490600160801b900461ffff166150c1565b92506101000a81548161ffff021916908361ffff160217905550868360050160008282829054906101000a900461ffff166123a691906150c1565b92506101000a81548161ffff021916908361ffff16021790555050505060018081905550505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561242357600080fd5b505afa158015612437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245b91906149a9565b6124775760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b0381166124dd5760405162461bcd60e51b815260206004820152602760248201527f556e61626c6520746f2073656e642066756e647320746f20696e76616c6964206044820152666164647265737360c81b60648201526084016108cf565b6000828152610106602090815260409182902060030180546001600160a01b0319166001600160a01b038516908117909155915191825283917f5c83120cc7dfa9cce51d59698df84eb23f7a190e8a2f900fb0e86d03064e83639101611ed7565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561258f57600080fd5b505afa1580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c791906149a9565b6125e35760405162461bcd60e51b81526004016108cf90614f9b565b6101008190556040518181527f46b8c32fce68a5f2dff628d3b2cf9374788f42ea33b343728a64a3b090b4479e906020016118c1565b610107602052816000526040600020818154811061263657600080fd5b600091825260209091206004909102018054600182015460028301546003840180546001600160801b038086169850600160801b958690048116975084169561ffff958504861695600160901b8604811695600160a01b9004169392909161269d906151c7565b80601f01602080910402602001604051908101604052809291908181526020018280546126c9906151c7565b80156127165780601f106126eb57610100808354040283529160200191612716565b820191906000526020600020905b8154815290600101906020018083116126f957829003601f168201915b5050505050905088565b60655460ff16156127435760405162461bcd60e51b81526004016108cf90614e9d565b60fc5460405163d41911d760e01b8152600481018390526000916001600160a01b03169063d41911d79060240160206040518083038186803b15801561278857600080fd5b505afa15801561279c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c091906148c1565b90506001600160a01b03811633148061285d575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561282557600080fd5b505afa158015612839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285d91906149a9565b6128795760405162461bcd60e51b81526004016108cf90614ec7565b60008281526101056020526040902054156128d65760405162461bcd60e51b815260206004820152601c60248201527f53616c652065786973747320666f7220746869732065646974696f6e0000000060448201526064016108cf565b60006128e28383613860565b60405190915081907f0f67e8677c172d56c079c18dcff5c9904d5ff20e6b5453eafe5f8dcc7ed6a00890600090a2505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561296657600080fd5b505afa15801561297a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299e91906149a9565b6129ba5760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b038116612a2a5760405162461bcd60e51b815260206004820152603160248201527f556e61626c6520746f2073657420696e76616c6964205f6e6577506c6174666f604482015270726d4163636f756e74206164647265737360781b60648201526084016108cf565b60fd546040516001600160a01b038084169216907f0dcf4ed468afaf8b36d6f5982788e2b86c18a544e7fb05803a79f67cd097d59190600090a360fd80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16612aa15760005460ff1615612aa5565b303b155b612b085760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cf565b600054610100900460ff16158015612b2a576000805461ffff19166101011790555b612b32613db1565b612b3a613de0565b6001600160a01b038416612ba55760405162461bcd60e51b815260206004820152602c60248201527f556e61626c6520746f2073657420696e76616c696420616363657373436f6e7460448201526b726f6c73206164647265737360a01b60648201526084016108cf565b6001600160a01b038316612c065760405162461bcd60e51b815260206004820152602260248201527f556e61626c6520746f2073657420696e76616c6964206b6f6461206164647265604482015261737360f01b60648201526084016108cf565b6001600160a01b038216612c735760405162461bcd60e51b815260206004820152602e60248201527f556e61626c6520746f2073657420696e76616c6964205f706c6174666f726d4160448201526d63636f756e74206164647265737360901b60648201526084016108cf565b60fb80546001600160a01b038087166001600160a01b03199283161790925560fc805486841690831617905560fd8054928516929091169190911790556298968060fe556216e36061010155662386f26fc1000060ff55615460610100558015612ce3576000805461ff00191690555b50505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612d3a57600080fd5b505afa158015612d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7291906149a9565b612d8e5760405162461bcd60e51b81526004016108cf90614f9b565b701d6329f1c35ca4bfabb9f5610000000000811115612e0e5760405162461bcd60e51b815260206004820152603660248201527f506c6174666f726d20636f6d6d697373696f6e20746f6f2068696768202d2064604482015275616e676572206f66206f766572206f766572666c6f7760501b60648201526084016108cf565b6101018190556040518181527f4d0a7f200f20f19a83f754cd8b5e65312e0c527e118c61563d9a9f18d082877c906020016118c1565b803360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b158015612e8e57600080fd5b505afa158015612ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec691906148c1565b6001600160a01b03161480612f5f575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612f2757600080fd5b505afa158015612f3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5f91906149a9565b612f7b5760405162461bcd60e51b81526004016108cf90614ec7565b6000838152610106602052604090206005015462010000900460ff1615612fe45760008381526101066020526040808220600501805462ff0000191690555184917fb4d5f31e9d502a0df29359cf408328854efadfd2bcfa00ddbec1639693de9f5191a2505050565b60008381526101066020526040808220600501805462ff00001916620100001790555184917f4616a0782e5635981b28be1cd36934a60655b462c370d8bd8092c969abc990d091a25b505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561308357600080fd5b505afa158015613097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130bb91906149a9565b6130d75760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b03811661313c5760405162461bcd60e51b815260206004820152602660248201527f556e61626c6520746f206d616b6520696e76616c6964206164647265737320636044820152653932b0ba37b960d11b60648201526084016108cf565b6000828152610106602090815260409182902060020180546001600160a01b0319166001600160a01b038516908117909155915191825283917f4d687154642d3ed61b179dc4eb2f266a1038da291cabb58146e5b59c1dd0d6979101611ed7565b6001600160a01b03163b151590565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261302d908490613e0f565b865160005b81811015610af25761332c8a8a838151811061322f57634e487b7160e01b600052603260045260246000fd5b60200260200101518a848151811061325757634e487b7160e01b600052603260045260246000fd5b60200260200101518a858151811061327f57634e487b7160e01b600052603260045260246000fd5b60200260200101518a86815181106132a757634e487b7160e01b600052603260045260246000fd5b60200260200101518a87815181106132cf57634e487b7160e01b600052603260045260246000fd5b60200260200101518a88815181106132f757634e487b7160e01b600052603260045260246000fd5b60200260200101518a898151811061331f57634e487b7160e01b600052603260045260246000fd5b602002602001015161333c565b61333581615202565b9050613203565b866001600160801b0316866001600160801b0316116133ad5760405162461bcd60e51b815260206004820152602760248201527f506861736520656e642074696d65206d7573742062652061667465722073746160448201526672742074696d6560c81b60648201526084016108cf565b60008361ffff16116133f35760405162461bcd60e51b815260206004820152600f60248201526e16995c9bc81b5a5b9d081b1a5b5a5d608a1b60448201526064016108cf565b60008461ffff16116134375760405162461bcd60e51b815260206004820152600d60248201526c05a65726f206d696e742063617609c1b60448201526064016108cf565b816134775760405162461bcd60e51b815260206004820152601060248201526f16995c9bc81b595c9adb19481c9bdbdd60821b60448201526064016108cf565b8051602e146134bc5760405162461bcd60e51b8152602060048201526011602482015270092dcecc2d8d2c84092a08ca640d0c2e6d607b1b60448201526064016108cf565b6000888152610107602090815260408083208151610100810183526001600160801b038c811682528b81168286019081528b82169483019485526060830187815261ffff8c8116608086019081528c821660a0870190815260c087018d815260e088018d8152895460018082018c559a8e529c8c902089519751978916600160801b988a168902176004909e02019c8d559951988c0180549551935192519990971671ffffffffffffffffffffffffffffffffffff19909516949094179183169094021763ffffffff60901b1916600160901b9382169390930261ffff60a01b191692909217600160a01b959092169490940217905590516002850155905180519193926135d292600385019290910190614572565b505050600088815261010760205260409020546135f19060019061516d565b60405189907f338b7193202eccd906002e2638e1d1ba970de94c664713102e6731d4015c3e3890600090a35050505050505050565b60fb5460405163c395fcb360e01b81523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561366957600080fd5b505afa15801561367d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136a191906149a9565b6111f45760405162461bcd60e51b81526020600482015260166024820152754f6e6c792061646d696e2063616e207570677261646560501b60448201526064016108cf565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156137195761302d83613ee1565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561375257600080fd5b505afa925050508015613782575060408051601f3d908101601f1916820190925261377f918101906149dd565b60015b6137e55760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108cf565b60008051602061526d83398151915281146138545760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108cf565b5061302d838383613f7d565b6000806101036000815461387390615202565b91829055506040805160e081018252828152602081018790526001600160a01b038681168284015260fc54925163f7b3de6560e01b815260048101899052939450909260608401929091169063f7b3de659060240160206040518083038186803b1580156138e057600080fd5b505afa1580156138f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061391891906148c1565b6001600160a01b03908116825260fc54604051630da3b07760e31b8152600481018990526020909301926001929190911690636d1d83b89060240160206040518083038186803b15801561396b57600080fd5b505afa15801561397f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139a391906149dd565b6139ad919061516d565b8152600060208083018290526040928301829052848252610106815282822084518155848201516001820155848401516002820180546001600160a01b039283166001600160a01b03199182161790915560608701516003840180549190931691161790556080850151600482015560a08501516005909101805460c09096015160ff16620100000262ffffff1990961661ffff9290921691909117949094179093558681526101059092529020819055905092915050565b60655460ff16613aaf5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108cf565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600081815b8551811015613bab576000868281518110613b2957634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613b6b576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613b98565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613ba381615202565b915050613afe565b50831490505b9392505050565b60655460ff1615613bdb5760405162461bcd60e51b81526004016108cf90614e9d565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613adc3390565b60008261ffff1611613c5b5760405162461bcd60e51b8152602060048201526014602482015273139bdd1a1a5b99c818995a5b99c81b5a5b9d195960621b60448201526064016108cf565b600085815261010660205260408120600281015460058201546004909201546001600160a01b039091169291613c979161ffff9091169061516d565b905060005b8461ffff16811015613d79576000613cb5838886613fa2565b60fc54604051632142170760e11b81526001600160a01b0387811660048301528881166024830152604482018490529293509116906342842e0e90606401600060405180830381600087803b158015613d0d57600080fd5b505af1158015613d21573d6000803e3d6000fd5b50506040516001600160a01b03881681528392508a91508b907f32fc2007d2fa6a46584fcb036acc2d0ed9b3cec15354f757ea5a99719831edef9060200160405180910390a49150613d7281615202565b9050613c9c565b5060008781526101066020526040902060030154613da8906001600160a01b0316613da38961409a565b6140d2565b50505050505050565b600054610100900460ff16613dd85760405162461bcd60e51b81526004016108cf90614efe565b6114af614232565b600054610100900460ff16613e075760405162461bcd60e51b81526004016108cf90614efe565b6114af61425f565b6000613e64826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166142929092919063ffffffff16565b80519091501561302d5780806020019051810190613e8291906149a9565b61302d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108cf565b6001600160a01b0381163b613f4e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108cf565b60008051602061526d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b613f86836142a9565b600082511180613f935750805b1561302d57612ce383836142e9565b6000835b8381106140515760fc546040516331a9108f60e11b8152600481018390526001600160a01b03858116921690636352211e9060240160206040518083038186803b158015613ff357600080fd5b505afa158015614007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061402b91906148c1565b6001600160a01b03161415614041579050613bb1565b61404a816151b0565b9050613fa6565b5060405162461bcd60e51b815260206004820152601860248201527f5072696d617279206d61726b657420657868617573746564000000000000000060448201526064016108cf565b6000818152610102602052604081205460ff16156140c957506000908152610102602052604090206001015490565b50506101015490565b60fe546000906140e2833461514e565b6140ec91906150ff565b905080156141995760fd546040516000916001600160a01b03169083908381818185875af1925050503d8060008114614141576040519150601f19603f3d011682016040523d82523d6000602084013e614146565b606091505b50509050806141975760405162461bcd60e51b815260206004820152601960248201527f636f6d6d697373696f6e207061796d656e74206661696c65640000000000000060448201526064016108cf565b505b60006001600160a01b0384166141af833461516d565b604051600081818185875af1925050503d80600081146141eb576040519150601f19603f3d011682016040523d82523d6000602084013e6141f0565b606091505b5050905080612ce35760405162461bcd60e51b815260206004820152600e60248201526d1c185e5b595b9d0819985a5b195960921b60448201526064016108cf565b600054610100900460ff166142595760405162461bcd60e51b81526004016108cf90614efe565b60018055565b600054610100900460ff166142865760405162461bcd60e51b81526004016108cf90614efe565b6065805460ff19169055565b60606142a184846000856143dd565b949350505050565b6142b281613ee1565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6143515760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016108cf565b600080846001600160a01b03168460405161436c9190614d94565b600060405180830381855af49150503d80600081146143a7576040519150601f19603f3d011682016040523d82523d6000602084013e6143ac565b606091505b50915091506143d4828260405180606001604052806027815260200161528d602791396144ff565b95945050505050565b60608247101561443e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108cf565b6001600160a01b0385163b6144955760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108cf565b600080866001600160a01b031685876040516144b19190614d94565b60006040518083038185875af1925050503d80600081146144ee576040519150601f19603f3d011682016040523d82523d6000602084013e6144f3565b606091505b5091509150611cb58282865b6060831561450e575081613bb1565b82511561451e5782518084602001fd5b8160405162461bcd60e51b81526004016108cf9190614db0565b508054614544906151c7565b6000825580601f10614554575050565b601f0160209004906000526020600020908101906111f491906145f6565b82805461457e906151c7565b90600052602060002090601f0160209004810192826145a057600085556145e6565b82601f106145b957805160ff19168380011785556145e6565b828001600101855582156145e6579182015b828111156145e65782518255916020019190600101906145cb565b506145f29291506145f6565b5090565b5b808211156145f257600081556001016145f7565b600067ffffffffffffffff83111561462557614625615233565b614638601f8401601f191660200161506c565b905082815283838301111561464c57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112614674578182fd5b50813567ffffffffffffffff81111561468b578182fd5b6020830191508360208260051b85010111156146a657600080fd5b9250929050565b600082601f8301126146bd578081fd5b813560206146d26146cd8361509d565b61506c565b80838252828201915082860187848660051b89010111156146f1578586fd5b855b8581101561470f578135845292840192908401906001016146f3565b5090979650505050505050565b600082601f83011261472c578081fd5b8135602061473c6146cd8361509d565b80838252828201915082860187848660051b890101111561475b578586fd5b855b8581101561470f57813567ffffffffffffffff81111561477b578788fd5b8801603f81018a1361478b578788fd5b61479c8a878301356040840161460b565b855250928401929084019060010161475d565b600082601f8301126147bf578081fd5b813560206147cf6146cd8361509d565b80838252828201915082860187848660051b89010111156147ee578586fd5b855b8581101561470f5761480182614877565b845292840192908401906001016147f0565b600082601f830112614823578081fd5b813560206148336146cd8361509d565b80838252828201915082860187848660051b8901011115614852578586fd5b855b8581101561470f5761486582614893565b84529284019290840190600101614854565b80356001600160801b038116811461488e57600080fd5b919050565b803561ffff8116811461488e57600080fd5b6000602082840312156148b6578081fd5b8135613bb181615249565b6000602082840312156148d2578081fd5b8151613bb181615249565b600080604083850312156148ef578081fd5b82356148fa81615249565b946020939093013593505050565b60008060006060848603121561491c578081fd5b833561492781615249565b9250602084013561493781615249565b929592945050506040919091013590565b6000806040838503121561495a578182fd5b823561496581615249565b9150602083013567ffffffffffffffff811115614980578182fd5b8301601f81018513614990578182fd5b61499f8582356020840161460b565b9150509250929050565b6000602082840312156149ba578081fd5b8151613bb18161525e565b6000602082840312156149d6578081fd5b5035919050565b6000602082840312156149ee578081fd5b5051919050565b600080600060608486031215614a09578081fd5b8335614a1481615249565b92506020840135614a2481615249565b91506040840135614a3481615249565b809150509250925092565b60008060408385031215614a51578182fd5b823591506020830135614a6381615249565b809150509250929050565b600080600080600080600080610100898b031215614a8a578586fd5b88359750602089013567ffffffffffffffff80821115614aa8578788fd5b614ab48c838d016147af565b985060408b0135915080821115614ac9578788fd5b614ad58c838d016147af565b975060608b0135915080821115614aea578586fd5b614af68c838d016147af565b965060808b0135915080821115614b0b578586fd5b614b178c838d01614813565b955060a08b0135915080821115614b2c578485fd5b614b388c838d01614813565b945060c08b0135915080821115614b4d578384fd5b614b598c838d016146ad565b935060e08b0135915080821115614b6e578283fd5b50614b7b8b828c0161471c565b9150509295985092959890939650565b600080600060608486031215614b9f578081fd5b8335925060208401356149378161525e565b60008060008060008060008060006101008a8c031215614bcf578283fd5b89359850614bdf60208b01614877565b9750614bed60408b01614877565b9650614bfb60608b01614877565b9550614c0960808b01614893565b9450614c1760a08b01614893565b935060c08a0135925060e08a013567ffffffffffffffff80821115614c3a578283fd5b818c0191508c601f830112614c4d578283fd5b813581811115614c5b578384fd5b8d6020828501011115614c6c578384fd5b6020830194508093505050509295985092959850929598565b60008060408385031215614c97578182fd5b50508035926020909101359150565b60008060008060008060a08789031215614cbe578384fd5b8635955060208701359450614cd560408801614893565b935060608701359250608087013567ffffffffffffffff811115614cf7578283fd5b614d0389828a01614663565b979a9699509497509295939492505050565b60008060008060008060a08789031215614d2d578384fd5b8635955060208701359450604087013593506060870135614d4d81615249565b9250608087013567ffffffffffffffff811115614cf7578283fd5b60008151808452614d80816020860160208601615184565b601f01601f19169290920160200192915050565b60008251614da6818460208701615184565b9190910192915050565b602081526000613bb16020830184614d68565b60208082526022908201527f41646472657373206e6f742061626c6520746f206d696e742066726f6d2073616040820152616c6560f01b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601b908201527f43616c6c6572206e6f742063726561746f72206f722061646d696e0000000000604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f556e61626c6520746f2073656e642066756e647320746f20696e76616c6964206040820152715f726563697069656e74206164647265737360701b606082015260800190565b60208082526010908201526f21b0b63632b9103737ba1030b236b4b760811b604082015260600190565b60208082526022908201527f4e6f2073616c65206173736f63696174656420776974682065646974696f6e206040820152611a5960f21b606082015260800190565b6001600160801b03898116825288811660208301528716604082015261ffff86811660608301528581166080830152841660a082015260c0810183905261010060e0820181905260009061505d83820185614d68565b9b9a5050505050505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561509557615095615233565b604052919050565b600067ffffffffffffffff8211156150b7576150b7615233565b5060051b60200190565b600061ffff8083168185168083038211156150de576150de61521d565b01949350505050565b600082198211156150fa576150fa61521d565b500190565b60008261511a57634e487b7160e01b81526012600452602481fd5b500490565b60006001600160801b03808316818516818304811182151516156151455761514561521d565b02949350505050565b60008160001904831182151516156151685761516861521d565b500290565b60008282101561517f5761517f61521d565b500390565b60005b8381101561519f578181015183820152602001615187565b83811115612ce35750506000910152565b6000816151bf576151bf61521d565b506000190190565b600181811c908216806151db57607f821691505b602082108114156151fc57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156152165761521661521d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146111f457600080fd5b80151581146111f457600080fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d34cc7d52499cf6c2759903a9b1ae29af38d9194bdd056f2204a396690a484de64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102465760003560e01c8063748365ef11610139578063918dafa4116100b6578063adca7aed1161007a578063adca7aed146106a2578063b5f522f7146106f4578063c0c53b8b146107aa578063ce1fc427146107ca578063ed4ac86f146107ea578063f8361bab1461080a57600080fd5b8063918dafa4146105f757806395880bfe1461062b57806397849eb3146106425780639da1b02a14610662578063a1d1e5641461068257600080fd5b80638456cb59116100fd5780638456cb591461056f57806384c95d2a14610584578063854f0385146105a457806388d56073146105b757806391186443146105d757600080fd5b8063748365ef146104a9578063772184d7146104e157806377d13db21461050f5780637ee020c81461052f5780638396a0d71461054f57600080fd5b80633f4ba83a116101c75780635e09aa271161018b5780635e09aa271461041257806361200f94146104295780636305246e146104495780636ef3da941461046957806372ec7eec1461048957600080fd5b80633f4ba83a1461039b57806349751788146103b05780634f1ef286146103c657806352d1902d146103d95780635c975abb146103ee57600080fd5b8063297452621161020e57806329745262146103055780632a989f491461031b578063357706b31461033b5780633659cfe61461035b5780633e377ade1461037b57600080fd5b806303fb61da1461024b5780631171bda91461028c57806317890d6b146102ae57806322fc648c146102ce5780632591a15f146102e5575b600080fd5b34801561025757600080fd5b506102796102663660046149c5565b6101056020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561029857600080fd5b506102ac6102a7366004614908565b61082a565b005b3480156102ba57600080fd5b506102ac6102c9366004614a6e565b61095b565b3480156102da57600080fd5b506102796101015481565b3480156102f157600080fd5b506102ac610300366004614bb1565b610afe565b34801561031157600080fd5b5061027960fe5481565b34801561032757600080fd5b506102ac610336366004614b8b565b610cd8565b34801561034757600080fd5b506102ac610356366004614c85565b610e55565b34801561036757600080fd5b506102ac6103763660046148a5565b611117565b34801561038757600080fd5b506102ac610396366004614a6e565b6111f7565b3480156103a757600080fd5b506102ac611402565b3480156103bc57600080fd5b5061027960ff5481565b6102ac6103d4366004614948565b6114b1565b3480156103e557600080fd5b50610279611582565b3480156103fa57600080fd5b5060655460ff165b6040519015158152602001610283565b34801561041e57600080fd5b506102796101035481565b34801561043557600080fd5b506102ac6104443660046148dd565b611635565b34801561045557600080fd5b506102ac6104643660046149c5565b6117eb565b34801561047557600080fd5b506102ac6104843660046148a5565b6118cc565b34801561049557600080fd5b506102ac6104a43660046149c5565b611ab4565b3480156104b557600080fd5b5060fb546104c9906001600160a01b031681565b6040516001600160a01b039091168152602001610283565b3480156104ed57600080fd5b506102796104fc3660046149c5565b6101046020526000908152604090205481565b34801561051b57600080fd5b5061027961052a366004614d15565b611bde565b34801561053b57600080fd5b5061040261054a366004614d15565b611cc0565b34801561055b57600080fd5b506102ac61056a366004614c85565b611d98565b34801561057b57600080fd5b506102ac611ee3565b34801561059057600080fd5b5060fc546104c9906001600160a01b031681565b6102ac6105b2366004614ca6565b611f90565b3480156105c357600080fd5b506102ac6105d2366004614a3f565b6123d2565b3480156105e357600080fd5b506102ac6105f23660046149c5565b61253e565b34801561060357600080fd5b50610617610612366004614c85565b612619565b604051610283989796959493929190615007565b34801561063757600080fd5b506102796101005481565b34801561064e57600080fd5b5060fd546104c9906001600160a01b031681565b34801561066e57600080fd5b506102ac61067d3660046149c5565b612720565b34801561068e57600080fd5b506102ac61069d3660046148a5565b612915565b3480156106ae57600080fd5b506106dd6106bd3660046149c5565b610102602052600090815260409020805460019091015460ff9091169082565b604080519215158352602083019190915201610283565b34801561070057600080fd5b5061076261070f3660046149c5565b61010660205260009081526040902080546001820154600283015460038401546004850154600590950154939492936001600160a01b0392831693919092169161ffff81169060ff620100009091041687565b6040805197885260208801969096526001600160a01b0394851695870195909552929091166060850152608084015261ffff1660a083015260ff1660c082015260e001610283565b3480156107b657600080fd5b506102ac6107c53660046149f5565b612a86565b3480156107d657600080fd5b506102ac6107e53660046149c5565b612ce9565b3480156107f657600080fd5b506102ac610805366004614c85565b612e44565b34801561081657600080fd5b506102ac610825366004614a3f565b613032565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561087b57600080fd5b505afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b391906149a9565b6108d85760405162461bcd60e51b81526004016108cf90614f9b565b60405180910390fd5b6001600160a01b0382166108fe5760405162461bcd60e51b81526004016108cf90614f49565b6109098383836131ac565b816001600160a01b0316836001600160a01b03167f305fd4b7f973d3d7ee0074e0c7b4db74db3bbf0c21b17bf10e003985e4fc9f7b8360405161094e91815260200190565b60405180910390a3505050565b873360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b1580156109a557600080fd5b505afa1580156109b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109dd91906148c1565b6001600160a01b03161480610a76575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610a3e57600080fd5b505afa158015610a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7691906149a9565b610a925760405162461bcd60e51b81526004016108cf90614ec7565b60655460ff1615610ab55760405162461bcd60e51b81526004016108cf90614e9d565b6000898152610105602052604090205480610ae25760405162461bcd60e51b81526004016108cf90614fc5565b610af2818a8a8a8a8a8a8a6131fe565b50505050505050505050565b60655460ff1615610b215760405162461bcd60e51b81526004016108cf90614e9d565b883360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b158015610b6b57600080fd5b505afa158015610b7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba391906148c1565b6001600160a01b03161480610c3c575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610c0457600080fd5b505afa158015610c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3c91906149a9565b610c585760405162461bcd60e51b81526004016108cf90614ec7565b60008a8152610105602052604090205480610c855760405162461bcd60e51b81526004016108cf90614fc5565b610ccb818b8b8b8b8b8b8b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061333c92505050565b5050505050505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610d2957600080fd5b505afa158015610d3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6191906149a9565b610d7d5760405162461bcd60e51b81526004016108cf90614f9b565b701d6329f1c35ca4bfabb9f5610000000000811115610df75760405162461bcd60e51b815260206004820152603060248201527f4b4f20436f6d6d697373696f6e20746f6f2068696768202d2064616e6765722060448201526f6f66206f766572206f766572666c6f7760801b60648201526084016108cf565b60008381526101026020908152604091829020805460ff191685151517815560018101849055915183815285917f539d0ed3cb552a76fcbb80a6e143bcab8ffd0cf062a4e0d8d06d948c2c153ccf910160405180910390a250505050565b813360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b158015610e9f57600080fd5b505afa158015610eb3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed791906148c1565b6001600160a01b03161480610f70575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610f3857600080fd5b505afa158015610f4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7091906149a9565b610f8c5760405162461bcd60e51b81526004016108cf90614ec7565b60fc546040516361597daf60e11b8152600481018590526001600160a01b039091169063c2b2fb5e9060240160206040518083038186803b158015610fd057600080fd5b505afa158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100891906149a9565b61104d5760405162461bcd60e51b815260206004820152601660248201527511591a5d1a5bdb88191bd95cc81b9bdd08195e1a5cdd60521b60448201526064016108cf565b600083815261010560205260409020548061107a5760405162461bcd60e51b81526004016108cf90614fc5565b6000818152610107602052604090208054849081106110a957634e487b7160e01b600052603260045260246000fd5b6000918252602082206004909102018181556001810180546001600160b01b031916905560028101829055906110e26003830182614538565b5050604051839082907fd892afb60f8efb7b4fb62a237322a4f9a9868dd7759e75eeee89cb9ed034244190600090a350505050565b306001600160a01b037f000000000000000000000000cb9f819dc5cf25ab1719cd2ed91d9f5e2ac0d2141614156111605760405162461bcd60e51b81526004016108cf90614e05565b7f000000000000000000000000cb9f819dc5cf25ab1719cd2ed91d9f5e2ac0d2146001600160a01b03166111a960008051602061526d833981519152546001600160a01b031690565b6001600160a01b0316146111cf5760405162461bcd60e51b81526004016108cf90614e51565b6111d881613626565b604080516000808252602082019092526111f4918391906136e6565b50565b60655460ff161561121a5760405162461bcd60e51b81526004016108cf90614e9d565b60fc5460405163d41911d760e01b8152600481018a90526000916001600160a01b03169063d41911d79060240160206040518083038186803b15801561125f57600080fd5b505afa158015611273573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129791906148c1565b90506001600160a01b038116331480611334575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133491906149a9565b6113505760405162461bcd60e51b81526004016108cf90614ec7565b60008981526101056020526040902054156113ad5760405162461bcd60e51b815260206004820152601c60248201527f53616c652065786973747320666f7220746869732065646974696f6e0000000060448201526064016108cf565b60006113b98a83613860565b90506113cb818a8a8a8a8a8a8a6131fe565b60405181907f43ddc529ae41c777c0e40b54633b745a2797eb865f6dd329feff6a270e66bc7590600090a250505050505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561145357600080fd5b505afa158015611467573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148b91906149a9565b6114a75760405162461bcd60e51b81526004016108cf90614f9b565b6114af613a66565b565b306001600160a01b037f000000000000000000000000cb9f819dc5cf25ab1719cd2ed91d9f5e2ac0d2141614156114fa5760405162461bcd60e51b81526004016108cf90614e05565b7f000000000000000000000000cb9f819dc5cf25ab1719cd2ed91d9f5e2ac0d2146001600160a01b031661154360008051602061526d833981519152546001600160a01b031690565b6001600160a01b0316146115695760405162461bcd60e51b81526004016108cf90614e51565b61157282613626565b61157e828260016136e6565b5050565b6000306001600160a01b037f000000000000000000000000cb9f819dc5cf25ab1719cd2ed91d9f5e2ac0d21416146116225760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016108cf565b5060008051602061526d83398151915290565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be91906149a9565b6116da5760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b0382166117005760405162461bcd60e51b81526004016108cf90614f49565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461174d576040519150601f19603f3d011682016040523d82523d6000602084013e611752565b606091505b50509050806117a35760405162461bcd60e51b815260206004820152601c60248201527f556e61626c6520746f2073656e6420726563697069656e74204554480000000060448201526064016108cf565b826001600160a01b03167f4d688afe1abc567d30e199aa99174c72a9653aec3e1e87dd2b5e60ed469fad55836040516117de91815260200190565b60405180910390a2505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561183c57600080fd5b505afa158015611850573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061187491906149a9565b6118905760405162461bcd60e51b81526004016108cf90614f9b565b60ff8190556040518181527f0e782e841a04fe2a18adf67ea33f1becfdca41420dee80c4c28d966524f2e6e7906020015b60405180910390a150565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561191d57600080fd5b505afa158015611931573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195591906149a9565b6119715760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b03811663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156119c057600080fd5b505afa1580156119d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f891906149a9565b611a585760405162461bcd60e51b815260206004820152602b60248201527f53656e646572206d75737420686176652061646d696e20726f6c6520696e206e60448201526a195dc818dbdb9d1c9858dd60aa1b60648201526084016108cf565b60fb546040516001600160a01b038084169216907facd428448d30f3fadee1e7d643a28cfee0ec86aef546e1cfc717d844b99eedf290600090a360fb80546001600160a01b0319166001600160a01b0392909216919091179055565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611b0557600080fd5b505afa158015611b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3d91906149a9565b611b595760405162461bcd60e51b81526004016108cf90614f9b565b60008111611ba95760405162461bcd60e51b815260206004820152601b60248201527f4d6f64756c6f20706f696e742063616e6e6f74206265207a65726f000000000060448201526064016108cf565b60fe8190556040518181527f0974c11e488a74018e3da44e0750b7d0ec99a431c45f79a6110d722b823d0af0906020016118c1565b6000611bee878787878787611cc0565b611c0a5760405162461bcd60e51b81526004016108cf90614dc3565b60408051602081018990529081018790526001600160a01b0385166060820152610104906000906080016040516020818303038152906040528051906020012081526020019081526020016000205461010760008981526020019081526020016000208781548110611c8c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020160010154611cb59190600160a01b900461ffff1661516d565b979650505050505050565b600086815261010760205260408120805482919088908110611cf257634e487b7160e01b600052603260045260246000fd5b60009182526020808320604080519283018b90526bffffffffffffffffffffffff1960608b901b16908301526001605483015260049092029091019250607401604051602081830303815290604052805190602001209050611d8b858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250505050600284015483613af9565b9998505050505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611de957600080fd5b505afa158015611dfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2191906149a9565b611e3d5760405162461bcd60e51b81526004016108cf90614f9b565b6001811015611e8e5760405162461bcd60e51b815260206004820152601960248201527f556e61626c6520746f20736574206d61782065646974696f6e0000000000000060448201526064016108cf565b60008281526101066020526040908190206004018290555182907faf165292ec7322e623ce972321f199431e7cc1cb899e56cbc86f6f7bfab49f6790611ed79084815260200190565b60405180910390a25050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611f3457600080fd5b505afa158015611f48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6c91906149a9565b611f885760405162461bcd60e51b81526004016108cf90614f9b565b6114af613bb8565b60026001541415611fe35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108cf565b600260015560655460ff161561200b5760405162461bcd60e51b81526004016108cf90614e9d565b600086815261010660205260409020600581015462010000900460ff16156120665760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b60448201526064016108cf565b60008781526101076020526040812080548890811061209557634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049091020180549091506001600160801b031642108015906120d257508054600160801b90046001600160801b031642105b61211e5760405162461bcd60e51b815260206004820152601a60248201527f53616c65207068617365206e6f7420696e2070726f677265737300000000000060448201526064016108cf565b600181015461ffff600160901b8204811691612143918991600160801b9004166150c1565b61ffff16111561218e5760405162461bcd60e51b8152602060048201526016602482015275141a185cd9481b5a5b9d0818d85c081c995858da195960521b60448201526064016108cf565b60008888336040805160208101949094528301919091526001600160a01b0316606082015260800160408051601f19818403018152918152815160209283012060018501546000828152610104909452919092205491925061ffff600160a01b909104811691612200918a16906150e7565b111561225f5760405162461bcd60e51b815260206004820152602860248201527f43616e6e6f742065786365656420746f74616c206d696e747320666f722073616044820152676c6520706861736560c01b60648201526084016108cf565b600182015461227c9061ffff8916906001600160801b031661511f565b6001600160801b03163410156122e05760405162461bcd60e51b8152602060048201526024808201527f4e6f7420656e6f756768207765692073656e7420746f20636f6d706c657465206044820152631b5a5b9d60e21b60648201526084016108cf565b6122ee898988338989611cc0565b61230a5760405162461bcd60e51b81526004016108cf90614dc3565b612321898985600101548a61231c3390565b613c10565b600081815261010460205260408120805461ffff8a1692906123449084906150e7565b909155505060018201805488919060109061236b908490600160801b900461ffff166150c1565b92506101000a81548161ffff021916908361ffff160217905550868360050160008282829054906101000a900461ffff166123a691906150c1565b92506101000a81548161ffff021916908361ffff16021790555050505060018081905550505050505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561242357600080fd5b505afa158015612437573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245b91906149a9565b6124775760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b0381166124dd5760405162461bcd60e51b815260206004820152602760248201527f556e61626c6520746f2073656e642066756e647320746f20696e76616c6964206044820152666164647265737360c81b60648201526084016108cf565b6000828152610106602090815260409182902060030180546001600160a01b0319166001600160a01b038516908117909155915191825283917f5c83120cc7dfa9cce51d59698df84eb23f7a190e8a2f900fb0e86d03064e83639101611ed7565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561258f57600080fd5b505afa1580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c791906149a9565b6125e35760405162461bcd60e51b81526004016108cf90614f9b565b6101008190556040518181527f46b8c32fce68a5f2dff628d3b2cf9374788f42ea33b343728a64a3b090b4479e906020016118c1565b610107602052816000526040600020818154811061263657600080fd5b600091825260209091206004909102018054600182015460028301546003840180546001600160801b038086169850600160801b958690048116975084169561ffff958504861695600160901b8604811695600160a01b9004169392909161269d906151c7565b80601f01602080910402602001604051908101604052809291908181526020018280546126c9906151c7565b80156127165780601f106126eb57610100808354040283529160200191612716565b820191906000526020600020905b8154815290600101906020018083116126f957829003601f168201915b5050505050905088565b60655460ff16156127435760405162461bcd60e51b81526004016108cf90614e9d565b60fc5460405163d41911d760e01b8152600481018390526000916001600160a01b03169063d41911d79060240160206040518083038186803b15801561278857600080fd5b505afa15801561279c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127c091906148c1565b90506001600160a01b03811633148061285d575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561282557600080fd5b505afa158015612839573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061285d91906149a9565b6128795760405162461bcd60e51b81526004016108cf90614ec7565b60008281526101056020526040902054156128d65760405162461bcd60e51b815260206004820152601c60248201527f53616c652065786973747320666f7220746869732065646974696f6e0000000060448201526064016108cf565b60006128e28383613860565b60405190915081907f0f67e8677c172d56c079c18dcff5c9904d5ff20e6b5453eafe5f8dcc7ed6a00890600090a2505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561296657600080fd5b505afa15801561297a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299e91906149a9565b6129ba5760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b038116612a2a5760405162461bcd60e51b815260206004820152603160248201527f556e61626c6520746f2073657420696e76616c6964205f6e6577506c6174666f604482015270726d4163636f756e74206164647265737360781b60648201526084016108cf565b60fd546040516001600160a01b038084169216907f0dcf4ed468afaf8b36d6f5982788e2b86c18a544e7fb05803a79f67cd097d59190600090a360fd80546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16612aa15760005460ff1615612aa5565b303b155b612b085760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108cf565b600054610100900460ff16158015612b2a576000805461ffff19166101011790555b612b32613db1565b612b3a613de0565b6001600160a01b038416612ba55760405162461bcd60e51b815260206004820152602c60248201527f556e61626c6520746f2073657420696e76616c696420616363657373436f6e7460448201526b726f6c73206164647265737360a01b60648201526084016108cf565b6001600160a01b038316612c065760405162461bcd60e51b815260206004820152602260248201527f556e61626c6520746f2073657420696e76616c6964206b6f6461206164647265604482015261737360f01b60648201526084016108cf565b6001600160a01b038216612c735760405162461bcd60e51b815260206004820152602e60248201527f556e61626c6520746f2073657420696e76616c6964205f706c6174666f726d4160448201526d63636f756e74206164647265737360901b60648201526084016108cf565b60fb80546001600160a01b038087166001600160a01b03199283161790925560fc805486841690831617905560fd8054928516929091169190911790556298968060fe556216e36061010155662386f26fc1000060ff55615460610100558015612ce3576000805461ff00191690555b50505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612d3a57600080fd5b505afa158015612d4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d7291906149a9565b612d8e5760405162461bcd60e51b81526004016108cf90614f9b565b701d6329f1c35ca4bfabb9f5610000000000811115612e0e5760405162461bcd60e51b815260206004820152603660248201527f506c6174666f726d20636f6d6d697373696f6e20746f6f2068696768202d2064604482015275616e676572206f66206f766572206f766572666c6f7760501b60648201526084016108cf565b6101018190556040518181527f4d0a7f200f20f19a83f754cd8b5e65312e0c527e118c61563d9a9f18d082877c906020016118c1565b803360fc5460405163d41911d760e01b8152600481018490526001600160a01b03928316929091169063d41911d79060240160206040518083038186803b158015612e8e57600080fd5b505afa158015612ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ec691906148c1565b6001600160a01b03161480612f5f575060fb546001600160a01b0316633d3d6fe2336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612f2757600080fd5b505afa158015612f3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f5f91906149a9565b612f7b5760405162461bcd60e51b81526004016108cf90614ec7565b6000838152610106602052604090206005015462010000900460ff1615612fe45760008381526101066020526040808220600501805462ff0000191690555184917fb4d5f31e9d502a0df29359cf408328854efadfd2bcfa00ddbec1639693de9f5191a2505050565b60008381526101066020526040808220600501805462ff00001916620100001790555184917f4616a0782e5635981b28be1cd36934a60655b462c370d8bd8092c969abc990d091a25b505050565b60fb546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561308357600080fd5b505afa158015613097573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130bb91906149a9565b6130d75760405162461bcd60e51b81526004016108cf90614f9b565b6001600160a01b03811661313c5760405162461bcd60e51b815260206004820152602660248201527f556e61626c6520746f206d616b6520696e76616c6964206164647265737320636044820152653932b0ba37b960d11b60648201526084016108cf565b6000828152610106602090815260409182902060020180546001600160a01b0319166001600160a01b038516908117909155915191825283917f4d687154642d3ed61b179dc4eb2f266a1038da291cabb58146e5b59c1dd0d6979101611ed7565b6001600160a01b03163b151590565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261302d908490613e0f565b865160005b81811015610af25761332c8a8a838151811061322f57634e487b7160e01b600052603260045260246000fd5b60200260200101518a848151811061325757634e487b7160e01b600052603260045260246000fd5b60200260200101518a858151811061327f57634e487b7160e01b600052603260045260246000fd5b60200260200101518a86815181106132a757634e487b7160e01b600052603260045260246000fd5b60200260200101518a87815181106132cf57634e487b7160e01b600052603260045260246000fd5b60200260200101518a88815181106132f757634e487b7160e01b600052603260045260246000fd5b60200260200101518a898151811061331f57634e487b7160e01b600052603260045260246000fd5b602002602001015161333c565b61333581615202565b9050613203565b866001600160801b0316866001600160801b0316116133ad5760405162461bcd60e51b815260206004820152602760248201527f506861736520656e642074696d65206d7573742062652061667465722073746160448201526672742074696d6560c81b60648201526084016108cf565b60008361ffff16116133f35760405162461bcd60e51b815260206004820152600f60248201526e16995c9bc81b5a5b9d081b1a5b5a5d608a1b60448201526064016108cf565b60008461ffff16116134375760405162461bcd60e51b815260206004820152600d60248201526c05a65726f206d696e742063617609c1b60448201526064016108cf565b816134775760405162461bcd60e51b815260206004820152601060248201526f16995c9bc81b595c9adb19481c9bdbdd60821b60448201526064016108cf565b8051602e146134bc5760405162461bcd60e51b8152602060048201526011602482015270092dcecc2d8d2c84092a08ca640d0c2e6d607b1b60448201526064016108cf565b6000888152610107602090815260408083208151610100810183526001600160801b038c811682528b81168286019081528b82169483019485526060830187815261ffff8c8116608086019081528c821660a0870190815260c087018d815260e088018d8152895460018082018c559a8e529c8c902089519751978916600160801b988a168902176004909e02019c8d559951988c0180549551935192519990971671ffffffffffffffffffffffffffffffffffff19909516949094179183169094021763ffffffff60901b1916600160901b9382169390930261ffff60a01b191692909217600160a01b959092169490940217905590516002850155905180519193926135d292600385019290910190614572565b505050600088815261010760205260409020546135f19060019061516d565b60405189907f338b7193202eccd906002e2638e1d1ba970de94c664713102e6731d4015c3e3890600090a35050505050505050565b60fb5460405163c395fcb360e01b81523360048201526001600160a01b039091169063c395fcb39060240160206040518083038186803b15801561366957600080fd5b505afa15801561367d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136a191906149a9565b6111f45760405162461bcd60e51b81526020600482015260166024820152754f6e6c792061646d696e2063616e207570677261646560501b60448201526064016108cf565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156137195761302d83613ee1565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561375257600080fd5b505afa925050508015613782575060408051601f3d908101601f1916820190925261377f918101906149dd565b60015b6137e55760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016108cf565b60008051602061526d83398151915281146138545760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016108cf565b5061302d838383613f7d565b6000806101036000815461387390615202565b91829055506040805160e081018252828152602081018790526001600160a01b038681168284015260fc54925163f7b3de6560e01b815260048101899052939450909260608401929091169063f7b3de659060240160206040518083038186803b1580156138e057600080fd5b505afa1580156138f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061391891906148c1565b6001600160a01b03908116825260fc54604051630da3b07760e31b8152600481018990526020909301926001929190911690636d1d83b89060240160206040518083038186803b15801561396b57600080fd5b505afa15801561397f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139a391906149dd565b6139ad919061516d565b8152600060208083018290526040928301829052848252610106815282822084518155848201516001820155848401516002820180546001600160a01b039283166001600160a01b03199182161790915560608701516003840180549190931691161790556080850151600482015560a08501516005909101805460c09096015160ff16620100000262ffffff1990961661ffff9290921691909117949094179093558681526101059092529020819055905092915050565b60655460ff16613aaf5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108cf565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600081815b8551811015613bab576000868281518110613b2957634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311613b6b576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250613b98565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080613ba381615202565b915050613afe565b50831490505b9392505050565b60655460ff1615613bdb5760405162461bcd60e51b81526004016108cf90614e9d565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613adc3390565b60008261ffff1611613c5b5760405162461bcd60e51b8152602060048201526014602482015273139bdd1a1a5b99c818995a5b99c81b5a5b9d195960621b60448201526064016108cf565b600085815261010660205260408120600281015460058201546004909201546001600160a01b039091169291613c979161ffff9091169061516d565b905060005b8461ffff16811015613d79576000613cb5838886613fa2565b60fc54604051632142170760e11b81526001600160a01b0387811660048301528881166024830152604482018490529293509116906342842e0e90606401600060405180830381600087803b158015613d0d57600080fd5b505af1158015613d21573d6000803e3d6000fd5b50506040516001600160a01b03881681528392508a91508b907f32fc2007d2fa6a46584fcb036acc2d0ed9b3cec15354f757ea5a99719831edef9060200160405180910390a49150613d7281615202565b9050613c9c565b5060008781526101066020526040902060030154613da8906001600160a01b0316613da38961409a565b6140d2565b50505050505050565b600054610100900460ff16613dd85760405162461bcd60e51b81526004016108cf90614efe565b6114af614232565b600054610100900460ff16613e075760405162461bcd60e51b81526004016108cf90614efe565b6114af61425f565b6000613e64826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166142929092919063ffffffff16565b80519091501561302d5780806020019051810190613e8291906149a9565b61302d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108cf565b6001600160a01b0381163b613f4e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016108cf565b60008051602061526d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b613f86836142a9565b600082511180613f935750805b1561302d57612ce383836142e9565b6000835b8381106140515760fc546040516331a9108f60e11b8152600481018390526001600160a01b03858116921690636352211e9060240160206040518083038186803b158015613ff357600080fd5b505afa158015614007573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061402b91906148c1565b6001600160a01b03161415614041579050613bb1565b61404a816151b0565b9050613fa6565b5060405162461bcd60e51b815260206004820152601860248201527f5072696d617279206d61726b657420657868617573746564000000000000000060448201526064016108cf565b6000818152610102602052604081205460ff16156140c957506000908152610102602052604090206001015490565b50506101015490565b60fe546000906140e2833461514e565b6140ec91906150ff565b905080156141995760fd546040516000916001600160a01b03169083908381818185875af1925050503d8060008114614141576040519150601f19603f3d011682016040523d82523d6000602084013e614146565b606091505b50509050806141975760405162461bcd60e51b815260206004820152601960248201527f636f6d6d697373696f6e207061796d656e74206661696c65640000000000000060448201526064016108cf565b505b60006001600160a01b0384166141af833461516d565b604051600081818185875af1925050503d80600081146141eb576040519150601f19603f3d011682016040523d82523d6000602084013e6141f0565b606091505b5050905080612ce35760405162461bcd60e51b815260206004820152600e60248201526d1c185e5b595b9d0819985a5b195960921b60448201526064016108cf565b600054610100900460ff166142595760405162461bcd60e51b81526004016108cf90614efe565b60018055565b600054610100900460ff166142865760405162461bcd60e51b81526004016108cf90614efe565b6065805460ff19169055565b60606142a184846000856143dd565b949350505050565b6142b281613ee1565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6143515760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016108cf565b600080846001600160a01b03168460405161436c9190614d94565b600060405180830381855af49150503d80600081146143a7576040519150601f19603f3d011682016040523d82523d6000602084013e6143ac565b606091505b50915091506143d4828260405180606001604052806027815260200161528d602791396144ff565b95945050505050565b60608247101561443e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016108cf565b6001600160a01b0385163b6144955760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108cf565b600080866001600160a01b031685876040516144b19190614d94565b60006040518083038185875af1925050503d80600081146144ee576040519150601f19603f3d011682016040523d82523d6000602084013e6144f3565b606091505b5091509150611cb58282865b6060831561450e575081613bb1565b82511561451e5782518084602001fd5b8160405162461bcd60e51b81526004016108cf9190614db0565b508054614544906151c7565b6000825580601f10614554575050565b601f0160209004906000526020600020908101906111f491906145f6565b82805461457e906151c7565b90600052602060002090601f0160209004810192826145a057600085556145e6565b82601f106145b957805160ff19168380011785556145e6565b828001600101855582156145e6579182015b828111156145e65782518255916020019190600101906145cb565b506145f29291506145f6565b5090565b5b808211156145f257600081556001016145f7565b600067ffffffffffffffff83111561462557614625615233565b614638601f8401601f191660200161506c565b905082815283838301111561464c57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112614674578182fd5b50813567ffffffffffffffff81111561468b578182fd5b6020830191508360208260051b85010111156146a657600080fd5b9250929050565b600082601f8301126146bd578081fd5b813560206146d26146cd8361509d565b61506c565b80838252828201915082860187848660051b89010111156146f1578586fd5b855b8581101561470f578135845292840192908401906001016146f3565b5090979650505050505050565b600082601f83011261472c578081fd5b8135602061473c6146cd8361509d565b80838252828201915082860187848660051b890101111561475b578586fd5b855b8581101561470f57813567ffffffffffffffff81111561477b578788fd5b8801603f81018a1361478b578788fd5b61479c8a878301356040840161460b565b855250928401929084019060010161475d565b600082601f8301126147bf578081fd5b813560206147cf6146cd8361509d565b80838252828201915082860187848660051b89010111156147ee578586fd5b855b8581101561470f5761480182614877565b845292840192908401906001016147f0565b600082601f830112614823578081fd5b813560206148336146cd8361509d565b80838252828201915082860187848660051b8901011115614852578586fd5b855b8581101561470f5761486582614893565b84529284019290840190600101614854565b80356001600160801b038116811461488e57600080fd5b919050565b803561ffff8116811461488e57600080fd5b6000602082840312156148b6578081fd5b8135613bb181615249565b6000602082840312156148d2578081fd5b8151613bb181615249565b600080604083850312156148ef578081fd5b82356148fa81615249565b946020939093013593505050565b60008060006060848603121561491c578081fd5b833561492781615249565b9250602084013561493781615249565b929592945050506040919091013590565b6000806040838503121561495a578182fd5b823561496581615249565b9150602083013567ffffffffffffffff811115614980578182fd5b8301601f81018513614990578182fd5b61499f8582356020840161460b565b9150509250929050565b6000602082840312156149ba578081fd5b8151613bb18161525e565b6000602082840312156149d6578081fd5b5035919050565b6000602082840312156149ee578081fd5b5051919050565b600080600060608486031215614a09578081fd5b8335614a1481615249565b92506020840135614a2481615249565b91506040840135614a3481615249565b809150509250925092565b60008060408385031215614a51578182fd5b823591506020830135614a6381615249565b809150509250929050565b600080600080600080600080610100898b031215614a8a578586fd5b88359750602089013567ffffffffffffffff80821115614aa8578788fd5b614ab48c838d016147af565b985060408b0135915080821115614ac9578788fd5b614ad58c838d016147af565b975060608b0135915080821115614aea578586fd5b614af68c838d016147af565b965060808b0135915080821115614b0b578586fd5b614b178c838d01614813565b955060a08b0135915080821115614b2c578485fd5b614b388c838d01614813565b945060c08b0135915080821115614b4d578384fd5b614b598c838d016146ad565b935060e08b0135915080821115614b6e578283fd5b50614b7b8b828c0161471c565b9150509295985092959890939650565b600080600060608486031215614b9f578081fd5b8335925060208401356149378161525e565b60008060008060008060008060006101008a8c031215614bcf578283fd5b89359850614bdf60208b01614877565b9750614bed60408b01614877565b9650614bfb60608b01614877565b9550614c0960808b01614893565b9450614c1760a08b01614893565b935060c08a0135925060e08a013567ffffffffffffffff80821115614c3a578283fd5b818c0191508c601f830112614c4d578283fd5b813581811115614c5b578384fd5b8d6020828501011115614c6c578384fd5b6020830194508093505050509295985092959850929598565b60008060408385031215614c97578182fd5b50508035926020909101359150565b60008060008060008060a08789031215614cbe578384fd5b8635955060208701359450614cd560408801614893565b935060608701359250608087013567ffffffffffffffff811115614cf7578283fd5b614d0389828a01614663565b979a9699509497509295939492505050565b60008060008060008060a08789031215614d2d578384fd5b8635955060208701359450604087013593506060870135614d4d81615249565b9250608087013567ffffffffffffffff811115614cf7578283fd5b60008151808452614d80816020860160208601615184565b601f01601f19169290920160200192915050565b60008251614da6818460208701615184565b9190910192915050565b602081526000613bb16020830184614d68565b60208082526022908201527f41646472657373206e6f742061626c6520746f206d696e742066726f6d2073616040820152616c6560f01b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601b908201527f43616c6c6572206e6f742063726561746f72206f722061646d696e0000000000604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60208082526032908201527f556e61626c6520746f2073656e642066756e647320746f20696e76616c6964206040820152715f726563697069656e74206164647265737360701b606082015260800190565b60208082526010908201526f21b0b63632b9103737ba1030b236b4b760811b604082015260600190565b60208082526022908201527f4e6f2073616c65206173736f63696174656420776974682065646974696f6e206040820152611a5960f21b606082015260800190565b6001600160801b03898116825288811660208301528716604082015261ffff86811660608301528581166080830152841660a082015260c0810183905261010060e0820181905260009061505d83820185614d68565b9b9a5050505050505050505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561509557615095615233565b604052919050565b600067ffffffffffffffff8211156150b7576150b7615233565b5060051b60200190565b600061ffff8083168185168083038211156150de576150de61521d565b01949350505050565b600082198211156150fa576150fa61521d565b500190565b60008261511a57634e487b7160e01b81526012600452602481fd5b500490565b60006001600160801b03808316818516818304811182151516156151455761514561521d565b02949350505050565b60008160001904831182151516156151685761516861521d565b500290565b60008282101561517f5761517f61521d565b500390565b60005b8381101561519f578181015183820152602001615187565b83811115612ce35750506000910152565b6000816151bf576151bf61521d565b506000190190565b600181811c908216806151db57607f821691505b602082108114156151fc57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156152165761521661521d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146111f457600080fd5b80151581146111f457600080fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220d34cc7d52499cf6c2759903a9b1ae29af38d9194bdd056f2204a396690a484de64736f6c63430008040033

Deployed Bytecode Sourcemap

74955:15955:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78485:48;;;;;;;;;;-1:-1:-1;78485:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;16582:25:1;;;16570:2;16555:18;78485:48:0;;;;;;;;63206:352;;;;;;;;;;-1:-1:-1;63206:352:0;;;;;:::i;:::-;;:::i;:::-;;83302:839;;;;;;;;;;-1:-1:-1;83302:839:0;;;;;:::i;:::-;;:::i;62085:40::-;;;;;;;;;;;;;;;;82570:724;;;;;;;;;;-1:-1:-1;82570:724:0;;;;;:::i;:::-;;:::i;61847:21::-;;;;;;;;;;;;;;;;90409:498;;;;;;;;;;-1:-1:-1;90409:498:0;;;;;:::i;:::-;;:::i;84149:420::-;;;;;;;;;;-1:-1:-1;84149:420:0;;;;;:::i;:::-;;:::i;42210:200::-;;;;;;;;;;-1:-1:-1;42210:200:0;;;;;:::i;:::-;;:::i;78846:1114::-;;;;;;;;;;-1:-1:-1;78846:1114:0;;;;;:::i;:::-;;:::i;65557:71::-;;;;;;;;;;;;;:::i;61928:27::-;;;;;;;;;;;;;;;;42669:225;;;;;;:::i;:::-;;:::i;41888:133::-;;;;;;;;;;;;;:::i;25467:86::-;;;;;;;;;;-1:-1:-1;25538:7:0;;;;25467:86;;;16146:14:1;;16139:22;16121:41;;16109:2;16094:18;25467:86:0;16076:92:1;78220:28:0;;;;;;;;;;;;;;;;63566:369;;;;;;;;;;-1:-1:-1;63566:369:0;;;;;:::i;:::-;;:::i;64783:169::-;;;;;;;;;;-1:-1:-1;64783:169:0;;;;;:::i;:::-;;:::i;64250:322::-;;;;;;;;;;-1:-1:-1;64250:322:0;;;;;:::i;:::-;;:::i;64580:195::-;;;;;;;;;;-1:-1:-1;64580:195:0;;;;;:::i;:::-;;:::i;61615:45::-;;;;;;;;;;-1:-1:-1;61615:45:0;;;;-1:-1:-1;;;;;61615:45:0;;;;;;-1:-1:-1;;;;;15278:32:1;;;15260:51;;15248:2;15233:18;61615:45:0;15215:102:1;78363:45:0;;;;;;;;;;-1:-1:-1;78363:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;85470:434;;;;;;;;;;-1:-1:-1;85470:434:0;;;;;:::i;:::-;;:::i;84655:450::-;;;;;;;;;;-1:-1:-1;84655:450:0;;;;;:::i;:::-;;:::i;89828:289::-;;;;;;;;;;-1:-1:-1;89828:289:0;;;;;:::i;:::-;;:::i;65482:67::-;;;;;;;;;;;;;:::i;61700:19::-;;;;;;;;;;-1:-1:-1;61700:19:0;;;;-1:-1:-1;;;;;61700:19:0;;;81229:1333;;;;;;:::i;:::-;;:::i;89502:318::-;;;;;;;;;;-1:-1:-1;89502:318:0;;;;;:::i;:::-;;:::i;64960:187::-;;;;;;;;;;-1:-1:-1;64960:187:0;;;;;:::i;:::-;;:::i;78715:41::-;;;;;;;;;;-1:-1:-1;78715:41:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;:::i;61999:30::-;;;;;;;;;;;;;;;;61770;;;;;;;;;;-1:-1:-1;61770:30:0;;;;-1:-1:-1;;;;;61770:30:0;;;80041:538;;;;;;;;;;-1:-1:-1;80041:538:0;;;;;:::i;:::-;;:::i;65155:319::-;;;;;;;;;;-1:-1:-1;65155:319:0;;;;;:::i;:::-;;:::i;78081:75::-;;;;;;;;;;-1:-1:-1;78081:75:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16366:14:1;;16359:22;16341:41;;16413:2;16398:18;;16391:34;;;;16314:18;78081:75:0;16296:135:1;78594:37:0;;;;;;;;;;-1:-1:-1;78594:37:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78594:37:0;;;;;;;;;;;;;;;;;;;;;;;;;37791:25:1;;;37847:2;37832:18;;37825:34;;;;-1:-1:-1;;;;;37933:15:1;;;37913:18;;;37906:43;;;;37985:15;;;;37980:2;37965:18;;37958:43;38032:3;38017:19;;38010:35;38094:6;38082:19;37886:3;38061:19;;38054:48;38151:4;38139:17;38133:3;38118:19;;38111:46;37778:3;37763:19;78594:37:0;37745:418:1;62224:796:0;;;;;;;;;;-1:-1:-1;62224:796:0;;;;;:::i;:::-;;:::i;63943:299::-;;;;;;;;;;-1:-1:-1;63943:299:0;;;;;:::i;:::-;;:::i;85113:349::-;;;;;;;;;;-1:-1:-1;85113:349:0;;;;;:::i;:::-;;:::i;90125:276::-;;;;;;;;;;-1:-1:-1;90125:276:0;;;;;:::i;:::-;;:::i;63206:352::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1;;;;;63317:24:0;::::1;63309:87;;;;-1:-1:-1::0;;;63309:87:0::1;;;;;;;:::i;:::-;63407:81;63459:6;63468:10;63480:7;63407:33;:81::i;:::-;63530:10;-1:-1:-1::0;;;;;63504:46:0::1;63522:6;-1:-1:-1::0;;;;;63504:46:0::1;;63542:7;63504:46;;;;16582:25:1::0;;16570:2;16555:18;;16537:76;63504:46:0::1;;;;;;;;63206:352:::0;;;:::o;83302:839::-;83690:10;23702;61369:4;;:36;;-1:-1:-1;;;61369:36:0;;;;;16582:25:1;;;-1:-1:-1;;;;;61369:52:0;;;;:4;;;;:24;;16555:18:1;;61369:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;61369:52:0;;:107;;;-1:-1:-1;61425:14:0;;-1:-1:-1;;;;;61425:14:0;:37;23702:10;61425:51;;-1:-1:-1;;;;;;61425:51:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61425:51:0;;;15260::1;15233:18;;61425:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61347:184;;;;-1:-1:-1;;;61347:184:0;;;;;;;:::i;:::-;25538:7;;;;25792:9:::1;25784:38;;;;-1:-1:-1::0;;;25784:38:0::1;;;;;;;:::i;:::-;83762:14:::2;83779:25:::0;;;:13:::2;:25;::::0;;;;;83823:10;83815:57:::2;;;;-1:-1:-1::0;;;83815:57:0::2;;;;;;;:::i;:::-;83885:248;83924:6;83945:11;83971:9;83995:12;84022:9;84046:17;84078:12;84105:17;83885:24;:248::i;:::-;25833:1;83302:839:::0;;;;;;;;;:::o;82570:724::-;25538:7;;;;25792:9;25784:38;;;;-1:-1:-1;;;25784:38:0;;;;;;;:::i;:::-;82909:10;23702;61369:4:::1;::::0;:36:::1;::::0;-1:-1:-1;;;61369:36:0;;::::1;::::0;::::1;16582:25:1::0;;;-1:-1:-1;;;;;61369:52:0;;::::1;::::0;:4;;::::1;::::0;:24:::1;::::0;16555:18:1;;61369:36:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;61369:52:0::1;;:107;;;-1:-1:-1::0;61425:14:0::1;::::0;-1:-1:-1;;;;;61425:14:0::1;:37;23702:10:::0;61425:51:::1;::::0;-1:-1:-1;;;;;;61425:51:0::1;::::0;;;;;;-1:-1:-1;;;;;15278:32:1;;;61425:51:0::1;::::0;::::1;15260::1::0;15233:18;;61425:51:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61347:184;;;;-1:-1:-1::0;;;61347:184:0::1;;;;;;;:::i;:::-;82932:14:::2;82949:25:::0;;;:13:::2;:25;::::0;;;;;82993:10;82985:57:::2;;;;-1:-1:-1::0;;;82985:57:0::2;;;;;;;:::i;:::-;83055:231;83085:6;83106:10;83131:8;83154:11;83180:8;83203:16;83234:11;83260:15;;83055:231;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;::::0;;;;-1:-1:-1;83055:15:0::2;::::0;-1:-1:-1;;;83055:231:0:i:2;:::-;61542:1;25833::::1;82570:724:::0;;;;;;;;;:::o;90409:498::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;90557:6:::1;90539:13;:25;;90531:86;;;::::0;-1:-1:-1;;;90531:86:0;;18559:2:1;90531:86:0::1;::::0;::::1;18541:21:1::0;18598:2;18578:18;;;18571:30;18637:34;18617:18;;;18610:62;-1:-1:-1;;;18688:18:1;;;18681:46;18744:19;;90531:86:0::1;18531:238:1::0;90531:86:0::1;90628:49;90680:36:::0;;;:27:::1;:36;::::0;;;;;;;;90727:37;;-1:-1:-1;;90727:37:0::1;::::0;::::1;;;::::0;;-1:-1:-1;90775:33:0;::::1;:49:::0;;;90840:59;;16582:25:1;;;90680:36:0;;90840:59:::1;::::0;16555:18:1;90840:59:0::1;;;;;;;61263:1;90409:498:::0;;;:::o;84149:420::-;84258:10;23702;61369:4;;:36;;-1:-1:-1;;;61369:36:0;;;;;16582:25:1;;;-1:-1:-1;;;;;61369:52:0;;;;:4;;;;:24;;16555:18:1;;61369:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;61369:52:0;;:107;;;-1:-1:-1;61425:14:0;;-1:-1:-1;;;;;61425:14:0;:37;23702:10;61425:51;;-1:-1:-1;;;;;;61425:51:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61425:51:0;;;15260::1;15233:18;;61425:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61347:184;;;;-1:-1:-1;;;61347:184:0;;;;;;;:::i;:::-;84289:4:::1;::::0;:30:::1;::::0;-1:-1:-1;;;84289:30:0;;::::1;::::0;::::1;16582:25:1::0;;;-1:-1:-1;;;;;84289:4:0;;::::1;::::0;:18:::1;::::0;16555::1;;84289:30:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;84281:65;;;::::0;-1:-1:-1;;;84281:65:0;;32929:2:1;84281:65:0::1;::::0;::::1;32911:21:1::0;32968:2;32948:18;;;32941:30;-1:-1:-1;;;32987:18:1;;;32980:52;33049:18;;84281:65:0::1;32901:172:1::0;84281:65:0::1;84359:14;84376:25:::0;;;:13:::1;:25;::::0;;;;;84420:10;84412:57:::1;;;;-1:-1:-1::0;;;84412:57:0::1;;;;;;;:::i;:::-;84489:14;::::0;;;:6:::1;:14;::::0;;;;:24;;84504:8;;84489:24;::::1;;;-1:-1:-1::0;;;84489:24:0::1;;;;;;;;;;::::0;;;::::1;::::0;;::::1;::::0;;::::1;;84482:31:::0;;;;;::::1;::::0;;-1:-1:-1;;;;;;84482:31:0;;;::::1;::::0;::::1;::::0;;;84489:24;84482:31:::1;;::::0;::::1;84489:24:::0;84482:31:::1;:::i;:::-;-1:-1:-1::0;;84531:30:0::1;::::0;84552:8;;84544:6;;84531:30:::1;::::0;;;::::1;61542:1;84149:420:::0;;;:::o;42210:200::-;40751:4;-1:-1:-1;;;;;40760:6:0;40743:23;;;40735:80;;;;-1:-1:-1;;;40735:80:0;;;;;;;:::i;:::-;40858:6;-1:-1:-1;;;;;40834:30:0;:20;-1:-1:-1;;;;;;;;;;;32564:65:0;-1:-1:-1;;;;;32564:65:0;;32484:153;40834:20;-1:-1:-1;;;;;40834:30:0;;40826:87;;;;-1:-1:-1;;;40826:87:0;;;;;;;:::i;:::-;42294:36:::1;42312:17;42294;:36::i;:::-;42382:12;::::0;;42392:1:::1;42382:12:::0;;;::::1;::::0;::::1;::::0;;;42341:61:::1;::::0;42363:17;;42382:12;42341:21:::1;:61::i;:::-;42210:200:::0;:::o;78846:1114::-;25538:7;;;;25792:9;25784:38;;;;-1:-1:-1;;;25784:38:0;;;;;;;:::i;:::-;79253:4:::1;::::0;:36:::1;::::0;-1:-1:-1;;;79253:36:0;;::::1;::::0;::::1;16582:25:1::0;;;79235:15:0::1;::::0;-1:-1:-1;;;;;79253:4:0::1;::::0;:24:::1;::::0;16555:18:1;;79253:36:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79235:54:::0;-1:-1:-1;;;;;;79322:23:0;::::1;23702:10:::0;79322:23:::1;::::0;:78:::1;;-1:-1:-1::0;79349:14:0::1;::::0;-1:-1:-1;;;;;79349:14:0::1;:37;23702:10:::0;79349:51:::1;::::0;-1:-1:-1;;;;;;79349:51:0::1;::::0;;;;;;-1:-1:-1;;;;;15278:32:1;;;79349:51:0::1;::::0;::::1;15260::1::0;15233:18;;79349:51:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79300:155;;;;-1:-1:-1::0;;;79300:155:0::1;;;;;;;:::i;:::-;79520:25;::::0;;;:13:::1;:25;::::0;;;;;:30;79512:71:::1;;;::::0;-1:-1:-1;;;79512:71:0;;27549:2:1;79512:71:0::1;::::0;::::1;27531:21:1::0;27588:2;27568:18;;;27561:30;27627;27607:18;;;27600:58;27675:18;;79512:71:0::1;27521:178:1::0;79512:71:0::1;79596:14;79613:32;79625:10;79637:7;79613:11;:32::i;:::-;79596:49;;79658:248;79697:6;79718:11;79744:9;79768:12;79795:9;79819:17;79851:12;79878:17;79658:24;:248::i;:::-;79924:28;::::0;79945:6;;79924:28:::1;::::0;;;::::1;25833:1;;78846:1114:::0;;;;;;;;:::o;65557:71::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;65604:16:::1;:14;:16::i;:::-;65557:71::o:0;42669:225::-;40751:4;-1:-1:-1;;;;;40760:6:0;40743:23;;;40735:80;;;;-1:-1:-1;;;40735:80:0;;;;;;;:::i;:::-;40858:6;-1:-1:-1;;;;;40834:30:0;:20;-1:-1:-1;;;;;;;;;;;32564:65:0;-1:-1:-1;;;;;32564:65:0;;32484:153;40834:20;-1:-1:-1;;;;;40834:30:0;;40826:87;;;;-1:-1:-1;;;40826:87:0;;;;;;;:::i;:::-;42787:36:::1;42805:17;42787;:36::i;:::-;42834:52;42856:17;42875:4;42881;42834:21;:52::i;:::-;42669:225:::0;;:::o;41888:133::-;41966:7;41196:4;-1:-1:-1;;;;;41205:6:0;41188:23;;41180:92;;;;-1:-1:-1;;;41180:92:0;;22829:2:1;41180:92:0;;;22811:21:1;22868:2;22848:18;;;22841:30;22907:34;22887:18;;;22880:62;22978:26;22958:18;;;22951:54;23022:19;;41180:92:0;22801:246:1;41180:92:0;-1:-1:-1;;;;;;;;;;;;41888:133:0;:::o;63566:369::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;63672:24:0;::::1;63664:87;;;;-1:-1:-1::0;;;63664:87:0::1;;;;;;;:::i;:::-;63763:12;63780:10;-1:-1:-1::0;;;;;63780:15:0::1;63804:7;63780:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63762:54;;;63835:7;63827:48;;;::::0;-1:-1:-1;;;63827:48:0;;19792:2:1;63827:48:0::1;::::0;::::1;19774:21:1::0;19831:2;19811:18;;;19804:30;19870;19850:18;;;19843:58;19918:18;;63827:48:0::1;19764:178:1::0;63827:48:0::1;63907:10;-1:-1:-1::0;;;;;63891:36:0::1;;63919:7;63891:36;;;;16582:25:1::0;;16570:2;16555:18;;16537:76;63891:36:0::1;;;;;;;;61263:1;63566:369:::0;;:::o;64783:169::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;64862:12:::1;:28:::0;;;64906:38:::1;::::0;16582:25:1;;;64906:38:0::1;::::0;16570:2:1;16555:18;64906:38:0::1;;;;;;;;64783:169:::0;:::o;64250:322::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;64357:28:0;::::1;;23702:10:::0;64357:42:::1;::::0;-1:-1:-1;;;;;;64357:42:0::1;::::0;;;;;;-1:-1:-1;;;;;15278:32:1;;;64357:42:0::1;::::0;::::1;15260:51:1::0;15233:18;;64357:42:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64349:98;;;::::0;-1:-1:-1;;;64349:98:0;;29065:2:1;64349:98:0::1;::::0;::::1;29047:21:1::0;29104:2;29084:18;;;29077:30;29143:34;29123:18;;;29116:62;-1:-1:-1;;;29194:18:1;;;29187:41;29245:19;;64349:98:0::1;29037:233:1::0;64349:98:0::1;64489:14;::::0;64463:58:::1;::::0;-1:-1:-1;;;;;64463:58:0;;::::1;::::0;64489:14:::1;::::0;64463:58:::1;::::0;64489:14:::1;::::0;64463:58:::1;64532:14;:32:::0;;-1:-1:-1;;;;;;64532:32:0::1;-1:-1:-1::0;;;;;64532:32:0;;;::::1;::::0;;;::::1;::::0;;64250:322::o;64580:195::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;64665:1:::1;64655:7;:11;64647:51;;;::::0;-1:-1:-1;;;64647:51:0;;35568:2:1;64647:51:0::1;::::0;::::1;35550:21:1::0;35607:2;35587:18;;;35580:30;35646:29;35626:18;;;35619:57;35693:18;;64647:51:0::1;35540:177:1::0;64647:51:0::1;64709:6;:16:::0;;;64741:26:::1;::::0;16582:25:1;;;64741:26:0::1;::::0;16570:2:1;16555:18;64741:26:0::1;16537:76:1::0;85470:434:0;85637:7;85665:66;85681:7;85690:8;85700:6;85708:8;85718:12;;85665:15;:66::i;:::-;85657:113;;;;-1:-1:-1;;;85657:113:0;;;;;;;:::i;:::-;85855:39;;;;;;37334:25:1;;;37375:18;;;37368:34;;;-1:-1:-1;;;;;37438:32:1;;37418:18;;;37411:60;85834:10:0;;:62;;37307:18:1;;85855:39:0;;;;;;;;;;;;85845:50;;;;;;85834:62;;;;;;;;;;;;85790:6;:15;85797:7;85790:15;;;;;;;;;;;85806:8;85790:25;;;;;;-1:-1:-1;;;85790:25:0;;;;;;;;;;;;;;;;;;;;;;:41;;;:106;;;-1:-1:-1;;;85790:41:0;;;;:106;:::i;:::-;85783:113;85470:434;-1:-1:-1;;;;;;;85470:434:0:o;84655:450::-;84808:4;84847:15;;;:6;:15;;;;;:25;;84808:4;;84847:15;84863:8;;84847:25;;;;-1:-1:-1;;;84847:25:0;;;;;;;;;;;;;;;;;84976:46;;;;;;14935:19:1;;;-1:-1:-1;;14992:2:1;14988:15;;;14984:53;14970:12;;;14963:75;85019:1:0;15054:12:1;;;15047:28;84847:25:0;;;;;;;;-1:-1:-1;15091:12:1;;84976:46:0;;;;;;;;;;;;84966:57;;;;;;84951:72;;85041:56;85060:12;;85041:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;85074:16:0;;;;85092:4;85041:18;:56::i;:::-;85034:63;84655:450;-1:-1:-1;;;;;;;;;84655:450:0:o;89828:289::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;89955:1:::1;89935:16;:21;;89927:59;;;::::0;-1:-1:-1;;;89927:59:0;;35924:2:1;89927:59:0::1;::::0;::::1;35906:21:1::0;35963:2;35943:18;;;35936:30;36002:27;35982:18;;;35975:55;36047:18;;89927:59:0::1;35896:175:1::0;89927:59:0::1;89997:14;::::0;;;:5:::1;:14;::::0;;;;;;:27:::1;;:46:::0;;;90059:50;90003:7;;90059:50:::1;::::0;::::1;::::0;90027:16;16582:25:1;;16570:2;16555:18;;16537:76;90059:50:0::1;;;;;;;;89828:289:::0;;:::o;65482:67::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;65527:14:::1;:12;:14::i;81229:1333::-:0;21341:1;22116:7;;:19;;22108:63;;;;-1:-1:-1;;;22108:63:0;;34857:2:1;22108:63:0;;;34839:21:1;34896:2;34876:18;;;34869:30;34935:33;34915:18;;;34908:61;34986:18;;22108:63:0;34829:181:1;22108:63:0;21341:1;22249:7;:18;25538:7;;;;25792:9:::1;25784:38;;;;-1:-1:-1::0;;;25784:38:0::1;;;;;;;:::i;:::-;81453:17:::2;81473:14:::0;;;:5:::2;:14;::::0;;;;81506:11:::2;::::0;::::2;::::0;;;::::2;;;:16:::0;81498:43:::2;;;::::0;-1:-1:-1;;;81498:43:0;;34109:2:1;81498:43:0::2;::::0;::::2;34091:21:1::0;34148:2;34128:18;;;34121:30;-1:-1:-1;;;34167:18:1;;;34160:44;34221:18;;81498:43:0::2;34081:164:1::0;81498:43:0::2;81554:19;81576:15:::0;;;:6:::2;:15;::::0;;;;:25;;81592:8;;81576:25;::::2;;;-1:-1:-1::0;;;81576:25:0::2;;;;;;;;;;::::0;;;::::2;::::0;;;::::2;::::0;;::::2;;81641:15:::0;;81576:25;;-1:-1:-1;;;;;;81641:15:0::2;81622;:34;::::0;::::2;::::0;:69:::2;;-1:-1:-1::0;81678:13:0;;-1:-1:-1;;;81678:13:0;::::2;-1:-1:-1::0;;;;;81678:13:0::2;81660:15;:31;81622:69;81614:108;;;::::0;-1:-1:-1;;;81614:108:0;;18204:2:1;81614:108:0::2;::::0;::::2;18186:21:1::0;18243:2;18223:18;;;18216:30;18282:28;18262:18;;;18255:56;18328:18;;81614:108:0::2;18176:176:1::0;81614:108:0::2;81775:13;::::0;::::2;::::0;::::2;-1:-1:-1::0;;;81775:13:0;::::2;::::0;::::2;::::0;81741:30:::2;::::0;81761:10;;-1:-1:-1;;;81741:17:0;::::2;;:30;:::i;:::-;:47;;;;81733:82;;;::::0;-1:-1:-1;;;81733:82:0;;21255:2:1;81733:82:0::2;::::0;::::2;21237:21:1::0;21294:2;21274:18;;;21267:30;-1:-1:-1;;;21313:18:1;;;21306:52;21375:18;;81733:82:0::2;21227:172:1::0;81733:82:0::2;81828:21;81873:7:::0;81882:8;23702:10;81862:43:::2;::::0;;::::2;::::0;::::2;37334:25:1::0;;;;37375:18;;37368:34;;;;-1:-1:-1;;;;;37438:32:1;37418:18;;;37411:60;37307:18;;81862:43:0::2;::::0;;-1:-1:-1;;81862:43:0;;::::2;::::0;;;;;;81852:54;;81862:43:::2;81852:54:::0;;::::2;::::0;81969:21:::2;::::0;::::2;::::0;81927:25:::2;::::0;;;:10:::2;:25:::0;;;;;;;;81852:54;;-1:-1:-1;81969:21:0::2;-1:-1:-1::0;;;81969:21:0;;::::2;::::0;::::2;::::0;81927:38:::2;::::0;;::::2;::::0;::::2;:::i;:::-;:63;;81919:116;;;::::0;-1:-1:-1;;;81919:116:0;;30227:2:1;81919:116:0::2;::::0;::::2;30209:21:1::0;30266:2;30246:18;;;30239:30;30305:34;30285:18;;;30278:62;-1:-1:-1;;;30356:18:1;;;30349:38;30404:19;;81919:116:0::2;30199:230:1::0;81919:116:0::2;82067:16;::::0;::::2;::::0;:29:::2;::::0;::::2;::::0;::::2;::::0;-1:-1:-1;;;;;82067:16:0::2;:29;:::i;:::-;-1:-1:-1::0;;;;;82054:42:0::2;:9;:42;;82046:91;;;::::0;-1:-1:-1;;;82046:91:0;;34452:2:1;82046:91:0::2;::::0;::::2;34434:21:1::0;34491:2;34471:18;;;34464:30;34530:34;34510:18;;;34503:62;-1:-1:-1;;;34581:18:1;;;34574:34;34625:19;;82046:91:0::2;34424:226:1::0;82046:91:0::2;82156:70;82172:7:::0;82181:8;82191:6;23702:10;82213:12:::2;;82156:15;:70::i;:::-;82148:117;;;;-1:-1:-1::0;;;82148:117:0::2;;;;;;;:::i;:::-;82278:71;82289:7;82298:8;82308:4;:14;;;82324:10;82336:12;23702:10:::0;;23622:98;82336:12:::2;82278:10;:71::i;:::-;82432:25;::::0;;;:10:::2;:25;::::0;;;;:39;;::::2;::::0;::::2;::::0;:25;:39:::2;::::0;;;::::2;:::i;:::-;::::0;;;-1:-1:-1;;82482:17:0::2;::::0;::::2;:31:::0;;82503:10;;82482:17;::::2;::::0;:31:::2;::::0;82503:10;;-1:-1:-1;;;82482:31:0;::::2;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;82544:10;82524:4;:16;;;:30;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;25833:1;;;21297::::0;22428:7;:22;;;;81229:1333;;;;;;:::o;89502:318::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;89611:31:0;::::1;89603:83;;;::::0;-1:-1:-1;;;89603:83:0;;20847:2:1;89603:83:0::1;::::0;::::1;20829:21:1::0;20886:2;20866:18;;;20859:30;20925:34;20905:18;;;20898:62;-1:-1:-1;;;20976:18:1;;;20969:37;21023:19;;89603:83:0::1;20819:229:1::0;89603:83:0::1;89697:14;::::0;;;:5:::1;:14;::::0;;;;;;;;:28:::1;;:48:::0;;-1:-1:-1;;;;;;89697:48:0::1;-1:-1:-1::0;;;;;89697:48:0;::::1;::::0;;::::1;::::0;;;89761:51;;15260::1;;;89697:14:0;;89761:51:::1;::::0;15233:18:1;89761:51:0::1;15215:102:1::0;64960:187:0;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;65045:15:::1;:34:::0;;;65095:44:::1;::::0;16582:25:1;;;65095:44:0::1;::::0;16570:2:1;16555:18;65095:44:0::1;16537:76:1::0;78715:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78715:41:0;;;;-1:-1:-1;;;;78715:41:0;;;;;;;-1:-1:-1;78715:41:0;;;;;;;;;;-1:-1:-1;;;78715:41:0;;;;;-1:-1:-1;;;78715:41:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;80041:538::-;25538:7;;;;25792:9;25784:38;;;;-1:-1:-1;;;25784:38:0;;;;;;;:::i;:::-;80142:4:::1;::::0;:36:::1;::::0;-1:-1:-1;;;80142:36:0;;::::1;::::0;::::1;16582:25:1::0;;;80124:15:0::1;::::0;-1:-1:-1;;;;;80142:4:0::1;::::0;:24:::1;::::0;16555:18:1;;80142:36:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80124:54:::0;-1:-1:-1;;;;;;80211:23:0;::::1;23702:10:::0;80211:23:::1;::::0;:78:::1;;-1:-1:-1::0;80238:14:0::1;::::0;-1:-1:-1;;;;;80238:14:0::1;:37;23702:10:::0;80238:51:::1;::::0;-1:-1:-1;;;;;;80238:51:0::1;::::0;;;;;;-1:-1:-1;;;;;15278:32:1;;;80238:51:0::1;::::0;::::1;15260::1::0;15233:18;;80238:51:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80189:155;;;;-1:-1:-1::0;;;80189:155:0::1;;;;;;;:::i;:::-;80409:25;::::0;;;:13:::1;:25;::::0;;;;;:30;80401:71:::1;;;::::0;-1:-1:-1;;;80401:71:0;;27549:2:1;80401:71:0::1;::::0;::::1;27531:21:1::0;27588:2;27568:18;;;27561:30;27627;27607:18;;;27600:58;27675:18;;80401:71:0::1;27521:178:1::0;80401:71:0::1;80485:14;80502:32;80514:10;80526:7;80502:11;:32::i;:::-;80552:19;::::0;80485:49;;-1:-1:-1;80485:49:0;;80552:19:::1;::::0;;;::::1;25833:1;;80041:538:::0;:::o;65155:319::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;65251:33:0;::::1;65243:95;;;::::0;-1:-1:-1;;;65243:95:0;;33691:2:1;65243:95:0::1;::::0;::::1;33673:21:1::0;33730:2;33710:18;;;33703:30;33769:34;33749:18;;;33742:62;-1:-1:-1;;;33820:18:1;;;33813:47;33877:19;;65243:95:0::1;33663:239:1::0;65243:95:0::1;65381:15;::::0;65354:64:::1;::::0;-1:-1:-1;;;;;65354:64:0;;::::1;::::0;65381:15:::1;::::0;65354:64:::1;::::0;65381:15:::1;::::0;65354:64:::1;65429:15;:37:::0;;-1:-1:-1;;;;;;65429:37:0::1;-1:-1:-1::0;;;;;65429:37:0;;;::::1;::::0;;;::::1;::::0;;65155:319::o;62224:796::-;18669:13;;;;;;;:48;;18705:12;;;;18704:13;18669:48;;;19472:4;6179:19;:23;18685:16;18661:107;;;;-1:-1:-1;;;18661:107:0;;24775:2:1;18661:107:0;;;24757:21:1;24814:2;24794:18;;;24787:30;24853:34;24833:18;;;24826:62;-1:-1:-1;;;24904:18:1;;;24897:44;24958:19;;18661:107:0;24747:236:1;18661:107:0;18781:19;18804:13;;;;;;18803:14;18828:101;;;;18863:13;:20;;-1:-1:-1;;18898:19:0;;;;;18828:101;62356:24:::1;:22;:24::i;:::-;62391:17;:15;:17::i;:::-;-1:-1:-1::0;;;;;62429:38:0;::::1;62421:95;;;::::0;-1:-1:-1;;;62421:95:0;;26307:2:1;62421:95:0::1;::::0;::::1;26289:21:1::0;26346:2;26326:18;;;26319:30;26385:34;26365:18;;;26358:62;-1:-1:-1;;;26436:18:1;;;26429:42;26488:19;;62421:95:0::1;26279:234:1::0;62421:95:0::1;-1:-1:-1::0;;;;;62535:28:0;::::1;62527:75;;;::::0;-1:-1:-1;;;62527:75:0;;22019:2:1;62527:75:0::1;::::0;::::1;22001:21:1::0;22058:2;22038:18;;;22031:30;22097:34;22077:18;;;22070:62;-1:-1:-1;;;22148:18:1;;;22141:32;22190:19;;62527:75:0::1;21991:224:1::0;62527:75:0::1;-1:-1:-1::0;;;;;62621:30:0;::::1;62613:89;;;::::0;-1:-1:-1;;;62613:89:0;;27134:2:1;62613:89:0::1;::::0;::::1;27116:21:1::0;27173:2;27153:18;;;27146:30;27212:34;27192:18;;;27185:62;-1:-1:-1;;;27263:18:1;;;27256:44;27317:19;;62613:89:0::1;27106:236:1::0;62613:89:0::1;62715:14;:32:::0;;-1:-1:-1;;;;;62715:32:0;;::::1;-1:-1:-1::0;;;;;;62715:32:0;;::::1;;::::0;;;62758:4:::1;:12:::0;;;;::::1;::::0;;::::1;;::::0;;62781:15:::1;:34:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;62884:9:::1;62875:6;:18:::0;62932:8:::1;62904:25;:36:::0;62966:10:::1;62951:12;:25:::0;63005:7:::1;62715:32;62987:25:::0;18955:68;;;;19006:5;18990:21;;-1:-1:-1;;18990:21:0;;;18955:68;62224:796;;;;:::o;63943:299::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;64056:6:::1;64042:10;:20;;64034:87;;;::::0;-1:-1:-1;;;64034:87:0;;24352:2:1;64034:87:0::1;::::0;::::1;24334:21:1::0;24391:2;24371:18;;;24364:30;24430:34;24410:18;;;24403:62;-1:-1:-1;;;24481:18:1;;;24474:52;24543:19;;64034:87:0::1;24324:244:1::0;64034:87:0::1;64132:25;:38:::0;;;64186:48:::1;::::0;16582:25:1;;;64186:48:0::1;::::0;16570:2:1;16555:18;64186:48:0::1;16537:76:1::0;85113:349:0;85211:10;23702;61369:4;;:36;;-1:-1:-1;;;61369:36:0;;;;;16582:25:1;;;-1:-1:-1;;;;;61369:52:0;;;;:4;;;;:24;;16555:18:1;;61369:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;61369:52:0;;:107;;;-1:-1:-1;61425:14:0;;-1:-1:-1;;;;;61425:14:0;:37;23702:10;61425:51;;-1:-1:-1;;;;;;61425:51:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61425:51:0;;;15260::1;15233:18;;61425:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61347:184;;;;-1:-1:-1;;;61347:184:0;;;;;;;:::i;:::-;85238:14:::1;::::0;;;:5:::1;:14;::::0;;;;:21:::1;;::::0;;;::::1;;;:26:::0;85234:221:::1;;85305:1;85281:14:::0;;;:5:::1;:14;::::0;;;;;:21:::1;;:25:::0;;-1:-1:-1;;85281:25:0::1;::::0;;85326:20;85287:7;;85326:20:::1;::::0;::::1;85113:349:::0;;;:::o;85234:221::-:1;85379:14;::::0;;;:5:::1;:14;::::0;;;;;:21:::1;;:25:::0;;-1:-1:-1;;85379:25:0::1;::::0;::::1;::::0;;85424:19;85385:7;;85424:19:::1;::::0;::::1;85234:221;85113:349:::0;;;:::o;90125:276::-;61190:14;;-1:-1:-1;;;;;61190:14:0;:27;23702:10;61190:41;;-1:-1:-1;;;;;;61190:41:0;;;;;;;-1:-1:-1;;;;;15278:32:1;;;61190:41:0;;;15260:51:1;15233:18;;61190:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61182:70;;;;-1:-1:-1;;;61182:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;90222:25:0;::::1;90214:76;;;::::0;-1:-1:-1;;;90214:76:0;;28251:2:1;90214:76:0::1;::::0;::::1;28233:21:1::0;28290:2;28270:18;;;28263:30;28329:34;28309:18;;;28302:62;-1:-1:-1;;;28380:18:1;;;28373:36;28426:19;;90214:76:0::1;28223:228:1::0;90214:76:0::1;90301:14;::::0;;;:5:::1;:14;::::0;;;;;;;;:22:::1;;:36:::0;;-1:-1:-1;;;;;;90301:36:0::1;-1:-1:-1::0;;;;;90301:36:0;::::1;::::0;;::::1;::::0;;;90353:40;;15260:51:1;;;90301:14:0;;90353:40:::1;::::0;15233:18:1;90353:40:0::1;15215:102:1::0;5884:326:0;-1:-1:-1;;;;;6179:19:0;;:23;;;5884:326::o;12902:222::-;13057:58;;;-1:-1:-1;;;;;15894:32:1;;13057:58:0;;;15876:51:1;15943:18;;;;15936:34;;;13057:58:0;;;;;;;;;;15849:18:1;;;;13057:58:0;;;;;;;;-1:-1:-1;;;;;13057:58:0;-1:-1:-1;;;13057:58:0;;;13030:86;;13050:5;;13030:19;:86::i;87600:787::-;87989:18;;87967:19;88018:362;88038:11;88034:1;:15;88018:362;;;88071:297;88105:7;88131:11;88143:1;88131:14;;;;;;-1:-1:-1;;;88131:14:0;;;;;;;;;;;;;;;88164:9;88174:1;88164:12;;;;;;-1:-1:-1;;;88164:12:0;;;;;;;;;;;;;;;88195;88208:1;88195:15;;;;;;-1:-1:-1;;;88195:15:0;;;;;;;;;;;;;;;88229:9;88239:1;88229:12;;;;;;-1:-1:-1;;;88229:12:0;;;;;;;;;;;;;;;88260:17;88278:1;88260:20;;;;;;-1:-1:-1;;;88260:20:0;;;;;;;;;;;;;;;88299:12;88312:1;88299:15;;;;;;-1:-1:-1;;;88299:15:0;;;;;;;;;;;;;;;88333:17;88351:1;88333:20;;;;;;-1:-1:-1;;;88333:20:0;;;;;;;;;;;;;;;88071:15;:297::i;:::-;88051:3;;;:::i;:::-;;;88018:362;;88395:1099;88708:10;-1:-1:-1;;;;;88697:21:0;:8;-1:-1:-1;;;;;88697:21:0;;88689:73;;;;-1:-1:-1;;;88689:73:0;;29819:2:1;88689:73:0;;;29801:21:1;29858:2;29838:18;;;29831:30;29897:34;29877:18;;;29870:62;-1:-1:-1;;;29948:18:1;;;29941:37;29995:19;;88689:73:0;29791:229:1;88689:73:0;88800:1;88781:16;:20;;;88773:48;;;;-1:-1:-1;;;88773:48:0;;20149:2:1;88773:48:0;;;20131:21:1;20188:2;20168:18;;;20161:30;-1:-1:-1;;;20207:18:1;;;20200:45;20262:18;;88773:48:0;20121:165:1;88773:48:0;88851:1;88840:8;:12;;;88832:38;;;;-1:-1:-1;;;88832:38:0;;29477:2:1;88832:38:0;;;29459:21:1;29516:2;29496:18;;;29489:30;-1:-1:-1;;;29535:18:1;;;29528:43;29588:18;;88832:38:0;29449:163:1;88832:38:0;88889:25;88881:54;;;;-1:-1:-1;;;88881:54:0;;27906:2:1;88881:54:0;;;27888:21:1;27945:2;27925:18;;;27918:30;-1:-1:-1;;;27964:18:1;;;27957:46;28020:18;;88881:54:0;27878:166:1;88881:54:0;88960:15;88954:29;88987:2;88954:35;88946:65;;;;-1:-1:-1;;;88946:65:0;;17858:2:1;88946:65:0;;;17840:21:1;17897:2;17877:18;;;17870:30;-1:-1:-1;;;17916:18:1;;;17909:47;17973:18;;88946:65:0;17830:167:1;88946:65:0;89072:15;;;;:6;:15;;;;;;;;89093:325;;;;;;;-1:-1:-1;;;;;89093:325:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89072:347;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;89072:347:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89072:347:0;;;;;;;;;;;;;;-1:-1:-1;;;;89072:347:0;-1:-1:-1;;;89072:347:0;;;;;;;-1:-1:-1;;;;89072:347:0;;;;;-1:-1:-1;;;89072:347:0;;;;;;;;;;;;;;;;;;;;;89093:325;;89072:347;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;89459:15:0;;;;:6;:15;;;;;:22;:26;;89484:1;;89459:26;:::i;:::-;89437:49;;89450:7;;89437:49;;;;;88395:1099;;;;;;;;:::o;63028:170::-;63124:14;;:39;;-1:-1:-1;;;63124:39:0;;63152:10;63124:39;;;15260:51:1;-1:-1:-1;;;;;63124:14:0;;;;:27;;15233:18:1;;63124:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63116:74;;;;-1:-1:-1;;;63116:74:0;;35217:2:1;63116:74:0;;;35199:21:1;35256:2;35236:18;;;35229:30;-1:-1:-1;;;35275:18:1;;;35268:52;35337:18;;63116:74:0;35189:172:1;33902:992:0;31855:66;34356:59;;;34352:535;;;34432:37;34451:17;34432:18;:37::i;34352:535::-;34535:17;-1:-1:-1;;;;;34506:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34506:63:0;;;;;;;;-1:-1:-1;;34506:63:0;;;;;;;;;;;;:::i;:::-;;;34502:306;;34736:56;;-1:-1:-1;;;34736:56:0;;25892:2:1;34736:56:0;;;25874:21:1;25931:2;25911:18;;;25904:30;25970:34;25950:18;;;25943:62;-1:-1:-1;;;26021:18:1;;;26014:44;26075:19;;34736:56:0;25864:236:1;34502:306:0;-1:-1:-1;;;;;;;;;;;34620:28:0;;34612:82;;;;-1:-1:-1;;;34612:82:0;;23942:2:1;34612:82:0;;;23924:21:1;23981:2;23961:18;;;23954:30;24020:34;24000:18;;;23993:62;-1:-1:-1;;;24071:18:1;;;24064:39;24120:19;;34612:82:0;23914:231:1;34612:82:0;34570:140;34822:53;34840:17;34859:4;34865:9;34822:17;:53::i;80587:585::-;80664:7;80684:14;80703:13;;80701:15;;;;;:::i;:::-;;;;;-1:-1:-1;80813:278:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80813:278:0;;;;;;;80896:4;;:37;;-1:-1:-1;;;80896:37:0;;;;;16582:25:1;;;80701:15:0;;-1:-1:-1;80813:278:0;;;;;;80896:4;;;;:25;;16555:18:1;;80896:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;80813:278:0;;;;;80992:4;;:36;;-1:-1:-1;;;80992:36:0;;;;;16582:25:1;;;80813:278:0;;;;;81031:1;;80992:4;;;;;:24;;16555:18:1;;80992:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:40;;;;:::i;:::-;80813:278;;81078:1;80813:278;;;;;;;;;;;;;;80797:13;;;:5;:13;;;;;:294;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80797:294:0;;;-1:-1:-1;;;;;;80797:294:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80813:278;80797:294;;;-1:-1:-1;;80797:294:0;;;80813:278;80797:294;;;;;;;;;;;;;;;81104:25;;;:13;:25;;;;;:34;;;80803:6;-1:-1:-1;80587:585:0;;;;:::o;26526:120::-;25538:7;;;;26062:41;;;;-1:-1:-1;;;26062:41:0;;17509:2:1;26062:41:0;;;17491:21:1;17548:2;17528:18;;;17521:30;-1:-1:-1;;;17567:18:1;;;17560:50;17627:18;;26062:41:0;17481:170:1;26062:41:0;26585:7:::1;:15:::0;;-1:-1:-1;;26585:15:0::1;::::0;;26616:22:::1;23702:10:::0;26625:12:::1;26616:22;::::0;-1:-1:-1;;;;;15278:32:1;;;15260:51;;15248:2;15233:18;26616:22:0::1;;;;;;;26526:120::o:0;874:830::-;999:4;1039;999;1056:525;1080:5;:12;1076:1;:16;1056:525;;;1114:20;1137:5;1143:1;1137:8;;;;;;-1:-1:-1;;;1137:8:0;;;;;;;;;;;;;;;1114:31;;1182:12;1166;:28;1162:408;;1319:44;;;;;;14166:19:1;;;14201:12;;;14194:28;;;14238:12;;1319:44:0;;;;;;;;;;;;1309:55;;;;;;1294:70;;1162:408;;;1509:44;;;;;;14166:19:1;;;14201:12;;;14194:28;;;14238:12;;1509:44:0;;;;;;;;;;;;1499:55;;;;;;1484:70;;1162:408;-1:-1:-1;1094:3:0;;;;:::i;:::-;;;;1056:525;;;-1:-1:-1;1676:20:0;;;-1:-1:-1;874:830:0;;;;;;:::o;26267:118::-;25538:7;;;;25792:9;25784:38;;;;-1:-1:-1;;;25784:38:0;;;;;;;:::i;:::-;26327:7:::1;:14:::0;;-1:-1:-1;;26327:14:0::1;26337:4;26327:14;::::0;;26357:20:::1;26364:12;23702:10:::0;;23622:98;85912:999;86119:1;86106:10;:14;;;86098:47;;;;-1:-1:-1;;;86098:47:0;;25543:2:1;86098:47:0;;;25525:21:1;25582:2;25562:18;;;25555:30;-1:-1:-1;;;25601:18:1;;;25594:50;25661:18;;86098:47:0;25515:170:1;86098:47:0;86158:15;86176:14;;;:5;:14;;;;;:22;;;;86257:26;;;;86227:27;;;;;-1:-1:-1;;;;;86176:22:0;;;;86158:15;86227:56;;86257:26;;;;;86227:56;:::i;:::-;86209:74;;86301:9;86296:508;86316:10;86312:14;;:1;:14;86296:508;;;86348:15;86366:62;86399:7;86408:10;86420:7;86366:32;:62::i;:::-;86542:4;;:51;;-1:-1:-1;;;86542:51:0;;-1:-1:-1;;;;;15580:15:1;;;86542:51:0;;;15562:34:1;15632:15;;;15612:18;;;15605:43;15664:18;;;15657:34;;;86348:80:0;;-1:-1:-1;86542:4:0;;;:21;;15497:18:1;;86542:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86615:52:0;;-1:-1:-1;;;;;15278:32:1;;15260:51;;86647:7:0;;-1:-1:-1;86637:8:0;;-1:-1:-1;86628:7:0;;86615:52;;15248:2:1;15233:18;86615:52:0;;;;;;;86782:9;-1:-1:-1;86328:3:0;;;:::i;:::-;;;86296:508;;;-1:-1:-1;86831:14:0;;;;:5;:14;;;;;:28;;;86814:89;;-1:-1:-1;;;;;86831:28:0;86861:41;86837:7;86861:32;:41::i;:::-;86814:16;:89::i;:::-;85912:999;;;;;;;:::o;21383:113::-;19272:13;;;;;;;19264:69;;;;-1:-1:-1;;;19264:69:0;;;;;;;:::i;:::-;21454:34:::1;:32;:34::i;25163:99::-:0;19272:13;;;;;;;19264:69;;;;-1:-1:-1;;;19264:69:0;;;;;;;:::i;:::-;25227:27:::1;:25;:27::i;15530:727::-:0;15965:23;15991:69;16019:4;15991:69;;;;;;;;;;;;;;;;;15999:5;-1:-1:-1;;;;;15991:27:0;;;:69;;;;;:::i;:::-;16075:17;;15965:95;;-1:-1:-1;16075:21:0;16071:179;;16172:10;16161:30;;;;;;;;;;;;:::i;:::-;16153:85;;;;-1:-1:-1;;;16153:85:0;;33280:2:1;16153:85:0;;;33262:21:1;33319:2;33299:18;;;33292:30;33358:34;33338:18;;;33331:62;-1:-1:-1;;;33409:18:1;;;33402:40;33459:19;;16153:85:0;33252:232:1;32733:284:0;-1:-1:-1;;;;;6179:19:0;;;32807:106;;;;-1:-1:-1;;;32807:106:0;;26720:2:1;32807:106:0;;;26702:21:1;26759:2;26739:18;;;26732:30;26798:34;26778:18;;;26771:62;-1:-1:-1;;;26849:18:1;;;26842:43;26902:19;;32807:106:0;26692:235:1;32807:106:0;-1:-1:-1;;;;;;;;;;;32924:85:0;;-1:-1:-1;;;;;;32924:85:0;-1:-1:-1;;;;;32924:85:0;;;;;;;;;;32733:284::o;33426:297::-;33569:29;33580:17;33569:10;:29::i;:::-;33627:1;33613:4;:11;:15;:28;;;;33632:9;33613:28;33609:107;;;33658:46;33680:17;33699:4;33658:21;:46::i;87211:381::-;87331:16;87383:8;87360:180;87404:10;87393:7;:21;87360:180;;87446:4;;:21;;-1:-1:-1;;;87446:21:0;;;;;16582:25:1;;;-1:-1:-1;;;;;87446:32:0;;;;:4;;:12;;16555:18:1;;87446:21:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;87446:32:0;;87442:87;;;87506:7;-1:-1:-1;87499:14:0;;87442:87;87416:9;;;:::i;:::-;;;87360:180;;;-1:-1:-1;87550:34:0;;-1:-1:-1;;;87550:34:0;;25190:2:1;87550:34:0;;;25172:21:1;25229:2;25209:18;;;25202:30;25268:26;25248:18;;;25241:54;25312:18;;87550:34:0;25162:174:1;86919:284:0;87001:7;87025:36;;;:27;:36;;;;;:43;;;87021:132;;;-1:-1:-1;87092:36:0;;;;:27;:36;;;;;:49;;;;86919:284::o;87021:132::-;-1:-1:-1;;87170:25:0;;;86919:284::o;65780:508::-;65936:6;;65879:20;;65902:31;65914:19;65902:9;:31;:::i;:::-;:40;;;;:::i;:::-;65879:63;-1:-1:-1;65957:16:0;;65953:197;;66020:15;;:46;;65991:24;;-1:-1:-1;;;;;66020:15:0;;66049:12;;65991:24;66020:46;65991:24;66020:46;66049:12;66020:15;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65990:76;;;66089:19;66081:57;;;;-1:-1:-1;;;66081:57:0;;20493:2:1;66081:57:0;;;20475:21:1;20532:2;20512:18;;;20505:30;20571:27;20551:18;;;20544:55;20616:18;;66081:57:0;20465:175:1;66081:57:0;65953:197;;66161:12;-1:-1:-1;;;;;66178:19:0;;66206:24;66218:12;66206:9;:24;:::i;:::-;66178:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66160:75;;;66254:7;66246:34;;;;-1:-1:-1;;;66246:34:0;;23599:2:1;66246:34:0;;;23581:21:1;23638:2;23618:18;;;23611:30;-1:-1:-1;;;23657:18:1;;;23650:44;23711:18;;66246:34:0;23571:164:1;21504:111:0;19272:13;;;;;;;19264:69;;;;-1:-1:-1;;;19264:69:0;;;;;;;:::i;:::-;21297:1:::1;21585:22:::0;;21504:111::o;25270:97::-;19272:13;;;;;;;19264:69;;;;-1:-1:-1;;;19264:69:0;;;;;;;:::i;:::-;25344:7:::1;:15:::0;;-1:-1:-1;;25344:15:0::1;::::0;;25270:97::o;8629:229::-;8766:12;8798:52;8820:6;8828:4;8834:1;8837:12;8798:21;:52::i;:::-;8791:59;8629:229;-1:-1:-1;;;;8629:229:0:o;33130:155::-;33197:37;33216:17;33197:18;:37::i;:::-;33250:27;;-1:-1:-1;;;;;33250:27:0;;;;;;;;33130:155;:::o;38163:461::-;38246:12;-1:-1:-1;;;;;6179:19:0;;;38271:88;;;;-1:-1:-1;;;38271:88:0;;28658:2:1;38271:88:0;;;28640:21:1;28697:2;28677:18;;;28670:30;28736:34;28716:18;;;28709:62;-1:-1:-1;;;28787:18:1;;;28780:36;28833:19;;38271:88:0;28630:228:1;38271:88:0;38433:12;38447:23;38474:6;-1:-1:-1;;;;;38474:19:0;38494:4;38474:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38432:67;;;;38517:99;38553:7;38562:10;38517:99;;;;;;;;;;;;;;;;;:35;:99::i;:::-;38510:106;38163:461;-1:-1:-1;;;;;38163:461:0:o;9749:510::-;9919:12;9977:5;9952:21;:30;;9944:81;;;;-1:-1:-1;;;9944:81:0;;22422:2:1;9944:81:0;;;22404:21:1;22461:2;22441:18;;;22434:30;22500:34;22480:18;;;22473:62;-1:-1:-1;;;22551:18:1;;;22544:36;22597:19;;9944:81:0;22394:228:1;9944:81:0;-1:-1:-1;;;;;6179:19:0;;;10036:60;;;;-1:-1:-1;;;10036:60:0;;30636:2:1;10036:60:0;;;30618:21:1;30675:2;30655:18;;;30648:30;30714:31;30694:18;;;30687:59;30763:18;;10036:60:0;30608:179:1;10036:60:0;10110:12;10124:23;10151:6;-1:-1:-1;;;;;10151:11:0;10170:5;10177:4;10151:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10109:73;;;;10200:51;10217:7;10226:10;10238:12;11458:712;11608:12;11637:7;11633:530;;;-1:-1:-1;11668:10:0;11661:17;;11633:530;11782:17;;:21;11778:374;;11980:10;11974:17;12041:15;12028:10;12024:2;12020:19;12013:44;11928:148;12123:12;12116:20;;-1:-1:-1;;;12116:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:406:1;78:5;112:18;104:6;101:30;98:2;;;134:18;;:::i;:::-;172:57;217:2;196:15;;-1:-1:-1;;192:29:1;223:4;188:40;172:57;:::i;:::-;163:66;;252:6;245:5;238:21;292:3;283:6;278:3;274:16;271:25;268:2;;;309:1;306;299:12;268:2;358:6;353:3;346:4;339:5;335:16;322:43;412:1;405:4;396:6;389:5;385:18;381:29;374:40;88:332;;;;;:::o;425:395::-;488:8;498:6;552:3;545:4;537:6;533:17;529:27;519:2;;577:8;567;560:26;519:2;-1:-1:-1;607:20:1;;650:18;639:30;;636:2;;;689:8;679;672:26;636:2;733:4;725:6;721:17;709:29;;793:3;786:4;776:6;773:1;769:14;761:6;757:27;753:38;750:47;747:2;;;810:1;807;800:12;747:2;509:311;;;;;:::o;825:693::-;879:5;932:3;925:4;917:6;913:17;909:27;899:2;;954:5;947;940:20;899:2;994:6;981:20;1020:4;1044:60;1060:43;1100:2;1060:43;:::i;:::-;1044:60;:::i;:::-;1126:3;1150:2;1145:3;1138:15;1178:2;1173:3;1169:12;1162:19;;1213:2;1205:6;1201:15;1265:3;1260:2;1254;1251:1;1247:10;1239:6;1235:23;1231:32;1228:41;1225:2;;;1286:5;1279;1272:20;1225:2;1312:5;1326:163;1340:2;1337:1;1334:9;1326:163;;;1397:17;;1385:30;;1435:12;;;;1467;;;;1358:1;1351:9;1326:163;;;-1:-1:-1;1507:5:1;;889:629;-1:-1:-1;;;;;;;889:629:1:o;1523:995::-;1576:5;1629:3;1622:4;1614:6;1610:17;1606:27;1596:2;;1651:5;1644;1637:20;1596:2;1691:6;1678:20;1717:4;1741:60;1757:43;1797:2;1757:43;:::i;1741:60::-;1823:3;1847:2;1842:3;1835:15;1875:2;1870:3;1866:12;1859:19;;1910:2;1902:6;1898:15;1962:3;1957:2;1951;1948:1;1944:10;1936:6;1932:23;1928:32;1925:41;1922:2;;;1983:5;1976;1969:20;1922:2;2009:5;2023:466;2037:2;2034:1;2031:9;2023:466;;;2114:3;2101:17;2150:18;2137:11;2134:35;2131:2;;;2186:5;2179;2172:20;2131:2;2217:24;;2276:2;2268:11;;2264:21;-1:-1:-1;2254:2:1;;2303:5;2296;2289:20;2254:2;2336:78;2410:3;2404:2;2400;2396:11;2383:25;2378:2;2374;2370:11;2336:78;:::i;:::-;2324:91;;-1:-1:-1;2435:12:1;;;;2467;;;;2055:1;2048:9;2023:466;;2523:699;2577:5;2630:3;2623:4;2615:6;2611:17;2607:27;2597:2;;2652:5;2645;2638:20;2597:2;2692:6;2679:20;2718:4;2742:60;2758:43;2798:2;2758:43;:::i;2742:60::-;2824:3;2848:2;2843:3;2836:15;2876:2;2871:3;2867:12;2860:19;;2911:2;2903:6;2899:15;2963:3;2958:2;2952;2949:1;2945:10;2937:6;2933:23;2929:32;2926:41;2923:2;;;2984:5;2977;2970:20;2923:2;3010:5;3024:169;3038:2;3035:1;3032:9;3024:169;;;3095:23;3114:3;3095:23;:::i;:::-;3083:36;;3139:12;;;;3171;;;;3056:1;3049:9;3024:169;;3227:697;3280:5;3333:3;3326:4;3318:6;3314:17;3310:27;3300:2;;3355:5;3348;3341:20;3300:2;3395:6;3382:20;3421:4;3445:60;3461:43;3501:2;3461:43;:::i;3445:60::-;3527:3;3551:2;3546:3;3539:15;3579:2;3574:3;3570:12;3563:19;;3614:2;3606:6;3602:15;3666:3;3661:2;3655;3652:1;3648:10;3640:6;3636:23;3632:32;3629:41;3626:2;;;3687:5;3680;3673:20;3626:2;3713:5;3727:168;3741:2;3738:1;3735:9;3727:168;;;3798:22;3816:3;3798:22;:::i;:::-;3786:35;;3841:12;;;;3873;;;;3759:1;3752:9;3727:168;;3929:188;3997:20;;-1:-1:-1;;;;;4046:46:1;;4036:57;;4026:2;;4107:1;4104;4097:12;4026:2;3978:139;;;:::o;4122:159::-;4189:20;;4249:6;4238:18;;4228:29;;4218:2;;4271:1;4268;4261:12;4286:257;4345:6;4398:2;4386:9;4377:7;4373:23;4369:32;4366:2;;;4419:6;4411;4404:22;4366:2;4463:9;4450:23;4482:31;4507:5;4482:31;:::i;4548:261::-;4618:6;4671:2;4659:9;4650:7;4646:23;4642:32;4639:2;;;4692:6;4684;4677:22;4639:2;4729:9;4723:16;4748:31;4773:5;4748:31;:::i;4814:333::-;4890:6;4898;4951:2;4939:9;4930:7;4926:23;4922:32;4919:2;;;4972:6;4964;4957:22;4919:2;5016:9;5003:23;5035:31;5060:5;5035:31;:::i;:::-;5085:5;5137:2;5122:18;;;;5109:32;;-1:-1:-1;;;4909:238:1:o;5152:466::-;5229:6;5237;5245;5298:2;5286:9;5277:7;5273:23;5269:32;5266:2;;;5319:6;5311;5304:22;5266:2;5363:9;5350:23;5382:31;5407:5;5382:31;:::i;:::-;5432:5;-1:-1:-1;5489:2:1;5474:18;;5461:32;5502:33;5461:32;5502:33;:::i;:::-;5256:362;;5554:7;;-1:-1:-1;;;5608:2:1;5593:18;;;;5580:32;;5256:362::o;5623:614::-;5700:6;5708;5761:2;5749:9;5740:7;5736:23;5732:32;5729:2;;;5782:6;5774;5767:22;5729:2;5826:9;5813:23;5845:31;5870:5;5845:31;:::i;:::-;5895:5;-1:-1:-1;5951:2:1;5936:18;;5923:32;5978:18;5967:30;;5964:2;;;6015:6;6007;6000:22;5964:2;6043:22;;6096:4;6088:13;;6084:27;-1:-1:-1;6074:2:1;;6130:6;6122;6115:22;6074:2;6158:73;6223:7;6218:2;6205:16;6200:2;6196;6192:11;6158:73;:::i;:::-;6148:83;;;5719:518;;;;;:::o;6242:255::-;6309:6;6362:2;6350:9;6341:7;6337:23;6333:32;6330:2;;;6383:6;6375;6368:22;6330:2;6420:9;6414:16;6439:28;6461:5;6439:28;:::i;6502:190::-;6561:6;6614:2;6602:9;6593:7;6589:23;6585:32;6582:2;;;6635:6;6627;6620:22;6582:2;-1:-1:-1;6663:23:1;;6572:120;-1:-1:-1;6572:120:1:o;6697:194::-;6767:6;6820:2;6808:9;6799:7;6795:23;6791:32;6788:2;;;6841:6;6833;6826:22;6788:2;-1:-1:-1;6869:16:1;;6778:113;-1:-1:-1;6778:113:1:o;7190:587::-;7315:6;7323;7331;7384:2;7372:9;7363:7;7359:23;7355:32;7352:2;;;7405:6;7397;7390:22;7352:2;7449:9;7436:23;7468:31;7493:5;7468:31;:::i;:::-;7518:5;-1:-1:-1;7575:2:1;7560:18;;7547:32;7588:33;7547:32;7588:33;:::i;:::-;7640:7;-1:-1:-1;7699:2:1;7684:18;;7671:32;7712:33;7671:32;7712:33;:::i;:::-;7764:7;7754:17;;;7342:435;;;;;:::o;8176:325::-;8244:6;8252;8305:2;8293:9;8284:7;8280:23;8276:32;8273:2;;;8326:6;8318;8311:22;8273:2;8367:9;8354:23;8344:33;;8427:2;8416:9;8412:18;8399:32;8440:31;8465:5;8440:31;:::i;:::-;8490:5;8480:15;;;8263:238;;;;;:::o;8506:1883::-;8811:6;8819;8827;8835;8843;8851;8859;8867;8920:3;8908:9;8899:7;8895:23;8891:33;8888:2;;;8942:6;8934;8927:22;8888:2;8983:9;8970:23;8960:33;;9044:2;9033:9;9029:18;9016:32;9067:18;9108:2;9100:6;9097:14;9094:2;;;9129:6;9121;9114:22;9094:2;9157:61;9210:7;9201:6;9190:9;9186:22;9157:61;:::i;:::-;9147:71;;9271:2;9260:9;9256:18;9243:32;9227:48;;9300:2;9290:8;9287:16;9284:2;;;9321:6;9313;9306:22;9284:2;9349:63;9404:7;9393:8;9382:9;9378:24;9349:63;:::i;:::-;9339:73;;9465:2;9454:9;9450:18;9437:32;9421:48;;9494:2;9484:8;9481:16;9478:2;;;9515:6;9507;9500:22;9478:2;9543:63;9598:7;9587:8;9576:9;9572:24;9543:63;:::i;:::-;9533:73;;9659:3;9648:9;9644:19;9631:33;9615:49;;9689:2;9679:8;9676:16;9673:2;;;9710:6;9702;9695:22;9673:2;9738:62;9792:7;9781:8;9770:9;9766:24;9738:62;:::i;:::-;9728:72;;9853:3;9842:9;9838:19;9825:33;9809:49;;9883:2;9873:8;9870:16;9867:2;;;9904:6;9896;9889:22;9867:2;9932:62;9986:7;9975:8;9964:9;9960:24;9932:62;:::i;:::-;9922:72;;10047:3;10036:9;10032:19;10019:33;10003:49;;10077:2;10067:8;10064:16;10061:2;;;10098:6;10090;10083:22;10061:2;10126:63;10181:7;10170:8;10159:9;10155:24;10126:63;:::i;:::-;10116:73;;10242:3;10231:9;10227:19;10214:33;10198:49;;10272:2;10262:8;10259:16;10256:2;;;10293:6;10285;10278:22;10256:2;;10321:62;10375:7;10364:8;10353:9;10349:24;10321:62;:::i;:::-;10311:72;;;8878:1511;;;;;;;;;;;:::o;10394:387::-;10468:6;10476;10484;10537:2;10525:9;10516:7;10512:23;10508:32;10505:2;;;10558:6;10550;10543:22;10505:2;10599:9;10586:23;10576:33;;10659:2;10648:9;10644:18;10631:32;10672:28;10694:5;10672:28;:::i;10786:1149::-;10918:6;10926;10934;10942;10950;10958;10966;10974;10982;11035:3;11023:9;11014:7;11010:23;11006:33;11003:2;;;11057:6;11049;11042:22;11003:2;11098:9;11085:23;11075:33;;11127:38;11161:2;11150:9;11146:18;11127:38;:::i;:::-;11117:48;;11184:38;11218:2;11207:9;11203:18;11184:38;:::i;:::-;11174:48;;11241:38;11275:2;11264:9;11260:18;11241:38;:::i;:::-;11231:48;;11298:38;11331:3;11320:9;11316:19;11298:38;:::i;:::-;11288:48;;11355:38;11388:3;11377:9;11373:19;11355:38;:::i;:::-;11345:48;;11440:3;11429:9;11425:19;11412:33;11402:43;;11496:3;11485:9;11481:19;11468:33;11520:18;11561:2;11553:6;11550:14;11547:2;;;11582:6;11574;11567:22;11547:2;11625:6;11614:9;11610:22;11600:32;;11670:7;11663:4;11659:2;11655:13;11651:27;11641:2;;11697:6;11689;11682:22;11641:2;11742;11729:16;11768:2;11760:6;11757:14;11754:2;;;11789:6;11781;11774:22;11754:2;11839:7;11834:2;11825:6;11821:2;11817:15;11813:24;11810:37;11807:2;;;11865:6;11857;11850:22;11807:2;11901;11897;11893:11;11883:21;;11923:6;11913:16;;;;;10993:942;;;;;;;;;;;:::o;11940:258::-;12008:6;12016;12069:2;12057:9;12048:7;12044:23;12040:32;12037:2;;;12090:6;12082;12075:22;12037:2;-1:-1:-1;;12118:23:1;;;12188:2;12173:18;;;12160:32;;-1:-1:-1;12027:171:1:o;12203:735::-;12324:6;12332;12340;12348;12356;12364;12417:3;12405:9;12396:7;12392:23;12388:33;12385:2;;;12439:6;12431;12424:22;12385:2;12480:9;12467:23;12457:33;;12537:2;12526:9;12522:18;12509:32;12499:42;;12560:37;12593:2;12582:9;12578:18;12560:37;:::i;:::-;12550:47;;12644:2;12633:9;12629:18;12616:32;12606:42;;12699:3;12688:9;12684:19;12671:33;12727:18;12719:6;12716:30;12713:2;;;12764:6;12756;12749:22;12713:2;12808:70;12870:7;12861:6;12850:9;12846:22;12808:70;:::i;:::-;12375:563;;;;-1:-1:-1;12375:563:1;;-1:-1:-1;12375:563:1;;12897:8;;12375:563;-1:-1:-1;;;12375:563:1:o;12943:798::-;13065:6;13073;13081;13089;13097;13105;13158:3;13146:9;13137:7;13133:23;13129:33;13126:2;;;13180:6;13172;13165:22;13126:2;13221:9;13208:23;13198:33;;13278:2;13267:9;13263:18;13250:32;13240:42;;13329:2;13318:9;13314:18;13301:32;13291:42;;13383:2;13372:9;13368:18;13355:32;13396:31;13421:5;13396:31;:::i;:::-;13446:5;-1:-1:-1;13502:3:1;13487:19;;13474:33;13530:18;13519:30;;13516:2;;;13567:6;13559;13552:22;13746:258;13788:3;13826:5;13820:12;13853:6;13848:3;13841:19;13869:63;13925:6;13918:4;13913:3;13909:14;13902:4;13895:5;13891:16;13869:63;:::i;:::-;13986:2;13965:15;-1:-1:-1;;13961:29:1;13952:39;;;;13993:4;13948:50;;13796:208;-1:-1:-1;;13796:208:1:o;14261:274::-;14390:3;14428:6;14422:13;14444:53;14490:6;14485:3;14478:4;14470:6;14466:17;14444:53;:::i;:::-;14513:16;;;;;14398:137;-1:-1:-1;;14398:137:1:o;17082:220::-;17231:2;17220:9;17213:21;17194:4;17251:45;17292:2;17281:9;17277:18;17269:6;17251:45;:::i;18774:398::-;18976:2;18958:21;;;19015:2;18995:18;;;18988:30;19054:34;19049:2;19034:18;;19027:62;-1:-1:-1;;;19120:2:1;19105:18;;19098:32;19162:3;19147:19;;18948:224::o;19177:408::-;19379:2;19361:21;;;19418:2;19398:18;;;19391:30;19457:34;19452:2;19437:18;;19430:62;-1:-1:-1;;;19523:2:1;19508:18;;19501:42;19575:3;19560:19;;19351:234::o;21404:408::-;21606:2;21588:21;;;21645:2;21625:18;;;21618:30;21684:34;21679:2;21664:18;;21657:62;-1:-1:-1;;;21750:2:1;21735:18;;21728:42;21802:3;21787:19;;21578:234::o;23052:340::-;23254:2;23236:21;;;23293:2;23273:18;;;23266:30;-1:-1:-1;;;23327:2:1;23312:18;;23305:46;23383:2;23368:18;;23226:166::o;30792:351::-;30994:2;30976:21;;;31033:2;31013:18;;;31006:30;31072:29;31067:2;31052:18;;31045:57;31134:2;31119:18;;30966:177::o;31148:407::-;31350:2;31332:21;;;31389:2;31369:18;;;31362:30;31428:34;31423:2;31408:18;;31401:62;-1:-1:-1;;;31494:2:1;31479:18;;31472:41;31545:3;31530:19;;31322:233::o;31560:414::-;31762:2;31744:21;;;31801:2;31781:18;;;31774:30;31840:34;31835:2;31820:18;;31813:62;-1:-1:-1;;;31906:2:1;31891:18;;31884:48;31964:3;31949:19;;31734:240::o;31979:340::-;32181:2;32163:21;;;32220:2;32200:18;;;32193:30;-1:-1:-1;;;32254:2:1;32239:18;;32232:46;32310:2;32295:18;;32153:166::o;32324:398::-;32526:2;32508:21;;;32565:2;32545:18;;;32538:30;32604:34;32599:2;32584:18;;32577:62;-1:-1:-1;;;32670:2:1;32655:18;;32648:32;32712:3;32697:19;;32498:224::o;36076:869::-;-1:-1:-1;;;;;36490:15:1;;;36472:34;;36542:15;;;36537:2;36522:18;;36515:43;36594:15;;36589:2;36574:18;;36567:43;36629:6;36671:15;;;36666:2;36651:18;;36644:43;36724:15;;;36718:3;36703:19;;36696:44;36777:15;;36771:3;36756:19;;36749:44;36824:3;36809:19;;36802:35;;;36407:3;36868;36853:19;;36846:31;;;36378:4;;36894:45;36920:18;;;36912:6;36894:45;:::i;:::-;36886:53;36387:558;-1:-1:-1;;;;;;;;;;;36387:558:1:o;38168:275::-;38239:2;38233:9;38304:2;38285:13;;-1:-1:-1;;38281:27:1;38269:40;;38339:18;38324:34;;38360:22;;;38321:62;38318:2;;;38386:18;;:::i;:::-;38422:2;38415:22;38213:230;;-1:-1:-1;38213:230:1:o;38448:183::-;38508:4;38541:18;38533:6;38530:30;38527:2;;;38563:18;;:::i;:::-;-1:-1:-1;38608:1:1;38604:14;38620:4;38600:25;;38517:114::o;38636:224::-;38675:3;38703:6;38736:2;38733:1;38729:10;38766:2;38763:1;38759:10;38797:3;38793:2;38789:12;38784:3;38781:21;38778:2;;;38805:18;;:::i;:::-;38841:13;;38683:177;-1:-1:-1;;;;38683:177:1:o;38865:128::-;38905:3;38936:1;38932:6;38929:1;38926:13;38923:2;;;38942:18;;:::i;:::-;-1:-1:-1;38978:9:1;;38913:80::o;38998:217::-;39038:1;39064;39054:2;;-1:-1:-1;;;39089:31:1;;39143:4;39140:1;39133:15;39171:4;39096:1;39161:15;39054:2;-1:-1:-1;39200:9:1;;39044:171::o;39220:287::-;39260:7;-1:-1:-1;;;;;39353:2:1;39350:1;39346:10;39383:2;39380:1;39376:10;39439:3;39435:2;39431:12;39426:3;39423:21;39416:3;39409:11;39402:19;39398:47;39395:2;;;39448:18;;:::i;:::-;39488:13;;39272:235;-1:-1:-1;;;;39272:235:1:o;39512:168::-;39552:7;39618:1;39614;39610:6;39606:14;39603:1;39600:21;39595:1;39588:9;39581:17;39577:45;39574:2;;;39625:18;;:::i;:::-;-1:-1:-1;39665:9:1;;39564:116::o;39685:125::-;39725:4;39753:1;39750;39747:8;39744:2;;;39758:18;;:::i;:::-;-1:-1:-1;39795:9:1;;39734:76::o;39815:258::-;39887:1;39897:113;39911:6;39908:1;39905:13;39897:113;;;39987:11;;;39981:18;39968:11;;;39961:39;39933:2;39926:10;39897:113;;;40028:6;40025:1;40022:13;40019:2;;;-1:-1:-1;;40063:1:1;40045:16;;40038:27;39868:205::o;40078:136::-;40117:3;40145:5;40135:2;;40154:18;;:::i;:::-;-1:-1:-1;;;40190:18:1;;40125:89::o;40219:380::-;40298:1;40294:12;;;;40341;;;40362:2;;40416:4;40408:6;40404:17;40394:27;;40362:2;40469;40461:6;40458:14;40438:18;40435:38;40432:2;;;40515:10;40510:3;40506:20;40503:1;40496:31;40550:4;40547:1;40540:15;40578:4;40575:1;40568:15;40432:2;;40274:325;;;:::o;40604:135::-;40643:3;-1:-1:-1;;40664:17:1;;40661:2;;;40684:18;;:::i;:::-;-1:-1:-1;40731:1:1;40720:13;;40651:88::o;40744:127::-;40805:10;40800:3;40796:20;40793:1;40786:31;40836:4;40833:1;40826:15;40860:4;40857:1;40850:15;40876:127;40937:10;40932:3;40928:20;40925:1;40918:31;40968:4;40965:1;40958:15;40992:4;40989:1;40982:15;41008:131;-1:-1:-1;;;;;41083:31:1;;41073:42;;41063:2;;41129:1;41126;41119:12;41144:118;41230:5;41223:13;41216:21;41209:5;41206:32;41196:2;;41252:1;41249;41242:12

Swarm Source

ipfs://d34cc7d52499cf6c2759903a9b1ae29af38d9194bdd056f2204a396690a484de

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.