Contract 0x00005ea00ac477b1030ce78506496e8c2de24bf5 9

 

Txn Hash Method
Block
From
To
Value [Txn Fee]
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x4f5f4f1f46fbde6a1e74fb0e0d1cd5114182c35613e56c620a0ee964ba795d6a400311992022-11-21 19:03:1969 days 7 hrs ago 0x0000000000ffe8b47b3e2130213b802212439497  Contract Creation0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SeaDrop

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 2 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 3 of 15 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 4 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree 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.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
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) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 5 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 6 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 7 of 15 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 8 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Gas optimized reentrancy protection for smart contracts.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/ReentrancyGuard.sol)
/// @author Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/ReentrancyGuard.sol)
abstract contract ReentrancyGuard {
    uint256 private locked = 1;

    modifier nonReentrant() virtual {
        require(locked == 1, "REENTRANCY");

        locked = 2;

        _;

        locked = 1;
    }
}

File 9 of 15 : SafeTransferLib.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {ERC20} from "../tokens/ERC20.sol";

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    /*//////////////////////////////////////////////////////////////
                             ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*//////////////////////////////////////////////////////////////
                            ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}

File 10 of 15 : SeaDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import { ISeaDrop } from "./interfaces/ISeaDrop.sol";

import {
    INonFungibleSeaDropToken
} from "./interfaces/INonFungibleSeaDropToken.sol";

import {
    AllowListData,
    MintParams,
    PublicDrop,
    TokenGatedDropStage,
    TokenGatedMintParams,
    SignedMintValidationParams
} from "./lib/SeaDropStructs.sol";

import { SafeTransferLib } from "solmate/utils/SafeTransferLib.sol";

import { ReentrancyGuard } from "solmate/utils/ReentrancyGuard.sol";

import {
    IERC721
} from "openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";

import {
    IERC165
} from "openzeppelin-contracts/contracts/utils/introspection/IERC165.sol";

import {
    ECDSA
} from "openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol";

import {
    MerkleProof
} from "openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol";

/**
 * @title  SeaDrop
 * @author James Wenzel (emo.eth)
 * @author Ryan Ghods (ralxz.eth)
 * @author Stephan Min (stephanm.eth)
 * @notice SeaDrop is a contract to help facilitate ERC721 token drops
 *         with functionality for public, allow list, server-side signed,
 *         and token-gated drops.
 */
contract SeaDrop is ISeaDrop, ReentrancyGuard {
    using ECDSA for bytes32;

    /// @notice Track the public drops.
    mapping(address => PublicDrop) private _publicDrops;

    /// @notice Track the creator payout addresses.
    mapping(address => address) private _creatorPayoutAddresses;

    /// @notice Track the allow list merkle roots.
    mapping(address => bytes32) private _allowListMerkleRoots;

    /// @notice Track the allowed fee recipients.
    mapping(address => mapping(address => bool)) private _allowedFeeRecipients;

    /// @notice Track the enumerated allowed fee recipients.
    mapping(address => address[]) private _enumeratedFeeRecipients;

    /// @notice Track the parameters for allowed signers for server-side drops.
    mapping(address => mapping(address => SignedMintValidationParams))
        private _signedMintValidationParams;

    /// @notice Track the signers for each server-side drop.
    mapping(address => address[]) private _enumeratedSigners;

    /// @notice Track the used signature digests.
    mapping(bytes32 => bool) private _usedDigests;

    /// @notice Track the allowed payers.
    mapping(address => mapping(address => bool)) private _allowedPayers;

    /// @notice Track the enumerated allowed payers.
    mapping(address => address[]) private _enumeratedPayers;

    /// @notice Track the token gated drop stages.
    mapping(address => mapping(address => TokenGatedDropStage))
        private _tokenGatedDrops;

    /// @notice Track the tokens for token gated drops.
    mapping(address => address[]) private _enumeratedTokenGatedTokens;

    /// @notice Track the redeemed token IDs for token gated drop stages.
    mapping(address => mapping(address => mapping(uint256 => bool)))
        private _tokenGatedRedeemed;

    /// @notice Internal constants for EIP-712: Typed structured
    ///         data hashing and signing
    bytes32 internal constant _SIGNED_MINT_TYPEHASH =
        // prettier-ignore
        keccak256(
             "SignedMint("
                "address nftContract,"
                "address minter,"
                "address feeRecipient,"
                "MintParams mintParams,"
                "uint256 salt"
            ")"
            "MintParams("
                "uint256 mintPrice,"
                "uint256 maxTotalMintableByWallet,"
                "uint256 startTime,"
                "uint256 endTime,"
                "uint256 dropStageIndex,"
                "uint256 maxTokenSupplyForStage,"
                "uint256 feeBps,"
                "bool restrictFeeRecipients"
            ")"
        );
    bytes32 internal constant _MINT_PARAMS_TYPEHASH =
        // prettier-ignore
        keccak256(
            "MintParams("
                "uint256 mintPrice,"
                "uint256 maxTotalMintableByWallet,"
                "uint256 startTime,"
                "uint256 endTime,"
                "uint256 dropStageIndex,"
                "uint256 maxTokenSupplyForStage,"
                "uint256 feeBps,"
                "bool restrictFeeRecipients"
            ")"
        );
    bytes32 internal constant _EIP_712_DOMAIN_TYPEHASH =
        // prettier-ignore
        keccak256(
            "EIP712Domain("
                "string name,"
                "string version,"
                "uint256 chainId,"
                "address verifyingContract"
            ")"
        );
    bytes32 internal constant _NAME_HASH = keccak256("SeaDrop");
    bytes32 internal constant _VERSION_HASH = keccak256("1.0");
    uint256 internal immutable _CHAIN_ID = block.chainid;
    bytes32 internal immutable _DOMAIN_SEPARATOR;

    /// @notice Constant for an unlimited `maxTokenSupplyForStage`.
    ///         Used in `mintPublic` where no `maxTokenSupplyForStage`
    ///         is stored in the `PublicDrop` struct.
    uint256 internal constant _UNLIMITED_MAX_TOKEN_SUPPLY_FOR_STAGE =
        type(uint256).max;

    /// @notice Constant for a public mint's `dropStageIndex`.
    ///         Used in `mintPublic` where no `dropStageIndex`
    ///         is stored in the `PublicDrop` struct.
    uint256 internal constant _PUBLIC_DROP_STAGE_INDEX = 0;

    /**
     * @notice Ensure only tokens implementing INonFungibleSeaDropToken can
     *         call the update methods.
     */
    modifier onlyINonFungibleSeaDropToken() virtual {
        if (
            !IERC165(msg.sender).supportsInterface(
                type(INonFungibleSeaDropToken).interfaceId
            )
        ) {
            revert OnlyINonFungibleSeaDropToken(msg.sender);
        }
        _;
    }

    /**
     * @notice Constructor for the contract deployment.
     */
    constructor() {
        // Derive the domain separator.
        _DOMAIN_SEPARATOR = _deriveDomainSeparator();
    }

    /**
     * @notice Mint a public drop.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param quantity         The number of tokens to mint.
     */
    function mintPublic(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        uint256 quantity
    ) external payable override {
        // Get the public drop data.
        PublicDrop memory publicDrop = _publicDrops[nftContract];

        // Ensure that the drop has started.
        _checkActive(publicDrop.startTime, publicDrop.endTime);

        // Put the mint price on the stack.
        uint256 mintPrice = publicDrop.mintPrice;

        // Validate payment is correct for number minted.
        _checkCorrectPayment(quantity, mintPrice);

        // Get the minter address.
        address minter = minterIfNotPayer != address(0)
            ? minterIfNotPayer
            : msg.sender;

        // Ensure the payer is allowed if not the minter.
        if (minter != msg.sender) {
            if (!_allowedPayers[nftContract][msg.sender]) {
                revert PayerNotAllowed();
            }
        }

        // Check that the minter is allowed to mint the desired quantity.
        _checkMintQuantity(
            nftContract,
            minter,
            quantity,
            publicDrop.maxTotalMintableByWallet,
            _UNLIMITED_MAX_TOKEN_SUPPLY_FOR_STAGE
        );

        // Check that the fee recipient is allowed if restricted.
        _checkFeeRecipientIsAllowed(
            nftContract,
            feeRecipient,
            publicDrop.restrictFeeRecipients
        );

        // Mint the token(s), split the payout, emit an event.
        _mintAndPay(
            nftContract,
            minter,
            quantity,
            mintPrice,
            _PUBLIC_DROP_STAGE_INDEX,
            publicDrop.feeBps,
            feeRecipient
        );
    }

    /**
     * @notice Mint from an allow list.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param quantity         The number of tokens to mint.
     * @param mintParams       The mint parameters.
     * @param proof            The proof for the leaf of the allow list.
     */
    function mintAllowList(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        uint256 quantity,
        MintParams calldata mintParams,
        bytes32[] calldata proof
    ) external payable override {
        // Check that the drop stage is active.
        _checkActive(mintParams.startTime, mintParams.endTime);

        // Put the mint price on the stack.
        uint256 mintPrice = mintParams.mintPrice;

        // Validate payment is correct for number minted.
        _checkCorrectPayment(quantity, mintPrice);

        // Get the minter address.
        address minter = minterIfNotPayer != address(0)
            ? minterIfNotPayer
            : msg.sender;

        // Ensure the payer is allowed if not the minter.
        if (minter != msg.sender) {
            if (!_allowedPayers[nftContract][msg.sender]) {
                revert PayerNotAllowed();
            }
        }

        // Check that the minter is allowed to mint the desired quantity.
        _checkMintQuantity(
            nftContract,
            minter,
            quantity,
            mintParams.maxTotalMintableByWallet,
            mintParams.maxTokenSupplyForStage
        );

        // Check that the fee recipient is allowed if restricted.
        _checkFeeRecipientIsAllowed(
            nftContract,
            feeRecipient,
            mintParams.restrictFeeRecipients
        );

        // Verify the proof.
        if (
            !MerkleProof.verify(
                proof,
                _allowListMerkleRoots[nftContract],
                keccak256(abi.encode(minter, mintParams))
            )
        ) {
            revert InvalidProof();
        }

        // Mint the token(s), split the payout, emit an event.
        _mintAndPay(
            nftContract,
            minter,
            quantity,
            mintPrice,
            mintParams.dropStageIndex,
            mintParams.feeBps,
            feeRecipient
        );
    }

    /**
     * @notice Mint with a server-side signature.
     *         Note that a signature can only be used once.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param quantity         The number of tokens to mint.
     * @param mintParams       The mint parameters.
     * @param salt             The salt for the signed mint.
     * @param signature        The server-side signature, must be an allowed
     *                         signer.
     */
    function mintSigned(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        uint256 quantity,
        MintParams calldata mintParams,
        uint256 salt,
        bytes calldata signature
    ) external payable override {
        // Check that the drop stage is active.
        _checkActive(mintParams.startTime, mintParams.endTime);

        // Validate payment is correct for number minted.
        _checkCorrectPayment(quantity, mintParams.mintPrice);

        // Get the minter address.
        address minter = minterIfNotPayer != address(0)
            ? minterIfNotPayer
            : msg.sender;

        // Ensure the payer is allowed if not the minter.
        if (minter != msg.sender) {
            if (!_allowedPayers[nftContract][msg.sender]) {
                revert PayerNotAllowed();
            }
        }

        // Check that the minter is allowed to mint the desired quantity.
        _checkMintQuantity(
            nftContract,
            minter,
            quantity,
            mintParams.maxTotalMintableByWallet,
            mintParams.maxTokenSupplyForStage
        );

        // Check that the fee recipient is allowed if restricted.
        _checkFeeRecipientIsAllowed(
            nftContract,
            feeRecipient,
            mintParams.restrictFeeRecipients
        );

        // Validate the signature in a block scope to avoid "stack too deep".
        {
            // Get the digest to verify the EIP-712 signature.
            bytes32 digest = _getDigest(
                nftContract,
                minter,
                feeRecipient,
                mintParams,
                salt
            );

            // Ensure the digest has not already been used.
            if (_usedDigests[digest]) {
                revert SignatureAlreadyUsed();
            }

            // Mark the digest as used.
            _usedDigests[digest] = true;

            // Use the recover method to see what address was used to create
            // the signature on this data.
            // Note that if the digest doesn't exactly match what was signed we'll
            // get a random recovered address.
            address recoveredAddress = digest.recover(signature);
            _validateSignerAndParams(nftContract, mintParams, recoveredAddress);
        }

        // Mint the token(s), split the payout, emit an event.
        _mintAndPay(
            nftContract,
            minter,
            quantity,
            mintParams.mintPrice,
            mintParams.dropStageIndex,
            mintParams.feeBps,
            feeRecipient
        );
    }

    /**
     * @notice Enforce stored parameters for signed mints to mitigate
     *         the effects of a malicious signer.
     */
    function _validateSignerAndParams(
        address nftContract,
        MintParams memory mintParams,
        address signer
    ) internal view {
        SignedMintValidationParams
            memory signedMintValidationParams = _signedMintValidationParams[
                nftContract
            ][signer];

        // Check that SignedMintValidationParams have been initialized; if not,
        // this is an invalid signer.
        if (signedMintValidationParams.maxMaxTotalMintableByWallet == 0) {
            revert InvalidSignature(signer);
        }

        // Validate individual params.
        if (mintParams.mintPrice < signedMintValidationParams.minMintPrice) {
            revert InvalidSignedMintPrice(
                mintParams.mintPrice,
                signedMintValidationParams.minMintPrice
            );
        }
        if (
            mintParams.maxTotalMintableByWallet >
            signedMintValidationParams.maxMaxTotalMintableByWallet
        ) {
            revert InvalidSignedMaxTotalMintableByWallet(
                mintParams.maxTotalMintableByWallet,
                signedMintValidationParams.maxMaxTotalMintableByWallet
            );
        }
        if (mintParams.startTime < signedMintValidationParams.minStartTime) {
            revert InvalidSignedStartTime(
                mintParams.startTime,
                signedMintValidationParams.minStartTime
            );
        }
        if (mintParams.endTime > signedMintValidationParams.maxEndTime) {
            revert InvalidSignedEndTime(
                mintParams.endTime,
                signedMintValidationParams.maxEndTime
            );
        }
        if (
            mintParams.maxTokenSupplyForStage >
            signedMintValidationParams.maxMaxTokenSupplyForStage
        ) {
            revert InvalidSignedMaxTokenSupplyForStage(
                mintParams.maxTokenSupplyForStage,
                signedMintValidationParams.maxMaxTokenSupplyForStage
            );
        }
        if (mintParams.feeBps > signedMintValidationParams.maxFeeBps) {
            revert InvalidSignedFeeBps(
                mintParams.feeBps,
                signedMintValidationParams.maxFeeBps
            );
        }
        if (mintParams.feeBps < signedMintValidationParams.minFeeBps) {
            revert InvalidSignedFeeBps(
                mintParams.feeBps,
                signedMintValidationParams.minFeeBps
            );
        }
        if (!mintParams.restrictFeeRecipients) {
            revert SignedMintsMustRestrictFeeRecipients();
        }
    }

    /**
     * @notice Mint as an allowed token holder.
     *         This will mark the token ids as redeemed and will revert if the
     *         same token id is attempted to be redeemed twice.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param mintParams       The token gated mint params.
     */
    function mintAllowedTokenHolder(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        TokenGatedMintParams calldata mintParams
    ) external payable override {
        // Get the minter address.
        address minter = minterIfNotPayer != address(0)
            ? minterIfNotPayer
            : msg.sender;

        // Ensure the payer is allowed if not the minter.
        if (minter != msg.sender) {
            if (!_allowedPayers[nftContract][msg.sender]) {
                revert PayerNotAllowed();
            }
        }

        // Put the allowedNftToken on the stack for more efficient access.
        address allowedNftToken = mintParams.allowedNftToken;

        // Set the dropStage to a variable.
        TokenGatedDropStage memory dropStage = _tokenGatedDrops[nftContract][
            allowedNftToken
        ];

        // Validate that the dropStage is active.
        _checkActive(dropStage.startTime, dropStage.endTime);

        // Check that the fee recipient is allowed if restricted.
        _checkFeeRecipientIsAllowed(
            nftContract,
            feeRecipient,
            dropStage.restrictFeeRecipients
        );

        // Put the mint quantity on the stack for more efficient access.
        uint256 mintQuantity = mintParams.allowedNftTokenIds.length;

        // Validate payment is correct for number minted.
        _checkCorrectPayment(mintQuantity, dropStage.mintPrice);

        // Check that the minter is allowed to mint the desired quantity.
        _checkMintQuantity(
            nftContract,
            minter,
            mintQuantity,
            dropStage.maxTotalMintableByWallet,
            dropStage.maxTokenSupplyForStage
        );

        // Iterate through each allowedNftTokenId
        // to ensure it is not already redeemed.
        for (uint256 i = 0; i < mintQuantity; ) {
            // Put the tokenId on the stack.
            uint256 tokenId = mintParams.allowedNftTokenIds[i];

            // Check that the minter is the owner of the allowedNftTokenId.
            if (IERC721(allowedNftToken).ownerOf(tokenId) != minter) {
                revert TokenGatedNotTokenOwner(
                    nftContract,
                    allowedNftToken,
                    tokenId
                );
            }

            // Cache the storage pointer for cheaper access.
            mapping(uint256 => bool)
                storage redeemedTokenIds = _tokenGatedRedeemed[nftContract][
                    allowedNftToken
                ];

            // Check that the token id has not already been redeemed.
            if (redeemedTokenIds[tokenId]) {
                revert TokenGatedTokenIdAlreadyRedeemed(
                    nftContract,
                    allowedNftToken,
                    tokenId
                );
            }

            // Mark the token id as redeemed.
            redeemedTokenIds[tokenId] = true;

            unchecked {
                ++i;
            }
        }

        // Mint the token(s), split the payout, emit an event.
        _mintAndPay(
            nftContract,
            minter,
            mintQuantity,
            dropStage.mintPrice,
            dropStage.dropStageIndex,
            dropStage.feeBps,
            feeRecipient
        );
    }

    /**
     * @notice Check that the drop stage is active.
     *
     * @param startTime The drop stage start time.
     * @param endTime   The drop stage end time.
     */
    function _checkActive(uint256 startTime, uint256 endTime) internal view {
        if (block.timestamp < startTime || block.timestamp > endTime) {
            // Revert if the drop stage is not active.
            revert NotActive(block.timestamp, startTime, endTime);
        }
    }

    /**
     * @notice Check that the fee recipient is allowed.
     *
     * @param nftContract           The nft contract.
     * @param feeRecipient          The fee recipient.
     * @param restrictFeeRecipients If the fee recipients are restricted.
     */
    function _checkFeeRecipientIsAllowed(
        address nftContract,
        address feeRecipient,
        bool restrictFeeRecipients
    ) internal view {
        // Ensure the fee recipient is not the zero address.
        if (feeRecipient == address(0)) {
            revert FeeRecipientCannotBeZeroAddress();
        }

        // Revert if the fee recipient is restricted and not allowed.
        if (restrictFeeRecipients)
            if (!_allowedFeeRecipients[nftContract][feeRecipient]) {
                revert FeeRecipientNotAllowed();
            }
    }

    /**
     * @notice Check that the wallet is allowed to mint the desired quantity.
     *
     * @param nftContract              The nft contract.
     * @param minter                   The mint recipient.
     * @param quantity                 The number of tokens to mint.
     * @param maxTotalMintableByWallet The max allowed mints per wallet.
     * @param maxTokenSupplyForStage   The max token supply for the drop stage.
     */
    function _checkMintQuantity(
        address nftContract,
        address minter,
        uint256 quantity,
        uint256 maxTotalMintableByWallet,
        uint256 maxTokenSupplyForStage
    ) internal view {
        // Mint quantity of zero is not valid.
        if (quantity == 0) {
            revert MintQuantityCannotBeZero();
        }

        // Get the mint stats.
        (
            uint256 minterNumMinted,
            uint256 currentTotalSupply,
            uint256 maxSupply
        ) = INonFungibleSeaDropToken(nftContract).getMintStats(minter);

        // Ensure mint quantity doesn't exceed maxTotalMintableByWallet.
        if (quantity + minterNumMinted > maxTotalMintableByWallet) {
            revert MintQuantityExceedsMaxMintedPerWallet(
                quantity + minterNumMinted,
                maxTotalMintableByWallet
            );
        }

        // Ensure mint quantity doesn't exceed maxSupply.
        if (quantity + currentTotalSupply > maxSupply) {
            revert MintQuantityExceedsMaxSupply(
                quantity + currentTotalSupply,
                maxSupply
            );
        }

        // Ensure mint quantity doesn't exceed maxTokenSupplyForStage.
        if (quantity + currentTotalSupply > maxTokenSupplyForStage) {
            revert MintQuantityExceedsMaxTokenSupplyForStage(
                quantity + currentTotalSupply,
                maxTokenSupplyForStage
            );
        }
    }

    /**
     * @notice Revert if the payment is not the quantity times the mint price.
     *
     * @param quantity  The number of tokens to mint.
     * @param mintPrice The mint price per token.
     */
    function _checkCorrectPayment(uint256 quantity, uint256 mintPrice)
        internal
        view
    {
        // Revert if the tx's value doesn't match the total cost.
        if (msg.value != quantity * mintPrice) {
            revert IncorrectPayment(msg.value, quantity * mintPrice);
        }
    }

    /**
     * @notice Split the payment payout for the creator and fee recipient.
     *
     * @param nftContract  The nft contract.
     * @param feeRecipient The fee recipient.
     * @param feeBps       The fee basis points.
     */
    function _splitPayout(
        address nftContract,
        address feeRecipient,
        uint256 feeBps
    ) internal {
        // Revert if the fee basis points is greater than 10_000.
        if (feeBps > 10_000) {
            revert InvalidFeeBps(feeBps);
        }

        // Get the creator payout address.
        address creatorPayoutAddress = _creatorPayoutAddresses[nftContract];

        // Ensure the creator payout address is not the zero address.
        if (creatorPayoutAddress == address(0)) {
            revert CreatorPayoutAddressCannotBeZeroAddress();
        }

        // msg.value has already been validated by this point, so can use it directly.

        // If the fee is zero, just transfer to the creator and return.
        if (feeBps == 0) {
            SafeTransferLib.safeTransferETH(creatorPayoutAddress, msg.value);
            return;
        }

        // Get the fee amount.
        // Note that the fee amount is rounded down in favor of the creator.
        uint256 feeAmount = (msg.value * feeBps) / 10_000;

        // Get the creator payout amount. Fee amount is <= msg.value per above.
        uint256 payoutAmount;
        unchecked {
            payoutAmount = msg.value - feeAmount;
        }

        // Transfer the fee amount to the fee recipient.
        if (feeAmount > 0) {
            SafeTransferLib.safeTransferETH(feeRecipient, feeAmount);
        }

        // Transfer the creator payout amount to the creator.
        SafeTransferLib.safeTransferETH(creatorPayoutAddress, payoutAmount);
    }

    /**
     * @notice Mints a number of tokens, splits the payment,
     *         and emits an event.
     *
     * @param nftContract    The nft contract.
     * @param minter         The mint recipient.
     * @param quantity       The number of tokens to mint.
     * @param mintPrice      The mint price per token.
     * @param dropStageIndex The drop stage index.
     * @param feeBps         The fee basis points.
     * @param feeRecipient   The fee recipient.
     */
    function _mintAndPay(
        address nftContract,
        address minter,
        uint256 quantity,
        uint256 mintPrice,
        uint256 dropStageIndex,
        uint256 feeBps,
        address feeRecipient
    ) internal nonReentrant {
        // Mint the token(s).
        INonFungibleSeaDropToken(nftContract).mintSeaDrop(minter, quantity);

        if (mintPrice != 0) {
            // Split the payment between the creator and fee recipient.
            _splitPayout(nftContract, feeRecipient, feeBps);
        }

        // Emit an event for the mint.
        emit SeaDropMint(
            nftContract,
            minter,
            feeRecipient,
            msg.sender,
            quantity,
            mintPrice,
            feeBps,
            dropStageIndex
        );
    }

    /**
     * @dev Internal view function to get the EIP-712 domain separator. If the
     *      chainId matches the chainId set on deployment, the cached domain
     *      separator will be returned; otherwise, it will be derived from
     *      scratch.
     *
     * @return The domain separator.
     */
    function _domainSeparator() internal view returns (bytes32) {
        // prettier-ignore
        return block.chainid == _CHAIN_ID
            ? _DOMAIN_SEPARATOR
            : _deriveDomainSeparator();
    }

    /**
     * @dev Internal view function to derive the EIP-712 domain separator.
     *
     * @return The derived domain separator.
     */
    function _deriveDomainSeparator() internal view returns (bytes32) {
        // prettier-ignore
        return keccak256(
            abi.encode(
                _EIP_712_DOMAIN_TYPEHASH,
                _NAME_HASH,
                _VERSION_HASH,
                block.chainid,
                address(this)
            )
        );
    }

    /**
     * @notice Returns the public drop data for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getPublicDrop(address nftContract)
        external
        view
        returns (PublicDrop memory)
    {
        return _publicDrops[nftContract];
    }

    /**
     * @notice Returns the creator payout address for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getCreatorPayoutAddress(address nftContract)
        external
        view
        returns (address)
    {
        return _creatorPayoutAddresses[nftContract];
    }

    /**
     * @notice Returns the allow list merkle root for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getAllowListMerkleRoot(address nftContract)
        external
        view
        returns (bytes32)
    {
        return _allowListMerkleRoots[nftContract];
    }

    /**
     * @notice Returns if the specified fee recipient is allowed
     *         for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getFeeRecipientIsAllowed(address nftContract, address feeRecipient)
        external
        view
        returns (bool)
    {
        return _allowedFeeRecipients[nftContract][feeRecipient];
    }

    /**
     * @notice Returns an enumeration of allowed fee recipients for an
     *         nft contract when fee recipients are enforced.
     *
     * @param nftContract The nft contract.
     */
    function getAllowedFeeRecipients(address nftContract)
        external
        view
        returns (address[] memory)
    {
        return _enumeratedFeeRecipients[nftContract];
    }

    /**
     * @notice Returns the server-side signers for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getSigners(address nftContract)
        external
        view
        returns (address[] memory)
    {
        return _enumeratedSigners[nftContract];
    }

    /**
     * @notice Returns the struct of SignedMintValidationParams for a signer.
     *
     * @param nftContract The nft contract.
     * @param signer      The signer.
     */
    function getSignedMintValidationParams(address nftContract, address signer)
        external
        view
        returns (SignedMintValidationParams memory)
    {
        return _signedMintValidationParams[nftContract][signer];
    }

    /**
     * @notice Returns the payers for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getPayers(address nftContract)
        external
        view
        returns (address[] memory)
    {
        return _enumeratedPayers[nftContract];
    }

    /**
     * @notice Returns if the specified payer is allowed
     *         for the nft contract.
     *
     * @param nftContract The nft contract.
     * @param payer       The payer.
     */
    function getPayerIsAllowed(address nftContract, address payer)
        external
        view
        returns (bool)
    {
        return _allowedPayers[nftContract][payer];
    }

    /**
     * @notice Returns the allowed token gated drop tokens for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getTokenGatedAllowedTokens(address nftContract)
        external
        view
        returns (address[] memory)
    {
        return _enumeratedTokenGatedTokens[nftContract];
    }

    /**
     * @notice Returns the token gated drop data for the nft contract
     *         and token gated nft.
     *
     * @param nftContract     The nft contract.
     * @param allowedNftToken The token gated nft token.
     */
    function getTokenGatedDrop(address nftContract, address allowedNftToken)
        external
        view
        returns (TokenGatedDropStage memory)
    {
        return _tokenGatedDrops[nftContract][allowedNftToken];
    }

    /**
     * @notice Returns whether the token id for a token gated drop has been
     *         redeemed.
     *
     * @param nftContract       The nft contract.
     * @param allowedNftToken   The token gated nft token.
     * @param allowedNftTokenId The token gated nft token id to check.
     */
    function getAllowedNftTokenIdIsRedeemed(
        address nftContract,
        address allowedNftToken,
        uint256 allowedNftTokenId
    ) external view returns (bool) {
        return
            _tokenGatedRedeemed[nftContract][allowedNftToken][
                allowedNftTokenId
            ];
    }

    /**
     * @notice Emits an event to notify update of the drop URI.
     *
     * @param dropURI The new drop URI.
     */
    function updateDropURI(string calldata dropURI)
        external
        onlyINonFungibleSeaDropToken
    {
        // Emit an event with the update.
        emit DropURIUpdated(msg.sender, dropURI);
    }

    /**
     * @notice Updates the public drop for the nft contract and emits an event.
     *
     * @param publicDrop The public drop data.
     */
    function updatePublicDrop(PublicDrop calldata publicDrop)
        external
        override
        onlyINonFungibleSeaDropToken
    {
        // Revert if the fee basis points is greater than 10_000.
        if (publicDrop.feeBps > 10_000) {
            revert InvalidFeeBps(publicDrop.feeBps);
        }

        // Set the public drop data.
        _publicDrops[msg.sender] = publicDrop;

        // Emit an event with the update.
        emit PublicDropUpdated(msg.sender, publicDrop);
    }

    /**
     * @notice Updates the allow list merkle root for the nft contract
     *         and emits an event.
     *
     *         Note: Be sure only authorized users can call this from
     *         token contracts that implement INonFungibleSeaDropToken.
     *
     * @param allowListData The allow list data.
     */
    function updateAllowList(AllowListData calldata allowListData)
        external
        override
        onlyINonFungibleSeaDropToken
    {
        // Track the previous root.
        bytes32 prevRoot = _allowListMerkleRoots[msg.sender];

        // Update the merkle root.
        _allowListMerkleRoots[msg.sender] = allowListData.merkleRoot;

        // Emit an event with the update.
        emit AllowListUpdated(
            msg.sender,
            prevRoot,
            allowListData.merkleRoot,
            allowListData.publicKeyURIs,
            allowListData.allowListURI
        );
    }

    /**
     * @notice Updates the token gated drop stage for the nft contract
     *         and emits an event.
     *
     *         Note: If two INonFungibleSeaDropToken tokens are doing simultaneous
     *         token gated drop promotions for each other, they can be
     *         minted by the same actor until `maxTokenSupplyForStage`
     *         is reached. Please ensure the `allowedNftToken` is not
     *         running an active drop during the `dropStage` time period.
     *
     * @param allowedNftToken The token gated nft token.
     * @param dropStage       The token gated drop stage data.
     */
    function updateTokenGatedDrop(
        address allowedNftToken,
        TokenGatedDropStage calldata dropStage
    ) external override onlyINonFungibleSeaDropToken {
        // Ensure the allowedNftToken is not the zero address.
        if (allowedNftToken == address(0)) {
            revert TokenGatedDropAllowedNftTokenCannotBeZeroAddress();
        }

        // Ensure the allowedNftToken cannot be the drop token itself.
        if (allowedNftToken == msg.sender) {
            revert TokenGatedDropAllowedNftTokenCannotBeDropToken();
        }

        // Revert if the fee basis points is greater than 10_000.
        if (dropStage.feeBps > 10_000) {
            revert InvalidFeeBps(dropStage.feeBps);
        }

        // Use maxTotalMintableByWallet != 0 as a signal that this update should
        // add or update the drop stage, otherwise we will be removing.
        bool addOrUpdateDropStage = dropStage.maxTotalMintableByWallet != 0;

        // Get pointers to the token gated drop data and enumerated addresses.
        TokenGatedDropStage storage existingDropStageData = _tokenGatedDrops[
            msg.sender
        ][allowedNftToken];
        address[] storage enumeratedTokens = _enumeratedTokenGatedTokens[
            msg.sender
        ];

        // Stage struct packs to a single slot, so load it
        // as a uint256; if it is 0, it is empty.
        bool dropStageDoesNotExist;
        assembly {
            dropStageDoesNotExist := iszero(sload(existingDropStageData.slot))
        }

        if (addOrUpdateDropStage) {
            _tokenGatedDrops[msg.sender][allowedNftToken] = dropStage;
            // Add to enumeration if it does not exist already.
            if (dropStageDoesNotExist) {
                enumeratedTokens.push(allowedNftToken);
            }
        } else {
            // Check we are not deleting a drop stage that does not exist.
            if (dropStageDoesNotExist) {
                revert TokenGatedDropStageNotPresent();
            }
            // Clear storage slot and remove from enumeration.
            delete _tokenGatedDrops[msg.sender][allowedNftToken];
            _removeFromEnumeration(allowedNftToken, enumeratedTokens);
        }

        // Emit an event with the update.
        emit TokenGatedDropStageUpdated(msg.sender, allowedNftToken, dropStage);
    }

    /**
     * @notice Updates the creator payout address and emits an event.
     *
     * @param _payoutAddress The creator payout address.
     */
    function updateCreatorPayoutAddress(address _payoutAddress)
        external
        onlyINonFungibleSeaDropToken
    {
        if (_payoutAddress == address(0)) {
            revert CreatorPayoutAddressCannotBeZeroAddress();
        }
        // Set the creator payout address.
        _creatorPayoutAddresses[msg.sender] = _payoutAddress;

        // Emit an event with the update.
        emit CreatorPayoutAddressUpdated(msg.sender, _payoutAddress);
    }

    /**
     * @notice Updates the allowed fee recipient and emits an event.
     *
     * @param feeRecipient The fee recipient.
     * @param allowed      If the fee recipient is allowed.
     */
    function updateAllowedFeeRecipient(address feeRecipient, bool allowed)
        external
        onlyINonFungibleSeaDropToken
    {
        if (feeRecipient == address(0)) {
            revert FeeRecipientCannotBeZeroAddress();
        }

        // Track the enumerated storage.
        address[] storage enumeratedStorage = _enumeratedFeeRecipients[
            msg.sender
        ];
        mapping(address => bool)
            storage feeRecipientsMap = _allowedFeeRecipients[msg.sender];

        if (allowed) {
            if (feeRecipientsMap[feeRecipient]) {
                revert DuplicateFeeRecipient();
            }
            feeRecipientsMap[feeRecipient] = true;
            enumeratedStorage.push(feeRecipient);
        } else {
            if (!feeRecipientsMap[feeRecipient]) {
                revert FeeRecipientNotPresent();
            }
            delete _allowedFeeRecipients[msg.sender][feeRecipient];
            _removeFromEnumeration(feeRecipient, enumeratedStorage);
        }

        // Emit an event with the update.
        emit AllowedFeeRecipientUpdated(msg.sender, feeRecipient, allowed);
    }

    /**
     * @notice Updates the allowed server-side signers and emits an event.
     *
     * @param signer                     The signer to update.
     * @param signedMintValidationParams Minimum and maximum parameters
     *                                   to enforce for signed mints.
     */
    function updateSignedMintValidationParams(
        address signer,
        SignedMintValidationParams calldata signedMintValidationParams
    ) external onlyINonFungibleSeaDropToken {
        if (signer == address(0)) {
            revert SignerCannotBeZeroAddress();
        }

        if (signedMintValidationParams.minFeeBps > 10_000) {
            revert InvalidFeeBps(signedMintValidationParams.minFeeBps);
        }
        if (signedMintValidationParams.maxFeeBps > 10_000) {
            revert InvalidFeeBps(signedMintValidationParams.maxFeeBps);
        }

        // Track the enumerated storage.
        address[] storage enumeratedStorage = _enumeratedSigners[msg.sender];
        mapping(address => SignedMintValidationParams)
            storage signedMintValidationParamsMap = _signedMintValidationParams[
                msg.sender
            ];

        SignedMintValidationParams
            storage existingSignedMintValidationParams = signedMintValidationParamsMap[
                signer
            ];

        bool signedMintValidationParamsDoNotExist;
        assembly {
            signedMintValidationParamsDoNotExist := iszero(
                sload(existingSignedMintValidationParams.slot)
            )
        }
        // Use maxMaxTotalMintableByWallet as sentry for add/update or delete.
        bool addOrUpdate = signedMintValidationParams
            .maxMaxTotalMintableByWallet > 0;

        if (addOrUpdate) {
            signedMintValidationParamsMap[signer] = signedMintValidationParams;
            if (signedMintValidationParamsDoNotExist) {
                enumeratedStorage.push(signer);
            }
        } else {
            if (
                existingSignedMintValidationParams
                    .maxMaxTotalMintableByWallet == 0
            ) {
                revert SignerNotPresent();
            }
            delete _signedMintValidationParams[msg.sender][signer];
            _removeFromEnumeration(signer, enumeratedStorage);
        }

        // Emit an event with the update.
        emit SignedMintValidationParamsUpdated(
            msg.sender,
            signer,
            signedMintValidationParams
        );
    }

    /**
     * @notice Updates the allowed payer and emits an event.
     *
     * @param payer  The payer to add or remove.
     * @param allowed Whether to add or remove the payer.
     */
    function updatePayer(address payer, bool allowed)
        external
        onlyINonFungibleSeaDropToken
    {
        if (payer == address(0)) {
            revert PayerCannotBeZeroAddress();
        }

        // Track the enumerated storage.
        address[] storage enumeratedStorage = _enumeratedPayers[msg.sender];
        mapping(address => bool) storage payersMap = _allowedPayers[msg.sender];

        if (allowed) {
            if (payersMap[payer]) {
                revert DuplicatePayer();
            }
            payersMap[payer] = true;
            enumeratedStorage.push(payer);
        } else {
            if (!payersMap[payer]) {
                revert PayerNotPresent();
            }
            delete _allowedPayers[msg.sender][payer];
            _removeFromEnumeration(payer, enumeratedStorage);
        }

        // Emit an event with the update.
        emit PayerUpdated(msg.sender, payer, allowed);
    }

    /**
     * @notice Remove an address from a supplied enumeration.
     *
     * @param toRemove    The address to remove.
     * @param enumeration The enumerated addresses to parse.
     */
    function _removeFromEnumeration(
        address toRemove,
        address[] storage enumeration
    ) internal {
        // Cache the length.
        uint256 enumerationLength = enumeration.length;
        for (uint256 i = 0; i < enumerationLength; ) {
            // Check if the enumerated element is the one we are deleting.
            if (enumeration[i] == toRemove) {
                // Swap with the last element.
                enumeration[i] = enumeration[enumerationLength - 1];
                // Delete the (now duplicated) last element.
                enumeration.pop();
                // Exit the loop.
                break;
            }
            unchecked {
                ++i;
            }
        }
    }

    /**
     * @notice Verify an EIP-712 signature by recreating the data structure
     *         that we signed on the client side, and then using that to recover
     *         the address that signed the signature for this data.
     *
     * @param nftContract  The nft contract.
     * @param minter       The mint recipient.
     * @param feeRecipient The fee recipient.
     * @param mintParams   The mint params.
     * @param salt         The salt for the signed mint.
     */
    function _getDigest(
        address nftContract,
        address minter,
        address feeRecipient,
        MintParams memory mintParams,
        uint256 salt
    ) internal view returns (bytes32 digest) {
        bytes32 mintParamsHashStruct = keccak256(
            abi.encode(
                _MINT_PARAMS_TYPEHASH,
                mintParams.mintPrice,
                mintParams.maxTotalMintableByWallet,
                mintParams.startTime,
                mintParams.endTime,
                mintParams.dropStageIndex,
                mintParams.maxTokenSupplyForStage,
                mintParams.feeBps,
                mintParams.restrictFeeRecipients
            )
        );
        digest = keccak256(
            bytes.concat(
                bytes2(0x1901),
                _domainSeparator(),
                keccak256(
                    abi.encode(
                        _SIGNED_MINT_TYPEHASH,
                        nftContract,
                        minter,
                        feeRecipient,
                        mintParamsHashStruct,
                        salt
                    )
                )
            )
        );
    }
}

File 11 of 15 : INonFungibleSeaDropToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {
    ISeaDropTokenContractMetadata
} from "../interfaces/ISeaDropTokenContractMetadata.sol";

import {
    AllowListData,
    PublicDrop,
    TokenGatedDropStage,
    SignedMintValidationParams
} from "../lib/SeaDropStructs.sol";

import {
    IERC165
} from "openzeppelin-contracts/contracts/utils/introspection/IERC165.sol";

interface INonFungibleSeaDropToken is ISeaDropTokenContractMetadata, IERC165 {
    /**
     * @dev Revert with an error if a contract is not an allowed
     *      SeaDrop address.
     */
    error OnlyAllowedSeaDrop();

    /**
     * @dev Emit an event when allowed SeaDrop contracts are updated.
     */
    event AllowedSeaDropUpdated(address[] allowedSeaDrop);

    /**
     * @notice Update the allowed SeaDrop contracts.
     *         Only the owner or administrator can use this function.
     *
     * @param allowedSeaDrop The allowed SeaDrop addresses.
     */
    function updateAllowedSeaDrop(address[] calldata allowedSeaDrop) external;

    /**
     * @notice Mint tokens, restricted to the SeaDrop contract.
     *
     * @dev    NOTE: If a token registers itself with multiple SeaDrop
     *         contracts, the implementation of this function should guard
     *         against reentrancy. If the implementing token uses
     *         _safeMint(), or a feeRecipient with a malicious receive() hook
     *         is specified, the token or fee recipients may be able to execute
     *         another mint in the same transaction via a separate SeaDrop
     *         contract.
     *         This is dangerous if an implementing token does not correctly
     *         update the minterNumMinted and currentTotalSupply values before
     *         transferring minted tokens, as SeaDrop references these values
     *         to enforce token limits on a per-wallet and per-stage basis.
     *
     * @param minter   The address to mint to.
     * @param quantity The number of tokens to mint.
     */
    function mintSeaDrop(address minter, uint256 quantity) external payable;

    /**
     * @notice Returns a set of mint stats for the address.
     *         This assists SeaDrop in enforcing maxSupply,
     *         maxTotalMintableByWallet, and maxTokenSupplyForStage checks.
     *
     * @dev    NOTE: Implementing contracts should always update these numbers
     *         before transferring any tokens with _safeMint() to mitigate
     *         consequences of malicious onERC721Received() hooks.
     *
     * @param minter The minter address.
     */
    function getMintStats(address minter)
        external
        view
        returns (
            uint256 minterNumMinted,
            uint256 currentTotalSupply,
            uint256 maxSupply
        );

    /**
     * @notice Update the public drop data for this nft contract on SeaDrop.
     *         Only the owner or administrator can use this function.
     *
     *         The administrator can only update `feeBps`.
     *
     * @param seaDropImpl The allowed SeaDrop contract.
     * @param publicDrop  The public drop data.
     */
    function updatePublicDrop(
        address seaDropImpl,
        PublicDrop calldata publicDrop
    ) external;

    /**
     * @notice Update the allow list data for this nft contract on SeaDrop.
     *         Only the owner or administrator can use this function.
     *
     * @param seaDropImpl   The allowed SeaDrop contract.
     * @param allowListData The allow list data.
     */
    function updateAllowList(
        address seaDropImpl,
        AllowListData calldata allowListData
    ) external;

    /**
     * @notice Update the token gated drop stage data for this nft contract
     *         on SeaDrop.
     *         Only the owner or administrator can use this function.
     *
     *         The administrator, when present, must first set `feeBps`.
     *
     *         Note: If two INonFungibleSeaDropToken tokens are doing
     *         simultaneous token gated drop promotions for each other,
     *         they can be minted by the same actor until
     *         `maxTokenSupplyForStage` is reached. Please ensure the
     *         `allowedNftToken` is not running an active drop during the
     *         `dropStage` time period.
     *
     *
     * @param seaDropImpl     The allowed SeaDrop contract.
     * @param allowedNftToken The allowed nft token.
     * @param dropStage       The token gated drop stage data.
     */
    function updateTokenGatedDrop(
        address seaDropImpl,
        address allowedNftToken,
        TokenGatedDropStage calldata dropStage
    ) external;

    /**
     * @notice Update the drop URI for this nft contract on SeaDrop.
     *         Only the owner or administrator can use this function.
     *
     * @param seaDropImpl The allowed SeaDrop contract.
     * @param dropURI     The new drop URI.
     */
    function updateDropURI(address seaDropImpl, string calldata dropURI)
        external;

    /**
     * @notice Update the creator payout address for this nft contract on SeaDrop.
     *         Only the owner can set the creator payout address.
     *
     * @param seaDropImpl   The allowed SeaDrop contract.
     * @param payoutAddress The new payout address.
     */
    function updateCreatorPayoutAddress(
        address seaDropImpl,
        address payoutAddress
    ) external;

    /**
     * @notice Update the allowed fee recipient for this nft contract
     *         on SeaDrop.
     *         Only the administrator can set the allowed fee recipient.
     *
     * @param seaDropImpl  The allowed SeaDrop contract.
     * @param feeRecipient The new fee recipient.
     */
    function updateAllowedFeeRecipient(
        address seaDropImpl,
        address feeRecipient,
        bool allowed
    ) external;

    /**
     * @notice Update the server-side signers for this nft contract
     *         on SeaDrop.
     *         Only the owner or administrator can use this function.
     *
     * @param seaDropImpl                The allowed SeaDrop contract.
     * @param signer                     The signer to update.
     * @param signedMintValidationParams Minimum and maximum parameters
     *                                   to enforce for signed mints.
     */
    function updateSignedMintValidationParams(
        address seaDropImpl,
        address signer,
        SignedMintValidationParams memory signedMintValidationParams
    ) external;

    /**
     * @notice Update the allowed payers for this nft contract on SeaDrop.
     *         Only the owner or administrator can use this function.
     *
     * @param seaDropImpl The allowed SeaDrop contract.
     * @param payer       The payer to update.
     * @param allowed     Whether the payer is allowed.
     */
    function updatePayer(
        address seaDropImpl,
        address payer,
        bool allowed
    ) external;
}

File 12 of 15 : ISeaDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {
    AllowListData,
    MintParams,
    PublicDrop,
    TokenGatedDropStage,
    TokenGatedMintParams,
    SignedMintValidationParams
} from "../lib/SeaDropStructs.sol";

import { SeaDropErrorsAndEvents } from "../lib/SeaDropErrorsAndEvents.sol";

interface ISeaDrop is SeaDropErrorsAndEvents {
    /**
     * @notice Mint a public drop.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param quantity         The number of tokens to mint.
     */
    function mintPublic(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        uint256 quantity
    ) external payable;

    /**
     * @notice Mint from an allow list.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param quantity         The number of tokens to mint.
     * @param mintParams       The mint parameters.
     * @param proof            The proof for the leaf of the allow list.
     */
    function mintAllowList(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        uint256 quantity,
        MintParams calldata mintParams,
        bytes32[] calldata proof
    ) external payable;

    /**
     * @notice Mint with a server-side signature.
     *         Note that a signature can only be used once.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param quantity         The number of tokens to mint.
     * @param mintParams       The mint parameters.
     * @param salt             The sale for the signed mint.
     * @param signature        The server-side signature, must be an allowed
     *                         signer.
     */
    function mintSigned(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        uint256 quantity,
        MintParams calldata mintParams,
        uint256 salt,
        bytes calldata signature
    ) external payable;

    /**
     * @notice Mint as an allowed token holder.
     *         This will mark the token id as redeemed and will revert if the
     *         same token id is attempted to be redeemed twice.
     *
     * @param nftContract      The nft contract to mint.
     * @param feeRecipient     The fee recipient.
     * @param minterIfNotPayer The mint recipient if different than the payer.
     * @param mintParams       The token gated mint params.
     */
    function mintAllowedTokenHolder(
        address nftContract,
        address feeRecipient,
        address minterIfNotPayer,
        TokenGatedMintParams calldata mintParams
    ) external payable;

    /**
     * @notice Returns the public drop data for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getPublicDrop(address nftContract)
        external
        view
        returns (PublicDrop memory);

    /**
     * @notice Returns the creator payout address for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getCreatorPayoutAddress(address nftContract)
        external
        view
        returns (address);

    /**
     * @notice Returns the allow list merkle root for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getAllowListMerkleRoot(address nftContract)
        external
        view
        returns (bytes32);

    /**
     * @notice Returns if the specified fee recipient is allowed
     *         for the nft contract.
     *
     * @param nftContract  The nft contract.
     * @param feeRecipient The fee recipient.
     */
    function getFeeRecipientIsAllowed(address nftContract, address feeRecipient)
        external
        view
        returns (bool);

    /**
     * @notice Returns an enumeration of allowed fee recipients for an
     *         nft contract when fee recipients are enforced
     *
     * @param nftContract The nft contract.
     */
    function getAllowedFeeRecipients(address nftContract)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns the server-side signers for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getSigners(address nftContract)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns the struct of SignedMintValidationParams for a signer.
     *
     * @param nftContract The nft contract.
     * @param signer      The signer.
     */
    function getSignedMintValidationParams(address nftContract, address signer)
        external
        view
        returns (SignedMintValidationParams memory);

    /**
     * @notice Returns the payers for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getPayers(address nftContract)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns if the specified payer is allowed
     *         for the nft contract.
     *
     * @param nftContract The nft contract.
     * @param payer       The payer.
     */
    function getPayerIsAllowed(address nftContract, address payer)
        external
        view
        returns (bool);

    /**
     * @notice Returns the allowed token gated drop tokens for the nft contract.
     *
     * @param nftContract The nft contract.
     */
    function getTokenGatedAllowedTokens(address nftContract)
        external
        view
        returns (address[] memory);

    /**
     * @notice Returns the token gated drop data for the nft contract
     *         and token gated nft.
     *
     * @param nftContract     The nft contract.
     * @param allowedNftToken The token gated nft token.
     */
    function getTokenGatedDrop(address nftContract, address allowedNftToken)
        external
        view
        returns (TokenGatedDropStage memory);

    /**
     * @notice Returns whether the token id for a token gated drop has been
     *         redeemed.
     *
     * @param nftContract       The nft contract.
     * @param allowedNftToken   The token gated nft token.
     * @param allowedNftTokenId The token gated nft token id to check.
     */
    function getAllowedNftTokenIdIsRedeemed(
        address nftContract,
        address allowedNftToken,
        uint256 allowedNftTokenId
    ) external view returns (bool);

    /**
     * The following methods assume msg.sender is an nft contract
     * and its ERC165 interface id matches INonFungibleSeaDropToken.
     */

    /**
     * @notice Emits an event to notify update of the drop URI.
     *
     * @param dropURI The new drop URI.
     */
    function updateDropURI(string calldata dropURI) external;

    /**
     * @notice Updates the public drop data for the nft contract
     *         and emits an event.
     *
     * @param publicDrop The public drop data.
     */
    function updatePublicDrop(PublicDrop calldata publicDrop) external;

    /**
     * @notice Updates the allow list merkle root for the nft contract
     *         and emits an event.
     *
     *         Note: Be sure only authorized users can call this from
     *         token contracts that implement INonFungibleSeaDropToken.
     *
     * @param allowListData The allow list data.
     */
    function updateAllowList(AllowListData calldata allowListData) external;

    /**
     * @notice Updates the token gated drop stage for the nft contract
     *         and emits an event.
     *
     *         Note: If two INonFungibleSeaDropToken tokens are doing simultaneous
     *         token gated drop promotions for each other, they can be
     *         minted by the same actor until `maxTokenSupplyForStage`
     *         is reached. Please ensure the `allowedNftToken` is not
     *         running an active drop during the `dropStage` time period.
     *
     * @param allowedNftToken The token gated nft token.
     * @param dropStage       The token gated drop stage data.
     */
    function updateTokenGatedDrop(
        address allowedNftToken,
        TokenGatedDropStage calldata dropStage
    ) external;

    /**
     * @notice Updates the creator payout address and emits an event.
     *
     * @param payoutAddress The creator payout address.
     */
    function updateCreatorPayoutAddress(address payoutAddress) external;

    /**
     * @notice Updates the allowed fee recipient and emits an event.
     *
     * @param feeRecipient The fee recipient.
     * @param allowed      If the fee recipient is allowed.
     */
    function updateAllowedFeeRecipient(address feeRecipient, bool allowed)
        external;

    /**
     * @notice Updates the allowed server-side signers and emits an event.
     *
     * @param signer                     The signer to update.
     * @param signedMintValidationParams Minimum and maximum parameters
     *                                   to enforce for signed mints.
     */
    function updateSignedMintValidationParams(
        address signer,
        SignedMintValidationParams calldata signedMintValidationParams
    ) external;

    /**
     * @notice Updates the allowed payer and emits an event.
     *
     * @param payer  The payer to add or remove.
     * @param allowed Whether to add or remove the payer.
     */
    function updatePayer(address payer, bool allowed) external;
}

File 13 of 15 : ISeaDropTokenContractMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

interface ISeaDropTokenContractMetadata {
    /**
     * @dev Emit an event when the max token supply is updated.
     */
    event MaxSupplyUpdated(uint256 newMaxSupply);

    /**
     * @dev Emit an event with the previous and new provenance hash after
     *      being updated.
     */
    event ProvenanceHashUpdated(bytes32 previousHash, bytes32 newHash);

    /**
     * @dev Emit an event when the URI for the collection-level metadata
     *      is updated.
     */
    event ContractURIUpdated(string newContractURI);

    /**
     * @dev Emit an event for partial reveals/updates.
     *      Batch update implementation should be left to contract.
     *
     * @param startTokenId The start token id.
     * @param endTokenId   The end token id.
     */
    event TokenURIUpdated(
        uint256 indexed startTokenId,
        uint256 indexed endTokenId
    );

    /**
     * @dev Emit an event for full token metadata reveals/updates.
     *
     * @param baseURI The base URI.
     */
    event BaseURIUpdated(string baseURI);

    /**
     * @notice Returns the contract URI.
     */
    function contractURI() external view returns (string memory);

    /**
     * @notice Sets the contract URI for contract metadata.
     *
     * @param newContractURI The new contract URI.
     */
    function setContractURI(string calldata newContractURI) external;

    /**
     * @notice Returns the base URI for token metadata.
     */
    function baseURI() external view returns (string memory);

    /**
     * @notice Sets the base URI for the token metadata and emits an event.
     *
     * @param tokenURI The new base URI to set.
     */
    function setBaseURI(string calldata tokenURI) external;

    /**
     * @notice Returns the max token supply.
     */
    function maxSupply() external view returns (uint256);

    /**
     * @notice Sets the max supply and emits an event.
     *
     * @param newMaxSupply The new max supply to set.
     */
    function setMaxSupply(uint256 newMaxSupply) external;

    /**
     * @notice Returns the provenance hash.
     *         The provenance hash is used for random reveals, which
     *         is a hash of the ordered metadata to show it is unmodified
     *         after mint has started.
     */
    function provenanceHash() external view returns (bytes32);

    /**
     * @notice Sets the provenance hash and emits an event.
     *         The provenance hash is used for random reveals, which
     *         is a hash of the ordered metadata to show it is unmodified
     *         after mint has started.
     *         This function will revert after the first item has been minted.
     *
     * @param newProvenanceHash The new provenance hash to set.
     */
    function setProvenanceHash(bytes32 newProvenanceHash) external;

    /**
     * @dev Revert with an error when attempting to set the provenance
     *      hash after the mint has started.
     */
    error ProvenanceHashCannotBeSetAfterMintStarted();
}

File 14 of 15 : SeaDropErrorsAndEvents.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import { PublicDrop, TokenGatedDropStage, SignedMintValidationParams } from "./SeaDropStructs.sol";

interface SeaDropErrorsAndEvents {
    /**
     * @dev Revert with an error if the drop stage is not active.
     */
    error NotActive(
        uint256 currentTimestamp,
        uint256 startTimestamp,
        uint256 endTimestamp
    );

    /**
     * @dev Revert with an error if the mint quantity is zero.
     */
    error MintQuantityCannotBeZero();

    /**
     * @dev Revert with an error if the mint quantity exceeds the max allowed
     *      to be minted per wallet.
     */
    error MintQuantityExceedsMaxMintedPerWallet(uint256 total, uint256 allowed);

    /**
     * @dev Revert with an error if the mint quantity exceeds the max token
     *      supply.
     */
    error MintQuantityExceedsMaxSupply(uint256 total, uint256 maxSupply);

    /**
     * @dev Revert with an error if the mint quantity exceeds the max token
     *      supply for the stage.
     *      Note: The `maxTokenSupplyForStage` for public mint is
     *      always `type(uint).max`.
     */
    error MintQuantityExceedsMaxTokenSupplyForStage(
        uint256 total, 
        uint256 maxTokenSupplyForStage
    );
    
    /**
     * @dev Revert if the fee recipient is the zero address.
     */
    error FeeRecipientCannotBeZeroAddress();

    /**
     * @dev Revert if the fee recipient is not already included.
     */
    error FeeRecipientNotPresent();

    /**
     * @dev Revert if the fee basis points is greater than 10_000.
     */
     error InvalidFeeBps(uint256 feeBps);

    /**
     * @dev Revert if the fee recipient is already included.
     */
    error DuplicateFeeRecipient();

    /**
     * @dev Revert if the fee recipient is restricted and not allowed.
     */
    error FeeRecipientNotAllowed();

    /**
     * @dev Revert if the creator payout address is the zero address.
     */
    error CreatorPayoutAddressCannotBeZeroAddress();

    /**
     * @dev Revert with an error if the received payment is incorrect.
     */
    error IncorrectPayment(uint256 got, uint256 want);

    /**
     * @dev Revert with an error if the allow list proof is invalid.
     */
    error InvalidProof();

    /**
     * @dev Revert if a supplied signer address is the zero address.
     */
    error SignerCannotBeZeroAddress();

    /**
     * @dev Revert with an error if signer's signature is invalid.
     */
    error InvalidSignature(address recoveredSigner);

    /**
     * @dev Revert with an error if a signer is not included in
     *      the enumeration when removing.
     */
    error SignerNotPresent();

    /**
     * @dev Revert with an error if a payer is not included in
     *      the enumeration when removing.
     */
    error PayerNotPresent();

    /**
     * @dev Revert with an error if a payer is already included in mapping
     *      when adding.
     *      Note: only applies when adding a single payer, as duplicates in
     *      enumeration can be removed with updatePayer.
     */
    error DuplicatePayer();

    /**
     * @dev Revert with an error if the payer is not allowed. The minter must
     *      pay for their own mint.
     */
    error PayerNotAllowed();

    /**
     * @dev Revert if a supplied payer address is the zero address.
     */
    error PayerCannotBeZeroAddress();

    /**
     * @dev Revert with an error if the sender does not
     *      match the INonFungibleSeaDropToken interface.
     */
    error OnlyINonFungibleSeaDropToken(address sender);

    /**
     * @dev Revert with an error if the sender of a token gated supplied
     *      drop stage redeem is not the owner of the token.
     */
    error TokenGatedNotTokenOwner(
        address nftContract,
        address allowedNftToken,
        uint256 allowedNftTokenId
    );

    /**
     * @dev Revert with an error if the token id has already been used to
     *      redeem a token gated drop stage.
     */
    error TokenGatedTokenIdAlreadyRedeemed(
        address nftContract,
        address allowedNftToken,
        uint256 allowedNftTokenId
    );

    /**
     * @dev Revert with an error if an empty TokenGatedDropStage is provided
     *      for an already-empty TokenGatedDropStage.
     */
     error TokenGatedDropStageNotPresent();

    /**
     * @dev Revert with an error if an allowedNftToken is set to
     *      the zero address.
     */
     error TokenGatedDropAllowedNftTokenCannotBeZeroAddress();

    /**
     * @dev Revert with an error if an allowedNftToken is set to
     *      the drop token itself.
     */
     error TokenGatedDropAllowedNftTokenCannotBeDropToken();


    /**
     * @dev Revert with an error if supplied signed mint price is less than
     *      the minimum specified.
     */
    error InvalidSignedMintPrice(uint256 got, uint256 minimum);

    /**
     * @dev Revert with an error if supplied signed maxTotalMintableByWallet
     *      is greater than the maximum specified.
     */
    error InvalidSignedMaxTotalMintableByWallet(uint256 got, uint256 maximum);

    /**
     * @dev Revert with an error if supplied signed start time is less than
     *      the minimum specified.
     */
    error InvalidSignedStartTime(uint256 got, uint256 minimum);
    
    /**
     * @dev Revert with an error if supplied signed end time is greater than
     *      the maximum specified.
     */
    error InvalidSignedEndTime(uint256 got, uint256 maximum);

    /**
     * @dev Revert with an error if supplied signed maxTokenSupplyForStage
     *      is greater than the maximum specified.
     */
     error InvalidSignedMaxTokenSupplyForStage(uint256 got, uint256 maximum);
    
     /**
     * @dev Revert with an error if supplied signed feeBps is greater than
     *      the maximum specified, or less than the minimum.
     */
    error InvalidSignedFeeBps(uint256 got, uint256 minimumOrMaximum);

    /**
     * @dev Revert with an error if signed mint did not specify to restrict
     *      fee recipients.
     */
    error SignedMintsMustRestrictFeeRecipients();

    /**
     * @dev Revert with an error if a signature for a signed mint has already
     *      been used.
     */
    error SignatureAlreadyUsed();

    /**
     * @dev An event with details of a SeaDrop mint, for analytical purposes.
     * 
     * @param nftContract    The nft contract.
     * @param minter         The mint recipient.
     * @param feeRecipient   The fee recipient.
     * @param payer          The address who payed for the tx.
     * @param quantityMinted The number of tokens minted.
     * @param unitMintPrice  The amount paid for each token.
     * @param feeBps         The fee out of 10_000 basis points collected.
     * @param dropStageIndex The drop stage index. Items minted
     *                       through mintPublic() have
     *                       dropStageIndex of 0.
     */
    event SeaDropMint(
        address indexed nftContract,
        address indexed minter,
        address indexed feeRecipient,
        address payer,
        uint256 quantityMinted,
        uint256 unitMintPrice,
        uint256 feeBps,
        uint256 dropStageIndex
    );

    /**
     * @dev An event with updated public drop data for an nft contract.
     */
    event PublicDropUpdated(
        address indexed nftContract,
        PublicDrop publicDrop
    );

    /**
     * @dev An event with updated token gated drop stage data
     *      for an nft contract.
     */
    event TokenGatedDropStageUpdated(
        address indexed nftContract,
        address indexed allowedNftToken,
        TokenGatedDropStage dropStage
    );

    /**
     * @dev An event with updated allow list data for an nft contract.
     * 
     * @param nftContract        The nft contract.
     * @param previousMerkleRoot The previous allow list merkle root.
     * @param newMerkleRoot      The new allow list merkle root.
     * @param publicKeyURI       If the allow list is encrypted, the public key
     *                           URIs that can decrypt the list.
     *                           Empty if unencrypted.
     * @param allowListURI       The URI for the allow list.
     */
    event AllowListUpdated(
        address indexed nftContract,
        bytes32 indexed previousMerkleRoot,
        bytes32 indexed newMerkleRoot,
        string[] publicKeyURI,
        string allowListURI
    );

    /**
     * @dev An event with updated drop URI for an nft contract.
     */
    event DropURIUpdated(address indexed nftContract, string newDropURI);

    /**
     * @dev An event with the updated creator payout address for an nft
     *      contract.
     */
    event CreatorPayoutAddressUpdated(
        address indexed nftContract,
        address indexed newPayoutAddress
    );

    /**
     * @dev An event with the updated allowed fee recipient for an nft
     *      contract.
     */
    event AllowedFeeRecipientUpdated(
        address indexed nftContract,
        address indexed feeRecipient,
        bool indexed allowed
    );

    /**
     * @dev An event with the updated validation parameters for server-side
     *      signers.
     */
    event SignedMintValidationParamsUpdated(
        address indexed nftContract,
        address indexed signer,
        SignedMintValidationParams signedMintValidationParams
    );   

    /**
     * @dev An event with the updated payer for an nft contract.
     */
    event PayerUpdated(
        address indexed nftContract,
        address indexed payer,
        bool indexed allowed
    );
}

File 15 of 15 : SeaDropStructs.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

/**
 * @notice A struct defining public drop data.
 *         Designed to fit efficiently in one storage slot.
 * 
 * @param mintPrice                The mint price per token. (Up to 1.2m
 *                                 of native token, e.g. ETH, MATIC)
 * @param startTime                The start time, ensure this is not zero.
 * @param endTIme                  The end time, ensure this is not zero.
 * @param maxTotalMintableByWallet Maximum total number of mints a user is
 *                                 allowed. (The limit for this field is
 *                                 2^16 - 1)
 * @param feeBps                   Fee out of 10_000 basis points to be
 *                                 collected.
 * @param restrictFeeRecipients    If false, allow any fee recipient;
 *                                 if true, check fee recipient is allowed.
 */
struct PublicDrop {
    uint80 mintPrice; // 80/256 bits
    uint48 startTime; // 128/256 bits
    uint48 endTime; // 176/256 bits
    uint16 maxTotalMintableByWallet; // 224/256 bits
    uint16 feeBps; // 240/256 bits
    bool restrictFeeRecipients; // 248/256 bits
}

/**
 * @notice A struct defining token gated drop stage data.
 *         Designed to fit efficiently in one storage slot.
 * 
 * @param mintPrice                The mint price per token. (Up to 1.2m 
 *                                 of native token, e.g.: ETH, MATIC)
 * @param maxTotalMintableByWallet Maximum total number of mints a user is
 *                                 allowed. (The limit for this field is
 *                                 2^16 - 1)
 * @param startTime                The start time, ensure this is not zero.
 * @param endTime                  The end time, ensure this is not zero.
 * @param dropStageIndex           The drop stage index to emit with the event
 *                                 for analytical purposes. This should be 
 *                                 non-zero since the public mint emits
 *                                 with index zero.
 * @param maxTokenSupplyForStage   The limit of token supply this stage can
 *                                 mint within. (The limit for this field is
 *                                 2^16 - 1)
 * @param feeBps                   Fee out of 10_000 basis points to be
 *                                 collected.
 * @param restrictFeeRecipients    If false, allow any fee recipient;
 *                                 if true, check fee recipient is allowed.
 */
struct TokenGatedDropStage {
    uint80 mintPrice; // 80/256 bits
    uint16 maxTotalMintableByWallet; // 96/256 bits
    uint48 startTime; // 144/256 bits
    uint48 endTime; // 192/256 bits
    uint8 dropStageIndex; // non-zero. 200/256 bits
    uint32 maxTokenSupplyForStage; // 232/256 bits
    uint16 feeBps; // 248/256 bits
    bool restrictFeeRecipients; // 256/256 bits
}

/**
 * @notice A struct defining mint params for an allow list.
 *         An allow list leaf will be composed of `msg.sender` and
 *         the following params.
 * 
 *         Note: Since feeBps is encoded in the leaf, backend should ensure
 *         that feeBps is acceptable before generating a proof.
 * 
 * @param mintPrice                The mint price per token.
 * @param maxTotalMintableByWallet Maximum total number of mints a user is
 *                                 allowed.
 * @param startTime                The start time, ensure this is not zero.
 * @param endTime                  The end time, ensure this is not zero.
 * @param dropStageIndex           The drop stage index to emit with the event
 *                                 for analytical purposes. This should be
 *                                 non-zero since the public mint emits with
 *                                 index zero.
 * @param maxTokenSupplyForStage   The limit of token supply this stage can
 *                                 mint within.
 * @param feeBps                   Fee out of 10_000 basis points to be
 *                                 collected.
 * @param restrictFeeRecipients    If false, allow any fee recipient;
 *                                 if true, check fee recipient is allowed.
 */
struct MintParams {
    uint256 mintPrice; 
    uint256 maxTotalMintableByWallet;
    uint256 startTime;
    uint256 endTime;
    uint256 dropStageIndex; // non-zero
    uint256 maxTokenSupplyForStage;
    uint256 feeBps;
    bool restrictFeeRecipients;
}

/**
 * @notice A struct defining token gated mint params.
 * 
 * @param allowedNftToken    The allowed nft token contract address.
 * @param allowedNftTokenIds The token ids to redeem.
 */
struct TokenGatedMintParams {
    address allowedNftToken;
    uint256[] allowedNftTokenIds;
}

/**
 * @notice A struct defining allow list data (for minting an allow list).
 * 
 * @param merkleRoot    The merkle root for the allow list.
 * @param publicKeyURIs If the allowListURI is encrypted, a list of URIs
 *                      pointing to the public keys. Empty if unencrypted.
 * @param allowListURI  The URI for the allow list.
 */
struct AllowListData {
    bytes32 merkleRoot;
    string[] publicKeyURIs;
    string allowListURI;
}

/**
 * @notice A struct defining minimum and maximum parameters to validate for 
 *         signed mints, to minimize negative effects of a compromised signer.
 *
 * @param minMintPrice                The minimum mint price allowed.
 * @param maxMaxTotalMintableByWallet The maximum total number of mints allowed
 *                                    by a wallet.
 * @param minStartTime                The minimum start time allowed.
 * @param maxEndTime                  The maximum end time allowed.
 * @param maxMaxTokenSupplyForStage   The maximum token supply allowed.
 * @param minFeeBps                   The minimum fee allowed.
 * @param maxFeeBps                   The maximum fee allowed.
 */
struct SignedMintValidationParams {
    uint80 minMintPrice; // 80/256 bits
    uint24 maxMaxTotalMintableByWallet; // 104/256 bits
    uint40 minStartTime; // 144/256 bits
    uint40 maxEndTime; // 184/256 bits
    uint40 maxMaxTokenSupplyForStage; // 224/256 bits
    uint16 minFeeBps; // 240/256 bits
    uint16 maxFeeBps; // 256/256 bits
}

Settings
{
  "remappings": [
    "ERC721A/=lib/ERC721A/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "murky/=lib/murky/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "seadrop/=src/",
    "solmate/=lib/solmate/src/",
    "utility-contracts/=lib/utility-contracts/src/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CreatorPayoutAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"DuplicateFeeRecipient","type":"error"},{"inputs":[],"name":"DuplicatePayer","type":"error"},{"inputs":[],"name":"FeeRecipientCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"FeeRecipientNotAllowed","type":"error"},{"inputs":[],"name":"FeeRecipientNotPresent","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"want","type":"uint256"}],"name":"IncorrectPayment","type":"error"},{"inputs":[{"internalType":"uint256","name":"feeBps","type":"uint256"}],"name":"InvalidFeeBps","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[{"internalType":"address","name":"recoveredSigner","type":"address"}],"name":"InvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"maximum","type":"uint256"}],"name":"InvalidSignedEndTime","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"minimumOrMaximum","type":"uint256"}],"name":"InvalidSignedFeeBps","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"maximum","type":"uint256"}],"name":"InvalidSignedMaxTokenSupplyForStage","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"maximum","type":"uint256"}],"name":"InvalidSignedMaxTotalMintableByWallet","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"minimum","type":"uint256"}],"name":"InvalidSignedMintPrice","type":"error"},{"inputs":[{"internalType":"uint256","name":"got","type":"uint256"},{"internalType":"uint256","name":"minimum","type":"uint256"}],"name":"InvalidSignedStartTime","type":"error"},{"inputs":[],"name":"MintQuantityCannotBeZero","type":"error"},{"inputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"allowed","type":"uint256"}],"name":"MintQuantityExceedsMaxMintedPerWallet","type":"error"},{"inputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"MintQuantityExceedsMaxSupply","type":"error"},{"inputs":[{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"maxTokenSupplyForStage","type":"uint256"}],"name":"MintQuantityExceedsMaxTokenSupplyForStage","type":"error"},{"inputs":[{"internalType":"uint256","name":"currentTimestamp","type":"uint256"},{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"uint256","name":"endTimestamp","type":"uint256"}],"name":"NotActive","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"OnlyINonFungibleSeaDropToken","type":"error"},{"inputs":[],"name":"PayerCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"PayerNotAllowed","type":"error"},{"inputs":[],"name":"PayerNotPresent","type":"error"},{"inputs":[],"name":"SignatureAlreadyUsed","type":"error"},{"inputs":[],"name":"SignedMintsMustRestrictFeeRecipients","type":"error"},{"inputs":[],"name":"SignerCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"SignerNotPresent","type":"error"},{"inputs":[],"name":"TokenGatedDropAllowedNftTokenCannotBeDropToken","type":"error"},{"inputs":[],"name":"TokenGatedDropAllowedNftTokenCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TokenGatedDropStageNotPresent","type":"error"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"allowedNftToken","type":"address"},{"internalType":"uint256","name":"allowedNftTokenId","type":"uint256"}],"name":"TokenGatedNotTokenOwner","type":"error"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"allowedNftToken","type":"address"},{"internalType":"uint256","name":"allowedNftTokenId","type":"uint256"}],"name":"TokenGatedTokenIdAlreadyRedeemed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"bytes32","name":"previousMerkleRoot","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"},{"indexed":false,"internalType":"string[]","name":"publicKeyURI","type":"string[]"},{"indexed":false,"internalType":"string","name":"allowListURI","type":"string"}],"name":"AllowListUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"feeRecipient","type":"address"},{"indexed":true,"internalType":"bool","name":"allowed","type":"bool"}],"name":"AllowedFeeRecipientUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"newPayoutAddress","type":"address"}],"name":"CreatorPayoutAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":false,"internalType":"string","name":"newDropURI","type":"string"}],"name":"DropURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"payer","type":"address"},{"indexed":true,"internalType":"bool","name":"allowed","type":"bool"}],"name":"PayerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"components":[{"internalType":"uint80","name":"mintPrice","type":"uint80"},{"internalType":"uint48","name":"startTime","type":"uint48"},{"internalType":"uint48","name":"endTime","type":"uint48"},{"internalType":"uint16","name":"maxTotalMintableByWallet","type":"uint16"},{"internalType":"uint16","name":"feeBps","type":"uint16"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"indexed":false,"internalType":"struct PublicDrop","name":"publicDrop","type":"tuple"}],"name":"PublicDropUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"feeRecipient","type":"address"},{"indexed":false,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantityMinted","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unitMintPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeBps","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dropStageIndex","type":"uint256"}],"name":"SeaDropMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"components":[{"internalType":"uint80","name":"minMintPrice","type":"uint80"},{"internalType":"uint24","name":"maxMaxTotalMintableByWallet","type":"uint24"},{"internalType":"uint40","name":"minStartTime","type":"uint40"},{"internalType":"uint40","name":"maxEndTime","type":"uint40"},{"internalType":"uint40","name":"maxMaxTokenSupplyForStage","type":"uint40"},{"internalType":"uint16","name":"minFeeBps","type":"uint16"},{"internalType":"uint16","name":"maxFeeBps","type":"uint16"}],"indexed":false,"internalType":"struct SignedMintValidationParams","name":"signedMintValidationParams","type":"tuple"}],"name":"SignedMintValidationParamsUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nftContract","type":"address"},{"indexed":true,"internalType":"address","name":"allowedNftToken","type":"address"},{"components":[{"internalType":"uint80","name":"mintPrice","type":"uint80"},{"internalType":"uint16","name":"maxTotalMintableByWallet","type":"uint16"},{"internalType":"uint48","name":"startTime","type":"uint48"},{"internalType":"uint48","name":"endTime","type":"uint48"},{"internalType":"uint8","name":"dropStageIndex","type":"uint8"},{"internalType":"uint32","name":"maxTokenSupplyForStage","type":"uint32"},{"internalType":"uint16","name":"feeBps","type":"uint16"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"indexed":false,"internalType":"struct TokenGatedDropStage","name":"dropStage","type":"tuple"}],"name":"TokenGatedDropStageUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getAllowListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getAllowedFeeRecipients","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"allowedNftToken","type":"address"},{"internalType":"uint256","name":"allowedNftTokenId","type":"uint256"}],"name":"getAllowedNftTokenIdIsRedeemed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getCreatorPayoutAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"getFeeRecipientIsAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"payer","type":"address"}],"name":"getPayerIsAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getPayers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getPublicDrop","outputs":[{"components":[{"internalType":"uint80","name":"mintPrice","type":"uint80"},{"internalType":"uint48","name":"startTime","type":"uint48"},{"internalType":"uint48","name":"endTime","type":"uint48"},{"internalType":"uint16","name":"maxTotalMintableByWallet","type":"uint16"},{"internalType":"uint16","name":"feeBps","type":"uint16"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"internalType":"struct PublicDrop","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"signer","type":"address"}],"name":"getSignedMintValidationParams","outputs":[{"components":[{"internalType":"uint80","name":"minMintPrice","type":"uint80"},{"internalType":"uint24","name":"maxMaxTotalMintableByWallet","type":"uint24"},{"internalType":"uint40","name":"minStartTime","type":"uint40"},{"internalType":"uint40","name":"maxEndTime","type":"uint40"},{"internalType":"uint40","name":"maxMaxTokenSupplyForStage","type":"uint40"},{"internalType":"uint16","name":"minFeeBps","type":"uint16"},{"internalType":"uint16","name":"maxFeeBps","type":"uint16"}],"internalType":"struct SignedMintValidationParams","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getSigners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"}],"name":"getTokenGatedAllowedTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"allowedNftToken","type":"address"}],"name":"getTokenGatedDrop","outputs":[{"components":[{"internalType":"uint80","name":"mintPrice","type":"uint80"},{"internalType":"uint16","name":"maxTotalMintableByWallet","type":"uint16"},{"internalType":"uint48","name":"startTime","type":"uint48"},{"internalType":"uint48","name":"endTime","type":"uint48"},{"internalType":"uint8","name":"dropStageIndex","type":"uint8"},{"internalType":"uint32","name":"maxTokenSupplyForStage","type":"uint32"},{"internalType":"uint16","name":"feeBps","type":"uint16"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"internalType":"struct TokenGatedDropStage","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"address","name":"minterIfNotPayer","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"components":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxTotalMintableByWallet","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"dropStageIndex","type":"uint256"},{"internalType":"uint256","name":"maxTokenSupplyForStage","type":"uint256"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"internalType":"struct MintParams","name":"mintParams","type":"tuple"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"address","name":"minterIfNotPayer","type":"address"},{"components":[{"internalType":"address","name":"allowedNftToken","type":"address"},{"internalType":"uint256[]","name":"allowedNftTokenIds","type":"uint256[]"}],"internalType":"struct TokenGatedMintParams","name":"mintParams","type":"tuple"}],"name":"mintAllowedTokenHolder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"address","name":"minterIfNotPayer","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract","type":"address"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"address","name":"minterIfNotPayer","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"components":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"maxTotalMintableByWallet","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"dropStageIndex","type":"uint256"},{"internalType":"uint256","name":"maxTokenSupplyForStage","type":"uint256"},{"internalType":"uint256","name":"feeBps","type":"uint256"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"internalType":"struct MintParams","name":"mintParams","type":"tuple"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintSigned","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"string[]","name":"publicKeyURIs","type":"string[]"},{"internalType":"string","name":"allowListURI","type":"string"}],"internalType":"struct AllowListData","name":"allowListData","type":"tuple"}],"name":"updateAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"updateAllowedFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_payoutAddress","type":"address"}],"name":"updateCreatorPayoutAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"dropURI","type":"string"}],"name":"updateDropURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"payer","type":"address"},{"internalType":"bool","name":"allowed","type":"bool"}],"name":"updatePayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint80","name":"mintPrice","type":"uint80"},{"internalType":"uint48","name":"startTime","type":"uint48"},{"internalType":"uint48","name":"endTime","type":"uint48"},{"internalType":"uint16","name":"maxTotalMintableByWallet","type":"uint16"},{"internalType":"uint16","name":"feeBps","type":"uint16"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"internalType":"struct PublicDrop","name":"publicDrop","type":"tuple"}],"name":"updatePublicDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"components":[{"internalType":"uint80","name":"minMintPrice","type":"uint80"},{"internalType":"uint24","name":"maxMaxTotalMintableByWallet","type":"uint24"},{"internalType":"uint40","name":"minStartTime","type":"uint40"},{"internalType":"uint40","name":"maxEndTime","type":"uint40"},{"internalType":"uint40","name":"maxMaxTokenSupplyForStage","type":"uint40"},{"internalType":"uint16","name":"minFeeBps","type":"uint16"},{"internalType":"uint16","name":"maxFeeBps","type":"uint16"}],"internalType":"struct SignedMintValidationParams","name":"signedMintValidationParams","type":"tuple"}],"name":"updateSignedMintValidationParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"allowedNftToken","type":"address"},{"components":[{"internalType":"uint80","name":"mintPrice","type":"uint80"},{"internalType":"uint16","name":"maxTotalMintableByWallet","type":"uint16"},{"internalType":"uint48","name":"startTime","type":"uint48"},{"internalType":"uint48","name":"endTime","type":"uint48"},{"internalType":"uint8","name":"dropStageIndex","type":"uint8"},{"internalType":"uint32","name":"maxTokenSupplyForStage","type":"uint32"},{"internalType":"uint16","name":"feeBps","type":"uint16"},{"internalType":"bool","name":"restrictFeeRecipients","type":"bool"}],"internalType":"struct TokenGatedDropStage","name":"dropStage","type":"tuple"}],"name":"updateTokenGatedDrop","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405260016000554660805234801561001957600080fd5b506100c2604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f752a02269614d51d9b7bd0a2f05cf03e553ce6be8b487650a6a2a4990208d804918101919091527fe6bbd6277e1bf288eed5e8d1780f9a50b239e86b153736bceebccf4ea79d90b360608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60a05260805160a051615259620000eb60003960006139350152600061386001526152596000f3fe60806040526004361061018b5760003560e01c80637c35b982116100d657806399eb900f1161007f578063e583141d11610059578063e583141d14610884578063ebb4a55f146108da578063fd9ab22a146108fa57600080fd5b806399eb900f146106a2578063b957d0cb146106b5578063bc6a629c146106d557600080fd5b806381bf9af3116100b057806381bf9af31461043057806388aa3d37146106255780638e7d1e431461068257600080fd5b80637c35b982146103d05780637e3ba6af146103f05780637f2a5cca1461041057600080fd5b806332bf11f5116101385780634d380178116101125780634d380178146103255780635cb3c4d31461034557806368632274146103b057600080fd5b806332bf11f5146102ae5780634300a4e6146102ff5780634b61cd6f1461031257600080fd5b8063161ac21f11610169578063161ac21f146102085780632db526eb1461021b578063322e75d11461024857600080fd5b806301308e65146101905780630b0e8a6e146101b257806312738db8146101e8575b600080fd5b34801561019c57600080fd5b506101b06101ab366004613ce8565b61091a565b005b3480156101be57600080fd5b506101d26101cd366004613d22565b610aaf565b6040516101df9190613d5b565b60405180910390f35b3480156101f457600080fd5b506101b0610203366004613e01565b610c41565b6101b0610216366004613e1e565b610dda565b34801561022757600080fd5b5061023b610236366004613e01565b610ff9565b6040516101df9190613e6f565b34801561025457600080fd5b5061029e610263366004613d22565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260046020908152604080832093909416825291909152205460ff1690565b60405190151581526020016101df565b3480156102ba57600080fd5b506102f16102c9366004613e01565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6040519081526020016101df565b6101b061030d366004613edc565b611089565b6101b0610320366004613fe9565b611266565b34801561033157600080fd5b506101b061034036600461408c565b611471565b34801561035157600080fd5b5061038b610360366004613e01565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600260205260409020541690565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101df565b3480156103bc57600080fd5b5061023b6103cb366004613e01565b6117cf565b3480156103dc57600080fd5b5061023b6103eb366004613e01565b61185d565b3480156103fc57600080fd5b5061023b61040b366004613e01565b6118eb565b34801561041c57600080fd5b506101b061042b36600461410a565b611979565b34801561043c57600080fd5b506105a561044b366004613d22565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091525073ffffffffffffffffffffffffffffffffffffffff9182166000908152600660209081526040808320939094168252918252829020825160e081018452905469ffffffffffffffffffff811682526a0100000000000000000000810462ffffff16928201929092526d0100000000000000000000000000820464ffffffffff90811693820193909352720100000000000000000000000000000000000082048316606082015277010000000000000000000000000000000000000000000000820490921660808301527c0100000000000000000000000000000000000000000000000000000000810461ffff90811660a08401527e010000000000000000000000000000000000000000000000000000000000009091041660c082015290565b6040516101df9190600060e08201905069ffffffffffffffffffff835116825262ffffff6020840151166020830152604083015164ffffffffff8082166040850152806060860151166060850152806080860151166080850152505060a083015161ffff80821660a08501528060c08601511660c0850152505092915050565b34801561063157600080fd5b5061029e610640366004614138565b73ffffffffffffffffffffffffffffffffffffffff9283166000908152600d602090815260408083209490951682529283528381209181529152205460ff1690565b34801561068e57600080fd5b506101b061069d36600461410a565b611cae565b6101b06106b0366004614179565b611fe3565b3480156106c157600080fd5b506101b06106d03660046141f3565b6124a3565b3480156106e157600080fd5b506108126106f0366004613e01565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a08101919091525073ffffffffffffffffffffffffffffffffffffffff16600090815260016020908152604091829020825160c081018452905469ffffffffffffffffffff8116825265ffffffffffff6a0100000000000000000000820481169383019390935270010000000000000000000000000000000081049092169281019290925261ffff7601000000000000000000000000000000000000000000008204811660608401527801000000000000000000000000000000000000000000000000820416608083015260ff7a01000000000000000000000000000000000000000000000000000090910416151560a082015290565b6040516101df9190600060c08201905069ffffffffffffffffffff8351168252602083015165ffffffffffff80821660208501528060408601511660408501525050606083015161ffff8082166060850152806080860151166080850152505060a0830151151560a083015292915050565b34801561089057600080fd5b5061029e61089f366004613d22565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260096020908152604080832093909416825291909152205460ff1690565b3480156108e657600080fd5b506101b06108f5366004614235565b6125c7565b34801561090657600080fd5b506101b0610915366004614270565b61270e565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa15801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b291906142a7565b6109ef576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b612710610a0260a08301608084016142df565b61ffff161115610a5557610a1c60a08201608083016142df565b6040517f3329f93200000000000000000000000000000000000000000000000000000000815261ffff90911660048201526024016109e6565b3360009081526001602052604090208190610a70828261434f565b505060405133907f3e30d8e1f739ea4795c481b21c23f905e938b80339305f3508e43c558e5dead390610aa4908490614551565b60405180910390a250565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101919091525073ffffffffffffffffffffffffffffffffffffffff8083166000908152600b60209081526040808320938516835292815290829020825161010081018452905469ffffffffffffffffffff8116825261ffff6a0100000000000000000000820481169383019390935265ffffffffffff6c01000000000000000000000000820481169483019490945272010000000000000000000000000000000000008104909316606082015260ff780100000000000000000000000000000000000000000000000084048116608083015263ffffffff79010000000000000000000000000000000000000000000000000085041660a08301527d010000000000000000000000000000000000000000000000000000000000840490921660c08201527f010000000000000000000000000000000000000000000000000000000000000090920416151560e08201525b92915050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd991906142a7565b610d11576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b73ffffffffffffffffffffffffffffffffffffffff8116610d5e576040517f3f00976900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590519092917f0c69f21751e800ea5960436c9a94370c7adbf54c733a20a025293fbbe8f1625291a350565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604091829020825160c081018452905469ffffffffffffffffffff8116825265ffffffffffff6a01000000000000000000008204811693830184905270010000000000000000000000000000000082041693820184905261ffff7601000000000000000000000000000000000000000000008204811660608401527801000000000000000000000000000000000000000000000000820416608083015260ff7a01000000000000000000000000000000000000000000000000000090910416151560a082015291610ece9190612a86565b805169ffffffffffffffffffff16610ee68382612ade565b600073ffffffffffffffffffffffffffffffffffffffff8516610f095733610f0b565b845b905073ffffffffffffffffffffffffffffffffffffffff81163314610f945773ffffffffffffffffffffffffffffffffffffffff8716600090815260096020908152604080832033845290915290205460ff16610f94576040517f1fe7da0800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fc9878286866060015161ffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff612b34565b610fd887878560a00151612d15565b610ff0878286856000886080015161ffff168c612dd9565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600c602090815260409182902080548351818402810184019094528084526060939283018282801561107d57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611052575b50505050509050919050565b61109b83604001358460600135612a86565b82356110a78582612ade565b600073ffffffffffffffffffffffffffffffffffffffff87166110ca57336110cc565b865b905073ffffffffffffffffffffffffffffffffffffffff811633146111555773ffffffffffffffffffffffffffffffffffffffff8916600090815260096020908152604080832033845290915290205460ff16611155576040517f1fe7da0800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61116a89828888602001358960a00135612b34565b6111858989611180610100890160e08a016145eb565b612d15565b61120e848480806020026020016040519081016040528093929190818152602001838360200280828437600092018290525073ffffffffffffffffffffffffffffffffffffffff8f168152600360209081526040918290205491519194506111f393508792508b9101614608565b60405160208183030381529060405280519060200120612f62565b611244576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61125b8982888589608001358a60c001358e612dd9565b505050505050505050565b61127884604001358560600135612a86565b611283858535612ade565b600073ffffffffffffffffffffffffffffffffffffffff87166112a657336112a8565b865b905073ffffffffffffffffffffffffffffffffffffffff811633146113315773ffffffffffffffffffffffffffffffffffffffff8916600090815260096020908152604080832033845290915290205460ff16611331576040517f1fe7da0800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61134689828888602001358960a00135612b34565b61135c8989611180610100890160e08a016145eb565b60006113798a838b611373368b90038b018b61468c565b89612f78565b60008181526008602052604090205490915060ff16156113c5576040517f900bb2c900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600081815260086020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558051601f870183900483028101830190915285815261143b918790879081908401838280828437600092019190915250869392505061313c9050565b90506114568b611450368a90038a018a61468c565b83613160565b5061125b9050898288883560808a013560c08b01358e612dd9565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa1580156114e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150991906142a7565b611541576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b73ffffffffffffffffffffffffffffffffffffffff821661158e576040517fcfb6108a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6127106115a160c0830160a084016142df565b61ffff1611156115bb57610a1c60c0820160a083016142df565b6127106115ce60e0830160c084016142df565b61ffff1611156115e857610a1c60e0820160c083016142df565b3360009081526007602090815260408083206006835281842073ffffffffffffffffffffffffffffffffffffffff871685528084528285208054929591949093921592829161163b918901908901614758565b62ffffff1611905080156116d85773ffffffffffffffffffffffffffffffffffffffff87166000908152602085905260409020869061167a8282614795565b505081156116d35784546001810186556000868152602090200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff89161790555b611761565b82546a0100000000000000000000900462ffffff16600003611726576040517fb40637e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600090815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff8b16845290915281205561176187866135b3565b8673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fcaeb4009c05208df426d15ff50b608287b05d21dee1f790552ea451a540a7be0886040516117be91906149de565b60405180910390a350505050505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526005602090815260409182902080548351818402810184019094528084526060939283018282801561107d5760200282019190600052602060002090815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116110525750505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602090815260409182902080548351818402810184019094528084526060939283018282801561107d5760200282019190600052602060002090815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116110525750505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526007602090815260409182902080548351818402810184019094528084526060939283018282801561107d5760200282019190600052602060002090815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116110525750505050509050919050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa1580156119ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1191906142a7565b611a49576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b73ffffffffffffffffffffffffffffffffffffffff8216611a96576040517fd34468bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600a6020908152604080832060099092529091208215611ba25773ffffffffffffffffffffffffffffffffffffffff841660009081526020829052604090205460ff1615611b16576040517fd48fd2e600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416600081815260208381526040822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558554908101865585835291200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055611c61565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020829052604090205460ff16611c01576040517f4cc1171300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600090815260096020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055611c6184836135b3565b6040518315159073ffffffffffffffffffffffffffffffffffffffff86169033907f55a5cfa4bc68ffb9d833b75bf93f6d9c9aadc558dbfa587a9b5bb0ea7d5c38a390600090a450505050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa158015611d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d4691906142a7565b611d7e576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b73ffffffffffffffffffffffffffffffffffffffff8216611dcb576040517f5136e8d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600090815260056020908152604080832060049092529091208215611ed75773ffffffffffffffffffffffffffffffffffffffff841660009081526020829052604090205460ff1615611e4b576040517f798701ac00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8416600081815260208381526040822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558554908101865585835291200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169091179055611f96565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020829052604090205460ff16611f36576040517f0998fbbd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b33600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff88168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055611f9684836135b3565b6040518315159073ffffffffffffffffffffffffffffffffffffffff86169033907f6486c31f9d664e241acf94ec2541d328f6b9e97257ae16a1d887f296f879719f90600090a450505050565b600073ffffffffffffffffffffffffffffffffffffffff83166120065733612008565b825b905073ffffffffffffffffffffffffffffffffffffffff811633146120915773ffffffffffffffffffffffffffffffffffffffff8516600090815260096020908152604080832033845290915290205460ff16612091576040517f1fe7da0800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006120a06020840184613e01565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600b60209081526040808320938516835292815290829020825161010081018452905469ffffffffffffffffffff8116825261ffff6a0100000000000000000000820481169383019390935265ffffffffffff6c010000000000000000000000008204811694830185905272010000000000000000000000000000000000008204166060830181905260ff780100000000000000000000000000000000000000000000000083048116608085015263ffffffff79010000000000000000000000000000000000000000000000000084041660a08501527d010000000000000000000000000000000000000000000000000000000000830490941660c08401527f0100000000000000000000000000000000000000000000000000000000000000909104909216151560e08201529293506121f79190612a86565b61220687878360e00151612d15565b60006122156020860186614a8e565b9050905061223381836000015169ffffffffffffffffffff16612ade565b612252888583856020015161ffff168660a0015163ffffffff16612b34565b60005b8181101561246a57600061226c6020880188614a8e565b8381811061227c5761227c614af6565b9050602002013590508573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016122d791815260200190565b602060405180830381865afa1580156122f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123189190614b25565b73ffffffffffffffffffffffffffffffffffffffff161461238c576040517fda8c7bc700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808c16600483015286166024820152604481018290526064016109e6565b73ffffffffffffffffffffffffffffffffffffffff808b166000908152600d602090815260408083209389168352928152828220848352908190529190205460ff161561242c576040517fa93f299b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808d16600483015287166024820152604481018390526064016109e6565b60009182526020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915501612255565b50612499888583856000015169ffffffffffffffffffff16866080015160ff168760c0015161ffff168d612dd9565b5050505050505050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa158015612517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253b91906142a7565b612573576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b3373ffffffffffffffffffffffffffffffffffffffff167fa0295608d25b3033c2e2c41cbac8746c2d08767bcfde6d47fae1ed7ba1d3215083836040516125bb929190614b8b565b60405180910390a25050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa15801561263b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061265f91906142a7565b612697576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b33600081815260036020908152604090912080548435918290559290918391907fefcd7e019bc8b47d27881fd59e2619280ca5894f285950f10ab049870652efa5906126e590870187614a8e565b6126f26040890189614ba7565b6040516127029493929190614c0c565b60405180910390a45050565b6040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f1890fe8e00000000000000000000000000000000000000000000000000000000600482015233906301ffc9a790602401602060405180830381865afa158015612782573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127a691906142a7565b6127de576040517f32c5d8cf0000000000000000000000000000000000000000000000000000000081523360048201526024016109e6565b73ffffffffffffffffffffffffffffffffffffffff821661282b576040517f67156a2d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff83160361287a576040517f17817dd800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61271061288d60e0830160c084016142df565b61ffff1611156128a757610a1c60e0820160c083016142df565b60006128b960408301602084016142df565b336000818152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff891684528252808320938352600c9091529020815461ffff939093161580159450919290919015906129a657336000908152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152902085906129488282614d34565b505080156129a15781546001810183556000838152602090200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff88161790555b612a19565b80156129de576040517f2b60a32f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000908152600b6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a168452909152812055612a1986836135b3565b8573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fc695f93ae16034280e4fc93181b6afca9af23027ac1f1842a2287ba25cdc447687604051612a769190614ff6565b60405180910390a3505050505050565b81421080612a9357508042115b15612ada576040517f13da22f200000000000000000000000000000000000000000000000000000000815242600482015260248101839052604481018290526064016109e6565b5050565b612ae881836150e7565b3414612ada5734612af982846150e7565b6040517f0d35e921000000000000000000000000000000000000000000000000000000008152600481019290925260248201526044016109e6565b82600003612b6e576040517f198441cb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f840e15d400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152600091829182919089169063840e15d490602401606060405180830381865afa158015612be2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0691906150fe565b9194509250905084612c18848861512c565b1115612c6557612c28838761512c565b6040517fedc012730000000000000000000000000000000000000000000000000000000081526004810191909152602481018690526044016109e6565b80612c70838861512c565b1115612cbd57612c80828761512c565b6040517fe12d23140000000000000000000000000000000000000000000000000000000081526004810191909152602481018290526044016109e6565b83612cc8838861512c565b111561249957612cd8828761512c565b6040517fb98dabea0000000000000000000000000000000000000000000000000000000081526004810191909152602481018590526044016109e6565b73ffffffffffffffffffffffffffffffffffffffff8216612d62576040517f5136e8d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612dd45773ffffffffffffffffffffffffffffffffffffffff80841660009081526004602090815260408083209386168352929052205460ff16612dd4576040517ff477d26f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b600054600114612e45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f5245454e5452414e43590000000000000000000000000000000000000000000060448201526064016109e6565b60026000556040517f64869dad00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8781166004830152602482018790528816906364869dad90604401600060405180830381600087803b158015612eba57600080fd5b505af1158015612ece573d6000803e3d6000fd5b5050505083600014612ee557612ee5878284613726565b6040805133815260208101879052908101859052606081018390526080810184905273ffffffffffffffffffffffffffffffffffffffff80831691888216918a16907fe90cf9cc0a552cf52ea6ff74ece0f1c8ae8cc9ad630d3181f55ac43ca076b7d69060a00160405180910390a4505060016000555050505050565b600082612f6f8584613817565b14949350505050565b6000807f632d30b7600fe596b016656d5dc3bc1e2c318bf422c8844e42871665322c484b846000015185602001518660400151876060015188608001518960a001518a60c001518b60e0015160405160200161301899989796959493929190988952602089019790975260408801959095526060870193909352608086019190915260a085015260c084015260e083015215156101008201526101200190565b60405160208183030381529060405280519060200120905061190160f01b61303e61385c565b604080517f8927086ec138a7aa6009c4966fc394504ae49ab0c06ae815b48e32e85c8279c7602082015273ffffffffffffffffffffffffffffffffffffffff808c1692820192909252818a166060820152908816608082015260a0810184905260c0810186905260e001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905280516020918201207fffff00000000000000000000000000000000000000000000000000000000000090941690820152602281019190915260428101919091526062016040516020818303038152906040528051906020012091505095945050505050565b600080600061314b8585613957565b915091506131588161399c565b509392505050565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526006602090815260408083209385168352928152828220835160e081018552905469ffffffffffffffffffff8116825262ffffff6a010000000000000000000082041692820183905264ffffffffff6d010000000000000000000000000082048116958301959095527201000000000000000000000000000000000000810485166060830152770100000000000000000000000000000000000000000000008104909416608082015261ffff7c01000000000000000000000000000000000000000000000000000000008504811660a08301527e0100000000000000000000000000000000000000000000000000000000000090940490931660c084015290036132cb576040517fd855c4f400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff831660048201526024016109e6565b8051835169ffffffffffffffffffff909116111561332e57825181516040517fa0c3ed0a000000000000000000000000000000000000000000000000000000008152600481019290925269ffffffffffffffffffff1660248201526044016109e6565b806020015162ffffff168360200151111561338d57602080840151908201516040517f4f430578000000000000000000000000000000000000000000000000000000008152600481019290925262ffffff1660248201526044016109e6565b806040015164ffffffffff16836040015110156133f257826040015181604001516040517f333d33d00000000000000000000000000000000000000000000000000000000081526004016109e692919091825264ffffffffff16602082015260400190565b806060015164ffffffffff168360600151111561345557606080840151908201516040517f6e1d357d000000000000000000000000000000000000000000000000000000008152600481019290925264ffffffffff1660248201526044016109e6565b806080015164ffffffffff168360a0015111156134b85760a083015160808201516040517f6d029c50000000000000000000000000000000000000000000000000000000008152600481019290925264ffffffffff1660248201526044016109e6565b8060c0015161ffff168360c0015111156135155760c080840151908201516040517f79fc44ed000000000000000000000000000000000000000000000000000000008152600481019290925261ffff1660248201526044016109e6565b8060a0015161ffff168360c0015110156135725760c083015160a08201516040517f79fc44ed000000000000000000000000000000000000000000000000000000008152600481019290925261ffff1660248201526044016109e6565b8260e001516135ad576040517fdb8b2fad00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b805460005b818110156135ad578373ffffffffffffffffffffffffffffffffffffffff168382815481106135e9576135e9614af6565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff160361371e578261361c60018461513f565b8154811061362c5761362c614af6565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683828154811061366957613669614af6565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828054806136c1576136c1615152565b60008281526020902081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690550190556135ad565b6001016135b8565b612710811115613765576040517f3329f932000000000000000000000000000000000000000000000000000000008152600481018290526024016109e6565b73ffffffffffffffffffffffffffffffffffffffff80841660009081526002602052604090205416806137c4576040517f3f00976900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816000036137d6576135ad8134613b52565b60006127106137e584346150e7565b6137ef9190615181565b9050348190038115613805576138058583613b52565b61380f8382613b52565b505050505050565b600081815b8451811015613158576138488286838151811061383b5761383b614af6565b6020026020010151613bc7565b915080613854816151bc565b91505061381c565b60007f000000000000000000000000000000000000000000000000000000000000000046146139325761392d604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f752a02269614d51d9b7bd0a2f05cf03e553ce6be8b487650a6a2a4990208d804918101919091527fe6bbd6277e1bf288eed5e8d1780f9a50b239e86b153736bceebccf4ea79d90b360608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b600080825160410361398d5760208301516040840151606085015160001a61398187828585613bf9565b94509450505050613995565b506000905060025b9250929050565b60008160048111156139b0576139b06151f4565b036139b85750565b60018160048111156139cc576139cc6151f4565b03613a33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016109e6565b6002816004811115613a4757613a476151f4565b03613aae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016109e6565b6003816004811115613ac257613ac26151f4565b03613b4f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016109e6565b50565b600080600080600085875af1905080612dd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4554485f5452414e534645525f4641494c45440000000000000000000000000060448201526064016109e6565b6000818310613be3576000828152602084905260409020613bf2565b60008381526020839052604090205b9392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613c305750600090506003613cdf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613c84573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116613cd857600060019250925050613cdf565b9150600090505b94509492505050565b600060c08284031215613cfa57600080fd5b50919050565b73ffffffffffffffffffffffffffffffffffffffff81168114613b4f57600080fd5b60008060408385031215613d3557600080fd5b8235613d4081613d00565b91506020830135613d5081613d00565b809150509250929050565b60006101008201905069ffffffffffffffffffff835116825261ffff6020840151166020830152604083015165ffffffffffff808216604085015280606086015116606085015250506080830151613db8608084018260ff169052565b5060a0830151613dd060a084018263ffffffff169052565b5060c0830151613de660c084018261ffff169052565b5060e0830151613dfa60e084018215159052565b5092915050565b600060208284031215613e1357600080fd5b8135613bf281613d00565b60008060008060808587031215613e3457600080fd5b8435613e3f81613d00565b93506020850135613e4f81613d00565b92506040850135613e5f81613d00565b9396929550929360600135925050565b6020808252825182820181905260009190848201906040850190845b81811015613ebd57835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101613e8b565b50909695505050505050565b60006101008284031215613cfa57600080fd5b60008060008060008060006101a0888a031215613ef857600080fd5b8735613f0381613d00565b96506020880135613f1381613d00565b95506040880135613f2381613d00565b945060608801359350613f398960808a01613ec9565b925061018088013567ffffffffffffffff80821115613f5757600080fd5b818a0191508a601f830112613f6b57600080fd5b813581811115613f7a57600080fd5b8b60208260051b8501011115613f8f57600080fd5b60208301945080935050505092959891949750929550565b60008083601f840112613fb957600080fd5b50813567ffffffffffffffff811115613fd157600080fd5b60208301915083602082850101111561399557600080fd5b6000806000806000806000806101c0898b03121561400657600080fd5b883561401181613d00565b9750602089013561402181613d00565b9650604089013561403181613d00565b9550606089013594506140478a60808b01613ec9565b935061018089013592506101a089013567ffffffffffffffff81111561406c57600080fd5b6140788b828c01613fa7565b999c989b5096995094979396929594505050565b6000808284036101008112156140a157600080fd5b83356140ac81613d00565b925060e07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0820112156140de57600080fd5b506020830190509250929050565b8015158114613b4f57600080fd5b8035614105816140ec565b919050565b6000806040838503121561411d57600080fd5b823561412881613d00565b91506020830135613d50816140ec565b60008060006060848603121561414d57600080fd5b833561415881613d00565b9250602084013561416881613d00565b929592945050506040919091013590565b6000806000806080858703121561418f57600080fd5b843561419a81613d00565b935060208501356141aa81613d00565b925060408501356141ba81613d00565b9150606085013567ffffffffffffffff8111156141d657600080fd5b8501604081880312156141e857600080fd5b939692955090935050565b6000806020838503121561420657600080fd5b823567ffffffffffffffff81111561421d57600080fd5b61422985828601613fa7565b90969095509350505050565b60006020828403121561424757600080fd5b813567ffffffffffffffff81111561425e57600080fd5b820160608185031215613bf257600080fd5b600080610120838503121561428457600080fd5b823561428f81613d00565b915061429e8460208501613ec9565b90509250929050565b6000602082840312156142b957600080fd5b8151613bf2816140ec565b61ffff81168114613b4f57600080fd5b8035614105816142c4565b6000602082840312156142f157600080fd5b8135613bf2816142c4565b69ffffffffffffffffffff81168114613b4f57600080fd5b65ffffffffffff81168114613b4f57600080fd5b60008135610c3b81614314565b60008135610c3b816142c4565b60008135610c3b816140ec565b813561435a816142fc565b81547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001669ffffffffffffffffffff821617825550602082013561439d81614314565b81546fffffffffffff000000000000000000008260501b169150817fffffffffffffffffffffffffffffffff000000000000ffffffffffffffffffff821617835560408401356143ec81614314565b75ffffffffffff000000000000000000000000000000008160801b16905080837fffffffffffffffffffff000000000000000000000000ffffffffffffffffffff8416171784556060850135614441816142c4565b77ffff000000000000000000000000000000000000000000008160b01b16847fffffffffffffffff0000000000000000000000000000ffffffffffffffffffff8516178317178555505050506144e761449c60808401614335565b82547fffffffffffff0000ffffffffffffffffffffffffffffffffffffffffffffffff1660c09190911b79ffff00000000000000000000000000000000000000000000000016178255565b612ada6144f660a08401614342565b8280547fffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffff1691151560d01b7aff000000000000000000000000000000000000000000000000000016919091179055565b803561410581614314565b60c081018235614560816142fc565b69ffffffffffffffffffff168252602083013561457c81614314565b65ffffffffffff908116602084015260408401359061459a82614314565b16604083015260608301356145ae816142c4565b61ffff90811660608401526080840135906145c8826142c4565b16608083015260a08301356145dc816140ec565b80151560a08401525092915050565b6000602082840312156145fd57600080fd5b8135613bf2816140ec565b60006101208201905073ffffffffffffffffffffffffffffffffffffffff8416825282356020830152602083013560408301526040830135606083015260608301356080830152608083013560a083015260a083013560c083015260c083013560e083015260e083013561467b816140ec565b801515610100840152509392505050565b60006101008083850312156146a057600080fd5b6040519081019067ffffffffffffffff821181831017156146ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b81604052833581526020840135602082015260408401356040820152606084013560608201526080840135608082015260a084013560a082015260c084013560c082015261473a60e085016140fa565b60e0820152949350505050565b62ffffff81168114613b4f57600080fd5b60006020828403121561476a57600080fd5b8135613bf281614747565b64ffffffffff81168114613b4f57600080fd5b60008135610c3b81614775565b81356147a0816142fc565b81547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001669ffffffffffffffffffff82161782555060208201356147e381614747565b81546cffffff000000000000000000008260501b169150817fffffffffffffffffffffffffffffffffffffff000000ffffffffffffffffffff8216178355604084013561482f81614775565b71ffffffffff000000000000000000000000008160681b16837fffffffffffffffffffffffffffff0000000000000000ffffffffffffffffffff841617178455505050606082013561488081614775565b81547fffffffffffffffffff0000000000ffffffffffffffffffffffffffffffffffff16609082901b76ffffffffff00000000000000000000000000000000000016178255506149226148d560808401614788565b82547fffffffff0000000000ffffffffffffffffffffffffffffffffffffffffffffff1660b89190911b7bffffffffff000000000000000000000000000000000000000000000016178255565b61498061493160a08401614335565b82547fffff0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660e09190911b7dffff0000000000000000000000000000000000000000000000000000000016178255565b612ada61498f60c08401614335565b82547dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660f09190911b7fffff00000000000000000000000000000000000000000000000000000000000016178255565b60e0810182356149ed816142fc565b69ffffffffffffffffffff1682526020830135614a0981614747565b62ffffff1660208301526040830135614a2181614775565b64ffffffffff9081166040840152606084013590614a3e82614775565b1660608301526080830135614a5281614775565b64ffffffffff166080830152614a6a60a084016142d4565b61ffff1660a0830152614a7f60c084016142d4565b61ffff811660c0840152613dfa565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614ac357600080fd5b83018035915067ffffffffffffffff821115614ade57600080fd5b6020019150600581901b360382131561399557600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215614b3757600080fd5b8151613bf281613d00565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b602081526000614b9f602083018486614b42565b949350505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112614bdc57600080fd5b83018035915067ffffffffffffffff821115614bf757600080fd5b60200191503681900382131561399557600080fd5b6040808252810184905260006060600586901b8301810190830187835b88811015614cd8577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa086850301835281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18b3603018112614c8a57600080fd5b8a01602081810191359067ffffffffffffffff821115614ca957600080fd5b813603831315614cb857600080fd5b614cc3878385614b42565b96509485019493909301925050600101614c29565b5050508281036020840152614cee818587614b42565b979650505050505050565b60ff81168114613b4f57600080fd5b60008135610c3b81614cf9565b63ffffffff81168114613b4f57600080fd5b60008135610c3b81614d15565b8135614d3f816142fc565b81547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001669ffffffffffffffffffff8216178255506020820135614d82816142c4565b81546bffff000000000000000000008260501b169150817fffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffffffff82161783556040840135614dcd81614314565b71ffffffffffff0000000000000000000000008160601b16837fffffffffffffffffffffffffffff0000000000000000ffffffffffffffffffff841617178455505050614e68614e1f60608401614328565b82547fffffffffffffffff000000000000ffffffffffffffffffffffffffffffffffff1660909190911b77ffffffffffff00000000000000000000000000000000000016178255565b614ec1614e7760808401614d08565b82547fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff1660c09190911b78ff00000000000000000000000000000000000000000000000016178255565b614f1e614ed060a08401614d27565b82547fffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffffff1660c89190911b7cffffffff0000000000000000000000000000000000000000000000000016178255565b614f7d614f2d60c08401614335565b82547fff0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1660e89190911b7effff000000000000000000000000000000000000000000000000000000000016178255565b612ada614f8c60e08401614342565b8280547effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1691151560f81b7fff0000000000000000000000000000000000000000000000000000000000000016919091179055565b803561410581614cf9565b803561410581614d15565b61010081018235615006816142fc565b69ffffffffffffffffffff1682526020830135615022816142c4565b61ffff166020830152604083013561503981614314565b65ffffffffffff16604083015261505260608401614546565b65ffffffffffff16606083015261506b60808401614fe0565b60ff16608083015261507f60a08401614feb565b63ffffffff1660a083015261509660c084016142d4565b61ffff1660c08301526150ab60e084016140fa565b80151560e0840152613dfa565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417610c3b57610c3b6150b8565b60008060006060848603121561511357600080fd5b8351925060208401519150604084015190509250925092565b80820180821115610c3b57610c3b6150b8565b81810381811115610c3b57610c3b6150b8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000826151b7577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036151ed576151ed6150b8565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea264697066735822122059417cee21f6f3ebb52e2dca8de151d4233988c1f09fc2244b377210ed4a1c1364736f6c63430008110033

Deployed ByteCode Sourcemap

1216:44439:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33068:495;;;;;;;;;;-1:-1:-1;33068:495:9;;;;;:::i;:::-;;:::i;:::-;;31736:222;;;;;;;;;;-1:-1:-1;31736:222:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;37629:459;;;;;;;;;;-1:-1:-1;37629:459:9;;;;;:::i;:::-;;:::i;6302:1737::-;;;;;;:::i;:::-;;:::i;31306:190::-;;;;;;;;;;-1:-1:-1;31306:190:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;29152:206::-;;;;;;;;;;-1:-1:-1;29152:206:9;;;;;:::i;:::-;29303:34;;;;29276:4;29303:34;;;:21;:34;;;;;;;;:48;;;;;;;;;;;;;;;29152:206;;;;4007:14:15;;4000:22;3982:41;;3970:2;3955:18;29152:206:9;3842:187:15;28806:171:9;;;;;;;;;;-1:-1:-1;28806:171:9;;;;;:::i;:::-;28936:34;;28906:7;28936:34;;;:21;:34;;;;;;;28806:171;;;;4180:25:15;;;4168:2;4153:18;28806:171:9;4034:177:15;8480:1990:9;;;;;;:::i;:::-;;:::i;11085:2648::-;;;;;;:::i;:::-;;:::i;39732:2191::-;;;;;;;;;;-1:-1:-1;39732:2191:9;;;;;:::i;:::-;;:::i;28487:174::-;;;;;;;;;;-1:-1:-1;28487:174:9;;;;;:::i;:::-;28618:36;;;;28588:7;28618:36;;;:23;:36;;;;;;;;28487:174;;;;7739:42:15;7727:55;;;7709:74;;7697:2;7682:18;28487:174:9;7563:226:15;29564:184:9;;;;;;;;;;-1:-1:-1;29564:184:9;;;;;:::i;:::-;;:::i;30607:163::-;;;;;;;;;;-1:-1:-1;30607:163:9;;;;;:::i;:::-;;:::i;29890:165::-;;;;;;;;;;-1:-1:-1;29890:165:9;;;;;:::i;:::-;;:::i;42120:936::-;;;;;;;;;;-1:-1:-1;42120:936:9;;;;;:::i;:::-;;:::i;30244:234::-;;;;;;;;;;-1:-1:-1;30244:234:9;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30423:40:9;;;;;;;;:27;:40;;;;;;;;:48;;;;;;;;;;;;30416:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30244:234;;;;;;;8718:4:15;8760:3;8749:9;8745:19;8737:27;;8810:22;8801:6;8795:13;8791:42;8780:9;8773:61;8902:8;8894:4;8886:6;8882:17;8876:24;8872:39;8865:4;8854:9;8850:20;8843:69;8959:4;8951:6;8947:17;8941:24;8984:12;9052:2;9038:12;9034:21;9027:4;9016:9;9012:20;9005:51;9124:2;9116:4;9108:6;9104:17;9098:24;9094:33;9087:4;9076:9;9072:20;9065:63;9196:2;9188:4;9180:6;9176:17;9170:24;9166:33;9159:4;9148:9;9144:20;9137:63;;;9249:4;9241:6;9237:17;9231:24;9274:6;9338:2;9322:14;9318:23;9311:4;9300:9;9296:20;9289:53;9410:2;9402:4;9394:6;9390:17;9384:24;9380:33;9373:4;9362:9;9358:20;9351:63;;;8538:882;;;;;32268:306:9;;;;;;;;;;-1:-1:-1;32268:306:9;;;;;:::i;:::-;32469:32;;;;32434:4;32469:32;;;:19;:32;;;;;;;;:49;;;;;;;;;;;;:98;;;;;;;;;;32268:306;38292:1131;;;;;;;;;;-1:-1:-1;38292:1131:9;;;;;:::i;:::-;;:::i;16911:3328::-;;;;;;:::i;:::-;;:::i;32707:205::-;;;;;;;;;;-1:-1:-1;32707:205:9;;;;;:::i;:::-;;:::i;28179:163::-;;;;;;;;;;-1:-1:-1;28179:163:9;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28310:25:9;;;;;;:12;:25;;;;;;;;;28303:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28179:163;;;;;;;11271:4:15;11313:3;11302:9;11298:19;11290:27;;11363:22;11354:6;11348:13;11344:42;11333:9;11326:61;11434:4;11426:6;11422:17;11416:24;11459:14;11529:2;11515:12;11511:21;11504:4;11493:9;11489:20;11482:51;11601:2;11593:4;11585:6;11581:17;11575:24;11571:33;11564:4;11553:9;11549:20;11542:63;;;11654:4;11646:6;11642:17;11636:24;11679:6;11743:2;11727:14;11723:23;11716:4;11705:9;11701:20;11694:53;11815:2;11807:4;11799:6;11795:17;11789:24;11785:33;11778:4;11767:9;11763:20;11756:63;;;11889:4;11881:6;11877:17;11871:24;11864:32;11857:40;11850:4;11839:9;11835:20;11828:70;11123:781;;;;;30974:178:9;;;;;;;;;;-1:-1:-1;30974:178:9;;;;;:::i;:::-;31111:27;;;;31084:4;31111:27;;;:14;:27;;;;;;;;:34;;;;;;;;;;;;;;;30974:178;33896:598;;;;;;;;;;-1:-1:-1;33896:598:9;;;;;:::i;:::-;;:::i;35125:2348::-;;;;;;;;;;-1:-1:-1;35125:2348:9;;;;;:::i;:::-;;:::i;33068:495::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;;;;;;;;5569:212;33301:6:::1;33281:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;:26;;;33277:96;;;33344:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;33330:32;::::0;::::1;::::0;;13887:6:15;13875:19;;;33330:32:9::1;::::0;::::1;13857:38:15::0;13830:18;;33330:32:9::1;13712:189:15::0;33277:96:9::1;33433:10;33420:24;::::0;;;:12:::1;:24;::::0;;;;33447:10;;33420:37:::1;33447:10:::0;33420:24;:37:::1;:::i;:::-;-1:-1:-1::0;;33515:41:9::1;::::0;33533:10:::1;::::0;33515:41:::1;::::0;::::1;::::0;33545:10;;33515:41:::1;:::i;:::-;;;;;;;;33068:495:::0;:::o;31736:222::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31905:29:9;;;;;;;;:16;:29;;;;;;;;:46;;;;;;;;;;;;31898:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31736:222;;;;;:::o;37629:459::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;37761:28:::1;::::0;::::1;37757:107;;37812:41;;;;;;;;;;;;;;37757:107;37940:10;37916:35;::::0;;;:23:::1;:35;::::0;;;;;:52;;;::::1;:35;:52:::0;::::1;::::0;;::::1;::::0;;;38026:55;;37916:52;;37940:10;38026:55:::1;::::0;::::1;37629:459:::0;:::o;6302:1737::-;6551:25;;;6520:28;6551:25;;;:12;:25;;;;;;;;;6520:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6632:54;;6520:56;6632:12;:54::i;:::-;6761:20;;6741:40;;6850:41;6871:8;6741:40;6850:20;:41::i;:::-;6937:14;6954:30;;;:86;;7030:10;6954:86;;;6999:16;6954:86;6937:103;-1:-1:-1;7113:20:9;;;7123:10;7113:20;7109:153;;7154:27;;;;;;;:14;:27;;;;;;;;7182:10;7154:39;;;;;;;;;;7149:103;;7220:17;;;;;;;;;;;;;;7149:103;7346:195;7378:11;7403:6;7423:8;7445:10;:35;;;7346:195;;5114:17;7346:18;:195::i;:::-;7618:134;7659:11;7684:12;7710:10;:32;;;7618:27;:134::i;:::-;7826:206;7851:11;7876:6;7896:8;7918:9;5371:1;7979:10;:17;;;7826:206;;8010:12;7826:11;:206::i;:::-;6473:1566;;;6302:1737;;;;:::o;31306:190::-;31449:40;;;;;;;:27;:40;;;;;;;;;31442:47;;;;;;;;;;;;;;;;;31410:16;;31442:47;;;31449:40;31442:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31306:190;;;:::o;8480:1990::-;8786:54;8799:10;:20;;;8821:10;:18;;;8786:12;:54::i;:::-;8915:20;;9004:41;9025:8;8915:20;9004;:41::i;:::-;9091:14;9108:30;;;:86;;9184:10;9108:86;;;9153:16;9108:86;9091:103;-1:-1:-1;9267:20:9;;;9277:10;9267:20;9263:153;;9308:27;;;;;;;:14;:27;;;;;;;;9336:10;9308:39;;;;;;;;;;9303:103;;9374:17;;;;;;;;;;;;;;9303:103;9500:191;9532:11;9557:6;9577:8;9599:10;:35;;;9648:10;:33;;;9500:18;:191::i;:::-;9768:134;9809:11;9834:12;9860:32;;;;;;;;:::i;:::-;9768:27;:134::i;:::-;9960:166;9996:5;;9960:166;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10019:34:9;;;;;:21;:34;;;;;;;;;;10081:30;;10019:34;;-1:-1:-1;10081:30:9;;-1:-1:-1;10092:6:9;;-1:-1:-1;10100:10:9;;10081:30;;:::i;:::-;;;;;;;;;;;;;10071:41;;;;;;9960:18;:166::i;:::-;9942:241;;10158:14;;;;;;;;;;;;;;9942:241;10256:207;10281:11;10306:6;10326:8;10348:9;10371:10;:25;;;10410:10;:17;;;10441:12;10256:11;:207::i;:::-;8728:1742;;8480:1990;;;;;;;:::o;11085:2648::-;11410:54;11423:10;:20;;;11445:10;:18;;;11410:12;:54::i;:::-;11533:52;11554:8;11564:20;;11533;:52::i;:::-;11631:14;11648:30;;;:86;;11724:10;11648:86;;;11693:16;11648:86;11631:103;-1:-1:-1;11807:20:9;;;11817:10;11807:20;11803:153;;11848:27;;;;;;;:14;:27;;;;;;;;11876:10;11848:39;;;;;;;;;;11843:103;;11914:17;;;;;;;;;;;;;;11843:103;12040:191;12072:11;12097:6;12117:8;12139:10;:35;;;12188:10;:33;;;12040:18;:191::i;:::-;12308:134;12349:11;12374:12;12400:32;;;;;;;;:::i;12308:134::-;12608:14;12625:157;12653:11;12682:6;12706:12;12625:157;;;;;;;12736:10;12625:157;:::i;:::-;12764:4;12625:10;:157::i;:::-;12861:20;;;;:12;:20;;;;;;12608:174;;-1:-1:-1;12861:20:9;;12857:88;;;12908:22;;;;;;;;;;;;;;12857:88;12999:20;;;;:12;:20;;;;;;;;:27;;;;13022:4;12999:27;;;13318:25;;;;;;;;;;;;;;;;;;;;;;13333:9;;;;;;13318:25;;13333:9;;;;13318:25;;;;;;;;;-1:-1:-1;13318:6:9;;:25;-1:-1:-1;;13318:14:9;:25;-1:-1:-1;13318:25:9:i;:::-;13291:52;-1:-1:-1;13357:67:9;13382:11;13357:67;;;;;;;13395:10;13357:67;:::i;:::-;13407:16;13357:24;:67::i;:::-;-1:-1:-1;13508:218:9;;-1:-1:-1;13533:11:9;13558:6;13578:8;13600:20;;13634:25;;;;13673:17;;;;13704:12;13508:11;:218::i;39732:2191::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;39928:20:::1;::::0;::::1;39924:85;;39971:27;;;;;;;;;;;;;;39924:85;40062:6;40023:36;::::0;;;::::1;::::0;::::1;;:::i;:::-;:45;;;40019:134;;;40105:36;::::0;;;::::1;::::0;::::1;;:::i;40019:134::-;40205:6;40166:36;::::0;;;::::1;::::0;::::1;;:::i;:::-;:45;;;40162:134;;;40248:36;::::0;;;::::1;::::0;::::1;;:::i;40162:134::-;40404:10;40347:35;40385:30:::0;;;:18:::1;:30;::::0;;;;;;;40524:27:::1;:69:::0;;;;;40385:30:::1;40688:67:::0;::::1;::::0;;;;;;;;40904:46;;40385:30;;40524:69;;40688:67;;40880:84;::::1;::::0;40347:35;;41081:67:::1;::::0;;;;;::::1;;:::i;:::-;:71;;;41062:90;;41167:11;41163:569;;;41194:37;::::0;::::1;;::::0;;;::::1;::::0;;;;;;41234:26;;41194:66:::1;41234:26:::0;41194:37;:66:::1;:::i;:::-;-1:-1:-1::0;;41274:105:9;::::1;;;41334:30:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;41334:30:9;;;::::1;::::0;;::::1;::::0;;;::::1;;::::0;::::1;;::::0;;41274:105:::1;41163:569;;;41430:83:::0;;;;::::1;;;;:88:::0;41409:182:::1;;41558:18;;;;;;;;;;;;;;41409:182;41639:10;41611:39;::::0;;;:27:::1;:39;::::0;;;;;;;::::1;:47:::0;::::1;::::0;;;;;;;41604:54;41672:49:::1;41651:6:::0;41703:17;41672:22:::1;:49::i;:::-;41860:6;41789:127;;41836:10;41789:127;;;41880:26;41789:127;;;;;;:::i;:::-;;;;;;;;39914:2009;;;;;39732:2191:::0;;:::o;29564:184::-;29704:37;;;;;;;:24;:37;;;;;;;;;29697:44;;;;;;;;;;;;;;;;;29665:16;;29697:44;;;29704:37;29697:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29564:184;;;:::o;30607:163::-;30733:30;;;;;;;:17;:30;;;;;;;;;30726:37;;;;;;;;;;;;;;;;;30694:16;;30726:37;;;30733:30;30726:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30607:163;;;:::o;29890:165::-;30017:31;;;;;;;:18;:31;;;;;;;;;30010:38;;;;;;;;;;;;;;;;;29978:16;;30010:38;;;30017:31;30010:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29890:165;;;:::o;42120:936::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;42242:19:::1;::::0;::::1;42238:83;;42284:26;;;;;;;;;;;;;;42238:83;42428:10;42372:35;42410:29:::0;;;:17:::1;:29;::::0;;;;;;;42494:14:::1;:26:::0;;;;;;42531:421;::::1;;;42562:16;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;::::1;;42558:78;;;42605:16;;;;;;;;;;;;;;42558:78;42649:16;::::0;::::1;;::::0;;;::::1;::::0;;;;;;:23;;;::::1;42668:4;42649:23:::0;;::::1;::::0;;;42686:29;;;;::::1;::::0;;;;;;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;42531:421:::1;;;42751:16;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;::::1;;42746:80;;42794:17;;;;;;;;;;;;;;42746:80;42861:10;42846:26;::::0;;;:14:::1;:26;::::0;;;;;;;::::1;:33:::0;::::1;::::0;;;;;;;42839:40;;;::::1;::::0;;42893:48:::1;42873:5:::0;42923:17;42893:22:::1;:48::i;:::-;43009:40;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;43022:10:::1;::::0;43009:40:::1;::::0;;;::::1;42228:828;;42120:936:::0;;:::o;38292:1131::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;38435:26:::1;::::0;::::1;38431:97;;38484:33;;;;;;;;;;;;;;38431:97;38655:10;38579:35;38617:58:::0;;;:24:::1;:58;::::0;;;;;;;38749:21:::1;:33:::0;;;;;;38793:505;::::1;;;38824:30;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;::::1;;38820:99;;;38881:23;;;;;;;;;;;;;;38820:99;38932:30;::::0;::::1;;::::0;;;::::1;::::0;;;;;;:37;;;::::1;38965:4;38932:37:::0;;::::1;::::0;;;38983:36;;;;::::1;::::0;;;;;;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;38793:505:::1;;;39055:30;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;::::1;;39050:101;;39112:24;;;;;;;;;;;;;;39050:101;39193:10;39171:33;::::0;;;:21:::1;:33;::::0;;;;;;;::::1;:47:::0;::::1;::::0;;;;;;;39164:54;;;::::1;::::0;;39232:55:::1;39205:12:::0;39269:17;39232:22:::1;:55::i;:::-;39355:61;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;39382:10:::1;::::0;39355:61:::1;::::0;;;::::1;38421:1002;;38292:1131:::0;;:::o;16911:3328::-;17163:14;17180:30;;;:86;;17256:10;17180:86;;;17225:16;17180:86;17163:103;-1:-1:-1;17339:20:9;;;17349:10;17339:20;17335:153;;17380:27;;;;;;;:14;:27;;;;;;;;17408:10;17380:39;;;;;;;;;;17375:103;;17446:17;;;;;;;;;;;;;;17375:103;17573:23;17599:26;;;;:10;:26;:::i;:::-;17719:29;;;;17680:36;17719:29;;;:16;:29;;;;;;;;:68;;;;;;;;;;;;17680:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17573:52;;-1:-1:-1;17848:52:9;;17680:107;17848:12;:52::i;:::-;17977:133;18018:11;18043:12;18069:9;:31;;;17977:27;:133::i;:::-;18194:20;18217:29;;;;:10;:29;:::i;:::-;:36;;18194:59;;18322:55;18343:12;18357:9;:19;;;18322:55;;:20;:55::i;:::-;18462:193;18494:11;18519:6;18539:12;18565:9;:34;;;18462:193;;18613:9;:32;;;18462:193;;:18;:193::i;:::-;18770:9;18765:1175;18789:12;18785:1;:16;18765:1175;;;18864:15;18882:29;;;;:10;:29;:::i;:::-;18912:1;18882:32;;;;;;;:::i;:::-;;;;;;;18864:50;;19054:6;19009:51;;19017:15;19009:32;;;19042:7;19009:41;;;;;;;;;;;;;4180:25:15;;4168:2;4153:18;;4034:177;19009:41:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;;;19005:237;;19087:140;;;;;26545:42:15;26614:15;;;19087:140:9;;;26596:34:15;26666:15;;26646:18;;;26639:43;26698:18;;;26691:34;;;26508:18;;19087:140:9;26333:398:15;19005:237:9;19385:32;;;;19317:65;19385:32;;;:19;:32;;;;;;;;:87;;;;;;;;;;;19561:25;;;;;;;;;;;;;19557:220;;;19613:149;;;;;26545:42:15;26614:15;;;19613:149:9;;;26596:34:15;26666:15;;26646:18;;;26639:43;26698:18;;;26691:34;;;26508:18;;19613:149:9;26333:398:15;19557:220:9;19837:25;;;;;;;;;:32;;;;19865:4;19837:32;;;;;;19912:3;18765:1175;;;;20013:219;20038:11;20063:6;20083:12;20109:9;:19;;;20013:219;;20142:9;:24;;;20013:219;;20180:9;:16;;;20013:219;;20210:12;20013:11;:219::i;:::-;17118:3121;;;;16911:3328;;;;:::o;32707:205::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;32885:10:::1;32870:35;;;32897:7;;32870:35;;;;;;;:::i;:::-;;;;;;;;32707:205:::0;;:::o;33896:598::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;34121:10:::1;34080:16;34099:33:::0;;;:21:::1;:33;::::0;;;;;;;;;34214:24;::::1;34178:60:::0;;;;34099:33;34214:24;;34099:33;;34121:10;34296:191:::1;::::0;34410:27:::1;::::0;;::::1;34214:13:::0;34410:27:::1;:::i;:::-;34451:26;;::::0;::::1;:13:::0;:26:::1;:::i;:::-;34296:191;;;;;;;;;:::i;:::-;;;;;;;;34034:460;33896:598:::0;:::o;35125:2348::-;5587:111;;;;;5642:42;5587:111;;;12844:98:15;5595:10:9;;5587:37;;12817:18:15;;5587:111:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5569:212;;5730:40;;;;;5759:10;5730:40;;;7709:74:15;7682:18;;5730:40:9;7563:226:15;5569:212:9;35366:29:::1;::::0;::::1;35362:117;;35418:50;;;;;;;;;;;;;;35362:117;35583:10;35564:29;::::0;::::1;::::0;35560:115:::1;;35616:48;;;;;;;;;;;;;;35560:115;35774:6;35755:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;:25;;;35751:94;;;35817:16;::::0;;;::::1;::::0;::::1;;:::i;35751:94::-;36008:25;36036:34;::::0;;;::::1;::::0;::::1;;:::i;:::-;36247:10;36074:1;36217:50:::0;;;:16:::1;:50;::::0;;;;;;;::::1;:67:::0;::::1;::::0;;;;;;;36331:61;;;:27:::1;:61:::0;;;;;36603:33;;36036:39:::1;::::0;;;::::1;::::0;;::::1;::::0;-1:-1:-1;36217:67:9;;36331:61;;36596:41;::::1;::::0;36657:686:::1;;36714:10;36697:28;::::0;;;:16:::1;:28;::::0;;;;;;;::::1;:45:::0;::::1;::::0;;;;;;;36745:9;;36697:57:::1;36745:9:::0;36697:45;:57:::1;:::i;:::-;-1:-1:-1::0;;36832:98:9;::::1;;;36877:38:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;36877:38:9;;;::::1;::::0;;::::1;::::0;;;::::1;;::::0;::::1;;::::0;;36832:98:::1;36657:686;;;37039:21;37035:98;;;37087:31;;;;;;;;;;;;;;37035:98;37233:10;37216:28;::::0;;;:16:::1;:28;::::0;;;;;;;::::1;:45:::0;::::1;::::0;;;;;;;37209:52;37275:57:::1;37245:15:::0;37315:16;37275:22:::1;:57::i;:::-;37439:15;37400:66;;37427:10;37400:66;;;37456:9;37400:66;;;;;;:::i;:::-;;;;;;;;35289:2184;;;;35125:2348:::0;;:::o;20420:283::-;20524:9;20506:15;:27;:56;;;;20555:7;20537:15;:25;20506:56;20502:195;;;20640:46;;;;;20650:15;20640:46;;;35337:25:15;35378:18;;;35371:34;;;35421:18;;;35414:34;;;35310:18;;20640:46:9;35135:319:15;20502:195:9;20420:283;;:::o;23651:303::-;23845:20;23856:9;23845:8;:20;:::i;:::-;23832:9;:33;23828:120;;23905:9;23916:20;23927:9;23916:8;:20;:::i;:::-;23888:49;;;;;;;;35995:25:15;;;;36036:18;;;36029:34;35968:18;;23888:49:9;35821:248:15;21980:1459:9;22250:8;22262:1;22250:13;22246:77;;22286:26;;;;;;;;;;;;;;22246:77;22485:58;;;;;:50;7727:55:15;;;22485:58:9;;;7709:74:15;22378:23:9;;;;;;22485:50;;;;;;7682:18:15;;22485:58:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;22364:179;;-1:-1:-1;22364:179:9;-1:-1:-1;22364:179:9;-1:-1:-1;22660:24:9;22631:26;22364:179;22631:8;:26;:::i;:::-;:53;22627:228;;;22762:26;22773:15;22762:8;:26;:::i;:::-;22707:137;;;;;;;;35995:25:15;;;;36036:18;;;36029:34;;;35968:18;;22707:137:9;35821:248:15;22627:228:9;22959:9;22927:29;22938:18;22927:8;:29;:::i;:::-;:41;22923:195;;;23037:29;23048:18;23037:8;:29;:::i;:::-;22991:116;;;;;;;;35995:25:15;;;;36036:18;;;36029:34;;;35968:18;;22991:116:9;35821:248:15;22923:195:9;23235:22;23203:29;23214:18;23203:8;:29;:::i;:::-;:54;23199:234;;;23339:29;23350:18;23339:8;:29;:::i;:::-;23280:142;;;;;;;;35995:25:15;;;;36036:18;;;36029:34;;;35968:18;;23280:142:9;35821:248:15;20971:564:9;21198:26;;;21194:97;;21247:33;;;;;;;;;;;;;;21194:97;21375:21;21371:158;;;21415:34;;;;;;;;:21;:34;;;;;;;;:48;;;;;;;;;;;;21410:119;;21490:24;;;;;;;;;;;;;;21410:119;20971:564;;;:::o;26235:793::-;512:6:7;;522:1;512:11;504:34;;;;;;;36717:2:15;504:34:7;;;36699:21:15;36756:2;36736:18;;;36729:30;36795:12;36775:18;;;36768:40;36825:18;;504:34:7;36515:334:15;504:34:7;558:1;549:6;:10;26516:67:9::1;::::0;;;;:49:::1;37046:55:15::0;;;26516:67:9::1;::::0;::::1;37028:74:15::0;37118:18;;;37111:34;;;26516:49:9;::::1;::::0;::::1;::::0;37001:18:15;;26516:67:9::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;26598:9;26611:1;26598:14;26594:164;;26700:47;26713:11;26726:12;26740:6;26700:12;:47::i;:::-;26812:209;::::0;;26908:10:::1;37415:74:15::0;;37520:2;37505:18;;37498:34;;;37548:18;;;37541:34;;;37606:2;37591:18;;37584:34;;;37649:3;37634:19;;37627:35;;;26812:209:9::1;::::0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;::::1;::::0;37402:3:15;37387:19;26812:209:9::1;;;;;;;-1:-1:-1::0;;591:1:7;582:6;:10;-1:-1:-1;;;;;26235:793:9:o;1153:184:3:-;1274:4;1326;1297:25;1310:5;1317:4;1297:12;:25::i;:::-;:33;;1153:184;-1:-1:-1;;;;1153:184:3:o;44482:1171:9:-;44674:14;44700:28;3907:394;44821:10;:20;;;44859:10;:35;;;44912:10;:20;;;44950:10;:18;;;44986:10;:25;;;45029:10;:33;;;45080:10;:17;;;45115:10;:32;;;44754:407;;;;;;;;;;;;;;;38038:25:15;;;38094:2;38079:18;;38072:34;;;;38137:2;38122:18;;38115:34;;;;38180:2;38165:18;;38158:34;;;;38223:3;38208:19;;38201:35;;;;38267:3;38252:19;;38245:35;38311:3;38296:19;;38289:35;38355:3;38340:19;;38333:35;38412:14;38405:22;38399:3;38384:19;;38377:51;38025:3;38010:19;;37673:761;44754:407:9;;;;;;;;;;;;;44731:440;;;;;;44700:471;;45250:6;45243:14;;45275:18;:16;:18::i;:::-;45342:262;;;3194:622;45342:262;;;38726:25:15;38770:42;38848:15;;;38828:18;;;38821:43;;;;38900:15;;;38880:18;;;38873:43;38952:15;;;38932:18;;;38925:43;38984:19;;;38977:35;;;39028:19;;;39021:35;;;38698:19;;45342:262:9;;;;;;;;;;;;;;45311:311;;45342:262;45311:311;;;;39274:66:15;39262:79;;;45213:423:9;;;39250:92:15;39358:11;;;39351:27;;;;39394:12;;;39387:28;;;;39431:12;;45213:423:9;;;;;;;;;;;;45190:456;;;;;;45181:465;;44690:963;44482:1171;;;;;;;:::o;3661:227:2:-;3739:7;3759:17;3778:18;3800:27;3811:4;3817:9;3800:10;:27::i;:::-;3758:69;;;;3837:18;3849:5;3837:11;:18::i;:::-;-1:-1:-1;3872:9:2;3661:227;-1:-1:-1;;;3661:227:2:o;13875:2570:9:-;14105:70;;;;14030:72;14105:70;;;:27;:70;;;;;;;;:78;;;;;;;;;;;14030:153;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14316:59;;14312:121;;14398:24;;;;;7739:42:15;7727:55;;14398:24:9;;;7709:74:15;7682:18;;14398:24:9;7563:226:15;14312:121:9;14509:39;;14486:20;;:62;;;;-1:-1:-1;14482:231:9;;;14611:20;;14649:39;;14571:131;;;;;;;;39627:25:15;;;;39700:22;39688:35;39668:18;;;39661:63;39600:18;;14571:131:9;39454:276:15;14482:231:9;14789:26;:54;;;14739:104;;:10;:35;;;:104;14722:340;;;14930:35;;;;;14983:54;;;;14875:176;;;;;;;;39908:25:15;;;;39981:8;39969:21;39949:18;;;39942:49;39881:18;;14875:176:9;39735:262:15;14722:340:9;15098:26;:39;;;15075:62;;:10;:20;;;:62;15071:231;;;15200:10;:20;;;15238:26;:39;;;15160:131;;;;;;;;;;;40175:25:15;;;40248:12;40236:25;40231:2;40216:18;;40209:53;40163:2;40148:18;;40002:266;15071:231:9;15336:26;:37;;;15315:58;;:10;:18;;;:58;15311:221;;;15434:18;;;;;15470:37;;;;15396:125;;;;;;;;40175:25:15;;;;40248:12;40236:25;40216:18;;;40209:53;40148:18;;15396:125:9;40002:266:15;15311:221:9;15606:26;:52;;;15558:100;;:10;:33;;;:100;15541:330;;;15743:33;;;;15794:52;;;;15690:170;;;;;;;;40175:25:15;;;;40248:12;40236:25;40216:18;;;40209:53;40148:18;;15690:170:9;40002:266:15;15541:330:9;15904:26;:36;;;15884:56;;:10;:17;;;:56;15880:216;;;16000:17;;;;;16035:36;;;;15963:122;;;;;;;;40446:25:15;;;;40519:6;40507:19;40487:18;;;40480:47;40419:18;;15963:122:9;40273:260:15;15880:216:9;16129:26;:36;;;16109:56;;:10;:17;;;:56;16105:216;;;16225:17;;;;16260:36;;;;16188:122;;;;;;;;40446:25:15;;;;40519:6;40507:19;40487:18;;;40480:47;40419:18;;16188:122:9;40273:260:15;16105:216:9;16335:10;:32;;;16330:109;;16390:38;;;;;;;;;;;;;;16330:109;14020:2425;13875:2570;;;:::o;43257:732::-;43436:18;;43408:25;43464:519;43488:17;43484:1;:21;43464:519;;;43620:8;43602:26;;:11;43614:1;43602:14;;;;;;;;:::i;:::-;;;;;;;;;;;;;:26;43598:316;;43712:11;43724:21;43744:1;43724:17;:21;:::i;:::-;43712:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;43695:11;43707:1;43695:14;;;;;;;;:::i;:::-;;;;;;;;;:51;;;;;;;;;;;;;;;;;;43825:11;:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;43894:5;;43598:316;43955:3;;43464:519;;24198:1552;24407:6;24398;:15;24394:74;;;24436:21;;;;;;;;4180:25:15;;;4153:18;;24436:21:9;4034:177:15;24394:74:9;24552:36;;;;24521:28;24552:36;;;:23;:36;;;;;;;;24669:113;;24730:41;;;;;;;;;;;;;;24669:113;24956:6;24966:1;24956:11;24952:126;;24983:64;25015:20;25037:9;24983:31;:64::i;24952:126::-;25196:17;25239:6;25217:18;25229:6;25217:9;:18;:::i;:::-;25216:29;;;;:::i;:::-;25196:49;-1:-1:-1;25405:9:9;:21;;;25508:13;;25504:100;;25537:56;25569:12;25583:9;25537:31;:56::i;:::-;25676:67;25708:20;25730:12;25676:31;:67::i;:::-;24318:1432;;;24198:1552;;;:::o;1991:290:3:-;2074:7;2116:4;2074:7;2130:116;2154:5;:12;2150:1;:16;2130:116;;;2202:33;2212:12;2226:5;2232:1;2226:8;;;;;;;;:::i;:::-;;;;;;;2202:9;:33::i;:::-;2187:48;-1:-1:-1;2168:3:3;;;;:::i;:::-;;;;2130:116;;27346:208:9;27397:7;27467:9;27450:13;:26;:97;;27523:24;27836:187;;;4395:208;27836:187;;;43251:25:15;4648:20:9;43292:18:15;;;43285:34;;;;4716:16:9;43335:18:15;;;43328:34;27965:13:9;43378:18:15;;;43371:34;28004:4:9;43421:19:15;;;43414:84;27760:7:9;;43223:19:15;;27836:187:9;;;;;;;;;;;;27813:220;;;;;;27806:227;;27703:337;;27523:24;27443:104;;27346:208;:::o;27450:97::-;-1:-1:-1;27491:17:9;;27346:208::o;2145:730:2:-;2226:7;2235:12;2263:9;:16;2283:2;2263:22;2259:610;;2599:4;2584:20;;2578:27;2648:4;2633:20;;2627:27;2705:4;2690:20;;2684:27;2301:9;2676:36;2746:25;2757:4;2676:36;2578:27;2627;2746:10;:25::i;:::-;2739:32;;;;;;;;;2259:610;-1:-1:-1;2818:1:2;;-1:-1:-1;2822:35:2;2259:610;2145:730;;;;;:::o;570:511::-;647:20;638:5;:29;;;;;;;;:::i;:::-;;634:441;;570:511;:::o;634:441::-;743:29;734:5;:38;;;;;;;;:::i;:::-;;730:345;;788:34;;;;;41730:2:15;788:34:2;;;41712:21:15;41769:2;41749:18;;;41742:30;41808:26;41788:18;;;41781:54;41852:18;;788:34:2;41528:348:15;730:345:2;852:35;843:5;:44;;;;;;;;:::i;:::-;;839:236;;903:41;;;;;42083:2:15;903:41:2;;;42065:21:15;42122:2;42102:18;;;42095:30;42161:33;42141:18;;;42134:61;42212:18;;903:41:2;41881:355:15;839:236:2;974:30;965:5;:39;;;;;;;;:::i;:::-;;961:114;;1020:44;;;;;42443:2:15;1020:44:2;;;42425:21:15;42482:2;42462:18;;;42455:30;42521:34;42501:18;;;42494:62;42592:4;42572:18;;;42565:32;42614:19;;1020:44:2;42241:398:15;961:114:2;570:511;:::o;799:296:8:-;871:12;1027:1;1024;1021;1018;1010:6;1006:2;999:5;994:35;983:46;;1057:7;1049:39;;;;;;;42846:2:15;1049:39:8;;;42828:21:15;42885:2;42865:18;;;42858:30;42924:21;42904:18;;;42897:49;42963:18;;1049:39:8;42644:343:15;8054:147:3;8117:7;8147:1;8143;:5;:51;;8275:13;8366:15;;;8401:4;8394:15;;;8447:4;8431:21;;8143:51;;;8275:13;8366:15;;;8401:4;8394:15;;;8447:4;8431:21;;8151:20;8136:58;8054:147;-1:-1:-1;;;8054:147:3:o;5069:1494:2:-;5195:7;;6119:66;6106:79;;6102:161;;;-1:-1:-1;6217:1:2;;-1:-1:-1;6221:30:2;6201:51;;6102:161;6374:24;;;6357:14;6374:24;;;;;;;;;43736:25:15;;;43809:4;43797:17;;43777:18;;;43770:45;;;;43831:18;;;43824:34;;;43874:18;;;43867:34;;;6374:24:2;;43708:19:15;;6374:24:2;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6374:24:2;;;;;;-1:-1:-1;;6412:20:2;;;6408:101;;6464:1;6468:29;6448:50;;;;;;;6408:101;6527:6;-1:-1:-1;6535:20:2;;-1:-1:-1;5069:1494:2;;;;;;;;:::o;14:197:15:-;103:6;156:3;144:9;135:7;131:23;127:33;124:53;;;173:1;170;163:12;124:53;-1:-1:-1;196:9:15;14:197;-1:-1:-1;14:197:15:o;216:154::-;302:42;295:5;291:54;284:5;281:65;271:93;;360:1;357;350:12;375:388;443:6;451;504:2;492:9;483:7;479:23;475:32;472:52;;;520:1;517;510:12;472:52;559:9;546:23;578:31;603:5;578:31;:::i;:::-;628:5;-1:-1:-1;685:2:15;670:18;;657:32;698:33;657:32;698:33;:::i;:::-;750:7;740:17;;;375:388;;;;;:::o;1241:1055::-;1407:4;1449:3;1438:9;1434:19;1426:27;;1499:22;1490:6;1484:13;1480:42;1469:9;1462:61;1591:6;1583:4;1575:6;1571:17;1565:24;1561:37;1554:4;1543:9;1539:20;1532:67;1646:4;1638:6;1634:17;1628:24;1671:14;1741:2;1727:12;1723:21;1716:4;1705:9;1701:20;1694:51;1813:2;1805:4;1797:6;1793:17;1787:24;1783:33;1776:4;1765:9;1761:20;1754:63;;;1866:4;1858:6;1854:17;1848:24;1881:54;1929:4;1918:9;1914:20;1898:14;1033:4;1022:16;1010:29;;966:75;1881:54;;1984:4;1976:6;1972:17;1966:24;1999:55;2048:4;2037:9;2033:20;2017:14;1122:10;1111:22;1099:35;;1046:94;1999:55;;2103:4;2095:6;2091:17;2085:24;2118:55;2167:4;2156:9;2152:20;2136:14;844:6;833:18;821:31;;768:90;2118:55;;2222:4;2214:6;2210:17;2204:24;2237:53;2284:4;2273:9;2269:20;2253:14;1215:13;1208:21;1196:34;;1145:91;2237:53;;1241:1055;;;;:::o;2301:247::-;2360:6;2413:2;2401:9;2392:7;2388:23;2384:32;2381:52;;;2429:1;2426;2419:12;2381:52;2468:9;2455:23;2487:31;2512:5;2487:31;:::i;2553:598::-;2639:6;2647;2655;2663;2716:3;2704:9;2695:7;2691:23;2687:33;2684:53;;;2733:1;2730;2723:12;2684:53;2772:9;2759:23;2791:31;2816:5;2791:31;:::i;:::-;2841:5;-1:-1:-1;2898:2:15;2883:18;;2870:32;2911:33;2870:32;2911:33;:::i;:::-;2963:7;-1:-1:-1;3022:2:15;3007:18;;2994:32;3035:33;2994:32;3035:33;:::i;:::-;2553:598;;;;-1:-1:-1;3087:7:15;;3141:2;3126:18;3113:32;;-1:-1:-1;;2553:598:15:o;3156:681::-;3327:2;3379:21;;;3449:13;;3352:18;;;3471:22;;;3298:4;;3327:2;3550:15;;;;3524:2;3509:18;;;3298:4;3593:218;3607:6;3604:1;3601:13;3593:218;;;3672:13;;3687:42;3668:62;3656:75;;3786:15;;;;3751:12;;;;3629:1;3622:9;3593:218;;;-1:-1:-1;3828:3:15;;3156:681;-1:-1:-1;;;;;;3156:681:15:o;4216:159::-;4279:5;4324:3;4315:6;4310:3;4306:16;4302:26;4299:46;;;4341:1;4338;4331:12;4380:1235;4541:6;4549;4557;4565;4573;4581;4589;4642:3;4630:9;4621:7;4617:23;4613:33;4610:53;;;4659:1;4656;4649:12;4610:53;4698:9;4685:23;4717:31;4742:5;4717:31;:::i;:::-;4767:5;-1:-1:-1;4824:2:15;4809:18;;4796:32;4837:33;4796:32;4837:33;:::i;:::-;4889:7;-1:-1:-1;4948:2:15;4933:18;;4920:32;4961:33;4920:32;4961:33;:::i;:::-;5013:7;-1:-1:-1;5067:2:15;5052:18;;5039:32;;-1:-1:-1;5090:67:15;5149:7;5143:3;5128:19;;5090:67;:::i;:::-;5080:77;;5208:3;5197:9;5193:19;5180:33;5232:18;5273:2;5265:6;5262:14;5259:34;;;5289:1;5286;5279:12;5259:34;5327:6;5316:9;5312:22;5302:32;;5372:7;5365:4;5361:2;5357:13;5353:27;5343:55;;5394:1;5391;5384:12;5343:55;5434:2;5421:16;5460:2;5452:6;5449:14;5446:34;;;5476:1;5473;5466:12;5446:34;5529:7;5524:2;5514:6;5511:1;5507:14;5503:2;5499:23;5495:32;5492:45;5489:65;;;5550:1;5547;5540:12;5489:65;5581:2;5577;5573:11;5563:21;;5603:6;5593:16;;;;;4380:1235;;;;;;;;;;:::o;5620:347::-;5671:8;5681:6;5735:3;5728:4;5720:6;5716:17;5712:27;5702:55;;5753:1;5750;5743:12;5702:55;-1:-1:-1;5776:20:15;;5819:18;5808:30;;5805:50;;;5851:1;5848;5841:12;5805:50;5888:4;5880:6;5876:17;5864:29;;5940:3;5933:4;5924:6;5916;5912:19;5908:30;5905:39;5902:59;;;5957:1;5954;5947:12;5972:1098;6126:6;6134;6142;6150;6158;6166;6174;6182;6235:3;6223:9;6214:7;6210:23;6206:33;6203:53;;;6252:1;6249;6242:12;6203:53;6291:9;6278:23;6310:31;6335:5;6310:31;:::i;:::-;6360:5;-1:-1:-1;6417:2:15;6402:18;;6389:32;6430:33;6389:32;6430:33;:::i;:::-;6482:7;-1:-1:-1;6541:2:15;6526:18;;6513:32;6554:33;6513:32;6554:33;:::i;:::-;6606:7;-1:-1:-1;6660:2:15;6645:18;;6632:32;;-1:-1:-1;6683:67:15;6742:7;6736:3;6721:19;;6683:67;:::i;:::-;6673:77;;6797:3;6786:9;6782:19;6769:33;6759:43;;6853:3;6842:9;6838:19;6825:33;6881:18;6873:6;6870:30;6867:50;;;6913:1;6910;6903:12;6867:50;6952:58;7002:7;6993:6;6982:9;6978:22;6952:58;:::i;:::-;5972:1098;;;;-1:-1:-1;5972:1098:15;;-1:-1:-1;5972:1098:15;;;;;;7029:8;-1:-1:-1;;;5972:1098:15:o;7075:483::-;7189:6;7197;7241:9;7232:7;7228:23;7271:3;7267:2;7263:12;7260:32;;;7288:1;7285;7278:12;7260:32;7327:9;7314:23;7346:31;7371:5;7346:31;:::i;:::-;7396:5;-1:-1:-1;7494:3:15;7425:66;7417:75;;7413:85;7410:105;;;7511:1;7508;7501:12;7410:105;;7549:2;7538:9;7534:18;7524:28;;7075:483;;;;;:::o;7794:118::-;7880:5;7873:13;7866:21;7859:5;7856:32;7846:60;;7902:1;7899;7892:12;7917:128;7982:20;;8011:28;7982:20;8011:28;:::i;:::-;7917:128;;;:::o;8050:382::-;8115:6;8123;8176:2;8164:9;8155:7;8151:23;8147:32;8144:52;;;8192:1;8189;8182:12;8144:52;8231:9;8218:23;8250:31;8275:5;8250:31;:::i;:::-;8300:5;-1:-1:-1;8357:2:15;8342:18;;8329:32;8370:30;8329:32;8370:30;:::i;9425:456::-;9502:6;9510;9518;9571:2;9559:9;9550:7;9546:23;9542:32;9539:52;;;9587:1;9584;9577:12;9539:52;9626:9;9613:23;9645:31;9670:5;9645:31;:::i;:::-;9695:5;-1:-1:-1;9752:2:15;9737:18;;9724:32;9765:33;9724:32;9765:33;:::i;:::-;9425:456;;9817:7;;-1:-1:-1;;;9871:2:15;9856:18;;;;9843:32;;9425:456::o;9886:817::-;10012:6;10020;10028;10036;10089:3;10077:9;10068:7;10064:23;10060:33;10057:53;;;10106:1;10103;10096:12;10057:53;10145:9;10132:23;10164:31;10189:5;10164:31;:::i;:::-;10214:5;-1:-1:-1;10271:2:15;10256:18;;10243:32;10284:33;10243:32;10284:33;:::i;:::-;10336:7;-1:-1:-1;10395:2:15;10380:18;;10367:32;10408:33;10367:32;10408:33;:::i;:::-;10460:7;-1:-1:-1;10518:2:15;10503:18;;10490:32;10545:18;10534:30;;10531:50;;;10577:1;10574;10567:12;10531:50;10600:22;;10656:2;10638:16;;;10634:25;10631:45;;;10672:1;10669;10662:12;10631:45;9886:817;;;;-1:-1:-1;9886:817:15;;-1:-1:-1;;9886:817:15:o;10708:410::-;10779:6;10787;10840:2;10828:9;10819:7;10815:23;10811:32;10808:52;;;10856:1;10853;10846:12;10808:52;10896:9;10883:23;10929:18;10921:6;10918:30;10915:50;;;10961:1;10958;10951:12;10915:50;11000:58;11050:7;11041:6;11030:9;11026:22;11000:58;:::i;:::-;11077:8;;10974:84;;-1:-1:-1;10708:410:15;-1:-1:-1;;;;10708:410:15:o;11909:392::-;12001:6;12054:2;12042:9;12033:7;12029:23;12025:32;12022:52;;;12070:1;12067;12060:12;12022:52;12110:9;12097:23;12143:18;12135:6;12132:30;12129:50;;;12175:1;12172;12165:12;12129:50;12198:22;;12254:2;12236:16;;;12232:25;12229:45;;;12270:1;12267;12260:12;12306:389;12413:6;12421;12474:3;12462:9;12453:7;12449:23;12445:33;12442:53;;;12491:1;12488;12481:12;12442:53;12530:9;12517:23;12549:31;12574:5;12549:31;:::i;:::-;12599:5;-1:-1:-1;12623:66:15;12681:7;12676:2;12661:18;;12623:66;:::i;:::-;12613:76;;12306:389;;;;;:::o;12953:245::-;13020:6;13073:2;13061:9;13052:7;13048:23;13044:32;13041:52;;;13089:1;13086;13079:12;13041:52;13121:9;13115:16;13140:28;13162:5;13140:28;:::i;13203:117::-;13288:6;13281:5;13277:18;13270:5;13267:29;13257:57;;13310:1;13307;13300:12;13325:132;13392:20;;13421:30;13392:20;13421:30;:::i;13462:245::-;13520:6;13573:2;13561:9;13552:7;13548:23;13544:32;13541:52;;;13589:1;13586;13579:12;13541:52;13628:9;13615:23;13647:30;13671:5;13647:30;:::i;13906:133::-;13991:22;13984:5;13980:34;13973:5;13970:45;13960:73;;14029:1;14026;14019:12;14275:125;14360:14;14353:5;14349:26;14342:5;14339:37;14329:65;;14390:1;14387;14380:12;14405:174;14449:11;14501:3;14488:17;14514:30;14538:5;14514:30;:::i;14584:174::-;14628:11;14680:3;14667:17;14693:30;14717:5;14693:30;:::i;15059:170::-;15101:11;15153:3;15140:17;15166:28;15188:5;15166:28;:::i;15544:1413::-;15715:5;15702:19;15730:32;15754:7;15730:32;:::i;:::-;14146:11;;14159:66;14142:84;14239:22;14228:34;;14139:124;14126:138;;15771:60;15879:2;15872:5;15868:14;15855:28;15892:32;15916:7;15892:32;:::i;:::-;15949:4;15943:11;16001:34;15991:7;15987:2;15983:16;15979:57;15963:73;;16138:8;16069:66;16065:2;16061:75;16058:89;16052:4;16045:103;16196:2;16189:5;16185:14;16172:28;16209:32;16233:7;16209:32;:::i;:::-;16283:46;16273:7;16268:3;16264:17;16260:70;16250:80;;16446:2;16435:8;16366:66;16362:2;16358:75;16355:89;16352:97;16346:4;16339:111;16498:2;16491:5;16487:14;16474:28;16511:32;16535:7;16511:32;:::i;:::-;16690:50;16680:7;16675:3;16671:17;16667:74;16655:8;16586:66;16582:2;16578:75;16575:89;16571:2;16568:97;16565:177;16559:4;16552:191;;;;;16752:98;16806:43;16844:3;16837:5;16833:15;16806:43;:::i;:::-;14857:11;;14901:66;14893:75;14978:3;14974:15;;;;14991:54;14970:76;14890:157;14877:171;;14763:291;16752:98;16859:92;16909:41;16945:3;16938:5;16934:15;16909:41;:::i;:::-;16903:4;15324:11;;15368:66;15360:75;15457:13;;15450:21;15445:3;15441:31;15474:56;15437:94;15357:175;;;;15344:189;;15234:305;16962:132;17029:20;;17058:30;17029:20;17058:30;:::i;17099:1163::-;17291:3;17276:19;;17317:20;;17346:30;17317:20;17346:30;:::i;:::-;17414:22;17403:34;17385:53;;17487:4;17475:17;;17462:31;17502:32;17462:31;17502:32;:::i;:::-;17553:14;17605:16;;;17598:4;17583:20;;17576:46;17671:4;17659:17;;17646:31;;17686:32;17646:31;17686:32;:::i;:::-;17756:16;17749:4;17734:20;;17727:46;17822:4;17810:17;;17797:31;17837:32;17797:31;17837:32;:::i;:::-;17888:6;17932:16;;;17925:4;17910:20;;17903:46;17998:4;17986:17;;17973:31;;18013:32;17973:31;18013:32;:::i;:::-;18083:16;18076:4;18061:20;;18054:46;18149:4;18137:17;;18124:31;18164:30;18124:31;18164:30;:::i;:::-;18246:7;18239:15;18232:23;18225:4;18214:9;18210:20;18203:53;;17099:1163;;;;:::o;18267:241::-;18323:6;18376:2;18364:9;18355:7;18351:23;18347:32;18344:52;;;18392:1;18389;18382:12;18344:52;18431:9;18418:23;18450:28;18472:5;18450:28;:::i;18513:921::-;18691:4;18733:3;18722:9;18718:19;18710:27;;18776:42;18768:6;18764:55;18753:9;18746:74;18869:6;18856:20;18851:2;18840:9;18836:18;18829:48;18938:2;18930:6;18926:15;18913:29;18908:2;18897:9;18893:18;18886:57;19004:2;18996:6;18992:15;18979:29;18974:2;18963:9;18959:18;18952:57;19071:2;19063:6;19059:15;19046:29;19040:3;19029:9;19025:19;19018:58;19138:3;19130:6;19126:16;19113:30;19107:3;19096:9;19092:19;19085:59;19206:3;19198:6;19194:16;19181:30;19175:3;19164:9;19160:19;19153:59;19274:3;19266:6;19262:16;19249:30;19243:3;19232:9;19228:19;19221:59;19327:3;19319:6;19315:16;19302:30;19341:28;19363:5;19341:28;:::i;:::-;19420:5;19413:13;19406:21;19400:3;19389:9;19385:19;19378:50;;18513:921;;;;;:::o;19439:1090::-;19526:6;19557:3;19601:2;19589:9;19580:7;19576:23;19572:32;19569:52;;;19617:1;19614;19607:12;19569:52;19650:2;19644:9;19680:15;;;;19725:18;19710:34;;19746:22;;;19707:62;19704:242;;;19802:77;19799:1;19792:88;19903:4;19900:1;19893:15;19931:4;19928:1;19921:15;19704:242;19966:10;19962:2;19955:22;20014:9;20001:23;19993:6;19986:39;20086:2;20075:9;20071:18;20058:32;20053:2;20045:6;20041:15;20034:57;20152:2;20141:9;20137:18;20124:32;20119:2;20111:6;20107:15;20100:57;20218:2;20207:9;20203:18;20190:32;20185:2;20177:6;20173:15;20166:57;20285:3;20274:9;20270:19;20257:33;20251:3;20243:6;20239:16;20232:59;20353:3;20342:9;20338:19;20325:33;20319:3;20311:6;20307:16;20300:59;20421:3;20410:9;20406:19;20393:33;20387:3;20379:6;20375:16;20368:59;20461:36;20492:3;20481:9;20477:19;20461:36;:::i;:::-;20455:3;20443:16;;20436:62;20447:6;19439:1090;-1:-1:-1;;;;19439:1090:15:o;20534:119::-;20619:8;20612:5;20608:20;20601:5;20598:31;20588:59;;20643:1;20640;20633:12;20658:245;20716:6;20769:2;20757:9;20748:7;20744:23;20740:32;20737:52;;;20785:1;20782;20775:12;20737:52;20824:9;20811:23;20843:30;20867:5;20843:30;:::i;20908:123::-;20993:12;20986:5;20982:24;20975:5;20972:35;20962:63;;21021:1;21018;21011:12;21036:174;21080:11;21132:3;21119:17;21145:30;21169:5;21145:30;:::i;22414:1395::-;22617:5;22604:19;22632:32;22656:7;22632:32;:::i;:::-;14146:11;;14159:66;14142:84;14239:22;14228:34;;14139:124;14126:138;;22673:60;22781:2;22774:5;22770:14;22757:28;22794:32;22818:7;22794:32;:::i;:::-;22851:4;22845:11;22903:28;22893:7;22889:2;22885:16;22881:51;22865:67;;23034:8;22965:66;22961:2;22957:75;22954:89;22948:4;22941:103;23092:2;23085:5;23081:14;23068:28;23105:32;23129:7;23105:32;:::i;:::-;23276:38;23266:7;23261:3;23257:17;23253:62;23242:8;23173:66;23169:2;23165:75;23162:89;23159:157;23153:4;23146:171;;;;23365:2;23358:5;23354:14;23341:28;23378:32;23402:7;23378:32;:::i;:::-;21310:11;;21354:66;21346:75;21431:3;21427:15;;;21444:48;21423:70;21343:151;21330:165;;23419:63;23491:96;23543:43;23581:3;23574:5;23570:15;23543:43;:::i;:::-;21598:11;;21642:66;21634:75;21719:3;21715:15;;;;21732:58;21711:80;21631:161;21618:175;;21506:293;23491:96;23596:99;23651:43;23689:3;23682:5;23678:15;23651:43;:::i;:::-;21899:11;;21943:66;21935:75;22020:3;22016:15;;;;22033:62;22012:84;21932:165;21919:179;;21804:300;23596:99;23704;23759:43;23797:3;23790:5;23786:15;23759:43;:::i;:::-;22204:11;;22248:62;22240:71;22321:3;22317:15;;;;22334:66;22313:88;22237:165;22224:179;;22109:300;23814:1278;24038:3;24023:19;;24064:20;;24093:30;24064:20;24093:30;:::i;:::-;24161:22;24150:34;24132:53;;24234:4;24222:17;;24209:31;24249:32;24209:31;24249:32;:::i;:::-;24332:8;24319:22;24312:4;24297:20;;24290:52;24391:4;24379:17;;24366:31;24406:32;24366:31;24406:32;:::i;:::-;24457:12;24507:16;;;24500:4;24485:20;;24478:46;24573:4;24561:17;;24548:31;;24588:32;24548:31;24588:32;:::i;:::-;24658:16;24651:4;24636:20;;24629:46;24724:4;24712:17;;24699:31;24739:32;24699:31;24739:32;:::i;:::-;8513:12;8502:24;24822:4;24807:20;;8490:37;24857:36;24887:4;24875:17;;24857:36;:::i;:::-;844:6;833:18;24949:4;24934:20;;821:31;24986:36;25016:4;25004:17;;24986:36;:::i;:::-;844:6;833:18;;25080:4;25065:20;;821:31;25031:55;768:90;25097:604;25190:4;25196:6;25256:11;25243:25;25346:66;25335:8;25319:14;25315:29;25311:102;25291:18;25287:127;25277:155;;25428:1;25425;25418:12;25277:155;25455:33;;25507:20;;;-1:-1:-1;25550:18:15;25539:30;;25536:50;;;25582:1;25579;25572:12;25536:50;25615:4;25603:17;;-1:-1:-1;25666:1:15;25662:14;;;25646;25642:35;25632:46;;25629:66;;;25691:1;25688;25681:12;25706:184;25758:77;25755:1;25748:88;25855:4;25852:1;25845:15;25879:4;25876:1;25869:15;26077:251;26147:6;26200:2;26188:9;26179:7;26175:23;26171:32;26168:52;;;26216:1;26213;26206:12;26168:52;26248:9;26242:16;26267:31;26292:5;26267:31;:::i;26736:326::-;26825:6;26820:3;26813:19;26877:6;26870:5;26863:4;26858:3;26854:14;26841:43;;26929:1;26922:4;26913:6;26908:3;26904:16;26900:27;26893:38;26795:3;27051:4;26981:66;26976:2;26968:6;26964:15;26960:88;26955:3;26951:98;26947:109;26940:116;;26736:326;;;;:::o;27067:247::-;27226:2;27215:9;27208:21;27189:4;27246:62;27304:2;27293:9;27289:18;27281:6;27273;27246:62;:::i;:::-;27238:70;27067:247;-1:-1:-1;;;;27067:247:15:o;27940:581::-;28018:4;28024:6;28084:11;28071:25;28174:66;28163:8;28147:14;28143:29;28139:102;28119:18;28115:127;28105:155;;28256:1;28253;28246:12;28105:155;28283:33;;28335:20;;;-1:-1:-1;28378:18:15;28367:30;;28364:50;;;28410:1;28407;28400:12;28364:50;28443:4;28431:17;;-1:-1:-1;28474:14:15;28470:27;;;28460:38;;28457:58;;;28511:1;28508;28501:12;28526:1516;28806:2;28818:21;;;28791:18;;28874:22;;;-1:-1:-1;28927:2:15;28976:1;28972:14;;;28957:30;;28953:39;;;28912:18;;29015:6;-1:-1:-1;29049:859:15;29063:6;29060:1;29057:13;29049:859;;;29152:66;29140:9;29132:6;29128:22;29124:95;29119:3;29112:108;29272:6;29259:20;29359:66;29350:6;29334:14;29330:27;29326:100;29306:18;29302:125;29292:153;;29441:1;29438;29431:12;29292:153;29471:31;;29571:4;29603:14;;;;29529:19;;29644:18;29633:30;;29630:50;;;29676:1;29673;29666:12;29630:50;29729:6;29713:14;29709:27;29700:7;29696:41;29693:61;;;29750:1;29747;29740:12;29693:61;29777:51;29821:6;29813;29804:7;29777:51;:::i;:::-;29767:61;-1:-1:-1;29886:12:15;;;;29851:15;;;;;-1:-1:-1;;29085:1:15;29078:9;29049:859;;;29053:3;;;29958:9;29950:6;29946:22;29939:4;29928:9;29924:20;29917:52;29986:50;30029:6;30021;30013;29986:50;:::i;:::-;29978:58;28526:1516;-1:-1:-1;;;;;;;28526:1516:15:o;30337:114::-;30421:4;30414:5;30410:16;30403:5;30400:27;30390:55;;30441:1;30438;30431:12;30456:172;30499:11;30551:3;30538:17;30564:29;30587:5;30564:29;:::i;30923:121::-;31008:10;31001:5;30997:22;30990:5;30987:33;30977:61;;31034:1;31031;31024:12;31049:174;31093:11;31145:3;31132:17;31158:30;31182:5;31158:30;:::i;32148:1389::-;32337:5;32324:19;32352:32;32376:7;32352:32;:::i;:::-;14146:11;;14159:66;14142:84;14239:22;14228:34;;14139:124;14126:138;;32393:60;32501:2;32494:5;32490:14;32477:28;32514:32;32538:7;32514:32;:::i;:::-;32571:4;32565:11;32617:26;32607:7;32603:2;32599:16;32595:49;32585:59;;32746:2;32677:66;32673:2;32669:75;32666:83;32660:4;32653:97;32798:2;32791:5;32787:14;32774:28;32811:32;32835:7;32811:32;:::i;:::-;32975:38;32965:7;32961:2;32957:16;32953:61;32948:2;32879:66;32875:2;32871:75;32868:83;32865:150;32859:4;32852:164;;;;33025:95;33077:42;33115:2;33108:5;33104:14;33077:42;:::i;:::-;30139:11;;30183:66;30175:75;30260:3;30256:15;;;;30273:50;30252:72;30172:153;30159:167;;30047:285;33025:95;33129:93;33179:42;33216:3;33209:5;33205:15;33179:42;:::i;:::-;30723:11;;30767:66;30759:75;30844:3;30840:15;;;;30857:52;30836:74;30756:155;30743:169;;30633:285;33129:93;33231:96;33283:43;33321:3;33314:5;33310:15;33283:43;:::i;:::-;31320:11;;31364:66;31356:75;31441:3;31437:15;;;;31454:60;31433:82;31353:163;31340:177;;31228:295;33231:96;33336;33388:43;33426:3;33419:5;33415:15;33388:43;:::i;:::-;31620:11;;31664:66;31656:75;31741:3;31737:15;;;;31754:64;31733:86;31653:167;31640:181;;31528:299;33336:96;33441:90;33489:41;33525:3;33518:5;33514:15;33489:41;:::i;:::-;33483:4;31920:11;;31964:64;31956:73;32051:13;;32044:21;32039:3;32035:31;32068:66;32031:104;31953:183;;;;31940:197;;31832:311;33542:130;33608:20;;33637:29;33608:20;33637:29;:::i;33677:132::-;33744:20;;33773:30;33744:20;33773:30;:::i;33814:1316::-;34024:3;34009:19;;34050:20;;34079:30;34050:20;34079:30;:::i;:::-;34147:22;34136:34;34118:53;;34220:4;34208:17;;34195:31;34235:32;34195:31;34235:32;:::i;:::-;34318:6;34305:20;34298:4;34283:20;;34276:50;34375:4;34363:17;;34350:31;34390:32;34350:31;34390:32;:::i;:::-;939:14;928:26;34473:4;34458:20;;916:39;34508:36;34538:4;34526:17;;34508:36;:::i;:::-;939:14;928:26;34600:4;34585:20;;916:39;34637:35;34666:4;34654:17;;34637:35;:::i;:::-;1033:4;1022:16;34729:4;34714:20;;1010:29;34766:36;34796:4;34784:17;;34766:36;:::i;:::-;1122:10;1111:22;34860:4;34845:20;;1099:35;34897:36;34927:4;34915:17;;34897:36;:::i;:::-;844:6;833:18;34991:4;34976:20;;821:31;35028:34;35056:4;35044:17;;35028:34;:::i;:::-;1215:13;;1208:21;35118:4;35103:20;;1196:34;35071:53;1145:91;35459:184;35511:77;35508:1;35501:88;35608:4;35605:1;35598:15;35632:4;35629:1;35622:15;35648:168;35721:9;;;35752;;35769:15;;;35763:22;;35749:37;35739:71;;35790:18;;:::i;36074:306::-;36162:6;36170;36178;36231:2;36219:9;36210:7;36206:23;36202:32;36199:52;;;36247:1;36244;36237:12;36199:52;36276:9;36270:16;36260:26;;36326:2;36315:9;36311:18;36305:25;36295:35;;36370:2;36359:9;36355:18;36349:25;36339:35;;36074:306;;;;;:::o;36385:125::-;36450:9;;;36471:10;;;36468:36;;;36484:18;;:::i;40538:128::-;40605:9;;;40626:11;;;40623:37;;;40640:18;;:::i;40671:184::-;40723:77;40720:1;40713:88;40820:4;40817:1;40810:15;40844:4;40841:1;40834:15;40860:274;40900:1;40926;40916:189;;40961:77;40958:1;40951:88;41062:4;41059:1;41052:15;41090:4;41087:1;41080:15;40916:189;-1:-1:-1;41119:9:15;;40860:274::o;41139:195::-;41178:3;41209:66;41202:5;41199:77;41196:103;;41279:18;;:::i;:::-;-1:-1:-1;41326:1:15;41315:13;;41139:195::o;41339:184::-;41391:77;41388:1;41381:88;41488:4;41485:1;41478:15;41512:4;41509:1;41502:15

Metadata Hash

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